diff --git a/assets/AnimatedWave-CTK2lmxN.js b/assets/AnimatedWave-CTK2lmxN.js deleted file mode 100644 index de74b041c63e86d25ccec3052281ebcac83cbca6..0000000000000000000000000000000000000000 --- a/assets/AnimatedWave-CTK2lmxN.js +++ /dev/null @@ -1,3 +0,0 @@ -import{b as e}from"./Basic-D33XBiPI.js";import{c as t,e as n,f as r,g as i,h as a,k as o}from"./Scenes-0TJqCS-r.js";import{P as s,a3 as c,a4 as l,aS as u,aX as d,ae as f,af as p,ao as m,av as h,bJ as g,bP as _,bU as v,c as y,c3 as b,c4 as x,d as S,e$ as C,eA as w,eB as T,eC as E,eE as D,eF as O,eG as k,eL as A,eN as j,eO as M,eQ as N,eS as P,eT as F,eV as I,eW as L,eX as R,eY as z,e_ as B,eo as V,ev as H,ew as ee,ey as U,ez as W,f1 as G,f6 as K,f7 as q,f9 as J,fa as Y}from"./index-DEhol03r.js";import{b as X,c as Z,d as te}from"./HeaderLink-CwKWoudF.js";import{b as ne,c as re}from"./composables-C5AKp2DU.js";function ie(e,t){let n=a(e,t?.in);if(!i(n))throw RangeError(`Invalid time value`);let o=t?.format??`extended`,s=t?.representation??`complete`,c=``,l=o===`extended`?`-`:``,u=o===`extended`?`:`:``;if(s!==`time`){let e=r(n.getDate(),2),t=r(n.getMonth()+1,2),i=r(n.getFullYear(),4);c=`${i}${l}${t}${l}${e}`}if(s!==`date`){let e=r(n.getHours(),2),t=r(n.getMinutes(),2),i=r(n.getSeconds(),2),a=c===``?``:` `;c=`${c}${a}${e}${u}${t}${u}${i}`}return c}const ae={},oe={class:`cross-background-container`};function se(e,t){return N(),E(`div`,oe,[F(e.$slots,`default`,{},void 0,!0)])}var ce=d(ae,[[`render`,se],[`__scopeId`,`data-v-455eb62c`]]);const le={"mb-1":``,"w-full":``,"gap-2":``},ue={"w-full":``};var de=k({__name:`Header`,setup(e){return(e,t)=>(N(),E(`header`,le,[W(`div`,ue,[O(X)]),O(K(g),{class:`m-1 block max-h-[10lh] min-h-[1lh] rounded-lg bg-neutral-100 p-2 text-lg text-neutral-500 outline-none dark:bg-neutral-800 dark:text-neutral-400`,to:`/settings`},{default:B(()=>[...t[0]||=[W(`div`,{"i-solar:settings-minimalistic-bold-duotone":``},null,-1)]]),_:1})]))}}),fe=de,pe=`/assets/worker-esGbNfYx.js`;const Q=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),me=e=>{let t=typeof e;return t===`object`?e===null?`null`:e?.constructor?.name??`object`:t},he=e=>{if(typeof e==`string`)return new TextEncoder().encode(e);if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);throw TypeError(`The input must be a Uint8Array, a string, or an ArrayBuffer. Received a value of the type ${me(e)}.`)},ge=e=>{let t=he(e),n=``,r,i=t.length;for(r=2;r>2],n+=Q[(t[r-2]&3)<<4|t[r-1]>>4],n+=Q[(t[r-1]&15)<<2|t[r]>>6],n+=Q[t[r]&63];return r===i+1&&(n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4],n+=`==`),r===i&&(n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4|t[r-1]>>4],n+=Q[(t[r-1]&15)<<2],n+=`=`),n};function $(e,t,n){for(let r=0;r{j().then(()=>{n.value&&(n.value.scrollTop=n.value.scrollHeight)})}),c(async()=>{j().then(()=>{n.value&&(n.value.scrollTop=n.value.scrollHeight)})}),(e,t)=>{let s=I(`auto-animate`);return N(),E(`div`,ye,[t[4]||=W(`div`,{"flex-1":``},null,-1),C((N(),E(`div`,{ref_key:`chatHistoryRef`,ref:n,px:`(N(),E(`div`,{key:n,"mb-2":``},[e.role===`error`?(N(),E(`div`,be,[W(`div`,xe,[W(`div`,Se,[W(`div`,Ce,[W(`span`,we,Y(K(r)(`stage.chat.message.character-name.core-system`)),1)]),t[0]||=W(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),K(a)&&n===K(i).length-1?(N(),E(`div`,Te)):(N(),w(K(h),{key:1,content:e.content,class:`break-words text-violet-500`,text:`base (N(),E(`div`,{key:n},[e.type===`tool-call`?(N(),E(`div`,Ae,[W(`div`,je,[t[1]||=D(` Called: `,-1),W(`code`,null,Y(e.toolCall.toolName),1)])])):e.type===`tool-call-result`?(N(),E(`div`,Me)):(N(),w(K(h),{key:2,content:e.text},null,8,[`content`]))]))),128))])):n===K(i).length-1&&!e.content?(N(),E(`div`,Ne)):T(``,!0)])])):e.role===`user`?(N(),E(`div`,Pe,[W(`div`,Fe,[W(`div`,null,[W(`span`,Ie,Y(K(r)(`stage.chat.message.character-name.you`)),1)]),e.content?(N(),w(K(h),{key:0,content:e.content,class:`break-words`,text:`base (N(),E(`div`,{key:n},[e.type===`tool-call`?(N(),E(`div`,He,[W(`div`,Ue,[t[2]||=D(` Called: `,-1),W(`code`,null,Y(e.toolCall.toolName),1)])])):e.type===`tool-call-result`?(N(),E(`div`,We)):(N(),w(K(h),{key:2,content:e.text},null,8,[`content`]))]))),128))])):(N(),E(`div`,Ge))])])):T(``,!0)])),[[s]])])}}}),qe=Ke;const Je={flex:`col`,"items-center":``,"pt-4":``},Ye={"h-full":``,"max-h":`[85vh]`,"w-full":``,py:`4`},Xe={flex:`~ col`,border:`solid 4 primary-200/20 dark:primary-400/20`,"h-full":``,"w-full":``,"overflow-scroll":``,"rounded-xl":``,bg:`primary-50/50 dark:primary-950/70`,"backdrop-blur-md":``},Ze={h:`{if(!e||!e.trim())return;let t=u.getProviderConfig(d.value);await x(e,{chatProvider:await u.getProviderInstance(d.value),model:p.value,providerConfig:t})}});async function I(){if(!(!r.value.trim()||o.value))try{let e=u.getProviderConfig(d.value);await x(r.value,{chatProvider:await u.getProviderInstance(d.value),model:p.value,providerConfig:e})}catch(e){D.value.pop(),D.value.push({role:`error`,content:e.message})}}let{destroy:L,start:R}=re(b,{onSpeechStart:()=>{i.value=!0},onVADMisfire:()=>{i.value=!1},onSpeechEnd:e=>{i.value=!1,H(e.buffer)},auto:!1});async function H(e){await k.resume();let t=await ve(e,k.sampleRate);P({type:`generate`,data:{audio:t,language:`en`}})}return z(g,async e=>{e===!1&&(L(),F())}),z(a,async e=>{e&&await h()}),z([d,p],async()=>{d.value&&p.value&&await w(p.value,await u.getProviderInstance(d.value),[])}),M(()=>{R()}),C(async()=>{r.value=``}),(t,n)=>(N(),E(`div`,Je,[W(`div`,Ye,[W(`div`,Xe,[O(qe,{"h-full":``,"flex-1":``,w:`full`,"max-h":`r.value=e,placeholder:K(A)(`stage.message`),text:`primary-500 hover:primary-600 dark:primary-300/50 dark:hover:primary-500 placeholder:primary-400 placeholder:hover:primary-500 placeholder:dark:primary-300/50 placeholder:dark:hover:primary-500`,bg:`primary-200/20 dark:primary-400/20`,"min-h":`[100px]`,"max-h":`[300px]`,"w-full":``,"rounded-t-xl":``,"p-4":``,"font-medium":``,"outline-none":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:q({"transition-colors-none placeholder:transition-colors-none":K(m)}),onSubmit:I,onCompositionstart:n[1]||=e=>o.value=!0,onCompositionend:n[2]||=e=>o.value=!1},null,8,[`modelValue`,`placeholder`,`class`])])])]),W(`div`,Qe,[W(`button`,{class:`max-h-[10lh] min-h-[1lh]`,bg:`neutral-100 dark:neutral-800`,text:`lg neutral-500 dark:neutral-400`,"hover:text":`red-500 dark:red-400`,flex:``,"items-center":``,"justify-center":``,"rounded-md":``,"p-2":``,"outline-none":``,"transition-colors":``,"transition-transform":``,"active:scale-95":``,onClick:n[3]||=(...e)=>K(T)&&K(T)(...e)},[...n[5]||=[W(`div`,{class:`i-solar:trash-bin-2-bold-duotone`},null,-1)]]),W(`button`,{class:`max-h-[10lh] min-h-[1lh]`,bg:`neutral-100 dark:neutral-800`,text:`lg neutral-500 dark:neutral-400`,flex:``,"items-center":``,"justify-center":``,"rounded-md":``,"p-2":``,"outline-none":``,"transition-colors":``,"transition-transform":``,"active:scale-95":``,onClick:n[4]||=e=>j.value=!K(j)},[O(V,{name:`fade`,mode:`out-in`},{default:B(()=>[K(j)?(N(),E(`div`,$e)):(N(),E(`div`,et))]),_:1})])])]))}}),nt=tt;const rt=[`src`],it=[`src`];var at=k({__name:`MobileHeaderLink`,setup(e){let t=v();return(e,n)=>(N(),w(K(g),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:B(()=>[K(t)?(N(),E(`img`,{key:0,src:K(te),"h-8":``,"w-8":``,class:`theme-colored`},null,8,rt)):(N(),E(`img`,{key:1,src:K(Z),"h-8":``,"w-8":``,class:`theme-colored`},null,8,it))]),_:1}))}}),ot=d(at,[[`__scopeId`,`data-v-9c3d67a4`]]);const st={"mb-1":``,"w-full":``,"gap-2":``},ct={"w-full":``,flex:``,"justify-center":``};var lt=k({__name:`MobileHeader`,setup(e){return(e,t)=>(N(),E(`header`,st,[W(`div`,ct,[O(ot)])]))}}),ut=lt;const dt={flex:`~ col`,rounded:`lg`,"overflow-hidden":``},ft={key:0,flex:``,mr:`12`},pt={flex:`~ col`,shadow:`md violet-200/20 dark:none`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,h:`unset {j().then(()=>{n.value&&(n.value.scrollTop=n.value.scrollHeight)})}),o(async()=>{j().then(()=>{n.value&&(n.value.scrollTop=n.value.scrollHeight)})}),(e,t)=>{let a=I(`auto-animate`);return N(),E(`div`,dt,[C((N(),E(`div`,{ref_key:`chatHistoryRef`,ref:n,"max-h":`35dvh`,"z-5":``,flex:`~ col`,"h-full":``,"w-full":``,"overflow-scroll":``,class:`chat-history`},[(N(!0),E(H,null,P(K(i),(e,n)=>(N(),E(`div`,{key:n,"mb-2":``},[e.role===`error`?(N(),E(`div`,ft,[W(`div`,pt,[W(`div`,mt,[W(`div`,null,[W(`span`,ht,Y(K(r)(`stage.chat.message.character-name.core-system`)),1)]),t[0]||=W(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),e.content?(N(),w(K(h),{key:0,content:e.content,class:`break-words`,text:`base {if(Ot.test(e)){let t=Date.prototype[e.replace(Ot,`$1UTC`)];t&&(Dt.prototype[e]=t)}});var kt=class extends Dt{toString(){let e=this.toDateString(),t=this.toTimeString();return`${e} ${t}`}toDateString(){let e=At.format(this),t=jt.format(this),n=this.getFullYear();return`${e} ${t} ${n}`}toTimeString(){let e=Mt.format(this);return`${e} GMT+0000 (Coordinated Universal Time)`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{timeZone:`UTC`,...t})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{timeZone:`UTC`,...t})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{timeZone:`UTC`,...t})}},At=new Intl.DateTimeFormat(`en-US`,{weekday:`short`,timeZone:`UTC`}),jt=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,timeZone:`UTC`}),Mt=new Intl.DateTimeFormat(`en-GB`,{hour12:!1,hour:`numeric`,minute:`numeric`,second:`numeric`,timeZone:`UTC`});const Nt={"max-w":`calc[100%-2rem]`,"mx-auto":``,"h-full":``,flex:``,"flex-col":``,"pt-14":``},Pt={"flex-1":``},Ft={grid:`~ cols-[70px_1fr]`,"mt-4":``,"gap-2":``,"text-sm":``},It={"font-mono":``},Lt={"font-mono":``},Rt={"font-mono":``};var zt=k({__name:`About`,setup(e){let t=G(!1),n=ie(new kt(`Thu Sep 11 02:32:21 2025 +0800`));return(e,r)=>(N(),E(H,null,[W(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`About`,onClick:r[0]||=e=>t.value=!t.value},[...r[2]||=[W(`div`,{"i-solar:info-circle-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},null,-1)]]),O(K(p),{modelValue:t.value,"onUpdate:modelValue":r[1]||=e=>t.value=e},{default:B(()=>[W(`div`,Nt,[r[7]||=W(`div`,{"mb-14":``,"text-center":``,"text-5xl":``,"font-sans-rounded":``},[W(`span`,{text:`neutral-400 dark:neutral-100/65`},`Project`),D(),W(`span`,{text:`pink-400 dark:pink-300/90`},`AIRI`),W(`div`,{"mt-2":``,"text-base":``},` Web ver. `)],-1),W(`div`,Pt,[r[6]||=W(`div`,{text:`neutral-500 dark:neutral-400`},` Application build information `,-1),W(`div`,Ft,[r[3]||=W(`div`,{text:`neutral-500 dark:neutral-400`},` Branch `,-1),W(`div`,It,Y(K(`main`)),1),r[4]||=W(`div`,{text:`neutral-500 dark:neutral-400`},` Commit `,-1),W(`div`,Lt,Y(K(`5139d44db1`).substring(0,7)),1),r[5]||=W(`div`,{text:`neutral-500 dark:neutral-400`},` Built on `,-1),W(`div`,Rt,Y(K(n)),1)])]),r[8]||=W(`div`,{"my-10":``},[W(`div`,{text:`neutral-500 dark:neutral-400`},` About `),W(`div`,{"mt-4":``,flex:``,"flex-col":``,"gap-2":``},[W(`a`,{class:q([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,href:`https://airi.moeru.ai/docs/`,target:`_blank`},[W(`div`,{"i-solar:home-smile-outline":``}),W(`div`,null,`Home`)]),W(`a`,{href:`https://airi.moeru.ai/docs/en/docs/overview/`,class:q([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,target:`_blank`},[W(`div`,{"i-solar:document-add-outline":``}),W(`div`,null,`Documentations`)]),W(`a`,{href:`https://github.com/moeru-ai/airi`,class:q([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,target:`_blank`},[W(`div`,{"i-simple-icons:github":``}),W(`div`,null,`GitHub`)])])],-1)])]),_:1},8,[`modelValue`])],64))}}),Bt=zt;const Vt={"w-full":``,flex:``,"flex-1":``,"items-center":``,"self-end":``,"justify-end":``,"gap-2":``},Ht={key:0,"w-full":``,flex:``,"justify-between":``,"gap-2":``},Ut={key:0,"i-solar:tuning-outline":``,"size-5":``},Wt={key:1,"i-solar:alt-arrow-right-outline":``,"size-5":``};var Gt=k({__name:`ViewControls`,props:{modelValue:{required:!0},modelModifiers:{}},emits:A([`reset`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,{stageModelRenderer:r,stageViewControlsEnabled:i}=_(y()),a=L(e,`modelValue`);function o(e){if(a.value===e){n(`reset`);return}a.value=e}return(e,t)=>(N(),E(`div`,Vt,[O(V,{name:`fade`},{default:B(()=>[K(i)?(N(),E(`div`,Ht,[O(K(m),{variant:`secondary-muted`,toggled:a.value===`x`,"w-full":``,onClick:t[0]||=e=>o(`x`)},{default:B(()=>[...t[5]||=[D(` X `,-1)]]),_:1},8,[`toggled`]),O(K(m),{variant:`secondary-muted`,toggled:a.value===`y`,"w-full":``,onClick:t[1]||=e=>o(`y`)},{default:B(()=>[...t[6]||=[D(` Y `,-1)]]),_:1},8,[`toggled`]),K(r)===`vrm`?(N(),w(K(m),{key:0,variant:`secondary-muted`,toggled:a.value===`z`,"w-full":``,onClick:t[2]||=e=>o(`z`)},{default:B(()=>[...t[7]||=[D(` Z `,-1)]]),_:1},8,[`toggled`])):T(``,!0),O(K(m),{variant:`secondary-muted`,toggled:a.value===`scale`,"w-full":``,onClick:t[3]||=e=>o(`scale`)},{default:B(()=>[...t[8]||=[D(` Scale `,-1)]]),_:1},8,[`toggled`])])):T(``,!0)]),_:1}),W(`button`,{"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"justify-self-end":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,title:`View`,text:`neutral-500 dark:neutral-400`,onClick:t[4]||=e=>i.value=!K(i)},[O(V,{name:`fade`,mode:`out-in`},{default:B(()=>[K(i)?(N(),E(`div`,Wt)):(N(),E(`div`,Ut))]),_:1})])]))}}),Kt=d(Gt,[[`__scopeId`,`data-v-4fe382a1`]]);const qt={key:0},Jt={key:0,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},Yt={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},Xt={key:1,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},Zt={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},Qt={key:2,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},$t={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},en={key:3,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},tn={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`};var nn=k({__name:`Inputs`,props:{mode:{}},setup(e,{expose:t}){let r=e,{stageModelRenderer:i,stageViewControlsEnabled:a}=_(y()),{scale:s,modelOffset:c,modelSize:l}=_(n()),{scale:d,position:f}=_(o()),p=U({get:()=>{switch(i.value){case`live2d`:return f.value.x;case`vrm`:return c.value.x;default:return 0}},set:e=>{switch(i.value){case`live2d`:f.value.x=e;break;case`vrm`:c.value.x=e;break;default:break}}}),m=U(()=>i.value===`live2d`?-500:-l.value.x-10),h=U(()=>i.value===`vrm`?500:l.value.x+10),g=U({get:()=>{switch(i.value){case`live2d`:return f.value.y;case`vrm`:return c.value.y;default:return 0}},set:e=>{switch(i.value){case`live2d`:f.value.y=e;break;case`vrm`:c.value.y=e;break;default:break}}}),v=U(()=>i.value===`live2d`?-500:-l.value.y-10),b=U(()=>i.value===`vrm`?500:l.value.y+10),x=U({get:()=>{switch(i.value){case`live2d`:return 0;case`vrm`:return c.value.z;default:return 0}},set:e=>{switch(i.value){case`live2d`:break;case`vrm`:c.value.z=e;break;default:break}}}),S=U(()=>i.value===`live2d`?-500:-l.value.z-10),C=U(()=>i.value===`live2d`?500:l.value.z+10),D=U({get:()=>i.value===`live2d`?d.value:s.value,set:e=>{i.value===`live2d`?d.value=e:s.value=e}});function k(){switch(r.mode){case`x`:p.value=0;break;case`y`:g.value=0;break;case`z`:x.value=0;break;case`scale`:D.value=1;break}}return t({resetOnMode:k}),(e,t)=>(N(),w(V,{name:`fade-side-pops-in`},{default:B(()=>[K(a)?(N(),E(`div`,qt,[O(V,{name:`fade-side-pops-in`,mode:`out-in`},{default:B(()=>[r.mode===`x`?(N(),E(`div`,Jt,[O(K(u),{modelValue:p.value,"onUpdate:modelValue":t[0]||=e=>p.value=e,min:m.value,max:h.value,step:.01,"data-direction":`vertical`,h:`50%`,"write-vertical-left":``},null,8,[`modelValue`,`min`,`max`]),W(`div`,Yt,Y(p.value.toFixed(2)),1)])):r.mode===`y`?(N(),E(`div`,Xt,[O(K(u),{modelValue:g.value,"onUpdate:modelValue":t[1]||=e=>g.value=e,min:v.value,max:b.value,step:.01,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`,`min`,`max`]),W(`div`,Zt,Y(g.value.toFixed(2)),1)])):K(i)===`vrm`&&r.mode===`z`?(N(),E(`div`,Qt,[O(K(u),{modelValue:x.value,"onUpdate:modelValue":t[2]||=e=>x.value=e,min:S.value,max:C.value,step:.01,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`,`min`,`max`]),W(`div`,$t,Y(x.value.toFixed(2)),1)])):r.mode===`scale`?(N(),E(`div`,en,[O(K(u),{modelValue:D.value,"onUpdate:modelValue":t[3]||=e=>D.value=e,min:0,max:3,step:1e-4,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`]),W(`div`,tn,Y(D.value.toFixed(2)),1)])):T(``,!0)]),_:1})])):T(``,!0)]),_:1}))}}),rn=d(nn,[[`__scopeId`,`data-v-32c23305`]]);const an={fixed:``,"bottom-0":``,"w-full":``,flex:``,"flex-col":``},on={relative:``,"w-full":``,"self-end":``},sn={top:`50%`,"translate-y":`[-50%]`,fixed:``,"z-15":``,"px-3":``},cn={"translate-y":`[-100%]`,absolute:``,"right-0":``,"w-full":``,"px-3":``,"pb-3":``,"font-sans":``},ln={flex:`~ col`,"w-full":``,"gap-1":``},un={key:0,"i-solar:moon-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},dn={key:1,"i-solar:sun-2-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`};var fn=k({__name:`MobileInteractiveArea`,setup(n){let r=v({disableTransition:!1}),i=G(`scale`),a=R(`viewControlsInputs`),o=G(``),s=G(!1),u=G(!1),d=x(),p=l(),{activeProvider:m,activeModel:h}=_(c());b(document.documentElement,()=>d.update());let{themeColorsHueDynamic:C,stageViewControlsEnabled:D}=_(y()),{enabled:k,selectedAudioInput:A}=_(S()),{send:j,onAfterMessageComposed:P,discoverToolsCompatibility:F,cleanupMessages:I}=t(),{messages:L}=_(t()),{t:H}=f();function U(){return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}async function Y(){U()||await X()}async function X(){if(!(!o.value.trim()||u.value))try{let e=p.getProviderConfig(m.value);await j(o.value,{chatProvider:await p.getProviderInstance(m.value),model:h.value,providerConfig:e})}catch(e){L.value.pop(),L.value.push({role:`error`,content:e.message})}}let{destroy:Z,start:te}=re(A,{onSpeechStart:()=>{s.value=!0},onVADMisfire:()=>{s.value=!1},onSpeechEnd:e=>{s.value=!1,ne(e)},auto:!1});function ne(e){alert(`Transcription is not implemented yet`)}return z(k,async e=>{e===!1&&Z()}),P(async()=>{o.value=``}),z([m,h],async()=>{m.value&&h.value&&await F(h.value,await p.getProviderInstance(m.value),[])}),M(()=>{te(),d.update()}),(t,n)=>(N(),E(`div`,an,[(N(),w(ee,null,[O(V,{name:`fade`},{default:B(()=>[K(D)?T(``,!0):(N(),w(Et,{key:0,"max-w":`[calc(100%-3.5rem)]`,"w-full":``,"self-start":``,"pl-3":``}))]),_:1})],1024)),W(`div`,on,[W(`div`,sn,[O(rn,{ref:`viewControlsInputs`,mode:i.value},null,8,[`mode`])]),W(`div`,cn,[W(`div`,ln,[O(Bt),W(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Theme`,onClick:n[0]||=e=>r.value=!K(r)},[O(V,{name:`fade`,mode:`out-in`},{default:B(()=>[K(r)?(N(),E(`div`,un)):(N(),E(`div`,dn))]),_:1})]),O(K(g),{to:`/settings`,border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Settings`},{default:B(()=>[...n[7]||=[W(`div`,{"i-solar:settings-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},null,-1)]]),_:1}),O(Kt,{modelValue:i.value,"onUpdate:modelValue":n[1]||=e=>i.value=e,onReset:n[2]||=()=>a.value?.resetOnMode()},null,8,[`modelValue`]),W(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Cleanup Messages`,onClick:n[3]||=(...e)=>K(I)&&K(I)(...e)},[...n[8]||=[W(`div`,{class:`i-solar:trash-bin-2-bold-duotone`},null,-1)]])])]),W(`div`,{bg:`white dark:neutral-800`,"max-h-100dvh":``,"max-w-100dvw":``,"w-full":``,flex:``,"gap-1":``,"overflow-auto":``,"px-3":``,"pt-2":``,style:J({paddingBottom:`${Math.max(Number.parseFloat(K(d).bottom.value.replace(`px`,``)),12)}px`})},[O(K(e),{modelValue:o.value,"onUpdate:modelValue":n[4]||=e=>o.value=e,placeholder:K(H)(`stage.message`),border:`solid 2 neutral-200/60 dark:neutral-700/60`,text:`neutral-500 hover:neutral-600 dark:neutral-100 dark:hover:neutral-200 placeholder:neutral-400 placeholder:hover:neutral-500 placeholder:dark:neutral-300 placeholder:dark:hover:neutral-400`,bg:`neutral-100/80 dark:neutral-950/80`,"max-h":`[10lh]`,"min-h":`[calc(1lh+4px+4px)]`,"w-full":``,"resize-none":``,"overflow-y-scroll":``,rounded:`[1lh]`,"px-4":``,"py-0.5":``,"outline-none":``,"backdrop-blur-md":``,"scrollbar-none":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:q([K(C)?`transition-colors-none placeholder:transition-colors-none`:``]),"default-height":`1lh`,onSubmit:Y,onCompositionstart:n[5]||=e=>u.value=!0,onCompositionend:n[6]||=e=>u.value=!1},null,8,[`modelValue`,`placeholder`,`class`]),o.value.trim()||u.value?(N(),E(`button`,{key:0,w:`[calc(1lh+4px+4px)]`,h:`[calc(1lh+4px+4px)]`,"aspect-square":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-full":``,"outline-none":``,"backdrop-blur-md":``,text:`neutral-500 hover:neutral-600 dark:neutral-900 dark:hover:neutral-800`,bg:`primary-50/80 dark:neutral-100/80 hover:neutral-50`,transition:`all duration-250 ease-in-out`,onClick:X},[...n[9]||=[W(`div`,{"i-solar:arrow-up-outline":``},null,-1)]])):T(``,!0)],4)])]))}}),pn=fn;const mn={class:`relative`},hn={absolute:``,"left-0":``,"right-0":``,"top-0":``,"w-full":``,"overflow-hidden":``};var gn=k({__name:`AnimatedWave`,props:{height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:`oklch(95% 0.10 var(--chromatic-hue))`},direction:{default:`down`},movementDirection:{default:`left`},animationSpeed:{default:50}},setup(e){let t=e,n=G(t.height),r=G(t.amplitude),i=G(t.waveLength),a=G(t.fillColor),o=G(t.direction),s=G(t.movementDirection);function c(e,t,n,r,i){let a=[],o=Math.ceil(e/r),s=o*r,c=i===`up`?n:t-n;a.push(`M 0 ${c}`);let l=Math.PI*2/r;for(let e=0;e<=s;e+=1){let t=n*Math.sin(l*e),r=i===`up`?c-t:c+t;a.push(`L ${e} ${r}`)}let u=i===`up`?t:0;return a.push(`L ${s} ${u}`),a.push(`L 0 ${u} Z`),a.join(` `)}let l=U(()=>n.value+r.value*2),u=U(()=>{let e=` - - `;return`url(data:image/svg+xml;base64,${btoa(e)})`});return z(()=>[t.height,t.amplitude,t.waveLength,t.fillColor,t.direction,t.movementDirection],()=>{n.value=t.height,r.value=t.amplitude,i.value=t.waveLength,a.value=t.fillColor,o.value=t.direction,s.value=t.movementDirection},{immediate:!0}),(e,t)=>(N(),E(`div`,mn,[F(e.$slots,`default`,{},void 0,!0),W(`div`,hn,[W(`div`,{class:`colored-area wave`,style:J({background:a.value,height:`${l.value}px`,maskImage:u.value,WebkitMaskImage:u.value,"--wave-translate":`${-i.value}px`,"--animation-duration":`${i.value/e.animationSpeed}s`,"animation-direction":s.value===`left`?`normal`:`reverse`})},null,4)])]))}}),_n=d(gn,[[`__scopeId`,`data-v-33a54ad1`]]);export{_n as b,pn as c,ut as d,nt as e,fe as f,ce as g}; \ No newline at end of file diff --git a/assets/AnimatedWave-D3VizsVF.js b/assets/AnimatedWave-D3VizsVF.js new file mode 100644 index 0000000000000000000000000000000000000000..333362a4cbf628287a9527c504826f13b9093eb0 --- /dev/null +++ b/assets/AnimatedWave-D3VizsVF.js @@ -0,0 +1,3 @@ +import{b as e}from"./Basic-IbpirTdD.js";import{c as t,e as n,f as r,g as i,h as a,k as o}from"./Scenes-CKSNtwSU.js";import{P as s,a3 as c,a4 as l,aT as u,aY as d,ae as f,af as p,ao as m,av as h,bK as g,bQ as _,bV as v,c as y,c4 as b,c5 as x,d as S,e$ as C,eA as w,eB as T,eC as E,eD as D,eF as O,eG as k,eH as A,eM as j,eO as M,eP as N,eR as P,eT as F,eU as I,eW as L,eX as R,eY as z,eZ as B,ep as V,ew as H,ex as U,ez as W,f0 as G,f2 as K,f7 as q,f8 as J,fa as Y,fb as X}from"./index-D3Bcbz9S.js";import{b as Z,c as ee,d as te}from"./HeaderLink-CWxXVf7j.js";import{b as ne,c as re}from"./composables-Tp0cITw9.js";function ie(e,t){let n=a(e,t?.in);if(!i(n))throw RangeError(`Invalid time value`);let o=t?.format??`extended`,s=t?.representation??`complete`,c=``,l=o===`extended`?`-`:``,u=o===`extended`?`:`:``;if(s!==`time`){let e=r(n.getDate(),2),t=r(n.getMonth()+1,2),i=r(n.getFullYear(),4);c=`${i}${l}${t}${l}${e}`}if(s!==`date`){let e=r(n.getHours(),2),t=r(n.getMinutes(),2),i=r(n.getSeconds(),2),a=c===``?``:` `;c=`${c}${a}${e}${u}${t}${u}${i}`}return c}const ae={},oe={class:`cross-background-container`};function se(e,t){return P(),D(`div`,oe,[I(e.$slots,`default`,{},void 0,!0)])}var ce=d(ae,[[`render`,se],[`__scopeId`,`data-v-455eb62c`]]);const le={"mb-1":``,"w-full":``,"gap-2":``},ue={"w-full":``};var de=A({__name:`Header`,setup(e){return(e,t)=>(P(),D(`header`,le,[w(`div`,ue,[k(Z)]),k(q(g),{class:`m-1 block max-h-[10lh] min-h-[1lh] rounded-lg bg-neutral-100 p-2 text-lg text-neutral-500 outline-none dark:bg-neutral-800 dark:text-neutral-400`,to:`/settings`},{default:C(()=>[...t[0]||=[w(`div`,{"i-solar:settings-minimalistic-bold-duotone":``},null,-1)]]),_:1})]))}}),fe=de,pe=`/assets/worker-esGbNfYx.js`;const Q=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),me=e=>{let t=typeof e;return t===`object`?e===null?`null`:e?.constructor?.name??`object`:t},he=e=>{if(typeof e==`string`)return new TextEncoder().encode(e);if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);throw TypeError(`The input must be a Uint8Array, a string, or an ArrayBuffer. Received a value of the type ${me(e)}.`)},ge=e=>{let t=he(e),n=``,r,i=t.length;for(r=2;r>2],n+=Q[(t[r-2]&3)<<4|t[r-1]>>4],n+=Q[(t[r-1]&15)<<2|t[r]>>6],n+=Q[t[r]&63];return r===i+1&&(n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4],n+=`==`),r===i&&(n+=Q[t[r-2]>>2],n+=Q[(t[r-2]&3)<<4|t[r-1]>>4],n+=Q[(t[r-1]&15)<<2],n+=`=`),n};function $(e,t,n){for(let r=0;r{M().then(()=>{n.value&&(n.value.scrollTop=n.value.scrollHeight)})}),c(async()=>{M().then(()=>{n.value&&(n.value.scrollTop=n.value.scrollHeight)})}),(e,t)=>{let s=L(`auto-animate`);return P(),D(`div`,ye,[t[4]||=w(`div`,{"flex-1":``},null,-1),G((P(),D(`div`,{ref_key:`chatHistoryRef`,ref:n,px:`(P(),D(`div`,{key:n,"mb-2":``},[e.role===`error`?(P(),D(`div`,be,[w(`div`,xe,[w(`div`,Se,[w(`div`,Ce,[w(`span`,we,X(q(r)(`stage.chat.message.character-name.core-system`)),1)]),t[0]||=w(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),q(a)&&n===q(i).length-1?(P(),D(`div`,Te)):(P(),T(q(h),{key:1,content:e.content,class:`break-words text-violet-500`,text:`base (P(),D(`div`,{key:n},[e.type===`tool-call`?(P(),D(`div`,Ae,[w(`div`,je,[t[1]||=O(` Called: `,-1),w(`code`,null,X(e.toolCall.toolName),1)])])):e.type===`tool-call-result`?(P(),D(`div`,Me)):(P(),T(q(h),{key:2,content:e.text},null,8,[`content`]))]))),128))])):n===q(i).length-1&&!e.content?(P(),D(`div`,Ne)):E(``,!0)])])):e.role===`user`?(P(),D(`div`,Pe,[w(`div`,Fe,[w(`div`,null,[w(`span`,Ie,X(q(r)(`stage.chat.message.character-name.you`)),1)]),e.content?(P(),T(q(h),{key:0,content:e.content,class:`break-words`,text:`base (P(),D(`div`,{key:n},[e.type===`tool-call`?(P(),D(`div`,He,[w(`div`,Ue,[t[2]||=O(` Called: `,-1),w(`code`,null,X(e.toolCall.toolName),1)])])):e.type===`tool-call-result`?(P(),D(`div`,We)):(P(),T(q(h),{key:2,content:e.text},null,8,[`content`]))]))),128))])):(P(),D(`div`,Ge))])])):E(``,!0)])),[[s]])])}}}),qe=Ke;const Je={flex:`col`,"items-center":``,"pt-4":``},Ye={"h-full":``,"max-h":`[85vh]`,"w-full":``,py:`4`},Xe={flex:`~ col`,border:`solid 4 primary-200/20 dark:primary-400/20`,"h-full":``,"w-full":``,"overflow-scroll":``,"rounded-xl":``,bg:`primary-50/50 dark:primary-950/70`,"backdrop-blur-md":``},Ze={h:`{if(!e||!e.trim())return;let t=u.getProviderConfig(d.value);await x(e,{chatProvider:await u.getProviderInstance(d.value),model:p.value,providerConfig:t})}});async function R(){if(!(!r.value.trim()||o.value))try{let e=u.getProviderConfig(d.value);await x(r.value,{chatProvider:await u.getProviderInstance(d.value),model:p.value,providerConfig:e})}catch(e){A.value.pop(),A.value.push({role:`error`,content:e.message})}}let{destroy:z,start:H}=re(b,{onSpeechStart:()=>{i.value=!0},onVADMisfire:()=>{i.value=!1},onSpeechEnd:e=>{i.value=!1,U(e.buffer)},auto:!1});async function U(e){await j.resume();let t=await ve(e,j.sampleRate);I({type:`generate`,data:{audio:t,language:`en`}})}return B(g,async e=>{e===!1&&(z(),L())}),B(a,async e=>{e&&await h()}),B([d,p],async()=>{d.value&&p.value&&await E(p.value,await u.getProviderInstance(d.value),[])}),N(()=>{H()}),T(async()=>{r.value=``}),(t,n)=>(P(),D(`div`,Je,[w(`div`,Ye,[w(`div`,Xe,[k(qe,{"h-full":``,"flex-1":``,w:`full`,"max-h":`r.value=e,placeholder:q(M)(`stage.message`),text:`primary-500 hover:primary-600 dark:primary-300/50 dark:hover:primary-500 placeholder:primary-400 placeholder:hover:primary-500 placeholder:dark:primary-300/50 placeholder:dark:hover:primary-500`,bg:`primary-200/20 dark:primary-400/20`,"min-h":`[100px]`,"max-h":`[300px]`,"w-full":``,"rounded-t-xl":``,"p-4":``,"font-medium":``,"outline-none":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:J({"transition-colors-none placeholder:transition-colors-none":q(m)}),onSubmit:R,onCompositionstart:n[1]||=e=>o.value=!0,onCompositionend:n[2]||=e=>o.value=!1},null,8,[`modelValue`,`placeholder`,`class`])])])]),w(`div`,Qe,[w(`button`,{class:`max-h-[10lh] min-h-[1lh]`,bg:`neutral-100 dark:neutral-800`,text:`lg neutral-500 dark:neutral-400`,"hover:text":`red-500 dark:red-400`,flex:``,"items-center":``,"justify-center":``,"rounded-md":``,"p-2":``,"outline-none":``,"transition-colors":``,"transition-transform":``,"active:scale-95":``,onClick:n[3]||=(...e)=>q(O)&&q(O)(...e)},[...n[5]||=[w(`div`,{class:`i-solar:trash-bin-2-bold-duotone`},null,-1)]]),w(`button`,{class:`max-h-[10lh] min-h-[1lh]`,bg:`neutral-100 dark:neutral-800`,text:`lg neutral-500 dark:neutral-400`,flex:``,"items-center":``,"justify-center":``,"rounded-md":``,"p-2":``,"outline-none":``,"transition-colors":``,"transition-transform":``,"active:scale-95":``,onClick:n[4]||=e=>F.value=!q(F)},[k(V,{name:`fade`,mode:`out-in`},{default:C(()=>[q(F)?(P(),D(`div`,$e)):(P(),D(`div`,et))]),_:1})])])]))}}),nt=tt;const rt=[`src`],it=[`src`];var at=A({__name:`MobileHeaderLink`,setup(e){let t=v();return(e,n)=>(P(),T(q(g),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:C(()=>[q(t)?(P(),D(`img`,{key:0,src:q(te),"h-8":``,"w-8":``,class:`theme-colored`},null,8,rt)):(P(),D(`img`,{key:1,src:q(ee),"h-8":``,"w-8":``,class:`theme-colored`},null,8,it))]),_:1}))}}),ot=d(at,[[`__scopeId`,`data-v-9c3d67a4`]]);const st={"mb-1":``,"w-full":``,"gap-2":``},ct={"w-full":``,flex:``,"justify-center":``};var lt=A({__name:`MobileHeader`,setup(e){return(e,t)=>(P(),D(`header`,st,[w(`div`,ct,[k(ot)])]))}}),ut=lt;const dt={flex:`~ col`,rounded:`lg`,"overflow-hidden":``},ft={key:0,flex:``,mr:`12`},pt={flex:`~ col`,shadow:`md violet-200/20 dark:none`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,h:`unset {M().then(()=>{n.value&&(n.value.scrollTop=n.value.scrollHeight)})}),o(async()=>{M().then(()=>{n.value&&(n.value.scrollTop=n.value.scrollHeight)})}),(e,t)=>{let a=L(`auto-animate`);return P(),D(`div`,dt,[G((P(),D(`div`,{ref_key:`chatHistoryRef`,ref:n,"max-h":`35dvh`,"z-5":``,flex:`~ col`,"h-full":``,"w-full":``,"overflow-scroll":``,class:`chat-history`},[(P(!0),D(H,null,F(q(i),(e,n)=>(P(),D(`div`,{key:n,"mb-2":``},[e.role===`error`?(P(),D(`div`,ft,[w(`div`,pt,[w(`div`,mt,[w(`div`,null,[w(`span`,ht,X(q(r)(`stage.chat.message.character-name.core-system`)),1)]),t[0]||=w(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),e.content?(P(),T(q(h),{key:0,content:e.content,class:`break-words`,text:`base {if(Ot.test(e)){let t=Date.prototype[e.replace(Ot,`$1UTC`)];t&&(Dt.prototype[e]=t)}});var kt=class extends Dt{toString(){let e=this.toDateString(),t=this.toTimeString();return`${e} ${t}`}toDateString(){let e=At.format(this),t=jt.format(this),n=this.getFullYear();return`${e} ${t} ${n}`}toTimeString(){let e=Mt.format(this);return`${e} GMT+0000 (Coordinated Universal Time)`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{timeZone:`UTC`,...t})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{timeZone:`UTC`,...t})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{timeZone:`UTC`,...t})}},At=new Intl.DateTimeFormat(`en-US`,{weekday:`short`,timeZone:`UTC`}),jt=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,timeZone:`UTC`}),Mt=new Intl.DateTimeFormat(`en-GB`,{hour12:!1,hour:`numeric`,minute:`numeric`,second:`numeric`,timeZone:`UTC`});const Nt={"max-w":`calc[100%-2rem]`,"mx-auto":``,"h-full":``,flex:``,"flex-col":``,"pt-14":``},Pt={"flex-1":``},Ft={grid:`~ cols-[70px_1fr]`,"mt-4":``,"gap-2":``,"text-sm":``},It={"font-mono":``},Lt={"font-mono":``},Rt={"font-mono":``};var zt=A({__name:`About`,setup(e){let t=K(!1),n=ie(new kt(`Thu Sep 11 14:18:44 2025 +0800`));return(e,r)=>(P(),D(H,null,[w(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`About`,onClick:r[0]||=e=>t.value=!t.value},[...r[2]||=[w(`div`,{"i-solar:info-circle-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},null,-1)]]),k(q(p),{modelValue:t.value,"onUpdate:modelValue":r[1]||=e=>t.value=e},{default:C(()=>[w(`div`,Nt,[r[7]||=w(`div`,{"mb-14":``,"text-center":``,"text-5xl":``,"font-sans-rounded":``},[w(`span`,{text:`neutral-400 dark:neutral-100/65`},`Project`),O(),w(`span`,{text:`pink-400 dark:pink-300/90`},`AIRI`),w(`div`,{"mt-2":``,"text-base":``},` Web ver. `)],-1),w(`div`,Pt,[r[6]||=w(`div`,{text:`neutral-500 dark:neutral-400`},` Application build information `,-1),w(`div`,Ft,[r[3]||=w(`div`,{text:`neutral-500 dark:neutral-400`},` Branch `,-1),w(`div`,It,X(q(`main`)),1),r[4]||=w(`div`,{text:`neutral-500 dark:neutral-400`},` Commit `,-1),w(`div`,Lt,X(q(`60b855d512`).substring(0,7)),1),r[5]||=w(`div`,{text:`neutral-500 dark:neutral-400`},` Built on `,-1),w(`div`,Rt,X(q(n)),1)])]),r[8]||=w(`div`,{"my-10":``},[w(`div`,{text:`neutral-500 dark:neutral-400`},` About `),w(`div`,{"mt-4":``,flex:``,"flex-col":``,"gap-2":``},[w(`a`,{class:J([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,href:`https://airi.moeru.ai/docs/`,target:`_blank`},[w(`div`,{"i-solar:home-smile-outline":``}),w(`div`,null,`Home`)]),w(`a`,{href:`https://airi.moeru.ai/docs/en/docs/overview/`,class:J([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,target:`_blank`},[w(`div`,{"i-solar:document-add-outline":``}),w(`div`,null,`Documentations`)]),w(`a`,{href:`https://github.com/moeru-ai/airi`,class:J([`block`,`flex items-center gap-2`,`rounded-xl px-3 py-2 lg:px-5 lg:py-3 outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base`,`text-slate-700 dark:text-slate-100`]),bg:`black/4 dark:black/10 dark:hover:white/30`,transition:`colors,transform duration-200 ease-in-out`,target:`_blank`},[w(`div`,{"i-simple-icons:github":``}),w(`div`,null,`GitHub`)])])],-1)])]),_:1},8,[`modelValue`])],64))}}),Bt=zt;const Vt={"w-full":``,flex:``,"flex-1":``,"items-center":``,"self-end":``,"justify-end":``,"gap-2":``},Ht={key:0,"w-full":``,flex:``,"justify-between":``,"gap-2":``},Ut={key:0,"i-solar:tuning-outline":``,"size-5":``},Wt={key:1,"i-solar:alt-arrow-right-outline":``,"size-5":``};var Gt=A({__name:`ViewControls`,props:{modelValue:{required:!0},modelModifiers:{}},emits:j([`reset`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,{stageModelRenderer:r,stageViewControlsEnabled:i}=_(y()),a=R(e,`modelValue`);function o(e){if(a.value===e){n(`reset`);return}a.value=e}return(e,t)=>(P(),D(`div`,Vt,[k(V,{name:`fade`},{default:C(()=>[q(i)?(P(),D(`div`,Ht,[k(q(m),{variant:`secondary-muted`,toggled:a.value===`x`,"w-full":``,onClick:t[0]||=e=>o(`x`)},{default:C(()=>[...t[5]||=[O(` X `,-1)]]),_:1},8,[`toggled`]),k(q(m),{variant:`secondary-muted`,toggled:a.value===`y`,"w-full":``,onClick:t[1]||=e=>o(`y`)},{default:C(()=>[...t[6]||=[O(` Y `,-1)]]),_:1},8,[`toggled`]),q(r)===`vrm`?(P(),T(q(m),{key:0,variant:`secondary-muted`,toggled:a.value===`z`,"w-full":``,onClick:t[2]||=e=>o(`z`)},{default:C(()=>[...t[7]||=[O(` Z `,-1)]]),_:1},8,[`toggled`])):E(``,!0),k(q(m),{variant:`secondary-muted`,toggled:a.value===`scale`,"w-full":``,onClick:t[3]||=e=>o(`scale`)},{default:C(()=>[...t[8]||=[O(` Scale `,-1)]]),_:1},8,[`toggled`])])):E(``,!0)]),_:1}),w(`button`,{"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"justify-self-end":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,title:`View`,text:`neutral-500 dark:neutral-400`,onClick:t[4]||=e=>i.value=!q(i)},[k(V,{name:`fade`,mode:`out-in`},{default:C(()=>[q(i)?(P(),D(`div`,Wt)):(P(),D(`div`,Ut))]),_:1})])]))}}),Kt=d(Gt,[[`__scopeId`,`data-v-4fe382a1`]]);const qt={key:0},Jt={key:0,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},Yt={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},Xt={key:1,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},Zt={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},Qt={key:2,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},$t={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`},en={key:3,relative:``,class:`[&_.round-range-tooltip]:hover:opacity-100`},tn={class:`round-range-tooltip`,top:`50%`,"translate-y":`[-50%]`,absolute:``,"left-10":``,"font-mono":``,"op-0":``,transition:`all duration-200 ease-in-out`};var nn=A({__name:`Inputs`,props:{mode:{}},setup(e,{expose:t}){let r=e,{stageModelRenderer:i,stageViewControlsEnabled:a}=_(y()),{scale:s,modelOffset:c,modelSize:l}=_(n()),{scale:d,position:f}=_(o()),p=W({get:()=>{switch(i.value){case`live2d`:return f.value.x;case`vrm`:return c.value.x;default:return 0}},set:e=>{switch(i.value){case`live2d`:f.value.x=e;break;case`vrm`:c.value.x=e;break;default:break}}}),m=W(()=>i.value===`live2d`?-500:-l.value.x-10),h=W(()=>i.value===`vrm`?500:l.value.x+10),g=W({get:()=>{switch(i.value){case`live2d`:return f.value.y;case`vrm`:return c.value.y;default:return 0}},set:e=>{switch(i.value){case`live2d`:f.value.y=e;break;case`vrm`:c.value.y=e;break;default:break}}}),v=W(()=>i.value===`live2d`?-500:-l.value.y-10),b=W(()=>i.value===`vrm`?500:l.value.y+10),x=W({get:()=>{switch(i.value){case`live2d`:return 0;case`vrm`:return c.value.z;default:return 0}},set:e=>{switch(i.value){case`live2d`:break;case`vrm`:c.value.z=e;break;default:break}}}),S=W(()=>i.value===`live2d`?-500:-l.value.z-10),O=W(()=>i.value===`live2d`?500:l.value.z+10),A=W({get:()=>i.value===`live2d`?d.value:s.value,set:e=>{i.value===`live2d`?d.value=e:s.value=e}});function j(){switch(r.mode){case`x`:p.value=0;break;case`y`:g.value=0;break;case`z`:x.value=0;break;case`scale`:A.value=1;break}}return t({resetOnMode:j}),(e,t)=>(P(),T(V,{name:`fade-side-pops-in`},{default:C(()=>[q(a)?(P(),D(`div`,qt,[k(V,{name:`fade-side-pops-in`,mode:`out-in`},{default:C(()=>[r.mode===`x`?(P(),D(`div`,Jt,[k(q(u),{modelValue:p.value,"onUpdate:modelValue":t[0]||=e=>p.value=e,min:m.value,max:h.value,step:.01,"data-direction":`vertical`,h:`50%`,"write-vertical-left":``},null,8,[`modelValue`,`min`,`max`]),w(`div`,Yt,X(p.value.toFixed(2)),1)])):r.mode===`y`?(P(),D(`div`,Xt,[k(q(u),{modelValue:g.value,"onUpdate:modelValue":t[1]||=e=>g.value=e,min:v.value,max:b.value,step:.01,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`,`min`,`max`]),w(`div`,Zt,X(g.value.toFixed(2)),1)])):q(i)===`vrm`&&r.mode===`z`?(P(),D(`div`,Qt,[k(q(u),{modelValue:x.value,"onUpdate:modelValue":t[2]||=e=>x.value=e,min:S.value,max:O.value,step:.01,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`,`min`,`max`]),w(`div`,$t,X(x.value.toFixed(2)),1)])):r.mode===`scale`?(P(),D(`div`,en,[k(q(u),{modelValue:A.value,"onUpdate:modelValue":t[3]||=e=>A.value=e,min:0,max:3,step:1e-4,"write-vertical-left":``,h:`50%`,"data-direction":`vertical`},null,8,[`modelValue`]),w(`div`,tn,X(A.value.toFixed(2)),1)])):E(``,!0)]),_:1})])):E(``,!0)]),_:1}))}}),rn=d(nn,[[`__scopeId`,`data-v-32c23305`]]);const an={fixed:``,"bottom-0":``,"w-full":``,flex:``,"flex-col":``},on={relative:``,"w-full":``,"self-end":``},sn={top:`50%`,"translate-y":`[-50%]`,fixed:``,"z-15":``,"px-3":``},cn={"translate-y":`[-100%]`,absolute:``,"right-0":``,"w-full":``,"px-3":``,"pb-3":``,"font-sans":``},ln={flex:`~ col`,"w-full":``,"gap-1":``},un={key:0,"i-solar:moon-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},dn={key:1,"i-solar:sun-2-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`};var fn=A({__name:`MobileInteractiveArea`,setup(n){let r=v({disableTransition:!1}),i=K(`scale`),a=z(`viewControlsInputs`),o=K(``),s=K(!1),u=K(!1),d=x(),p=l(),{activeProvider:m,activeModel:h}=_(c());b(document.documentElement,()=>d.update());let{themeColorsHueDynamic:O,stageViewControlsEnabled:A}=_(y()),{enabled:j,selectedAudioInput:M}=_(S()),{send:F,onAfterMessageComposed:I,discoverToolsCompatibility:L,cleanupMessages:R}=t(),{messages:H}=_(t()),{t:W}=f();function G(){return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}async function X(){G()||await Z()}async function Z(){if(!(!o.value.trim()||u.value))try{let e=p.getProviderConfig(m.value);await F(o.value,{chatProvider:await p.getProviderInstance(m.value),model:h.value,providerConfig:e})}catch(e){H.value.pop(),H.value.push({role:`error`,content:e.message})}}let{destroy:ee,start:te}=re(M,{onSpeechStart:()=>{s.value=!0},onVADMisfire:()=>{s.value=!1},onSpeechEnd:e=>{s.value=!1,ne(e)},auto:!1});function ne(e){alert(`Transcription is not implemented yet`)}return B(j,async e=>{e===!1&&ee()}),I(async()=>{o.value=``}),B([m,h],async()=>{m.value&&h.value&&await L(h.value,await p.getProviderInstance(m.value),[])}),N(()=>{te(),d.update()}),(t,n)=>(P(),D(`div`,an,[(P(),T(U,null,[k(V,{name:`fade`},{default:C(()=>[q(A)?E(``,!0):(P(),T(Et,{key:0,"max-w":`[calc(100%-3.5rem)]`,"w-full":``,"self-start":``,"pl-3":``}))]),_:1})],1024)),w(`div`,on,[w(`div`,sn,[k(rn,{ref:`viewControlsInputs`,mode:i.value},null,8,[`mode`])]),w(`div`,cn,[w(`div`,ln,[k(Bt),w(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Theme`,onClick:n[0]||=e=>r.value=!q(r)},[k(V,{name:`fade`,mode:`out-in`},{default:C(()=>[q(r)?(P(),D(`div`,un)):(P(),D(`div`,dn))]),_:1})]),k(q(g),{to:`/settings`,border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Settings`},{default:C(()=>[...n[7]||=[w(`div`,{"i-solar:settings-outline":``,"size-5":``,text:`neutral-500 dark:neutral-400`},null,-1)]]),_:1}),k(Kt,{modelValue:i.value,"onUpdate:modelValue":n[1]||=e=>i.value=e,onReset:n[2]||=()=>a.value?.resetOnMode()},null,8,[`modelValue`]),w(`button`,{border:`2 solid neutral-100/60 dark:neutral-800/30`,bg:`neutral-50/70 dark:neutral-800/70`,"w-fit":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-xl":``,"p-2":``,"backdrop-blur-md":``,title:`Cleanup Messages`,onClick:n[3]||=(...e)=>q(R)&&q(R)(...e)},[...n[8]||=[w(`div`,{class:`i-solar:trash-bin-2-bold-duotone`},null,-1)]])])]),w(`div`,{bg:`white dark:neutral-800`,"max-h-100dvh":``,"max-w-100dvw":``,"w-full":``,flex:``,"gap-1":``,"overflow-auto":``,"px-3":``,"pt-2":``,style:Y({paddingBottom:`${Math.max(Number.parseFloat(q(d).bottom.value.replace(`px`,``)),12)}px`})},[k(q(e),{modelValue:o.value,"onUpdate:modelValue":n[4]||=e=>o.value=e,placeholder:q(W)(`stage.message`),border:`solid 2 neutral-200/60 dark:neutral-700/60`,text:`neutral-500 hover:neutral-600 dark:neutral-100 dark:hover:neutral-200 placeholder:neutral-400 placeholder:hover:neutral-500 placeholder:dark:neutral-300 placeholder:dark:hover:neutral-400`,bg:`neutral-100/80 dark:neutral-950/80`,"max-h":`[10lh]`,"min-h":`[calc(1lh+4px+4px)]`,"w-full":``,"resize-none":``,"overflow-y-scroll":``,rounded:`[1lh]`,"px-4":``,"py-0.5":``,"outline-none":``,"backdrop-blur-md":``,"scrollbar-none":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:J([q(O)?`transition-colors-none placeholder:transition-colors-none`:``]),"default-height":`1lh`,onSubmit:X,onCompositionstart:n[5]||=e=>u.value=!0,onCompositionend:n[6]||=e=>u.value=!1},null,8,[`modelValue`,`placeholder`,`class`]),o.value.trim()||u.value?(P(),D(`button`,{key:0,w:`[calc(1lh+4px+4px)]`,h:`[calc(1lh+4px+4px)]`,"aspect-square":``,flex:``,"items-center":``,"self-end":``,"justify-center":``,"rounded-full":``,"outline-none":``,"backdrop-blur-md":``,text:`neutral-500 hover:neutral-600 dark:neutral-900 dark:hover:neutral-800`,bg:`primary-50/80 dark:neutral-100/80 hover:neutral-50`,transition:`all duration-250 ease-in-out`,onClick:Z},[...n[9]||=[w(`div`,{"i-solar:arrow-up-outline":``},null,-1)]])):E(``,!0)],4)])]))}}),pn=fn;const mn={class:`relative`},hn={absolute:``,"left-0":``,"right-0":``,"top-0":``,"w-full":``,"overflow-hidden":``};var gn=A({__name:`AnimatedWave`,props:{height:{default:40},amplitude:{default:14},waveLength:{default:250},fillColor:{default:`oklch(95% 0.10 var(--chromatic-hue))`},direction:{default:`down`},movementDirection:{default:`left`},animationSpeed:{default:50}},setup(e){let t=e,n=K(t.height),r=K(t.amplitude),i=K(t.waveLength),a=K(t.fillColor),o=K(t.direction),s=K(t.movementDirection);function c(e,t,n,r,i){let a=[],o=Math.ceil(e/r),s=o*r,c=i===`up`?n:t-n;a.push(`M 0 ${c}`);let l=Math.PI*2/r;for(let e=0;e<=s;e+=1){let t=n*Math.sin(l*e),r=i===`up`?c-t:c+t;a.push(`L ${e} ${r}`)}let u=i===`up`?t:0;return a.push(`L ${s} ${u}`),a.push(`L 0 ${u} Z`),a.join(` `)}let l=W(()=>n.value+r.value*2),u=W(()=>{let e=` + + `;return`url(data:image/svg+xml;base64,${btoa(e)})`});return B(()=>[t.height,t.amplitude,t.waveLength,t.fillColor,t.direction,t.movementDirection],()=>{n.value=t.height,r.value=t.amplitude,i.value=t.waveLength,a.value=t.fillColor,o.value=t.direction,s.value=t.movementDirection},{immediate:!0}),(e,t)=>(P(),D(`div`,mn,[I(e.$slots,`default`,{},void 0,!0),w(`div`,hn,[w(`div`,{class:`colored-area wave`,style:Y({background:a.value,height:`${l.value}px`,maskImage:u.value,WebkitMaskImage:u.value,"--wave-translate":`${-i.value}px`,"--animation-duration":`${i.value/e.animationSpeed}s`,"animation-direction":s.value===`left`?`normal`:`reverse`})},null,4)])]))}}),_n=d(gn,[[`__scopeId`,`data-v-33a54ad1`]]);export{_n as b,pn as c,ut as d,nt as e,fe as f,ce as g}; \ No newline at end of file diff --git a/assets/Basic-D33XBiPI.js b/assets/Basic-D33XBiPI.js deleted file mode 100644 index 91d56efa467f52a740d0e1f395dd26013f126813..0000000000000000000000000000000000000000 --- a/assets/Basic-D33XBiPI.js +++ /dev/null @@ -1 +0,0 @@ -import{e$ as e,eC as t,eG as n,eL as r,eQ as i,eW as a,eY as o,er as s,f1 as c,f9 as l}from"./index-DEhol03r.js";var u=n({__name:`Basic`,props:r({defaultHeight:{}},{modelValue:{default:``},modelModifiers:{}}),emits:r([`submit`,`pasteFile`],[`update:modelValue`]),setup(n,{emit:r}){let u=n,d=r,f=a(n,`modelValue`),p=c(),m=c(`auto`);function h(e){e.code===`Enter`&&!e.shiftKey&&(e.preventDefault(),d(`submit`,f.value))}function g(e){if(!e.clipboardData)return;let{files:t}=e.clipboardData;t.length>0&&(e.preventDefault(),d(`pasteFile`,Array.from(t)))}return o(f,()=>{m.value=`auto`,requestAnimationFrame(()=>{if(p.value){if(f.value===``){m.value=u.defaultHeight||`fit-content`;return}m.value=`${p.value.scrollHeight}px`}})},{immediate:!0}),(n,r)=>e((i(),t(`textarea`,{ref_key:`textareaRef`,ref:p,"onUpdate:modelValue":r[0]||=e=>f.value=e,style:l({height:m.value}),onKeydown:h,onPaste:g},null,36)),[[s,f.value]])}}),d=u;export{d as b}; \ No newline at end of file diff --git a/assets/Basic-IbpirTdD.js b/assets/Basic-IbpirTdD.js new file mode 100644 index 0000000000000000000000000000000000000000..c071f41d236d31da9f5e1420edb96589fc217774 --- /dev/null +++ b/assets/Basic-IbpirTdD.js @@ -0,0 +1 @@ +import{eD as e,eH as t,eM as n,eR as r,eX as i,eZ as a,es as o,f0 as s,f2 as c,fa as l}from"./index-D3Bcbz9S.js";var u=t({__name:`Basic`,props:n({defaultHeight:{}},{modelValue:{default:``},modelModifiers:{}}),emits:n([`submit`,`pasteFile`],[`update:modelValue`]),setup(t,{emit:n}){let u=t,d=n,f=i(t,`modelValue`),p=c(),m=c(`auto`);function h(e){e.code===`Enter`&&!e.shiftKey&&(e.preventDefault(),d(`submit`,f.value))}function g(e){if(!e.clipboardData)return;let{files:t}=e.clipboardData;t.length>0&&(e.preventDefault(),d(`pasteFile`,Array.from(t)))}return a(f,()=>{m.value=`auto`,requestAnimationFrame(()=>{if(p.value){if(f.value===``){m.value=u.defaultHeight||`fit-content`;return}m.value=`${p.value.scrollHeight}px`}})},{immediate:!0}),(t,n)=>s((r(),e(`textarea`,{ref_key:`textareaRef`,ref:p,"onUpdate:modelValue":n[0]||=e=>f.value=e,style:l({height:m.value}),onKeydown:h,onPaste:g},null,36)),[[o,f.value]])}}),d=u;export{d as b}; \ No newline at end of file diff --git a/assets/BasicInputFile-DJjm73Ud.js b/assets/BasicInputFile-DJjm73Ud.js deleted file mode 100644 index a8caf9461a85bd4922961b39a8260e145f7b0897..0000000000000000000000000000000000000000 --- a/assets/BasicInputFile-DJjm73Ud.js +++ /dev/null @@ -1 +0,0 @@ -import{c6 as e,eC as t,eG as n,eL as r,eQ as i,eT as a,eW as o,ez as s,f1 as c,f6 as l,f7 as u}from"./index-DEhol03r.js";const d=[`accept`,`multiple`];var f=n({__name:`BasicInputFile`,props:r({class:{},isDraggingClasses:{},isNotDraggingClasses:{},accept:{},multiple:{type:Boolean}},{modelValue:{required:!1,default:()=>[]},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=n,f=o(n,`modelValue`),p=c(),m=c(!1),h=e(m,150);function g(e){f.value=[];let t=e.target;if(t.files){for(let e=0;e0&&(p.value=f.value[0]),m.value=!1}}return(e,n)=>(i(),t(`label`,{relative:``,"cursor-pointer":``,class:u([r.class,m.value?[...Array.isArray(e.isDraggingClasses)?e.isDraggingClasses:[e.isDraggingClasses]]:[...Array.isArray(e.isNotDraggingClasses)?e.isNotDraggingClasses:[e.isNotDraggingClasses]]]),onDragover:n[0]||=e=>m.value=!0,onDragleave:n[1]||=e=>m.value=!1},[s(`input`,{type:`file`,accept:e.accept,multiple:e.multiple,class:`absolute inset-0 h-0 w-0 cursor-pointer appearance-none opacity-0`,onChange:g},null,40,d),a(e.$slots,`default`,{isDragging:l(h),firstFile:p.value,files:f.value})],34))}}),p=f;export{p as b}; \ No newline at end of file diff --git a/assets/BasicInputFile-DP8wr1m6.js b/assets/BasicInputFile-DP8wr1m6.js new file mode 100644 index 0000000000000000000000000000000000000000..773f18de50784947f7e8b474b1af138f42feebc2 --- /dev/null +++ b/assets/BasicInputFile-DP8wr1m6.js @@ -0,0 +1 @@ +import{c7 as e,eA as t,eD as n,eH as r,eM as i,eR as a,eU as o,eX as s,f2 as c,f7 as l,f8 as u}from"./index-D3Bcbz9S.js";const d=[`accept`,`multiple`];var f=r({__name:`BasicInputFile`,props:i({class:{},isDraggingClasses:{},isNotDraggingClasses:{},accept:{},multiple:{type:Boolean}},{modelValue:{required:!1,default:()=>[]},modelModifiers:{}}),emits:[`update:modelValue`],setup(r){let i=r,f=s(r,`modelValue`),p=c(),m=c(!1),h=e(m,150);function g(e){f.value=[];let t=e.target;if(t.files){for(let e=0;e0&&(p.value=f.value[0]),m.value=!1}}return(e,r)=>(a(),n(`label`,{relative:``,"cursor-pointer":``,class:u([i.class,m.value?[...Array.isArray(e.isDraggingClasses)?e.isDraggingClasses:[e.isDraggingClasses]]:[...Array.isArray(e.isNotDraggingClasses)?e.isNotDraggingClasses:[e.isNotDraggingClasses]]]),onDragover:r[0]||=e=>m.value=!0,onDragleave:r[1]||=e=>m.value=!1},[t(`input`,{type:`file`,accept:e.accept,multiple:e.multiple,class:`absolute inset-0 h-0 w-0 cursor-pointer appearance-none opacity-0`,onChange:g},null,40,d),o(e.$slots,`default`,{isDragging:l(h),firstFile:p.value,files:f.value})],34))}}),p=f;export{p as b}; \ No newline at end of file diff --git a/assets/CardCreate-Dr2_R_p4.js b/assets/CardCreate-Dr2_R_p4.js new file mode 100644 index 0000000000000000000000000000000000000000..69cbabcb5b1664a488dda832755ce797e052f2a0 --- /dev/null +++ b/assets/CardCreate-Dr2_R_p4.js @@ -0,0 +1 @@ +import{b as e}from"./CardCreate-kEgCBYa3.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardCreate-PvY8y_OB.js b/assets/CardCreate-PvY8y_OB.js deleted file mode 100644 index a8035717e5defec907a33a1d6dad784ae810a77c..0000000000000000000000000000000000000000 --- a/assets/CardCreate-PvY8y_OB.js +++ /dev/null @@ -1 +0,0 @@ -import{b as e}from"./CardCreate-CjMUomRq.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardCreate-CjMUomRq.js b/assets/CardCreate-kEgCBYa3.js similarity index 54% rename from assets/CardCreate-CjMUomRq.js rename to assets/CardCreate-kEgCBYa3.js index ff190575cbea25e9ec52feae101e474fa8a05d00..d7f80559d1236049c43dfb96c5f54b34b21fbeff 100644 --- a/assets/CardCreate-CjMUomRq.js +++ b/assets/CardCreate-kEgCBYa3.js @@ -1 +1 @@ -import{ae as e,eC as t,eG as n,eQ as r,ez as i,f6 as a,fa as o}from"./index-DEhol03r.js";const s={relative:``,class:`min-h-[120px] flex flex-col cursor-pointer items-center justify-center border-neutral-200 rounded-xl bg-white/60 p-6 dark:border-neutral-700 hover:border-primary-300 dark:bg-black/30 hover:bg-white/80 dark:hover:border-primary-700 dark:hover:bg-black/40`,border:`solid 2`,transition:`all duration-300`,"cursor-pointer":``,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`},c={"font-medium":``,text:`neutral-600 dark:neutral-300`};var l=n({__name:`CardCreate`,setup(n){let{t:l}=e();return(e,n)=>(r(),t(`div`,s,[n[0]||=i(`div`,{"i-solar:add-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),i(`p`,c,o(a(l)(`settings.pages.card.create_card`)),1)]))}}),u=l;export{u as b}; \ No newline at end of file +import{ae as e,eA as t,eD as n,eH as r,eR as i,f7 as a,fb as o}from"./index-D3Bcbz9S.js";const s={relative:``,class:`min-h-[120px] flex flex-col cursor-pointer items-center justify-center border-neutral-200 rounded-xl bg-white/60 p-6 dark:border-neutral-700 hover:border-primary-300 dark:bg-black/30 hover:bg-white/80 dark:hover:border-primary-700 dark:hover:bg-black/40`,border:`solid 2`,transition:`all duration-300`,"cursor-pointer":``,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`},c={"font-medium":``,text:`neutral-600 dark:neutral-300`};var l=r({__name:`CardCreate`,setup(r){let{t:l}=e();return(e,r)=>(i(),n(`div`,s,[r[0]||=t(`div`,{"i-solar:add-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),t(`p`,c,o(a(l)(`settings.pages.card.create_card`)),1)]))}}),u=l;export{u as b}; \ No newline at end of file diff --git a/assets/CardCreationDialog-D08nGLG1.js b/assets/CardCreationDialog-D08nGLG1.js deleted file mode 100644 index b166b210a854aaf044ed83cb2a856c13365ff069..0000000000000000000000000000000000000000 --- a/assets/CardCreationDialog-D08nGLG1.js +++ /dev/null @@ -1 +0,0 @@ -import"./airi-card-7HyqBFjt.js";import{b as e}from"./CardCreationDialog-tosLd0cj.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardCreationDialog-K2uIVETx.js b/assets/CardCreationDialog-K2uIVETx.js new file mode 100644 index 0000000000000000000000000000000000000000..931fd2d35660d30557b5a4a8978991d459844c38 --- /dev/null +++ b/assets/CardCreationDialog-K2uIVETx.js @@ -0,0 +1,3 @@ +import{aV as e,aY as t,a_ as n,ae as r,ao as i,bb as a,bc as o,be as s,bf as c,bs as l,e$ as u,eA as d,eB as ee,eC as f,eD as p,eF as m,eG as h,eH as g,eM as _,eR as v,eT as te,eX as ne,ew as re,ez as y,f1 as b,f2 as x,f4 as S,f7 as C,f8 as w,fb as T,fc as E,fi as D}from"./index-D3Bcbz9S.js";import{b as ie}from"./airi-card-CObXZhjH.js";var O=E(((exports,t)=>{function n(e){return e.toLowerCase()}t.exports=n})),k=E(((exports,t)=>{var n=O();t.exports=n})),A=E(((exports,t)=>{function n(e,t,n){return e.replace(t,n)}t.exports=n})),j=E(((exports,t)=>{var n=A();t.exports=n})),M=E(((exports,t)=>{var n=String.prototype.trim!==void 0;t.exports=n})),N=E(((exports,t)=>{var n=String.prototype.trim;t.exports=n})),P=E(((exports,t)=>{var n=N(),r=` + \r +\f\v            \u2028\u2029   `,i=`᠎`;function a(){return n.call(r)===``&&n.call(i)===i}t.exports=a})),F=E(((exports,t)=>{var n=j(),r=/^[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*([\S\s]*?)[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$/;function i(e){return n(e,r,`$1`)}t.exports=i})),I=E(((exports,t)=>{var n=N();function r(e){return n.call(e)}t.exports=r})),L=E(((exports,t)=>{var n=M(),r=P(),i=F(),a=I(),o;o=n&&r()?a:i,t.exports=o})),R=E(((exports,t)=>{var n=k(),r=j(),i=L(),a=/\s+/g,o=/[!"'(),–.:;<>?`{}|~\/\\\[\]_#$*&^@%]+/g,s=/([a-z0-9])([A-Z])/g;function c(e){return e=r(e,o,` `),e=r(e,s,`$1 $2`),e=i(e),e=r(e,a,`-`),n(e)}t.exports=c})),z=E(((exports,t)=>{var n=R();t.exports=n})),B=D(z());const V={class:`w-full flex flex-col gap-5`},H={class:`mt-4`},U={class:`border-b border-neutral-200 dark:border-neutral-700`},W={class:`flex justify-center -mb-px sm:justify-start space-x-1`},G=[`onClick`],K={class:`flex items-center gap-1`},ae={key:0,class:`w-full rounded-xl bg-red900`},oe={class:`w-full p-4`},se={key:1,class:`tab-content ml-auto mr-auto w-95%`},ce={class:`mb-3`},le={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},ue={key:2,class:`tab-content ml-auto mr-auto w-95%`},de={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},fe={key:3,class:`tab-content ml-auto mr-auto w-95%`},pe={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},me={class:`ml-auto mr-1 flex flex-row gap-2`};var q=g({__name:`CardCreationDialog`,props:_({modelValue:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:_([`update:modelValue`],[`update:modelValue`]),setup(t,{emit:g}){let _=g,E=ne(t,`modelValue`),{t:D}=r(),O=ie(),k=x(``),A=[{id:`identity`,label:D(`settings.pages.card.creation.identity`),icon:`i-solar:emoji-funny-square-bold-duotone`},{id:`behavior`,label:D(`settings.pages.card.creation.behavior`),icon:`i-solar:chat-round-line-bold-duotone`},{id:`settings`,label:D(`settings.pages.card.creation.settings`),icon:`i-solar:settings-bold-duotone`}],j=y({get:()=>A.find(e=>e.id===k.value)?k.value:A[0]?.id||``,set:e=>{k.value=e}}),M=x(!1),N=x(``);function P(e){let t=S(e);if(t.name.length>0)if(/^(?:\d+\.)+\d+$/.test(t.version))if(t.description.length>0)if(t.personality.length>0)if(t.scenario.length>0)if(t.systemPrompt.length>0){if(!(t.postHistoryInstructions.length>0))return M.value=!0,N.value=D(`settings.pages.card.creation.errors.posthistoryinstructions`),!1}else return M.value=!0,N.value=D(`settings.pages.card.creation.errors.systemprompt`),!1;else return M.value=!0,N.value=D(`settings.pages.card.creation.errors.scenario`),!1;else return M.value=!0,N.value=D(`settings.pages.card.creation.errors.personality`),!1;else return M.value=!0,N.value=D(`settings.pages.card.creation.errors.description`),!1;else return M.value=!0,N.value=D(`settings.pages.card.creation.errors.version`),!1;else return M.value=!0,N.value=D(`settings.pages.card.creation.errors.name`),!1;return M.value=!1,O.addCard(t),E.value=!1,!0}let F=x({name:D(`settings.pages.card.creation.defaults.name`),nickname:void 0,version:`1.0`,description:``,notes:void 0,personality:D(`settings.pages.card.creation.defaults.personality`),scenario:D(`settings.pages.card.creation.defaults.scenario`),systemPrompt:D(`settings.pages.card.creation.defaults.systemprompt`),postHistoryInstructions:D(`settings.pages.card.creation.defaults.posthistoryinstructions`),greetings:[],messageExample:[]});function I(e,t){return y({get:()=>F.value[e]??``,set:n=>{let r=n.trim();F.value[e]=r.length>0?t?t(r):r:``}})}let L=I(`name`,e=>(0,B.default)(e)),R=I(`nickname`),z=I(`description`),q=I(`notes`),J=I(`personality`),Y=I(`scenario`),X=y({get:()=>F.value.greetings??[],set:e=>{F.value.greetings=e||[]}}),Z=I(`version`),Q=I(`systemPrompt`),$=I(`postHistoryInstructions`);return(t,r)=>(v(),ee(C(l),{open:E.value,"onUpdate:open":r[12]||=e=>_(`update:modelValue`,e)},{default:u(()=>[h(C(o),null,{default:u(()=>[h(C(s),{class:`fixed inset-0 z-100 bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),h(C(c),{class:`fixed left-1/2 top-1/2 z-100 m-0 max-h-[90vh] max-w-6xl w-[92vw] flex flex-col overflow-auto border border-neutral-200 rounded-xl bg-white p-5 shadow-xl 2xl:w-[60vw] lg:w-[80vw] md:w-[85vw] xl:w-[70vw] -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:u(()=>[d(`div`,V,[h(C(a),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:u(()=>[m(T(C(D)(`settings.pages.card.create_card`)),1)]),_:1}),d(`div`,H,[d(`div`,U,[d(`div`,W,[(v(),p(re,null,te(A,e=>d(`button`,{key:e.id,class:w([`px-4 py-2 text-sm font-medium`,[j.value===e.id?`text-primary-600 dark:text-primary-400 border-b-2 border-primary-500 dark:border-primary-400`:`text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300`]]),onClick:t=>j.value=e.id},[d(`div`,K,[d(`div`,{class:w(e.icon)},null,2),m(` `+T(e.label),1)])],10,G)),64))])])]),M.value?(v(),p(`div`,ae,[d(`p`,oe,T(N.value),1)])):f(``,!0),j.value===`identity`?(v(),p(`div`,se,[d(`p`,ce,T(C(D)(`settings.pages.card.creation.fields_info.subtitle`)),1),d(`div`,le,[h(C(n),{modelValue:C(L),"onUpdate:modelValue":r[0]||=e=>b(L)?L.value=e:null,label:C(D)(`settings.pages.card.creation.name`),description:C(D)(`settings.pages.card.creation.fields_info.name`),required:!0},null,8,[`modelValue`,`label`,`description`]),h(C(n),{modelValue:C(R),"onUpdate:modelValue":r[1]||=e=>b(R)?R.value=e:null,label:C(D)(`settings.pages.card.creation.nickname`),description:C(D)(`settings.pages.card.creation.fields_info.nickname`)},null,8,[`modelValue`,`label`,`description`]),h(C(n),{modelValue:C(z),"onUpdate:modelValue":r[2]||=e=>b(z)?z.value=e:null,label:C(D)(`settings.pages.card.creation.description`),"single-line":!1,required:!0,description:C(D)(`settings.pages.card.creation.fields_info.description`)},null,8,[`modelValue`,`label`,`description`]),h(C(n),{modelValue:C(q),"onUpdate:modelValue":r[3]||=e=>b(q)?q.value=e:null,label:C(D)(`settings.pages.card.creator_notes`),"single-line":!1,description:C(D)(`settings.pages.card.creation.fields_info.notes`)},null,8,[`modelValue`,`label`,`description`])])])):j.value===`behavior`?(v(),p(`div`,ue,[d(`div`,de,[h(C(n),{modelValue:C(J),"onUpdate:modelValue":r[4]||=e=>b(J)?J.value=e:null,label:C(D)(`settings.pages.card.personality`),"single-line":!1,required:!0,description:C(D)(`settings.pages.card.creation.fields_info.personality`)},null,8,[`modelValue`,`label`,`description`]),h(C(n),{modelValue:C(Y),"onUpdate:modelValue":r[5]||=e=>b(Y)?Y.value=e:null,label:C(D)(`settings.pages.card.scenario`),"single-line":!1,required:!0,description:C(D)(`settings.pages.card.creation.fields_info.scenario`)},null,8,[`modelValue`,`label`,`description`]),h(C(e),{modelValue:X.value,"onUpdate:modelValue":r[6]||=e=>X.value=e,label:C(D)(`settings.pages.card.creation.greetings`),description:C(D)(`settings.pages.card.creation.fields_info.greetings`)},null,8,[`modelValue`,`label`,`description`])])])):j.value===`settings`?(v(),p(`div`,fe,[d(`div`,pe,[h(C(n),{modelValue:C(Q),"onUpdate:modelValue":r[7]||=e=>b(Q)?Q.value=e:null,label:C(D)(`settings.pages.card.systemprompt`),"single-line":!1,required:!0,description:C(D)(`settings.pages.card.creation.fields_info.systemprompt`)},null,8,[`modelValue`,`label`,`description`]),h(C(n),{modelValue:C($),"onUpdate:modelValue":r[8]||=e=>b($)?$.value=e:null,label:C(D)(`settings.pages.card.posthistoryinstructions`),"single-line":!1,required:!0,description:C(D)(`settings.pages.card.creation.fields_info.posthistoryinstructions`)},null,8,[`modelValue`,`label`,`description`]),h(C(n),{modelValue:C(Z),"onUpdate:modelValue":r[9]||=e=>b(Z)?Z.value=e:null,label:C(D)(`settings.pages.card.creation.version`),required:!0,description:C(D)(`settings.pages.card.creation.fields_info.version`)},null,8,[`modelValue`,`label`,`description`])])])):f(``,!0),d(`div`,me,[h(C(i),{variant:`secondary`,icon:`i-solar:undo-left-bold-duotone`,label:C(D)(`settings.pages.card.cancel`),disabled:!1,onClick:r[10]||=e=>E.value=!1},null,8,[`label`]),h(C(i),{variant:`primary`,icon:`i-solar:check-circle-bold-duotone`,label:C(D)(`settings.pages.card.creation.create`),disabled:!1,onClick:r[11]||=e=>P(F.value)},null,8,[`label`])])])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),J=t(q,[[`__scopeId`,`data-v-664b482e`]]);export{J as b}; \ No newline at end of file diff --git a/assets/CardCreationDialog-nXxRyLy1.js b/assets/CardCreationDialog-nXxRyLy1.js new file mode 100644 index 0000000000000000000000000000000000000000..746424065459e52724dfe55b3138f5c3fb36f2be --- /dev/null +++ b/assets/CardCreationDialog-nXxRyLy1.js @@ -0,0 +1 @@ +import"./airi-card-CObXZhjH.js";import{b as e}from"./CardCreationDialog-K2uIVETx.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardCreationDialog-tosLd0cj.js b/assets/CardCreationDialog-tosLd0cj.js deleted file mode 100644 index 2fceb7b3b83b5d3f8f4401f15fc65f6e7ca35fbe..0000000000000000000000000000000000000000 --- a/assets/CardCreationDialog-tosLd0cj.js +++ /dev/null @@ -1,3 +0,0 @@ -import{aU as e,aX as t,aZ as n,ae as r,ao as i,ba as a,bb as o,bd as s,be as c,br as l,eA as u,eB as d,eC as f,eE as p,eF as m,eG as h,eL as g,eQ as _,eS as v,eW as ee,e_ as y,ev as te,ey as b,ez as x,f0 as S,f1 as C,f3 as w,f6 as T,f7 as E,fa as D,fb as O,fh as k}from"./index-DEhol03r.js";import{b as ne}from"./airi-card-7HyqBFjt.js";var A=O(((exports,t)=>{function n(e){return e.toLowerCase()}t.exports=n})),j=O(((exports,t)=>{var n=A();t.exports=n})),M=O(((exports,t)=>{function n(e,t,n){return e.replace(t,n)}t.exports=n})),N=O(((exports,t)=>{var n=M();t.exports=n})),P=O(((exports,t)=>{var n=String.prototype.trim!==void 0;t.exports=n})),F=O(((exports,t)=>{var n=String.prototype.trim;t.exports=n})),I=O(((exports,t)=>{var n=F(),r=` - \r -\f\v            \u2028\u2029   `,i=`᠎`;function a(){return n.call(r)===``&&n.call(i)===i}t.exports=a})),L=O(((exports,t)=>{var n=N(),r=/^[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*([\S\s]*?)[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$/;function i(e){return n(e,r,`$1`)}t.exports=i})),R=O(((exports,t)=>{var n=F();function r(e){return n.call(e)}t.exports=r})),z=O(((exports,t)=>{var n=P(),r=I(),i=L(),a=R(),o;o=n&&r()?a:i,t.exports=o})),B=O(((exports,t)=>{var n=j(),r=N(),i=z(),a=/\s+/g,o=/[!"'(),–.:;<>?`{}|~\/\\\[\]_#$*&^@%]+/g,s=/([a-z0-9])([A-Z])/g;function c(e){return e=r(e,o,` `),e=r(e,s,`$1 $2`),e=i(e),e=r(e,a,`-`),n(e)}t.exports=c})),V=O(((exports,t)=>{var n=B();t.exports=n})),H=k(V());const U={class:`w-full flex flex-col gap-5`},W={class:`mt-4`},G={class:`border-b border-neutral-200 dark:border-neutral-700`},K={class:`flex justify-center -mb-px sm:justify-start space-x-1`},re=[`onClick`],ie={class:`flex items-center gap-1`},ae={key:0,class:`w-full rounded-xl bg-red900`},oe={class:`w-full p-4`},se={key:1,class:`tab-content ml-auto mr-auto w-95%`},ce={class:`mb-3`},le={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},ue={key:2,class:`tab-content ml-auto mr-auto w-95%`},de={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},fe={key:3,class:`tab-content ml-auto mr-auto w-95%`},pe={class:`input-list ml-auto mr-auto w-90% flex flex-row flex-wrap justify-center gap-8`},me={class:`ml-auto mr-1 flex flex-row gap-2`};var q=h({__name:`CardCreationDialog`,props:g({modelValue:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:g([`update:modelValue`],[`update:modelValue`]),setup(t,{emit:h}){let g=h,O=ee(t,`modelValue`),{t:k}=r(),A=ne(),j=C(``),M=[{id:`identity`,label:k(`settings.pages.card.creation.identity`),icon:`i-solar:emoji-funny-square-bold-duotone`},{id:`behavior`,label:k(`settings.pages.card.creation.behavior`),icon:`i-solar:chat-round-line-bold-duotone`},{id:`settings`,label:k(`settings.pages.card.creation.settings`),icon:`i-solar:settings-bold-duotone`}],N=b({get:()=>M.find(e=>e.id===j.value)?j.value:M[0]?.id||``,set:e=>{j.value=e}}),P=C(!1),F=C(``);function I(e){let t=w(e);if(t.name.length>0)if(/^(?:\d+\.)+\d+$/.test(t.version))if(t.description.length>0)if(t.personality.length>0)if(t.scenario.length>0)if(t.systemPrompt.length>0){if(!(t.postHistoryInstructions.length>0))return P.value=!0,F.value=k(`settings.pages.card.creation.errors.posthistoryinstructions`),!1}else return P.value=!0,F.value=k(`settings.pages.card.creation.errors.systemprompt`),!1;else return P.value=!0,F.value=k(`settings.pages.card.creation.errors.scenario`),!1;else return P.value=!0,F.value=k(`settings.pages.card.creation.errors.personality`),!1;else return P.value=!0,F.value=k(`settings.pages.card.creation.errors.description`),!1;else return P.value=!0,F.value=k(`settings.pages.card.creation.errors.version`),!1;else return P.value=!0,F.value=k(`settings.pages.card.creation.errors.name`),!1;return P.value=!1,A.addCard(t),O.value=!1,!0}let L=C({name:k(`settings.pages.card.creation.defaults.name`),nickname:void 0,version:`1.0`,description:``,notes:void 0,personality:k(`settings.pages.card.creation.defaults.personality`),scenario:k(`settings.pages.card.creation.defaults.scenario`),systemPrompt:k(`settings.pages.card.creation.defaults.systemprompt`),postHistoryInstructions:k(`settings.pages.card.creation.defaults.posthistoryinstructions`),greetings:[],messageExample:[]});function R(e,t){return b({get:()=>L.value[e]??``,set:n=>{let r=n.trim();L.value[e]=r.length>0?t?t(r):r:``}})}let z=R(`name`,e=>(0,H.default)(e)),B=R(`nickname`),V=R(`description`),q=R(`notes`),J=R(`personality`),Y=R(`scenario`),X=b({get:()=>L.value.greetings??[],set:e=>{L.value.greetings=e||[]}}),Z=R(`version`),Q=R(`systemPrompt`),$=R(`postHistoryInstructions`);return(t,r)=>(_(),u(T(l),{open:O.value,"onUpdate:open":r[12]||=e=>g(`update:modelValue`,e)},{default:y(()=>[m(T(o),null,{default:y(()=>[m(T(s),{class:`fixed inset-0 z-100 bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),m(T(c),{class:`fixed left-1/2 top-1/2 z-100 m-0 max-h-[90vh] max-w-6xl w-[92vw] flex flex-col overflow-auto border border-neutral-200 rounded-xl bg-white p-5 shadow-xl 2xl:w-[60vw] lg:w-[80vw] md:w-[85vw] xl:w-[70vw] -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:y(()=>[x(`div`,U,[m(T(a),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:y(()=>[p(D(T(k)(`settings.pages.card.create_card`)),1)]),_:1}),x(`div`,W,[x(`div`,G,[x(`div`,K,[(_(),f(te,null,v(M,e=>x(`button`,{key:e.id,class:E([`px-4 py-2 text-sm font-medium`,[N.value===e.id?`text-primary-600 dark:text-primary-400 border-b-2 border-primary-500 dark:border-primary-400`:`text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300`]]),onClick:t=>N.value=e.id},[x(`div`,ie,[x(`div`,{class:E(e.icon)},null,2),p(` `+D(e.label),1)])],10,re)),64))])])]),P.value?(_(),f(`div`,ae,[x(`p`,oe,D(F.value),1)])):d(``,!0),N.value===`identity`?(_(),f(`div`,se,[x(`p`,ce,D(T(k)(`settings.pages.card.creation.fields_info.subtitle`)),1),x(`div`,le,[m(T(n),{modelValue:T(z),"onUpdate:modelValue":r[0]||=e=>S(z)?z.value=e:null,label:T(k)(`settings.pages.card.creation.name`),description:T(k)(`settings.pages.card.creation.fields_info.name`),required:!0},null,8,[`modelValue`,`label`,`description`]),m(T(n),{modelValue:T(B),"onUpdate:modelValue":r[1]||=e=>S(B)?B.value=e:null,label:T(k)(`settings.pages.card.creation.nickname`),description:T(k)(`settings.pages.card.creation.fields_info.nickname`)},null,8,[`modelValue`,`label`,`description`]),m(T(n),{modelValue:T(V),"onUpdate:modelValue":r[2]||=e=>S(V)?V.value=e:null,label:T(k)(`settings.pages.card.creation.description`),"single-line":!1,required:!0,description:T(k)(`settings.pages.card.creation.fields_info.description`)},null,8,[`modelValue`,`label`,`description`]),m(T(n),{modelValue:T(q),"onUpdate:modelValue":r[3]||=e=>S(q)?q.value=e:null,label:T(k)(`settings.pages.card.creator_notes`),"single-line":!1,description:T(k)(`settings.pages.card.creation.fields_info.notes`)},null,8,[`modelValue`,`label`,`description`])])])):N.value===`behavior`?(_(),f(`div`,ue,[x(`div`,de,[m(T(n),{modelValue:T(J),"onUpdate:modelValue":r[4]||=e=>S(J)?J.value=e:null,label:T(k)(`settings.pages.card.personality`),"single-line":!1,required:!0,description:T(k)(`settings.pages.card.creation.fields_info.personality`)},null,8,[`modelValue`,`label`,`description`]),m(T(n),{modelValue:T(Y),"onUpdate:modelValue":r[5]||=e=>S(Y)?Y.value=e:null,label:T(k)(`settings.pages.card.scenario`),"single-line":!1,required:!0,description:T(k)(`settings.pages.card.creation.fields_info.scenario`)},null,8,[`modelValue`,`label`,`description`]),m(T(e),{modelValue:X.value,"onUpdate:modelValue":r[6]||=e=>X.value=e,label:T(k)(`settings.pages.card.creation.greetings`),description:T(k)(`settings.pages.card.creation.fields_info.greetings`)},null,8,[`modelValue`,`label`,`description`])])])):N.value===`settings`?(_(),f(`div`,fe,[x(`div`,pe,[m(T(n),{modelValue:T(Q),"onUpdate:modelValue":r[7]||=e=>S(Q)?Q.value=e:null,label:T(k)(`settings.pages.card.systemprompt`),"single-line":!1,required:!0,description:T(k)(`settings.pages.card.creation.fields_info.systemprompt`)},null,8,[`modelValue`,`label`,`description`]),m(T(n),{modelValue:T($),"onUpdate:modelValue":r[8]||=e=>S($)?$.value=e:null,label:T(k)(`settings.pages.card.posthistoryinstructions`),"single-line":!1,required:!0,description:T(k)(`settings.pages.card.creation.fields_info.posthistoryinstructions`)},null,8,[`modelValue`,`label`,`description`]),m(T(n),{modelValue:T(Z),"onUpdate:modelValue":r[9]||=e=>S(Z)?Z.value=e:null,label:T(k)(`settings.pages.card.creation.version`),required:!0,description:T(k)(`settings.pages.card.creation.fields_info.version`)},null,8,[`modelValue`,`label`,`description`])])])):d(``,!0),x(`div`,me,[m(T(i),{variant:`secondary`,icon:`i-solar:undo-left-bold-duotone`,label:T(k)(`settings.pages.card.cancel`),disabled:!1,onClick:r[10]||=e=>O.value=!1},null,8,[`label`]),m(T(i),{variant:`primary`,icon:`i-solar:check-circle-bold-duotone`,label:T(k)(`settings.pages.card.creation.create`),disabled:!1,onClick:r[11]||=e=>I(L.value)},null,8,[`label`])])])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),J=t(q,[[`__scopeId`,`data-v-664b482e`]]);export{J as b}; \ No newline at end of file diff --git a/assets/CardDetailDialog-Bhvhe9Mf.js b/assets/CardDetailDialog-Bhvhe9Mf.js new file mode 100644 index 0000000000000000000000000000000000000000..fc455368f088ed9798f8dd7392b78823947b0f58 --- /dev/null +++ b/assets/CardDetailDialog-Bhvhe9Mf.js @@ -0,0 +1 @@ +import{b as e}from"./DeleteCardDialog-DnHrNX0U.js";import{ae as t,ao as ee,aw as n,bQ as r,bb as te,bc as ne,be as re,bf as ie,bs as ae,e$ as i,eA as a,eC as o,eD as s,eF as c,eG as l,eH as u,eR as d,eT as f,ew as p,ez as m,f2 as h,f7 as g,f8 as _,fb as v}from"./index-D3Bcbz9S.js";import{b as oe}from"./airi-card-CObXZhjH.js";const se={key:0,class:`w-full flex flex-col gap-5`},ce={flex:`~ col`,"gap-3":``},le={flex:`~ row`,"items-center":``,"justify-between":``},ue={flex:`~ row`,"items-center":``,"gap-2":``},de={key:0,class:`flex items-center gap-1 rounded-full bg-primary-100 px-2 py-0.5 text-xs text-primary-600 font-medium dark:bg-primary-900/40 dark:text-primary-400`},fe={"mt-1":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},pe={"font-medium":``},me={flex:`~ row`,"gap-2":``},he={class:`mt-4`},ge={class:`border-b border-neutral-200 dark:border-neutral-700`},y={class:`flex justify-center -mb-px sm:justify-start space-x-1`},b=[`onClick`],x={class:`flex items-center gap-1`},S={key:0},C=[`innerHTML`],w={key:1},T=[`innerHTML`],E={key:2},D={flex:`~ col`,"max-h-60":``,"gap-4":``,"overflow-auto":``,"pr-1":``,"sm:max-h-80":``},O={key:0,flex:`~ col`,"gap-2":``},k={"text-lg":``,"text-neutral-500":``,"font-medium":``,"dark:text-neutral-400":``},A=[`innerHTML`],j={key:3},M={grid:`~ cols-1 sm:cols-3`,"gap-4":``},N={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-1":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},P={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},F={truncate:``,"font-medium":``},I={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-2":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},L={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},_e={truncate:``,"font-medium":``},ve={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-2":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},ye={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},be={truncate:``,"font-medium":``},xe={key:1,bg:`neutral-50/50 dark:neutral-900/50`,"rounded-xl":``,"p-8":``,"text-center":``,border:`~ neutral-200/50 dark:neutral-700/30`,shadow:`sm`};var R=u({__name:`CardDetailDialog`,props:{modelValue:{type:Boolean},cardId:{}},emits:[`update:modelValue`],setup(u,{emit:R}){let z=u,B=R,{t:V}=t(),H=oe(),{removeCard:Se}=H,{activeCardId:U}=r(H),W=m(()=>{if(z.cardId)return H.getCard(z.cardId)}),G=m(()=>{if(!W.value||!W.value.extensions?.airi?.modules)return{consciousness:``,speech:``,voice:``};let e=W.value.extensions.airi.modules;return{consciousness:e.consciousness?.model||``,speech:e.speech?.model||``,voice:e.speech?.voice_id||``}}),K=m(()=>W.value?{personality:W.value.personality,scenario:W.value.scenario,systemPrompt:W.value.systemPrompt,postHistoryInstructions:W.value.postHistoryInstructions}:{}),q=m(()=>z.cardId===U.value),J=h(!1);function Ce(){J.value=!0,setTimeout(()=>{U.value=z.cardId,J.value=!1},300)}function Y(e){return n.sanitize(e?.replace(/\{\{(.*?)\}\}/g,`{{ $1 }}`).trim())}let X=h(!1);function we(){W.value&&(Se(z.cardId),B(`update:modelValue`,!1)),X.value=!1}let Z=h(``),Q=m(()=>{let e=[];return W.value?.description&&e.push({id:`description`,label:V(`settings.pages.card.description_label`),icon:`i-solar:document-text-linear`}),W.value?.notes&&e.push({id:`notes`,label:V(`settings.pages.card.creator_notes`),icon:`i-solar:notes-linear`}),Object.values(K.value).some(e=>!!e)&&e.push({id:`character`,label:V(`settings.pages.card.character`),icon:`i-solar:user-rounded-linear`}),e.push({id:`modules`,label:V(`settings.pages.card.modules`),icon:`i-solar:tuning-square-linear`}),e}),$=m({get:()=>Q.value.find(e=>e.id===Z.value)?Z.value:Q.value[0]?.id||``,set:e=>{Z.value=e}});return(t,n)=>(d(),s(p,null,[l(g(ae),{open:t.modelValue,"onUpdate:open":n[0]||=e=>B(`update:modelValue`,e)},{default:i(()=>[l(g(ne),null,{default:i(()=>[l(g(re),{class:`fixed inset-0 z-100 bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),l(g(ie),{class:`fixed left-1/2 top-1/2 z-100 m-0 max-h-[90vh] max-w-6xl w-[92vw] flex flex-col overflow-auto border border-neutral-200 rounded-xl bg-white p-5 shadow-xl 2xl:w-[60vw] lg:w-[80vw] md:w-[85vw] xl:w-[70vw] -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:i(()=>[W.value?(d(),s(`div`,se,[a(`div`,ce,[a(`div`,le,[a(`div`,null,[a(`div`,ue,[l(g(te),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:i(()=>[c(v(W.value.name),1)]),_:1}),q.value?(d(),s(`div`,de,[n[3]||=a(`div`,{"i-solar:check-circle-bold-duotone":``,"text-xs":``},null,-1),c(` `+v(g(V)(`settings.pages.card.active_badge`)),1)])):o(``,!0)]),a(`div`,fe,[c(` v`+v(W.value.version)+` `,1),W.value.creator?(d(),s(p,{key:0},[c(` · `+v(g(V)(`settings.pages.card.created_by`))+` `,1),a(`span`,pe,v(W.value.creator),1)],64)):o(``,!0)])]),a(`div`,me,[l(g(ee),{variant:`primary`,icon:q.value?`i-solar:check-circle-bold-duotone`:`i-solar:play-circle-broken`,label:q.value?g(V)(`settings.pages.card.active`):g(V)(`settings.pages.card.activate`),disabled:q.value,class:_({"animate-pulse":J.value}),onClick:Ce},null,8,[`icon`,`label`,`disabled`,`class`])])]),a(`div`,he,[a(`div`,ge,[a(`div`,y,[(d(!0),s(p,null,f(Q.value,e=>(d(),s(`button`,{key:e.id,class:_([`px-4 py-2 text-sm font-medium`,[$.value===e.id?`text-primary-600 dark:text-primary-400 border-b-2 border-primary-500 dark:border-primary-400`:`text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300`]]),onClick:t=>$.value=e.id},[a(`div`,x,[a(`div`,{class:_(e.icon)},null,2),c(` `+v(e.label),1)])],10,b))),128))])])]),$.value===`notes`&&W.value.notes?(d(),s(`div`,S,[a(`div`,{bg:`white/60 dark:black/30`,border:`~ neutral-200/50 dark:neutral-700/30`,"max-h-60":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-4":``,"text-neutral-700":``,"sm:max-h-80":``,"dark:text-neutral-300":``,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`,innerHTML:Y(W.value.notes)},null,8,C)])):o(``,!0),$.value===`description`&&W.value.description?(d(),s(`div`,w,[a(`div`,{bg:`white/60 dark:black/30`,"max-h-60":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-4":``,"sm:max-h-80":``,text:`neutral-600 dark:neutral-300`,border:`~ neutral-200/50 dark:neutral-700/30`,innerHTML:Y(W.value.description)},null,8,T)])):o(``,!0),$.value===`character`&&Object.values(K.value).some(e=>!!e)?(d(),s(`div`,E,[a(`div`,D,[(d(!0),s(p,null,f(K.value,(e,t)=>(d(),s(p,{key:t},[e?(d(),s(`div`,O,[a(`h2`,k,v(g(V)(`settings.pages.card.${t.toLowerCase()}`)),1),a(`div`,{bg:`white/60 dark:black/30`,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`,"max-h-none":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-3":``,"text-neutral-700":``,"dark:text-neutral-300":``,innerHTML:Y(e)},null,8,A)])):o(``,!0)],64))),128))])])):o(``,!0),$.value===`modules`?(d(),s(`div`,j,[a(`div`,M,[a(`div`,N,[a(`span`,P,[n[4]||=a(`div`,{"i-lucide:ghost":``},null,-1),c(` `+v(g(V)(`settings.pages.card.consciousness.model`)),1)]),a(`div`,F,v(G.value.consciousness??`default`),1)]),a(`div`,I,[a(`span`,L,[n[5]||=a(`div`,{"i-lucide:mic":``},null,-1),c(` `+v(g(V)(`settings.pages.card.speech.model`)),1)]),a(`div`,_e,v(G.value.speech??`default`),1)]),a(`div`,ve,[a(`span`,ye,[n[6]||=a(`div`,{"i-lucide:music":``},null,-1),c(` `+v(g(V)(`settings.pages.card.speech.voice`)),1)]),a(`div`,be,v(G.value.voice??`default`),1)])])])):o(``,!0)])])):(d(),s(`div`,xe,[n[7]||=a(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),c(` `+v(g(V)(`settings.pages.card.card_not_found`)),1)]))]),_:1})]),_:1})]),_:1},8,[`open`]),l(e,{modelValue:X.value,"onUpdate:modelValue":n[1]||=e=>X.value=e,"card-name":W.value?.name,onConfirm:we,onCancel:n[2]||=e=>X.value=!1},null,8,[`modelValue`,`card-name`])],64))}}),z=R;export{z as b}; \ No newline at end of file diff --git a/assets/CardDetailDialog-C8TrFwnS.js b/assets/CardDetailDialog-C8TrFwnS.js deleted file mode 100644 index 4844556ab7ab9f58b1ff8da5db099481b9f84803..0000000000000000000000000000000000000000 --- a/assets/CardDetailDialog-C8TrFwnS.js +++ /dev/null @@ -1 +0,0 @@ -import"./DeleteCardDialog-BzH_7FHZ.js";import"./airi-card-7HyqBFjt.js";import{b as e}from"./CardDetailDialog-CVyfYPDH.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardDetailDialog-CVyfYPDH.js b/assets/CardDetailDialog-CVyfYPDH.js deleted file mode 100644 index e10b2e576bf1f4b309af216739d15d7b1842d938..0000000000000000000000000000000000000000 --- a/assets/CardDetailDialog-CVyfYPDH.js +++ /dev/null @@ -1 +0,0 @@ -import{b as e}from"./DeleteCardDialog-BzH_7FHZ.js";import{ae as t,ao as ee,bP as n,ba as te,bb as ne,bd as r,be as re,br as ie,eB as i,eC as a,eE as o,eF as s,eG as c,eQ as l,eS as u,e_ as d,ev as f,ey as p,ez as m,f1 as h,f6 as g,f7 as _,fa as v}from"./index-DEhol03r.js";import{b as ae}from"./airi-card-7HyqBFjt.js";const oe={key:0,class:`w-full flex flex-col gap-5`},se={flex:`~ col`,"gap-3":``},ce={flex:`~ row`,"items-center":``,"justify-between":``},le={flex:`~ row`,"items-center":``,"gap-2":``},ue={key:0,class:`flex items-center gap-1 rounded-full bg-primary-100 px-2 py-0.5 text-xs text-primary-600 font-medium dark:bg-primary-900/40 dark:text-primary-400`},de={"mt-1":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},fe={"font-medium":``},pe={flex:`~ row`,"gap-2":``},me={class:`mt-4`},he={class:`border-b border-neutral-200 dark:border-neutral-700`},ge={class:`flex justify-center -mb-px sm:justify-start space-x-1`},y=[`onClick`],b={class:`flex items-center gap-1`},x={key:0},S=[`innerHTML`],C={key:1},w=[`innerHTML`],T={key:2},E={flex:`~ col`,"max-h-60":``,"gap-4":``,"overflow-auto":``,"pr-1":``,"sm:max-h-80":``},D={key:0,flex:`~ col`,"gap-2":``},O={"text-lg":``,"text-neutral-500":``,"font-medium":``,"dark:text-neutral-400":``},k=[`innerHTML`],A={key:3},j={grid:`~ cols-1 sm:cols-3`,"gap-4":``},M={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-1":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},N={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},P={truncate:``,"font-medium":``},F={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-2":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},I={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},L={truncate:``,"font-medium":``},_e={flex:`~ col`,bg:`white/60 dark:black/30`,"gap-2":``,"rounded-lg":``,"p-3":``,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`},ve={flex:`~ row`,"items-center":``,"gap-2":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},ye={truncate:``,"font-medium":``},be={key:1,bg:`neutral-50/50 dark:neutral-900/50`,"rounded-xl":``,"p-8":``,"text-center":``,border:`~ neutral-200/50 dark:neutral-700/30`,shadow:`sm`};var R=c({__name:`CardDetailDialog`,props:{modelValue:{type:Boolean},cardId:{}},emits:[`update:modelValue`],setup(c,{emit:R}){let z=c,B=R,{t:V}=t(),H=ae(),{removeCard:xe}=H,{activeCardId:U}=n(H),W=p(()=>{if(z.cardId)return H.getCard(z.cardId)}),G=p(()=>{if(!W.value||!W.value.extensions?.airi?.modules)return{consciousness:``,speech:``,voice:``};let e=W.value.extensions.airi.modules;return{consciousness:e.consciousness?.model||``,speech:e.speech?.model||``,voice:e.speech?.voice_id||``}}),K=p(()=>W.value?{personality:W.value.personality,scenario:W.value.scenario,systemPrompt:W.value.systemPrompt,postHistoryInstructions:W.value.postHistoryInstructions}:{}),q=p(()=>z.cardId===U.value),J=h(!1);function Se(){J.value=!0,setTimeout(()=>{U.value=z.cardId,J.value=!1},300)}function Y(e){return e?.replace(/\{\{(.*?)\}\}/g,`{{ $1 }}`).trim()}let X=h(!1);function Ce(){W.value&&(xe(z.cardId),B(`update:modelValue`,!1)),X.value=!1}let Z=h(``),Q=p(()=>{let e=[];return W.value?.description&&e.push({id:`description`,label:V(`settings.pages.card.description_label`),icon:`i-solar:document-text-linear`}),W.value?.notes&&e.push({id:`notes`,label:V(`settings.pages.card.creator_notes`),icon:`i-solar:notes-linear`}),Object.values(K.value).some(e=>!!e)&&e.push({id:`character`,label:V(`settings.pages.card.character`),icon:`i-solar:user-rounded-linear`}),e.push({id:`modules`,label:V(`settings.pages.card.modules`),icon:`i-solar:tuning-square-linear`}),e}),$=p({get:()=>Q.value.find(e=>e.id===Z.value)?Z.value:Q.value[0]?.id||``,set:e=>{Z.value=e}});return(t,n)=>(l(),a(f,null,[s(g(ie),{open:t.modelValue,"onUpdate:open":n[0]||=e=>B(`update:modelValue`,e)},{default:d(()=>[s(g(ne),null,{default:d(()=>[s(g(r),{class:`fixed inset-0 z-100 bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),s(g(re),{class:`fixed left-1/2 top-1/2 z-100 m-0 max-h-[90vh] max-w-6xl w-[92vw] flex flex-col overflow-auto border border-neutral-200 rounded-xl bg-white p-5 shadow-xl 2xl:w-[60vw] lg:w-[80vw] md:w-[85vw] xl:w-[70vw] -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:d(()=>[W.value?(l(),a(`div`,oe,[m(`div`,se,[m(`div`,ce,[m(`div`,null,[m(`div`,le,[s(g(te),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:d(()=>[o(v(W.value.name),1)]),_:1}),q.value?(l(),a(`div`,ue,[n[3]||=m(`div`,{"i-solar:check-circle-bold-duotone":``,"text-xs":``},null,-1),o(` `+v(g(V)(`settings.pages.card.active_badge`)),1)])):i(``,!0)]),m(`div`,de,[o(` v`+v(W.value.version)+` `,1),W.value.creator?(l(),a(f,{key:0},[o(` · `+v(g(V)(`settings.pages.card.created_by`))+` `,1),m(`span`,fe,v(W.value.creator),1)],64)):i(``,!0)])]),m(`div`,pe,[s(g(ee),{variant:`primary`,icon:q.value?`i-solar:check-circle-bold-duotone`:`i-solar:play-circle-broken`,label:q.value?g(V)(`settings.pages.card.active`):g(V)(`settings.pages.card.activate`),disabled:q.value,class:_({"animate-pulse":J.value}),onClick:Se},null,8,[`icon`,`label`,`disabled`,`class`])])]),m(`div`,me,[m(`div`,he,[m(`div`,ge,[(l(!0),a(f,null,u(Q.value,e=>(l(),a(`button`,{key:e.id,class:_([`px-4 py-2 text-sm font-medium`,[$.value===e.id?`text-primary-600 dark:text-primary-400 border-b-2 border-primary-500 dark:border-primary-400`:`text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300`]]),onClick:t=>$.value=e.id},[m(`div`,b,[m(`div`,{class:_(e.icon)},null,2),o(` `+v(e.label),1)])],10,y))),128))])])]),$.value===`notes`&&W.value.notes?(l(),a(`div`,x,[m(`div`,{bg:`white/60 dark:black/30`,border:`~ neutral-200/50 dark:neutral-700/30`,"max-h-60":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-4":``,"text-neutral-700":``,"sm:max-h-80":``,"dark:text-neutral-300":``,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`,innerHTML:Y(W.value.notes)},null,8,S)])):i(``,!0),$.value===`description`&&W.value.description?(l(),a(`div`,C,[m(`div`,{bg:`white/60 dark:black/30`,"max-h-60":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-4":``,"sm:max-h-80":``,text:`neutral-600 dark:neutral-300`,border:`~ neutral-200/50 dark:neutral-700/30`,innerHTML:Y(W.value.description)},null,8,w)])):i(``,!0),$.value===`character`&&Object.values(K.value).some(e=>!!e)?(l(),a(`div`,T,[m(`div`,E,[(l(!0),a(f,null,u(K.value,(e,t)=>(l(),a(f,{key:t},[e?(l(),a(`div`,D,[m(`h2`,O,v(g(V)(`settings.pages.card.${t.toLowerCase()}`)),1),m(`div`,{bg:`white/60 dark:black/30`,border:`~ neutral-200/50 dark:neutral-700/30`,transition:`all duration-200`,hover:`bg-white/80 dark:bg-black/40`,"max-h-none":``,"overflow-auto":``,"whitespace-pre-line":``,"rounded-lg":``,"p-3":``,"text-neutral-700":``,"dark:text-neutral-300":``,innerHTML:Y(e)},null,8,k)])):i(``,!0)],64))),128))])])):i(``,!0),$.value===`modules`?(l(),a(`div`,A,[m(`div`,j,[m(`div`,M,[m(`span`,N,[n[4]||=m(`div`,{"i-lucide:ghost":``},null,-1),o(` `+v(g(V)(`settings.pages.card.consciousness.model`)),1)]),m(`div`,P,v(G.value.consciousness??`default`),1)]),m(`div`,F,[m(`span`,I,[n[5]||=m(`div`,{"i-lucide:mic":``},null,-1),o(` `+v(g(V)(`settings.pages.card.speech.model`)),1)]),m(`div`,L,v(G.value.speech??`default`),1)]),m(`div`,_e,[m(`span`,ve,[n[6]||=m(`div`,{"i-lucide:music":``},null,-1),o(` `+v(g(V)(`settings.pages.card.speech.voice`)),1)]),m(`div`,ye,v(G.value.voice??`default`),1)])])])):i(``,!0)])])):(l(),a(`div`,be,[n[7]||=m(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),o(` `+v(g(V)(`settings.pages.card.card_not_found`)),1)]))]),_:1})]),_:1})]),_:1},8,[`open`]),s(e,{modelValue:X.value,"onUpdate:modelValue":n[1]||=e=>X.value=e,"card-name":W.value?.name,onConfirm:Ce,onCancel:n[2]||=e=>X.value=!1},null,8,[`modelValue`,`card-name`])],64))}}),z=R;export{z as b}; \ No newline at end of file diff --git a/assets/CardDetailDialog-Do3bK3_b.js b/assets/CardDetailDialog-Do3bK3_b.js new file mode 100644 index 0000000000000000000000000000000000000000..cb309642499d82fdac0d1cb4767862c86ad8e5cc --- /dev/null +++ b/assets/CardDetailDialog-Do3bK3_b.js @@ -0,0 +1 @@ +import"./DeleteCardDialog-DnHrNX0U.js";import"./airi-card-CObXZhjH.js";import{b as e}from"./CardDetailDialog-Bhvhe9Mf.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardListItem-CLD9xvv2.js b/assets/CardListItem-CLD9xvv2.js new file mode 100644 index 0000000000000000000000000000000000000000..447dd16e7dfa407cffb6d4818180f92348e9a486 --- /dev/null +++ b/assets/CardListItem-CLD9xvv2.js @@ -0,0 +1 @@ +import{b as e}from"./CardListItem-qNOu7TJN.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardListItem-CqFaImDZ.js b/assets/CardListItem-CqFaImDZ.js deleted file mode 100644 index f837d15ca82eb14a46ff965aa28d9cb7b9fb84bf..0000000000000000000000000000000000000000 --- a/assets/CardListItem-CqFaImDZ.js +++ /dev/null @@ -1 +0,0 @@ -import{b as e}from"./CardListItem-C9OC2Kwb.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardListItem-C9OC2Kwb.js b/assets/CardListItem-qNOu7TJN.js similarity index 65% rename from assets/CardListItem-C9OC2Kwb.js rename to assets/CardListItem-qNOu7TJN.js index 8de36adbd476b230be8244cbad627164e200bd32..64db10b9357aedb4038f237eec2cffe8b7cf2424 100644 --- a/assets/CardListItem-C9OC2Kwb.js +++ b/assets/CardListItem-qNOu7TJN.js @@ -1 +1 @@ -import{ak as e,eA as t,eB as n,eC as r,eG as i,eQ as a,e_ as o,eu as s,ez as c,f6 as l,f7 as u,fa as d}from"./index-DEhol03r.js";const f={relative:``,flex:`~ col 1`,"justify-between":``,"gap-3":``,"overflow-hidden":``,"rounded-lg":``,bg:`white dark:neutral-900`,"p-5":``,transition:`all ease-in-out duration-400`,after:`content-empty absolute inset-0 z--2 w-full h-full bg-dotted-[neutral-200/80] bg-size-10px mask-image-[linear-gradient(165deg,white_30%,transparent_50%)] transition-all duration-400 ease-in-out`,hover:`after:bg-dotted-[primary-300/50] dark:after:bg-dotted-[primary-200/20] text-primary-600/80 dark:text-primary-300/80`},p={"z-1":``,flex:``,"items-start":``,"justify-between":``,"gap-2":``},m={"flex-1":``,truncate:``,"text-lg":``,"font-normal":``},h={key:0,"shrink-0":``,"rounded-md":``,"p-1":``,bg:`primary-100 dark:primary-900/40`,text:`primary-600 dark:primary-400`},g={key:0,"line-clamp-3":``,"min-h-40px":``,"flex-1":``,"text-sm":``,text:`neutral-500 dark:neutral-400`},_={"z-1":``,flex:``,"items-center":``,"justify-between":``,"text-xs":``,text:`neutral-500 dark:neutral-400`},v={flex:``,"items-center":``,"gap-1.5":``},y={flex:``,"items-center":``,"gap-0.5":``},b={flex:``,"items-center":``,"gap-0.5":``},x={flex:``,"items-center":``,"justify-end":``,"px-2":``,"py-1.5":``},S=[`disabled`];var C=i({__name:`CardListItem`,props:{id:{},name:{},description:{},isActive:{type:Boolean},isSelected:{type:Boolean},version:{},consciousnessModel:{},voiceModel:{}},emits:[`select`,`activate`,`delete`],setup(i,{emit:C}){let w=C;return(i,C)=>(a(),t(l(e),{relative:``,"min-h-120px":``,flex:`~ col`,"cursor-pointer":``,"overflow-hidden":``,"rounded-xl":``,class:u([i.isSelected?`border-2 border-primary-400 dark:border-primary-600`:`border-2 border-neutral-100 dark:border-neutral-800/25`]),bg:`neutral-200/50 dark:neutral-800/50`,"drop-shadow":`none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none`,transition:`all ease-in-out duration-400`,before:`content-empty absolute inset-0 z-0 w-25% h-full transition-all duration-400 ease-in-out bg-gradient-to-r from-primary-500/0 to-primary-500/0 dark:from-primary-400/0 dark:to-primary-400/0 mask-image-[linear-gradient(120deg,white_100%)] opacity-0`,hover:`before:opacity-100 before:bg-gradient-to-r before:from-primary-500/20 before:via-primary-500/10 before:to-transparent before:dark:from-primary-400/20 before:dark:via-primary-400/10 before:dark:to-transparent`,onClick:C[2]||=e=>w(`select`)},{default:o(()=>[c(`div`,f,[c(`div`,p,[c(`h3`,m,d(i.name),1),i.isActive?(a(),r(`div`,h,[...C[3]||=[c(`div`,{"i-solar:check-circle-bold-duotone":``,"text-sm":``},null,-1)]])):n(``,!0)]),i.description?(a(),r(`p`,g,d(i.description),1)):n(``,!0),c(`div`,_,[c(`div`,null,`v`+d(i.version),1),c(`div`,v,[c(`div`,y,[C[4]||=c(`div`,{"i-lucide:ghost":``,"text-xs":``},null,-1),c(`span`,null,d(i.consciousnessModel),1)]),c(`div`,b,[C[5]||=c(`div`,{"i-lucide:mic":``,"text-xs":``},null,-1),c(`span`,null,d(i.voiceModel),1)])])])]),c(`div`,x,[c(`button`,{"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,disabled:i.isActive,onClick:C[0]||=s(e=>w(`activate`),[`stop`])},[c(`div`,{class:u([i.isActive?`i-solar:check-circle-bold-duotone text-primary-500 dark:text-primary-400`:`i-solar:play-circle-broken text-neutral-500 dark:text-neutral-400`])},null,2)],8,S),i.id===`default`?n(``,!0):(a(),r(`button`,{key:0,"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,onClick:C[1]||=s(e=>w(`delete`),[`stop`])},[...C[6]||=[c(`div`,{"i-solar:trash-bin-trash-linear":``,text:`neutral-500 dark:neutral-400`},null,-1)]]))])]),_:1},8,[`class`]))}}),w=C;export{w as b}; \ No newline at end of file +import{ak as e,e$ as t,eA as n,eB as r,eC as i,eD as a,eH as o,eR as s,ev as c,f7 as l,f8 as u,fb as d}from"./index-D3Bcbz9S.js";const f={relative:``,flex:`~ col 1`,"justify-between":``,"gap-3":``,"overflow-hidden":``,"rounded-lg":``,bg:`white dark:neutral-900`,"p-5":``,transition:`all ease-in-out duration-400`,after:`content-empty absolute inset-0 z--2 w-full h-full bg-dotted-[neutral-200/80] bg-size-10px mask-image-[linear-gradient(165deg,white_30%,transparent_50%)] transition-all duration-400 ease-in-out`,hover:`after:bg-dotted-[primary-300/50] dark:after:bg-dotted-[primary-200/20] text-primary-600/80 dark:text-primary-300/80`},p={"z-1":``,flex:``,"items-start":``,"justify-between":``,"gap-2":``},m={"flex-1":``,truncate:``,"text-lg":``,"font-normal":``},h={key:0,"shrink-0":``,"rounded-md":``,"p-1":``,bg:`primary-100 dark:primary-900/40`,text:`primary-600 dark:primary-400`},g={key:0,"line-clamp-3":``,"min-h-40px":``,"flex-1":``,"text-sm":``,text:`neutral-500 dark:neutral-400`},_={"z-1":``,flex:``,"items-center":``,"justify-between":``,"text-xs":``,text:`neutral-500 dark:neutral-400`},v={flex:``,"items-center":``,"gap-1.5":``},y={flex:``,"items-center":``,"gap-0.5":``},b={flex:``,"items-center":``,"gap-0.5":``},x={flex:``,"items-center":``,"justify-end":``,"px-2":``,"py-1.5":``},S=[`disabled`];var C=o({__name:`CardListItem`,props:{id:{},name:{},description:{},isActive:{type:Boolean},isSelected:{type:Boolean},version:{},consciousnessModel:{},voiceModel:{}},emits:[`select`,`activate`,`delete`],setup(o,{emit:C}){let w=C;return(o,C)=>(s(),r(l(e),{relative:``,"min-h-120px":``,flex:`~ col`,"cursor-pointer":``,"overflow-hidden":``,"rounded-xl":``,class:u([o.isSelected?`border-2 border-primary-400 dark:border-primary-600`:`border-2 border-neutral-100 dark:border-neutral-800/25`]),bg:`neutral-200/50 dark:neutral-800/50`,"drop-shadow":`none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none`,transition:`all ease-in-out duration-400`,before:`content-empty absolute inset-0 z-0 w-25% h-full transition-all duration-400 ease-in-out bg-gradient-to-r from-primary-500/0 to-primary-500/0 dark:from-primary-400/0 dark:to-primary-400/0 mask-image-[linear-gradient(120deg,white_100%)] opacity-0`,hover:`before:opacity-100 before:bg-gradient-to-r before:from-primary-500/20 before:via-primary-500/10 before:to-transparent before:dark:from-primary-400/20 before:dark:via-primary-400/10 before:dark:to-transparent`,onClick:C[2]||=e=>w(`select`)},{default:t(()=>[n(`div`,f,[n(`div`,p,[n(`h3`,m,d(o.name),1),o.isActive?(s(),a(`div`,h,[...C[3]||=[n(`div`,{"i-solar:check-circle-bold-duotone":``,"text-sm":``},null,-1)]])):i(``,!0)]),o.description?(s(),a(`p`,g,d(o.description),1)):i(``,!0),n(`div`,_,[n(`div`,null,`v`+d(o.version),1),n(`div`,v,[n(`div`,y,[C[4]||=n(`div`,{"i-lucide:ghost":``,"text-xs":``},null,-1),n(`span`,null,d(o.consciousnessModel),1)]),n(`div`,b,[C[5]||=n(`div`,{"i-lucide:mic":``,"text-xs":``},null,-1),n(`span`,null,d(o.voiceModel),1)])])])]),n(`div`,x,[n(`button`,{"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,disabled:o.isActive,onClick:C[0]||=c(e=>w(`activate`),[`stop`])},[n(`div`,{class:u([o.isActive?`i-solar:check-circle-bold-duotone text-primary-500 dark:text-primary-400`:`i-solar:play-circle-broken text-neutral-500 dark:text-neutral-400`])},null,2)],8,S),o.id===`default`?i(``,!0):(s(),a(`button`,{key:0,"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,onClick:C[1]||=c(e=>w(`delete`),[`stop`])},[...C[6]||=[n(`div`,{"i-solar:trash-bin-trash-linear":``,text:`neutral-500 dark:neutral-400`},null,-1)]]))])]),_:1},8,[`class`]))}}),w=C;export{w as b}; \ No newline at end of file diff --git a/assets/DeleteCardDialog-BzH_7FHZ.js b/assets/DeleteCardDialog-BzH_7FHZ.js deleted file mode 100644 index d93b46492c12cb09169bd31b5c169ddcc28d4142..0000000000000000000000000000000000000000 --- a/assets/DeleteCardDialog-BzH_7FHZ.js +++ /dev/null @@ -1 +0,0 @@ -import{ae as e,ao as t,bA as n,bB as r,bE as i,bI as a,ba as o,bc as s,bd as c,be as l,br as u,bs as d,bu as f,eA as p,eE as m,eF as h,eG as g,eH as _,eM as v,eN as y,eO as b,eQ as x,eT as S,e_ as C,eu as w,ez as T,f1 as E,f6 as D,f8 as O,fa as k}from"./index-DEhol03r.js";var A=g({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;r();let n=d();return(e,r)=>(x(),p(D(f),v(t,{type:e.as===`button`?`button`:void 0,onClick:r[0]||=e=>D(n).onOpenChange(!1)}),{default:C(()=>[S(e.$slots,`default`)]),_:3},16,[`type`]))}}),j=A,M=g({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let t=e;r();let n=d();return(e,r)=>(x(),p(D(f),v(t,{id:D(n).descriptionId}),{default:C(()=>[S(e.$slots,`default`)]),_:3},16,[`id`]))}}),N=M,P=g({__name:`AlertDialogAction`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;return r(),(e,n)=>(x(),p(D(j),O(_(t)),{default:C(()=>[S(e.$slots,`default`)]),_:3},16))}}),F=P;const[I,L]=a(`AlertDialogContent`);var R=g({__name:`AlertDialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,a=t,o=i(a);r();let s=E();return L({onCancelElementChange:e=>{s.value=e}}),(e,t)=>(x(),p(D(l),v({...n,...D(o)},{role:`alertdialog`,onPointerDownOutside:t[0]||=w(()=>{},[`prevent`]),onInteractOutside:t[1]||=w(()=>{},[`prevent`]),onOpenAutoFocus:t[2]||=()=>{y(()=>{s.value?.focus({preventScroll:!0})})}}),{default:C(()=>[S(e.$slots,`default`)]),_:3},16))}}),z=R,B=g({__name:`AlertDialogCancel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=I(),{forwardRef:i,currentElement:a}=r();return b(()=>{n.onCancelElementChange(a.value)}),(e,n)=>(x(),p(D(j),v(t,{ref:D(i)}),{default:C(()=>[S(e.$slots,`default`)]),_:3},16))}}),V=B,H=g({__name:`AlertDialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let t=e;return r(),(e,n)=>(x(),p(D(N),O(_(t)),{default:C(()=>[S(e.$slots,`default`)]),_:3},16))}}),U=H,W=g({__name:`AlertDialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return r(),(e,n)=>(x(),p(D(c),O(_(t)),{default:C(()=>[S(e.$slots,`default`)]),_:3},16))}}),G=W,K=g({__name:`AlertDialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(x(),p(D(s),O(_(t)),{default:C(()=>[S(e.$slots,`default`)]),_:3},16))}}),q=K,J=g({__name:`AlertDialogRoot`,props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:[`update:open`],setup(e,{emit:t}){let i=e,a=t,o=n(i,a);return r(),(e,t)=>(x(),p(D(u),v(D(o),{modal:!0}),{default:C(t=>[S(e.$slots,`default`,O(_(t)))]),_:3},16))}}),Y=J,X=g({__name:`AlertDialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e;return r(),(e,n)=>(x(),p(D(o),O(_(t)),{default:C(()=>[S(e.$slots,`default`)]),_:3},16))}}),Z=X;const Q={class:`flex flex-row justify-end gap-3`};var $=g({__name:`DeleteCardDialog`,props:{modelValue:{type:Boolean},cardName:{}},emits:[`update:modelValue`,`confirm`,`cancel`],setup(n,{emit:r}){let i=r,{t:a}=e();function o(){i(`update:modelValue`,!1),i(`cancel`)}function s(){i(`update:modelValue`,!1),i(`confirm`)}return(e,n)=>(x(),p(D(Y),{open:e.modelValue,"onUpdate:open":n[0]||=e=>i(`update:modelValue`,e)},{default:C(()=>[h(D(q),null,{default:C(()=>[h(D(G),{class:`fixed inset-0 z-100 bg-black/50 data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),h(D(z),{class:`fixed left-1/2 top-1/2 z-100 max-w-md w-full border border-neutral-200 rounded-xl bg-white p-6 shadow-xl -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:border-neutral-700 dark:bg-neutral-800`},{default:C(()=>[h(D(Z),{class:`mb-4 text-xl font-normal`},{default:C(()=>[m(k(D(a)(`settings.pages.card.delete_card`)),1)]),_:1}),h(D(U),{class:`mb-6`},{default:C(()=>[m(k(D(a)(`settings.pages.card.delete_confirmation`))+` `,1),T(`b`,null,`"`+k(e.cardName||``)+`"`,1)]),_:1}),T(`div`,Q,[h(D(V),{"as-child":``},{default:C(()=>[h(D(t),{variant:`secondary`,label:D(a)(`settings.pages.card.cancel`),onClick:o},null,8,[`label`])]),_:1}),h(D(F),{"as-child":``},{default:C(()=>[h(D(t),{variant:`danger`,label:D(a)(`settings.pages.card.delete`),onClick:s},null,8,[`label`])]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),ee=$;export{ee as b}; \ No newline at end of file diff --git a/assets/DeleteCardDialog-DZqTqZyu.js b/assets/DeleteCardDialog-DZqTqZyu.js deleted file mode 100644 index aa3b1f4446b6f701658c9287cf0977e8537c037e..0000000000000000000000000000000000000000 --- a/assets/DeleteCardDialog-DZqTqZyu.js +++ /dev/null @@ -1 +0,0 @@ -import{b as e}from"./DeleteCardDialog-BzH_7FHZ.js";export{e as default}; \ No newline at end of file diff --git a/assets/DeleteCardDialog-Dhf89jrW.js b/assets/DeleteCardDialog-Dhf89jrW.js new file mode 100644 index 0000000000000000000000000000000000000000..2ec4927beee74db67a22c110d2e26ec68e24b020 --- /dev/null +++ b/assets/DeleteCardDialog-Dhf89jrW.js @@ -0,0 +1 @@ +import{b as e}from"./DeleteCardDialog-DnHrNX0U.js";export{e as default}; \ No newline at end of file diff --git a/assets/DeleteCardDialog-DnHrNX0U.js b/assets/DeleteCardDialog-DnHrNX0U.js new file mode 100644 index 0000000000000000000000000000000000000000..5617ee87bdb53016ede3f5c0a1ee720377dc29eb --- /dev/null +++ b/assets/DeleteCardDialog-DnHrNX0U.js @@ -0,0 +1 @@ +import{ae as e,ao as t,bB as n,bC as r,bF as i,bJ as a,bb as o,bd as s,be as c,bf as l,bs as u,bt as d,bv as f,e$ as p,eA as m,eB as h,eF as g,eG as _,eH as v,eI as y,eN as b,eO as x,eP as S,eR as C,eU as w,ev as T,f2 as E,f7 as D,f9 as O,fb as k}from"./index-D3Bcbz9S.js";var A=v({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;r();let n=d();return(e,r)=>(C(),h(D(f),b(t,{type:e.as===`button`?`button`:void 0,onClick:r[0]||=e=>D(n).onOpenChange(!1)}),{default:p(()=>[w(e.$slots,`default`)]),_:3},16,[`type`]))}}),j=A,M=v({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let t=e;r();let n=d();return(e,r)=>(C(),h(D(f),b(t,{id:D(n).descriptionId}),{default:p(()=>[w(e.$slots,`default`)]),_:3},16,[`id`]))}}),N=M,P=v({__name:`AlertDialogAction`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;return r(),(e,n)=>(C(),h(D(j),O(y(t)),{default:p(()=>[w(e.$slots,`default`)]),_:3},16))}}),F=P;const[I,L]=a(`AlertDialogContent`);var R=v({__name:`AlertDialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,a=t,o=i(a);r();let s=E();return L({onCancelElementChange:e=>{s.value=e}}),(e,t)=>(C(),h(D(l),b({...n,...D(o)},{role:`alertdialog`,onPointerDownOutside:t[0]||=T(()=>{},[`prevent`]),onInteractOutside:t[1]||=T(()=>{},[`prevent`]),onOpenAutoFocus:t[2]||=()=>{x(()=>{s.value?.focus({preventScroll:!0})})}}),{default:p(()=>[w(e.$slots,`default`)]),_:3},16))}}),z=R,B=v({__name:`AlertDialogCancel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=I(),{forwardRef:i,currentElement:a}=r();return S(()=>{n.onCancelElementChange(a.value)}),(e,n)=>(C(),h(D(j),b(t,{ref:D(i)}),{default:p(()=>[w(e.$slots,`default`)]),_:3},16))}}),V=B,H=v({__name:`AlertDialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let t=e;return r(),(e,n)=>(C(),h(D(N),O(y(t)),{default:p(()=>[w(e.$slots,`default`)]),_:3},16))}}),U=H,W=v({__name:`AlertDialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return r(),(e,n)=>(C(),h(D(c),O(y(t)),{default:p(()=>[w(e.$slots,`default`)]),_:3},16))}}),G=W,K=v({__name:`AlertDialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(C(),h(D(s),O(y(t)),{default:p(()=>[w(e.$slots,`default`)]),_:3},16))}}),q=K,J=v({__name:`AlertDialogRoot`,props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:[`update:open`],setup(e,{emit:t}){let i=e,a=t,o=n(i,a);return r(),(e,t)=>(C(),h(D(u),b(D(o),{modal:!0}),{default:p(t=>[w(e.$slots,`default`,O(y(t)))]),_:3},16))}}),Y=J,X=v({__name:`AlertDialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e;return r(),(e,n)=>(C(),h(D(o),O(y(t)),{default:p(()=>[w(e.$slots,`default`)]),_:3},16))}}),Z=X;const Q={class:`flex flex-row justify-end gap-3`};var $=v({__name:`DeleteCardDialog`,props:{modelValue:{type:Boolean},cardName:{}},emits:[`update:modelValue`,`confirm`,`cancel`],setup(n,{emit:r}){let i=r,{t:a}=e();function o(){i(`update:modelValue`,!1),i(`cancel`)}function s(){i(`update:modelValue`,!1),i(`confirm`)}return(e,n)=>(C(),h(D(Y),{open:e.modelValue,"onUpdate:open":n[0]||=e=>i(`update:modelValue`,e)},{default:p(()=>[_(D(q),null,{default:p(()=>[_(D(G),{class:`fixed inset-0 z-100 bg-black/50 data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),_(D(z),{class:`fixed left-1/2 top-1/2 z-100 max-w-md w-full border border-neutral-200 rounded-xl bg-white p-6 shadow-xl -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:border-neutral-700 dark:bg-neutral-800`},{default:p(()=>[_(D(Z),{class:`mb-4 text-xl font-normal`},{default:p(()=>[g(k(D(a)(`settings.pages.card.delete_card`)),1)]),_:1}),_(D(U),{class:`mb-6`},{default:p(()=>[g(k(D(a)(`settings.pages.card.delete_confirmation`))+` `,1),m(`b`,null,`"`+k(e.cardName||``)+`"`,1)]),_:1}),m(`div`,Q,[_(D(V),{"as-child":``},{default:p(()=>[_(D(t),{variant:`secondary`,label:D(a)(`settings.pages.card.cancel`),onClick:o},null,8,[`label`])]),_:1}),_(D(F),{"as-child":``},{default:p(()=>[_(D(t),{variant:`danger`,label:D(a)(`settings.pages.card.delete`),onClick:s},null,8,[`label`])]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),ee=$;export{ee as b}; \ No newline at end of file diff --git a/assets/HeaderLink-CWxXVf7j.js b/assets/HeaderLink-CWxXVf7j.js new file mode 100644 index 0000000000000000000000000000000000000000..677e74d97e3a086ce2ae4fea409334b368c3ade7 --- /dev/null +++ b/assets/HeaderLink-CWxXVf7j.js @@ -0,0 +1 @@ +import{aY as e,bK as t,bV as n,e$ as r,eA as i,eB as a,eD as o,eH as s,eR as c,f7 as l}from"./index-D3Bcbz9S.js";var u=`/assets/logo-dark-B0bvNYTh.svg`,d=`/assets/logo-B2aCU-bH.svg`;const f=[`src`],p=[`src`];var m=s({__name:`HeaderLink`,setup(e){let s=n();return(e,n)=>(c(),a(l(t),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:r(()=>[l(s)?(c(),o(`img`,{key:0,src:l(u),"h-8":``,"w-8":``,class:`theme-colored`},null,8,f)):(c(),o(`img`,{key:1,src:l(d),"h-8":``,"w-8":``,class:`theme-colored`},null,8,p)),n[0]||=i(`div`,{"translate-y":`[2px]`,"font-quicksand":``,"font-semibold":``},[i(`span`,null,`AIRI`)],-1)]),_:1}))}}),h=e(m,[[`__scopeId`,`data-v-242dcb19`]]);export{h as b,d as c,u as d}; \ No newline at end of file diff --git a/assets/HeaderLink-CwKWoudF.js b/assets/HeaderLink-CwKWoudF.js deleted file mode 100644 index b547cb5409827aa625efe10c12a71c5f03db841e..0000000000000000000000000000000000000000 --- a/assets/HeaderLink-CwKWoudF.js +++ /dev/null @@ -1 +0,0 @@ -import{aX as e,bJ as t,bU as n,eA as r,eC as i,eG as a,eQ as o,e_ as s,ez as c,f6 as l}from"./index-DEhol03r.js";var u=`/assets/logo-dark-B0bvNYTh.svg`,d=`/assets/logo-B2aCU-bH.svg`;const f=[`src`],p=[`src`];var m=a({__name:`HeaderLink`,setup(e){let a=n();return(e,n)=>(o(),r(l(t),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:s(()=>[l(a)?(o(),i(`img`,{key:0,src:l(u),"h-8":``,"w-8":``,class:`theme-colored`},null,8,f)):(o(),i(`img`,{key:1,src:l(d),"h-8":``,"w-8":``,class:`theme-colored`},null,8,p)),n[0]||=c(`div`,{"translate-y":`[2px]`,"font-quicksand":``,"font-semibold":``},[c(`span`,null,`AIRI`)],-1)]),_:1}))}}),h=e(m,[[`__scopeId`,`data-v-242dcb19`]]);export{h as b,d as c,u as d}; \ No newline at end of file diff --git a/assets/IconAnimation-C0TBccB2.js b/assets/IconAnimation-CpQ8Hyb3.js similarity index 60% rename from assets/IconAnimation-C0TBccB2.js rename to assets/IconAnimation-CpQ8Hyb3.js index e349a5d559622d8e407902ed1096b3a4b8ca2f74..0dd3c70b631ca1d3eee630b824966f56a7f0da9a 100644 --- a/assets/IconAnimation-C0TBccB2.js +++ b/assets/IconAnimation-CpQ8Hyb3.js @@ -1 +1 @@ -import{eC as e,eG as t,eQ as n,eY as r,ey as i,ez as a,f1 as o,f7 as s,f9 as c}from"./index-DEhol03r.js";var l=t({__name:`IconAnimation`,props:{icon:{},iconSize:{},position:{},duration:{},started:{type:Boolean},textColor:{},isReverse:{type:Boolean},zIndex:{}},emits:[`animationEnded`],setup(t,{emit:l}){let u=t,d=l,f=o(!1);r(()=>u.started,e=>{e&&requestAnimationFrame(()=>{f.value=!0})});let p=i(()=>({opacity:f.value===u.isReverse?0:1,size:f.value===u.isReverse?u.iconSize:25,position:f.value===u.isReverse?u.position:`calc(50dvw - 12.5rem), calc(50dvh - 12.5rem)`,textColor:f.value===u.isReverse?u.textColor:`text-white`})),m=o([]),h=o(!1);function g(e){m.value.push(e.propertyName),m.value.includes(`color`)&&m.value.includes(`width`)&&m.value.includes(`height`)&&m.value.includes(`transform`)&&(h.value=!0,d(`animationEnded`))}return(t,r)=>(n(),e(`div`,{"pointer-events-none":``,fixed:``,w:`100dvw`,h:`100dvh`,style:c({zIndex:h.value?t.zIndex:void 0})},[a(`div`,{fixed:``,"inset-0":``,"bg-primary-500":``,"transition-opacity":``,"ease-linear":``,style:c({opacity:p.value.opacity,transitionDuration:`${t.duration}ms`})},null,4),a(`div`,{fixed:``,"inset-0":``,"ease-in-out":``,style:c({width:`${p.value.size}rem`,height:`${p.value.size}rem`,transform:`translate(${p.value.position})`,transitionDuration:`${t.duration}ms`}),class:s([p.value.textColor,u.icon,{"transition-all":f.value}]),onTransitionend:g},null,38)],4))}}),u=l;export{u as b}; \ No newline at end of file +import{eA as e,eD as t,eH as n,eR as r,eZ as i,ez as a,f2 as o,f8 as s,fa as c}from"./index-D3Bcbz9S.js";var l=n({__name:`IconAnimation`,props:{icon:{},iconSize:{},position:{},duration:{},started:{type:Boolean},textColor:{},isReverse:{type:Boolean},zIndex:{}},emits:[`animationEnded`],setup(n,{emit:l}){let u=n,d=l,f=o(!1);i(()=>u.started,e=>{e&&requestAnimationFrame(()=>{f.value=!0})});let p=a(()=>({opacity:f.value===u.isReverse?0:1,size:f.value===u.isReverse?u.iconSize:25,position:f.value===u.isReverse?u.position:`calc(50dvw - 12.5rem), calc(50dvh - 12.5rem)`,textColor:f.value===u.isReverse?u.textColor:`text-white`})),m=o([]),h=o(!1);function g(e){m.value.push(e.propertyName),m.value.includes(`color`)&&m.value.includes(`width`)&&m.value.includes(`height`)&&m.value.includes(`transform`)&&(h.value=!0,d(`animationEnded`))}return(n,i)=>(r(),t(`div`,{"pointer-events-none":``,fixed:``,w:`100dvw`,h:`100dvh`,style:c({zIndex:h.value?n.zIndex:void 0})},[e(`div`,{fixed:``,"inset-0":``,"bg-primary-500":``,"transition-opacity":``,"ease-linear":``,style:c({opacity:p.value.opacity,transitionDuration:`${n.duration}ms`})},null,4),e(`div`,{fixed:``,"inset-0":``,"ease-in-out":``,style:c({width:`${p.value.size}rem`,height:`${p.value.size}rem`,transform:`translate(${p.value.position})`,transitionDuration:`${n.duration}ms`}),class:s([p.value.textColor,u.icon,{"transition-all":f.value}]),onTransitionend:g},null,38)],4))}}),u=l;export{u as b}; \ No newline at end of file diff --git a/assets/InputFile-BfCG4dBd.js b/assets/InputFile-BfCG4dBd.js deleted file mode 100644 index c190a191ae558abfc482c56f31a36fd05a79d182..0000000000000000000000000000000000000000 --- a/assets/InputFile-BfCG4dBd.js +++ /dev/null @@ -1 +0,0 @@ -import{b as e}from"./BasicInputFile-DJjm73Ud.js";import{eA as t,eC as n,eG as r,eQ as i,e_ as a,ez as o,f7 as s}from"./index-DEhol03r.js";const c={key:0,text:`center`,"text-sm":``},l={key:1,text:`center`,"text-sm":``};var u=r({__name:`InputFile`,props:{accept:{},multiple:{type:Boolean}},setup(r){return(r,u)=>(i(),t(e,{class:`min-h-[120px] flex flex-col cursor-pointer items-center justify-center rounded-xl p-6`,"is-not-dragging-classes":[`border-neutral-200 dark:border-neutral-700 hover:border-primary-300 dark:hover:border-primary-700`,`bg-white/60 dark:bg-black/30 hover:bg-white/80 dark:hover:bg-black/40`],"is-dragging-classes":[`border-primary-400 dark:border-primary-600 hover:border-primary-300 dark:hover:border-primary-700`,`bg-primary-50/5 dark:bg-primary-900/5`],border:`dashed 2`,transition:`all duration-300`,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`,accept:r.accept,multiple:r.multiple},{default:a(({isDragging:e})=>[o(`div`,{class:s([`flex flex-col items-center`,[e?`text-primary-500 dark:text-primary-400`:`text-neutral-400 dark:text-neutral-500`]])},[u[0]||=o(`div`,{"i-solar:upload-square-line-duotone":``,"mb-2":``,"text-5xl":``},null,-1),u[1]||=o(`p`,{"font-medium":``,text:`center lg`},` Upload `,-1),e?(i(),n(`p`,c,` Release to upload `)):(i(),n(`p`,l,` Click or drag and drop a file here `))],2)]),_:1},8,[`accept`,`multiple`]))}}),d=u;export{d as b}; \ No newline at end of file diff --git a/assets/InputFile-Bx1X59Ey.js b/assets/InputFile-Bx1X59Ey.js new file mode 100644 index 0000000000000000000000000000000000000000..8a5add56b2ef9b7abaed705634c3b672b07321be --- /dev/null +++ b/assets/InputFile-Bx1X59Ey.js @@ -0,0 +1 @@ +import{b as e}from"./BasicInputFile-DP8wr1m6.js";import{e$ as t,eA as n,eB as r,eD as i,eH as a,eR as o,f8 as s}from"./index-D3Bcbz9S.js";const c={key:0,text:`center`,"text-sm":``},l={key:1,text:`center`,"text-sm":``};var u=a({__name:`InputFile`,props:{accept:{},multiple:{type:Boolean}},setup(a){return(a,u)=>(o(),r(e,{class:`min-h-[120px] flex flex-col cursor-pointer items-center justify-center rounded-xl p-6`,"is-not-dragging-classes":[`border-neutral-200 dark:border-neutral-700 hover:border-primary-300 dark:hover:border-primary-700`,`bg-white/60 dark:bg-black/30 hover:bg-white/80 dark:hover:bg-black/40`],"is-dragging-classes":[`border-primary-400 dark:border-primary-600 hover:border-primary-300 dark:hover:border-primary-700`,`bg-primary-50/5 dark:bg-primary-900/5`],border:`dashed 2`,transition:`all duration-300`,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`,accept:a.accept,multiple:a.multiple},{default:t(({isDragging:e})=>[n(`div`,{class:s([`flex flex-col items-center`,[e?`text-primary-500 dark:text-primary-400`:`text-neutral-400 dark:text-neutral-500`]])},[u[0]||=n(`div`,{"i-solar:upload-square-line-duotone":``,"mb-2":``,"text-5xl":``},null,-1),u[1]||=n(`p`,{"font-medium":``,text:`center lg`},` Upload `,-1),e?(o(),i(`p`,c,` Release to upload `)):(o(),i(`p`,l,` Click or drag and drop a file here `))],2)]),_:1},8,[`accept`,`multiple`]))}}),d=u;export{d as b}; \ No newline at end of file diff --git a/assets/Scenes-0TJqCS-r.js b/assets/Scenes-CKSNtwSU.js similarity index 97% rename from assets/Scenes-0TJqCS-r.js rename to assets/Scenes-CKSNtwSU.js index de1616f0a008094561e0d1232ec7463a6d30b08b..9985b5828a00f567adf7a36de47565bd37fe5a53 100644 --- a/assets/Scenes-0TJqCS-r.js +++ b/assets/Scenes-CKSNtwSU.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-BOrN4rVf.js","assets/index-DEhol03r.js","assets/index-Bg8-TZ3F.css","assets/default-node-CfSUWdLW.js","assets/import-url-browser-agSP1LkN.js","assets/import-url-browser-CQxpIBxI.js","assets/duckdb-mvp-DkPAVKN8.js","assets/import-url-node-DsdDfn-V.js"])))=>i.map(i=>d[i]); -import{A as e,L as t,M as n,P as r,Q as i,R as a,S as o,T as s,U as c,V as l,a4 as u,a6 as d,a7 as f,aB as p,aD as m,aE as h,aF as ee,aG as te,aH as ne,aO as re,am as ie,b$ as ae,bN as oe,bO as se,bP as ce,bQ as le,bR as ue,bS as de,bU as fe,bW as pe,bY as me,c as he,c9 as ge,cA as _e,cB as ve,cD as ye,cE as be,cF as xe,cG as Se,cH as Ce,cI as we,cJ as Te,cK as Ee,cL as De,cM as Oe,cO as ke,cQ as Ae,cR as je,cS as Me,cU as Ne,cV as Pe,cW as Fe,cZ as Ie,ca as Le,cb as Re,cc as ze,cd as Be,ce as Ve,cf as He,cg as Ue,ch as We,cl as Ge,cn as Ke,co as qe,cp as Je,cr as Ye,ct as Xe,cu as Ze,cx as Qe,cy as $e,cz as et,d7 as tt,dA as nt,dB as rt,dE as it,dF as at,dG as ot,dL as st,dN as ct,dO as lt,dP as ut,dQ as dt,dR as ft,dS as pt,dT as mt,dU as ht,dV as gt,dW as _t,dX as vt,dY as yt,dZ as bt,d_ as xt,dc as St,dd as Ct,df as wt,dg as Tt,dj as Et,dk as Dt,dl as Ot,dm as kt,dp as At,dq as jt,dr as Mt,ds as Nt,dt as Pt,du as Ft,dw as It,dz as Lt,e$ as Rt,e2 as zt,e3 as Bt,e5 as Vt,e7 as Ht,eA as Ut,eB as Wt,eC as Gt,eF as Kt,eG as qt,eH as Jt,eJ as Yt,eL as Xt,eN as Zt,eO as Qt,eP as $t,eQ as en,eR as tn,eT as nn,eW as rn,eY as an,eZ as on,e_ as sn,ec as cn,ed as ln,ee as un,ef as dn,eg as fn,eh as pn,ei as mn,ej as hn,ek as gn,el as _n,em as vn,en as yn,es as bn,ev as xn,ex as Sn,ey as Cn,ez as wn,f1 as g,f2 as Tn,f3 as En,f4 as Dn,f6 as On,f8 as kn,fd as An,fg as jn,g as Mn,h as Nn,i as Pn,k as Fn,l as _,m as In,n as Ln,o as Rn,p as zn,q as Bn,r as Vn,s as Hn,t as Un,u as Wn,v as Gn,w as Kn,x as qn,y as Jn,z as Yn}from"./index-DEhol03r.js";import{b as Xn}from"./dist-ByFcnk3K.js";import{b as Zn,c as Qn,d as $n,e as er,f as tr,g as nr,h as rr,i as ir,j as ar,k as or,l as sr,m as cr,n as lr,o as ur,p as dr}from"./ibl-CbBD07sa.js";import{b as fr}from"./import-url-browser-CQxpIBxI.js";import{c as pr,d as mr}from"./index-CAcLDIRJ-zzf_MFDO.js";import{$ as hr,A as gr,B as _r,C as vr,D as yr,E as br,F as xr,G as Sr,H as Cr,I as wr,J as Tr,K as Er,L as Dr,M as Or,N as kr,O as Ar,P as jr,Q as Mr,R as Nr,S as Pr,T as Fr,U as Ir,V as Lr,W as Rr,X as zr,Y as Br,Z as Vr,_ as Hr,a1 as Ur,a2 as Wr,a3 as Gr,a4 as Kr,a6 as qr,a8 as Jr,a9 as Yr,aA as Xr,aB as Zr,aC as Qr,aE as $r,aF as ei,aG as ti,aH as ni,aI as ri,aJ as ii,aK as ai,aL as oi,aM as si,aN as ci,aO as li,aP as ui,aQ as di,aR as fi,aS as pi,aa as mi,ab as hi,ac as gi,ad as _i,ae as vi,af as yi,ag as bi,ah as xi,ai as Si,aj as Ci,ak as wi,al as Ti,am as Ei,an as Di,ao as Oi,ap as ki,aq as Ai,ar as ji,as as Mi,at as Ni,au as Pi,av as Fi,aw as Ii,ax as Li,ay as Ri,az as zi,bA as Bi,bB as Vi,bC as Hi,bD as Ui,bE as Wi,bF as Gi,bG as Ki,bH as qi,bI as Ji,bK as Yi,bL as v,bc as Xi,bd as Zi,be as Qi,bf as $i,bg as ea,bh as ta,bi as na,bj as ra,bk as ia,bl as aa,bm as oa,bn as sa,bq as ca,bs as la,bt as ua,bu as da,bv as fa,bw as pa,bx as ma,by as ha,bz as ga,d as _a,e as va,f as ya,g as ba,i as xa,j as Sa,k as Ca,l as wa,m as Ta,n as Ea,o as Da,p as Oa,q as ka,r as Aa,s as ja,t as Ma,u as Na,v as Pa,w as Fa,x as Ia,y as La,z as Ra}from"./core-C5TqIlxQ.js";import{b as za}from"./airi-card-7HyqBFjt.js";async function*Ba(e){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}var Va=qt({__name:`Canvas`,props:Xt({width:{},height:{},resolution:{default:2}},{state:{default:`pending`},stateModifiers:{}}),emits:[`update:state`],setup(e,{expose:t}){let n=e,r=rn(e,`state`),i=g(),a=g(!1),o=g(),s=g();async function c(e){r.value=`loading`,a.value=!1,Nn.registerTicker(Vn),Un.add(Hn),o.value=new Fn({width:n.width*n.resolution,height:n.height*n.resolution,backgroundAlpha:0,preserveDrawingBuffer:!0}),s.value=o.value.view,s.value.style.width=`100%`,s.value.style.height=`100%`,s.value.style.objectFit=`cover`,s.value.style.display=`block`,e.appendChild(o.value.view),a.value=!0,r.value=`mounted`}function l(){o.value&&o.value.renderer.resize(n.width,n.height)}an([()=>n.width,()=>n.height],()=>l()),an(()=>n.resolution,e=>{o.value&&e&&(o.value.renderer.resolution=e,l())}),Qt(async()=>i.value&&await c(i.value)),$t(()=>o.value?.destroy());async function u(){let e=new Promise(e=>{if(!s.value||!o.value)return e(null);o.value.render(),s.value.toBlob(e)});return e}function d(){return s.value}return t({captureFrame:u,canvasElement:d}),(e,t)=>(en(),Gt(`div`,{ref_key:`containerRef`,ref:i,"h-full":``,"w-full":``},[a.value?nn(e.$slots,`default`,{key:0,app:o.value}):Wt(``,!0)],512))}}),Ha=Va,Ua=function(e,t){return Ua=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ua(e,t)};function Wa(e,t){Ua(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ga=`attribute vec2 aVertexPosition; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-CplUCAoG.js","assets/index-D3Bcbz9S.js","assets/index-C3z_mh4Z.css","assets/default-node-BX8tyNLs.js","assets/import-url-browser-agSP1LkN.js","assets/import-url-browser-CQxpIBxI.js","assets/duckdb-mvp-DkPAVKN8.js","assets/import-url-node-DsdDfn-V.js"])))=>i.map(i=>d[i]); +import{A as e,L as t,M as n,P as r,Q as i,R as a,S as o,T as s,U as c,V as l,a4 as u,a6 as d,a7 as f,aC as p,aE as m,aF as h,aG as ee,aH as te,aI as ne,aP as re,am as ie,bO as ae,bP as oe,bQ as se,bR as ce,bS as le,bT as ue,bV as de,bX as fe,bZ as pe,c as me,c0 as he,cA as ge,cB as _e,cC as ve,cE as ye,cF as be,cG as xe,cH as Se,cI as Ce,cJ as we,cK as Te,cL as Ee,cM as De,cN as Oe,cP as ke,cR as Ae,cS as je,cT as Me,cV as Ne,cW as Pe,cX as Fe,c_ as Ie,ca as Le,cb as Re,cc as ze,cd as Be,ce as Ve,cf as He,cg as Ue,ch as We,ci as Ge,cm as Ke,co as qe,cp as Je,cq as Ye,cs as Xe,cu as Ze,cv as Qe,cy as $e,cz as et,d$ as tt,d8 as nt,dA as rt,dB as it,dC as at,dF as ot,dG as st,dH as ct,dM as lt,dO as ut,dP as dt,dQ as ft,dR as pt,dS as mt,dT as ht,dU as gt,dV as _t,dW as vt,dX as yt,dY as bt,dZ as xt,d_ as St,dd as Ct,de as wt,dg as Tt,dh as Et,dk as Dt,dl as Ot,dm as kt,dn as At,dq as jt,dr as Mt,ds as Nt,dt as Pt,du as Ft,dv as It,dx as Lt,e$ as Rt,e3 as zt,e4 as Bt,e6 as Vt,e8 as Ht,eA as Ut,eB as Wt,eC as Gt,eD as Kt,eG as qt,eH as Jt,eI as Yt,eK as Xt,eM as Zt,eO as Qt,eP as $t,eQ as en,eR as tn,eS as nn,eU as rn,eX as an,eZ as on,e_ as sn,ed as cn,ee as ln,ef as un,eg as dn,eh as fn,ei as pn,ej as mn,ek as hn,el as gn,em as _n,en as vn,eo as yn,et as bn,ew as xn,ey as Sn,ez as Cn,f0 as wn,f2 as g,f3 as Tn,f4 as En,f5 as Dn,f7 as On,f9 as kn,fe as An,fh as jn,g as Mn,h as Nn,i as Pn,k as Fn,l as _,m as In,n as Ln,o as Rn,p as zn,q as Bn,r as Vn,s as Hn,t as Un,u as Wn,v as Gn,w as Kn,x as qn,y as Jn,z as Yn}from"./index-D3Bcbz9S.js";import{b as Xn}from"./dist-DInrA4pj.js";import{b as Zn,c as Qn,d as $n,e as er,f as tr,g as nr,h as rr,i as ir,j as ar,k as or,l as sr,m as cr,n as lr,o as ur,p as dr}from"./ibl-CoXg6NDS.js";import{b as fr}from"./import-url-browser-CQxpIBxI.js";import{c as pr,d as mr}from"./index-CAcLDIRJ-D76TFz33.js";import{$ as hr,A as gr,B as _r,C as vr,D as yr,E as br,F as xr,G as Sr,H as Cr,I as wr,J as Tr,K as Er,L as Dr,M as Or,N as kr,O as Ar,P as jr,Q as Mr,R as Nr,S as Pr,T as Fr,U as Ir,V as Lr,W as Rr,X as zr,Y as Br,Z as Vr,_ as Hr,a1 as Ur,a2 as Wr,a3 as Gr,a4 as Kr,a6 as qr,a8 as Jr,a9 as Yr,aA as Xr,aB as Zr,aC as Qr,aE as $r,aF as ei,aG as ti,aH as ni,aI as ri,aJ as ii,aK as ai,aL as oi,aM as si,aN as ci,aO as li,aP as ui,aQ as di,aR as fi,aS as pi,aa as mi,ab as hi,ac as gi,ad as _i,ae as vi,af as yi,ag as bi,ah as xi,ai as Si,aj as Ci,ak as wi,al as Ti,am as Ei,an as Di,ao as Oi,ap as ki,aq as Ai,ar as ji,as as Mi,at as Ni,au as Pi,av as Fi,aw as Ii,ax as Li,ay as Ri,az as zi,bA as Bi,bB as Vi,bC as Hi,bD as Ui,bE as Wi,bF as Gi,bG as Ki,bH as qi,bI as Ji,bK as Yi,bL as v,bc as Xi,bd as Zi,be as Qi,bf as $i,bg as ea,bh as ta,bi as na,bj as ra,bk as ia,bl as aa,bm as oa,bn as sa,bq as ca,bs as la,bt as ua,bu as da,bv as fa,bw as pa,bx as ma,by as ha,bz as ga,d as _a,e as va,f as ya,g as ba,i as xa,j as Sa,k as Ca,l as wa,m as Ta,n as Ea,o as Da,p as Oa,q as ka,r as Aa,s as ja,t as Ma,u as Na,v as Pa,w as Fa,x as Ia,y as La,z as Ra}from"./core-C5TqIlxQ.js";import{b as za}from"./airi-card-CObXZhjH.js";async function*Ba(e){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}var Va=Jt({__name:`Canvas`,props:Zt({width:{},height:{},resolution:{default:2}},{state:{default:`pending`},stateModifiers:{}}),emits:[`update:state`],setup(e,{expose:t}){let n=e,r=an(e,`state`),i=g(),a=g(!1),o=g(),s=g();async function c(e){r.value=`loading`,a.value=!1,Nn.registerTicker(Vn),Un.add(Hn),o.value=new Fn({width:n.width*n.resolution,height:n.height*n.resolution,backgroundAlpha:0,preserveDrawingBuffer:!0}),s.value=o.value.view,s.value.style.width=`100%`,s.value.style.height=`100%`,s.value.style.objectFit=`cover`,s.value.style.display=`block`,e.appendChild(o.value.view),a.value=!0,r.value=`mounted`}function l(){o.value&&o.value.renderer.resize(n.width,n.height)}on([()=>n.width,()=>n.height],()=>l()),on(()=>n.resolution,e=>{o.value&&e&&(o.value.renderer.resolution=e,l())}),$t(async()=>i.value&&await c(i.value)),en(()=>o.value?.destroy());async function u(){let e=new Promise(e=>{if(!s.value||!o.value)return e(null);o.value.render(),s.value.toBlob(e)});return e}function d(){return s.value}return t({captureFrame:u,canvasElement:d}),(e,t)=>(tn(),Kt(`div`,{ref_key:`containerRef`,ref:i,"h-full":``,"w-full":``},[a.value?rn(e.$slots,`default`,{key:0,app:o.value}):Gt(``,!0)],512))}}),Ha=Va,Ua=function(e,t){return Ua=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ua(e,t)};function Wa(e,t){Ua(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ga=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -2285,15 +2285,15 @@ void main() { gl_FragColor = color; } -`;(function(e){kc(t,e);function t(n){var r=this,i=Object.assign(t.defaults,n),a=i.maxKernelSize,o=Ac(i,[`maxKernelSize`]);return r=e.call(this,jc,Mc.replace("${maxKernelSize}",a.toFixed(1)))||this,Object.assign(r,o),r}return Object.defineProperty(t.prototype,`center`,{get:function(){return this.uniforms.uCenter},set:function(e){this.uniforms.uCenter=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`strength`,{get:function(){return this.uniforms.uStrength},set:function(e){this.uniforms.uStrength=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`innerRadius`,{get:function(){return this.uniforms.uInnerRadius},set:function(e){this.uniforms.uInnerRadius=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`radius`,{get:function(){return this.uniforms.uRadius},set:function(e){(e<0||e===1/0)&&(e=-1),this.uniforms.uRadius=e},enumerable:!1,configurable:!0}),t.defaults={strength:.1,center:[0,0],innerRadius:0,radius:-1,maxKernelSize:32},t})(_);function Nc(){let e=-1,t,n=-1;function r(r,i){(i>=e||i{let{post:e,data:t}=de({name:`airi-stores-live2d`}),n=g([]),r=e=>{n.value.push(e)};function i(){e({type:`should-update-view`}),n.value.forEach(e=>e())}an(t,e=>{e.type===`should-update-view`&&n.value.forEach(e=>e())});let a=me(`settings/live2d/position`,{x:0,y:0}),o=Cn(()=>({x:`${a.value.x}%`,y:`${a.value.y}%`})),s=g({group:`Idle`,index:0}),c=g([]),l=me(`settings/live2d/motion-map`,{}),u=me(`settings/live2d/scale`,1);return{position:a,positionInPercentageString:o,currentMotion:s,availableMotions:c,motionMap:l,scale:u,onShouldUpdateView:r,shouldUpdateView:i}});var Fc=qt({__name:`Model`,props:Xt({modelSrc:{},app:{},mouthOpenSize:{default:0},width:{},height:{},paused:{type:Boolean,default:!1},focusAt:{default:()=>({x:0,y:0})},disableFocusAt:{type:Boolean,default:!1},xOffset:{},yOffset:{},scale:{default:1}},{state:{default:`pending`},stateModifiers:{}}),emits:Xt([`modelLoaded`],[`update:state`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=rn(e,`state`);function o(){let e=Number.parseFloat(String(r.xOffset))||0,t=Number.parseFloat(String(r.yOffset))||0;return String(r.xOffset).endsWith(`%`)&&(e=Number.parseFloat(String(r.xOffset).replace(`%`,``))/100*r.width),String(r.yOffset).endsWith(`%`)&&(t=Number.parseFloat(String(r.yOffset).replace(`%`,``))/100*r.height),{xOffset:e,yOffset:t}}let s=Dn(()=>r.modelSrc),c=g(!1),l=Cn(()=>o()),u=Dn(()=>r.app),d=Dn(()=>r.paused),f=Dn(()=>r.focusAt),p=g(),m=g(0),h=g(0),ne=Cn(()=>Math.max(0,Math.min(100,r.mouthOpenSize))),ie=g(0),ae=fe(),oe=ue(le),se=Cn(()=>oe.between(`sm`,`md`).value||oe.smaller(`sm`).value),de=Nc(),pe=Tn(new ps({alpha:.2,blur:0,distance:20,rotation:45}));function me(){return p.value.internalModel.coreModel}function _e(){if(!p.value)return;let e=2.2;se.value&&(e=2.2);let t=r.height*.95/h.value*e,n=r.width*.95/m.value*e,i=Math.min(t,n);p.value.scale.set(i*r.scale,i*r.scale),p.value.x=r.width/2+l.value.xOffset,p.value.y=r.height+l.value.yOffset}let{currentMotion:ve,availableMotions:ye,motionMap:be}=ce(Pc()),{themeColorsHue:xe,themeColorsHueDynamic:Se}=ce(he()),Ce=g({group:`Idle`,index:0});async function we(){if(await ge(c).not.toBeTruthy(),c.value=!0,a.value=`loading`,!u.value){c.value=!1,a.value=`mounted`;return}if(p.value&&=(u.value.stage.removeChild(p.value),p.value.destroy(),void 0),!s.value){console.warn(`No Live2D model source provided.`),c.value=!1,a.value=`mounted`;return}try{let e=new Nn;if(s.value.startsWith(`blob:`)){let t=await fetch(s.value),n=await t.blob();await Mn.setupLive2DModel(e,[new File([n],`model.zip`)],{autoInteract:!1})}else await Mn.setupLive2DModel(e,s.value,{autoInteract:!1});ye.value.forEach(e=>{e.motionName in ee?be.value[e.fileName]=e.motionName:be.value[e.fileName]=te}),p.value=e,u.value.stage.addChild(p.value),m.value=p.value.width,h.value=p.value.height,p.value.anchor.set(.5,.5),_e(),p.value.on(`hit`,e=>{p.value&&e.includes(`body`)&&p.value.motion(`tap_body`)});let t=p.value.internalModel,n=t.coreModel,r=t.motionManager;n.setParameterValueById(`ParamMouthOpenY`,ne.value),ye.value=Object.entries(r.definitions).flatMap(([e,t])=>t?.map((t,n)=>({motionName:e,motionIndex:n,fileName:t.File}))||[]).filter(Boolean),r.groups.idle&&r.motionGroups[r.groups.idle]?.forEach(e=>{e._motionData.curves.forEach(e=>{(e.id===`ParamEyeBallX`||e.id===`ParamEyeBallY`)&&(e.id=`_${e.id}`)})});let a=r.update;r.update=function(e,n){return ie.value=n,a?.call(this,e,n),!r.state.currentGroup||r.state.currentGroup===r.groups.idle?(de.update(t,n),t.eyeBlink!=null&&t.eyeBlink.updateParameters(e,(n-ie.value)/1e3),!0):!1},r.on(`motionStart`,(e,t)=>{Ce.value={group:e,index:t}}),i(`modelLoaded`)}finally{c.value=!1,a.value=`mounted`}}async function Te(e,t){await p.value?.motion(e,t,Pn.FORCE)}let Ee=Le(_e,100),De=g(),Oe=g(0);function ke(){if(p.value){let e=getComputedStyle(De.value).backgroundColor;pe.value.color=Number(re(e).replace(`#`,`0x`)),p.value.filters=[pe.value]}}an([()=>r.width,()=>r.height],()=>Ee()),an(s,async()=>await we(),{immediate:!0}),an(ae,ke,{immediate:!0}),an([p,xe],ke),an(l,_e),an(()=>r.scale,_e);function Ae(){ke(),Oe.value=requestAnimationFrame(Ae)}an(Se,()=>{Se.value?Oe.value=requestAnimationFrame(Ae):(cancelAnimationFrame(Oe.value),Oe.value=0)},{immediate:!0}),an(ne,e=>me().setParameterValueById(`ParamMouthOpenY`,e)),an(ve,e=>Te(e.group,e.index)),an(d,e=>e?u.value?.stop():u.value?.start()),an(f,e=>{p.value&&(r.disableFocusAt||p.value.focus(e.x,e.y))}),Qt(async()=>{ke()});function je(){cancelAnimationFrame(Oe.value),p.value&&u.value?.stage.removeChild(p.value)}$t(()=>{je()});function Me(){return ye.value}return t({setMotion:Te,listMotionGroups:Me}),(e,t)=>(en(),Gt(xn,null,[wn(`div`,{ref_key:`dropShadowColorComputer`,ref:De,hidden:``,bg:`primary-400 dark:primary-500`},null,512),nn(e.$slots,`default`)],64))}}),Ic=Fc,Lc=qt({__name:`Live2D`,props:Xt({modelSrc:{},paused:{type:Boolean,default:!1},mouthOpenSize:{default:0},focusAt:{default:()=>({x:0,y:0})},disableFocusAt:{type:Boolean},xOffset:{},yOffset:{},scale:{default:1}},{state:{default:`pending`},stateModifiers:{},canvasState:{default:`pending`},canvasStateModifiers:{},modelState:{default:`pending`},modelStateModifiers:{}}),emits:[`update:state`,`update:canvasState`,`update:modelState`],setup(e,{expose:t}){let n=rn(e,`state`),r=rn(e,`canvasState`),i=rn(e,`modelState`),a=g();return an([i,r],()=>{n.value=i.value===`mounted`&&r.value===`mounted`?`mounted`:`loading`}),t({canvasElement:()=>a.value?.canvasElement()}),(e,t)=>(en(),Ut(ie,{relative:``},{default:sn(({width:n,height:o})=>[Kt(Ha,{ref_key:`live2dCanvasRef`,ref:a,state:r.value,"onUpdate:state":t[1]||=e=>r.value=e,width:n,height:o,resolution:2,"max-h":`100dvh`},{default:sn(({app:r})=>[Kt(Ic,{state:i.value,"onUpdate:state":t[0]||=e=>i.value=e,"model-src":e.modelSrc,app:r,"mouth-open-size":e.mouthOpenSize,width:n,height:o,paused:e.paused,"focus-at":e.focusAt,"x-offset":e.xOffset,"y-offset":e.yOffset,scale:e.scale,"disable-focus-at":e.disableFocusAt},null,8,[`state`,`model-src`,`app`,`mouth-open-size`,`width`,`height`,`paused`,`focus-at`,`x-offset`,`y-offset`,`scale`,`disable-focus-at`])]),_:2},1032,[`state`,`width`,`height`])]),_:1}))}}),Rc=Lc;function y(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function zc(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function Bc(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof b?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function Vc(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:!1}:i?i(t):t}:i}}function Hc(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof zc==`function`?zc(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}const Uc=new TextDecoder(`utf-8`),Wc=e=>Uc.decode(e),Gc=new TextEncoder,Kc=e=>Gc.encode(e),qc=e=>typeof e==`number`,Jc=e=>typeof e==`boolean`,Yc=e=>typeof e==`function`,Xc=e=>e!=null&&Object(e)===e,Zc=e=>Xc(e)&&Yc(e.then),Qc=e=>Xc(e)&&Yc(e[Symbol.iterator]),$c=e=>Xc(e)&&Yc(e[Symbol.asyncIterator]),el=e=>Xc(e)&&Xc(e.schema),tl=e=>Xc(e)&&`done`in e&&`value`in e,nl=e=>Xc(e)&&Yc(e.stat)&&qc(e.fd),rl=e=>Xc(e)&&ol(e.body),il=e=>`_getDOMStream`in e&&`_getNodeStream`in e,al=e=>Xc(e)&&Yc(e.abort)&&Yc(e.getWriter)&&!il(e),ol=e=>Xc(e)&&Yc(e.cancel)&&Yc(e.getReader)&&!il(e),sl=e=>Xc(e)&&Yc(e.end)&&Yc(e.write)&&Jc(e.writable)&&!il(e),cl=e=>Xc(e)&&Yc(e.read)&&Yc(e.pipe)&&Jc(e.readable)&&!il(e),ll=e=>Xc(e)&&Yc(e.clear)&&Yc(e.bytes)&&Yc(e.position)&&Yc(e.setPosition)&&Yc(e.capacity)&&Yc(e.getBufferIdentifier)&&Yc(e.createLong),ul=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function dl(e){let t=e[0]?[e[0]]:[],n,r,i,a;for(let o,s,c=0,l=0,u=e.length;++ce+t.byteLength,0),i,a,o,s=0,c=-1,l=Math.min(t||1/0,r);for(let e=n.length;++cml(Int32Array,e),gl=e=>ml(BigInt64Array,e),_l=e=>ml(Uint8Array,e),vl=e=>(e.next(),e);function*yl(e,t){let n=function*(e){yield e},r=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof ul?n(t):Qc(t)?t:n(t);return yield*vl((function*(t){let n=null;do n=t.next(yield ml(e,n));while(!n.done)})(r[Symbol.iterator]())),new e}const bl=e=>yl(Uint8Array,e);function xl(e,t){return Bc(this,arguments,function*(){if(Zc(t))return yield b(yield b(yield*Vc(Hc(xl(e,yield b(t))))));let n=function(e){return Bc(this,arguments,function*(){yield yield b(yield b(e))})},r=function(e){return Bc(this,arguments,function*(){yield b(yield*Vc(Hc(vl((function*(e){let t=null;do t=e.next(yield t?.value);while(!t.done)})(e[Symbol.iterator]())))))})},i=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof ul?n(t):Qc(t)?r(t):$c(t)?t:n(t);return yield b(yield*Vc(Hc(vl((function(t){return Bc(this,arguments,function*(){let n=null;do n=yield b(t.next(yield yield b(ml(e,n))));while(!n.done)})})(i[Symbol.asyncIterator]()))))),yield b(new e)})}const Sl=e=>xl(Uint8Array,e);function Cl(e,t,n){if(e!==0){n=n.slice(0,t);for(let t=-1,r=n.length;++t0)do if(e[n]!==t[n])return!1;while(++n(e.next(),e);function*Dl(e){let t,n=!1,r=[],i,a,o,s=0;function c(){return a===`peek`?pl(r,o)[0]:([i,r,s]=pl(r,o),i)}({cmd:a,size:o}=(yield(()=>null)())||{cmd:`read`,size:0});let l=bl(e)[Symbol.iterator]();try{do if({done:t,value:i}=Number.isNaN(o-s)?l.next():l.next(o-s),!t&&i.byteLength>0&&(r.push(i),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield c());while(onull)()))||{cmd:`read`,size:0});let l=Sl(e)[Symbol.asyncIterator]();try{do if({done:t,value:i}=Number.isNaN(o-s)?yield b(l.next()):yield b(l.next(o-s)),!t&&i.byteLength>0&&(r.push(i),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield yield b(c()));while(onull)()))||{cmd:`read`,size:0});let l=new Al(e);try{do if({done:t,value:i}=Number.isNaN(o-s)?yield b(l.read()):yield b(l.read(o-s)),!t&&i.byteLength>0&&(r.push(_l(i)),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield yield b(c()));while(o{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return y(this,void 0,void 0,function*(){let{reader:t,source:n}=this;t&&(yield t.cancel(e).catch(()=>{})),n&&n.locked&&this.releaseLock()})}read(e){return y(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array};let t=yield this.reader.read();return!t.done&&(t.value=_l(t)),t})}};const jl=(e,t)=>{let n=e=>r([t,e]),r;return[t,n,new Promise(i=>(r=i)&&e.once(t,n))]};function Ml(e){return Bc(this,arguments,function*(){let t=[],n=`error`,r=!1,i=null,a,o,s=0,c=[],l;function u(){return a===`peek`?pl(c,o)[0]:([l,c,s]=pl(c,o),l)}if({cmd:a,size:o}=(yield yield b((()=>null)()))||{cmd:`read`,size:0},e.isTTY)return yield yield b(new Uint8Array),yield b(null);try{t[0]=jl(e,`end`),t[1]=jl(e,`error`);do{if(t[2]=jl(e,`readable`),[n,i]=yield b(Promise.race(t.map(e=>e[2]))),n===`error`)break;if((r=n===`end`)||(Number.isFinite(o-s)?(l=_l(e.read(o-s)),l.byteLength0&&(c.push(l),s+=l.byteLength)),r||o<=s)do({cmd:a,size:o}=yield yield b(u()));while(o{for(let[n,r]of t)e.off(n,r);try{let t=e.destroy;t&&t.call(e,n),n=void 0}catch(e){n=e||n}finally{n==null?r():i(n)}})}})}var Nl;(function(e){e[e.V1=0]=`V1`,e[e.V2=1]=`V2`,e[e.V3=2]=`V3`,e[e.V4=3]=`V4`,e[e.V5=4]=`V5`})(Nl||={});var Pl;(function(e){e[e.Sparse=0]=`Sparse`,e[e.Dense=1]=`Dense`})(Pl||={});var Fl;(function(e){e[e.HALF=0]=`HALF`,e[e.SINGLE=1]=`SINGLE`,e[e.DOUBLE=2]=`DOUBLE`})(Fl||={});var Il;(function(e){e[e.DAY=0]=`DAY`,e[e.MILLISECOND=1]=`MILLISECOND`})(Il||={});var x;(function(e){e[e.SECOND=0]=`SECOND`,e[e.MILLISECOND=1]=`MILLISECOND`,e[e.MICROSECOND=2]=`MICROSECOND`,e[e.NANOSECOND=3]=`NANOSECOND`})(x||={});var Ll;(function(e){e[e.YEAR_MONTH=0]=`YEAR_MONTH`,e[e.DAY_TIME=1]=`DAY_TIME`,e[e.MONTH_DAY_NANO=2]=`MONTH_DAY_NANO`})(Ll||={});const Rl=new Int32Array(2),zl=new Float32Array(Rl.buffer),Bl=new Float64Array(Rl.buffer),Vl=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Hl;(function(e){e[e.UTF8_BYTES=1]=`UTF8_BYTES`,e[e.UTF16_STRING=2]=`UTF16_STRING`})(Hl||={});var Ul=class e{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new e(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){zl[0]=t,this.writeInt32(e,Rl[0])}writeFloat64(e,t){Bl[0]=t,this.writeInt32(e,Rl[Vl?0:1]),this.writeInt32(e+4,Rl[Vl?1:0])}getBufferIdentifier(){if(this.bytes_.lengththis.minalign&&(this.minalign=t);let r=~(this.bb.capacity()-this.space+n)+1&t-1;for(;this.space=0&&this.vtable[t]==0;t--);let n=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]==0?0:e-this.vtable[t]);this.addInt16(e-this.object_start);let r=(n+2)*2;this.addInt16(r);let i=0,a=this.space;outer_loop:for(t=0;t=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+r),this.addOffset(e),r&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){let n=this.bb.capacity()-e,r=n-this.bb.readInt32(n),i=t=0;n--)e.addInt32(t[n]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){let t=e.endObject();return t}static createUnion(t,n,r){return e.startUnion(t),e.addMode(t,n),e.addTypeIds(t,r),e.endUnion(t)}},xu=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(e){e.startObject(0)}static endUtf8(e){let t=e.endObject();return t}static createUtf8(t){return e.startUtf8(t),e.endUtf8(t)}},Su;(function(e){e[e.NONE=0]=`NONE`,e[e.Null=1]=`Null`,e[e.Int=2]=`Int`,e[e.FloatingPoint=3]=`FloatingPoint`,e[e.Binary=4]=`Binary`,e[e.Utf8=5]=`Utf8`,e[e.Bool=6]=`Bool`,e[e.Decimal=7]=`Decimal`,e[e.Date=8]=`Date`,e[e.Time=9]=`Time`,e[e.Timestamp=10]=`Timestamp`,e[e.Interval=11]=`Interval`,e[e.List=12]=`List`,e[e.Struct_=13]=`Struct_`,e[e.Union=14]=`Union`,e[e.FixedSizeBinary=15]=`FixedSizeBinary`,e[e.FixedSizeList=16]=`FixedSizeList`,e[e.Map=17]=`Map`,e[e.Duration=18]=`Duration`,e[e.LargeBinary=19]=`LargeBinary`,e[e.LargeUtf8=20]=`LargeUtf8`,e[e.LargeList=21]=`LargeList`,e[e.RunEndEncoded=22]=`RunEndEncoded`})(Su||={});var Cu=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):Su.NONE}type(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){let t=this.bb.__offset(this.bb_pos,12);return t?(e||new tu).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(t,n){let r=this.bb.__offset(this.bb_pos,14);return r?(n||new e).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,16);return n?(t||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,Su.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){let t=e.endObject();return t}},wu=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ql.Little}fields(e,t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new Cu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+e*8):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,Ql.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){let t=e.endObject();return t}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(t,n,r,i,a){return e.startSchema(t),e.addEndianness(t,n),e.addFields(t,r),e.addCustomMetadata(t,i),e.addFeatures(t,a),e.endSchema(t)}},Tu;(function(e){e[e.NONE=0]=`NONE`,e[e.Schema=1]=`Schema`,e[e.DictionaryBatch=2]=`DictionaryBatch`,e[e.RecordBatch=3]=`RecordBatch`,e[e.Tensor=4]=`Tensor`,e[e.SparseTensor=5]=`SparseTensor`})(Tu||={});var S;(function(e){e[e.NONE=0]=`NONE`,e[e.Null=1]=`Null`,e[e.Int=2]=`Int`,e[e.Float=3]=`Float`,e[e.Binary=4]=`Binary`,e[e.Utf8=5]=`Utf8`,e[e.Bool=6]=`Bool`,e[e.Decimal=7]=`Decimal`,e[e.Date=8]=`Date`,e[e.Time=9]=`Time`,e[e.Timestamp=10]=`Timestamp`,e[e.Interval=11]=`Interval`,e[e.List=12]=`List`,e[e.Struct=13]=`Struct`,e[e.Union=14]=`Union`,e[e.FixedSizeBinary=15]=`FixedSizeBinary`,e[e.FixedSizeList=16]=`FixedSizeList`,e[e.Map=17]=`Map`,e[e.Duration=18]=`Duration`,e[e.LargeBinary=19]=`LargeBinary`,e[e.LargeUtf8=20]=`LargeUtf8`,e[e.Dictionary=-1]=`Dictionary`,e[e.Int8=-2]=`Int8`,e[e.Int16=-3]=`Int16`,e[e.Int32=-4]=`Int32`,e[e.Int64=-5]=`Int64`,e[e.Uint8=-6]=`Uint8`,e[e.Uint16=-7]=`Uint16`,e[e.Uint32=-8]=`Uint32`,e[e.Uint64=-9]=`Uint64`,e[e.Float16=-10]=`Float16`,e[e.Float32=-11]=`Float32`,e[e.Float64=-12]=`Float64`,e[e.DateDay=-13]=`DateDay`,e[e.DateMillisecond=-14]=`DateMillisecond`,e[e.TimestampSecond=-15]=`TimestampSecond`,e[e.TimestampMillisecond=-16]=`TimestampMillisecond`,e[e.TimestampMicrosecond=-17]=`TimestampMicrosecond`,e[e.TimestampNanosecond=-18]=`TimestampNanosecond`,e[e.TimeSecond=-19]=`TimeSecond`,e[e.TimeMillisecond=-20]=`TimeMillisecond`,e[e.TimeMicrosecond=-21]=`TimeMicrosecond`,e[e.TimeNanosecond=-22]=`TimeNanosecond`,e[e.DenseUnion=-23]=`DenseUnion`,e[e.SparseUnion=-24]=`SparseUnion`,e[e.IntervalDayTime=-25]=`IntervalDayTime`,e[e.IntervalYearMonth=-26]=`IntervalYearMonth`,e[e.DurationSecond=-27]=`DurationSecond`,e[e.DurationMillisecond=-28]=`DurationMillisecond`,e[e.DurationMicrosecond=-29]=`DurationMicrosecond`,e[e.DurationNanosecond=-30]=`DurationNanosecond`})(S||={});var Eu;(function(e){e[e.OFFSET=0]=`OFFSET`,e[e.DATA=1]=`DATA`,e[e.VALIDITY=2]=`VALIDITY`,e[e.TYPE=3]=`TYPE`})(Eu||={});function Du(e){if(e===null)return`null`;if(e===void 0)return`undefined`;switch(typeof e){case`number`:return`${e}`;case`bigint`:return`${e}`;case`string`:return`"${e}"`}return typeof e[Symbol.toPrimitive]==`function`?e[Symbol.toPrimitive](`string`):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?`[${[...e].map(e=>Du(e))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(e,t)=>typeof t==`bigint`?`${t}`:t)}function Ou(e){if(typeof e==`bigint`&&(e<-(2**53-1)||e>2**53-1))throw TypeError(`${e} is not safe to convert to a number.`);return Number(e)}function ku(e,t){return Ou(e/t)+Ou(e%t)/Ou(t)}const Au=Symbol.for(`isArrowBigNum`);function ju(e,...t){return t.length===0?Object.setPrototypeOf(ml(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}ju.prototype[Au]=!0,ju.prototype.toJSON=function(){return`"${Ru(this)}"`},ju.prototype.valueOf=function(e){return Lu(this,e)},ju.prototype.toString=function(){return Ru(this)},ju.prototype[Symbol.toPrimitive]=function(e=`default`){switch(e){case`number`:return Lu(this);case`string`:return Ru(this);case`default`:return zu(this)}return Ru(this)};function Mu(...e){return ju.apply(this,e)}function Nu(...e){return ju.apply(this,e)}function Pu(...e){return ju.apply(this,e)}Object.setPrototypeOf(Mu.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(Nu.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(Pu.prototype,Object.create(Uint32Array.prototype)),Object.assign(Mu.prototype,ju.prototype,{constructor:Mu,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(Nu.prototype,ju.prototype,{constructor:Nu,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(Pu.prototype,ju.prototype,{constructor:Pu,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const Fu=BigInt(4294967296)*BigInt(4294967296),Iu=Fu-BigInt(1);function Lu(e,t){let{buffer:n,byteOffset:r,byteLength:i,signed:a}=e,o=new BigUint64Array(n,r,i/8),s=a&&o.at(-1)&BigInt(1)<=0)return Bu(e);t=t.slice();let r=1;for(let e=0;e(e.children=null,e.ArrayType=Array,e.OffsetArrayType=Int32Array,e[Symbol.toStringTag]=`DataType`))(C.prototype);var ud=class extends C{constructor(){super(S.Null)}toString(){return`Null`}};Uu=Symbol.toStringTag,ud[Uu]=(e=>e[Symbol.toStringTag]=`Null`)(ud.prototype);var dd=class extends C{constructor(e,t){super(S.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?`I`:`Ui`}nt${this.bitWidth}`}};Wu=Symbol.toStringTag,dd[Wu]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]=`Int`))(dd.prototype);var fd=class extends dd{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},pd=class extends dd{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},md=class extends dd{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},hd=class extends dd{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},gd=class extends dd{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},_d=class extends dd{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},vd=class extends dd{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},yd=class extends dd{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(fd.prototype,`ArrayType`,{value:Int8Array}),Object.defineProperty(pd.prototype,`ArrayType`,{value:Int16Array}),Object.defineProperty(md.prototype,`ArrayType`,{value:Int32Array}),Object.defineProperty(hd.prototype,`ArrayType`,{value:BigInt64Array}),Object.defineProperty(gd.prototype,`ArrayType`,{value:Uint8Array}),Object.defineProperty(_d.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(vd.prototype,`ArrayType`,{value:Uint32Array}),Object.defineProperty(yd.prototype,`ArrayType`,{value:BigUint64Array});var bd=class extends C{constructor(e){super(S.Float),this.precision=e}get ArrayType(){switch(this.precision){case Fl.HALF:return Uint16Array;case Fl.SINGLE:return Float32Array;case Fl.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};Gu=Symbol.toStringTag,bd[Gu]=(e=>(e.precision=null,e[Symbol.toStringTag]=`Float`))(bd.prototype);var xd=class extends bd{constructor(){super(Fl.HALF)}},Sd=class extends bd{constructor(){super(Fl.SINGLE)}},Cd=class extends bd{constructor(){super(Fl.DOUBLE)}};Object.defineProperty(xd.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(Sd.prototype,`ArrayType`,{value:Float32Array}),Object.defineProperty(Cd.prototype,`ArrayType`,{value:Float64Array});var wd=class extends C{constructor(){super(S.Binary)}toString(){return`Binary`}};Ku=Symbol.toStringTag,wd[Ku]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Binary`))(wd.prototype);var Td=class extends C{constructor(){super(S.LargeBinary)}toString(){return`LargeBinary`}};qu=Symbol.toStringTag,Td[qu]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeBinary`))(Td.prototype);var Ed=class extends C{constructor(){super(S.Utf8)}toString(){return`Utf8`}};Ju=Symbol.toStringTag,Ed[Ju]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Utf8`))(Ed.prototype);var Dd=class extends C{constructor(){super(S.LargeUtf8)}toString(){return`LargeUtf8`}};Yu=Symbol.toStringTag,Dd[Yu]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeUtf8`))(Dd.prototype);var Od=class extends C{constructor(){super(S.Bool)}toString(){return`Bool`}};Xu=Symbol.toStringTag,Od[Xu]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Bool`))(Od.prototype);var kd=class extends C{constructor(e,t,n=128){super(S.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?`+`:``}${this.scale}]`}};Zu=Symbol.toStringTag,kd[Zu]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]=`Decimal`))(kd.prototype);var Ad=class extends C{constructor(e){super(S.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Il[this.unit]}>`}get ArrayType(){return this.unit===Il.DAY?Int32Array:BigInt64Array}};Qu=Symbol.toStringTag,Ad[Qu]=(e=>(e.unit=null,e[Symbol.toStringTag]=`Date`))(Ad.prototype);var jd=class extends C{constructor(e,t){super(S.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${x[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};$u=Symbol.toStringTag,jd[$u]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]=`Time`))(jd.prototype);var Md=class extends C{constructor(e,t){super(S.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${x[this.unit]}${this.timezone?`, ${this.timezone}`:``}>`}};ed=Symbol.toStringTag,Md[ed]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Timestamp`))(Md.prototype);var Nd=class extends C{constructor(e){super(S.Interval),this.unit=e}toString(){return`Interval<${Ll[this.unit]}>`}};td=Symbol.toStringTag,Nd[td]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]=`Interval`))(Nd.prototype);var Pd=class extends C{constructor(e){super(S.Duration),this.unit=e}toString(){return`Duration<${x[this.unit]}>`}};nd=Symbol.toStringTag,Pd[nd]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Duration`))(Pd.prototype);var Fd=class extends C{constructor(e){super(S.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};rd=Symbol.toStringTag,Fd[rd]=(e=>(e.children=null,e[Symbol.toStringTag]=`List`))(Fd.prototype);var Id=class extends C{constructor(e){super(S.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};id=Symbol.toStringTag,Id[id]=(e=>(e.children=null,e[Symbol.toStringTag]=`Struct`))(Id.prototype);var Ld=class extends C{constructor(e,t,n){super(S.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((e,t,n)=>(e[t]=n)&&e||e,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(` | `)}>`}};ad=Symbol.toStringTag,Ld[ad]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]=`Union`))(Ld.prototype);var Rd=class extends C{constructor(e){super(S.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};od=Symbol.toStringTag,Rd[od]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`FixedSizeBinary`))(Rd.prototype);var zd=class extends C{constructor(e,t){super(S.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};sd=Symbol.toStringTag,zd[sd]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]=`FixedSizeList`))(zd.prototype);var Bd=class extends C{constructor(e,t=!1){var n,r,i;if(super(S.Map),this.children=[e],this.keysSorted=t,e&&(e.name=`entries`,(n=e?.type)?.children)){let t=(r=e?.type)?.children[0];t&&(t.name=`key`);let n=(i=e?.type)?.children[1];n&&(n.name=`value`)}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};cd=Symbol.toStringTag,Bd[cd]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]=`Map_`))(Bd.prototype);const Vd=(e=>()=>++e)(-1);var Hd=class extends C{constructor(e,t,n,r){super(S.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=n==null?Vd():Ou(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};ld=Symbol.toStringTag,Hd[ld]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]=`Dictionary`))(Hd.prototype);function Ud(e){let t=e;switch(e.typeId){case S.Decimal:return e.bitWidth/32;case S.Interval:return 1+t.unit;case S.FixedSizeList:return t.listSize;case S.FixedSizeBinary:return t.byteWidth;default:return 1}}var w=class{visitMany(e,...t){return e.map((e,n)=>this.visit(e,...t.map(e=>e[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Wd(this,e,t)}getVisitFnByTypeId(e,t=!0){return Gd(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function Wd(e,t,n=!0){return typeof t==`number`?Gd(e,t,n):typeof t==`string`&&t in S?Gd(e,S[t],n):t&&t instanceof C?Gd(e,Kd(t),n):t?.type&&t.type instanceof C?Gd(e,Kd(t.type),n):Gd(e,S.NONE,n)}function Gd(e,t,n=!0){let r=null;switch(t){case S.Null:r=e.visitNull;break;case S.Bool:r=e.visitBool;break;case S.Int:r=e.visitInt;break;case S.Int8:r=e.visitInt8||e.visitInt;break;case S.Int16:r=e.visitInt16||e.visitInt;break;case S.Int32:r=e.visitInt32||e.visitInt;break;case S.Int64:r=e.visitInt64||e.visitInt;break;case S.Uint8:r=e.visitUint8||e.visitInt;break;case S.Uint16:r=e.visitUint16||e.visitInt;break;case S.Uint32:r=e.visitUint32||e.visitInt;break;case S.Uint64:r=e.visitUint64||e.visitInt;break;case S.Float:r=e.visitFloat;break;case S.Float16:r=e.visitFloat16||e.visitFloat;break;case S.Float32:r=e.visitFloat32||e.visitFloat;break;case S.Float64:r=e.visitFloat64||e.visitFloat;break;case S.Utf8:r=e.visitUtf8;break;case S.LargeUtf8:r=e.visitLargeUtf8;break;case S.Binary:r=e.visitBinary;break;case S.LargeBinary:r=e.visitLargeBinary;break;case S.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case S.Date:r=e.visitDate;break;case S.DateDay:r=e.visitDateDay||e.visitDate;break;case S.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case S.Timestamp:r=e.visitTimestamp;break;case S.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case S.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case S.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case S.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case S.Time:r=e.visitTime;break;case S.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case S.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case S.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case S.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case S.Decimal:r=e.visitDecimal;break;case S.List:r=e.visitList;break;case S.Struct:r=e.visitStruct;break;case S.Union:r=e.visitUnion;break;case S.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case S.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case S.Dictionary:r=e.visitDictionary;break;case S.Interval:r=e.visitInterval;break;case S.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case S.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case S.Duration:r=e.visitDuration;break;case S.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case S.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case S.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case S.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case S.FixedSizeList:r=e.visitFixedSizeList;break;case S.Map:r=e.visitMap;break}if(typeof r==`function`)return r;if(!n)return()=>null;throw Error(`Unrecognized type '${S[t]}'`)}function Kd(e){switch(e.typeId){case S.Null:return S.Null;case S.Int:{let{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?S.Int8:S.Uint8;case 16:return n?S.Int16:S.Uint16;case 32:return n?S.Int32:S.Uint32;case 64:return n?S.Int64:S.Uint64}return S.Int}case S.Float:switch(e.precision){case Fl.HALF:return S.Float16;case Fl.SINGLE:return S.Float32;case Fl.DOUBLE:return S.Float64}return S.Float;case S.Binary:return S.Binary;case S.LargeBinary:return S.LargeBinary;case S.Utf8:return S.Utf8;case S.LargeUtf8:return S.LargeUtf8;case S.Bool:return S.Bool;case S.Decimal:return S.Decimal;case S.Time:switch(e.unit){case x.SECOND:return S.TimeSecond;case x.MILLISECOND:return S.TimeMillisecond;case x.MICROSECOND:return S.TimeMicrosecond;case x.NANOSECOND:return S.TimeNanosecond}return S.Time;case S.Timestamp:switch(e.unit){case x.SECOND:return S.TimestampSecond;case x.MILLISECOND:return S.TimestampMillisecond;case x.MICROSECOND:return S.TimestampMicrosecond;case x.NANOSECOND:return S.TimestampNanosecond}return S.Timestamp;case S.Date:switch(e.unit){case Il.DAY:return S.DateDay;case Il.MILLISECOND:return S.DateMillisecond}return S.Date;case S.Interval:switch(e.unit){case Ll.DAY_TIME:return S.IntervalDayTime;case Ll.YEAR_MONTH:return S.IntervalYearMonth}return S.Interval;case S.Duration:switch(e.unit){case x.SECOND:return S.DurationSecond;case x.MILLISECOND:return S.DurationMillisecond;case x.MICROSECOND:return S.DurationMicrosecond;case x.NANOSECOND:return S.DurationNanosecond}return S.Duration;case S.Map:return S.Map;case S.List:return S.List;case S.Struct:return S.Struct;case S.Union:switch(e.mode){case Pl.Dense:return S.DenseUnion;case Pl.Sparse:return S.SparseUnion}return S.Union;case S.FixedSizeBinary:return S.FixedSizeBinary;case S.FixedSizeList:return S.FixedSizeList;case S.Dictionary:return S.Dictionary}throw Error(`Unrecognized type '${S[e.typeId]}'`)}w.prototype.visitInt8=null,w.prototype.visitInt16=null,w.prototype.visitInt32=null,w.prototype.visitInt64=null,w.prototype.visitUint8=null,w.prototype.visitUint16=null,w.prototype.visitUint32=null,w.prototype.visitUint64=null,w.prototype.visitFloat16=null,w.prototype.visitFloat32=null,w.prototype.visitFloat64=null,w.prototype.visitDateDay=null,w.prototype.visitDateMillisecond=null,w.prototype.visitTimestampSecond=null,w.prototype.visitTimestampMillisecond=null,w.prototype.visitTimestampMicrosecond=null,w.prototype.visitTimestampNanosecond=null,w.prototype.visitTimeSecond=null,w.prototype.visitTimeMillisecond=null,w.prototype.visitTimeMicrosecond=null,w.prototype.visitTimeNanosecond=null,w.prototype.visitDenseUnion=null,w.prototype.visitSparseUnion=null,w.prototype.visitIntervalDayTime=null,w.prototype.visitIntervalYearMonth=null,w.prototype.visitDuration=null,w.prototype.visitDurationSecond=null,w.prototype.visitDurationMillisecond=null,w.prototype.visitDurationMicrosecond=null,w.prototype.visitDurationNanosecond=null;const qd=new Float64Array(1),Jd=new Uint32Array(qd.buffer);function Yd(e){let t=(e&31744)>>10,n=(e&1023)/1024,r=(-1)**((e&32768)>>15);switch(t){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*2**(t-15)*(1+n)}function Xd(e){if(e!==e)return 32256;qd[0]=e;let t=(Jd[1]&2147483648)>>16&65535,n=Jd[1]&2146435072,r=0;return n>=1089470464?Jd[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Jd[1]&1048575)>>10):n<=1056964608?(r=1048576+(Jd[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Jd[1]&1048575)+512>>10),t|n|r&65535}var T=class extends w{};function E(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}const Zd=(e,t,n)=>{e[t]=Math.floor(n/864e5)},Qd=(e,t,n,r)=>{if(n+1{let i=e+n;r?t[i>>3]|=1<>3]&=~(1<{e[t]=n},tf=({values:e},t,n)=>{e[t]=n},nf=({values:e},t,n)=>{e[t]=Xd(n)},rf=(e,t,n)=>{switch(e.type.precision){case Fl.HALF:return nf(e,t,n);case Fl.SINGLE:case Fl.DOUBLE:return tf(e,t,n)}},af=({values:e},t,n)=>{Zd(e,t,n.valueOf())},sf=({values:e},t,n)=>{e[t]=BigInt(n)},cf=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},lf=({values:e,valueOffsets:t},n,r)=>Qd(e,t,n,r),uf=({values:e,valueOffsets:t},n,r)=>Qd(e,t,n,Kc(r)),df=(e,t,n)=>{e.type.unit===Il.DAY?af(e,t,n):sf(e,t,n)},ff=({values:e},t,n)=>{e[t]=BigInt(n/1e3)},pf=({values:e},t,n)=>{e[t]=BigInt(n)},mf=({values:e},t,n)=>{e[t]=BigInt(n*1e3)},hf=({values:e},t,n)=>{e[t]=BigInt(n*1e6)},gf=(e,t,n)=>{switch(e.type.unit){case x.SECOND:return ff(e,t,n);case x.MILLISECOND:return pf(e,t,n);case x.MICROSECOND:return mf(e,t,n);case x.NANOSECOND:return hf(e,t,n)}},_f=({values:e},t,n)=>{e[t]=n},vf=({values:e},t,n)=>{e[t]=n},yf=({values:e},t,n)=>{e[t]=n},bf=({values:e},t,n)=>{e[t]=n},xf=(e,t,n)=>{switch(e.type.unit){case x.SECOND:return _f(e,t,n);case x.MILLISECOND:return vf(e,t,n);case x.MICROSECOND:return yf(e,t,n);case x.NANOSECOND:return bf(e,t,n)}},Sf=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},Cf=(e,t,n)=>{let r=e.children[0],i=e.valueOffsets,a=Uf.getVisitFn(r);if(Array.isArray(n))for(let e=-1,o=i[t],s=i[t+1];o{let r=e.children[0],{valueOffsets:i}=e,a=Uf.getVisitFn(r),{[t]:o,[t+1]:s}=i,c=n instanceof Map?n.entries():Object.entries(n);for(let e of c)if(a(r,o,e),++o>=s)break},Tf=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[a]),Ef=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(a)),Df=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(i.name)),Of=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[i.name]),kf=(e,t,n)=>{let r=e.type.children.map(e=>Uf.getVisitFn(e.type)),i=n instanceof Map?Df(t,n):n instanceof Pm?Ef(t,n):Array.isArray(n)?Tf(t,n):Of(t,n);e.type.children.forEach((t,n)=>i(r[n],e.children[n],t,n))},Af=(e,t,n)=>{e.type.mode===Pl.Dense?jf(e,t,n):Mf(e,t,n)},jf=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Uf.visit(i,e.valueOffsets[t],n)},Mf=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Uf.visit(i,t,n)},Nf=(e,t,n)=>{var r;(r=e.dictionary)==null||r.set(e.values[t],n)},Pf=(e,t,n)=>{e.type.unit===Ll.DAY_TIME?Ff(e,t,n):If(e,t,n)},Ff=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},If=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},Lf=({values:e},t,n)=>{e[t]=n},Rf=({values:e},t,n)=>{e[t]=n},zf=({values:e},t,n)=>{e[t]=n},Bf=({values:e},t,n)=>{e[t]=n},Vf=(e,t,n)=>{switch(e.type.unit){case x.SECOND:return Lf(e,t,n);case x.MILLISECOND:return Rf(e,t,n);case x.MICROSECOND:return zf(e,t,n);case x.NANOSECOND:return Bf(e,t,n)}},Hf=(e,t,n)=>{let{stride:r}=e,i=e.children[0],a=Uf.getVisitFn(i);if(Array.isArray(n))for(let e=-1,o=t*r;++e`${Du(e)}: ${Du(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}[Symbol.iterator](){return new qf(this[Wf],this[Gf])}},qf=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return ee.name)}has(e,t){return e[Wf].type.children.findIndex(e=>e.name===t)!==-1}getOwnPropertyDescriptor(e,t){if(e[Wf].type.children.findIndex(e=>e.name===t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[Wf].type.children.findIndex(e=>e.name===t);if(n!==-1){let r=Lp.visit(e[Wf].children[n],e[Gf]);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[Wf].type.children.findIndex(e=>e.name===t);return r===-1?Reflect.has(e,t)||typeof t==`symbol`?Reflect.set(e,t,n):!1:(Uf.visit(e[Wf].children[r],e[Gf],n),Reflect.set(e,t,n))}},D=class extends w{};function O(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Yf=(e,t)=>864e5*e[t],Xf=(e,t)=>null,Zf=(e,t,n)=>{if(n+1>=t.length)return null;let r=Ou(t[n]),i=Ou(t[n+1]);return e.subarray(r,i)},Qf=({offset:e,values:t},n)=>{let r=e+n,i=t[r>>3];return(i&1<Yf(e,t),ep=({values:e},t)=>Ou(e[t]),tp=({stride:e,values:t},n)=>t[e*n],np=({stride:e,values:t},n)=>Yd(t[e*n]),rp=({values:e},t)=>e[t],ip=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),ap=({values:e,valueOffsets:t},n)=>Zf(e,t,n),op=({values:e,valueOffsets:t},n)=>{let r=Zf(e,t,n);return r===null?null:Wc(r)},sp=({values:e},t)=>e[t],cp=({type:e,values:t},n)=>e.precision===Fl.HALF?Yd(t[n]):t[n],lp=(e,t)=>e.type.unit===Il.DAY?$f(e,t):ep(e,t),up=({values:e},t)=>1e3*Ou(e[t]),dp=({values:e},t)=>Ou(e[t]),fp=({values:e},t)=>ku(e[t],BigInt(1e3)),pp=({values:e},t)=>ku(e[t],BigInt(1e6)),mp=(e,t)=>{switch(e.type.unit){case x.SECOND:return up(e,t);case x.MILLISECOND:return dp(e,t);case x.MICROSECOND:return fp(e,t);case x.NANOSECOND:return pp(e,t)}},hp=({values:e},t)=>e[t],gp=({values:e},t)=>e[t],_p=({values:e},t)=>e[t],vp=({values:e},t)=>e[t],yp=(e,t)=>{switch(e.type.unit){case x.SECOND:return hp(e,t);case x.MILLISECOND:return gp(e,t);case x.MICROSECOND:return _p(e,t);case x.NANOSECOND:return vp(e,t)}},bp=({values:e,stride:t},n)=>Vu.decimal(e.subarray(t*n,t*(n+1))),xp=(e,t)=>{let{valueOffsets:n,stride:r,children:i}=e,{[t*r]:a,[t*r+1]:o}=n,s=i[0],c=s.slice(a,o-a);return new Pm([c])},Sp=(e,t)=>{let{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:a}=n,o=r[0];return new Hp(o.slice(i,a-i))},Cp=(e,t)=>new Kf(e,t),wp=(e,t)=>e.type.mode===Pl.Dense?Tp(e,t):Ep(e,t),Tp=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return Lp.visit(r,e.valueOffsets[t])},Ep=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return Lp.visit(r,t)},Dp=(e,t)=>{var n;return(n=e.dictionary)?.get(e.values[t])},Op=(e,t)=>e.type.unit===Ll.DAY_TIME?kp(e,t):Ap(e,t),kp=({values:e},t)=>e.subarray(2*t,2*(t+1)),Ap=({values:e},t)=>{let n=e[t],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},jp=({values:e},t)=>e[t],Mp=({values:e},t)=>e[t],Np=({values:e},t)=>e[t],Pp=({values:e},t)=>e[t],Fp=(e,t)=>{switch(e.type.unit){case x.SECOND:return jp(e,t);case x.MILLISECOND:return Mp(e,t);case x.MICROSECOND:return Np(e,t);case x.NANOSECOND:return Pp(e,t)}},Ip=(e,t)=>{let{stride:n,children:r}=e,i=r[0],a=i.slice(t*n,n);return new Pm([a])};D.prototype.visitNull=O(Xf),D.prototype.visitBool=O(Qf),D.prototype.visitInt=O(sp),D.prototype.visitInt8=O(tp),D.prototype.visitInt16=O(tp),D.prototype.visitInt32=O(tp),D.prototype.visitInt64=O(rp),D.prototype.visitUint8=O(tp),D.prototype.visitUint16=O(tp),D.prototype.visitUint32=O(tp),D.prototype.visitUint64=O(rp),D.prototype.visitFloat=O(cp),D.prototype.visitFloat16=O(np),D.prototype.visitFloat32=O(tp),D.prototype.visitFloat64=O(tp),D.prototype.visitUtf8=O(op),D.prototype.visitLargeUtf8=O(op),D.prototype.visitBinary=O(ap),D.prototype.visitLargeBinary=O(ap),D.prototype.visitFixedSizeBinary=O(ip),D.prototype.visitDate=O(lp),D.prototype.visitDateDay=O($f),D.prototype.visitDateMillisecond=O(ep),D.prototype.visitTimestamp=O(mp),D.prototype.visitTimestampSecond=O(up),D.prototype.visitTimestampMillisecond=O(dp),D.prototype.visitTimestampMicrosecond=O(fp),D.prototype.visitTimestampNanosecond=O(pp),D.prototype.visitTime=O(yp),D.prototype.visitTimeSecond=O(hp),D.prototype.visitTimeMillisecond=O(gp),D.prototype.visitTimeMicrosecond=O(_p),D.prototype.visitTimeNanosecond=O(vp),D.prototype.visitDecimal=O(bp),D.prototype.visitList=O(xp),D.prototype.visitStruct=O(Cp),D.prototype.visitUnion=O(wp),D.prototype.visitDenseUnion=O(Tp),D.prototype.visitSparseUnion=O(Ep),D.prototype.visitDictionary=O(Dp),D.prototype.visitInterval=O(Op),D.prototype.visitIntervalDayTime=O(kp),D.prototype.visitIntervalYearMonth=O(Ap),D.prototype.visitDuration=O(Fp),D.prototype.visitDurationSecond=O(jp),D.prototype.visitDurationMillisecond=O(Mp),D.prototype.visitDurationMicrosecond=O(Np),D.prototype.visitDurationNanosecond=O(Pp),D.prototype.visitFixedSizeList=O(Ip),D.prototype.visitMap=O(Sp);const Lp=new D,Rp=Symbol.for(`keys`),zp=Symbol.for(`vals`),Bp=Symbol.for(`kKeysAsStrings`),Vp=Symbol.for(`_kKeysAsStrings`);var Hp=class{constructor(e){return this[Rp]=new Pm([e.children[0]]).memoize(),this[zp]=e.children[1],new Proxy(this,new Wp)}get[Bp](){return this[Vp]||(this[Vp]=Array.from(this[Rp].toArray(),String))}[Symbol.iterator](){return new Up(this[Rp],this[zp])}get size(){return this[Rp].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Rp],t=this[zp],n={};for(let r=-1,i=e.length;++r`${Du(e)}: ${Du(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}},Up=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Lp.visit(this.vals,e)]})}},Wp=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Bp]}has(e,t){return e[Bp].includes(t)}getOwnPropertyDescriptor(e,t){let n=e[Bp].indexOf(t);if(n!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[Bp].indexOf(t);if(n!==-1){let r=Lp.visit(Reflect.get(e,zp),n);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[Bp].indexOf(t);return r===-1?Reflect.has(e,t)?Reflect.set(e,t,n):!1:(Uf.visit(Reflect.get(e,zp),r,n),Reflect.set(e,t,n))}};Object.defineProperties(Hp.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[Rp]:{writable:!0,enumerable:!1,configurable:!1,value:null},[zp]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Vp]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Gp;function Kp(e,t,n,r){let{length:i=0}=e,a=typeof t==`number`?t:0,o=typeof n==`number`?n:i;return a<0&&(a=(a%i+i)%i),o<0&&(o=(o%i+i)%i),oi&&(o=i),r?r(e,a,o):[a,o]}const qp=(e,t)=>e<0?t+e:e,Jp=e=>e!==e;function Yp(e){let t=typeof e;if(t!==`object`||e===null)return Jp(e)?Jp:t=>t===e;if(e instanceof Date){let t=e.valueOf();return e=>e instanceof Date?e.valueOf()===t:!1}return ArrayBuffer.isView(e)?t=>t?wl(e,t):!1:e instanceof Map?Zp(e):Array.isArray(e)?Xp(e):e instanceof Pm?Qp(e):$p(e,!0)}function Xp(e){let t=[];for(let n=-1,r=e.length;++n!1;let r=[];for(let t=-1,i=n.length;++t{if(!n||typeof n!=`object`)return!1;switch(n.constructor){case Array:return tm(e,n);case Map:return rm(e,n,n.keys());case Hp:case Kf:case Object:case void 0:return rm(e,n,t||Object.keys(n))}return n instanceof Pm?nm(e,n):!1}}function tm(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++r>r}function om(e,t,n){let r=n.byteLength+7&-8;if(e>0||n.byteLength>3):sm(new cm(n,e,t,null,im)).subarray(0,r)),i}return n}function sm(e){let t=[],n=0,r=0,i=0;for(let a of e)a&&(i|=1<0)&&(t[n++]=i);let a=new Uint8Array(t.length+7&-8);return a.set(t),a}var cm=class{constructor(e,t,n,r,i){this.bytes=e,this.length=n,this.context=r,this.get=i,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index>3<<3,i=t+(t%8==0?0:8-t%8);return lm(e,t,i)+lm(e,r,n)+um(e,i>>3,r-i>>3)}function um(e,t,n){let r=0,i=Math.trunc(t),a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n===void 0?e.byteLength:i+n;for(;o-i>=4;)r+=dm(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=dm(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=dm(a.getUint8(i)),i+=1;return r}function dm(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}var fm=class e{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:e}=this;return C.isSparseUnion(e)||C.isDenseUnion(e)?this.children.some(e=>e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:t,values:n,nullBitmap:r,typeIds:i}=this;return t&&(e+=t.byteLength),n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),this.children.reduce((e,t)=>e+t.byteLength,e)}get nullCount(){if(C.isUnion(this.type))return this.children.reduce((e,t)=>e+t.nullCount,0);let e=this._nullCount,t;return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-lm(t,this.offset,this.offset+this.length)),e}constructor(t,n,r,i,a,o=[],s){this.type=t,this.children=o,this.dictionary=s,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let c;a instanceof e?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=Ud(t),a&&((c=a[0])&&(this.valueOffsets=c),(c=a[1])&&(this.values=c),(c=a[2])&&(this.nullBitmap=c),(c=a[3])&&(this.typeIds=c)))}getValid(e){let{type:t}=this;if(C.isUnion(t)){let n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],i=n.mode===Pl.Dense?this.valueOffsets[e]:e;return r.getValid(i)}if(this.nullable&&this.nullCount>0){let t=this.offset+e,n=this.nullBitmap[t>>3];return(n&1<>3;(!r||r.byteLength<=c)&&(r=new Uint8Array((i+a+63&-64)>>3).fill(255),this.nullCount>0?(r.set(om(i,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:r})):Object.assign(this,{nullBitmap:r,_nullCount:0}));let l=r[c];n=(l&s)!==0,r[c]=t?l|s:l&~s}return n!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(t=this.type,n=this.offset,r=this.length,i=this._nullCount,a=this,o=this.children){return new e(t,n,r,i,a,o,this.dictionary)}slice(e,t){let{stride:n,typeId:r,children:i}=this,a=(this._nullCount===0)-1,o=r===16?n:1,s=this._sliceBuffers(e,t,n,r);return this.clone(this.type,this.offset+e,t,a,s,i.length===0||this.valueOffsets?i:this._sliceChildren(i,o*e,o*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===S.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:n}=this,r=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);r[t>>3]=(1<0&&r.set(om(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[Eu.VALIDITY]=r,this.clone(this.type,0,e,n+(e-t),i)}_sliceBuffers(e,t,n,r){let i,{buffers:a}=this;return(i=a[Eu.TYPE])&&(a[Eu.TYPE]=i.subarray(e,e+t)),(i=a[Eu.OFFSET])&&(a[Eu.OFFSET]=i.subarray(e,e+t+1))||(i=a[Eu.DATA])&&(a[Eu.DATA]=r===6?i:i.subarray(n*e,n*(e+t))),a}_sliceChildren(e,t,n){return e.map(e=>e.slice(t,n))}};fm.prototype.children=Object.freeze([]);var pm=class e extends w{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:n=0,length:r=0}=e;return new fm(t,n,r,r)}visitBool(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitInt(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitFloat(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitUtf8(e){let{type:t,offset:n=0}=e,r=_l(e.data),i=_l(e.nullBitmap),a=hl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,r,i])}visitLargeUtf8(e){let{type:t,offset:n=0}=e,r=_l(e.data),i=_l(e.nullBitmap),a=gl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,r,i])}visitBinary(e){let{type:t,offset:n=0}=e,r=_l(e.data),i=_l(e.nullBitmap),a=hl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,r,i])}visitLargeBinary(e){let{type:t,offset:n=0}=e,r=_l(e.data),i=_l(e.nullBitmap),a=gl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,r,i])}visitFixedSizeBinary(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitDate(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitTimestamp(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitTime(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitDecimal(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitList(e){let{type:t,offset:n=0,child:r}=e,i=_l(e.nullBitmap),a=hl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,void 0,i],[r])}visitStruct(e){let{type:t,offset:n=0,children:r=[]}=e,i=_l(e.nullBitmap),{length:a=r.reduce((e,{length:t})=>Math.max(e,t),0),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,void 0,i],r)}visitUnion(e){let{type:t,offset:n=0,children:r=[]}=e,i=ml(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:o=-1}=e;if(C.isSparseUnion(t))return new fm(t,n,a,o,[void 0,void 0,void 0,i],r);let s=hl(e.valueOffsets);return new fm(t,n,a,o,[s,void 0,void 0,i],r)}visitDictionary(t){let{type:n,offset:r=0}=t,i=_l(t.nullBitmap),a=ml(n.indices.ArrayType,t.data),{dictionary:o=new Pm([new e().visit({type:n.dictionary})])}=t,{length:s=a.length,nullCount:c=t.nullBitmap?-1:0}=t;return new fm(n,r,s,c,[void 0,a,i],[],o)}visitInterval(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitDuration(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitFixedSizeList(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.valueType})}=t,a=_l(t.nullBitmap),{length:o=i.length/Ud(n),nullCount:s=t.nullBitmap?-1:0}=t;return new fm(n,r,o,s,[void 0,void 0,a],[i])}visitMap(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.childType})}=t,a=_l(t.nullBitmap),o=hl(t.valueOffsets),{length:s=o.length-1,nullCount:c=t.nullBitmap?-1:0}=t;return new fm(n,r,s,c,[o,void 0,a],[i])}};const mm=new pm;function k(e){return mm.visit(e)}var hm=class{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndexe.nullable)}function _m(e){return e.reduce((e,t)=>e+t.nullCount,0)}function vm(e){return e.reduce((e,t,n)=>(e[n+1]=e[n]+t.length,e),new Uint32Array(e.length+1))}function ym(e,t,n,r){let i=[];for(let a=-1,o=e.length;++a=r)break;if(n>=s+c)continue;if(s>=n&&s+c<=r){i.push(o);continue}let l=Math.max(0,n-s),u=Math.min(r-s,c);i.push(o.slice(l,u-l))}return i.length===0&&i.push(e[0].slice(0,0)),i}function bm(e,t,n,r){let i=0,a=0,o=t.length-1;do{if(i>=o-1)return n0?0:-1}function Em(e,t){let{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(let i of new cm(n,e.offset+(t||0),e.length,n,im)){if(!i)return r;++r}return-1}function j(e,t,n){if(t===void 0)return-1;if(t===null)switch(e.typeId){case S.Union:break;case S.Dictionary:break;default:return Em(e,n)}let r=Lp.getVisitFn(e),i=Yp(t);for(let t=(n||0)-1,a=e.length;++t{let n=e.data[t];return n.values.subarray(0,n.length)[Symbol.iterator]()});let n=0;return new hm(e.data.length,t=>{let r=e.data[t],i=r.length,a=e.slice(n,n+i);return n+=i,new km(a)})}var km=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data):t;if(a.length===0||a.some(e=>!(e instanceof fm)))throw TypeError(`Vector constructor expects an Array of Data instances.`);let o=(n=a[0])?.type;switch(a.length){case 0:this._offsets=[0];break;case 1:{let{get:e,set:t,indexOf:n}=Mm[o.typeId],r=a[0];this.isValid=e=>xm(r,e),this.get=t=>e(r,t),this.set=(e,n)=>t(r,e,n),this.indexOf=e=>n(r,e),this._offsets=[0,r.length];break}default:Object.setPrototypeOf(this,Nm[o.typeId]),this._offsets=vm(a);break}this.data=a,this.type=o,this.stride=Ud(o),this.numChildren=(i=(r=o.children)?.length)??0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,t)=>e+t.byteLength,0)}get nullable(){return gm(this.data)}get nullCount(){return _m(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${S[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(qp(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return Am.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap(e=>e.data).flat(1/0)))}slice(t,n){return new e(Kp(this,t,n,({data:e,_offsets:t},n,r)=>ym(e,t,n,r)))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case S.Int:case S.Float:case S.Decimal:case S.Time:case S.Timestamp:switch(t.length){case 0:return new i;case 1:return t[0].values.subarray(0,n*r);default:return t.reduce((e,{values:t,length:n})=>(e.array.set(t.subarray(0,n*r),e.offset),e.offset+=n*r,e),{array:new i(n*r),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(`,`)}]`}getChild(e){var t;return this.getChildAt((t=this.type.children)?.findIndex(t=>t.name===e))}getChildAt(t){return t>-1&&te[t])):null}get isMemoized(){return C.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(C.isDictionary(this.type)){let t=new Fm(this.data[0].dictionary),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return new Fm(this)}unmemoize(){if(C.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return this}};jm=Symbol.toStringTag,Pm[jm]=(e=>{e.type=C.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;let t=Object.keys(S).map(e=>S[e]).filter(e=>typeof e==`number`&&e!==S.NONE);for(let n of t){let t=Lp.getVisitFnByTypeId(n),r=Uf.getVisitFnByTypeId(n),i=Om.getVisitFnByTypeId(n);Mm[n]={get:t,set:r,indexOf:i},Nm[n]=Object.create(e,{isValid:{value:Sm(xm)},get:{value:Sm(Lp.getVisitFnByTypeId(n))},set:{value:Cm(Uf.getVisitFnByTypeId(n))},indexOf:{value:wm(Om.getVisitFnByTypeId(n))}})}return`Vector`})(Pm.prototype);var Fm=class e extends Pm{constructor(t){super(t.data);let n=this.get,r=this.set,i=this.slice,a=Array(this.length);Object.defineProperty(this,`get`,{value(e){let t=a[e];if(t!==void 0)return t;let r=n.call(this,e);return a[e]=r,r}}),Object.defineProperty(this,`set`,{value(e,t){r.call(this,e,t),a[e]=t}}),Object.defineProperty(this,`slice`,{value:(t,n)=>new e(i.call(this,t,n))}),Object.defineProperty(this,`isMemoized`,{value:!0}),Object.defineProperty(this,`unmemoize`,{value:()=>new Pm(this.data)}),Object.defineProperty(this,`memoize`,{value:()=>this})}},Im=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,n,r){return e.prep(8,24),e.writeInt64(BigInt(r??0)),e.pad(4),e.writeInt32(n),e.writeInt64(BigInt(t??0)),e.offset()}},Lm=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Nl.V1}schema(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new wu).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new Im).__init(this.bb.__vector(this.bb_pos+n)+e*24,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){let n=this.bb.__offset(this.bb_pos,10);return n?(t||new Im).__init(this.bb.__vector(this.bb_pos+n)+e*24,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,12);return n?(t||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Nl.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){let t=e.endObject();return t}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}},Rm=class e{constructor(e=[],t,n,r=Nl.V5){this.fields=e||[],this.metadata=t||new Map,n||=Vm(this.fields),this.dictionaries=n,this.metadataVersion=r}get[Symbol.toStringTag](){return`Schema`}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,t)=>`${t}: ${e}`).join(`, `)} }>`}select(t){let n=new Set(t),r=this.fields.filter(e=>n.has(e.name));return new e(r,this.metadata)}selectAt(t){let n=t.map(e=>this.fields[e]).filter(Boolean);return new e(n,this.metadata)}assign(...t){let n=t[0]instanceof e?t[0]:Array.isArray(t[0])?new e(t[0]):new e(t),r=[...this.fields],i=Bm(Bm(new Map,this.metadata),n.metadata),a=n.fields.filter(e=>{let t=r.findIndex(t=>t.name===e.name);return~t?(r[t]=e.clone({metadata:Bm(Bm(new Map,r[t].metadata),e.metadata)}))&&!1:!0}),o=Vm(a,new Map);return new e([...r,...a],i,new Map([...this.dictionaries,...o]))}};Rm.prototype.fields=null,Rm.prototype.metadata=null,Rm.prototype.dictionaries=null;var zm=class e{static new(...t){let[n,r,i,a]=t;return t[0]&&typeof t[0]==`object`&&({name:n}=t[0],r===void 0&&(r=t[0].type),i===void 0&&(i=t[0].nullable),a===void 0&&(a=t[0].metadata)),new e(`${n}`,r,i,a)}constructor(e,t,n=!1,r){this.name=e,this.type=t,this.nullable=n,this.metadata=r||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return`Field`}toString(){return`${this.name}: ${this.type}`}clone(...t){let[n,r,i,a]=t;return!t[0]||typeof t[0]!=`object`?[n=this.name,r=this.type,i=this.nullable,a=this.metadata]=t:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:a=this.metadata}=t[0],e.new(n,r,i,a)}};zm.prototype.type=null,zm.prototype.name=null,zm.prototype.nullable=null,zm.prototype.metadata=null;function Bm(e,t){return new Map([...e||new Map,...t||new Map])}function Vm(e,t=new Map){for(let n=-1,r=e.length;++n0&&Vm(i.children,t)}return t}var Hm=Wl,Um=Ul,Wm=class{static decode(e){e=new Um(_l(e));let t=Lm.getRootAsFooter(e),n=Rm.decode(t.schema(),new Map,t.version());return new Gm(n,t)}static encode(e){let t=new Hm,n=Rm.encode(t,e.schema);Lm.startRecordBatchesVector(t,e.numRecordBatches);for(let n of[...e.recordBatches()].slice().reverse())Km.encode(t,n);let r=t.endVector();Lm.startDictionariesVector(t,e.numDictionaries);for(let n of[...e.dictionaryBatches()].slice().reverse())Km.encode(t,n);let i=t.endVector();return Lm.startFooter(t),Lm.addSchema(t,n),Lm.addVersion(t,Nl.V5),Lm.addRecordBatches(t,r),Lm.addDictionaries(t,i),Lm.finishFooterBuffer(t,Lm.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=Nl.V5,n,r){this.schema=e,this.version=t,n&&(this._recordBatches=n),r&&(this._dictionaryBatches=r)}*recordBatches(){for(let e,t=-1,n=this.numRecordBatches;++t=0&&e=0&&e=0&&e=0&&ethis._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return y(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(qm);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Tl.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Tl.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return y(this,void 0,void 0,function*(){return yield this.abort(e),qm})}return(e){return y(this,void 0,void 0,function*(){return yield this.close(),qm})}read(e){return y(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return y(this,void 0,void 0,function*(){return(yield this.next(e,`peek`)).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((e,t)=>{this.resolvers.push({resolve:e,reject:t})}):Promise.resolve(qm)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw Error(`AsyncQueue is closed`)}},Zm=class extends Xm{write(e){if((e=_l(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Wc(this.toUint8Array(!0)):this.toUint8Array(!1).then(Wc)}toUint8Array(e=!1){return e?pl(this._values)[0]:(()=>y(this,void 0,void 0,function*(){var e,t,n,r;let i=[],a=0;try{for(var o=!0,s=Hc(this),c;c=yield s.next(),e=c.done,!e;o=!0){r=c.value,o=!1;let e=r;i.push(e),a+=e.byteLength}}catch(e){t={error:e}}finally{try{!o&&!e&&(n=s.return)&&(yield n.call(s))}finally{if(t)throw t.error}}return pl(i,a)[0]}))()}},Qm=class{constructor(e){e&&(this.source=new eh(Tl.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},$m=class e{constructor(t){t instanceof e?this.source=t.source:t instanceof Zm?this.source=new th(Tl.fromAsyncIterable(t)):cl(t)?this.source=new th(Tl.fromNodeStream(t)):ol(t)?this.source=new th(Tl.fromDOMStream(t)):rl(t)?this.source=new th(Tl.fromDOMStream(t.body)):Qc(t)?this.source=new th(Tl.fromIterable(t)):(Zc(t)||$c(t))&&(this.source=new th(Tl.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},eh=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,`peek`).value}read(e){return this.next(e,`read`).value}next(e,t=`read`){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||qm)}return(e){return Object.create(this.source.return&&this.source.return(e)||qm)}},th=class{constructor(e){this.source=e,this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}cancel(e){return y(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return y(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return y(this,void 0,void 0,function*(){return(yield this.next(e,`peek`)).value})}next(e){return y(this,arguments,void 0,function*(e,t=`read`){return yield this.source.next({cmd:t,size:e})})}throw(e){return y(this,void 0,void 0,function*(){let t=this.source.throw&&(yield this.source.throw(e))||qm;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return y(this,void 0,void 0,function*(){let t=this.source.return&&(yield this.source.return(e))||qm;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}},nh=class extends Qm{constructor(e,t){super(),this.position=0,this.buffer=_l(e),this.size=t===void 0?this.buffer.byteLength:t}readInt32(e){let{buffer:t,byteOffset:n}=this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),ey(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending}))()}readInt32(e){return y(this,void 0,void 0,function*(){let{buffer:t,byteOffset:n}=yield this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)})}seek(e){return y(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),n=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),r=t[3]*n[3];this.buffer[0]=r&65535;let i=r>>>16;return r=t[2]*n[3],i+=r,r=t[3]*n[2]>>>0,i+=r,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0>>16,this.buffer[1]+=t[1]*n[3]+t[2]*n[2]+t[3]*n[1],this.buffer[1]+=t[0]*n[3]+t[1]*n[2]+t[2]*n[1]+t[3]*n[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]>>0&&++t[1],t[1]>>0&&++t[2],t[2]>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${ih(this.buffer[3])} ${ih(this.buffer[2])} ${ih(this.buffer[1])} ${ih(this.buffer[0])}`}static multiply(t,n){let r=new e(new Uint32Array(t.buffer));return r.times(n)}static add(t,n){let r=new e(new Uint32Array(t.buffer));return r.plus(n)}static from(t,n=new Uint32Array(4)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){let r=t.startsWith(`-`),i=t.length,a=new e(n);for(let n=r?1:0;n0&&this.readData(e,n)||new Uint8Array}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:n}=this.nextBufferRange()){return this.bytes.subarray(n,n+t)}readDictionary(e){return this.dictionaries.get(e.id)}},dh=class extends uh{constructor(e,t,n,r,i){super(new Uint8Array,t,n,r,i),this.sources=e}readNullBitmap(e,t,{offset:n}=this.nextBufferRange()){return t<=0?new Uint8Array:sm(this.sources[n])}readOffsets(e,{offset:t}=this.nextBufferRange()){return ml(Uint8Array,ml(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return ml(Uint8Array,ml(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){let{sources:n}=this;return C.isTimestamp(e)||(C.isInt(e)||C.isTime(e))&&e.bitWidth===64||C.isDuration(e)||C.isDate(e)&&e.unit===Il.MILLISECOND?ml(Uint8Array,ch.convertArray(n[t])):C.isDecimal(e)?ml(Uint8Array,lh.convertArray(n[t])):C.isBinary(e)||C.isLargeBinary(e)||C.isFixedSizeBinary(e)?fh(n[t]):C.isBool(e)?sm(n[t]):C.isUtf8(e)||C.isLargeUtf8(e)?Kc(n[t].join(``)):ml(Uint8Array,ml(e.ArrayType,n[t].map(e=>+e)))}};function fh(e){let t=e.join(``),n=new Uint8Array(t.length/2);for(let e=0;e>1]=Number.parseInt(t.slice(e,e+2),16);return n}var P=class extends w{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>this.compareFields(e,t[n]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};function ph(e,t){return t instanceof e.constructor}function mh(e,t){return e===t||ph(e,t)}function hh(e,t){return e===t||ph(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function gh(e,t){return e===t||ph(e,t)&&e.precision===t.precision}function _h(e,t){return e===t||ph(e,t)&&e.byteWidth===t.byteWidth}function vh(e,t){return e===t||ph(e,t)&&e.unit===t.unit}function yh(e,t){return e===t||ph(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function bh(e,t){return e===t||ph(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function xh(e,t){return e===t||ph(e,t)&&e.children.length===t.children.length&&kh.compareManyFields(e.children,t.children)}function Sh(e,t){return e===t||ph(e,t)&&e.children.length===t.children.length&&kh.compareManyFields(e.children,t.children)}function Ch(e,t){return e===t||ph(e,t)&&e.mode===t.mode&&e.typeIds.every((e,n)=>e===t.typeIds[n])&&kh.compareManyFields(e.children,t.children)}function wh(e,t){return e===t||ph(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&kh.visit(e.indices,t.indices)&&kh.visit(e.dictionary,t.dictionary)}function Th(e,t){return e===t||ph(e,t)&&e.unit===t.unit}function Eh(e,t){return e===t||ph(e,t)&&e.unit===t.unit}function Dh(e,t){return e===t||ph(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&kh.compareManyFields(e.children,t.children)}function Oh(e,t){return e===t||ph(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&kh.compareManyFields(e.children,t.children)}P.prototype.visitNull=mh,P.prototype.visitBool=mh,P.prototype.visitInt=hh,P.prototype.visitInt8=hh,P.prototype.visitInt16=hh,P.prototype.visitInt32=hh,P.prototype.visitInt64=hh,P.prototype.visitUint8=hh,P.prototype.visitUint16=hh,P.prototype.visitUint32=hh,P.prototype.visitUint64=hh,P.prototype.visitFloat=gh,P.prototype.visitFloat16=gh,P.prototype.visitFloat32=gh,P.prototype.visitFloat64=gh,P.prototype.visitUtf8=mh,P.prototype.visitLargeUtf8=mh,P.prototype.visitBinary=mh,P.prototype.visitLargeBinary=mh,P.prototype.visitFixedSizeBinary=_h,P.prototype.visitDate=vh,P.prototype.visitDateDay=vh,P.prototype.visitDateMillisecond=vh,P.prototype.visitTimestamp=yh,P.prototype.visitTimestampSecond=yh,P.prototype.visitTimestampMillisecond=yh,P.prototype.visitTimestampMicrosecond=yh,P.prototype.visitTimestampNanosecond=yh,P.prototype.visitTime=bh,P.prototype.visitTimeSecond=bh,P.prototype.visitTimeMillisecond=bh,P.prototype.visitTimeMicrosecond=bh,P.prototype.visitTimeNanosecond=bh,P.prototype.visitDecimal=mh,P.prototype.visitList=xh,P.prototype.visitStruct=Sh,P.prototype.visitUnion=Ch,P.prototype.visitDenseUnion=Ch,P.prototype.visitSparseUnion=Ch,P.prototype.visitDictionary=wh,P.prototype.visitInterval=Th,P.prototype.visitIntervalDayTime=Th,P.prototype.visitIntervalYearMonth=Th,P.prototype.visitDuration=Eh,P.prototype.visitDurationSecond=Eh,P.prototype.visitDurationMillisecond=Eh,P.prototype.visitDurationMicrosecond=Eh,P.prototype.visitDurationNanosecond=Eh,P.prototype.visitFixedSizeList=Dh,P.prototype.visitMap=Oh;const kh=new P;function Ah(e,t){return kh.compareSchemas(e,t)}function jh(e,t){return Mh(e,t.map(e=>e.data.concat()))}function Mh(e,t){let n=[...e.fields],r=[],i={numBatches:t.reduce((e,t)=>Math.max(e,t.length),0)},a=0,o=0,s=-1,c=t.length,l,u=[];for(;i.numBatches-- >0;){for(o=1/0,s=-1;++s0&&(r[a++]=k({type:new Id(n),length:o,nullCount:0,children:u.slice()})))}return[e=e.assign(n),r.map(t=>new Lh(e,t))]}function Nh(e,t,n,r,i){var a;let o=(t+63&-64)>>3;for(let s=-1,c=r.length;++s=t)l===t?n[s]=c:(n[s]=c.slice(0,t),i.numBatches=Math.max(i.numBatches,r[s].unshift(c.slice(t,l-t))));else{let r=e[s];e[s]=r.clone({nullable:!0}),n[s]=(a=c?._changeLengthAndBackfillNullBitmap(t))??k({type:r.type,length:t,nullCount:t,nullBitmap:new Uint8Array(o)})}}return n}var Ph,Fh=class e{constructor(...t){var n,r;if(t.length===0)return this.batches=[],this.schema=new Rm([]),this._offsets=[0],this;let i,a;t[0]instanceof Rm&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(a=t.pop());let o=t=>{if(t){if(t instanceof Lh)return[t];if(t instanceof e)return t.batches;if(t instanceof fm){if(t.type instanceof Id)return[new Lh(new Rm(t.type.children),t)]}else if(Array.isArray(t))return t.flatMap(e=>o(e));else if(typeof t[Symbol.iterator]==`function`)return[...t].flatMap(e=>o(e));else if(typeof t==`object`){let e=Object.keys(t),n=e.map(e=>new Pm([t[e]])),r=i??new Rm(e.map((e,t)=>new zm(String(e),n[t].type,n[t].nullable))),[,a]=jh(r,n);return a.length===0?[new Lh(t)]:a}}return[]},s=t.flatMap(e=>o(e));if(i=(r=i??(n=s[0])?.schema)??new Rm([]),!(i instanceof Rm))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);for(let e of s){if(!(e instanceof Lh))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);if(!Ah(i,e.schema))throw TypeError(`Table and inner RecordBatch schemas must be equivalent.`)}this.schema=i,this.batches=s,this._offsets=a??vm(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,t)=>e+t.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=_m(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(qp(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?Am.visit(new Pm(this.data)):[][Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(`, - `)}\n]`}concat(...t){let n=this.schema,r=this.data.concat(t.flatMap(({data:e})=>e));return new e(n,r.map(e=>new Lh(n,e)))}slice(t,n){let r=this.schema;[t,n]=Kp({length:this.numRows},t,n);let i=ym(this.data,this._offsets,t,n);return new e(r,i.map(e=>new Lh(r,e)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(t=>t.name===e))}getChildAt(e){if(e>-1&&et.children[e]);if(t.length===0){let{type:n}=this.schema.fields[e],r=k({type:n,length:0,nullCount:0});t.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new Pm(t)}return null}setChild(e,t){var n;return this.setChildAt((n=this.schema.fields)?.findIndex(t=>t.name===e),t)}setChildAt(t,n){let r=this.schema,i=[...this.batches];if(t>-1&&tthis.getChildAt(t));[e[t],o[t]]=[a,n],[r,i]=jh(r,o)}return new e(r,i)}select(e){let t=this.schema.fields.reduce((e,t,n)=>e.set(t.name,n),new Map);return this.selectAt(e.map(e=>t.get(e)).filter(e=>e>-1))}selectAt(t){let n=this.schema.selectAt(t),r=this.batches.map(e=>e.selectAt(t));return new e(n,r)}assign(t){let n=this.schema.fields,[r,i]=t.schema.fields.reduce((e,t,r)=>{let[i,a]=e,o=n.findIndex(e=>e.name===t.name);return~o?a[o]=r:i.push(r),e},[[],[]]),a=this.schema.assign(t.schema),o=[...n.map((e,t)=>[t,i[t]]).map(([e,n])=>n===void 0?this.getChildAt(e):t.getChildAt(n)),...r.map(e=>t.getChildAt(e))].filter(Boolean);return new e(...jh(a,o))}};Ph=Symbol.toStringTag,Fh[Ph]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=Sm(xm),e.get=Sm(Lp.getVisitFn(S.Struct)),e.set=Cm(Uf.getVisitFn(S.Struct)),e.indexOf=wm(Om.getVisitFn(S.Struct)),`Table`))(Fh.prototype);var Ih,Lh=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof Rm)||([,this.data=k({nullCount:0,type:new Id(this.schema.fields),children:this.schema.fields.map(e=>k({type:e.type,nullCount:0}))})]=e,!(this.data instanceof fm)))throw TypeError(`RecordBatch constructor expects a [Schema, Data] pair.`);[this.schema,this.data]=Rh(this.schema,this.data.children);break;case 1:{let[t]=e,{fields:n,children:r,length:i}=Object.keys(t).reduce((e,n,r)=>(e.children[r]=t[n],e.length=Math.max(e.length,t[n].length),e.fields[r]=zm.new({name:n,type:t[n].type,nullable:!0}),e),{length:0,fields:[],children:[]}),a=new Rm(n),o=k({type:new Id(n),length:i,children:r,nullCount:0});[this.schema,this.data]=Rh(a,o.children,i);break}default:throw TypeError(`RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.`)}}get dictionaries(){return this._dictionaries||=zh(this.schema.fields,this.data.children)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Lp.visit(this.data,e)}at(e){return this.get(qp(e,this.numRows))}set(e,t){return Uf.visit(this.data,e,t)}indexOf(e,t){return Om.visit(this.data,e,t)}[Symbol.iterator](){return Am.visit(new Pm([this.data]))}toArray(){return[...this]}concat(...e){return new Fh(this.schema,[this,...e])}slice(t,n){let[r]=new Pm([this.data]).slice(t,n).data;return new e(this.schema,r)}getChild(e){var t;return this.getChildAt((t=this.schema.fields)?.findIndex(t=>t.name===e))}getChildAt(e){return e>-1&&et.name===e),t)}setChildAt(t,n){let r=this.schema,i=this.data;if(t>-1&&tt.name===e);~t&&(i[t]=this.data.children[t])}return new e(n,k({type:r,length:this.numRows,children:i}))}selectAt(t){let n=this.schema.selectAt(t),r=t.map(e=>this.data.children[e]).filter(Boolean),i=k({type:new Id(n.fields),length:this.numRows,children:r});return new e(n,i)}};Ih=Symbol.toStringTag,Lh[Ih]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,`RecordBatch`))(Lh.prototype);function Rh(e,t,n=t.reduce((e,t)=>Math.max(e,t.length),0)){var r;let i=[...e.fields],a=[...t],o=(n+63&-64)>>3;for(let[s,c]of e.fields.entries()){let e=t[s];(!e||e.length!==n)&&(i[s]=c.clone({nullable:!0}),a[s]=(r=e?._changeLengthAndBackfillNullBitmap(n))??k({type:c.type,length:n,nullCount:n,nullBitmap:new Uint8Array(o)}))}return[e.assign(i),k({type:new Id(i),length:n,children:a})]}function zh(e,t,n=new Map){var r,i;if(((r=e?.length)??0)>0&&e?.length===t?.length)for(let r=-1,a=e.length;++rk({type:e.type})),n=k({type:new Id(e.fields),nullCount:0,children:t});super(e,n)}},Vh=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Nl.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Tu.NONE}header(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,12);return n?(t||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Nl.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,Tu.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt(`0`))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){let t=e.endObject();return t}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(t,n,r,i,a,o){return e.startMessage(t),e.addVersion(t,n),e.addHeaderType(t,r),e.addHeader(t,i),e.addBodyLength(t,a),e.addCustomMetadata(t,o),e.endMessage(t)}},Hh=class extends w{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return gu.startNull(t),gu.endNull(t)}visitInt(e,t){return eu.startInt(t),eu.addBitWidth(t,e.bitWidth),eu.addIsSigned(t,e.isSigned),eu.endInt(t)}visitFloat(e,t){return uu.startFloatingPoint(t),uu.addPrecision(t,e.precision),uu.endFloatingPoint(t)}visitBinary(e,t){return ru.startBinary(t),ru.endBinary(t)}visitLargeBinary(e,t){return fu.startLargeBinary(t),fu.endLargeBinary(t)}visitBool(e,t){return iu.startBool(t),iu.endBool(t)}visitUtf8(e,t){return xu.startUtf8(t),xu.endUtf8(t)}visitLargeUtf8(e,t){return pu.startLargeUtf8(t),pu.endLargeUtf8(t)}visitDecimal(e,t){return ou.startDecimal(t),ou.addScale(t,e.scale),ou.addPrecision(t,e.precision),ou.addBitWidth(t,e.bitWidth),ou.endDecimal(t)}visitDate(e,t){return au.startDate(t),au.addUnit(t,e.unit),au.endDate(t)}visitTime(e,t){return vu.startTime(t),vu.addUnit(t,e.unit),vu.addBitWidth(t,e.bitWidth),vu.endTime(t)}visitTimestamp(e,t){let n=e.timezone&&t.createString(e.timezone)||void 0;return yu.startTimestamp(t),yu.addUnit(t,e.unit),n!==void 0&&yu.addTimezone(t,n),yu.endTimestamp(t)}visitInterval(e,t){return du.startInterval(t),du.addUnit(t,e.unit),du.endInterval(t)}visitDuration(e,t){return su.startDuration(t),su.addUnit(t,e.unit),su.endDuration(t)}visitList(e,t){return mu.startList(t),mu.endList(t)}visitStruct(e,t){return _u.startStruct_(t),_u.endStruct_(t)}visitUnion(e,t){bu.startTypeIdsVector(t,e.typeIds.length);let n=bu.createTypeIdsVector(t,e.typeIds);return bu.startUnion(t),bu.addMode(t,e.mode),bu.addTypeIds(t,n),bu.endUnion(t)}visitDictionary(e,t){let n=this.visit(e.indices,t);return tu.startDictionaryEncoding(t),tu.addId(t,BigInt(e.id)),tu.addIsOrdered(t,e.isOrdered),n!==void 0&&tu.addIndexType(t,n),tu.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return cu.startFixedSizeBinary(t),cu.addByteWidth(t,e.byteWidth),cu.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return lu.startFixedSizeList(t),lu.addListSize(t,e.listSize),lu.endFixedSizeList(t)}visitMap(e,t){return hu.startMap(t),hu.addKeysSorted(t,e.keysSorted),hu.endMap(t)}};const Uh=new Hh;function Wh(e,t=new Map){return new Rm(qh(e,t),$h(e.metadata),t)}function Gh(e){return new ag(e.count,Yh(e.columns),Xh(e.columns))}function Kh(e){return new og(Gh(e.data),e.id,e.isDelta)}function qh(e,t){return(e.fields||[]).filter(Boolean).map(e=>zm.fromJSON(e,t))}function Jh(e,t){return(e.children||[]).filter(Boolean).map(e=>zm.fromJSON(e,t))}function Yh(e){return(e||[]).reduce((e,t)=>[...e,new cg(t.count,Zh(t.VALIDITY)),...Yh(t.children)],[])}function Xh(e,t=[]){for(let n=-1,r=(e||[]).length;++ne+ +(t===0),0)}function Qh(e,t){let n,r,i,a,o,s;return!t||!(a=e.dictionary)?(o=tg(e,Jh(e,t)),i=new zm(e.name,o,e.nullable,$h(e.metadata))):t.has(n=a.id)?(r=(r=a.indexType)?eg(r):new md,s=new Hd(t.get(n),r,n,a.isOrdered),i=new zm(e.name,s,e.nullable,$h(e.metadata))):(r=(r=a.indexType)?eg(r):new md,t.set(n,o=tg(e,Jh(e,t))),s=new Hd(o,r,n,a.isOrdered),i=new zm(e.name,s,e.nullable,$h(e.metadata))),i||null}function $h(e=[]){return new Map(e.map(({key:e,value:t})=>[e,t]))}function eg(e){return new dd(e.isSigned,e.bitWidth)}function tg(e,t){let n=e.type.name;switch(n){case`NONE`:return new ud;case`null`:return new ud;case`binary`:return new wd;case`largebinary`:return new Td;case`utf8`:return new Ed;case`largeutf8`:return new Dd;case`bool`:return new Od;case`list`:return new Fd((t||[])[0]);case`struct`:return new Id(t||[]);case`struct_`:return new Id(t||[])}switch(n){case`int`:{let t=e.type;return new dd(t.isSigned,t.bitWidth)}case`floatingpoint`:{let t=e.type;return new bd(Fl[t.precision])}case`decimal`:{let t=e.type;return new kd(t.scale,t.precision,t.bitWidth)}case`date`:{let t=e.type;return new Ad(Il[t.unit])}case`time`:{let t=e.type;return new jd(x[t.unit],t.bitWidth)}case`timestamp`:{let t=e.type;return new Md(x[t.unit],t.timezone)}case`interval`:{let t=e.type;return new Nd(Ll[t.unit])}case`duration`:{let t=e.type;return new Pd(x[t.unit])}case`union`:{let n=e.type,[r,...i]=(n.mode+``).toLowerCase(),a=r.toUpperCase()+i.join(``);return new Ld(Pl[a],n.typeIds||[],t||[])}case`fixedsizebinary`:{let t=e.type;return new Rd(t.byteWidth)}case`fixedsizelist`:{let n=e.type;return new zd(n.listSize,(t||[])[0])}case`map`:{let n=e.type;return new Bd((t||[])[0],n.keysSorted)}}throw Error(`Unrecognized type: "${n}"`)}var ng=Wl,rg=Ul,ig=class e{static fromJSON(t,n){let r=new e(0,Nl.V5,n);return r._createHeader=lg(t,n),r}static decode(t){t=new rg(_l(t));let n=Vh.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),a=n.headerType(),o=new e(r,i,a);return o._createHeader=ug(n,a),o}static encode(e){let t=new ng,n=-1;return e.isSchema()?n=Rm.encode(t,e.header()):e.isRecordBatch()?n=ag.encode(t,e.header()):e.isDictionaryBatch()&&(n=og.encode(t,e.header())),Vh.startMessage(t),Vh.addVersion(t,Nl.V5),Vh.addHeader(t,n),Vh.addHeaderType(t,e.headerType),Vh.addBodyLength(t,BigInt(e.bodyLength)),Vh.finishMessageBuffer(t,Vh.endMessage(t)),t.asUint8Array()}static from(t,n=0){if(t instanceof Rm)return new e(0,Nl.V5,Tu.Schema,t);if(t instanceof ag)return new e(n,Nl.V5,Tu.RecordBatch,t);if(t instanceof og)return new e(n,Nl.V5,Tu.DictionaryBatch,t);throw Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===Tu.Schema}isRecordBatch(){return this.headerType===Tu.RecordBatch}isDictionaryBatch(){return this.headerType===Tu.DictionaryBatch}constructor(e,t,n,r){this._version=t,this._headerType=n,this.body=new Uint8Array,r&&(this._createHeader=()=>r),this._bodyLength=Ou(e)}},ag=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,t,n){this._nodes=t,this._buffers=n,this._length=Ou(e)}},og=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t,n=!1){this._data=e,this._isDelta=n,this._id=Ou(t)}},sg=class{constructor(e,t){this.offset=Ou(e),this.length=Ou(t)}},cg=class{constructor(e,t){this.length=Ou(e),this.nullCount=Ou(t)}};function lg(e,t){return(()=>{switch(t){case Tu.Schema:return Rm.fromJSON(e);case Tu.RecordBatch:return ag.fromJSON(e);case Tu.DictionaryBatch:return og.fromJSON(e)}throw Error(`Unrecognized Message type: { name: ${Tu[t]}, type: ${t} }`)})}function ug(e,t){return(()=>{switch(t){case Tu.Schema:return Rm.decode(e.header(new wu),new Map,e.version());case Tu.RecordBatch:return ag.decode(e.header(new Xl),e.version());case Tu.DictionaryBatch:return og.decode(e.header(new Zl),e.version())}throw Error(`Unrecognized Message type: { name: ${Tu[t]}, type: ${t} }`)})}zm.encode=Tg,zm.decode=bg,zm.fromJSON=Qh,Rm.encode=wg,Rm.decode=dg,Rm.fromJSON=Wh,ag.encode=Eg,ag.decode=fg,ag.fromJSON=Gh,og.encode=Dg,og.decode=pg,og.fromJSON=Kh,cg.encode=Og,cg.decode=hg,sg.encode=kg,sg.decode=mg;function dg(e,t=new Map,n=Nl.V5){let r=vg(e,t);return new Rm(r,xg(e),t,n)}function fg(e,t=Nl.V5){if(e.compression()!==null)throw Error(`Record batch compression not implemented`);return new ag(e.length(),gg(e),_g(e,t))}function pg(e,t=Nl.V5){return new og(ag.decode(e.data(),t),e.id(),e.isDelta())}function mg(e){return new sg(e.offset(),e.length())}function hg(e){return new cg(e.length(),e.nullCount())}function gg(e){let t=[];for(let n,r=-1,i=-1,a=e.nodesLength();++rzm.encode(e,t));wu.startFieldsVector(e,n.length);let r=wu.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?wu.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return nu.startKeyValue(e),nu.addKey(e,r),nu.addValue(e,i),nu.endKeyValue(e)})):-1;return wu.startSchema(e),wu.addFields(e,r),wu.addEndianness(e,Ag?Ql.Little:Ql.Big),i!==-1&&wu.addCustomMetadata(e,i),wu.endSchema(e)}function Tg(e,t){let n=-1,r=-1,i=-1,a=t.type,o=t.typeId;C.isDictionary(a)?(o=a.dictionary.typeId,i=Uh.visit(a,e),r=Uh.visit(a.dictionary,e)):r=Uh.visit(a,e);let s=(a.children||[]).map(t=>zm.encode(e,t)),c=Cu.createChildrenVector(e,s),l=t.metadata&&t.metadata.size>0?Cu.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return nu.startKeyValue(e),nu.addKey(e,r),nu.addValue(e,i),nu.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),Cu.startField(e),Cu.addType(e,r),Cu.addTypeType(e,o),Cu.addChildren(e,c),Cu.addNullable(e,!!t.nullable),n!==-1&&Cu.addName(e,n),i!==-1&&Cu.addDictionary(e,i),l!==-1&&Cu.addCustomMetadata(e,l),Cu.endField(e)}function Eg(e,t){let n=t.nodes||[],r=t.buffers||[];Xl.startNodesVector(e,n.length);for(let t of n.slice().reverse())cg.encode(e,t);let i=e.endVector();Xl.startBuffersVector(e,r.length);for(let t of r.slice().reverse())sg.encode(e,t);let a=e.endVector();return Xl.startRecordBatch(e),Xl.addLength(e,BigInt(t.length)),Xl.addNodes(e,i),Xl.addBuffers(e,a),Xl.endRecordBatch(e)}function Dg(e,t){let n=ag.encode(e,t.data);return Zl.startDictionaryBatch(e),Zl.addId(e,BigInt(t.id)),Zl.addIsDelta(e,t.isDelta),Zl.addData(e,n),Zl.endDictionaryBatch(e)}function Og(e,t){return Yl.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))}function kg(e,t){return Jl.createBuffer(e,BigInt(t.offset),BigInt(t.length))}const Ag=(()=>{let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256})(),jg=e=>`Expected ${Tu[e]} Message in stream, but was null or length 0.`,Mg=e=>`Header pointer of flatbuffer-encoded ${Tu[e]} Message is null or length 0.`,Ng=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,Pg=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;var Fg=class{constructor(e){this.source=e instanceof Qm?e:new Qm(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?qm:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(jg(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array;let t=_l(this.source.read(e));if(t.byteLength[...e,...n.VALIDITY&&[n.VALIDITY]||[],...n.TYPE_ID&&[n.TYPE_ID]||[],...n.OFFSET&&[n.OFFSET]||[],...n.DATA&&[n.DATA]||[],...t(n.children)],[])}}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(jg(e));return t.value}readSchema(){let e=Tu.Schema,t=this.readMessage(e),n=t?.header();if(!t||!n)throw Error(Mg(e));return n}};const Rg=4,zg=new Uint8Array(6);for(let e=0;e<6;e+=1)zg[e]=`ARROW1`.codePointAt(e);function Bg(e,t=0){for(let n=-1,r=zg.length;++nthis):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return Tl.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Tl.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw Error(`"throughNode" not available in this environment`)}static throughDOM(e,t){throw Error(`"throughDOM" not available in this environment`)}static from(t){return t instanceof e?t:el(t)?i_(t):nl(t)?s_(t):Zc(t)?(()=>y(this,void 0,void 0,function*(){return yield e.from(yield t)}))():rl(t)||ol(t)||cl(t)||$c(t)?o_(new $m(t)):a_(new Qm(t))}static readAll(t){return t instanceof e?t.isSync()?n_(t):r_(t):el(t)||ArrayBuffer.isView(t)||Qc(t)||tl(t)?n_(t):r_(t)}},Gg=class extends Wg{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Bc(this,arguments,function*(){yield b(yield*Vc(Hc(this[Symbol.iterator]())))})}},Kg=class extends Wg{constructor(e){super(e),this._impl=e}readAll(){return y(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=Hc(this),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}[Symbol.iterator](){throw Error(`AsyncRecordBatchStreamReader is not Iterable`)}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},qg=class extends Gg{constructor(e){super(e),this._impl=e}},Jg=class extends Kg{constructor(e){super(e),this._impl=e}},Yg=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){let n=this._loadVectors(e,t,this.schema.fields),r=k({type:new Id(this.schema.fields),length:e.length,children:n});return new Lh(this.schema,r)}_loadDictionaryBatch(e,t){let{id:n,isDelta:r}=e,{dictionaries:i,schema:a}=this,o=i.get(n),s=a.dictionaries.get(n),c=this._loadVectors(e.data,t,[s]);return(o&&r?o.concat(new Pm(c)):new Pm(c)).memoize()}_loadVectors(e,t,n){return new uh(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}},Xg=class extends Yg{constructor(e,t){super(t),this._reader=el(e)?new Lg(this._handle=e):new Fg(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=t_(this,e),(this.schema||=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):qm}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):qm}next(){if(this.closed)return qm;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let n=e.header(),r=t.readMessageBody(e.bodyLength),i=this._loadRecordBatch(n,r);return{done:!1,value:i}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let n=e.header(),r=t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Bh(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Zg=class extends Yg{constructor(e,t){super(t),this._reader=new Ig(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return y(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return y(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=t_(this,e),(this.schema||=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return y(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):qm})}return(e){return y(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):qm})}next(){return y(this,void 0,void 0,function*(){if(this.closed)return qm;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let n=e.header(),r=yield t.readMessageBody(e.bodyLength),i=this._loadRecordBatch(n,r);return{done:!1,value:i}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let n=e.header(),r=yield t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Bh(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return y(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},Qg=class extends Xg{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof nh?e:new nh(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();let n=(t=this._footer)?.getRecordBatch(e);if(n&&this._handle.seek(n.offset)){let e=this._reader.readMessage(Tu.RecordBatch);if(e?.isRecordBatch()){let t=e.header(),n=this._reader.readMessageBody(e.bodyLength),r=this._loadRecordBatch(t,n);return r}}return null}_readDictionaryBatch(e){var t;let n=(t=this._footer)?.getDictionaryBatch(e);if(n&&this._handle.seek(n.offset)){let e=this._reader.readMessage(Tu.DictionaryBatch);if(e?.isDictionaryBatch()){let t=e.header(),n=this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}}_readFooter(){let{_handle:e}=this,t=e.size-Hg,n=e.readInt32(t),r=e.readAt(t-n,n);return Wm.decode(r)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return y(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){return y(this,void 0,void 0,function*(){var t;if(this.closed)return null;this._footer||(yield this.open());let n=(t=this._footer)?.getRecordBatch(e);if(n&&(yield this._handle.seek(n.offset))){let e=yield this._reader.readMessage(Tu.RecordBatch);if(e?.isRecordBatch()){let t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength),r=this._loadRecordBatch(t,n);return r}}return null})}_readDictionaryBatch(e){return y(this,void 0,void 0,function*(){var t;let n=(t=this._footer)?.getDictionaryBatch(e);if(n&&(yield this._handle.seek(n.offset))){let e=yield this._reader.readMessage(Tu.DictionaryBatch);if(e?.isDictionaryBatch()){let t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}})}_readFooter(){return y(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-Hg,n=yield e.readInt32(t),r=yield e.readAt(t-n,n);return Wm.decode(r)})}_readNextMessageAndValidate(e){return y(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?Bg(t)?new qg(new Qg(e.read())):new Gg(new Xg(e)):new Gg(new Xg(function*(){}()))}function o_(e){return y(this,void 0,void 0,function*(){let t=yield e.peek(Vg+7&-8);return t&&t.byteLength>=4?Bg(t)?new qg(new Qg(yield e.read())):new Kg(new Zg(e)):new Kg(new Zg(function(){return Bc(this,arguments,function*(){})}()))})}function s_(e){return y(this,void 0,void 0,function*(){let{size:t}=yield e.stat(),n=new rh(e,t);return t>=Ug&&Bg(yield n.readAt(0,Vg+7&-8))?new Jg(new $g(n)):new Kg(new Zg(n))})}var c_=class e extends w{static assemble(...t){let n=e=>e.flatMap(e=>Array.isArray(e)?n(e):e instanceof Lh?e.data.children:e.data),r=new e;return r.visitMany(n(t)),r}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(e){if(e instanceof Pm)return this.visitMany(e.data),this;let{type:t}=e;if(!C.isDictionary(t)){let{length:n}=e;if(n>2147483647)throw RangeError(`Cannot write arrays larger than 2^31 - 1 in length`);if(C.isUnion(t))this.nodes.push(new cg(n,0));else{let{nullCount:r}=e;C.isNull(t)||l_.call(this,r<=0?new Uint8Array:om(e.offset,n,e.nullBitmap)),this.nodes.push(new cg(n,r))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function l_(e){let t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new sg(this._byteLength,t)),this._byteLength+=t,this}function u_(e){var t;let{type:n,length:r,typeIds:i,valueOffsets:a}=e;if(l_.call(this,i),n.mode===Pl.Sparse)return h_.call(this,e);if(n.mode===Pl.Dense){if(e.offset<=0)return l_.call(this,a),h_.call(this,e);{let o=new Int32Array(r),s=Object.create(null),c=Object.create(null);for(let e,n,l=-1;++l{let i=n.typeIds[t],a=s[i],o=c[i];return e.slice(a,Math.min(r,o))}))}}return this}function d_(e){let t;return e.nullCount>=e.length?l_.call(this,new Uint8Array):(t=e.values)instanceof Uint8Array?l_.call(this,om(e.offset,e.length,t)):l_.call(this,sm(e.values))}function f_(e){return l_.call(this,e.values.subarray(0,e.length*e.stride))}function p_(e){let{length:t,values:n,valueOffsets:r}=e,i=Ou(r[0]),a=Ou(r[t]),o=Math.min(a-i,n.byteLength-i);return l_.call(this,Cl(-i,t+1,r)),l_.call(this,n.subarray(i,i+o)),this}function m_(e){let{length:t,valueOffsets:n}=e;if(n){let{0:r,[t]:i}=n;return l_.call(this,Cl(-r,t+1,n)),this.visit(e.children[0].slice(r,i-r))}return this.visit(e.children[0])}function h_(e){return this.visitMany(e.type.children.map((t,n)=>e.children[n]).filter(Boolean))[0]}c_.prototype.visitBool=d_,c_.prototype.visitInt=f_,c_.prototype.visitFloat=f_,c_.prototype.visitUtf8=p_,c_.prototype.visitLargeUtf8=p_,c_.prototype.visitBinary=p_,c_.prototype.visitLargeBinary=p_,c_.prototype.visitFixedSizeBinary=f_,c_.prototype.visitDate=f_,c_.prototype.visitTimestamp=f_,c_.prototype.visitTime=f_,c_.prototype.visitDecimal=f_,c_.prototype.visitList=m_,c_.prototype.visitStruct=h_,c_.prototype.visitUnion=u_,c_.prototype.visitInterval=f_,c_.prototype.visitDuration=f_,c_.prototype.visitFixedSizeList=m_,c_.prototype.visitMap=m_;var g_=class extends Ym{static throughNode(e){throw Error(`"throughNode" not available in this environment`)}static throughDOM(e,t){throw Error(`"throughDOM" not available in this environment`)}constructor(e){super(),this._position=0,this._started=!1,this._sink=new Zm,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,Xc(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof e.autoDestroy==`boolean`?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat==`boolean`?e.writeLegacyIpcFormat:!1}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return Zc(e)?e.then(e=>this.writeAll(e)):$c(e)?b_(this,e):y_(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,t=null){return e===this._sink||e instanceof Zm?this._sink=e:(this._sink=new Zm,e&&al(e)?this.toDOMStream({type:`bytes`}).pipeTo(e):e&&sl(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!t||!Ah(t,this._schema))&&(t==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=t,this._writeSchema(t))),this}write(e){let t=null;if(this._sink){if(e==null||e instanceof Fh&&!(t=e.schema)||e instanceof Lh&&!(t=e.schema))return this.finish()&&void 0}else throw Error(`RecordBatchWriter is closed`);if(t&&!Ah(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof Lh?e instanceof Bh||this._writeRecordBatch(e):e instanceof Fh?this.writeAll(e.batches):Qc(e)&&this.writeAll(e)}_writeMessage(e,t=8){let n=t-1,r=ig.encode(e),i=r.byteLength,a=this._writeLegacyIpcFormat?4:8,o=i+a+n&~n,s=o-i-a;return e.headerType===Tu.RecordBatch?this._recordBatchBlocks.push(new Km(o,e.bodyLength,this._position)):e.headerType===Tu.DictionaryBatch&&this._dictionaryBlocks.push(new Km(o,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(o-a)),i>0&&this._write(r),this._writePadding(s)}_write(e){if(this._started){let t=_l(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(ig.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(zg)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:t,nodes:n,bufferRegions:r,buffers:i}=c_.assemble(e),a=new ag(e.numRows,n,r),o=ig.from(a,t);return this._writeDictionaries(e)._writeMessage(o)._writeBodyBuffers(i)}_writeDictionaryBatch(e,t,n=!1){let{byteLength:r,nodes:i,bufferRegions:a,buffers:o}=c_.assemble(new Pm([e])),s=new ag(e.length,i,a),c=new og(s,t,n),l=ig.from(c,r);return this._writeMessage(l)._writeBodyBuffers(o)}_writeBodyBuffers(e){let t,n,r;for(let i=-1,a=e.length;++i0&&(this._write(t),(r=(n+7&-8)-n)>0&&this._writePadding(r));return this}_writeDictionaries(e){var t,n;for(let[r,i]of e.dictionaries){let e=(t=i?.data)??[],a=this._seenDictionaries.get(r),o=(n=this._dictionaryDeltaOffsets.get(r))??0;if(!a||a.data[0]!==e[0])for(let[t,n]of e.entries())this._writeDictionaryBatch(n,r,t>0);else if(or.writeAll(e)):$c(t)?b_(r,t):y_(r,t)}},v_=class e extends g_{static writeAll(t){let n=new e;return Zc(t)?t.then(e=>n.writeAll(e)):$c(t)?b_(n,t):y_(n,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,t,n=!1){if(!n&&this._seenDictionaries.has(t))throw Error(`The Arrow File format does not support replacement dictionaries. `);return super._writeDictionaryBatch(e,t,n)}_writeFooter(e){let t=Wm.encode(new Wm(e,Nl.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}};function y_(e,t){let n=t;t instanceof Fh&&(n=t.batches,e.reset(void 0,t.schema));for(let t of n)e.write(t);return e.finish()}function b_(e,t){return y(this,void 0,void 0,function*(){var n,r,i,a,o,s,c;try{for(n=!0,r=Hc(t);i=yield r.next(),a=i.done,!a;n=!0){c=i.value,n=!1;let t=c;e.write(t)}}catch(e){o={error:e}}finally{try{!n&&!a&&(s=r.return)&&(yield s.call(r))}finally{if(o)throw o.error}}return e.finish()})}function x_(e,t=`stream`){return(t===`stream`?__:v_).writeAll(e).toUint8Array(!0)}var S_=Object.create,C_=Object.defineProperty,w_=Object.getOwnPropertyDescriptor,T_=Object.getOwnPropertyNames,E_=Object.getPrototypeOf,D_=Object.prototype.hasOwnProperty,O_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),k_=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of T_(t))!D_.call(e,i)&&i!==n&&C_(e,i,{get:()=>t[i],enumerable:!(r=w_(t,i))||r.enumerable});return e},A_=(e,t,n)=>(n=e==null?{}:S_(E_(e)),k_(t||!e||!e.__esModule?C_(n,`default`,{value:e,enumerable:!0}):n,e)),j_=O_((e,t)=>{t.exports=Worker}),M_=(e=>(e[e.UNDEFINED=0]=`UNDEFINED`,e[e.AUTOMATIC=1]=`AUTOMATIC`,e[e.READ_ONLY=2]=`READ_ONLY`,e[e.READ_WRITE=3]=`READ_WRITE`,e))(M_||{}),N_=(e=>(e[e.IDENTIFIER=0]=`IDENTIFIER`,e[e.NUMERIC_CONSTANT=1]=`NUMERIC_CONSTANT`,e[e.STRING_CONSTANT=2]=`STRING_CONSTANT`,e[e.OPERATOR=3]=`OPERATOR`,e[e.KEYWORD=4]=`KEYWORD`,e[e.COMMENT=5]=`COMMENT`,e))(N_||{}),P_=(e=>(e[e.NONE=0]=`NONE`,e[e.DEBUG=1]=`DEBUG`,e[e.INFO=2]=`INFO`,e[e.WARNING=3]=`WARNING`,e[e.ERROR=4]=`ERROR`,e))(P_||{}),F_=(e=>(e[e.NONE=0]=`NONE`,e[e.CONNECT=1]=`CONNECT`,e[e.DISCONNECT=2]=`DISCONNECT`,e[e.OPEN=3]=`OPEN`,e[e.QUERY=4]=`QUERY`,e[e.INSTANTIATE=5]=`INSTANTIATE`,e))(F_||{}),I_=(e=>(e[e.NONE=0]=`NONE`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`,e[e.START=3]=`START`,e[e.RUN=4]=`RUN`,e[e.CAPTURE=5]=`CAPTURE`,e))(I_||{}),L_=(e=>(e[e.NONE=0]=`NONE`,e[e.WEB_WORKER=1]=`WEB_WORKER`,e[e.NODE_WORKER=2]=`NODE_WORKER`,e[e.BINDINGS=3]=`BINDINGS`,e[e.ASYNC_DUCKDB=4]=`ASYNC_DUCKDB`,e))(L_||{}),R_=class{log(e){}},z_=class{constructor(e=2){this.level=e}log(e){e.level>=this.level&&console.log(e)}},B_=(e=>(e[e.SUCCESS=0]=`SUCCESS`,e))(B_||{}),V_=class{constructor(e,t){this._bindings=e,this._conn=t}get bindings(){return this._bindings}async close(){return this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}async query(e){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:e});let t=await this._bindings.runQuery(this._conn,e),n=Wg.from(t);return console.assert(n.isSync(),`Reader is not sync`),console.assert(n.isFile(),`Reader is not file`),new Fh(n)}async send(e,t=!1){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:e});let n=await this._bindings.startPendingQuery(this._conn,e,t);for(;n==null;)n=await this._bindings.pollPendingQuery(this._conn);let r=new H_(this._bindings,this._conn,n),i=await Wg.from(r);return console.assert(i.isAsync()),console.assert(i.isStream()),i}async cancelSent(){return await this._bindings.cancelPendingQuery(this._conn)}async getTableNames(e){return await this._bindings.getTableNames(this._conn,e)}async prepare(e){let t=await this._bindings.createPrepared(this._conn,e);return new U_(this._bindings,this._conn,t)}async insertArrowTable(e,t){let n=x_(e,`stream`);await this.insertArrowFromIPCStream(n,t)}async insertArrowFromIPCStream(e,t){await this._bindings.insertArrowFromIPCStream(this._conn,e,t)}async insertCSVFromPath(e,t){await this._bindings.insertCSVFromPath(this._conn,e,t)}async insertJSONFromPath(e,t){await this._bindings.insertJSONFromPath(this._conn,e,t)}},H_=class{constructor(e,t,n){this.db=e,this.conn=t,this.header=n,this._first=!0,this._depleted=!1,this._inFlight=null}async next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e;return this._inFlight==null?e=await this.db.fetchQueryResults(this.conn):(e=await this._inFlight,this._inFlight=null),this._depleted=e.length==0,this._depleted||(this._inFlight=this.db.fetchQueryResults(this.conn)),{done:this._depleted,value:e}}[Symbol.asyncIterator](){return this}},U_=class{constructor(e,t,n){this.bindings=e,this.connectionId=t,this.statementId=n}async close(){await this.bindings.closePrepared(this.connectionId,this.statementId)}async query(...e){let t=await this.bindings.runPrepared(this.connectionId,this.statementId,e),n=Wg.from(t);return console.assert(n.isSync()),console.assert(n.isFile()),new Fh(n)}async send(...e){let t=await this.bindings.sendPrepared(this.connectionId,this.statementId,e),n=new H_(this.bindings,this.connectionId,t),r=await Wg.from(n);return console.assert(r.isAsync()),console.assert(r.isStream()),r}},W_=(e=>(e.CANCEL_PENDING_QUERY=`CANCEL_PENDING_QUERY`,e.CLOSE_PREPARED=`CLOSE_PREPARED`,e.COLLECT_FILE_STATISTICS=`COLLECT_FILE_STATISTICS`,e.REGISTER_OPFS_FILE_NAME=`REGISTER_OPFS_FILE_NAME`,e.CONNECT=`CONNECT`,e.COPY_FILE_TO_BUFFER=`COPY_FILE_TO_BUFFER`,e.COPY_FILE_TO_PATH=`COPY_FILE_TO_PATH`,e.CREATE_PREPARED=`CREATE_PREPARED`,e.DISCONNECT=`DISCONNECT`,e.DROP_FILE=`DROP_FILE`,e.DROP_FILES=`DROP_FILES`,e.EXPORT_FILE_STATISTICS=`EXPORT_FILE_STATISTICS`,e.FETCH_QUERY_RESULTS=`FETCH_QUERY_RESULTS`,e.FLUSH_FILES=`FLUSH_FILES`,e.GET_FEATURE_FLAGS=`GET_FEATURE_FLAGS`,e.GET_TABLE_NAMES=`GET_TABLE_NAMES`,e.GET_VERSION=`GET_VERSION`,e.GLOB_FILE_INFOS=`GLOB_FILE_INFOS`,e.INSERT_ARROW_FROM_IPC_STREAM=`INSERT_ARROW_FROM_IPC_STREAM`,e.INSERT_CSV_FROM_PATH=`IMPORT_CSV_FROM_PATH`,e.INSERT_JSON_FROM_PATH=`IMPORT_JSON_FROM_PATH`,e.INSTANTIATE=`INSTANTIATE`,e.OPEN=`OPEN`,e.PING=`PING`,e.POLL_PENDING_QUERY=`POLL_PENDING_QUERY`,e.REGISTER_FILE_BUFFER=`REGISTER_FILE_BUFFER`,e.REGISTER_FILE_HANDLE=`REGISTER_FILE_HANDLE`,e.REGISTER_FILE_URL=`REGISTER_FILE_URL`,e.RESET=`RESET`,e.RUN_PREPARED=`RUN_PREPARED`,e.RUN_QUERY=`RUN_QUERY`,e.SEND_PREPARED=`SEND_PREPARED`,e.START_PENDING_QUERY=`START_PENDING_QUERY`,e.TOKENIZE=`TOKENIZE`,e))(W_||{}),G_=(e=>(e.CONNECTION_INFO=`CONNECTION_INFO`,e.ERROR=`ERROR`,e.FEATURE_FLAGS=`FEATURE_FLAGS`,e.FILE_BUFFER=`FILE_BUFFER`,e.FILE_INFOS=`FILE_INFOS`,e.FILE_SIZE=`FILE_SIZE`,e.FILE_STATISTICS=`FILE_STATISTICS`,e.INSTANTIATE_PROGRESS=`INSTANTIATE_PROGRESS`,e.LOG=`LOG`,e.OK=`OK`,e.PREPARED_STATEMENT_ID=`PREPARED_STATEMENT_ID`,e.QUERY_PLAN=`QUERY_PLAN`,e.QUERY_RESULT=`QUERY_RESULT`,e.QUERY_RESULT_CHUNK=`QUERY_RESULT_CHUNK`,e.QUERY_RESULT_HEADER=`QUERY_RESULT_HEADER`,e.QUERY_RESULT_HEADER_OR_NULL=`QUERY_RESULT_HEADER_OR_NULL`,e.REGISTERED_FILE=`REGISTERED_FILE`,e.SCRIPT_TOKENS=`SCRIPT_TOKENS`,e.SUCCESS=`SUCCESS`,e.TABLE_NAMES=`TABLE_NAMES`,e.VERSION_STRING=`VERSION_STRING`,e))(G_||{}),K_=class{constructor(e,t){this.promiseResolver=()=>{},this.promiseRejecter=()=>{},this.type=e,this.data=t,this.promise=new Promise((e,t)=>{this.promiseResolver=e,this.promiseRejecter=t})}};function q_(e){switch(e.typeId){case S.Binary:return{sqlType:`binary`};case S.Bool:return{sqlType:`bool`};case S.Date:return{sqlType:`date`};case S.DateDay:return{sqlType:`date32[d]`};case S.DateMillisecond:return{sqlType:`date64[ms]`};case S.Decimal:{let t=e;return{sqlType:`decimal`,precision:t.precision,scale:t.scale}}case S.Float:return{sqlType:`float`};case S.Float16:return{sqlType:`float16`};case S.Float32:return{sqlType:`float32`};case S.Float64:return{sqlType:`float64`};case S.Int:return{sqlType:`int32`};case S.Int16:return{sqlType:`int16`};case S.Int32:return{sqlType:`int32`};case S.Int64:return{sqlType:`int64`};case S.Uint16:return{sqlType:`uint16`};case S.Uint32:return{sqlType:`uint32`};case S.Uint64:return{sqlType:`uint64`};case S.Uint8:return{sqlType:`uint8`};case S.IntervalDayTime:return{sqlType:`interval[dt]`};case S.IntervalYearMonth:return{sqlType:`interval[m]`};case S.List:return{sqlType:`list`,valueType:q_(e.valueType)};case S.FixedSizeBinary:return{sqlType:`fixedsizebinary`,byteWidth:e.byteWidth};case S.Null:return{sqlType:`null`};case S.Utf8:return{sqlType:`utf8`};case S.Struct:return{sqlType:`struct`,fields:e.children.map(e=>J_(e.name,e.type))};case S.Map:{let t=e;return{sqlType:`map`,keyType:q_(t.keyType),valueType:q_(t.valueType)}}case S.Time:return{sqlType:`time[s]`};case S.TimeMicrosecond:return{sqlType:`time[us]`};case S.TimeMillisecond:return{sqlType:`time[ms]`};case S.TimeNanosecond:return{sqlType:`time[ns]`};case S.TimeSecond:return{sqlType:`time[s]`};case S.Timestamp:return{sqlType:`timestamp`,timezone:e.timezone||void 0};case S.TimestampSecond:return{sqlType:`timestamp[s]`,timezone:e.timezone||void 0};case S.TimestampMicrosecond:return{sqlType:`timestamp[us]`,timezone:e.timezone||void 0};case S.TimestampNanosecond:return{sqlType:`timestamp[ns]`,timezone:e.timezone||void 0};case S.TimestampMillisecond:return{sqlType:`timestamp[ms]`,timezone:e.timezone||void 0}}throw Error(`unsupported arrow type: ${e.toString()}`)}function J_(e,t){let n=q_(t);return n.name=e,n}var Y_=new TextEncoder,X_=class{constructor(e,t=null){this._onInstantiationProgress=[],this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{},this._nextMessageId=0,this._pendingRequests=new Map,this._logger=e,this._onMessageHandler=this.onMessage.bind(this),this._onErrorHandler=this.onError.bind(this),this._onCloseHandler=this.onClose.bind(this),t!=null&&this.attach(t)}get logger(){return this._logger}attach(e){this._worker=e,this._worker.addEventListener(`message`,this._onMessageHandler),this._worker.addEventListener(`error`,this._onErrorHandler),this._worker.addEventListener(`close`,this._onCloseHandler),this._workerShutdownPromise=new Promise((e,t)=>{this._workerShutdownResolver=e})}detach(){this._worker&&(this._worker.removeEventListener(`message`,this._onMessageHandler),this._worker.removeEventListener(`error`,this._onErrorHandler),this._worker.removeEventListener(`close`,this._onCloseHandler),this._worker=null,this._workerShutdownResolver(null),this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async terminate(){this._worker&&(this._worker.terminate(),this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async postTask(e,t=[]){if(!this._worker){console.error(`cannot send a message since the worker is not set!`);return}let n=this._nextMessageId++;return this._pendingRequests.set(n,e),this._worker.postMessage({messageId:n,type:e.type,data:e.data},t),await e.promise}onMessage(e){var t;let n=e.data;switch(n.type){case`LOG`:this._logger.log(n.data);return;case`INSTANTIATE_PROGRESS`:for(let e of this._onInstantiationProgress)e(n.data);return}let r=this._pendingRequests.get(n.requestId);if(!r){console.warn(`unassociated response: [${n.requestId}, ${n.type.toString()}]`);return}if(this._pendingRequests.delete(n.requestId),n.type==`ERROR`){let e=Error(n.data.message);e.name=n.data.name,(t=Object.getOwnPropertyDescriptor(e,`stack`))!=null&&t.writable&&(e.stack=n.data.stack),r.promiseRejecter(e);return}switch(r.type){case`CLOSE_PREPARED`:case`COLLECT_FILE_STATISTICS`:case`REGISTER_OPFS_FILE_NAME`:case`COPY_FILE_TO_PATH`:case`DISCONNECT`:case`DROP_FILE`:case`DROP_FILES`:case`FLUSH_FILES`:case`INSERT_ARROW_FROM_IPC_STREAM`:case`IMPORT_CSV_FROM_PATH`:case`IMPORT_JSON_FROM_PATH`:case`OPEN`:case`PING`:case`REGISTER_FILE_BUFFER`:case`REGISTER_FILE_HANDLE`:case`REGISTER_FILE_URL`:case`RESET`:if(n.type==`OK`){r.promiseResolver(n.data);return}break;case`INSTANTIATE`:if(this._onInstantiationProgress=[],n.type==`OK`){r.promiseResolver(n.data);return}break;case`GLOB_FILE_INFOS`:if(n.type==`FILE_INFOS`){r.promiseResolver(n.data);return}break;case`GET_VERSION`:if(n.type==`VERSION_STRING`){r.promiseResolver(n.data);return}break;case`GET_FEATURE_FLAGS`:if(n.type==`FEATURE_FLAGS`){r.promiseResolver(n.data);return}break;case`GET_TABLE_NAMES`:if(n.type==`TABLE_NAMES`){r.promiseResolver(n.data);return}break;case`TOKENIZE`:if(n.type==`SCRIPT_TOKENS`){r.promiseResolver(n.data);return}break;case`COPY_FILE_TO_BUFFER`:if(n.type==`FILE_BUFFER`){r.promiseResolver(n.data);return}break;case`EXPORT_FILE_STATISTICS`:if(n.type==`FILE_STATISTICS`){r.promiseResolver(n.data);return}break;case`CONNECT`:if(n.type==`CONNECTION_INFO`){r.promiseResolver(n.data);return}break;case`RUN_PREPARED`:case`RUN_QUERY`:if(n.type==`QUERY_RESULT`){r.promiseResolver(n.data);return}break;case`SEND_PREPARED`:if(n.type==`QUERY_RESULT_HEADER`){r.promiseResolver(n.data);return}break;case`START_PENDING_QUERY`:if(n.type==`QUERY_RESULT_HEADER_OR_NULL`){r.promiseResolver(n.data);return}break;case`POLL_PENDING_QUERY`:if(n.type==`QUERY_RESULT_HEADER_OR_NULL`){r.promiseResolver(n.data);return}break;case`CANCEL_PENDING_QUERY`:if(this._onInstantiationProgress=[],n.type==`SUCCESS`){r.promiseResolver(n.data);return}break;case`FETCH_QUERY_RESULTS`:if(n.type==`QUERY_RESULT_CHUNK`){r.promiseResolver(n.data);return}break;case`CREATE_PREPARED`:if(n.type==`PREPARED_STATEMENT_ID`){r.promiseResolver(n.data);return}break}r.promiseRejecter(Error(`unexpected response type: ${n.type.toString()}`))}onError(e){console.error(e),console.error(`error in duckdb worker: ${e.message}`),this._pendingRequests.clear()}onClose(){if(this._workerShutdownResolver(null),this._pendingRequests.size!=0){console.warn(`worker terminated with ${this._pendingRequests.size} pending requests`);return}this._pendingRequests.clear()}async reset(){let e=new K_(`RESET`,null);return await this.postTask(e)}async ping(){let e=new K_(`PING`,null);await this.postTask(e)}async dropFile(e){let t=new K_(`DROP_FILE`,e);return await this.postTask(t)}async dropFiles(){let e=new K_(`DROP_FILES`,null);return await this.postTask(e)}async flushFiles(){let e=new K_(`FLUSH_FILES`,null);return await this.postTask(e)}async instantiate(e,t=null,n=e=>{}){this._onInstantiationProgress.push(n);let r=new K_(`INSTANTIATE`,[e,t]);return await this.postTask(r)}async getVersion(){let e=new K_(`GET_VERSION`,null);return await this.postTask(e)}async getFeatureFlags(){let e=new K_(`GET_FEATURE_FLAGS`,null);return await this.postTask(e)}async open(e){let t=new K_(`OPEN`,e);await this.postTask(t)}async tokenize(e){let t=new K_(`TOKENIZE`,e);return await this.postTask(t)}async connectInternal(){let e=new K_(`CONNECT`,null);return await this.postTask(e)}async connect(){let e=await this.connectInternal();return new V_(this,e)}async disconnect(e){let t=new K_(`DISCONNECT`,e);await this.postTask(t)}async runQuery(e,t){let n=new K_(`RUN_QUERY`,[e,t]);return await this.postTask(n)}async startPendingQuery(e,t,n=!1){let r=new K_(`START_PENDING_QUERY`,[e,t,n]);return await this.postTask(r)}async pollPendingQuery(e){let t=new K_(`POLL_PENDING_QUERY`,e);return await this.postTask(t)}async cancelPendingQuery(e){let t=new K_(`CANCEL_PENDING_QUERY`,e);return await this.postTask(t)}async fetchQueryResults(e){let t=new K_(`FETCH_QUERY_RESULTS`,e);return await this.postTask(t)}async getTableNames(e,t){let n=new K_(`GET_TABLE_NAMES`,[e,t]);return await this.postTask(n)}async createPrepared(e,t){let n=new K_(`CREATE_PREPARED`,[e,t]);return await this.postTask(n)}async closePrepared(e,t){let n=new K_(`CLOSE_PREPARED`,[e,t]);await this.postTask(n)}async runPrepared(e,t,n){let r=new K_(`RUN_PREPARED`,[e,t,n]);return await this.postTask(r)}async sendPrepared(e,t,n){let r=new K_(`SEND_PREPARED`,[e,t,n]);return await this.postTask(r)}async globFiles(e){let t=new K_(`GLOB_FILE_INFOS`,e);return await this.postTask(t)}async registerFileText(e,t){let n=Y_.encode(t);await this.registerFileBuffer(e,n)}async registerFileURL(e,t,n,r){t===void 0&&(t=e);let i=new K_(`REGISTER_FILE_URL`,[e,t,n,r]);await this.postTask(i)}async registerEmptyFileBuffer(e){}async registerFileBuffer(e,t){let n=new K_(`REGISTER_FILE_BUFFER`,[e,t]);await this.postTask(n,[t.buffer])}async registerFileHandle(e,t,n,r){let i=new K_(`REGISTER_FILE_HANDLE`,[e,t,n,r]);await this.postTask(i,[])}async registerOPFSFileName(e){let t=new K_(`REGISTER_OPFS_FILE_NAME`,[e]);await this.postTask(t,[])}async collectFileStatistics(e,t){let n=new K_(`COLLECT_FILE_STATISTICS`,[e,t]);await this.postTask(n,[])}async exportFileStatistics(e){let t=new K_(`EXPORT_FILE_STATISTICS`,e);return await this.postTask(t,[])}async copyFileToBuffer(e){let t=new K_(`COPY_FILE_TO_BUFFER`,e);return await this.postTask(t)}async copyFileToPath(e,t){let n=new K_(`COPY_FILE_TO_PATH`,[e,t]);await this.postTask(n)}async insertArrowFromIPCStream(e,t,n){if(t.length==0)return;let r=new K_(`INSERT_ARROW_FROM_IPC_STREAM`,[e,t,n]);await this.postTask(r,[t.buffer])}async insertCSVFromPath(e,t,n){if(n.columns!==void 0){let e=[];for(let t in n.columns){let r=n.columns[t];e.push(J_(t,r))}n.columnsFlat=e,delete n.columns}let r=new K_(`IMPORT_CSV_FROM_PATH`,[e,t,n]);await this.postTask(r)}async insertJSONFromPath(e,t,n){if(n.columns!==void 0){let e=[];for(let t in n.columns){let r=n.columns[t];e.push(J_(t,r))}n.columnsFlat=e,delete n.columns}let r=new K_(`IMPORT_JSON_FROM_PATH`,[e,t,n]);await this.postTask(r)}};function Z_(){let e=new TextDecoder;return t=>(typeof SharedArrayBuffer<`u`&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),e.decode(t))}Z_();var Q_=(e=>(e[e.BUFFER=0]=`BUFFER`,e[e.NODE_FS=1]=`NODE_FS`,e[e.BROWSER_FILEREADER=2]=`BROWSER_FILEREADER`,e[e.BROWSER_FSACCESS=3]=`BROWSER_FSACCESS`,e[e.HTTP=4]=`HTTP`,e[e.S3=5]=`S3`,e))(Q_||{}),$_=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),ev=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])),tv=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),nv=()=>(async e=>{try{return typeof MessageChannel<`u`&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(e)}catch{return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])),rv={name:`@duckdb/duckdb-wasm`,version:`1.29.1-dev68.0`,description:`DuckDB powered by WebAssembly`,license:`MIT`,repository:{type:`git`,url:`https://github.com/duckdb/duckdb-wasm.git`},keywords:[`sql`,`duckdb`,`relational`,`database`,`data`,`query`,`wasm`,`analytics`,`olap`,`arrow`,`parquet`,`json`,`csv`],dependencies:{"apache-arrow":`^17.0.0`},devDependencies:{"@types/emscripten":`^1.39.10`,"@types/jasmine":`^5.1.4`,"@typescript-eslint/eslint-plugin":`^6.21.0`,"@typescript-eslint/parser":`^6.21.0`,esbuild:`^0.20.2`,eslint:`^8.57.0`,"eslint-plugin-jasmine":`^4.1.3`,"eslint-plugin-react":`^7.34.0`,"fast-glob":`^3.3.2`,jasmine:`^5.1.0`,"jasmine-core":`^5.1.2`,"jasmine-spec-reporter":`^7.0.0`,"js-sha256":`^0.11.0`,karma:`^6.4.2`,"karma-chrome-launcher":`^3.2.0`,"karma-coverage":`^2.2.1`,"karma-firefox-launcher":`^2.1.3`,"karma-jasmine":`^5.1.0`,"karma-jasmine-html-reporter":`^2.1.0`,"karma-sourcemap-loader":`^0.4.0`,"karma-spec-reporter":`^0.0.36`,"make-dir":`^4.0.0`,nyc:`^15.1.0`,prettier:`^3.2.5`,puppeteer:`^22.8.0`,rimraf:`^5.0.5`,s3rver:`^3.7.1`,typedoc:`^0.25.13`,typescript:`^5.3.3`,"wasm-feature-detect":`^1.6.1`,"web-worker":`^1.2.0`},scripts:{"build:debug":`node bundle.mjs debug && tsc --emitDeclarationOnly`,"build:release":`node bundle.mjs release && tsc --emitDeclarationOnly`,docs:`typedoc`,report:`node ./coverage.mjs`,"test:node":`node --enable-source-maps ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs`,"test:node:debug":`node --inspect-brk --enable-source-maps ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs`,"test:node:coverage":`nyc -r json --report-dir ./coverage/node node ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs`,"test:firefox":`karma start ./karma/tests-firefox.cjs`,"test:chrome":`karma start ./karma/tests-chrome.cjs`,"test:chrome:eh":`karma start ./karma/tests-chrome-eh.cjs`,"test:chrome:coverage":`karma start ./karma/tests-chrome-coverage.cjs`,"test:browser":`karma start ./karma/tests-all.cjs`,"test:browser:debug":`karma start ./karma/tests-debug.cjs`,test:`npm run test:chrome && npm run test:node`,"test:coverage":`npm run test:chrome:coverage && npm run test:node:coverage && npm run report`,lint:`eslint src test`},files:[`dist`,`!dist/tests-*`,`!dist/duckdb-browser-mvp.worker.js.map`,`!dist/types/test`],main:`dist/duckdb-browser.cjs`,module:`dist/duckdb-browser.mjs`,types:`dist/duckdb-browser.d.ts`,jsdelivr:`dist/duckdb-browser.cjs`,unpkg:`dist/duckdb-browser.mjs`,sideEffects:!1,browser:{fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},exports:{"./dist/duckdb-mvp.wasm":`./dist/duckdb-mvp.wasm`,"./dist/duckdb-eh.wasm":`./dist/duckdb-eh.wasm`,"./dist/duckdb-coi.wasm":`./dist/duckdb-coi.wasm`,"./dist/duckdb-browser":`./dist/duckdb-browser.mjs`,"./dist/duckdb-browser.cjs":`./dist/duckdb-browser.cjs`,"./dist/duckdb-browser.mjs":`./dist/duckdb-browser.mjs`,"./dist/duckdb-browser-coi.pthread.worker.js":`./dist/duckdb-browser-coi.pthread.worker.js`,"./dist/duckdb-browser-coi.worker.js":`./dist/duckdb-browser-coi.worker.js`,"./dist/duckdb-browser-eh.worker.js":`./dist/duckdb-browser-eh.worker.js`,"./dist/duckdb-browser-mvp.worker.js":`./dist/duckdb-browser-mvp.worker.js`,"./dist/duckdb-node":`./dist/duckdb-node.cjs`,"./dist/duckdb-node.cjs":`./dist/duckdb-node.cjs`,"./dist/duckdb-node-blocking":`./dist/duckdb-node-blocking.cjs`,"./dist/duckdb-node-blocking.cjs":`./dist/duckdb-node-blocking.cjs`,"./dist/duckdb-node-eh.worker.cjs":`./dist/duckdb-node-eh.worker.cjs`,"./dist/duckdb-node-mvp.worker.cjs":`./dist/duckdb-node-mvp.worker.cjs`,"./blocking":{node:{types:`./dist/duckdb-node-blocking.d.ts`,require:`./dist/duckdb-node-blocking.cjs`,import:`./dist/duckdb-node-blocking.cjs`},types:`./dist/duckdb-node-blocking.d.ts`,import:`./dist/duckdb-node-blocking.mjs`,require:`./dist/duckdb-node-blocking.cjs`},".":{browser:{types:`./dist/duckdb-browser.d.ts`,import:`./dist/duckdb-browser.mjs`,require:`./dist/duckdb-browser.cjs`},node:{types:`./dist/duckdb-node.d.ts`,import:`./dist/duckdb-node.cjs`,require:`./dist/duckdb-node.cjs`},types:`./dist/duckdb-browser.d.ts`,import:`./dist/duckdb-browser.mjs`,require:`./dist/duckdb-browser.cjs`}}};rv.name,rv.version;var iv=rv.version.split(`.`);iv[0],iv[1],iv[2];var av=()=>typeof navigator>`u`,ov=null,sv=null,cv=null,lv=null,uv=null;async function dv(){return ov??=typeof BigInt64Array<`u`,sv??=await ev(),cv??=await nv(),lv??=await tv(),uv??=await $_(),{bigInt64Array:ov,crossOriginIsolated:av()||globalThis.crossOriginIsolated||!1,wasmExceptions:sv,wasmSIMD:lv,wasmThreads:cv,wasmBulkMemory:uv}}async function fv(e){let t=await dv();if(t.wasmExceptions){if(t.wasmSIMD&&t.wasmThreads&&t.crossOriginIsolated&&e.coi)return{mainModule:e.coi.mainModule,mainWorker:e.coi.mainWorker,pthreadWorker:e.coi.pthreadWorker};if(e.eh)return{mainModule:e.eh.mainModule,mainWorker:e.eh.mainWorker,pthreadWorker:null}}return{mainModule:e.mvp.mainModule,mainWorker:e.mvp.mainWorker,pthreadWorker:null}}A_(j_());const pv={},mv={};function hv(e,t){try{let n=pv[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format,r=n(t).split(`GMT`)[1];return r in mv?mv[r]:_v(r,r.split(`:`))}catch{if(e in mv)return mv[e];let t=e?.match(gv);return t?_v(e,t.slice(1)):NaN}}const gv=/([+-]\d\d):?(\d\d)?/;function _v(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return mv[e]=n*60+r>0?n*60+r+i:n*60-r-i}var vv=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(hv(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Sv(this,NaN),bv(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-hv(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),bv(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const yv=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!yv.test(e))return;let t=e.replace(yv,`$1UTC`);vv.prototype[t]&&(e.startsWith(`get`)?vv.prototype[e]=function(){return this.internal[t]()}:(vv.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),xv(this),+this},vv.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),bv(this),+this}))});function bv(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-hv(e.timeZone,e)*60))}function xv(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Sv(e)}function Sv(e){let t=hv(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=-new Date(+r).getTimezoneOffset(),o=i-a,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);let c=i-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);let l=new Date(+e);l.setUTCSeconds(0);let u=i>0?l.getSeconds():(l.getSeconds()-60)%60,d=Math.round(-(hv(e.timeZone,e)*60))%60;(d||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+u));let f=hv(e.timeZone,e),p=f>0?Math.floor(f):Math.ceil(f),m=-new Date(+e).getTimezoneOffset(),h=m-p,ee=p!==n,te=h-c;if(ee&&te){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+te);let t=hv(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=p-n;r&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+r),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+r))}}const Cv=new TextDecoder(`utf-8`),wv=e=>Cv.decode(e),Tv=new TextEncoder,Ev=e=>Tv.encode(e),Dv=e=>typeof e==`function`,Ov=e=>e!=null&&Object(e)===e,kv=e=>Ov(e)&&Dv(e.then),Av=e=>Ov(e)&&Dv(e[Symbol.iterator]),jv=e=>Ov(e)&&Dv(e[Symbol.asyncIterator]),Mv=e=>Ov(e)&&`done`in e&&`value`in e,Nv=e=>Ov(e)&&Dv(e.clear)&&Dv(e.bytes)&&Dv(e.position)&&Dv(e.setPosition)&&Dv(e.capacity)&&Dv(e.getBufferIdentifier)&&Dv(e.createLong);var Pv={};An(Pv,{compareArrayLike:()=>yy,joinUint8Arrays:()=>Rv,memcpy:()=>Lv,rebaseValueOffsets:()=>vy,toArrayBufferView:()=>zv,toArrayBufferViewAsyncIterator:()=>cy,toArrayBufferViewIterator:()=>Qv,toBigInt64Array:()=>Uv,toBigUint64Array:()=>qv,toFloat32Array:()=>Jv,toFloat32ArrayAsyncIterator:()=>hy,toFloat32ArrayIterator:()=>ay,toFloat64Array:()=>Yv,toFloat64ArrayAsyncIterator:()=>gy,toFloat64ArrayIterator:()=>oy,toInt16Array:()=>Vv,toInt16ArrayAsyncIterator:()=>uy,toInt16ArrayIterator:()=>ey,toInt32Array:()=>Hv,toInt32ArrayAsyncIterator:()=>dy,toInt32ArrayIterator:()=>ty,toInt8Array:()=>Bv,toInt8ArrayAsyncIterator:()=>ly,toInt8ArrayIterator:()=>$v,toUint16Array:()=>Gv,toUint16ArrayAsyncIterator:()=>py,toUint16ArrayIterator:()=>ry,toUint32Array:()=>Kv,toUint32ArrayAsyncIterator:()=>my,toUint32ArrayIterator:()=>iy,toUint8Array:()=>Wv,toUint8ArrayAsyncIterator:()=>fy,toUint8ArrayIterator:()=>ny,toUint8ClampedArray:()=>Xv,toUint8ClampedArrayAsyncIterator:()=>_y,toUint8ClampedArrayIterator:()=>sy});const Fv=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function Iv(e){let t=e[0]?[e[0]]:[],n,r,i,a;for(let o,s,c=0,l=0,u=e.length;++ce+t.byteLength,0),i,a,o,s=0,c=-1,l=Math.min(t||1/0,r);for(let e=n.length;++czv(Int8Array,e),Vv=e=>zv(Int16Array,e),Hv=e=>zv(Int32Array,e),Uv=e=>zv(BigInt64Array,e),Wv=e=>zv(Uint8Array,e),Gv=e=>zv(Uint16Array,e),Kv=e=>zv(Uint32Array,e),qv=e=>zv(BigUint64Array,e),Jv=e=>zv(Float32Array,e),Yv=e=>zv(Float64Array,e),Xv=e=>zv(Uint8ClampedArray,e),Zv=e=>(e.next(),e);function*Qv(e,t){let n=function*(e){yield e},r=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Fv?n(t):Av(t)?t:n(t);return yield*Zv((function*(t){let n=null;do n=t.next(yield zv(e,n));while(!n.done)})(r[Symbol.iterator]())),new e}const $v=e=>Qv(Int8Array,e),ey=e=>Qv(Int16Array,e),ty=e=>Qv(Int32Array,e),ny=e=>Qv(Uint8Array,e),ry=e=>Qv(Uint16Array,e),iy=e=>Qv(Uint32Array,e),ay=e=>Qv(Float32Array,e),oy=e=>Qv(Float64Array,e),sy=e=>Qv(Uint8ClampedArray,e);function cy(e,t){return Bc(this,arguments,function*(){if(kv(t))return yield b(yield b(yield*Vc(Hc(cy(e,yield b(t))))));let n=function(e){return Bc(this,arguments,function*(){yield yield b(yield b(e))})},r=function(e){return Bc(this,arguments,function*(){yield b(yield*Vc(Hc(Zv((function*(e){let t=null;do t=e.next(yield t?.value);while(!t.done)})(e[Symbol.iterator]())))))})},i=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Fv?n(t):Av(t)?r(t):jv(t)?t:n(t);return yield b(yield*Vc(Hc(Zv((function(t){return Bc(this,arguments,function*(){let n=null;do n=yield b(t.next(yield yield b(zv(e,n))));while(!n.done)})})(i[Symbol.asyncIterator]()))))),yield b(new e)})}const ly=e=>cy(Int8Array,e),uy=e=>cy(Int16Array,e),dy=e=>cy(Int32Array,e),fy=e=>cy(Uint8Array,e),py=e=>cy(Uint16Array,e),my=e=>cy(Uint32Array,e),hy=e=>cy(Float32Array,e),gy=e=>cy(Float64Array,e),_y=e=>cy(Uint8ClampedArray,e);function vy(e,t,n){if(e!==0){n=n.slice(0,t);for(let t=-1,r=n.length;++t0)do if(e[n]!==t[n])return!1;while(++nEy});function Ey(e){if(e===null)return`null`;if(e===void 0)return`undefined`;switch(typeof e){case`number`:return`${e}`;case`bigint`:return`${e}`;case`string`:return`"${e}"`}return typeof e[Symbol.toPrimitive]==`function`?e[Symbol.toPrimitive](`string`):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?`[${[...e].map(e=>Ey(e))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(e,t)=>typeof t==`bigint`?`${t}`:t)}function Dy(e){if(typeof e==`bigint`&&(e<-(2**53-1)||e>2**53-1))throw TypeError(`${e} is not safe to convert to a number.`);return Number(e)}function Oy(e,t){return Dy(e/t)+Dy(e%t)/Dy(t)}var ky={};An(ky,{BN:()=>Vy,bigNumToBigInt:()=>zy,bigNumToNumber:()=>Ly,bigNumToString:()=>Ry,isArrowBigNumSymbol:()=>Ay});const Ay=Symbol.for(`isArrowBigNum`);function jy(e,...t){return t.length===0?Object.setPrototypeOf(zv(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}jy.prototype[Ay]=!0,jy.prototype.toJSON=function(){return`"${Ry(this)}"`},jy.prototype.valueOf=function(e){return Ly(this,e)},jy.prototype.toString=function(){return Ry(this)},jy.prototype[Symbol.toPrimitive]=function(e=`default`){switch(e){case`number`:return Ly(this);case`string`:return Ry(this);case`default`:return zy(this)}return Ry(this)};function My(...e){return jy.apply(this,e)}function Ny(...e){return jy.apply(this,e)}function Py(...e){return jy.apply(this,e)}Object.setPrototypeOf(My.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(Ny.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(Py.prototype,Object.create(Uint32Array.prototype)),Object.assign(My.prototype,jy.prototype,{constructor:My,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(Ny.prototype,jy.prototype,{constructor:Ny,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(Py.prototype,jy.prototype,{constructor:Py,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const Fy=BigInt(4294967296)*BigInt(4294967296),Iy=Fy-BigInt(1);function Ly(e,t){let{buffer:n,byteOffset:r,byteLength:i,signed:a}=e,o=new BigUint64Array(n,r,i/8),s=a&&o.at(-1)&BigInt(1)<0){let e=BigInt(`1`.padEnd(t+1,`0`)),n=c/e,r=s?-(c%e):c%e,i=Dy(n),a=`${r}`.padStart(t,`0`),o=s&&i===0?`-`:``;return+`${o}${i}.${a}`}return Dy(c)}function Ry(e){if(e.byteLength===8){let t=new e.BigIntArray(e.buffer,e.byteOffset,1);return`${t[0]}`}if(!e.signed)return By(e);let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=new Int16Array([t.at(-1)])[0];if(n>=0)return By(e);t=t.slice();let r=1;for(let e=0;e(e.children=null,e.ArrayType=Array,e.OffsetArrayType=Int32Array,e[Symbol.toStringTag]=`DataType`))(L.prototype);var ub=class extends L{constructor(){super(I.Null)}toString(){return`Null`}};Uy=Symbol.toStringTag,ub[Uy]=(e=>e[Symbol.toStringTag]=`Null`)(ub.prototype);var db=class extends L{constructor(e,t){super(I.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?`I`:`Ui`}nt${this.bitWidth}`}};Wy=Symbol.toStringTag,db[Wy]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]=`Int`))(db.prototype);var fb=class extends db{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},pb=class extends db{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},mb=class extends db{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},hb=class extends db{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},gb=class extends db{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},_b=class extends db{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},vb=class extends db{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},yb=class extends db{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(fb.prototype,`ArrayType`,{value:Int8Array}),Object.defineProperty(pb.prototype,`ArrayType`,{value:Int16Array}),Object.defineProperty(mb.prototype,`ArrayType`,{value:Int32Array}),Object.defineProperty(hb.prototype,`ArrayType`,{value:BigInt64Array}),Object.defineProperty(gb.prototype,`ArrayType`,{value:Uint8Array}),Object.defineProperty(_b.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(vb.prototype,`ArrayType`,{value:Uint32Array}),Object.defineProperty(yb.prototype,`ArrayType`,{value:BigUint64Array});var bb=class extends L{constructor(e){super(I.Float),this.precision=e}get ArrayType(){switch(this.precision){case xy.HALF:return Uint16Array;case xy.SINGLE:return Float32Array;case xy.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};Gy=Symbol.toStringTag,bb[Gy]=(e=>(e.precision=null,e[Symbol.toStringTag]=`Float`))(bb.prototype);var xb=class extends bb{constructor(){super(xy.HALF)}},Sb=class extends bb{constructor(){super(xy.SINGLE)}},Cb=class extends bb{constructor(){super(xy.DOUBLE)}};Object.defineProperty(xb.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(Sb.prototype,`ArrayType`,{value:Float32Array}),Object.defineProperty(Cb.prototype,`ArrayType`,{value:Float64Array});var wb=class extends L{constructor(){super(I.Binary)}toString(){return`Binary`}};Ky=Symbol.toStringTag,wb[Ky]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Binary`))(wb.prototype);var Tb=class extends L{constructor(){super(I.LargeBinary)}toString(){return`LargeBinary`}};qy=Symbol.toStringTag,Tb[qy]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeBinary`))(Tb.prototype);var Eb=class extends L{constructor(){super(I.Utf8)}toString(){return`Utf8`}};Jy=Symbol.toStringTag,Eb[Jy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Utf8`))(Eb.prototype);var Db=class extends L{constructor(){super(I.LargeUtf8)}toString(){return`LargeUtf8`}};Yy=Symbol.toStringTag,Db[Yy]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeUtf8`))(Db.prototype);var Ob=class extends L{constructor(){super(I.Bool)}toString(){return`Bool`}};Xy=Symbol.toStringTag,Ob[Xy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Bool`))(Ob.prototype);var kb=class extends L{constructor(e,t,n=128){super(I.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?`+`:``}${this.scale}]`}};Zy=Symbol.toStringTag,kb[Zy]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]=`Decimal`))(kb.prototype);var Ab=class extends L{constructor(e){super(I.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Sy[this.unit]}>`}get ArrayType(){return this.unit===Sy.DAY?Int32Array:BigInt64Array}};Qy=Symbol.toStringTag,Ab[Qy]=(e=>(e.unit=null,e[Symbol.toStringTag]=`Date`))(Ab.prototype);var jb=class extends L{constructor(e,t){super(I.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${F[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};$y=Symbol.toStringTag,jb[$y]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]=`Time`))(jb.prototype);var Mb=class extends L{constructor(e,t){super(I.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${F[this.unit]}${this.timezone?`, ${this.timezone}`:``}>`}};eb=Symbol.toStringTag,Mb[eb]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Timestamp`))(Mb.prototype);var Nb=class extends L{constructor(e){super(I.Interval),this.unit=e}toString(){return`Interval<${Cy[this.unit]}>`}};tb=Symbol.toStringTag,Nb[tb]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]=`Interval`))(Nb.prototype);var Pb=class extends L{constructor(e){super(I.Duration),this.unit=e}toString(){return`Duration<${F[this.unit]}>`}};nb=Symbol.toStringTag,Pb[nb]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Duration`))(Pb.prototype);var Fb=class extends L{constructor(e){super(I.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};rb=Symbol.toStringTag,Fb[rb]=(e=>(e.children=null,e[Symbol.toStringTag]=`List`))(Fb.prototype);var Ib=class extends L{constructor(e){super(I.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};ib=Symbol.toStringTag,Ib[ib]=(e=>(e.children=null,e[Symbol.toStringTag]=`Struct`))(Ib.prototype);var Lb=class extends L{constructor(e,t,n){super(I.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((e,t,n)=>(e[t]=n)&&e||e,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(` | `)}>`}};ab=Symbol.toStringTag,Lb[ab]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]=`Union`))(Lb.prototype);var Rb=class extends L{constructor(e){super(I.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};ob=Symbol.toStringTag,Rb[ob]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`FixedSizeBinary`))(Rb.prototype);var zb=class extends L{constructor(e,t){super(I.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};sb=Symbol.toStringTag,zb[sb]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]=`FixedSizeList`))(zb.prototype);var Bb=class extends L{constructor(e,t=!1){var n,r,i;if(super(I.Map),this.children=[e],this.keysSorted=t,e&&(e.name=`entries`,(n=e?.type)?.children)){let t=(r=e?.type)?.children[0];t&&(t.name=`key`);let n=(i=e?.type)?.children[1];n&&(n.name=`value`)}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};cb=Symbol.toStringTag,Bb[cb]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]=`Map_`))(Bb.prototype);const Vb=(e=>()=>++e)(-1);var Hb=class extends L{constructor(e,t,n,r){super(I.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=n==null?Vb():Dy(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};lb=Symbol.toStringTag,Hb[lb]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]=`Dictionary`))(Hb.prototype);function Ub(e){let t=e;switch(e.typeId){case I.Decimal:return e.bitWidth/32;case I.Interval:return t.unit===Cy.MONTH_DAY_NANO?4:1+t.unit;case I.FixedSizeList:return t.listSize;case I.FixedSizeBinary:return t.byteWidth;default:return 1}}var R=class{visitMany(e,...t){return e.map((e,n)=>this.visit(e,...t.map(e=>e[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Wb(this,e,t)}getVisitFnByTypeId(e,t=!0){return Gb(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function Wb(e,t,n=!0){return typeof t==`number`?Gb(e,t,n):typeof t==`string`&&t in I?Gb(e,I[t],n):t&&t instanceof L?Gb(e,Kb(t),n):t?.type&&t.type instanceof L?Gb(e,Kb(t.type),n):Gb(e,I.NONE,n)}function Gb(e,t,n=!0){let r=null;switch(t){case I.Null:r=e.visitNull;break;case I.Bool:r=e.visitBool;break;case I.Int:r=e.visitInt;break;case I.Int8:r=e.visitInt8||e.visitInt;break;case I.Int16:r=e.visitInt16||e.visitInt;break;case I.Int32:r=e.visitInt32||e.visitInt;break;case I.Int64:r=e.visitInt64||e.visitInt;break;case I.Uint8:r=e.visitUint8||e.visitInt;break;case I.Uint16:r=e.visitUint16||e.visitInt;break;case I.Uint32:r=e.visitUint32||e.visitInt;break;case I.Uint64:r=e.visitUint64||e.visitInt;break;case I.Float:r=e.visitFloat;break;case I.Float16:r=e.visitFloat16||e.visitFloat;break;case I.Float32:r=e.visitFloat32||e.visitFloat;break;case I.Float64:r=e.visitFloat64||e.visitFloat;break;case I.Utf8:r=e.visitUtf8;break;case I.LargeUtf8:r=e.visitLargeUtf8;break;case I.Binary:r=e.visitBinary;break;case I.LargeBinary:r=e.visitLargeBinary;break;case I.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case I.Date:r=e.visitDate;break;case I.DateDay:r=e.visitDateDay||e.visitDate;break;case I.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case I.Timestamp:r=e.visitTimestamp;break;case I.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case I.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case I.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case I.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case I.Time:r=e.visitTime;break;case I.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case I.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case I.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case I.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case I.Decimal:r=e.visitDecimal;break;case I.List:r=e.visitList;break;case I.Struct:r=e.visitStruct;break;case I.Union:r=e.visitUnion;break;case I.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case I.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case I.Dictionary:r=e.visitDictionary;break;case I.Interval:r=e.visitInterval;break;case I.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case I.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case I.IntervalMonthDayNano:r=e.visitIntervalMonthDayNano||e.visitInterval;break;case I.Duration:r=e.visitDuration;break;case I.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case I.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case I.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case I.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case I.FixedSizeList:r=e.visitFixedSizeList;break;case I.Map:r=e.visitMap;break}if(typeof r==`function`)return r;if(!n)return()=>null;throw Error(`Unrecognized type '${I[t]}'`)}function Kb(e){switch(e.typeId){case I.Null:return I.Null;case I.Int:{let{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?I.Int8:I.Uint8;case 16:return n?I.Int16:I.Uint16;case 32:return n?I.Int32:I.Uint32;case 64:return n?I.Int64:I.Uint64}return I.Int}case I.Float:switch(e.precision){case xy.HALF:return I.Float16;case xy.SINGLE:return I.Float32;case xy.DOUBLE:return I.Float64}return I.Float;case I.Binary:return I.Binary;case I.LargeBinary:return I.LargeBinary;case I.Utf8:return I.Utf8;case I.LargeUtf8:return I.LargeUtf8;case I.Bool:return I.Bool;case I.Decimal:return I.Decimal;case I.Time:switch(e.unit){case F.SECOND:return I.TimeSecond;case F.MILLISECOND:return I.TimeMillisecond;case F.MICROSECOND:return I.TimeMicrosecond;case F.NANOSECOND:return I.TimeNanosecond}return I.Time;case I.Timestamp:switch(e.unit){case F.SECOND:return I.TimestampSecond;case F.MILLISECOND:return I.TimestampMillisecond;case F.MICROSECOND:return I.TimestampMicrosecond;case F.NANOSECOND:return I.TimestampNanosecond}return I.Timestamp;case I.Date:switch(e.unit){case Sy.DAY:return I.DateDay;case Sy.MILLISECOND:return I.DateMillisecond}return I.Date;case I.Interval:switch(e.unit){case Cy.DAY_TIME:return I.IntervalDayTime;case Cy.YEAR_MONTH:return I.IntervalYearMonth;case Cy.MONTH_DAY_NANO:return I.IntervalMonthDayNano}return I.Interval;case I.Duration:switch(e.unit){case F.SECOND:return I.DurationSecond;case F.MILLISECOND:return I.DurationMillisecond;case F.MICROSECOND:return I.DurationMicrosecond;case F.NANOSECOND:return I.DurationNanosecond}return I.Duration;case I.Map:return I.Map;case I.List:return I.List;case I.Struct:return I.Struct;case I.Union:switch(e.mode){case by.Dense:return I.DenseUnion;case by.Sparse:return I.SparseUnion}return I.Union;case I.FixedSizeBinary:return I.FixedSizeBinary;case I.FixedSizeList:return I.FixedSizeList;case I.Dictionary:return I.Dictionary}throw Error(`Unrecognized type '${I[e.typeId]}'`)}R.prototype.visitInt8=null,R.prototype.visitInt16=null,R.prototype.visitInt32=null,R.prototype.visitInt64=null,R.prototype.visitUint8=null,R.prototype.visitUint16=null,R.prototype.visitUint32=null,R.prototype.visitUint64=null,R.prototype.visitFloat16=null,R.prototype.visitFloat32=null,R.prototype.visitFloat64=null,R.prototype.visitDateDay=null,R.prototype.visitDateMillisecond=null,R.prototype.visitTimestampSecond=null,R.prototype.visitTimestampMillisecond=null,R.prototype.visitTimestampMicrosecond=null,R.prototype.visitTimestampNanosecond=null,R.prototype.visitTimeSecond=null,R.prototype.visitTimeMillisecond=null,R.prototype.visitTimeMicrosecond=null,R.prototype.visitTimeNanosecond=null,R.prototype.visitDenseUnion=null,R.prototype.visitSparseUnion=null,R.prototype.visitIntervalDayTime=null,R.prototype.visitIntervalYearMonth=null,R.prototype.visitIntervalMonthDayNano=null,R.prototype.visitDuration=null,R.prototype.visitDurationSecond=null,R.prototype.visitDurationMillisecond=null,R.prototype.visitDurationMicrosecond=null,R.prototype.visitDurationNanosecond=null;var qb={};An(qb,{float64ToUint16:()=>Zb,uint16ToFloat64:()=>Xb});const Jb=new Float64Array(1),Yb=new Uint32Array(Jb.buffer);function Xb(e){let t=(e&31744)>>10,n=(e&1023)/1024,r=(-1)**((e&32768)>>15);switch(t){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*2**(t-15)*(1+n)}function Zb(e){if(e!==e)return 32256;Jb[0]=e;let t=(Yb[1]&2147483648)>>16&65535,n=Yb[1]&2146435072,r=0;return n>=1089470464?Yb[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Yb[1]&1048575)>>10):n<=1056964608?(r=1048576+(Yb[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Yb[1]&1048575)+512>>10),t|n|r&65535}var z=class extends R{};function B(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}const Qb=(e,t,n)=>{e[t]=Math.floor(n/864e5)},$b=(e,t,n,r)=>{if(n+1{let i=e+n;r?t[i>>3]|=1<>3]&=~(1<{e[t]=n},nx=({values:e},t,n)=>{e[t]=n},rx=({values:e},t,n)=>{e[t]=Zb(n)},ix=(e,t,n)=>{switch(e.type.precision){case xy.HALF:return rx(e,t,n);case xy.SINGLE:case xy.DOUBLE:return nx(e,t,n)}},ax=({values:e},t,n)=>{Qb(e,t,n.valueOf())},ox=({values:e},t,n)=>{e[t]=BigInt(n)},sx=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},cx=({values:e,valueOffsets:t},n,r)=>$b(e,t,n,r),lx=({values:e,valueOffsets:t},n,r)=>$b(e,t,n,Ev(r)),ux=(e,t,n)=>{e.type.unit===Sy.DAY?ax(e,t,n):ox(e,t,n)},dx=({values:e},t,n)=>{e[t]=BigInt(n/1e3)},fx=({values:e},t,n)=>{e[t]=BigInt(n)},px=({values:e},t,n)=>{e[t]=BigInt(n*1e3)},mx=({values:e},t,n)=>{e[t]=BigInt(n*1e6)},hx=(e,t,n)=>{switch(e.type.unit){case F.SECOND:return dx(e,t,n);case F.MILLISECOND:return fx(e,t,n);case F.MICROSECOND:return px(e,t,n);case F.NANOSECOND:return mx(e,t,n)}},gx=({values:e},t,n)=>{e[t]=n},_x=({values:e},t,n)=>{e[t]=n},vx=({values:e},t,n)=>{e[t]=n},yx=({values:e},t,n)=>{e[t]=n},bx=(e,t,n)=>{switch(e.type.unit){case F.SECOND:return gx(e,t,n);case F.MILLISECOND:return _x(e,t,n);case F.MICROSECOND:return vx(e,t,n);case F.NANOSECOND:return yx(e,t,n)}},xx=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},Sx=(e,t,n)=>{let r=e.children[0],i=e.valueOffsets,a=Ux.getVisitFn(r);if(Array.isArray(n))for(let e=-1,o=i[t],s=i[t+1];o{let r=e.children[0],{valueOffsets:i}=e,a=Ux.getVisitFn(r),{[t]:o,[t+1]:s}=i,c=n instanceof Map?n.entries():Object.entries(n);for(let e of c)if(a(r,o,e),++o>=s)break},wx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[a]),Tx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(a)),Ex=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(i.name)),Dx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[i.name]),Ox=(e,t,n)=>{let r=e.type.children.map(e=>Ux.getVisitFn(e.type)),i=n instanceof Map?Ex(t,n):n instanceof RC?Tx(t,n):Array.isArray(n)?wx(t,n):Dx(t,n);e.type.children.forEach((t,n)=>i(r[n],e.children[n],t,n))},kx=(e,t,n)=>{e.type.mode===by.Dense?Ax(e,t,n):jx(e,t,n)},Ax=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Ux.visit(i,e.valueOffsets[t],n)},jx=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Ux.visit(i,t,n)},Mx=(e,t,n)=>{var r;(r=e.dictionary)==null||r.set(e.values[t],n)},Nx=(e,t,n)=>{switch(e.type.unit){case Cy.YEAR_MONTH:return Fx(e,t,n);case Cy.DAY_TIME:return Px(e,t,n);case Cy.MONTH_DAY_NANO:return Ix(e,t,n)}},Px=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},Fx=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},Ix=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},Lx=({values:e},t,n)=>{e[t]=n},Rx=({values:e},t,n)=>{e[t]=n},zx=({values:e},t,n)=>{e[t]=n},Bx=({values:e},t,n)=>{e[t]=n},Vx=(e,t,n)=>{switch(e.type.unit){case F.SECOND:return Lx(e,t,n);case F.MILLISECOND:return Rx(e,t,n);case F.MICROSECOND:return zx(e,t,n);case F.NANOSECOND:return Bx(e,t,n)}},Hx=(e,t,n)=>{let{stride:r}=e,i=e.children[0],a=Ux.getVisitFn(i);if(Array.isArray(n))for(let e=-1,o=t*r;++e`${Ey(e)}: ${Ey(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}[Symbol.iterator](){return new qx(this[Wx],this[Gx])}},qx=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return ee.name)}has(e,t){return e[Wx].type.children.some(e=>e.name===t)}getOwnPropertyDescriptor(e,t){if(e[Wx].type.children.some(e=>e.name===t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[Wx].type.children.findIndex(e=>e.name===t);if(n!==-1){let r=zS.visit(e[Wx].children[n],e[Gx]);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[Wx].type.children.findIndex(e=>e.name===t);return r===-1?Reflect.has(e,t)||typeof t==`symbol`?Reflect.set(e,t,n):!1:(Ux.visit(e[Wx].children[r],e[Gx],n),Reflect.set(e,t,n))}};const Yx=new Jx;var V=class extends R{};function H(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Xx=(e,t)=>864e5*e[t],Zx=(e,t)=>null,Qx=(e,t,n)=>{if(n+1>=t.length)return null;let r=Dy(t[n]),i=Dy(t[n+1]);return e.subarray(r,i)},$x=({offset:e,values:t},n)=>{let r=e+n,i=t[r>>3];return(i&1<Xx(e,t),tS=({values:e},t)=>Dy(e[t]),nS=({stride:e,values:t},n)=>t[e*n],rS=({stride:e,values:t},n)=>Xb(t[e*n]),iS=({values:e},t)=>e[t],aS=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),oS=({values:e,valueOffsets:t},n)=>Qx(e,t,n),sS=({values:e,valueOffsets:t},n)=>{let r=Qx(e,t,n);return r===null?null:wv(r)},cS=({values:e},t)=>e[t],lS=({type:e,values:t},n)=>e.precision===xy.HALF?Xb(t[n]):t[n],uS=(e,t)=>e.type.unit===Sy.DAY?eS(e,t):tS(e,t),dS=({values:e},t)=>1e3*Dy(e[t]),fS=({values:e},t)=>Dy(e[t]),pS=({values:e},t)=>Oy(e[t],BigInt(1e3)),mS=({values:e},t)=>Oy(e[t],BigInt(1e6)),hS=(e,t)=>{switch(e.type.unit){case F.SECOND:return dS(e,t);case F.MILLISECOND:return fS(e,t);case F.MICROSECOND:return pS(e,t);case F.NANOSECOND:return mS(e,t)}},gS=({values:e},t)=>e[t],_S=({values:e},t)=>e[t],vS=({values:e},t)=>e[t],yS=({values:e},t)=>e[t],bS=(e,t)=>{switch(e.type.unit){case F.SECOND:return gS(e,t);case F.MILLISECOND:return _S(e,t);case F.MICROSECOND:return vS(e,t);case F.NANOSECOND:return yS(e,t)}},xS=({values:e,stride:t},n)=>Vy.decimal(e.subarray(t*n,t*(n+1))),SS=(e,t)=>{let{valueOffsets:n,stride:r,children:i}=e,{[t*r]:a,[t*r+1]:o}=n,s=i[0],c=s.slice(a,o-a);return new RC([c])},CS=(e,t)=>{let{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:a}=n,o=r[0];return new WS(o.slice(i,a-i))},wS=(e,t)=>new Kx(e,t),TS=(e,t)=>e.type.mode===by.Dense?ES(e,t):DS(e,t),ES=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return zS.visit(r,e.valueOffsets[t])},DS=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return zS.visit(r,t)},OS=(e,t)=>{var n;return(n=e.dictionary)?.get(e.values[t])},kS=(e,t)=>e.type.unit===Cy.MONTH_DAY_NANO?MS(e,t):e.type.unit===Cy.DAY_TIME?AS(e,t):jS(e,t),AS=({values:e},t)=>e.subarray(2*t,2*(t+1)),jS=({values:e},t)=>{let n=e[t],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},MS=({values:e},t)=>e.subarray(4*t,4*(t+1)),NS=({values:e},t)=>e[t],PS=({values:e},t)=>e[t],FS=({values:e},t)=>e[t],IS=({values:e},t)=>e[t],LS=(e,t)=>{switch(e.type.unit){case F.SECOND:return NS(e,t);case F.MILLISECOND:return PS(e,t);case F.MICROSECOND:return FS(e,t);case F.NANOSECOND:return IS(e,t)}},RS=(e,t)=>{let{stride:n,children:r}=e,i=r[0],a=i.slice(t*n,n);return new RC([a])};V.prototype.visitNull=H(Zx),V.prototype.visitBool=H($x),V.prototype.visitInt=H(cS),V.prototype.visitInt8=H(nS),V.prototype.visitInt16=H(nS),V.prototype.visitInt32=H(nS),V.prototype.visitInt64=H(iS),V.prototype.visitUint8=H(nS),V.prototype.visitUint16=H(nS),V.prototype.visitUint32=H(nS),V.prototype.visitUint64=H(iS),V.prototype.visitFloat=H(lS),V.prototype.visitFloat16=H(rS),V.prototype.visitFloat32=H(nS),V.prototype.visitFloat64=H(nS),V.prototype.visitUtf8=H(sS),V.prototype.visitLargeUtf8=H(sS),V.prototype.visitBinary=H(oS),V.prototype.visitLargeBinary=H(oS),V.prototype.visitFixedSizeBinary=H(aS),V.prototype.visitDate=H(uS),V.prototype.visitDateDay=H(eS),V.prototype.visitDateMillisecond=H(tS),V.prototype.visitTimestamp=H(hS),V.prototype.visitTimestampSecond=H(dS),V.prototype.visitTimestampMillisecond=H(fS),V.prototype.visitTimestampMicrosecond=H(pS),V.prototype.visitTimestampNanosecond=H(mS),V.prototype.visitTime=H(bS),V.prototype.visitTimeSecond=H(gS),V.prototype.visitTimeMillisecond=H(_S),V.prototype.visitTimeMicrosecond=H(vS),V.prototype.visitTimeNanosecond=H(yS),V.prototype.visitDecimal=H(xS),V.prototype.visitList=H(SS),V.prototype.visitStruct=H(wS),V.prototype.visitUnion=H(TS),V.prototype.visitDenseUnion=H(ES),V.prototype.visitSparseUnion=H(DS),V.prototype.visitDictionary=H(OS),V.prototype.visitInterval=H(kS),V.prototype.visitIntervalDayTime=H(AS),V.prototype.visitIntervalYearMonth=H(jS),V.prototype.visitIntervalMonthDayNano=H(MS),V.prototype.visitDuration=H(LS),V.prototype.visitDurationSecond=H(NS),V.prototype.visitDurationMillisecond=H(PS),V.prototype.visitDurationMicrosecond=H(FS),V.prototype.visitDurationNanosecond=H(IS),V.prototype.visitFixedSizeList=H(RS),V.prototype.visitMap=H(CS);const zS=new V,BS=Symbol.for(`keys`),VS=Symbol.for(`vals`),HS=Symbol.for(`kKeysAsStrings`),US=Symbol.for(`_kKeysAsStrings`);var WS=class{constructor(e){return this[BS]=new RC([e.children[0]]).memoize(),this[VS]=e.children[1],new Proxy(this,new KS)}get[HS](){return this[US]||(this[US]=Array.from(this[BS].toArray(),String))}[Symbol.iterator](){return new GS(this[BS],this[VS])}get size(){return this[BS].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[BS],t=this[VS],n={};for(let r=-1,i=e.length;++r`${Ey(e)}: ${Ey(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}},GS=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),zS.visit(this.vals,e)]})}},KS=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[HS]}has(e,t){return e[HS].includes(t)}getOwnPropertyDescriptor(e,t){let n=e[HS].indexOf(t);if(n!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[HS].indexOf(t);if(n!==-1){let r=zS.visit(Reflect.get(e,VS),n);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[HS].indexOf(t);return r===-1?Reflect.has(e,t)?Reflect.set(e,t,n):!1:(Ux.visit(Reflect.get(e,VS),r,n),Reflect.set(e,t,n))}};Object.defineProperties(WS.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[BS]:{writable:!0,enumerable:!1,configurable:!1,value:null},[VS]:{writable:!0,enumerable:!1,configurable:!1,value:null},[US]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var qS={};An(qS,{clampRange:()=>YS,createElementComparator:()=>QS,wrapIndex:()=>XS});let JS;function YS(e,t,n,r){let{length:i=0}=e,a=typeof t==`number`?t:0,o=typeof n==`number`?n:i;return a<0&&(a=(a%i+i)%i),o<0&&(o=(o%i+i)%i),oi&&(o=i),r?r(e,a,o):[a,o]}const XS=(e,t)=>e<0?t+e:e,ZS=e=>e!==e;function QS(e){let t=typeof e;if(t!==`object`||e===null)return ZS(e)?ZS:t=>t===e;if(e instanceof Date){let t=e.valueOf();return e=>e instanceof Date?e.valueOf()===t:!1}return ArrayBuffer.isView(e)?t=>t?yy(e,t):!1:e instanceof Map?eC(e):Array.isArray(e)?$S(e):e instanceof RC?tC(e):nC(e,!0)}function $S(e){let t=[];for(let n=-1,r=e.length;++n!1;let r=[];for(let t=-1,i=n.length;++t{if(!n||typeof n!=`object`)return!1;switch(n.constructor){case Array:return iC(e,n);case Map:return oC(e,n,n.keys());case WS:case Kx:case Object:case void 0:return oC(e,n,t||Object.keys(n))}return n instanceof RC?aC(e,n):!1}}function iC(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++rpC,getBit:()=>lC,getBool:()=>cC,packBools:()=>fC,popcnt_array:()=>hC,popcnt_bit_range:()=>mC,popcnt_uint32:()=>gC,setBool:()=>uC,truncateBitmap:()=>dC});function cC(e,t,n,r){return(n&1<>r}function uC(e,t,n){return n?!!(e[t>>3]|=1<>3]&=~(1<0||n.byteLength>3):fC(new pC(n,e,t,null,cC)).subarray(0,r)),i}return n}function fC(e){let t=[],n=0,r=0,i=0;for(let a of e)a&&(i|=1<0)&&(t[n++]=i);let a=new Uint8Array(t.length+7&-8);return a.set(t),a}var pC=class{constructor(e,t,n,r,i){this.bytes=e,this.length=n,this.context=r,this.get=i,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index>3<<3,i=t+(t%8==0?0:8-t%8);return mC(e,t,i)+mC(e,r,n)+hC(e,i>>3,r-i>>3)}function hC(e,t,n){let r=0,i=Math.trunc(t),a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n===void 0?e.byteLength:i+n;for(;o-i>=4;)r+=gC(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=gC(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=gC(a.getUint8(i)),i+=1;return r}function gC(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}var _C=class e{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:e}=this;return L.isSparseUnion(e)||L.isDenseUnion(e)?this.children.some(e=>e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:t,values:n,nullBitmap:r,typeIds:i}=this;return t&&(e+=t.byteLength),n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),this.children.reduce((e,t)=>e+t.byteLength,e)}get nullCount(){if(L.isUnion(this.type))return this.children.reduce((e,t)=>e+t.nullCount,0);let e=this._nullCount,t;return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-mC(t,this.offset,this.offset+this.length)),e}constructor(t,n,r,i,a,o=[],s){this.type=t,this.children=o,this.dictionary=s,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let c;a instanceof e?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=Ub(t),a&&((c=a[0])&&(this.valueOffsets=c),(c=a[1])&&(this.values=c),(c=a[2])&&(this.nullBitmap=c),(c=a[3])&&(this.typeIds=c)))}getValid(e){let{type:t}=this;if(L.isUnion(t)){let n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],i=n.mode===by.Dense?this.valueOffsets[e]:e;return r.getValid(i)}if(this.nullable&&this.nullCount>0){let t=this.offset+e,n=this.nullBitmap[t>>3];return(n&1<>3;(!r||r.byteLength<=c)&&(r=new Uint8Array((i+a+63&-64)>>3).fill(255),this.nullCount>0?(r.set(dC(i,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:r})):Object.assign(this,{nullBitmap:r,_nullCount:0}));let l=r[c];n=(l&s)!==0,r[c]=t?l|s:l&~s}return n!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(t=this.type,n=this.offset,r=this.length,i=this._nullCount,a=this,o=this.children){return new e(t,n,r,i,a,o,this.dictionary)}slice(e,t){let{stride:n,typeId:r,children:i}=this,a=(this._nullCount===0)-1,o=r===16?n:1,s=this._sliceBuffers(e,t,n,r);return this.clone(this.type,this.offset+e,t,a,s,i.length===0||this.valueOffsets?i:this._sliceChildren(i,o*e,o*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===I.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:n}=this,r=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);r[t>>3]=(1<0&&r.set(dC(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[wy.VALIDITY]=r,this.clone(this.type,0,e,n+(e-t),i)}_sliceBuffers(e,t,n,r){let i,{buffers:a}=this;return(i=a[wy.TYPE])&&(a[wy.TYPE]=i.subarray(e,e+t)),(i=a[wy.OFFSET])&&(a[wy.OFFSET]=i.subarray(e,e+t+1))||(i=a[wy.DATA])&&(a[wy.DATA]=r===6?i:i.subarray(n*e,n*(e+t))),a}_sliceChildren(e,t,n){return e.map(e=>e.slice(t,n))}};_C.prototype.children=Object.freeze([]);var vC=class e extends R{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:n=0,length:r=0}=e;return new _C(t,n,r,r)}visitBool(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitInt(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitFloat(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitUtf8(e){let{type:t,offset:n=0}=e,r=Wv(e.data),i=Wv(e.nullBitmap),a=Hv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,r,i])}visitLargeUtf8(e){let{type:t,offset:n=0}=e,r=Wv(e.data),i=Wv(e.nullBitmap),a=Uv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,r,i])}visitBinary(e){let{type:t,offset:n=0}=e,r=Wv(e.data),i=Wv(e.nullBitmap),a=Hv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,r,i])}visitLargeBinary(e){let{type:t,offset:n=0}=e,r=Wv(e.data),i=Wv(e.nullBitmap),a=Uv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,r,i])}visitFixedSizeBinary(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitDate(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitTimestamp(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitTime(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitDecimal(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitList(e){let{type:t,offset:n=0,child:r}=e,i=Wv(e.nullBitmap),a=Hv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,void 0,i],[r])}visitStruct(e){let{type:t,offset:n=0,children:r=[]}=e,i=Wv(e.nullBitmap),{length:a=r.reduce((e,{length:t})=>Math.max(e,t),0),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,void 0,i],r)}visitUnion(e){let{type:t,offset:n=0,children:r=[]}=e,i=zv(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:o=-1}=e;if(L.isSparseUnion(t))return new _C(t,n,a,o,[void 0,void 0,void 0,i],r);let s=Hv(e.valueOffsets);return new _C(t,n,a,o,[s,void 0,void 0,i],r)}visitDictionary(t){let{type:n,offset:r=0}=t,i=Wv(t.nullBitmap),a=zv(n.indices.ArrayType,t.data),{dictionary:o=new RC([new e().visit({type:n.dictionary})])}=t,{length:s=a.length,nullCount:c=t.nullBitmap?-1:0}=t;return new _C(n,r,s,c,[void 0,a,i],[],o)}visitInterval(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitDuration(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitFixedSizeList(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.valueType})}=t,a=Wv(t.nullBitmap),{length:o=i.length/Ub(n),nullCount:s=t.nullBitmap?-1:0}=t;return new _C(n,r,o,s,[void 0,void 0,a],[i])}visitMap(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.childType})}=t,a=Wv(t.nullBitmap),o=Hv(t.valueOffsets),{length:s=o.length-1,nullCount:c=t.nullBitmap?-1:0}=t;return new _C(n,r,s,c,[o,void 0,a],[i])}};new vC;var yC=class{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndexe.nullable)}function xC(e){return e.reduce((e,t)=>e+t.nullCount,0)}function SC(e){return e.reduce((e,t,n)=>(e[n+1]=e[n]+t.length,e),new Uint32Array(e.length+1))}function CC(e,t,n,r){let i=[];for(let a=-1,o=e.length;++a=r)break;if(n>=s+c)continue;if(s>=n&&s+c<=r){i.push(o);continue}let l=Math.max(0,n-s),u=Math.min(r-s,c);i.push(o.slice(l,u-l))}return i.length===0&&i.push(e[0].slice(0,0)),i}function wC(e,t,n,r){let i=0,a=0,o=t.length-1;do{if(i>=o-1)return n0?0:-1}function AC(e,t){let{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(let i of new pC(n,e.offset+(t||0),e.length,n,cC)){if(!i)return r;++r}return-1}function W(e,t,n){if(t===void 0)return-1;if(t===null)switch(e.typeId){case I.Union:break;case I.Dictionary:break;default:return AC(e,n)}let r=zS.getVisitFn(e),i=QS(t);for(let t=(n||0)-1,a=e.length;++t{let n=e.data[t];return n.values.subarray(0,n.length)[Symbol.iterator]()});let n=0;return new yC(e.data.length,t=>{let r=e.data[t],i=r.length,a=e.slice(n,n+i);return n+=i,new NC(a)})}var NC=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data):t;if(a.length===0||a.some(e=>!(e instanceof _C)))throw TypeError(`Vector constructor expects an Array of Data instances.`);let o=(n=a[0])?.type;switch(a.length){case 0:this._offsets=[0];break;case 1:{let{get:e,set:t,indexOf:n}=IC[o.typeId],r=a[0];this.isValid=e=>TC(r,e),this.get=t=>e(r,t),this.set=(e,n)=>t(r,e,n),this.indexOf=e=>n(r,e),this._offsets=[0,r.length];break}default:Object.setPrototypeOf(this,LC[o.typeId]),this._offsets=SC(a);break}this.data=a,this.type=o,this.stride=Ub(o),this.numChildren=(i=(r=o.children)?.length)??0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,t)=>e+t.byteLength,0)}get nullable(){return bC(this.data)}get nullCount(){return xC(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${I[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(XS(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return PC.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap(e=>e.data).flat(1/0)))}slice(t,n){return new e(YS(this,t,n,({data:e,_offsets:t},n,r)=>CC(e,t,n,r)))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case I.Int:case I.Float:case I.Decimal:case I.Time:case I.Timestamp:switch(t.length){case 0:return new i;case 1:return t[0].values.subarray(0,n*r);default:return t.reduce((e,{values:t,length:n})=>(e.array.set(t.subarray(0,n*r),e.offset),e.offset+=n*r,e),{array:new i(n*r),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(`,`)}]`}getChild(e){var t;return this.getChildAt((t=this.type.children)?.findIndex(t=>t.name===e))}getChildAt(t){return t>-1&&te[t])):null}get isMemoized(){return L.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(L.isDictionary(this.type)){let t=new zC(this.data[0].dictionary),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return new zC(this)}unmemoize(){if(L.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return this}};FC=Symbol.toStringTag,RC[FC]=(e=>{e.type=L.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;let t=Object.keys(I).map(e=>I[e]).filter(e=>typeof e==`number`&&e!==I.NONE);for(let n of t){let t=zS.getVisitFnByTypeId(n),r=Ux.getVisitFnByTypeId(n),i=MC.getVisitFnByTypeId(n);IC[n]={get:t,set:r,indexOf:i},LC[n]=Object.create(e,{isValid:{value:EC(TC)},get:{value:EC(zS.getVisitFnByTypeId(n))},set:{value:DC(Ux.getVisitFnByTypeId(n))},indexOf:{value:OC(MC.getVisitFnByTypeId(n))}})}return`Vector`})(RC.prototype);var zC=class e extends RC{constructor(t){super(t.data);let n=this.get,r=this.set,i=this.slice,a=Array(this.length);Object.defineProperty(this,`get`,{value(e){let t=a[e];if(t!==void 0)return t;let r=n.call(this,e);return a[e]=r,r}}),Object.defineProperty(this,`set`,{value(e,t){r.call(this,e,t),a[e]=t}}),Object.defineProperty(this,`slice`,{value:(t,n)=>new e(i.call(this,t,n))}),Object.defineProperty(this,`isMemoized`,{value:!0}),Object.defineProperty(this,`unmemoize`,{value:()=>new RC(this.data)}),Object.defineProperty(this,`memoize`,{value:()=>this})}},BC={};An(BC,{BaseInt64:()=>UC,Int128:()=>KC,Int64:()=>GC,Uint64:()=>WC});function VC(e){return e<0&&(e=4294967295+e+1),`0x${e.toString(16)}`}const HC=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];var UC=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let t=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),n=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),r=t[3]*n[3];this.buffer[0]=r&65535;let i=r>>>16;return r=t[2]*n[3],i+=r,r=t[3]*n[2]>>>0,i+=r,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0>>16,this.buffer[1]+=t[1]*n[3]+t[2]*n[2]+t[3]*n[1],this.buffer[1]+=t[0]*n[3]+t[1]*n[2]+t[2]*n[1]+t[3]*n[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]>>0&&++t[1],t[1]>>0&&++t[2],t[2]>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${VC(this.buffer[3])} ${VC(this.buffer[2])} ${VC(this.buffer[1])} ${VC(this.buffer[0])}`}static multiply(t,n){let r=new e(new Uint32Array(t.buffer));return r.times(n)}static add(t,n){let r=new e(new Uint32Array(t.buffer));return r.plus(n)}static from(t,n=new Uint32Array(4)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){let r=t.startsWith(`-`),i=t.length,a=new e(n);for(let n=r?1:0;nJC,toIntervalDayTimeObjects:()=>XC,toIntervalMonthDayNanoInt32Array:()=>YC,toIntervalMonthDayNanoObjects:()=>ZC});function JC(e){var t,n;let r=e.length,i=new Int32Array(r*2);for(let a=0,o=0;a>BigInt(32))):o+=2}return i}function XC(e){let t=e.length,n=Array(t/2);for(let r=0,i=0;r>>0);r[a++]={months:e[i],days:e[i+1],nanoseconds:t?`${n}`:n}}return r}var q=class extends R{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>this.compareFields(e,t[n]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};function QC(e,t){return t instanceof e.constructor}function $C(e,t){return e===t||QC(e,t)}function ew(e,t){return e===t||QC(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function tw(e,t){return e===t||QC(e,t)&&e.precision===t.precision}function nw(e,t){return e===t||QC(e,t)&&e.byteWidth===t.byteWidth}function rw(e,t){return e===t||QC(e,t)&&e.unit===t.unit}function iw(e,t){return e===t||QC(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function aw(e,t){return e===t||QC(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function ow(e,t){return e===t||QC(e,t)&&e.children.length===t.children.length&&mw.compareManyFields(e.children,t.children)}function sw(e,t){return e===t||QC(e,t)&&e.children.length===t.children.length&&mw.compareManyFields(e.children,t.children)}function cw(e,t){return e===t||QC(e,t)&&e.mode===t.mode&&e.typeIds.every((e,n)=>e===t.typeIds[n])&&mw.compareManyFields(e.children,t.children)}function lw(e,t){return e===t||QC(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&mw.visit(e.indices,t.indices)&&mw.visit(e.dictionary,t.dictionary)}function uw(e,t){return e===t||QC(e,t)&&e.unit===t.unit}function dw(e,t){return e===t||QC(e,t)&&e.unit===t.unit}function fw(e,t){return e===t||QC(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&mw.compareManyFields(e.children,t.children)}function pw(e,t){return e===t||QC(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&mw.compareManyFields(e.children,t.children)}q.prototype.visitNull=$C,q.prototype.visitBool=$C,q.prototype.visitInt=ew,q.prototype.visitInt8=ew,q.prototype.visitInt16=ew,q.prototype.visitInt32=ew,q.prototype.visitInt64=ew,q.prototype.visitUint8=ew,q.prototype.visitUint16=ew,q.prototype.visitUint32=ew,q.prototype.visitUint64=ew,q.prototype.visitFloat=tw,q.prototype.visitFloat16=tw,q.prototype.visitFloat32=tw,q.prototype.visitFloat64=tw,q.prototype.visitUtf8=$C,q.prototype.visitLargeUtf8=$C,q.prototype.visitBinary=$C,q.prototype.visitLargeBinary=$C,q.prototype.visitFixedSizeBinary=nw,q.prototype.visitDate=rw,q.prototype.visitDateDay=rw,q.prototype.visitDateMillisecond=rw,q.prototype.visitTimestamp=iw,q.prototype.visitTimestampSecond=iw,q.prototype.visitTimestampMillisecond=iw,q.prototype.visitTimestampMicrosecond=iw,q.prototype.visitTimestampNanosecond=iw,q.prototype.visitTime=aw,q.prototype.visitTimeSecond=aw,q.prototype.visitTimeMillisecond=aw,q.prototype.visitTimeMicrosecond=aw,q.prototype.visitTimeNanosecond=aw,q.prototype.visitDecimal=$C,q.prototype.visitList=ow,q.prototype.visitStruct=sw,q.prototype.visitUnion=cw,q.prototype.visitDenseUnion=cw,q.prototype.visitSparseUnion=cw,q.prototype.visitDictionary=lw,q.prototype.visitInterval=uw,q.prototype.visitIntervalDayTime=uw,q.prototype.visitIntervalYearMonth=uw,q.prototype.visitIntervalMonthDayNano=uw,q.prototype.visitDuration=dw,q.prototype.visitDurationSecond=dw,q.prototype.visitDurationMillisecond=dw,q.prototype.visitDurationMicrosecond=dw,q.prototype.visitDurationNanosecond=dw,q.prototype.visitFixedSizeList=fw,q.prototype.visitMap=pw;const mw=new q;function hw(e,t){return mw.compareSchemas(e,t)}function gw(e,t){return mw.compareFields(e,t)}function _w(e,t){return mw.visit(e,t)}const vw=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ky),BC),sC),qb),Pv),qS),Ty),qC),{compareSchemas:hw,compareFields:gw,compareTypes:_w}),yw=6048e5,bw=3600*24;bw*7,bw*365.2425;const xw=Symbol.for(`constructDateFrom`);function Sw(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&xw in e?e[xw](t):e instanceof Date?new e.constructor(t):new Date(t)}function Cw(e,t){return Sw(t||e,e)}let ww={};function Tw(){return ww}function Ew(e,t){let n=Tw(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Cw(e,t?.in),a=i.getDay(),o=(a=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function kw(e){let t=Cw(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Aw(e,...t){let n=Sw.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function jw(e,t){let n=Cw(e,t?.in);return n.setHours(0,0,0,0),n}function Mw(e,t,n){let[r,i]=Aw(n?.in,e,t),a=jw(r),o=jw(i),s=+a-kw(a),c=+o-kw(o);return Math.round((s-c)/864e5)}function Nw(e,t){let n=Ow(e,t),r=Sw(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Dw(r)}function Pw(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Fw(e){return!(!Pw(e)&&typeof e!=`number`||isNaN(+Cw(e)))}function Iw(e,t){let n=Cw(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Lw={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},Rw=(e,t,n)=>{let r,i=Lw[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function zw(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const Bw={full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},Vw={full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},Hw={full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},Uw={date:zw({formats:Bw,defaultWidth:`full`}),time:zw({formats:Vw,defaultWidth:`full`}),dateTime:zw({formats:Hw,defaultWidth:`full`})},Ww={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Gw=(e,t,n,r)=>Ww[e];function Kw(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const qw={narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},Jw={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},Yw={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},Xw={narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},Zw={narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},Qw={narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},$w=(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},eT={ordinalNumber:$w,era:Kw({values:qw,defaultWidth:`wide`}),quarter:Kw({values:Jw,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Kw({values:Yw,defaultWidth:`wide`}),day:Kw({values:Xw,defaultWidth:`wide`}),dayPeriod:Kw({values:Zw,defaultWidth:`wide`,formattingValues:Qw,defaultFormattingWidth:`wide`})};function tT(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?rT(s,e=>e.test(o)):nT(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function nT(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rT(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}const aT=/^(\d+)(th|st|nd|rd)?/i,oT=/\d+/i,sT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},cT={any:[/^b/i,/^(a|c)/i]},lT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},uT={any:[/1/i,/2/i,/3/i,/4/i]},dT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},pT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_T={ordinalNumber:iT({matchPattern:aT,parsePattern:oT,valueCallback:e=>parseInt(e,10)}),era:tT({matchPatterns:sT,defaultMatchWidth:`wide`,parsePatterns:cT,defaultParseWidth:`any`}),quarter:tT({matchPatterns:lT,defaultMatchWidth:`wide`,parsePatterns:uT,defaultParseWidth:`any`,valueCallback:e=>e+1}),month:tT({matchPatterns:dT,defaultMatchWidth:`wide`,parsePatterns:fT,defaultParseWidth:`any`}),day:tT({matchPatterns:pT,defaultMatchWidth:`wide`,parsePatterns:mT,defaultParseWidth:`any`}),dayPeriod:tT({matchPatterns:hT,defaultMatchWidth:`any`,parsePatterns:gT,defaultParseWidth:`any`})},vT={code:`en-US`,formatDistance:Rw,formatLong:Uw,formatRelative:Gw,localize:eT,match:_T,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yT(e,t){let n=Cw(e,t?.in),r=Mw(n,Iw(n)),i=r+1;return i}function bT(e,t){let n=Cw(e,t?.in),r=Dw(n)-+Nw(n);return Math.round(r/yw)+1}function xT(e,t){let n=Cw(e,t?.in),r=n.getFullYear(),i=Tw(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Sw(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Ew(o,t),c=Sw(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Ew(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function ST(e,t){let n=Tw(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=xT(e,t),a=Sw(t?.in||e,0);a.setFullYear(i,0,r),a.setHours(0,0,0,0);let o=Ew(a,t);return o}function CT(e,t){let n=Cw(e,t?.in),r=Ew(n,t)-+ST(n,t);return Math.round(r/yw)+1}function wT(e,t){let n=e<0?`-`:``,r=Math.abs(e).toString().padStart(t,`0`);return n+r}const TT={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return wT(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):wT(n+1,2)},d(e,t){return wT(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];case`aaaa`:default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return wT(e.getHours()%12||12,t.length)},H(e,t){return wT(e.getHours(),t.length)},m(e,t){return wT(e.getMinutes(),t.length)},s(e,t){return wT(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*10**(n-3));return wT(i,t.length)}},ET={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},DT={G:function(e,t,n){let r=e.getFullYear()>0?1:0;switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});case`GGGG`:default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return TT.y(e,t)},Y:function(e,t,n,r){let i=xT(e,r),a=i>0?i:1-i;if(t===`YY`){let e=a%100;return wT(e,2)}return t===`Yo`?n.ordinalNumber(a,{unit:`year`}):wT(a,t.length)},R:function(e,t){let n=Ow(e);return wT(n,t.length)},u:function(e,t){let n=e.getFullYear();return wT(n,t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return wT(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});case`QQQQ`:default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return wT(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});case`qqqq`:default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return TT.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});case`MMMM`:default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return wT(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});case`LLLL`:default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=CT(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):wT(i,t.length)},I:function(e,t,n){let r=bT(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):wT(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):TT.d(e,t)},D:function(e,t,n){let r=yT(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):wT(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});case`EEEE`:default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return wT(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});case`eeee`:default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return wT(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});case`cccc`:default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return wT(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});case`iiii`:default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours(),i=r/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});case`aaaa`:default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?ET.noon:r===0?ET.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});case`bbbb`:default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?ET.evening:r>=12?ET.afternoon:r>=4?ET.morning:ET.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});case`BBBB`:default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return TT.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):TT.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):wT(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):wT(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):TT.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):TT.s(e,t)},S:function(e,t){return TT.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return kT(r);case`XXXX`:case`XX`:return AT(r);case`XXXXX`:case`XXX`:default:return AT(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return kT(r);case`xxxx`:case`xx`:return AT(r);case`xxxxx`:case`xxx`:default:return AT(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+OT(r,`:`);case`OOOO`:default:return`GMT`+AT(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+OT(r,`:`);case`zzzz`:default:return`GMT`+AT(r,`:`)}},t:function(e,t,n){let r=Math.trunc(e/1e3);return wT(r,t.length)},T:function(e,t,n){return wT(+e,t.length)}};function OT(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+wT(a,2)}function kT(e,t){if(e%60==0){let t=e>0?`-`:`+`;return t+wT(Math.abs(e)/60,2)}return AT(e,t)}function AT(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=wT(Math.trunc(r/60),2),a=wT(r%60,2);return n+i+t+a}const jT=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});case`PPPP`:default:return t.date({width:`full`})}},MT=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});case`pppp`:default:return t.time({width:`full`})}},NT=(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return jT(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;case`PPPP`:default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,jT(r,t)).replace(`{{time}}`,MT(i,t))},PT={p:MT,P:NT},FT=/^D+$/,IT=/^Y+$/,LT=[`D`,`DD`,`YY`,`YYYY`];function RT(e){return FT.test(e)}function zT(e){return IT.test(e)}function BT(e,t,n){let r=VT(e,t,n);if(console.warn(r),LT.includes(e))throw RangeError(r)}function VT(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const HT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,UT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,WT=/^'([^]*?)'?$/,GT=/''/g,KT=/[a-zA-Z]/;function qT(e,t,n){let r=Tw(),i=n?.locale??r.locale??vT,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Cw(e,n?.in);if(!Fw(s))throw RangeError(`Invalid time value`);let c=t.match(UT).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=PT[t];return n(e,i.formatLong)}return e}).join(``).match(HT).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:JT(e)};if(DT[t])return{isToken:!0,value:e};if(t.match(KT))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&zT(a)||!n?.useAdditionalDayOfYearTokens&&RT(a))&&BT(a,t,String(e));let o=DT[a[0]];return o(s,a,i.localize,l)}).join(``)}function JT(e){let t=e.match(WT);return t?t[1].replace(GT,`'`):e}function YT(e,t){return Cw(e*1e3,t?.in)}function XT(e,t){let n=ZT(t)?new t(0):Sw(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function ZT(e){return typeof e==`function`&&e.prototype?.constructor===e}function QT(e,t){if(t===void 0)return e.trimEnd();let n=e.length;switch(typeof t){case`string`:if(t.length!==1)throw Error(`The 'chars' parameter should be a single character string.`);for(;n>0&&e[n-1]===t;)n--;break;case`object`:for(;n>0&&t.includes(e[n-1]);)n--}return e.substring(0,n)}function $T(e){return e==null}function eE(e){return e!=null}async function tE(){if(typeof window<`u`&&window!==null)return`browser`;try{let e=await oe(()=>import(`./__vite-browser-external-BOrN4rVf.js`).then(jn(1)),__vite__mapDeps([0,1,2]));return e!==void 0&&e.versions!=null&&e.versions.node!=null?`node`:`unknown`}catch{return`unknown`}}function nE(e){return $T(e)?!1:L.isInt(e.type)&&!cE(e)||rE(e)}function rE(e){return $T(e)?!1:L.isInt(e.type)&&e.type.isSigned===!1}function iE(e){return $T(e)?!1:L.isFloat(e.type)??!1}function aE(e){return $T(e)?!1:L.isDecimal(e.type)}function oE(e){return $T(e)?!1:L.isBool(e.type)}function sE(e){return $T(e)?!1:L.isDuration(e.type)}function cE(e){return $T(e)?!1:L.isInt(e.type)&&e.metadata.get(`ARROW:extension:name`)===`period`}function lE(e){return $T(e)?!1:L.isTimestamp(e.type)}function uE(e){return $T(e)?!1:L.isDate(e.type)}function dE(e){return $T(e)?!1:L.isTime(e.type)}function fE(e){return $T(e)?!1:L.isList(e.type)||L.isFixedSizeList(e.type)}function pE(e){return $T(e)?!1:L.isStruct(e.type)||L.isMap(e.type)}function mE(e){return $T(e)?!1:L.isStruct(e.type)&&e.metadata.get(`ARROW:extension:name`)===`interval`||L.isInterval(e.type)}function hE(e,t){let n;if(t===F.MILLISECOND)n=1e3;else if(t===F.MICROSECOND)n=1e3*1e3;else if(t===F.NANOSECOND)n=1e3*1e3*1e3;else return Number(e);return typeof e==`bigint`&&!Number.isSafeInteger(Number(e))?Number(e/BigInt(n)):Number(e)/n}function gE(e,t){let n=hE(e,t?.type?.unit??F.SECOND);return YT(n)}function _E(e,t){let n=gE(e,t);return qT(n,n.getMilliseconds()===0?`HH:mm:ss`:`HH:mm:ss.SSS`)}function vE(e){return e instanceof Date||typeof e==`number`&&Number.isFinite(e)?qT(e,`yyyy-MM-dd`):(console.warn(`Unsupported date value: ${e}`),String(e))}function yE(e,t){if(!(e instanceof Date||typeof e==`number`&&Number.isFinite(e)))return console.warn(`Unsupported datetime value: ${e}`),null;let n,r=t?.type?.timezone;return n=r?new vv(e,r):new vv(e),XT(n,Date)}function bE(e,t){let n=t?.type?.scale||0,r=vw.bigNumToString(new vw.BN(e)).padStart(n,`0`);if(n===0)return r;let i=``;r.startsWith(`-`)&&(i=`-`,r=r.slice(1));let a=r.slice(0,-n)||`0`,o=QT(r.slice(-n),`0`)||``;return`${i}${a}${o?`.${o}`:``}`}new Intl.NumberFormat(`en-US`,{style:`decimal`,maximumFractionDigits:4,minimumFractionDigits:4,useGrouping:!0});function xE(e){let t=e[0],n=e[1],r=[];return t!==0&&r.push(`${t} year${t>1?`s`:``}`),n!==0&&r.push(`${n} month${n>1?`s`:``}`),r.length?r.join(` `):`0 months`}function SE(e,t){if(L.isInterval(t?.type))return xE(e);let n=t&&t.metadata.get(`ARROW:extension:name`);if(n&&n===`pandas.interval`){let n=JSON.parse(t.metadata.get(`ARROW:extension:metadata`)),{closed:r}=n,i=e.toJSON(),a=r===`both`||r===`left`?`[`:`(`,o=r===`both`||r===`right`?`]`:`)`,s=wE(i.left,t.type?.children?.[0]),c=wE(i.right,t.type?.children?.[1]);return`${a+s}, ${c+o}`}return String(e)}function CE(e,t){return t?.type instanceof Ib?JSON.parse(JSON.stringify(e,(e,t)=>{if(eE(t))return typeof t==`bigint`?Number(t):t})):JSON.parse(JSON.stringify(e,(e,t)=>typeof t==`bigint`?Number(t):t))}function wE(e,t){if($T(e))return null;let n=e instanceof Date||Number.isFinite(e);if(n&&uE(t))return vE(e);if(typeof e==`bigint`&&dE(t))return _E(Number(e),t);if(n&&lE(t))return yE(e,t);if(cE(t))throw Error(`Period type is not supported yet`);if(mE(t))return SE(e,t);if(sE(t))throw Error(`Duration type is not supported yet`);return aE(t)?bE(e,t):iE(t)&&Number.isFinite(e)||nE(t)?e:pE(t)||fE(t)?CE(e,t):oE(t)?!!e:String(e)}function TE(e){let t=(e.toArray()||[]).map(e=>e.toJSON())||[],n=t.map(t=>(e.schema.fields.forEach(e=>t[e.name]=wE(t[e.name],e)),t));return n}let EE=function(e){return e.ORIGIN_PRIVATE_FS=`origin-private-fs`,e.NODE_FS=`node-fs`,e}({});async function DE(e){let t=Re(e,{logger:!1}),n,r,i=await tE();if(i===`browser`){if(t.bundles===void 0){let{getBundles:e}=await oe(async()=>{let{getBundles:e}=await import(`./default-browser-DBEOGewc.js`);return{getBundles:e}},[]);t.bundles=await e()}r=await fv(await t.bundles),n=new Worker(r.mainWorker)}else if(i===`node`){if(t.bundles===void 0){let{getBundles:e}=await oe(async()=>{let{getBundles:e}=await import(`./default-node-CfSUWdLW.js`);return{getBundles:e}},__vite__mapDeps([3,1,2]));t.bundles=await e()}r=await fv(await t.bundles);let e=r.mainWorker;e.startsWith(`/@fs/`)&&(e=e.replace(`/@fs/`,`file://`));let i=await oe(()=>import(`./browser-BADqPKKy.js`),[]);n=new i.default(e,{type:`module`})}else throw Error(`Unsupported environment: ${i}`);let a;a=t.logger===!0?new z_:t.logger===!1?new R_:t.logger;let o=new X_(a,n);if(await o.instantiate(r.mainModule,r.pthreadWorker),t.storage)switch(t.storage.type){case EE.ORIGIN_PRIVATE_FS:try{let e=t.storage.path;e.startsWith(`/`)&&(e=e.slice(1)),await o.open({path:`opfs://${e}`,accessMode:t.storage.accessMode})}catch(e){throw await o.terminate(),await n.terminate(),e}break;case EE.NODE_FS:try{await o.open({path:t.storage.path,accessMode:t.storage.accessMode,useDirectIO:!0})}catch(e){throw await o.terminate(),await n.terminate(),e}break}let s=await o.connect();async function c(e,t=[]){if(!t||t.length===0){let t=await s.query(e);return{_results:t,_schema:t.schema,columns:t.schema.fields,rows:TE(t)}}let n=await s.prepare(e),r=await n.query(...t);return n.close(),{_results:r,_schema:r.schema,columns:r.schema.fields,rows:TE(r)}}return{worker:n,db:o,conn:s,query:async(e,t=[])=>c(e,t).then(e=>e.rows),queryWithColumns:async(e,t=[])=>c(e,t),close:async()=>{await s.close(),await o.terminate(),await n.terminate()}}}async function OE(e,t){await(await e).conn.send(`BEGIN TRANSACTION`);try{let n=await t(e);return await(await e).conn.send(`COMMIT`),n}catch(t){throw await(await e).conn.send(`ROLLBACK`),t}}async function kE(e,t,n){await(await e).conn.send(`SAVEPOINT ${t}`);try{let r=await n(e);return await(await e).conn.send(`RELEASE SAVEPOINT ${t}`),r}catch(n){throw await(await e).conn.send(`ROLLBACK TO SAVEPOINT ${t}`),n}}const J=Symbol.for(`drizzle:entityKind`);function Y(e,t){if(!e||typeof e!=`object`)return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,J))throw Error(`Class "${t.name??``}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(J in n&&n[J]===t[J])return!0;n=Object.getPrototypeOf(n)}return!1}var AE=class{constructor(e,t){this.table=e,this.config=t,this.name=t.name,this.keyAsName=t.keyAsName,this.notNull=t.notNull,this.default=t.default,this.defaultFn=t.defaultFn,this.onUpdateFn=t.onUpdateFn,this.hasDefault=t.hasDefault,this.primary=t.primaryKey,this.isUnique=t.isUnique,this.uniqueName=t.uniqueName,this.uniqueType=t.uniqueType,this.dataType=t.dataType,this.columnType=t.columnType,this.generated=t.generated,this.generatedIdentity=t.generatedIdentity}static[J]=`Column`;name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(e){return e}mapToDriverValue(e){return e}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!==`byDefault`}},jE=class{static[J]=`ColumnBuilder`;config;constructor(e,t,n){this.config={name:e,keyAsName:e===``,notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:t,columnType:n,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(e){return this.config.default=e,this.config.hasDefault=!0,this}$defaultFn(e){return this.config.defaultFn=e,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(e){return this.config.onUpdateFn=e,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(e){this.config.name===``&&(this.config.name=e)}};const ME=Symbol.for(`drizzle:Name`);var NE=class{static[J]=`PgForeignKeyBuilder`;reference;_onUpdate=`no action`;_onDelete=`no action`;constructor(e,t){this.reference=()=>{let{name:t,columns:n,foreignColumns:r}=e();return{name:t,columns:n,foreignTable:r[0].table,foreignColumns:r}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=e===void 0?`no action`:e,this}onDelete(e){return this._onDelete=e===void 0?`no action`:e,this}build(e){return new PE(e,this)}},PE=class{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static[J]=`PgForeignKey`;reference;onUpdate;onDelete;getName(){let{name:e,columns:t,foreignColumns:n}=this.reference(),r=t.map(e=>e.name),i=n.map(e=>e.name),a=[this.table[ME],...r,n[0].table[ME],...i];return e??`${a.join(`_`)}_fk`}};function FE(e,...t){return e(...t)}function IE(e,t){return`${e[ME]}_${t.join(`_`)}_unique`}function LE(e,t,n){for(let r=t;rArray.isArray(e)?BE(e):typeof e==`string`?`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`:`${e}`).join(`,`)}}`}var VE=class extends jE{foreignKeyConfigs=[];static[J]=`PgColumnBuilder`;array(e){return new WE(this.config.name,this,e)}references(e,t={}){return this.foreignKeyConfigs.push({ref:e,actions:t}),this}unique(e,t){return this.config.isUnique=!0,this.config.uniqueName=e,this.config.uniqueType=t?.nulls,this}generatedAlwaysAs(e){return this.config.generated={as:e,type:`always`,mode:`stored`},this}buildForeignKeys(e,t){return this.foreignKeyConfigs.map(({ref:n,actions:r})=>FE((n,r)=>{let i=new NE(()=>{let t=n();return{columns:[e],foreignColumns:[t]}});return r.onUpdate&&i.onUpdate(r.onUpdate),r.onDelete&&i.onDelete(r.onDelete),i.build(t)},n,r))}buildExtraConfigColumn(e){return new UE(e,this.config)}},HE=class extends AE{constructor(e,t){t.uniqueName||=IE(e,[t.name]),super(e,t),this.table=e}static[J]=`PgColumn`},UE=class extends HE{static[J]=`ExtraConfigColumn`;getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??`asc`,nulls:this.config.nulls??`last`,opClass:this.config.opClass};defaultConfig={order:`asc`,nulls:`last`,opClass:void 0};asc(){return this.indexConfig.order=`asc`,this}desc(){return this.indexConfig.order=`desc`,this}nullsFirst(){return this.indexConfig.nulls=`first`,this}nullsLast(){return this.indexConfig.nulls=`last`,this}op(e){return this.indexConfig.opClass=e,this}},WE=class extends VE{static[J]=`PgArrayBuilder`;constructor(e,t,n){super(e,`array`,`PgArray`),this.config.baseBuilder=t,this.config.size=n}build(e){let t=this.config.baseBuilder.build(e);return new GE(e,this.config,t)}},GE=class e extends HE{constructor(e,t,n,r){super(e,t),this.baseColumn=n,this.range=r,this.size=t.size}size;static[J]=`PgArray`;getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size==`number`?this.size:``}]`}mapFromDriverValue(e){return typeof e==`string`&&(e=zE(e)),e.map(e=>this.baseColumn.mapFromDriverValue(e))}mapToDriverValue(t,n=!1){let r=t.map(t=>t===null?null:Y(this.baseColumn,e)?this.baseColumn.mapToDriverValue(t,!0):this.baseColumn.mapToDriverValue(t));return n?r:BE(r)}};const KE=Symbol.for(`drizzle:isPgEnum`);function qE(e){return!!e&&typeof e==`function`&&KE in e&&e[KE]===!0}var JE=class{static[J]=`Subquery`;constructor(e,t,n,r=!1,i=[]){this._={brand:`Subquery`,sql:e,selectedFields:t,alias:n,isWith:r,usedTables:i}}},YE=class extends JE{static[J]=`WithSubquery`};const XE={startActiveSpan(e,t){return t()}},ZE=Symbol.for(`drizzle:ViewBaseConfig`),QE=Symbol.for(`drizzle:Schema`),$E=Symbol.for(`drizzle:Columns`),eD=Symbol.for(`drizzle:ExtraConfigColumns`),tD=Symbol.for(`drizzle:OriginalName`),nD=Symbol.for(`drizzle:BaseName`),rD=Symbol.for(`drizzle:IsAlias`),iD=Symbol.for(`drizzle:ExtraConfigBuilder`),aD=Symbol.for(`drizzle:IsDrizzleTable`);var X=class{static[J]=`Table`;static Symbol={Name:ME,Schema:QE,OriginalName:tD,Columns:$E,ExtraConfigColumns:eD,BaseName:nD,IsAlias:rD,ExtraConfigBuilder:iD};[ME];[tD];[QE];[$E];[eD];[nD];[rD]=!1;[aD]=!0;[iD]=void 0;constructor(e,t,n){this[ME]=this[tD]=e,this[QE]=t,this[nD]=n}};function oD(e){return e[ME]}function sD(e){return`${e[QE]??`public`}.${e[ME]}`}function cD(e){return e!=null&&typeof e.getSQL==`function`}function lD(e){let t={sql:``,params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||=[],t.typings.push(...n.typings));return t}var uD=class{static[J]=`StringChunk`;value;constructor(e){this.value=Array.isArray(e)?e:[e]}getSQL(){return new Z([this])}},Z=class e{constructor(e){this.queryChunks=e;for(let t of e)if(Y(t,X)){let e=t[X.Symbol.Schema];this.usedTables.push(e===void 0?t[X.Symbol.Name]:e+`.`+t[X.Symbol.Name])}}static[J]=`SQL`;decoder=pD;shouldInlineParams=!1;usedTables=[];append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return XE.startActiveSpan(`drizzle.buildSQL`,t=>{let n=this.buildQueryFromSourceParams(this.queryChunks,e);return t?.setAttributes({"drizzle.query.text":n.sql,"drizzle.query.params":JSON.stringify(n.params)}),n})}buildQueryFromSourceParams(t,n){let r=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:i,escapeName:a,escapeParam:o,prepareTyping:s,inlineParams:c,paramStartIndex:l}=r;return lD(t.map(t=>{if(Y(t,uD))return{sql:t.value.join(``),params:[]};if(Y(t,dD))return{sql:a(t.value),params:[]};if(t===void 0)return{sql:``,params:[]};if(Array.isArray(t)){let e=[new uD(`(`)];for(let[n,r]of t.entries())e.push(r),ne},mD={mapToDriverValue:e=>e};({...pD,...mD});var hD=class{constructor(e,t=mD){this.value=e,this.encoder=t}static[J]=`Param`;brand;getSQL(){return new Z([this])}};function Q(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!==``)&&n.push(new uD(e[0]));for(let[r,i]of t.entries())n.push(i,new uD(e[r+1]));return new Z(n)}(e=>{function t(){return new Z([])}e.empty=t;function n(e){return new Z(e)}e.fromList=n;function r(e){return new Z([new uD(e)])}e.raw=r;function i(e,t){let n=[];for(let[r,i]of e.entries())r>0&&t!==void 0&&n.push(t),n.push(i);return new Z(n)}e.join=i;function a(e){return new dD(e)}e.identifier=a;function o(e){return new gD(e)}e.placeholder=o;function s(e,t){return new hD(e,t)}e.param=s})(Q||={}),(e=>{class t{constructor(e,t){this.sql=e,this.fieldAlias=t}static[J]=`SQL.Aliased`;isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(Z||={});var gD=class{constructor(e){this.name=e}static[J]=`Placeholder`;getSQL(){return new Z([this])}};function _D(e,t){return e.map(e=>{if(Y(e,gD)){if(!(e.name in t))throw Error(`No value for placeholder "${e.name}" was provided`);return t[e.name]}if(Y(e,hD)&&Y(e.value,gD)){if(!(e.value.name in t))throw Error(`No value for placeholder "${e.value.name}" was provided`);return e.encoder.mapToDriverValue(t[e.value.name])}return e})}const vD=Symbol.for(`drizzle:IsDrizzleView`);var yD=class{static[J]=`View`;[ZE];[vD]=!0;constructor({name:e,schema:t,selectedFields:n,query:r}){this[ZE]={name:e,originalName:e,schema:t,selectedFields:n,query:r,isExisting:!r,isAlias:!1}}getSQL(){return new Z([this])}};AE.prototype.getSQL=function(){return new Z([this])},X.prototype.getSQL=function(){return new Z([this])},JE.prototype.getSQL=function(){return new Z([this])};var bD=class{constructor(e){this.table=e}static[J]=`ColumnAliasProxyHandler`;get(e,t){return t===`table`?this.table:e[t]}},xD=class{constructor(e,t){this.alias=e,this.replaceOriginalName=t}static[J]=`TableAliasProxyHandler`;get(e,t){if(t===X.Symbol.IsAlias)return!0;if(t===X.Symbol.Name||this.replaceOriginalName&&t===X.Symbol.OriginalName)return this.alias;if(t===ZE)return{...e[ZE],name:this.alias,isAlias:!0};if(t===X.Symbol.Columns){let t=e[X.Symbol.Columns];if(!t)return t;let n={};return Object.keys(t).map(r=>{n[r]=new Proxy(t[r],new bD(new Proxy(e,this)))}),n}let n=e[t];return Y(n,AE)?new Proxy(n,new bD(new Proxy(e,this))):n}};function SD(e,t){return new Proxy(e,new xD(t,!1))}function CD(e,t){return new Proxy(e,new bD(new Proxy(e.table,new xD(t,!1))))}function wD(e,t){return new Z.Aliased(TD(e.sql,t),e.fieldAlias)}function TD(e,t){return Q.join(e.queryChunks.map(e=>Y(e,AE)?CD(e,t):Y(e,Z)?TD(e,t):Y(e,Z.Aliased)?wD(e,t):e))}var ED=class extends Error{static[J]=`DrizzleError`;constructor({message:e,cause:t}){super(e),this.name=`DrizzleError`,this.cause=t}},DD=class e extends Error{constructor(t,n,r){super(`Failed query: ${t} +`;(function(e){kc(t,e);function t(n){var r=this,i=Object.assign(t.defaults,n),a=i.maxKernelSize,o=Ac(i,[`maxKernelSize`]);return r=e.call(this,jc,Mc.replace("${maxKernelSize}",a.toFixed(1)))||this,Object.assign(r,o),r}return Object.defineProperty(t.prototype,`center`,{get:function(){return this.uniforms.uCenter},set:function(e){this.uniforms.uCenter=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`strength`,{get:function(){return this.uniforms.uStrength},set:function(e){this.uniforms.uStrength=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`innerRadius`,{get:function(){return this.uniforms.uInnerRadius},set:function(e){this.uniforms.uInnerRadius=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`radius`,{get:function(){return this.uniforms.uRadius},set:function(e){(e<0||e===1/0)&&(e=-1),this.uniforms.uRadius=e},enumerable:!1,configurable:!0}),t.defaults={strength:.1,center:[0,0],innerRadius:0,radius:-1,maxKernelSize:32},t})(_);function Nc(){let e=-1,t,n=-1;function r(r,i){(i>=e||i{let{post:e,data:t}=ue({name:`airi-stores-live2d`}),n=g([]),r=e=>{n.value.push(e)};function i(){e({type:`should-update-view`}),n.value.forEach(e=>e())}on(t,e=>{e.type===`should-update-view`&&n.value.forEach(e=>e())});let a=pe(`settings/live2d/position`,{x:0,y:0}),o=Cn(()=>({x:`${a.value.x}%`,y:`${a.value.y}%`})),s=g({group:`Idle`,index:0}),c=g([]),l=pe(`settings/live2d/motion-map`,{}),u=pe(`settings/live2d/scale`,1);return{position:a,positionInPercentageString:o,currentMotion:s,availableMotions:c,motionMap:l,scale:u,onShouldUpdateView:r,shouldUpdateView:i}});var Fc=Jt({__name:`Model`,props:Zt({modelSrc:{},app:{},mouthOpenSize:{default:0},width:{},height:{},paused:{type:Boolean,default:!1},focusAt:{default:()=>({x:0,y:0})},disableFocusAt:{type:Boolean,default:!1},xOffset:{},yOffset:{},scale:{default:1}},{state:{default:`pending`},stateModifiers:{}}),emits:Zt([`modelLoaded`],[`update:state`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=an(e,`state`);function o(){let e=Number.parseFloat(String(r.xOffset))||0,t=Number.parseFloat(String(r.yOffset))||0;return String(r.xOffset).endsWith(`%`)&&(e=Number.parseFloat(String(r.xOffset).replace(`%`,``))/100*r.width),String(r.yOffset).endsWith(`%`)&&(t=Number.parseFloat(String(r.yOffset).replace(`%`,``))/100*r.height),{xOffset:e,yOffset:t}}let s=Dn(()=>r.modelSrc),c=g(!1),l=Cn(()=>o()),u=Dn(()=>r.app),d=Dn(()=>r.paused),f=Dn(()=>r.focusAt),p=g(),m=g(0),h=g(0),ne=Cn(()=>Math.max(0,Math.min(100,r.mouthOpenSize))),ie=g(0),ae=de(),oe=le(ce),ue=Cn(()=>oe.between(`sm`,`md`).value||oe.smaller(`sm`).value),fe=Nc(),pe=Tn(new ps({alpha:.2,blur:0,distance:20,rotation:45}));function he(){return p.value.internalModel.coreModel}function ge(){if(!p.value)return;let e=2.2;ue.value&&(e=2.2);let t=r.height*.95/h.value*e,n=r.width*.95/m.value*e,i=Math.min(t,n);p.value.scale.set(i*r.scale,i*r.scale),p.value.x=r.width/2+l.value.xOffset,p.value.y=r.height+l.value.yOffset}let{currentMotion:_e,availableMotions:ve,motionMap:ye}=se(Pc()),{themeColorsHue:be,themeColorsHueDynamic:xe}=se(me()),Se=g({group:`Idle`,index:0});async function Ce(){if(await Le(c).not.toBeTruthy(),c.value=!0,a.value=`loading`,!u.value){c.value=!1,a.value=`mounted`;return}if(p.value&&=(u.value.stage.removeChild(p.value),p.value.destroy(),void 0),!s.value){console.warn(`No Live2D model source provided.`),c.value=!1,a.value=`mounted`;return}try{let e=new Nn;if(s.value.startsWith(`blob:`)){let t=await fetch(s.value),n=await t.blob();await Mn.setupLive2DModel(e,[new File([n],`model.zip`)],{autoInteract:!1})}else await Mn.setupLive2DModel(e,s.value,{autoInteract:!1});ve.value.forEach(e=>{e.motionName in ee?ye.value[e.fileName]=e.motionName:ye.value[e.fileName]=te}),p.value=e,u.value.stage.addChild(p.value),m.value=p.value.width,h.value=p.value.height,p.value.anchor.set(.5,.5),ge(),p.value.on(`hit`,e=>{p.value&&e.includes(`body`)&&p.value.motion(`tap_body`)});let t=p.value.internalModel,n=t.coreModel,r=t.motionManager;n.setParameterValueById(`ParamMouthOpenY`,ne.value),ve.value=Object.entries(r.definitions).flatMap(([e,t])=>t?.map((t,n)=>({motionName:e,motionIndex:n,fileName:t.File}))||[]).filter(Boolean),r.groups.idle&&r.motionGroups[r.groups.idle]?.forEach(e=>{e._motionData.curves.forEach(e=>{(e.id===`ParamEyeBallX`||e.id===`ParamEyeBallY`)&&(e.id=`_${e.id}`)})});let a=r.update;r.update=function(e,n){return ie.value=n,a?.call(this,e,n),!r.state.currentGroup||r.state.currentGroup===r.groups.idle?(fe.update(t,n),t.eyeBlink!=null&&t.eyeBlink.updateParameters(e,(n-ie.value)/1e3),!0):!1},r.on(`motionStart`,(e,t)=>{Se.value={group:e,index:t}}),i(`modelLoaded`)}finally{c.value=!1,a.value=`mounted`}}async function we(e,t){await p.value?.motion(e,t,Pn.FORCE)}let Te=Re(ge,100),Ee=g(),De=g(0);function Oe(){if(p.value){let e=getComputedStyle(Ee.value).backgroundColor;pe.value.color=Number(re(e).replace(`#`,`0x`)),p.value.filters=[pe.value]}}on([()=>r.width,()=>r.height],()=>Te()),on(s,async()=>await Ce(),{immediate:!0}),on(ae,Oe,{immediate:!0}),on([p,be],Oe),on(l,ge),on(()=>r.scale,ge);function ke(){Oe(),De.value=requestAnimationFrame(ke)}on(xe,()=>{xe.value?De.value=requestAnimationFrame(ke):(cancelAnimationFrame(De.value),De.value=0)},{immediate:!0}),on(ne,e=>he().setParameterValueById(`ParamMouthOpenY`,e)),on(_e,e=>we(e.group,e.index)),on(d,e=>e?u.value?.stop():u.value?.start()),on(f,e=>{p.value&&(r.disableFocusAt||p.value.focus(e.x,e.y))}),$t(async()=>{Oe()});function Ae(){cancelAnimationFrame(De.value),p.value&&u.value?.stage.removeChild(p.value)}en(()=>{Ae()});function je(){return ve.value}return t({setMotion:we,listMotionGroups:je}),(e,t)=>(tn(),Kt(xn,null,[Ut(`div`,{ref_key:`dropShadowColorComputer`,ref:Ee,hidden:``,bg:`primary-400 dark:primary-500`},null,512),rn(e.$slots,`default`)],64))}}),Ic=Fc,Lc=Jt({__name:`Live2D`,props:Zt({modelSrc:{},paused:{type:Boolean,default:!1},mouthOpenSize:{default:0},focusAt:{default:()=>({x:0,y:0})},disableFocusAt:{type:Boolean},xOffset:{},yOffset:{},scale:{default:1}},{state:{default:`pending`},stateModifiers:{},canvasState:{default:`pending`},canvasStateModifiers:{},modelState:{default:`pending`},modelStateModifiers:{}}),emits:[`update:state`,`update:canvasState`,`update:modelState`],setup(e,{expose:t}){let n=an(e,`state`),r=an(e,`canvasState`),i=an(e,`modelState`),a=g();return on([i,r],()=>{n.value=i.value===`mounted`&&r.value===`mounted`?`mounted`:`loading`}),t({canvasElement:()=>a.value?.canvasElement()}),(e,t)=>(tn(),Wt(ie,{relative:``},{default:Rt(({width:n,height:o})=>[qt(Ha,{ref_key:`live2dCanvasRef`,ref:a,state:r.value,"onUpdate:state":t[1]||=e=>r.value=e,width:n,height:o,resolution:2,"max-h":`100dvh`},{default:Rt(({app:r})=>[qt(Ic,{state:i.value,"onUpdate:state":t[0]||=e=>i.value=e,"model-src":e.modelSrc,app:r,"mouth-open-size":e.mouthOpenSize,width:n,height:o,paused:e.paused,"focus-at":e.focusAt,"x-offset":e.xOffset,"y-offset":e.yOffset,scale:e.scale,"disable-focus-at":e.disableFocusAt},null,8,[`state`,`model-src`,`app`,`mouth-open-size`,`width`,`height`,`paused`,`focus-at`,`x-offset`,`y-offset`,`scale`,`disable-focus-at`])]),_:2},1032,[`state`,`width`,`height`])]),_:1}))}}),Rc=Lc;function y(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function zc(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function Bc(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof b?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function Vc(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:!1}:i?i(t):t}:i}}function Hc(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof zc==`function`?zc(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}const Uc=new TextDecoder(`utf-8`),Wc=e=>Uc.decode(e),Gc=new TextEncoder,Kc=e=>Gc.encode(e),qc=e=>typeof e==`number`,Jc=e=>typeof e==`boolean`,Yc=e=>typeof e==`function`,Xc=e=>e!=null&&Object(e)===e,Zc=e=>Xc(e)&&Yc(e.then),Qc=e=>Xc(e)&&Yc(e[Symbol.iterator]),$c=e=>Xc(e)&&Yc(e[Symbol.asyncIterator]),el=e=>Xc(e)&&Xc(e.schema),tl=e=>Xc(e)&&`done`in e&&`value`in e,nl=e=>Xc(e)&&Yc(e.stat)&&qc(e.fd),rl=e=>Xc(e)&&ol(e.body),il=e=>`_getDOMStream`in e&&`_getNodeStream`in e,al=e=>Xc(e)&&Yc(e.abort)&&Yc(e.getWriter)&&!il(e),ol=e=>Xc(e)&&Yc(e.cancel)&&Yc(e.getReader)&&!il(e),sl=e=>Xc(e)&&Yc(e.end)&&Yc(e.write)&&Jc(e.writable)&&!il(e),cl=e=>Xc(e)&&Yc(e.read)&&Yc(e.pipe)&&Jc(e.readable)&&!il(e),ll=e=>Xc(e)&&Yc(e.clear)&&Yc(e.bytes)&&Yc(e.position)&&Yc(e.setPosition)&&Yc(e.capacity)&&Yc(e.getBufferIdentifier)&&Yc(e.createLong),ul=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function dl(e){let t=e[0]?[e[0]]:[],n,r,i,a;for(let o,s,c=0,l=0,u=e.length;++ce+t.byteLength,0),i,a,o,s=0,c=-1,l=Math.min(t||1/0,r);for(let e=n.length;++cml(Int32Array,e),gl=e=>ml(BigInt64Array,e),_l=e=>ml(Uint8Array,e),vl=e=>(e.next(),e);function*yl(e,t){let n=function*(e){yield e},r=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof ul?n(t):Qc(t)?t:n(t);return yield*vl((function*(t){let n=null;do n=t.next(yield ml(e,n));while(!n.done)})(r[Symbol.iterator]())),new e}const bl=e=>yl(Uint8Array,e);function xl(e,t){return Bc(this,arguments,function*(){if(Zc(t))return yield b(yield b(yield*Vc(Hc(xl(e,yield b(t))))));let n=function(e){return Bc(this,arguments,function*(){yield yield b(yield b(e))})},r=function(e){return Bc(this,arguments,function*(){yield b(yield*Vc(Hc(vl((function*(e){let t=null;do t=e.next(yield t?.value);while(!t.done)})(e[Symbol.iterator]())))))})},i=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof ul?n(t):Qc(t)?r(t):$c(t)?t:n(t);return yield b(yield*Vc(Hc(vl((function(t){return Bc(this,arguments,function*(){let n=null;do n=yield b(t.next(yield yield b(ml(e,n))));while(!n.done)})})(i[Symbol.asyncIterator]()))))),yield b(new e)})}const Sl=e=>xl(Uint8Array,e);function Cl(e,t,n){if(e!==0){n=n.slice(0,t);for(let t=-1,r=n.length;++t0)do if(e[n]!==t[n])return!1;while(++n(e.next(),e);function*Dl(e){let t,n=!1,r=[],i,a,o,s=0;function c(){return a===`peek`?pl(r,o)[0]:([i,r,s]=pl(r,o),i)}({cmd:a,size:o}=(yield(()=>null)())||{cmd:`read`,size:0});let l=bl(e)[Symbol.iterator]();try{do if({done:t,value:i}=Number.isNaN(o-s)?l.next():l.next(o-s),!t&&i.byteLength>0&&(r.push(i),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield c());while(onull)()))||{cmd:`read`,size:0});let l=Sl(e)[Symbol.asyncIterator]();try{do if({done:t,value:i}=Number.isNaN(o-s)?yield b(l.next()):yield b(l.next(o-s)),!t&&i.byteLength>0&&(r.push(i),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield yield b(c()));while(onull)()))||{cmd:`read`,size:0});let l=new Al(e);try{do if({done:t,value:i}=Number.isNaN(o-s)?yield b(l.read()):yield b(l.read(o-s)),!t&&i.byteLength>0&&(r.push(_l(i)),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield yield b(c()));while(o{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return y(this,void 0,void 0,function*(){let{reader:t,source:n}=this;t&&(yield t.cancel(e).catch(()=>{})),n&&n.locked&&this.releaseLock()})}read(e){return y(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array};let t=yield this.reader.read();return!t.done&&(t.value=_l(t)),t})}};const jl=(e,t)=>{let n=e=>r([t,e]),r;return[t,n,new Promise(i=>(r=i)&&e.once(t,n))]};function Ml(e){return Bc(this,arguments,function*(){let t=[],n=`error`,r=!1,i=null,a,o,s=0,c=[],l;function u(){return a===`peek`?pl(c,o)[0]:([l,c,s]=pl(c,o),l)}if({cmd:a,size:o}=(yield yield b((()=>null)()))||{cmd:`read`,size:0},e.isTTY)return yield yield b(new Uint8Array),yield b(null);try{t[0]=jl(e,`end`),t[1]=jl(e,`error`);do{if(t[2]=jl(e,`readable`),[n,i]=yield b(Promise.race(t.map(e=>e[2]))),n===`error`)break;if((r=n===`end`)||(Number.isFinite(o-s)?(l=_l(e.read(o-s)),l.byteLength0&&(c.push(l),s+=l.byteLength)),r||o<=s)do({cmd:a,size:o}=yield yield b(u()));while(o{for(let[n,r]of t)e.off(n,r);try{let t=e.destroy;t&&t.call(e,n),n=void 0}catch(e){n=e||n}finally{n==null?r():i(n)}})}})}var Nl;(function(e){e[e.V1=0]=`V1`,e[e.V2=1]=`V2`,e[e.V3=2]=`V3`,e[e.V4=3]=`V4`,e[e.V5=4]=`V5`})(Nl||={});var Pl;(function(e){e[e.Sparse=0]=`Sparse`,e[e.Dense=1]=`Dense`})(Pl||={});var Fl;(function(e){e[e.HALF=0]=`HALF`,e[e.SINGLE=1]=`SINGLE`,e[e.DOUBLE=2]=`DOUBLE`})(Fl||={});var Il;(function(e){e[e.DAY=0]=`DAY`,e[e.MILLISECOND=1]=`MILLISECOND`})(Il||={});var x;(function(e){e[e.SECOND=0]=`SECOND`,e[e.MILLISECOND=1]=`MILLISECOND`,e[e.MICROSECOND=2]=`MICROSECOND`,e[e.NANOSECOND=3]=`NANOSECOND`})(x||={});var Ll;(function(e){e[e.YEAR_MONTH=0]=`YEAR_MONTH`,e[e.DAY_TIME=1]=`DAY_TIME`,e[e.MONTH_DAY_NANO=2]=`MONTH_DAY_NANO`})(Ll||={});const Rl=new Int32Array(2),zl=new Float32Array(Rl.buffer),Bl=new Float64Array(Rl.buffer),Vl=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Hl;(function(e){e[e.UTF8_BYTES=1]=`UTF8_BYTES`,e[e.UTF16_STRING=2]=`UTF16_STRING`})(Hl||={});var Ul=class e{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new e(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){zl[0]=t,this.writeInt32(e,Rl[0])}writeFloat64(e,t){Bl[0]=t,this.writeInt32(e,Rl[Vl?0:1]),this.writeInt32(e+4,Rl[Vl?1:0])}getBufferIdentifier(){if(this.bytes_.lengththis.minalign&&(this.minalign=t);let r=~(this.bb.capacity()-this.space+n)+1&t-1;for(;this.space=0&&this.vtable[t]==0;t--);let n=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]==0?0:e-this.vtable[t]);this.addInt16(e-this.object_start);let r=(n+2)*2;this.addInt16(r);let i=0,a=this.space;outer_loop:for(t=0;t=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+r),this.addOffset(e),r&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){let n=this.bb.capacity()-e,r=n-this.bb.readInt32(n),i=t=0;n--)e.addInt32(t[n]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){let t=e.endObject();return t}static createUnion(t,n,r){return e.startUnion(t),e.addMode(t,n),e.addTypeIds(t,r),e.endUnion(t)}},xu=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(e){e.startObject(0)}static endUtf8(e){let t=e.endObject();return t}static createUtf8(t){return e.startUtf8(t),e.endUtf8(t)}},Su;(function(e){e[e.NONE=0]=`NONE`,e[e.Null=1]=`Null`,e[e.Int=2]=`Int`,e[e.FloatingPoint=3]=`FloatingPoint`,e[e.Binary=4]=`Binary`,e[e.Utf8=5]=`Utf8`,e[e.Bool=6]=`Bool`,e[e.Decimal=7]=`Decimal`,e[e.Date=8]=`Date`,e[e.Time=9]=`Time`,e[e.Timestamp=10]=`Timestamp`,e[e.Interval=11]=`Interval`,e[e.List=12]=`List`,e[e.Struct_=13]=`Struct_`,e[e.Union=14]=`Union`,e[e.FixedSizeBinary=15]=`FixedSizeBinary`,e[e.FixedSizeList=16]=`FixedSizeList`,e[e.Map=17]=`Map`,e[e.Duration=18]=`Duration`,e[e.LargeBinary=19]=`LargeBinary`,e[e.LargeUtf8=20]=`LargeUtf8`,e[e.LargeList=21]=`LargeList`,e[e.RunEndEncoded=22]=`RunEndEncoded`})(Su||={});var Cu=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):Su.NONE}type(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){let t=this.bb.__offset(this.bb_pos,12);return t?(e||new tu).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(t,n){let r=this.bb.__offset(this.bb_pos,14);return r?(n||new e).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+t*4),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,16);return n?(t||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,Su.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){let t=e.endObject();return t}},wu=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ql.Little}fields(e,t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new Cu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+e*8):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,Ql.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){let t=e.endObject();return t}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(t,n,r,i,a){return e.startSchema(t),e.addEndianness(t,n),e.addFields(t,r),e.addCustomMetadata(t,i),e.addFeatures(t,a),e.endSchema(t)}},Tu;(function(e){e[e.NONE=0]=`NONE`,e[e.Schema=1]=`Schema`,e[e.DictionaryBatch=2]=`DictionaryBatch`,e[e.RecordBatch=3]=`RecordBatch`,e[e.Tensor=4]=`Tensor`,e[e.SparseTensor=5]=`SparseTensor`})(Tu||={});var S;(function(e){e[e.NONE=0]=`NONE`,e[e.Null=1]=`Null`,e[e.Int=2]=`Int`,e[e.Float=3]=`Float`,e[e.Binary=4]=`Binary`,e[e.Utf8=5]=`Utf8`,e[e.Bool=6]=`Bool`,e[e.Decimal=7]=`Decimal`,e[e.Date=8]=`Date`,e[e.Time=9]=`Time`,e[e.Timestamp=10]=`Timestamp`,e[e.Interval=11]=`Interval`,e[e.List=12]=`List`,e[e.Struct=13]=`Struct`,e[e.Union=14]=`Union`,e[e.FixedSizeBinary=15]=`FixedSizeBinary`,e[e.FixedSizeList=16]=`FixedSizeList`,e[e.Map=17]=`Map`,e[e.Duration=18]=`Duration`,e[e.LargeBinary=19]=`LargeBinary`,e[e.LargeUtf8=20]=`LargeUtf8`,e[e.Dictionary=-1]=`Dictionary`,e[e.Int8=-2]=`Int8`,e[e.Int16=-3]=`Int16`,e[e.Int32=-4]=`Int32`,e[e.Int64=-5]=`Int64`,e[e.Uint8=-6]=`Uint8`,e[e.Uint16=-7]=`Uint16`,e[e.Uint32=-8]=`Uint32`,e[e.Uint64=-9]=`Uint64`,e[e.Float16=-10]=`Float16`,e[e.Float32=-11]=`Float32`,e[e.Float64=-12]=`Float64`,e[e.DateDay=-13]=`DateDay`,e[e.DateMillisecond=-14]=`DateMillisecond`,e[e.TimestampSecond=-15]=`TimestampSecond`,e[e.TimestampMillisecond=-16]=`TimestampMillisecond`,e[e.TimestampMicrosecond=-17]=`TimestampMicrosecond`,e[e.TimestampNanosecond=-18]=`TimestampNanosecond`,e[e.TimeSecond=-19]=`TimeSecond`,e[e.TimeMillisecond=-20]=`TimeMillisecond`,e[e.TimeMicrosecond=-21]=`TimeMicrosecond`,e[e.TimeNanosecond=-22]=`TimeNanosecond`,e[e.DenseUnion=-23]=`DenseUnion`,e[e.SparseUnion=-24]=`SparseUnion`,e[e.IntervalDayTime=-25]=`IntervalDayTime`,e[e.IntervalYearMonth=-26]=`IntervalYearMonth`,e[e.DurationSecond=-27]=`DurationSecond`,e[e.DurationMillisecond=-28]=`DurationMillisecond`,e[e.DurationMicrosecond=-29]=`DurationMicrosecond`,e[e.DurationNanosecond=-30]=`DurationNanosecond`})(S||={});var Eu;(function(e){e[e.OFFSET=0]=`OFFSET`,e[e.DATA=1]=`DATA`,e[e.VALIDITY=2]=`VALIDITY`,e[e.TYPE=3]=`TYPE`})(Eu||={});function Du(e){if(e===null)return`null`;if(e===void 0)return`undefined`;switch(typeof e){case`number`:return`${e}`;case`bigint`:return`${e}`;case`string`:return`"${e}"`}return typeof e[Symbol.toPrimitive]==`function`?e[Symbol.toPrimitive](`string`):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?`[${[...e].map(e=>Du(e))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(e,t)=>typeof t==`bigint`?`${t}`:t)}function Ou(e){if(typeof e==`bigint`&&(e<-(2**53-1)||e>2**53-1))throw TypeError(`${e} is not safe to convert to a number.`);return Number(e)}function ku(e,t){return Ou(e/t)+Ou(e%t)/Ou(t)}const Au=Symbol.for(`isArrowBigNum`);function ju(e,...t){return t.length===0?Object.setPrototypeOf(ml(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}ju.prototype[Au]=!0,ju.prototype.toJSON=function(){return`"${Ru(this)}"`},ju.prototype.valueOf=function(e){return Lu(this,e)},ju.prototype.toString=function(){return Ru(this)},ju.prototype[Symbol.toPrimitive]=function(e=`default`){switch(e){case`number`:return Lu(this);case`string`:return Ru(this);case`default`:return zu(this)}return Ru(this)};function Mu(...e){return ju.apply(this,e)}function Nu(...e){return ju.apply(this,e)}function Pu(...e){return ju.apply(this,e)}Object.setPrototypeOf(Mu.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(Nu.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(Pu.prototype,Object.create(Uint32Array.prototype)),Object.assign(Mu.prototype,ju.prototype,{constructor:Mu,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(Nu.prototype,ju.prototype,{constructor:Nu,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(Pu.prototype,ju.prototype,{constructor:Pu,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const Fu=BigInt(4294967296)*BigInt(4294967296),Iu=Fu-BigInt(1);function Lu(e,t){let{buffer:n,byteOffset:r,byteLength:i,signed:a}=e,o=new BigUint64Array(n,r,i/8),s=a&&o.at(-1)&BigInt(1)<=0)return Bu(e);t=t.slice();let r=1;for(let e=0;e(e.children=null,e.ArrayType=Array,e.OffsetArrayType=Int32Array,e[Symbol.toStringTag]=`DataType`))(C.prototype);var ud=class extends C{constructor(){super(S.Null)}toString(){return`Null`}};Uu=Symbol.toStringTag,ud[Uu]=(e=>e[Symbol.toStringTag]=`Null`)(ud.prototype);var dd=class extends C{constructor(e,t){super(S.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?`I`:`Ui`}nt${this.bitWidth}`}};Wu=Symbol.toStringTag,dd[Wu]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]=`Int`))(dd.prototype);var fd=class extends dd{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},pd=class extends dd{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},md=class extends dd{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},hd=class extends dd{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},gd=class extends dd{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},_d=class extends dd{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},vd=class extends dd{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},yd=class extends dd{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(fd.prototype,`ArrayType`,{value:Int8Array}),Object.defineProperty(pd.prototype,`ArrayType`,{value:Int16Array}),Object.defineProperty(md.prototype,`ArrayType`,{value:Int32Array}),Object.defineProperty(hd.prototype,`ArrayType`,{value:BigInt64Array}),Object.defineProperty(gd.prototype,`ArrayType`,{value:Uint8Array}),Object.defineProperty(_d.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(vd.prototype,`ArrayType`,{value:Uint32Array}),Object.defineProperty(yd.prototype,`ArrayType`,{value:BigUint64Array});var bd=class extends C{constructor(e){super(S.Float),this.precision=e}get ArrayType(){switch(this.precision){case Fl.HALF:return Uint16Array;case Fl.SINGLE:return Float32Array;case Fl.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};Gu=Symbol.toStringTag,bd[Gu]=(e=>(e.precision=null,e[Symbol.toStringTag]=`Float`))(bd.prototype);var xd=class extends bd{constructor(){super(Fl.HALF)}},Sd=class extends bd{constructor(){super(Fl.SINGLE)}},Cd=class extends bd{constructor(){super(Fl.DOUBLE)}};Object.defineProperty(xd.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(Sd.prototype,`ArrayType`,{value:Float32Array}),Object.defineProperty(Cd.prototype,`ArrayType`,{value:Float64Array});var wd=class extends C{constructor(){super(S.Binary)}toString(){return`Binary`}};Ku=Symbol.toStringTag,wd[Ku]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Binary`))(wd.prototype);var Td=class extends C{constructor(){super(S.LargeBinary)}toString(){return`LargeBinary`}};qu=Symbol.toStringTag,Td[qu]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeBinary`))(Td.prototype);var Ed=class extends C{constructor(){super(S.Utf8)}toString(){return`Utf8`}};Ju=Symbol.toStringTag,Ed[Ju]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Utf8`))(Ed.prototype);var Dd=class extends C{constructor(){super(S.LargeUtf8)}toString(){return`LargeUtf8`}};Yu=Symbol.toStringTag,Dd[Yu]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeUtf8`))(Dd.prototype);var Od=class extends C{constructor(){super(S.Bool)}toString(){return`Bool`}};Xu=Symbol.toStringTag,Od[Xu]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Bool`))(Od.prototype);var kd=class extends C{constructor(e,t,n=128){super(S.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?`+`:``}${this.scale}]`}};Zu=Symbol.toStringTag,kd[Zu]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]=`Decimal`))(kd.prototype);var Ad=class extends C{constructor(e){super(S.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Il[this.unit]}>`}get ArrayType(){return this.unit===Il.DAY?Int32Array:BigInt64Array}};Qu=Symbol.toStringTag,Ad[Qu]=(e=>(e.unit=null,e[Symbol.toStringTag]=`Date`))(Ad.prototype);var jd=class extends C{constructor(e,t){super(S.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${x[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};$u=Symbol.toStringTag,jd[$u]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]=`Time`))(jd.prototype);var Md=class extends C{constructor(e,t){super(S.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${x[this.unit]}${this.timezone?`, ${this.timezone}`:``}>`}};ed=Symbol.toStringTag,Md[ed]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Timestamp`))(Md.prototype);var Nd=class extends C{constructor(e){super(S.Interval),this.unit=e}toString(){return`Interval<${Ll[this.unit]}>`}};td=Symbol.toStringTag,Nd[td]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]=`Interval`))(Nd.prototype);var Pd=class extends C{constructor(e){super(S.Duration),this.unit=e}toString(){return`Duration<${x[this.unit]}>`}};nd=Symbol.toStringTag,Pd[nd]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Duration`))(Pd.prototype);var Fd=class extends C{constructor(e){super(S.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};rd=Symbol.toStringTag,Fd[rd]=(e=>(e.children=null,e[Symbol.toStringTag]=`List`))(Fd.prototype);var Id=class extends C{constructor(e){super(S.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};id=Symbol.toStringTag,Id[id]=(e=>(e.children=null,e[Symbol.toStringTag]=`Struct`))(Id.prototype);var Ld=class extends C{constructor(e,t,n){super(S.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((e,t,n)=>(e[t]=n)&&e||e,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(` | `)}>`}};ad=Symbol.toStringTag,Ld[ad]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]=`Union`))(Ld.prototype);var Rd=class extends C{constructor(e){super(S.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};od=Symbol.toStringTag,Rd[od]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`FixedSizeBinary`))(Rd.prototype);var zd=class extends C{constructor(e,t){super(S.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};sd=Symbol.toStringTag,zd[sd]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]=`FixedSizeList`))(zd.prototype);var Bd=class extends C{constructor(e,t=!1){var n,r,i;if(super(S.Map),this.children=[e],this.keysSorted=t,e&&(e.name=`entries`,(n=e?.type)?.children)){let t=(r=e?.type)?.children[0];t&&(t.name=`key`);let n=(i=e?.type)?.children[1];n&&(n.name=`value`)}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};cd=Symbol.toStringTag,Bd[cd]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]=`Map_`))(Bd.prototype);const Vd=(e=>()=>++e)(-1);var Hd=class extends C{constructor(e,t,n,r){super(S.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=n==null?Vd():Ou(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};ld=Symbol.toStringTag,Hd[ld]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]=`Dictionary`))(Hd.prototype);function Ud(e){let t=e;switch(e.typeId){case S.Decimal:return e.bitWidth/32;case S.Interval:return 1+t.unit;case S.FixedSizeList:return t.listSize;case S.FixedSizeBinary:return t.byteWidth;default:return 1}}var w=class{visitMany(e,...t){return e.map((e,n)=>this.visit(e,...t.map(e=>e[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Wd(this,e,t)}getVisitFnByTypeId(e,t=!0){return Gd(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function Wd(e,t,n=!0){return typeof t==`number`?Gd(e,t,n):typeof t==`string`&&t in S?Gd(e,S[t],n):t&&t instanceof C?Gd(e,Kd(t),n):t?.type&&t.type instanceof C?Gd(e,Kd(t.type),n):Gd(e,S.NONE,n)}function Gd(e,t,n=!0){let r=null;switch(t){case S.Null:r=e.visitNull;break;case S.Bool:r=e.visitBool;break;case S.Int:r=e.visitInt;break;case S.Int8:r=e.visitInt8||e.visitInt;break;case S.Int16:r=e.visitInt16||e.visitInt;break;case S.Int32:r=e.visitInt32||e.visitInt;break;case S.Int64:r=e.visitInt64||e.visitInt;break;case S.Uint8:r=e.visitUint8||e.visitInt;break;case S.Uint16:r=e.visitUint16||e.visitInt;break;case S.Uint32:r=e.visitUint32||e.visitInt;break;case S.Uint64:r=e.visitUint64||e.visitInt;break;case S.Float:r=e.visitFloat;break;case S.Float16:r=e.visitFloat16||e.visitFloat;break;case S.Float32:r=e.visitFloat32||e.visitFloat;break;case S.Float64:r=e.visitFloat64||e.visitFloat;break;case S.Utf8:r=e.visitUtf8;break;case S.LargeUtf8:r=e.visitLargeUtf8;break;case S.Binary:r=e.visitBinary;break;case S.LargeBinary:r=e.visitLargeBinary;break;case S.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case S.Date:r=e.visitDate;break;case S.DateDay:r=e.visitDateDay||e.visitDate;break;case S.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case S.Timestamp:r=e.visitTimestamp;break;case S.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case S.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case S.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case S.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case S.Time:r=e.visitTime;break;case S.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case S.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case S.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case S.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case S.Decimal:r=e.visitDecimal;break;case S.List:r=e.visitList;break;case S.Struct:r=e.visitStruct;break;case S.Union:r=e.visitUnion;break;case S.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case S.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case S.Dictionary:r=e.visitDictionary;break;case S.Interval:r=e.visitInterval;break;case S.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case S.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case S.Duration:r=e.visitDuration;break;case S.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case S.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case S.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case S.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case S.FixedSizeList:r=e.visitFixedSizeList;break;case S.Map:r=e.visitMap;break}if(typeof r==`function`)return r;if(!n)return()=>null;throw Error(`Unrecognized type '${S[t]}'`)}function Kd(e){switch(e.typeId){case S.Null:return S.Null;case S.Int:{let{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?S.Int8:S.Uint8;case 16:return n?S.Int16:S.Uint16;case 32:return n?S.Int32:S.Uint32;case 64:return n?S.Int64:S.Uint64}return S.Int}case S.Float:switch(e.precision){case Fl.HALF:return S.Float16;case Fl.SINGLE:return S.Float32;case Fl.DOUBLE:return S.Float64}return S.Float;case S.Binary:return S.Binary;case S.LargeBinary:return S.LargeBinary;case S.Utf8:return S.Utf8;case S.LargeUtf8:return S.LargeUtf8;case S.Bool:return S.Bool;case S.Decimal:return S.Decimal;case S.Time:switch(e.unit){case x.SECOND:return S.TimeSecond;case x.MILLISECOND:return S.TimeMillisecond;case x.MICROSECOND:return S.TimeMicrosecond;case x.NANOSECOND:return S.TimeNanosecond}return S.Time;case S.Timestamp:switch(e.unit){case x.SECOND:return S.TimestampSecond;case x.MILLISECOND:return S.TimestampMillisecond;case x.MICROSECOND:return S.TimestampMicrosecond;case x.NANOSECOND:return S.TimestampNanosecond}return S.Timestamp;case S.Date:switch(e.unit){case Il.DAY:return S.DateDay;case Il.MILLISECOND:return S.DateMillisecond}return S.Date;case S.Interval:switch(e.unit){case Ll.DAY_TIME:return S.IntervalDayTime;case Ll.YEAR_MONTH:return S.IntervalYearMonth}return S.Interval;case S.Duration:switch(e.unit){case x.SECOND:return S.DurationSecond;case x.MILLISECOND:return S.DurationMillisecond;case x.MICROSECOND:return S.DurationMicrosecond;case x.NANOSECOND:return S.DurationNanosecond}return S.Duration;case S.Map:return S.Map;case S.List:return S.List;case S.Struct:return S.Struct;case S.Union:switch(e.mode){case Pl.Dense:return S.DenseUnion;case Pl.Sparse:return S.SparseUnion}return S.Union;case S.FixedSizeBinary:return S.FixedSizeBinary;case S.FixedSizeList:return S.FixedSizeList;case S.Dictionary:return S.Dictionary}throw Error(`Unrecognized type '${S[e.typeId]}'`)}w.prototype.visitInt8=null,w.prototype.visitInt16=null,w.prototype.visitInt32=null,w.prototype.visitInt64=null,w.prototype.visitUint8=null,w.prototype.visitUint16=null,w.prototype.visitUint32=null,w.prototype.visitUint64=null,w.prototype.visitFloat16=null,w.prototype.visitFloat32=null,w.prototype.visitFloat64=null,w.prototype.visitDateDay=null,w.prototype.visitDateMillisecond=null,w.prototype.visitTimestampSecond=null,w.prototype.visitTimestampMillisecond=null,w.prototype.visitTimestampMicrosecond=null,w.prototype.visitTimestampNanosecond=null,w.prototype.visitTimeSecond=null,w.prototype.visitTimeMillisecond=null,w.prototype.visitTimeMicrosecond=null,w.prototype.visitTimeNanosecond=null,w.prototype.visitDenseUnion=null,w.prototype.visitSparseUnion=null,w.prototype.visitIntervalDayTime=null,w.prototype.visitIntervalYearMonth=null,w.prototype.visitDuration=null,w.prototype.visitDurationSecond=null,w.prototype.visitDurationMillisecond=null,w.prototype.visitDurationMicrosecond=null,w.prototype.visitDurationNanosecond=null;const qd=new Float64Array(1),Jd=new Uint32Array(qd.buffer);function Yd(e){let t=(e&31744)>>10,n=(e&1023)/1024,r=(-1)**((e&32768)>>15);switch(t){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*2**(t-15)*(1+n)}function Xd(e){if(e!==e)return 32256;qd[0]=e;let t=(Jd[1]&2147483648)>>16&65535,n=Jd[1]&2146435072,r=0;return n>=1089470464?Jd[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Jd[1]&1048575)>>10):n<=1056964608?(r=1048576+(Jd[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Jd[1]&1048575)+512>>10),t|n|r&65535}var T=class extends w{};function E(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}const Zd=(e,t,n)=>{e[t]=Math.floor(n/864e5)},Qd=(e,t,n,r)=>{if(n+1{let i=e+n;r?t[i>>3]|=1<>3]&=~(1<{e[t]=n},tf=({values:e},t,n)=>{e[t]=n},nf=({values:e},t,n)=>{e[t]=Xd(n)},rf=(e,t,n)=>{switch(e.type.precision){case Fl.HALF:return nf(e,t,n);case Fl.SINGLE:case Fl.DOUBLE:return tf(e,t,n)}},af=({values:e},t,n)=>{Zd(e,t,n.valueOf())},sf=({values:e},t,n)=>{e[t]=BigInt(n)},cf=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},lf=({values:e,valueOffsets:t},n,r)=>Qd(e,t,n,r),uf=({values:e,valueOffsets:t},n,r)=>Qd(e,t,n,Kc(r)),df=(e,t,n)=>{e.type.unit===Il.DAY?af(e,t,n):sf(e,t,n)},ff=({values:e},t,n)=>{e[t]=BigInt(n/1e3)},pf=({values:e},t,n)=>{e[t]=BigInt(n)},mf=({values:e},t,n)=>{e[t]=BigInt(n*1e3)},hf=({values:e},t,n)=>{e[t]=BigInt(n*1e6)},gf=(e,t,n)=>{switch(e.type.unit){case x.SECOND:return ff(e,t,n);case x.MILLISECOND:return pf(e,t,n);case x.MICROSECOND:return mf(e,t,n);case x.NANOSECOND:return hf(e,t,n)}},_f=({values:e},t,n)=>{e[t]=n},vf=({values:e},t,n)=>{e[t]=n},yf=({values:e},t,n)=>{e[t]=n},bf=({values:e},t,n)=>{e[t]=n},xf=(e,t,n)=>{switch(e.type.unit){case x.SECOND:return _f(e,t,n);case x.MILLISECOND:return vf(e,t,n);case x.MICROSECOND:return yf(e,t,n);case x.NANOSECOND:return bf(e,t,n)}},Sf=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},Cf=(e,t,n)=>{let r=e.children[0],i=e.valueOffsets,a=Uf.getVisitFn(r);if(Array.isArray(n))for(let e=-1,o=i[t],s=i[t+1];o{let r=e.children[0],{valueOffsets:i}=e,a=Uf.getVisitFn(r),{[t]:o,[t+1]:s}=i,c=n instanceof Map?n.entries():Object.entries(n);for(let e of c)if(a(r,o,e),++o>=s)break},Tf=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[a]),Ef=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(a)),Df=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(i.name)),Of=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[i.name]),kf=(e,t,n)=>{let r=e.type.children.map(e=>Uf.getVisitFn(e.type)),i=n instanceof Map?Df(t,n):n instanceof Pm?Ef(t,n):Array.isArray(n)?Tf(t,n):Of(t,n);e.type.children.forEach((t,n)=>i(r[n],e.children[n],t,n))},Af=(e,t,n)=>{e.type.mode===Pl.Dense?jf(e,t,n):Mf(e,t,n)},jf=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Uf.visit(i,e.valueOffsets[t],n)},Mf=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Uf.visit(i,t,n)},Nf=(e,t,n)=>{var r;(r=e.dictionary)==null||r.set(e.values[t],n)},Pf=(e,t,n)=>{e.type.unit===Ll.DAY_TIME?Ff(e,t,n):If(e,t,n)},Ff=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},If=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},Lf=({values:e},t,n)=>{e[t]=n},Rf=({values:e},t,n)=>{e[t]=n},zf=({values:e},t,n)=>{e[t]=n},Bf=({values:e},t,n)=>{e[t]=n},Vf=(e,t,n)=>{switch(e.type.unit){case x.SECOND:return Lf(e,t,n);case x.MILLISECOND:return Rf(e,t,n);case x.MICROSECOND:return zf(e,t,n);case x.NANOSECOND:return Bf(e,t,n)}},Hf=(e,t,n)=>{let{stride:r}=e,i=e.children[0],a=Uf.getVisitFn(i);if(Array.isArray(n))for(let e=-1,o=t*r;++e`${Du(e)}: ${Du(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}[Symbol.iterator](){return new qf(this[Wf],this[Gf])}},qf=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return ee.name)}has(e,t){return e[Wf].type.children.findIndex(e=>e.name===t)!==-1}getOwnPropertyDescriptor(e,t){if(e[Wf].type.children.findIndex(e=>e.name===t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[Wf].type.children.findIndex(e=>e.name===t);if(n!==-1){let r=Lp.visit(e[Wf].children[n],e[Gf]);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[Wf].type.children.findIndex(e=>e.name===t);return r===-1?Reflect.has(e,t)||typeof t==`symbol`?Reflect.set(e,t,n):!1:(Uf.visit(e[Wf].children[r],e[Gf],n),Reflect.set(e,t,n))}},D=class extends w{};function O(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Yf=(e,t)=>864e5*e[t],Xf=(e,t)=>null,Zf=(e,t,n)=>{if(n+1>=t.length)return null;let r=Ou(t[n]),i=Ou(t[n+1]);return e.subarray(r,i)},Qf=({offset:e,values:t},n)=>{let r=e+n,i=t[r>>3];return(i&1<Yf(e,t),ep=({values:e},t)=>Ou(e[t]),tp=({stride:e,values:t},n)=>t[e*n],np=({stride:e,values:t},n)=>Yd(t[e*n]),rp=({values:e},t)=>e[t],ip=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),ap=({values:e,valueOffsets:t},n)=>Zf(e,t,n),op=({values:e,valueOffsets:t},n)=>{let r=Zf(e,t,n);return r===null?null:Wc(r)},sp=({values:e},t)=>e[t],cp=({type:e,values:t},n)=>e.precision===Fl.HALF?Yd(t[n]):t[n],lp=(e,t)=>e.type.unit===Il.DAY?$f(e,t):ep(e,t),up=({values:e},t)=>1e3*Ou(e[t]),dp=({values:e},t)=>Ou(e[t]),fp=({values:e},t)=>ku(e[t],BigInt(1e3)),pp=({values:e},t)=>ku(e[t],BigInt(1e6)),mp=(e,t)=>{switch(e.type.unit){case x.SECOND:return up(e,t);case x.MILLISECOND:return dp(e,t);case x.MICROSECOND:return fp(e,t);case x.NANOSECOND:return pp(e,t)}},hp=({values:e},t)=>e[t],gp=({values:e},t)=>e[t],_p=({values:e},t)=>e[t],vp=({values:e},t)=>e[t],yp=(e,t)=>{switch(e.type.unit){case x.SECOND:return hp(e,t);case x.MILLISECOND:return gp(e,t);case x.MICROSECOND:return _p(e,t);case x.NANOSECOND:return vp(e,t)}},bp=({values:e,stride:t},n)=>Vu.decimal(e.subarray(t*n,t*(n+1))),xp=(e,t)=>{let{valueOffsets:n,stride:r,children:i}=e,{[t*r]:a,[t*r+1]:o}=n,s=i[0],c=s.slice(a,o-a);return new Pm([c])},Sp=(e,t)=>{let{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:a}=n,o=r[0];return new Hp(o.slice(i,a-i))},Cp=(e,t)=>new Kf(e,t),wp=(e,t)=>e.type.mode===Pl.Dense?Tp(e,t):Ep(e,t),Tp=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return Lp.visit(r,e.valueOffsets[t])},Ep=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return Lp.visit(r,t)},Dp=(e,t)=>{var n;return(n=e.dictionary)?.get(e.values[t])},Op=(e,t)=>e.type.unit===Ll.DAY_TIME?kp(e,t):Ap(e,t),kp=({values:e},t)=>e.subarray(2*t,2*(t+1)),Ap=({values:e},t)=>{let n=e[t],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},jp=({values:e},t)=>e[t],Mp=({values:e},t)=>e[t],Np=({values:e},t)=>e[t],Pp=({values:e},t)=>e[t],Fp=(e,t)=>{switch(e.type.unit){case x.SECOND:return jp(e,t);case x.MILLISECOND:return Mp(e,t);case x.MICROSECOND:return Np(e,t);case x.NANOSECOND:return Pp(e,t)}},Ip=(e,t)=>{let{stride:n,children:r}=e,i=r[0],a=i.slice(t*n,n);return new Pm([a])};D.prototype.visitNull=O(Xf),D.prototype.visitBool=O(Qf),D.prototype.visitInt=O(sp),D.prototype.visitInt8=O(tp),D.prototype.visitInt16=O(tp),D.prototype.visitInt32=O(tp),D.prototype.visitInt64=O(rp),D.prototype.visitUint8=O(tp),D.prototype.visitUint16=O(tp),D.prototype.visitUint32=O(tp),D.prototype.visitUint64=O(rp),D.prototype.visitFloat=O(cp),D.prototype.visitFloat16=O(np),D.prototype.visitFloat32=O(tp),D.prototype.visitFloat64=O(tp),D.prototype.visitUtf8=O(op),D.prototype.visitLargeUtf8=O(op),D.prototype.visitBinary=O(ap),D.prototype.visitLargeBinary=O(ap),D.prototype.visitFixedSizeBinary=O(ip),D.prototype.visitDate=O(lp),D.prototype.visitDateDay=O($f),D.prototype.visitDateMillisecond=O(ep),D.prototype.visitTimestamp=O(mp),D.prototype.visitTimestampSecond=O(up),D.prototype.visitTimestampMillisecond=O(dp),D.prototype.visitTimestampMicrosecond=O(fp),D.prototype.visitTimestampNanosecond=O(pp),D.prototype.visitTime=O(yp),D.prototype.visitTimeSecond=O(hp),D.prototype.visitTimeMillisecond=O(gp),D.prototype.visitTimeMicrosecond=O(_p),D.prototype.visitTimeNanosecond=O(vp),D.prototype.visitDecimal=O(bp),D.prototype.visitList=O(xp),D.prototype.visitStruct=O(Cp),D.prototype.visitUnion=O(wp),D.prototype.visitDenseUnion=O(Tp),D.prototype.visitSparseUnion=O(Ep),D.prototype.visitDictionary=O(Dp),D.prototype.visitInterval=O(Op),D.prototype.visitIntervalDayTime=O(kp),D.prototype.visitIntervalYearMonth=O(Ap),D.prototype.visitDuration=O(Fp),D.prototype.visitDurationSecond=O(jp),D.prototype.visitDurationMillisecond=O(Mp),D.prototype.visitDurationMicrosecond=O(Np),D.prototype.visitDurationNanosecond=O(Pp),D.prototype.visitFixedSizeList=O(Ip),D.prototype.visitMap=O(Sp);const Lp=new D,Rp=Symbol.for(`keys`),zp=Symbol.for(`vals`),Bp=Symbol.for(`kKeysAsStrings`),Vp=Symbol.for(`_kKeysAsStrings`);var Hp=class{constructor(e){return this[Rp]=new Pm([e.children[0]]).memoize(),this[zp]=e.children[1],new Proxy(this,new Wp)}get[Bp](){return this[Vp]||(this[Vp]=Array.from(this[Rp].toArray(),String))}[Symbol.iterator](){return new Up(this[Rp],this[zp])}get size(){return this[Rp].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Rp],t=this[zp],n={};for(let r=-1,i=e.length;++r`${Du(e)}: ${Du(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}},Up=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Lp.visit(this.vals,e)]})}},Wp=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Bp]}has(e,t){return e[Bp].includes(t)}getOwnPropertyDescriptor(e,t){let n=e[Bp].indexOf(t);if(n!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[Bp].indexOf(t);if(n!==-1){let r=Lp.visit(Reflect.get(e,zp),n);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[Bp].indexOf(t);return r===-1?Reflect.has(e,t)?Reflect.set(e,t,n):!1:(Uf.visit(Reflect.get(e,zp),r,n),Reflect.set(e,t,n))}};Object.defineProperties(Hp.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[Rp]:{writable:!0,enumerable:!1,configurable:!1,value:null},[zp]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Vp]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Gp;function Kp(e,t,n,r){let{length:i=0}=e,a=typeof t==`number`?t:0,o=typeof n==`number`?n:i;return a<0&&(a=(a%i+i)%i),o<0&&(o=(o%i+i)%i),oi&&(o=i),r?r(e,a,o):[a,o]}const qp=(e,t)=>e<0?t+e:e,Jp=e=>e!==e;function Yp(e){let t=typeof e;if(t!==`object`||e===null)return Jp(e)?Jp:t=>t===e;if(e instanceof Date){let t=e.valueOf();return e=>e instanceof Date?e.valueOf()===t:!1}return ArrayBuffer.isView(e)?t=>t?wl(e,t):!1:e instanceof Map?Zp(e):Array.isArray(e)?Xp(e):e instanceof Pm?Qp(e):$p(e,!0)}function Xp(e){let t=[];for(let n=-1,r=e.length;++n!1;let r=[];for(let t=-1,i=n.length;++t{if(!n||typeof n!=`object`)return!1;switch(n.constructor){case Array:return tm(e,n);case Map:return rm(e,n,n.keys());case Hp:case Kf:case Object:case void 0:return rm(e,n,t||Object.keys(n))}return n instanceof Pm?nm(e,n):!1}}function tm(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++r>r}function om(e,t,n){let r=n.byteLength+7&-8;if(e>0||n.byteLength>3):sm(new cm(n,e,t,null,im)).subarray(0,r)),i}return n}function sm(e){let t=[],n=0,r=0,i=0;for(let a of e)a&&(i|=1<0)&&(t[n++]=i);let a=new Uint8Array(t.length+7&-8);return a.set(t),a}var cm=class{constructor(e,t,n,r,i){this.bytes=e,this.length=n,this.context=r,this.get=i,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index>3<<3,i=t+(t%8==0?0:8-t%8);return lm(e,t,i)+lm(e,r,n)+um(e,i>>3,r-i>>3)}function um(e,t,n){let r=0,i=Math.trunc(t),a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n===void 0?e.byteLength:i+n;for(;o-i>=4;)r+=dm(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=dm(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=dm(a.getUint8(i)),i+=1;return r}function dm(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}var fm=class e{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:e}=this;return C.isSparseUnion(e)||C.isDenseUnion(e)?this.children.some(e=>e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:t,values:n,nullBitmap:r,typeIds:i}=this;return t&&(e+=t.byteLength),n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),this.children.reduce((e,t)=>e+t.byteLength,e)}get nullCount(){if(C.isUnion(this.type))return this.children.reduce((e,t)=>e+t.nullCount,0);let e=this._nullCount,t;return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-lm(t,this.offset,this.offset+this.length)),e}constructor(t,n,r,i,a,o=[],s){this.type=t,this.children=o,this.dictionary=s,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let c;a instanceof e?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=Ud(t),a&&((c=a[0])&&(this.valueOffsets=c),(c=a[1])&&(this.values=c),(c=a[2])&&(this.nullBitmap=c),(c=a[3])&&(this.typeIds=c)))}getValid(e){let{type:t}=this;if(C.isUnion(t)){let n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],i=n.mode===Pl.Dense?this.valueOffsets[e]:e;return r.getValid(i)}if(this.nullable&&this.nullCount>0){let t=this.offset+e,n=this.nullBitmap[t>>3];return(n&1<>3;(!r||r.byteLength<=c)&&(r=new Uint8Array((i+a+63&-64)>>3).fill(255),this.nullCount>0?(r.set(om(i,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:r})):Object.assign(this,{nullBitmap:r,_nullCount:0}));let l=r[c];n=(l&s)!==0,r[c]=t?l|s:l&~s}return n!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(t=this.type,n=this.offset,r=this.length,i=this._nullCount,a=this,o=this.children){return new e(t,n,r,i,a,o,this.dictionary)}slice(e,t){let{stride:n,typeId:r,children:i}=this,a=(this._nullCount===0)-1,o=r===16?n:1,s=this._sliceBuffers(e,t,n,r);return this.clone(this.type,this.offset+e,t,a,s,i.length===0||this.valueOffsets?i:this._sliceChildren(i,o*e,o*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===S.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:n}=this,r=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);r[t>>3]=(1<0&&r.set(om(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[Eu.VALIDITY]=r,this.clone(this.type,0,e,n+(e-t),i)}_sliceBuffers(e,t,n,r){let i,{buffers:a}=this;return(i=a[Eu.TYPE])&&(a[Eu.TYPE]=i.subarray(e,e+t)),(i=a[Eu.OFFSET])&&(a[Eu.OFFSET]=i.subarray(e,e+t+1))||(i=a[Eu.DATA])&&(a[Eu.DATA]=r===6?i:i.subarray(n*e,n*(e+t))),a}_sliceChildren(e,t,n){return e.map(e=>e.slice(t,n))}};fm.prototype.children=Object.freeze([]);var pm=class e extends w{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:n=0,length:r=0}=e;return new fm(t,n,r,r)}visitBool(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitInt(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitFloat(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitUtf8(e){let{type:t,offset:n=0}=e,r=_l(e.data),i=_l(e.nullBitmap),a=hl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,r,i])}visitLargeUtf8(e){let{type:t,offset:n=0}=e,r=_l(e.data),i=_l(e.nullBitmap),a=gl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,r,i])}visitBinary(e){let{type:t,offset:n=0}=e,r=_l(e.data),i=_l(e.nullBitmap),a=hl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,r,i])}visitLargeBinary(e){let{type:t,offset:n=0}=e,r=_l(e.data),i=_l(e.nullBitmap),a=gl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,r,i])}visitFixedSizeBinary(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitDate(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitTimestamp(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitTime(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitDecimal(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitList(e){let{type:t,offset:n=0,child:r}=e,i=_l(e.nullBitmap),a=hl(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fm(t,n,o,s,[a,void 0,i],[r])}visitStruct(e){let{type:t,offset:n=0,children:r=[]}=e,i=_l(e.nullBitmap),{length:a=r.reduce((e,{length:t})=>Math.max(e,t),0),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,void 0,i],r)}visitUnion(e){let{type:t,offset:n=0,children:r=[]}=e,i=ml(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:o=-1}=e;if(C.isSparseUnion(t))return new fm(t,n,a,o,[void 0,void 0,void 0,i],r);let s=hl(e.valueOffsets);return new fm(t,n,a,o,[s,void 0,void 0,i],r)}visitDictionary(t){let{type:n,offset:r=0}=t,i=_l(t.nullBitmap),a=ml(n.indices.ArrayType,t.data),{dictionary:o=new Pm([new e().visit({type:n.dictionary})])}=t,{length:s=a.length,nullCount:c=t.nullBitmap?-1:0}=t;return new fm(n,r,s,c,[void 0,a,i],[],o)}visitInterval(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length/Ud(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitDuration(e){let{type:t,offset:n=0}=e,r=_l(e.nullBitmap),i=ml(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new fm(t,n,a,o,[void 0,i,r])}visitFixedSizeList(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.valueType})}=t,a=_l(t.nullBitmap),{length:o=i.length/Ud(n),nullCount:s=t.nullBitmap?-1:0}=t;return new fm(n,r,o,s,[void 0,void 0,a],[i])}visitMap(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.childType})}=t,a=_l(t.nullBitmap),o=hl(t.valueOffsets),{length:s=o.length-1,nullCount:c=t.nullBitmap?-1:0}=t;return new fm(n,r,s,c,[o,void 0,a],[i])}};const mm=new pm;function k(e){return mm.visit(e)}var hm=class{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndexe.nullable)}function _m(e){return e.reduce((e,t)=>e+t.nullCount,0)}function vm(e){return e.reduce((e,t,n)=>(e[n+1]=e[n]+t.length,e),new Uint32Array(e.length+1))}function ym(e,t,n,r){let i=[];for(let a=-1,o=e.length;++a=r)break;if(n>=s+c)continue;if(s>=n&&s+c<=r){i.push(o);continue}let l=Math.max(0,n-s),u=Math.min(r-s,c);i.push(o.slice(l,u-l))}return i.length===0&&i.push(e[0].slice(0,0)),i}function bm(e,t,n,r){let i=0,a=0,o=t.length-1;do{if(i>=o-1)return n0?0:-1}function Em(e,t){let{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(let i of new cm(n,e.offset+(t||0),e.length,n,im)){if(!i)return r;++r}return-1}function j(e,t,n){if(t===void 0)return-1;if(t===null)switch(e.typeId){case S.Union:break;case S.Dictionary:break;default:return Em(e,n)}let r=Lp.getVisitFn(e),i=Yp(t);for(let t=(n||0)-1,a=e.length;++t{let n=e.data[t];return n.values.subarray(0,n.length)[Symbol.iterator]()});let n=0;return new hm(e.data.length,t=>{let r=e.data[t],i=r.length,a=e.slice(n,n+i);return n+=i,new km(a)})}var km=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data):t;if(a.length===0||a.some(e=>!(e instanceof fm)))throw TypeError(`Vector constructor expects an Array of Data instances.`);let o=(n=a[0])?.type;switch(a.length){case 0:this._offsets=[0];break;case 1:{let{get:e,set:t,indexOf:n}=Mm[o.typeId],r=a[0];this.isValid=e=>xm(r,e),this.get=t=>e(r,t),this.set=(e,n)=>t(r,e,n),this.indexOf=e=>n(r,e),this._offsets=[0,r.length];break}default:Object.setPrototypeOf(this,Nm[o.typeId]),this._offsets=vm(a);break}this.data=a,this.type=o,this.stride=Ud(o),this.numChildren=(i=(r=o.children)?.length)??0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,t)=>e+t.byteLength,0)}get nullable(){return gm(this.data)}get nullCount(){return _m(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${S[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(qp(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return Am.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap(e=>e.data).flat(1/0)))}slice(t,n){return new e(Kp(this,t,n,({data:e,_offsets:t},n,r)=>ym(e,t,n,r)))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case S.Int:case S.Float:case S.Decimal:case S.Time:case S.Timestamp:switch(t.length){case 0:return new i;case 1:return t[0].values.subarray(0,n*r);default:return t.reduce((e,{values:t,length:n})=>(e.array.set(t.subarray(0,n*r),e.offset),e.offset+=n*r,e),{array:new i(n*r),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(`,`)}]`}getChild(e){var t;return this.getChildAt((t=this.type.children)?.findIndex(t=>t.name===e))}getChildAt(t){return t>-1&&te[t])):null}get isMemoized(){return C.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(C.isDictionary(this.type)){let t=new Fm(this.data[0].dictionary),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return new Fm(this)}unmemoize(){if(C.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return this}};jm=Symbol.toStringTag,Pm[jm]=(e=>{e.type=C.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;let t=Object.keys(S).map(e=>S[e]).filter(e=>typeof e==`number`&&e!==S.NONE);for(let n of t){let t=Lp.getVisitFnByTypeId(n),r=Uf.getVisitFnByTypeId(n),i=Om.getVisitFnByTypeId(n);Mm[n]={get:t,set:r,indexOf:i},Nm[n]=Object.create(e,{isValid:{value:Sm(xm)},get:{value:Sm(Lp.getVisitFnByTypeId(n))},set:{value:Cm(Uf.getVisitFnByTypeId(n))},indexOf:{value:wm(Om.getVisitFnByTypeId(n))}})}return`Vector`})(Pm.prototype);var Fm=class e extends Pm{constructor(t){super(t.data);let n=this.get,r=this.set,i=this.slice,a=Array(this.length);Object.defineProperty(this,`get`,{value(e){let t=a[e];if(t!==void 0)return t;let r=n.call(this,e);return a[e]=r,r}}),Object.defineProperty(this,`set`,{value(e,t){r.call(this,e,t),a[e]=t}}),Object.defineProperty(this,`slice`,{value:(t,n)=>new e(i.call(this,t,n))}),Object.defineProperty(this,`isMemoized`,{value:!0}),Object.defineProperty(this,`unmemoize`,{value:()=>new Pm(this.data)}),Object.defineProperty(this,`memoize`,{value:()=>this})}},Im=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,n,r){return e.prep(8,24),e.writeInt64(BigInt(r??0)),e.pad(4),e.writeInt32(n),e.writeInt64(BigInt(t??0)),e.offset()}},Lm=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Nl.V1}schema(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new wu).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new Im).__init(this.bb.__vector(this.bb_pos+n)+e*24,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){let n=this.bb.__offset(this.bb_pos,10);return n?(t||new Im).__init(this.bb.__vector(this.bb_pos+n)+e*24,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,12);return n?(t||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Nl.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){let t=e.endObject();return t}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}},Rm=class e{constructor(e=[],t,n,r=Nl.V5){this.fields=e||[],this.metadata=t||new Map,n||=Vm(this.fields),this.dictionaries=n,this.metadataVersion=r}get[Symbol.toStringTag](){return`Schema`}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,t)=>`${t}: ${e}`).join(`, `)} }>`}select(t){let n=new Set(t),r=this.fields.filter(e=>n.has(e.name));return new e(r,this.metadata)}selectAt(t){let n=t.map(e=>this.fields[e]).filter(Boolean);return new e(n,this.metadata)}assign(...t){let n=t[0]instanceof e?t[0]:Array.isArray(t[0])?new e(t[0]):new e(t),r=[...this.fields],i=Bm(Bm(new Map,this.metadata),n.metadata),a=n.fields.filter(e=>{let t=r.findIndex(t=>t.name===e.name);return~t?(r[t]=e.clone({metadata:Bm(Bm(new Map,r[t].metadata),e.metadata)}))&&!1:!0}),o=Vm(a,new Map);return new e([...r,...a],i,new Map([...this.dictionaries,...o]))}};Rm.prototype.fields=null,Rm.prototype.metadata=null,Rm.prototype.dictionaries=null;var zm=class e{static new(...t){let[n,r,i,a]=t;return t[0]&&typeof t[0]==`object`&&({name:n}=t[0],r===void 0&&(r=t[0].type),i===void 0&&(i=t[0].nullable),a===void 0&&(a=t[0].metadata)),new e(`${n}`,r,i,a)}constructor(e,t,n=!1,r){this.name=e,this.type=t,this.nullable=n,this.metadata=r||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return`Field`}toString(){return`${this.name}: ${this.type}`}clone(...t){let[n,r,i,a]=t;return!t[0]||typeof t[0]!=`object`?[n=this.name,r=this.type,i=this.nullable,a=this.metadata]=t:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:a=this.metadata}=t[0],e.new(n,r,i,a)}};zm.prototype.type=null,zm.prototype.name=null,zm.prototype.nullable=null,zm.prototype.metadata=null;function Bm(e,t){return new Map([...e||new Map,...t||new Map])}function Vm(e,t=new Map){for(let n=-1,r=e.length;++n0&&Vm(i.children,t)}return t}var Hm=Wl,Um=Ul,Wm=class{static decode(e){e=new Um(_l(e));let t=Lm.getRootAsFooter(e),n=Rm.decode(t.schema(),new Map,t.version());return new Gm(n,t)}static encode(e){let t=new Hm,n=Rm.encode(t,e.schema);Lm.startRecordBatchesVector(t,e.numRecordBatches);for(let n of[...e.recordBatches()].slice().reverse())Km.encode(t,n);let r=t.endVector();Lm.startDictionariesVector(t,e.numDictionaries);for(let n of[...e.dictionaryBatches()].slice().reverse())Km.encode(t,n);let i=t.endVector();return Lm.startFooter(t),Lm.addSchema(t,n),Lm.addVersion(t,Nl.V5),Lm.addRecordBatches(t,r),Lm.addDictionaries(t,i),Lm.finishFooterBuffer(t,Lm.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=Nl.V5,n,r){this.schema=e,this.version=t,n&&(this._recordBatches=n),r&&(this._dictionaryBatches=r)}*recordBatches(){for(let e,t=-1,n=this.numRecordBatches;++t=0&&e=0&&e=0&&e=0&&ethis._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return y(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(qm);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Tl.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Tl.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return y(this,void 0,void 0,function*(){return yield this.abort(e),qm})}return(e){return y(this,void 0,void 0,function*(){return yield this.close(),qm})}read(e){return y(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return y(this,void 0,void 0,function*(){return(yield this.next(e,`peek`)).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((e,t)=>{this.resolvers.push({resolve:e,reject:t})}):Promise.resolve(qm)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw Error(`AsyncQueue is closed`)}},Zm=class extends Xm{write(e){if((e=_l(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Wc(this.toUint8Array(!0)):this.toUint8Array(!1).then(Wc)}toUint8Array(e=!1){return e?pl(this._values)[0]:(()=>y(this,void 0,void 0,function*(){var e,t,n,r;let i=[],a=0;try{for(var o=!0,s=Hc(this),c;c=yield s.next(),e=c.done,!e;o=!0){r=c.value,o=!1;let e=r;i.push(e),a+=e.byteLength}}catch(e){t={error:e}}finally{try{!o&&!e&&(n=s.return)&&(yield n.call(s))}finally{if(t)throw t.error}}return pl(i,a)[0]}))()}},Qm=class{constructor(e){e&&(this.source=new eh(Tl.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},$m=class e{constructor(t){t instanceof e?this.source=t.source:t instanceof Zm?this.source=new th(Tl.fromAsyncIterable(t)):cl(t)?this.source=new th(Tl.fromNodeStream(t)):ol(t)?this.source=new th(Tl.fromDOMStream(t)):rl(t)?this.source=new th(Tl.fromDOMStream(t.body)):Qc(t)?this.source=new th(Tl.fromIterable(t)):(Zc(t)||$c(t))&&(this.source=new th(Tl.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},eh=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,`peek`).value}read(e){return this.next(e,`read`).value}next(e,t=`read`){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||qm)}return(e){return Object.create(this.source.return&&this.source.return(e)||qm)}},th=class{constructor(e){this.source=e,this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}cancel(e){return y(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return y(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return y(this,void 0,void 0,function*(){return(yield this.next(e,`peek`)).value})}next(e){return y(this,arguments,void 0,function*(e,t=`read`){return yield this.source.next({cmd:t,size:e})})}throw(e){return y(this,void 0,void 0,function*(){let t=this.source.throw&&(yield this.source.throw(e))||qm;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return y(this,void 0,void 0,function*(){let t=this.source.return&&(yield this.source.return(e))||qm;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}},nh=class extends Qm{constructor(e,t){super(),this.position=0,this.buffer=_l(e),this.size=t===void 0?this.buffer.byteLength:t}readInt32(e){let{buffer:t,byteOffset:n}=this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),ey(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending}))()}readInt32(e){return y(this,void 0,void 0,function*(){let{buffer:t,byteOffset:n}=yield this.readAt(e,4);return new DataView(t,n).getInt32(0,!0)})}seek(e){return y(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),n=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),r=t[3]*n[3];this.buffer[0]=r&65535;let i=r>>>16;return r=t[2]*n[3],i+=r,r=t[3]*n[2]>>>0,i+=r,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0>>16,this.buffer[1]+=t[1]*n[3]+t[2]*n[2]+t[3]*n[1],this.buffer[1]+=t[0]*n[3]+t[1]*n[2]+t[2]*n[1]+t[3]*n[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]>>0&&++t[1],t[1]>>0&&++t[2],t[2]>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${ih(this.buffer[3])} ${ih(this.buffer[2])} ${ih(this.buffer[1])} ${ih(this.buffer[0])}`}static multiply(t,n){let r=new e(new Uint32Array(t.buffer));return r.times(n)}static add(t,n){let r=new e(new Uint32Array(t.buffer));return r.plus(n)}static from(t,n=new Uint32Array(4)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){let r=t.startsWith(`-`),i=t.length,a=new e(n);for(let n=r?1:0;n0&&this.readData(e,n)||new Uint8Array}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:n}=this.nextBufferRange()){return this.bytes.subarray(n,n+t)}readDictionary(e){return this.dictionaries.get(e.id)}},dh=class extends uh{constructor(e,t,n,r,i){super(new Uint8Array,t,n,r,i),this.sources=e}readNullBitmap(e,t,{offset:n}=this.nextBufferRange()){return t<=0?new Uint8Array:sm(this.sources[n])}readOffsets(e,{offset:t}=this.nextBufferRange()){return ml(Uint8Array,ml(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return ml(Uint8Array,ml(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){let{sources:n}=this;return C.isTimestamp(e)||(C.isInt(e)||C.isTime(e))&&e.bitWidth===64||C.isDuration(e)||C.isDate(e)&&e.unit===Il.MILLISECOND?ml(Uint8Array,ch.convertArray(n[t])):C.isDecimal(e)?ml(Uint8Array,lh.convertArray(n[t])):C.isBinary(e)||C.isLargeBinary(e)||C.isFixedSizeBinary(e)?fh(n[t]):C.isBool(e)?sm(n[t]):C.isUtf8(e)||C.isLargeUtf8(e)?Kc(n[t].join(``)):ml(Uint8Array,ml(e.ArrayType,n[t].map(e=>+e)))}};function fh(e){let t=e.join(``),n=new Uint8Array(t.length/2);for(let e=0;e>1]=Number.parseInt(t.slice(e,e+2),16);return n}var P=class extends w{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>this.compareFields(e,t[n]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};function ph(e,t){return t instanceof e.constructor}function mh(e,t){return e===t||ph(e,t)}function hh(e,t){return e===t||ph(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function gh(e,t){return e===t||ph(e,t)&&e.precision===t.precision}function _h(e,t){return e===t||ph(e,t)&&e.byteWidth===t.byteWidth}function vh(e,t){return e===t||ph(e,t)&&e.unit===t.unit}function yh(e,t){return e===t||ph(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function bh(e,t){return e===t||ph(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function xh(e,t){return e===t||ph(e,t)&&e.children.length===t.children.length&&kh.compareManyFields(e.children,t.children)}function Sh(e,t){return e===t||ph(e,t)&&e.children.length===t.children.length&&kh.compareManyFields(e.children,t.children)}function Ch(e,t){return e===t||ph(e,t)&&e.mode===t.mode&&e.typeIds.every((e,n)=>e===t.typeIds[n])&&kh.compareManyFields(e.children,t.children)}function wh(e,t){return e===t||ph(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&kh.visit(e.indices,t.indices)&&kh.visit(e.dictionary,t.dictionary)}function Th(e,t){return e===t||ph(e,t)&&e.unit===t.unit}function Eh(e,t){return e===t||ph(e,t)&&e.unit===t.unit}function Dh(e,t){return e===t||ph(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&kh.compareManyFields(e.children,t.children)}function Oh(e,t){return e===t||ph(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&kh.compareManyFields(e.children,t.children)}P.prototype.visitNull=mh,P.prototype.visitBool=mh,P.prototype.visitInt=hh,P.prototype.visitInt8=hh,P.prototype.visitInt16=hh,P.prototype.visitInt32=hh,P.prototype.visitInt64=hh,P.prototype.visitUint8=hh,P.prototype.visitUint16=hh,P.prototype.visitUint32=hh,P.prototype.visitUint64=hh,P.prototype.visitFloat=gh,P.prototype.visitFloat16=gh,P.prototype.visitFloat32=gh,P.prototype.visitFloat64=gh,P.prototype.visitUtf8=mh,P.prototype.visitLargeUtf8=mh,P.prototype.visitBinary=mh,P.prototype.visitLargeBinary=mh,P.prototype.visitFixedSizeBinary=_h,P.prototype.visitDate=vh,P.prototype.visitDateDay=vh,P.prototype.visitDateMillisecond=vh,P.prototype.visitTimestamp=yh,P.prototype.visitTimestampSecond=yh,P.prototype.visitTimestampMillisecond=yh,P.prototype.visitTimestampMicrosecond=yh,P.prototype.visitTimestampNanosecond=yh,P.prototype.visitTime=bh,P.prototype.visitTimeSecond=bh,P.prototype.visitTimeMillisecond=bh,P.prototype.visitTimeMicrosecond=bh,P.prototype.visitTimeNanosecond=bh,P.prototype.visitDecimal=mh,P.prototype.visitList=xh,P.prototype.visitStruct=Sh,P.prototype.visitUnion=Ch,P.prototype.visitDenseUnion=Ch,P.prototype.visitSparseUnion=Ch,P.prototype.visitDictionary=wh,P.prototype.visitInterval=Th,P.prototype.visitIntervalDayTime=Th,P.prototype.visitIntervalYearMonth=Th,P.prototype.visitDuration=Eh,P.prototype.visitDurationSecond=Eh,P.prototype.visitDurationMillisecond=Eh,P.prototype.visitDurationMicrosecond=Eh,P.prototype.visitDurationNanosecond=Eh,P.prototype.visitFixedSizeList=Dh,P.prototype.visitMap=Oh;const kh=new P;function Ah(e,t){return kh.compareSchemas(e,t)}function jh(e,t){return Mh(e,t.map(e=>e.data.concat()))}function Mh(e,t){let n=[...e.fields],r=[],i={numBatches:t.reduce((e,t)=>Math.max(e,t.length),0)},a=0,o=0,s=-1,c=t.length,l,u=[];for(;i.numBatches-- >0;){for(o=1/0,s=-1;++s0&&(r[a++]=k({type:new Id(n),length:o,nullCount:0,children:u.slice()})))}return[e=e.assign(n),r.map(t=>new Lh(e,t))]}function Nh(e,t,n,r,i){var a;let o=(t+63&-64)>>3;for(let s=-1,c=r.length;++s=t)l===t?n[s]=c:(n[s]=c.slice(0,t),i.numBatches=Math.max(i.numBatches,r[s].unshift(c.slice(t,l-t))));else{let r=e[s];e[s]=r.clone({nullable:!0}),n[s]=(a=c?._changeLengthAndBackfillNullBitmap(t))??k({type:r.type,length:t,nullCount:t,nullBitmap:new Uint8Array(o)})}}return n}var Ph,Fh=class e{constructor(...t){var n,r;if(t.length===0)return this.batches=[],this.schema=new Rm([]),this._offsets=[0],this;let i,a;t[0]instanceof Rm&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(a=t.pop());let o=t=>{if(t){if(t instanceof Lh)return[t];if(t instanceof e)return t.batches;if(t instanceof fm){if(t.type instanceof Id)return[new Lh(new Rm(t.type.children),t)]}else if(Array.isArray(t))return t.flatMap(e=>o(e));else if(typeof t[Symbol.iterator]==`function`)return[...t].flatMap(e=>o(e));else if(typeof t==`object`){let e=Object.keys(t),n=e.map(e=>new Pm([t[e]])),r=i??new Rm(e.map((e,t)=>new zm(String(e),n[t].type,n[t].nullable))),[,a]=jh(r,n);return a.length===0?[new Lh(t)]:a}}return[]},s=t.flatMap(e=>o(e));if(i=(r=i??(n=s[0])?.schema)??new Rm([]),!(i instanceof Rm))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);for(let e of s){if(!(e instanceof Lh))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);if(!Ah(i,e.schema))throw TypeError(`Table and inner RecordBatch schemas must be equivalent.`)}this.schema=i,this.batches=s,this._offsets=a??vm(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,t)=>e+t.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=_m(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(qp(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?Am.visit(new Pm(this.data)):[][Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(`, + `)}\n]`}concat(...t){let n=this.schema,r=this.data.concat(t.flatMap(({data:e})=>e));return new e(n,r.map(e=>new Lh(n,e)))}slice(t,n){let r=this.schema;[t,n]=Kp({length:this.numRows},t,n);let i=ym(this.data,this._offsets,t,n);return new e(r,i.map(e=>new Lh(r,e)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(t=>t.name===e))}getChildAt(e){if(e>-1&&et.children[e]);if(t.length===0){let{type:n}=this.schema.fields[e],r=k({type:n,length:0,nullCount:0});t.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new Pm(t)}return null}setChild(e,t){var n;return this.setChildAt((n=this.schema.fields)?.findIndex(t=>t.name===e),t)}setChildAt(t,n){let r=this.schema,i=[...this.batches];if(t>-1&&tthis.getChildAt(t));[e[t],o[t]]=[a,n],[r,i]=jh(r,o)}return new e(r,i)}select(e){let t=this.schema.fields.reduce((e,t,n)=>e.set(t.name,n),new Map);return this.selectAt(e.map(e=>t.get(e)).filter(e=>e>-1))}selectAt(t){let n=this.schema.selectAt(t),r=this.batches.map(e=>e.selectAt(t));return new e(n,r)}assign(t){let n=this.schema.fields,[r,i]=t.schema.fields.reduce((e,t,r)=>{let[i,a]=e,o=n.findIndex(e=>e.name===t.name);return~o?a[o]=r:i.push(r),e},[[],[]]),a=this.schema.assign(t.schema),o=[...n.map((e,t)=>[t,i[t]]).map(([e,n])=>n===void 0?this.getChildAt(e):t.getChildAt(n)),...r.map(e=>t.getChildAt(e))].filter(Boolean);return new e(...jh(a,o))}};Ph=Symbol.toStringTag,Fh[Ph]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=Sm(xm),e.get=Sm(Lp.getVisitFn(S.Struct)),e.set=Cm(Uf.getVisitFn(S.Struct)),e.indexOf=wm(Om.getVisitFn(S.Struct)),`Table`))(Fh.prototype);var Ih,Lh=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof Rm)||([,this.data=k({nullCount:0,type:new Id(this.schema.fields),children:this.schema.fields.map(e=>k({type:e.type,nullCount:0}))})]=e,!(this.data instanceof fm)))throw TypeError(`RecordBatch constructor expects a [Schema, Data] pair.`);[this.schema,this.data]=Rh(this.schema,this.data.children);break;case 1:{let[t]=e,{fields:n,children:r,length:i}=Object.keys(t).reduce((e,n,r)=>(e.children[r]=t[n],e.length=Math.max(e.length,t[n].length),e.fields[r]=zm.new({name:n,type:t[n].type,nullable:!0}),e),{length:0,fields:[],children:[]}),a=new Rm(n),o=k({type:new Id(n),length:i,children:r,nullCount:0});[this.schema,this.data]=Rh(a,o.children,i);break}default:throw TypeError(`RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.`)}}get dictionaries(){return this._dictionaries||=zh(this.schema.fields,this.data.children)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Lp.visit(this.data,e)}at(e){return this.get(qp(e,this.numRows))}set(e,t){return Uf.visit(this.data,e,t)}indexOf(e,t){return Om.visit(this.data,e,t)}[Symbol.iterator](){return Am.visit(new Pm([this.data]))}toArray(){return[...this]}concat(...e){return new Fh(this.schema,[this,...e])}slice(t,n){let[r]=new Pm([this.data]).slice(t,n).data;return new e(this.schema,r)}getChild(e){var t;return this.getChildAt((t=this.schema.fields)?.findIndex(t=>t.name===e))}getChildAt(e){return e>-1&&et.name===e),t)}setChildAt(t,n){let r=this.schema,i=this.data;if(t>-1&&tt.name===e);~t&&(i[t]=this.data.children[t])}return new e(n,k({type:r,length:this.numRows,children:i}))}selectAt(t){let n=this.schema.selectAt(t),r=t.map(e=>this.data.children[e]).filter(Boolean),i=k({type:new Id(n.fields),length:this.numRows,children:r});return new e(n,i)}};Ih=Symbol.toStringTag,Lh[Ih]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,`RecordBatch`))(Lh.prototype);function Rh(e,t,n=t.reduce((e,t)=>Math.max(e,t.length),0)){var r;let i=[...e.fields],a=[...t],o=(n+63&-64)>>3;for(let[s,c]of e.fields.entries()){let e=t[s];(!e||e.length!==n)&&(i[s]=c.clone({nullable:!0}),a[s]=(r=e?._changeLengthAndBackfillNullBitmap(n))??k({type:c.type,length:n,nullCount:n,nullBitmap:new Uint8Array(o)}))}return[e.assign(i),k({type:new Id(i),length:n,children:a})]}function zh(e,t,n=new Map){var r,i;if(((r=e?.length)??0)>0&&e?.length===t?.length)for(let r=-1,a=e.length;++rk({type:e.type})),n=k({type:new Id(e.fields),nullCount:0,children:t});super(e,n)}},Vh=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,n){return t.setPosition(t.position()+4),(n||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Nl.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Tu.NONE}header(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt(`0`)}customMetadata(e,t){let n=this.bb.__offset(this.bb_pos,12);return n?(t||new nu).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Nl.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,Tu.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt(`0`))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){let t=e.endObject();return t}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(t,n,r,i,a,o){return e.startMessage(t),e.addVersion(t,n),e.addHeaderType(t,r),e.addHeader(t,i),e.addBodyLength(t,a),e.addCustomMetadata(t,o),e.endMessage(t)}},Hh=class extends w{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return gu.startNull(t),gu.endNull(t)}visitInt(e,t){return eu.startInt(t),eu.addBitWidth(t,e.bitWidth),eu.addIsSigned(t,e.isSigned),eu.endInt(t)}visitFloat(e,t){return uu.startFloatingPoint(t),uu.addPrecision(t,e.precision),uu.endFloatingPoint(t)}visitBinary(e,t){return ru.startBinary(t),ru.endBinary(t)}visitLargeBinary(e,t){return fu.startLargeBinary(t),fu.endLargeBinary(t)}visitBool(e,t){return iu.startBool(t),iu.endBool(t)}visitUtf8(e,t){return xu.startUtf8(t),xu.endUtf8(t)}visitLargeUtf8(e,t){return pu.startLargeUtf8(t),pu.endLargeUtf8(t)}visitDecimal(e,t){return ou.startDecimal(t),ou.addScale(t,e.scale),ou.addPrecision(t,e.precision),ou.addBitWidth(t,e.bitWidth),ou.endDecimal(t)}visitDate(e,t){return au.startDate(t),au.addUnit(t,e.unit),au.endDate(t)}visitTime(e,t){return vu.startTime(t),vu.addUnit(t,e.unit),vu.addBitWidth(t,e.bitWidth),vu.endTime(t)}visitTimestamp(e,t){let n=e.timezone&&t.createString(e.timezone)||void 0;return yu.startTimestamp(t),yu.addUnit(t,e.unit),n!==void 0&&yu.addTimezone(t,n),yu.endTimestamp(t)}visitInterval(e,t){return du.startInterval(t),du.addUnit(t,e.unit),du.endInterval(t)}visitDuration(e,t){return su.startDuration(t),su.addUnit(t,e.unit),su.endDuration(t)}visitList(e,t){return mu.startList(t),mu.endList(t)}visitStruct(e,t){return _u.startStruct_(t),_u.endStruct_(t)}visitUnion(e,t){bu.startTypeIdsVector(t,e.typeIds.length);let n=bu.createTypeIdsVector(t,e.typeIds);return bu.startUnion(t),bu.addMode(t,e.mode),bu.addTypeIds(t,n),bu.endUnion(t)}visitDictionary(e,t){let n=this.visit(e.indices,t);return tu.startDictionaryEncoding(t),tu.addId(t,BigInt(e.id)),tu.addIsOrdered(t,e.isOrdered),n!==void 0&&tu.addIndexType(t,n),tu.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return cu.startFixedSizeBinary(t),cu.addByteWidth(t,e.byteWidth),cu.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return lu.startFixedSizeList(t),lu.addListSize(t,e.listSize),lu.endFixedSizeList(t)}visitMap(e,t){return hu.startMap(t),hu.addKeysSorted(t,e.keysSorted),hu.endMap(t)}};const Uh=new Hh;function Wh(e,t=new Map){return new Rm(qh(e,t),$h(e.metadata),t)}function Gh(e){return new ag(e.count,Yh(e.columns),Xh(e.columns))}function Kh(e){return new og(Gh(e.data),e.id,e.isDelta)}function qh(e,t){return(e.fields||[]).filter(Boolean).map(e=>zm.fromJSON(e,t))}function Jh(e,t){return(e.children||[]).filter(Boolean).map(e=>zm.fromJSON(e,t))}function Yh(e){return(e||[]).reduce((e,t)=>[...e,new cg(t.count,Zh(t.VALIDITY)),...Yh(t.children)],[])}function Xh(e,t=[]){for(let n=-1,r=(e||[]).length;++ne+ +(t===0),0)}function Qh(e,t){let n,r,i,a,o,s;return!t||!(a=e.dictionary)?(o=tg(e,Jh(e,t)),i=new zm(e.name,o,e.nullable,$h(e.metadata))):t.has(n=a.id)?(r=(r=a.indexType)?eg(r):new md,s=new Hd(t.get(n),r,n,a.isOrdered),i=new zm(e.name,s,e.nullable,$h(e.metadata))):(r=(r=a.indexType)?eg(r):new md,t.set(n,o=tg(e,Jh(e,t))),s=new Hd(o,r,n,a.isOrdered),i=new zm(e.name,s,e.nullable,$h(e.metadata))),i||null}function $h(e=[]){return new Map(e.map(({key:e,value:t})=>[e,t]))}function eg(e){return new dd(e.isSigned,e.bitWidth)}function tg(e,t){let n=e.type.name;switch(n){case`NONE`:return new ud;case`null`:return new ud;case`binary`:return new wd;case`largebinary`:return new Td;case`utf8`:return new Ed;case`largeutf8`:return new Dd;case`bool`:return new Od;case`list`:return new Fd((t||[])[0]);case`struct`:return new Id(t||[]);case`struct_`:return new Id(t||[])}switch(n){case`int`:{let t=e.type;return new dd(t.isSigned,t.bitWidth)}case`floatingpoint`:{let t=e.type;return new bd(Fl[t.precision])}case`decimal`:{let t=e.type;return new kd(t.scale,t.precision,t.bitWidth)}case`date`:{let t=e.type;return new Ad(Il[t.unit])}case`time`:{let t=e.type;return new jd(x[t.unit],t.bitWidth)}case`timestamp`:{let t=e.type;return new Md(x[t.unit],t.timezone)}case`interval`:{let t=e.type;return new Nd(Ll[t.unit])}case`duration`:{let t=e.type;return new Pd(x[t.unit])}case`union`:{let n=e.type,[r,...i]=(n.mode+``).toLowerCase(),a=r.toUpperCase()+i.join(``);return new Ld(Pl[a],n.typeIds||[],t||[])}case`fixedsizebinary`:{let t=e.type;return new Rd(t.byteWidth)}case`fixedsizelist`:{let n=e.type;return new zd(n.listSize,(t||[])[0])}case`map`:{let n=e.type;return new Bd((t||[])[0],n.keysSorted)}}throw Error(`Unrecognized type: "${n}"`)}var ng=Wl,rg=Ul,ig=class e{static fromJSON(t,n){let r=new e(0,Nl.V5,n);return r._createHeader=lg(t,n),r}static decode(t){t=new rg(_l(t));let n=Vh.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),a=n.headerType(),o=new e(r,i,a);return o._createHeader=ug(n,a),o}static encode(e){let t=new ng,n=-1;return e.isSchema()?n=Rm.encode(t,e.header()):e.isRecordBatch()?n=ag.encode(t,e.header()):e.isDictionaryBatch()&&(n=og.encode(t,e.header())),Vh.startMessage(t),Vh.addVersion(t,Nl.V5),Vh.addHeader(t,n),Vh.addHeaderType(t,e.headerType),Vh.addBodyLength(t,BigInt(e.bodyLength)),Vh.finishMessageBuffer(t,Vh.endMessage(t)),t.asUint8Array()}static from(t,n=0){if(t instanceof Rm)return new e(0,Nl.V5,Tu.Schema,t);if(t instanceof ag)return new e(n,Nl.V5,Tu.RecordBatch,t);if(t instanceof og)return new e(n,Nl.V5,Tu.DictionaryBatch,t);throw Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===Tu.Schema}isRecordBatch(){return this.headerType===Tu.RecordBatch}isDictionaryBatch(){return this.headerType===Tu.DictionaryBatch}constructor(e,t,n,r){this._version=t,this._headerType=n,this.body=new Uint8Array,r&&(this._createHeader=()=>r),this._bodyLength=Ou(e)}},ag=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,t,n){this._nodes=t,this._buffers=n,this._length=Ou(e)}},og=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t,n=!1){this._data=e,this._isDelta=n,this._id=Ou(t)}},sg=class{constructor(e,t){this.offset=Ou(e),this.length=Ou(t)}},cg=class{constructor(e,t){this.length=Ou(e),this.nullCount=Ou(t)}};function lg(e,t){return(()=>{switch(t){case Tu.Schema:return Rm.fromJSON(e);case Tu.RecordBatch:return ag.fromJSON(e);case Tu.DictionaryBatch:return og.fromJSON(e)}throw Error(`Unrecognized Message type: { name: ${Tu[t]}, type: ${t} }`)})}function ug(e,t){return(()=>{switch(t){case Tu.Schema:return Rm.decode(e.header(new wu),new Map,e.version());case Tu.RecordBatch:return ag.decode(e.header(new Xl),e.version());case Tu.DictionaryBatch:return og.decode(e.header(new Zl),e.version())}throw Error(`Unrecognized Message type: { name: ${Tu[t]}, type: ${t} }`)})}zm.encode=Tg,zm.decode=bg,zm.fromJSON=Qh,Rm.encode=wg,Rm.decode=dg,Rm.fromJSON=Wh,ag.encode=Eg,ag.decode=fg,ag.fromJSON=Gh,og.encode=Dg,og.decode=pg,og.fromJSON=Kh,cg.encode=Og,cg.decode=hg,sg.encode=kg,sg.decode=mg;function dg(e,t=new Map,n=Nl.V5){let r=vg(e,t);return new Rm(r,xg(e),t,n)}function fg(e,t=Nl.V5){if(e.compression()!==null)throw Error(`Record batch compression not implemented`);return new ag(e.length(),gg(e),_g(e,t))}function pg(e,t=Nl.V5){return new og(ag.decode(e.data(),t),e.id(),e.isDelta())}function mg(e){return new sg(e.offset(),e.length())}function hg(e){return new cg(e.length(),e.nullCount())}function gg(e){let t=[];for(let n,r=-1,i=-1,a=e.nodesLength();++rzm.encode(e,t));wu.startFieldsVector(e,n.length);let r=wu.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?wu.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return nu.startKeyValue(e),nu.addKey(e,r),nu.addValue(e,i),nu.endKeyValue(e)})):-1;return wu.startSchema(e),wu.addFields(e,r),wu.addEndianness(e,Ag?Ql.Little:Ql.Big),i!==-1&&wu.addCustomMetadata(e,i),wu.endSchema(e)}function Tg(e,t){let n=-1,r=-1,i=-1,a=t.type,o=t.typeId;C.isDictionary(a)?(o=a.dictionary.typeId,i=Uh.visit(a,e),r=Uh.visit(a.dictionary,e)):r=Uh.visit(a,e);let s=(a.children||[]).map(t=>zm.encode(e,t)),c=Cu.createChildrenVector(e,s),l=t.metadata&&t.metadata.size>0?Cu.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return nu.startKeyValue(e),nu.addKey(e,r),nu.addValue(e,i),nu.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),Cu.startField(e),Cu.addType(e,r),Cu.addTypeType(e,o),Cu.addChildren(e,c),Cu.addNullable(e,!!t.nullable),n!==-1&&Cu.addName(e,n),i!==-1&&Cu.addDictionary(e,i),l!==-1&&Cu.addCustomMetadata(e,l),Cu.endField(e)}function Eg(e,t){let n=t.nodes||[],r=t.buffers||[];Xl.startNodesVector(e,n.length);for(let t of n.slice().reverse())cg.encode(e,t);let i=e.endVector();Xl.startBuffersVector(e,r.length);for(let t of r.slice().reverse())sg.encode(e,t);let a=e.endVector();return Xl.startRecordBatch(e),Xl.addLength(e,BigInt(t.length)),Xl.addNodes(e,i),Xl.addBuffers(e,a),Xl.endRecordBatch(e)}function Dg(e,t){let n=ag.encode(e,t.data);return Zl.startDictionaryBatch(e),Zl.addId(e,BigInt(t.id)),Zl.addIsDelta(e,t.isDelta),Zl.addData(e,n),Zl.endDictionaryBatch(e)}function Og(e,t){return Yl.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))}function kg(e,t){return Jl.createBuffer(e,BigInt(t.offset),BigInt(t.length))}const Ag=(()=>{let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256})(),jg=e=>`Expected ${Tu[e]} Message in stream, but was null or length 0.`,Mg=e=>`Header pointer of flatbuffer-encoded ${Tu[e]} Message is null or length 0.`,Ng=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,Pg=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;var Fg=class{constructor(e){this.source=e instanceof Qm?e:new Qm(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?qm:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(jg(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array;let t=_l(this.source.read(e));if(t.byteLength[...e,...n.VALIDITY&&[n.VALIDITY]||[],...n.TYPE_ID&&[n.TYPE_ID]||[],...n.OFFSET&&[n.OFFSET]||[],...n.DATA&&[n.DATA]||[],...t(n.children)],[])}}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw Error(jg(e));return t.value}readSchema(){let e=Tu.Schema,t=this.readMessage(e),n=t?.header();if(!t||!n)throw Error(Mg(e));return n}};const Rg=4,zg=new Uint8Array(6);for(let e=0;e<6;e+=1)zg[e]=`ARROW1`.codePointAt(e);function Bg(e,t=0){for(let n=-1,r=zg.length;++nthis):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return Tl.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Tl.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw Error(`"throughNode" not available in this environment`)}static throughDOM(e,t){throw Error(`"throughDOM" not available in this environment`)}static from(t){return t instanceof e?t:el(t)?i_(t):nl(t)?s_(t):Zc(t)?(()=>y(this,void 0,void 0,function*(){return yield e.from(yield t)}))():rl(t)||ol(t)||cl(t)||$c(t)?o_(new $m(t)):a_(new Qm(t))}static readAll(t){return t instanceof e?t.isSync()?n_(t):r_(t):el(t)||ArrayBuffer.isView(t)||Qc(t)||tl(t)?n_(t):r_(t)}},Gg=class extends Wg{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Bc(this,arguments,function*(){yield b(yield*Vc(Hc(this[Symbol.iterator]())))})}},Kg=class extends Wg{constructor(e){super(e),this._impl=e}readAll(){return y(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=Hc(this),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}[Symbol.iterator](){throw Error(`AsyncRecordBatchStreamReader is not Iterable`)}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},qg=class extends Gg{constructor(e){super(e),this._impl=e}},Jg=class extends Kg{constructor(e){super(e),this._impl=e}},Yg=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){let n=this._loadVectors(e,t,this.schema.fields),r=k({type:new Id(this.schema.fields),length:e.length,children:n});return new Lh(this.schema,r)}_loadDictionaryBatch(e,t){let{id:n,isDelta:r}=e,{dictionaries:i,schema:a}=this,o=i.get(n),s=a.dictionaries.get(n),c=this._loadVectors(e.data,t,[s]);return(o&&r?o.concat(new Pm(c)):new Pm(c)).memoize()}_loadVectors(e,t,n){return new uh(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}},Xg=class extends Yg{constructor(e,t){super(t),this._reader=el(e)?new Lg(this._handle=e):new Fg(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=t_(this,e),(this.schema||=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):qm}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):qm}next(){if(this.closed)return qm;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let n=e.header(),r=t.readMessageBody(e.bodyLength),i=this._loadRecordBatch(n,r);return{done:!1,value:i}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let n=e.header(),r=t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Bh(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Zg=class extends Yg{constructor(e,t){super(t),this._reader=new Ig(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return y(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return y(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=t_(this,e),(this.schema||=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return y(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):qm})}return(e){return y(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):qm})}next(){return y(this,void 0,void 0,function*(){if(this.closed)return qm;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let n=e.header(),r=yield t.readMessageBody(e.bodyLength),i=this._loadRecordBatch(n,r);return{done:!1,value:i}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let n=e.header(),r=yield t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Bh(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return y(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},Qg=class extends Xg{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof nh?e:new nh(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();let n=(t=this._footer)?.getRecordBatch(e);if(n&&this._handle.seek(n.offset)){let e=this._reader.readMessage(Tu.RecordBatch);if(e?.isRecordBatch()){let t=e.header(),n=this._reader.readMessageBody(e.bodyLength),r=this._loadRecordBatch(t,n);return r}}return null}_readDictionaryBatch(e){var t;let n=(t=this._footer)?.getDictionaryBatch(e);if(n&&this._handle.seek(n.offset)){let e=this._reader.readMessage(Tu.DictionaryBatch);if(e?.isDictionaryBatch()){let t=e.header(),n=this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}}_readFooter(){let{_handle:e}=this,t=e.size-Hg,n=e.readInt32(t),r=e.readAt(t-n,n);return Wm.decode(r)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return y(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){return y(this,void 0,void 0,function*(){var t;if(this.closed)return null;this._footer||(yield this.open());let n=(t=this._footer)?.getRecordBatch(e);if(n&&(yield this._handle.seek(n.offset))){let e=yield this._reader.readMessage(Tu.RecordBatch);if(e?.isRecordBatch()){let t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength),r=this._loadRecordBatch(t,n);return r}}return null})}_readDictionaryBatch(e){return y(this,void 0,void 0,function*(){var t;let n=(t=this._footer)?.getDictionaryBatch(e);if(n&&(yield this._handle.seek(n.offset))){let e=yield this._reader.readMessage(Tu.DictionaryBatch);if(e?.isDictionaryBatch()){let t=e.header(),n=yield this._reader.readMessageBody(e.bodyLength),r=this._loadDictionaryBatch(t,n);this.dictionaries.set(t.id,r)}}})}_readFooter(){return y(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-Hg,n=yield e.readInt32(t),r=yield e.readAt(t-n,n);return Wm.decode(r)})}_readNextMessageAndValidate(e){return y(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?Bg(t)?new qg(new Qg(e.read())):new Gg(new Xg(e)):new Gg(new Xg(function*(){}()))}function o_(e){return y(this,void 0,void 0,function*(){let t=yield e.peek(Vg+7&-8);return t&&t.byteLength>=4?Bg(t)?new qg(new Qg(yield e.read())):new Kg(new Zg(e)):new Kg(new Zg(function(){return Bc(this,arguments,function*(){})}()))})}function s_(e){return y(this,void 0,void 0,function*(){let{size:t}=yield e.stat(),n=new rh(e,t);return t>=Ug&&Bg(yield n.readAt(0,Vg+7&-8))?new Jg(new $g(n)):new Kg(new Zg(n))})}var c_=class e extends w{static assemble(...t){let n=e=>e.flatMap(e=>Array.isArray(e)?n(e):e instanceof Lh?e.data.children:e.data),r=new e;return r.visitMany(n(t)),r}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(e){if(e instanceof Pm)return this.visitMany(e.data),this;let{type:t}=e;if(!C.isDictionary(t)){let{length:n}=e;if(n>2147483647)throw RangeError(`Cannot write arrays larger than 2^31 - 1 in length`);if(C.isUnion(t))this.nodes.push(new cg(n,0));else{let{nullCount:r}=e;C.isNull(t)||l_.call(this,r<=0?new Uint8Array:om(e.offset,n,e.nullBitmap)),this.nodes.push(new cg(n,r))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function l_(e){let t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new sg(this._byteLength,t)),this._byteLength+=t,this}function u_(e){var t;let{type:n,length:r,typeIds:i,valueOffsets:a}=e;if(l_.call(this,i),n.mode===Pl.Sparse)return h_.call(this,e);if(n.mode===Pl.Dense){if(e.offset<=0)return l_.call(this,a),h_.call(this,e);{let o=new Int32Array(r),s=Object.create(null),c=Object.create(null);for(let e,n,l=-1;++l{let i=n.typeIds[t],a=s[i],o=c[i];return e.slice(a,Math.min(r,o))}))}}return this}function d_(e){let t;return e.nullCount>=e.length?l_.call(this,new Uint8Array):(t=e.values)instanceof Uint8Array?l_.call(this,om(e.offset,e.length,t)):l_.call(this,sm(e.values))}function f_(e){return l_.call(this,e.values.subarray(0,e.length*e.stride))}function p_(e){let{length:t,values:n,valueOffsets:r}=e,i=Ou(r[0]),a=Ou(r[t]),o=Math.min(a-i,n.byteLength-i);return l_.call(this,Cl(-i,t+1,r)),l_.call(this,n.subarray(i,i+o)),this}function m_(e){let{length:t,valueOffsets:n}=e;if(n){let{0:r,[t]:i}=n;return l_.call(this,Cl(-r,t+1,n)),this.visit(e.children[0].slice(r,i-r))}return this.visit(e.children[0])}function h_(e){return this.visitMany(e.type.children.map((t,n)=>e.children[n]).filter(Boolean))[0]}c_.prototype.visitBool=d_,c_.prototype.visitInt=f_,c_.prototype.visitFloat=f_,c_.prototype.visitUtf8=p_,c_.prototype.visitLargeUtf8=p_,c_.prototype.visitBinary=p_,c_.prototype.visitLargeBinary=p_,c_.prototype.visitFixedSizeBinary=f_,c_.prototype.visitDate=f_,c_.prototype.visitTimestamp=f_,c_.prototype.visitTime=f_,c_.prototype.visitDecimal=f_,c_.prototype.visitList=m_,c_.prototype.visitStruct=h_,c_.prototype.visitUnion=u_,c_.prototype.visitInterval=f_,c_.prototype.visitDuration=f_,c_.prototype.visitFixedSizeList=m_,c_.prototype.visitMap=m_;var g_=class extends Ym{static throughNode(e){throw Error(`"throughNode" not available in this environment`)}static throughDOM(e,t){throw Error(`"throughDOM" not available in this environment`)}constructor(e){super(),this._position=0,this._started=!1,this._sink=new Zm,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,Xc(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof e.autoDestroy==`boolean`?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat==`boolean`?e.writeLegacyIpcFormat:!1}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return Zc(e)?e.then(e=>this.writeAll(e)):$c(e)?b_(this,e):y_(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,t=null){return e===this._sink||e instanceof Zm?this._sink=e:(this._sink=new Zm,e&&al(e)?this.toDOMStream({type:`bytes`}).pipeTo(e):e&&sl(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!t||!Ah(t,this._schema))&&(t==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=t,this._writeSchema(t))),this}write(e){let t=null;if(this._sink){if(e==null||e instanceof Fh&&!(t=e.schema)||e instanceof Lh&&!(t=e.schema))return this.finish()&&void 0}else throw Error(`RecordBatchWriter is closed`);if(t&&!Ah(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof Lh?e instanceof Bh||this._writeRecordBatch(e):e instanceof Fh?this.writeAll(e.batches):Qc(e)&&this.writeAll(e)}_writeMessage(e,t=8){let n=t-1,r=ig.encode(e),i=r.byteLength,a=this._writeLegacyIpcFormat?4:8,o=i+a+n&~n,s=o-i-a;return e.headerType===Tu.RecordBatch?this._recordBatchBlocks.push(new Km(o,e.bodyLength,this._position)):e.headerType===Tu.DictionaryBatch&&this._dictionaryBlocks.push(new Km(o,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(o-a)),i>0&&this._write(r),this._writePadding(s)}_write(e){if(this._started){let t=_l(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(ig.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(zg)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:t,nodes:n,bufferRegions:r,buffers:i}=c_.assemble(e),a=new ag(e.numRows,n,r),o=ig.from(a,t);return this._writeDictionaries(e)._writeMessage(o)._writeBodyBuffers(i)}_writeDictionaryBatch(e,t,n=!1){let{byteLength:r,nodes:i,bufferRegions:a,buffers:o}=c_.assemble(new Pm([e])),s=new ag(e.length,i,a),c=new og(s,t,n),l=ig.from(c,r);return this._writeMessage(l)._writeBodyBuffers(o)}_writeBodyBuffers(e){let t,n,r;for(let i=-1,a=e.length;++i0&&(this._write(t),(r=(n+7&-8)-n)>0&&this._writePadding(r));return this}_writeDictionaries(e){var t,n;for(let[r,i]of e.dictionaries){let e=(t=i?.data)??[],a=this._seenDictionaries.get(r),o=(n=this._dictionaryDeltaOffsets.get(r))??0;if(!a||a.data[0]!==e[0])for(let[t,n]of e.entries())this._writeDictionaryBatch(n,r,t>0);else if(or.writeAll(e)):$c(t)?b_(r,t):y_(r,t)}},v_=class e extends g_{static writeAll(t){let n=new e;return Zc(t)?t.then(e=>n.writeAll(e)):$c(t)?b_(n,t):y_(n,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,t,n=!1){if(!n&&this._seenDictionaries.has(t))throw Error(`The Arrow File format does not support replacement dictionaries. `);return super._writeDictionaryBatch(e,t,n)}_writeFooter(e){let t=Wm.encode(new Wm(e,Nl.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}};function y_(e,t){let n=t;t instanceof Fh&&(n=t.batches,e.reset(void 0,t.schema));for(let t of n)e.write(t);return e.finish()}function b_(e,t){return y(this,void 0,void 0,function*(){var n,r,i,a,o,s,c;try{for(n=!0,r=Hc(t);i=yield r.next(),a=i.done,!a;n=!0){c=i.value,n=!1;let t=c;e.write(t)}}catch(e){o={error:e}}finally{try{!n&&!a&&(s=r.return)&&(yield s.call(r))}finally{if(o)throw o.error}}return e.finish()})}function x_(e,t=`stream`){return(t===`stream`?__:v_).writeAll(e).toUint8Array(!0)}var S_=Object.create,C_=Object.defineProperty,w_=Object.getOwnPropertyDescriptor,T_=Object.getOwnPropertyNames,E_=Object.getPrototypeOf,D_=Object.prototype.hasOwnProperty,O_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),k_=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of T_(t))!D_.call(e,i)&&i!==n&&C_(e,i,{get:()=>t[i],enumerable:!(r=w_(t,i))||r.enumerable});return e},A_=(e,t,n)=>(n=e==null?{}:S_(E_(e)),k_(t||!e||!e.__esModule?C_(n,`default`,{value:e,enumerable:!0}):n,e)),j_=O_((e,t)=>{t.exports=Worker}),M_=(e=>(e[e.UNDEFINED=0]=`UNDEFINED`,e[e.AUTOMATIC=1]=`AUTOMATIC`,e[e.READ_ONLY=2]=`READ_ONLY`,e[e.READ_WRITE=3]=`READ_WRITE`,e))(M_||{}),N_=(e=>(e[e.IDENTIFIER=0]=`IDENTIFIER`,e[e.NUMERIC_CONSTANT=1]=`NUMERIC_CONSTANT`,e[e.STRING_CONSTANT=2]=`STRING_CONSTANT`,e[e.OPERATOR=3]=`OPERATOR`,e[e.KEYWORD=4]=`KEYWORD`,e[e.COMMENT=5]=`COMMENT`,e))(N_||{}),P_=(e=>(e[e.NONE=0]=`NONE`,e[e.DEBUG=1]=`DEBUG`,e[e.INFO=2]=`INFO`,e[e.WARNING=3]=`WARNING`,e[e.ERROR=4]=`ERROR`,e))(P_||{}),F_=(e=>(e[e.NONE=0]=`NONE`,e[e.CONNECT=1]=`CONNECT`,e[e.DISCONNECT=2]=`DISCONNECT`,e[e.OPEN=3]=`OPEN`,e[e.QUERY=4]=`QUERY`,e[e.INSTANTIATE=5]=`INSTANTIATE`,e))(F_||{}),I_=(e=>(e[e.NONE=0]=`NONE`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`,e[e.START=3]=`START`,e[e.RUN=4]=`RUN`,e[e.CAPTURE=5]=`CAPTURE`,e))(I_||{}),L_=(e=>(e[e.NONE=0]=`NONE`,e[e.WEB_WORKER=1]=`WEB_WORKER`,e[e.NODE_WORKER=2]=`NODE_WORKER`,e[e.BINDINGS=3]=`BINDINGS`,e[e.ASYNC_DUCKDB=4]=`ASYNC_DUCKDB`,e))(L_||{}),R_=class{log(e){}},z_=class{constructor(e=2){this.level=e}log(e){e.level>=this.level&&console.log(e)}},B_=(e=>(e[e.SUCCESS=0]=`SUCCESS`,e))(B_||{}),V_=class{constructor(e,t){this._bindings=e,this._conn=t}get bindings(){return this._bindings}async close(){return this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}async query(e){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:e});let t=await this._bindings.runQuery(this._conn,e),n=Wg.from(t);return console.assert(n.isSync(),`Reader is not sync`),console.assert(n.isFile(),`Reader is not file`),new Fh(n)}async send(e,t=!1){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:e});let n=await this._bindings.startPendingQuery(this._conn,e,t);for(;n==null;)n=await this._bindings.pollPendingQuery(this._conn);let r=new H_(this._bindings,this._conn,n),i=await Wg.from(r);return console.assert(i.isAsync()),console.assert(i.isStream()),i}async cancelSent(){return await this._bindings.cancelPendingQuery(this._conn)}async getTableNames(e){return await this._bindings.getTableNames(this._conn,e)}async prepare(e){let t=await this._bindings.createPrepared(this._conn,e);return new U_(this._bindings,this._conn,t)}async insertArrowTable(e,t){let n=x_(e,`stream`);await this.insertArrowFromIPCStream(n,t)}async insertArrowFromIPCStream(e,t){await this._bindings.insertArrowFromIPCStream(this._conn,e,t)}async insertCSVFromPath(e,t){await this._bindings.insertCSVFromPath(this._conn,e,t)}async insertJSONFromPath(e,t){await this._bindings.insertJSONFromPath(this._conn,e,t)}},H_=class{constructor(e,t,n){this.db=e,this.conn=t,this.header=n,this._first=!0,this._depleted=!1,this._inFlight=null}async next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e;return this._inFlight==null?e=await this.db.fetchQueryResults(this.conn):(e=await this._inFlight,this._inFlight=null),this._depleted=e.length==0,this._depleted||(this._inFlight=this.db.fetchQueryResults(this.conn)),{done:this._depleted,value:e}}[Symbol.asyncIterator](){return this}},U_=class{constructor(e,t,n){this.bindings=e,this.connectionId=t,this.statementId=n}async close(){await this.bindings.closePrepared(this.connectionId,this.statementId)}async query(...e){let t=await this.bindings.runPrepared(this.connectionId,this.statementId,e),n=Wg.from(t);return console.assert(n.isSync()),console.assert(n.isFile()),new Fh(n)}async send(...e){let t=await this.bindings.sendPrepared(this.connectionId,this.statementId,e),n=new H_(this.bindings,this.connectionId,t),r=await Wg.from(n);return console.assert(r.isAsync()),console.assert(r.isStream()),r}},W_=(e=>(e.CANCEL_PENDING_QUERY=`CANCEL_PENDING_QUERY`,e.CLOSE_PREPARED=`CLOSE_PREPARED`,e.COLLECT_FILE_STATISTICS=`COLLECT_FILE_STATISTICS`,e.REGISTER_OPFS_FILE_NAME=`REGISTER_OPFS_FILE_NAME`,e.CONNECT=`CONNECT`,e.COPY_FILE_TO_BUFFER=`COPY_FILE_TO_BUFFER`,e.COPY_FILE_TO_PATH=`COPY_FILE_TO_PATH`,e.CREATE_PREPARED=`CREATE_PREPARED`,e.DISCONNECT=`DISCONNECT`,e.DROP_FILE=`DROP_FILE`,e.DROP_FILES=`DROP_FILES`,e.EXPORT_FILE_STATISTICS=`EXPORT_FILE_STATISTICS`,e.FETCH_QUERY_RESULTS=`FETCH_QUERY_RESULTS`,e.FLUSH_FILES=`FLUSH_FILES`,e.GET_FEATURE_FLAGS=`GET_FEATURE_FLAGS`,e.GET_TABLE_NAMES=`GET_TABLE_NAMES`,e.GET_VERSION=`GET_VERSION`,e.GLOB_FILE_INFOS=`GLOB_FILE_INFOS`,e.INSERT_ARROW_FROM_IPC_STREAM=`INSERT_ARROW_FROM_IPC_STREAM`,e.INSERT_CSV_FROM_PATH=`IMPORT_CSV_FROM_PATH`,e.INSERT_JSON_FROM_PATH=`IMPORT_JSON_FROM_PATH`,e.INSTANTIATE=`INSTANTIATE`,e.OPEN=`OPEN`,e.PING=`PING`,e.POLL_PENDING_QUERY=`POLL_PENDING_QUERY`,e.REGISTER_FILE_BUFFER=`REGISTER_FILE_BUFFER`,e.REGISTER_FILE_HANDLE=`REGISTER_FILE_HANDLE`,e.REGISTER_FILE_URL=`REGISTER_FILE_URL`,e.RESET=`RESET`,e.RUN_PREPARED=`RUN_PREPARED`,e.RUN_QUERY=`RUN_QUERY`,e.SEND_PREPARED=`SEND_PREPARED`,e.START_PENDING_QUERY=`START_PENDING_QUERY`,e.TOKENIZE=`TOKENIZE`,e))(W_||{}),G_=(e=>(e.CONNECTION_INFO=`CONNECTION_INFO`,e.ERROR=`ERROR`,e.FEATURE_FLAGS=`FEATURE_FLAGS`,e.FILE_BUFFER=`FILE_BUFFER`,e.FILE_INFOS=`FILE_INFOS`,e.FILE_SIZE=`FILE_SIZE`,e.FILE_STATISTICS=`FILE_STATISTICS`,e.INSTANTIATE_PROGRESS=`INSTANTIATE_PROGRESS`,e.LOG=`LOG`,e.OK=`OK`,e.PREPARED_STATEMENT_ID=`PREPARED_STATEMENT_ID`,e.QUERY_PLAN=`QUERY_PLAN`,e.QUERY_RESULT=`QUERY_RESULT`,e.QUERY_RESULT_CHUNK=`QUERY_RESULT_CHUNK`,e.QUERY_RESULT_HEADER=`QUERY_RESULT_HEADER`,e.QUERY_RESULT_HEADER_OR_NULL=`QUERY_RESULT_HEADER_OR_NULL`,e.REGISTERED_FILE=`REGISTERED_FILE`,e.SCRIPT_TOKENS=`SCRIPT_TOKENS`,e.SUCCESS=`SUCCESS`,e.TABLE_NAMES=`TABLE_NAMES`,e.VERSION_STRING=`VERSION_STRING`,e))(G_||{}),K_=class{constructor(e,t){this.promiseResolver=()=>{},this.promiseRejecter=()=>{},this.type=e,this.data=t,this.promise=new Promise((e,t)=>{this.promiseResolver=e,this.promiseRejecter=t})}};function q_(e){switch(e.typeId){case S.Binary:return{sqlType:`binary`};case S.Bool:return{sqlType:`bool`};case S.Date:return{sqlType:`date`};case S.DateDay:return{sqlType:`date32[d]`};case S.DateMillisecond:return{sqlType:`date64[ms]`};case S.Decimal:{let t=e;return{sqlType:`decimal`,precision:t.precision,scale:t.scale}}case S.Float:return{sqlType:`float`};case S.Float16:return{sqlType:`float16`};case S.Float32:return{sqlType:`float32`};case S.Float64:return{sqlType:`float64`};case S.Int:return{sqlType:`int32`};case S.Int16:return{sqlType:`int16`};case S.Int32:return{sqlType:`int32`};case S.Int64:return{sqlType:`int64`};case S.Uint16:return{sqlType:`uint16`};case S.Uint32:return{sqlType:`uint32`};case S.Uint64:return{sqlType:`uint64`};case S.Uint8:return{sqlType:`uint8`};case S.IntervalDayTime:return{sqlType:`interval[dt]`};case S.IntervalYearMonth:return{sqlType:`interval[m]`};case S.List:return{sqlType:`list`,valueType:q_(e.valueType)};case S.FixedSizeBinary:return{sqlType:`fixedsizebinary`,byteWidth:e.byteWidth};case S.Null:return{sqlType:`null`};case S.Utf8:return{sqlType:`utf8`};case S.Struct:return{sqlType:`struct`,fields:e.children.map(e=>J_(e.name,e.type))};case S.Map:{let t=e;return{sqlType:`map`,keyType:q_(t.keyType),valueType:q_(t.valueType)}}case S.Time:return{sqlType:`time[s]`};case S.TimeMicrosecond:return{sqlType:`time[us]`};case S.TimeMillisecond:return{sqlType:`time[ms]`};case S.TimeNanosecond:return{sqlType:`time[ns]`};case S.TimeSecond:return{sqlType:`time[s]`};case S.Timestamp:return{sqlType:`timestamp`,timezone:e.timezone||void 0};case S.TimestampSecond:return{sqlType:`timestamp[s]`,timezone:e.timezone||void 0};case S.TimestampMicrosecond:return{sqlType:`timestamp[us]`,timezone:e.timezone||void 0};case S.TimestampNanosecond:return{sqlType:`timestamp[ns]`,timezone:e.timezone||void 0};case S.TimestampMillisecond:return{sqlType:`timestamp[ms]`,timezone:e.timezone||void 0}}throw Error(`unsupported arrow type: ${e.toString()}`)}function J_(e,t){let n=q_(t);return n.name=e,n}var Y_=new TextEncoder,X_=class{constructor(e,t=null){this._onInstantiationProgress=[],this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{},this._nextMessageId=0,this._pendingRequests=new Map,this._logger=e,this._onMessageHandler=this.onMessage.bind(this),this._onErrorHandler=this.onError.bind(this),this._onCloseHandler=this.onClose.bind(this),t!=null&&this.attach(t)}get logger(){return this._logger}attach(e){this._worker=e,this._worker.addEventListener(`message`,this._onMessageHandler),this._worker.addEventListener(`error`,this._onErrorHandler),this._worker.addEventListener(`close`,this._onCloseHandler),this._workerShutdownPromise=new Promise((e,t)=>{this._workerShutdownResolver=e})}detach(){this._worker&&(this._worker.removeEventListener(`message`,this._onMessageHandler),this._worker.removeEventListener(`error`,this._onErrorHandler),this._worker.removeEventListener(`close`,this._onCloseHandler),this._worker=null,this._workerShutdownResolver(null),this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async terminate(){this._worker&&(this._worker.terminate(),this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async postTask(e,t=[]){if(!this._worker){console.error(`cannot send a message since the worker is not set!`);return}let n=this._nextMessageId++;return this._pendingRequests.set(n,e),this._worker.postMessage({messageId:n,type:e.type,data:e.data},t),await e.promise}onMessage(e){var t;let n=e.data;switch(n.type){case`LOG`:this._logger.log(n.data);return;case`INSTANTIATE_PROGRESS`:for(let e of this._onInstantiationProgress)e(n.data);return}let r=this._pendingRequests.get(n.requestId);if(!r){console.warn(`unassociated response: [${n.requestId}, ${n.type.toString()}]`);return}if(this._pendingRequests.delete(n.requestId),n.type==`ERROR`){let e=Error(n.data.message);e.name=n.data.name,(t=Object.getOwnPropertyDescriptor(e,`stack`))!=null&&t.writable&&(e.stack=n.data.stack),r.promiseRejecter(e);return}switch(r.type){case`CLOSE_PREPARED`:case`COLLECT_FILE_STATISTICS`:case`REGISTER_OPFS_FILE_NAME`:case`COPY_FILE_TO_PATH`:case`DISCONNECT`:case`DROP_FILE`:case`DROP_FILES`:case`FLUSH_FILES`:case`INSERT_ARROW_FROM_IPC_STREAM`:case`IMPORT_CSV_FROM_PATH`:case`IMPORT_JSON_FROM_PATH`:case`OPEN`:case`PING`:case`REGISTER_FILE_BUFFER`:case`REGISTER_FILE_HANDLE`:case`REGISTER_FILE_URL`:case`RESET`:if(n.type==`OK`){r.promiseResolver(n.data);return}break;case`INSTANTIATE`:if(this._onInstantiationProgress=[],n.type==`OK`){r.promiseResolver(n.data);return}break;case`GLOB_FILE_INFOS`:if(n.type==`FILE_INFOS`){r.promiseResolver(n.data);return}break;case`GET_VERSION`:if(n.type==`VERSION_STRING`){r.promiseResolver(n.data);return}break;case`GET_FEATURE_FLAGS`:if(n.type==`FEATURE_FLAGS`){r.promiseResolver(n.data);return}break;case`GET_TABLE_NAMES`:if(n.type==`TABLE_NAMES`){r.promiseResolver(n.data);return}break;case`TOKENIZE`:if(n.type==`SCRIPT_TOKENS`){r.promiseResolver(n.data);return}break;case`COPY_FILE_TO_BUFFER`:if(n.type==`FILE_BUFFER`){r.promiseResolver(n.data);return}break;case`EXPORT_FILE_STATISTICS`:if(n.type==`FILE_STATISTICS`){r.promiseResolver(n.data);return}break;case`CONNECT`:if(n.type==`CONNECTION_INFO`){r.promiseResolver(n.data);return}break;case`RUN_PREPARED`:case`RUN_QUERY`:if(n.type==`QUERY_RESULT`){r.promiseResolver(n.data);return}break;case`SEND_PREPARED`:if(n.type==`QUERY_RESULT_HEADER`){r.promiseResolver(n.data);return}break;case`START_PENDING_QUERY`:if(n.type==`QUERY_RESULT_HEADER_OR_NULL`){r.promiseResolver(n.data);return}break;case`POLL_PENDING_QUERY`:if(n.type==`QUERY_RESULT_HEADER_OR_NULL`){r.promiseResolver(n.data);return}break;case`CANCEL_PENDING_QUERY`:if(this._onInstantiationProgress=[],n.type==`SUCCESS`){r.promiseResolver(n.data);return}break;case`FETCH_QUERY_RESULTS`:if(n.type==`QUERY_RESULT_CHUNK`){r.promiseResolver(n.data);return}break;case`CREATE_PREPARED`:if(n.type==`PREPARED_STATEMENT_ID`){r.promiseResolver(n.data);return}break}r.promiseRejecter(Error(`unexpected response type: ${n.type.toString()}`))}onError(e){console.error(e),console.error(`error in duckdb worker: ${e.message}`),this._pendingRequests.clear()}onClose(){if(this._workerShutdownResolver(null),this._pendingRequests.size!=0){console.warn(`worker terminated with ${this._pendingRequests.size} pending requests`);return}this._pendingRequests.clear()}async reset(){let e=new K_(`RESET`,null);return await this.postTask(e)}async ping(){let e=new K_(`PING`,null);await this.postTask(e)}async dropFile(e){let t=new K_(`DROP_FILE`,e);return await this.postTask(t)}async dropFiles(){let e=new K_(`DROP_FILES`,null);return await this.postTask(e)}async flushFiles(){let e=new K_(`FLUSH_FILES`,null);return await this.postTask(e)}async instantiate(e,t=null,n=e=>{}){this._onInstantiationProgress.push(n);let r=new K_(`INSTANTIATE`,[e,t]);return await this.postTask(r)}async getVersion(){let e=new K_(`GET_VERSION`,null);return await this.postTask(e)}async getFeatureFlags(){let e=new K_(`GET_FEATURE_FLAGS`,null);return await this.postTask(e)}async open(e){let t=new K_(`OPEN`,e);await this.postTask(t)}async tokenize(e){let t=new K_(`TOKENIZE`,e);return await this.postTask(t)}async connectInternal(){let e=new K_(`CONNECT`,null);return await this.postTask(e)}async connect(){let e=await this.connectInternal();return new V_(this,e)}async disconnect(e){let t=new K_(`DISCONNECT`,e);await this.postTask(t)}async runQuery(e,t){let n=new K_(`RUN_QUERY`,[e,t]);return await this.postTask(n)}async startPendingQuery(e,t,n=!1){let r=new K_(`START_PENDING_QUERY`,[e,t,n]);return await this.postTask(r)}async pollPendingQuery(e){let t=new K_(`POLL_PENDING_QUERY`,e);return await this.postTask(t)}async cancelPendingQuery(e){let t=new K_(`CANCEL_PENDING_QUERY`,e);return await this.postTask(t)}async fetchQueryResults(e){let t=new K_(`FETCH_QUERY_RESULTS`,e);return await this.postTask(t)}async getTableNames(e,t){let n=new K_(`GET_TABLE_NAMES`,[e,t]);return await this.postTask(n)}async createPrepared(e,t){let n=new K_(`CREATE_PREPARED`,[e,t]);return await this.postTask(n)}async closePrepared(e,t){let n=new K_(`CLOSE_PREPARED`,[e,t]);await this.postTask(n)}async runPrepared(e,t,n){let r=new K_(`RUN_PREPARED`,[e,t,n]);return await this.postTask(r)}async sendPrepared(e,t,n){let r=new K_(`SEND_PREPARED`,[e,t,n]);return await this.postTask(r)}async globFiles(e){let t=new K_(`GLOB_FILE_INFOS`,e);return await this.postTask(t)}async registerFileText(e,t){let n=Y_.encode(t);await this.registerFileBuffer(e,n)}async registerFileURL(e,t,n,r){t===void 0&&(t=e);let i=new K_(`REGISTER_FILE_URL`,[e,t,n,r]);await this.postTask(i)}async registerEmptyFileBuffer(e){}async registerFileBuffer(e,t){let n=new K_(`REGISTER_FILE_BUFFER`,[e,t]);await this.postTask(n,[t.buffer])}async registerFileHandle(e,t,n,r){let i=new K_(`REGISTER_FILE_HANDLE`,[e,t,n,r]);await this.postTask(i,[])}async registerOPFSFileName(e){let t=new K_(`REGISTER_OPFS_FILE_NAME`,[e]);await this.postTask(t,[])}async collectFileStatistics(e,t){let n=new K_(`COLLECT_FILE_STATISTICS`,[e,t]);await this.postTask(n,[])}async exportFileStatistics(e){let t=new K_(`EXPORT_FILE_STATISTICS`,e);return await this.postTask(t,[])}async copyFileToBuffer(e){let t=new K_(`COPY_FILE_TO_BUFFER`,e);return await this.postTask(t)}async copyFileToPath(e,t){let n=new K_(`COPY_FILE_TO_PATH`,[e,t]);await this.postTask(n)}async insertArrowFromIPCStream(e,t,n){if(t.length==0)return;let r=new K_(`INSERT_ARROW_FROM_IPC_STREAM`,[e,t,n]);await this.postTask(r,[t.buffer])}async insertCSVFromPath(e,t,n){if(n.columns!==void 0){let e=[];for(let t in n.columns){let r=n.columns[t];e.push(J_(t,r))}n.columnsFlat=e,delete n.columns}let r=new K_(`IMPORT_CSV_FROM_PATH`,[e,t,n]);await this.postTask(r)}async insertJSONFromPath(e,t,n){if(n.columns!==void 0){let e=[];for(let t in n.columns){let r=n.columns[t];e.push(J_(t,r))}n.columnsFlat=e,delete n.columns}let r=new K_(`IMPORT_JSON_FROM_PATH`,[e,t,n]);await this.postTask(r)}};function Z_(){let e=new TextDecoder;return t=>(typeof SharedArrayBuffer<`u`&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),e.decode(t))}Z_();var Q_=(e=>(e[e.BUFFER=0]=`BUFFER`,e[e.NODE_FS=1]=`NODE_FS`,e[e.BROWSER_FILEREADER=2]=`BROWSER_FILEREADER`,e[e.BROWSER_FSACCESS=3]=`BROWSER_FSACCESS`,e[e.HTTP=4]=`HTTP`,e[e.S3=5]=`S3`,e))(Q_||{}),$_=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),ev=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])),tv=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),nv=()=>(async e=>{try{return typeof MessageChannel<`u`&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(e)}catch{return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])),rv={name:`@duckdb/duckdb-wasm`,version:`1.29.1-dev68.0`,description:`DuckDB powered by WebAssembly`,license:`MIT`,repository:{type:`git`,url:`https://github.com/duckdb/duckdb-wasm.git`},keywords:[`sql`,`duckdb`,`relational`,`database`,`data`,`query`,`wasm`,`analytics`,`olap`,`arrow`,`parquet`,`json`,`csv`],dependencies:{"apache-arrow":`^17.0.0`},devDependencies:{"@types/emscripten":`^1.39.10`,"@types/jasmine":`^5.1.4`,"@typescript-eslint/eslint-plugin":`^6.21.0`,"@typescript-eslint/parser":`^6.21.0`,esbuild:`^0.20.2`,eslint:`^8.57.0`,"eslint-plugin-jasmine":`^4.1.3`,"eslint-plugin-react":`^7.34.0`,"fast-glob":`^3.3.2`,jasmine:`^5.1.0`,"jasmine-core":`^5.1.2`,"jasmine-spec-reporter":`^7.0.0`,"js-sha256":`^0.11.0`,karma:`^6.4.2`,"karma-chrome-launcher":`^3.2.0`,"karma-coverage":`^2.2.1`,"karma-firefox-launcher":`^2.1.3`,"karma-jasmine":`^5.1.0`,"karma-jasmine-html-reporter":`^2.1.0`,"karma-sourcemap-loader":`^0.4.0`,"karma-spec-reporter":`^0.0.36`,"make-dir":`^4.0.0`,nyc:`^15.1.0`,prettier:`^3.2.5`,puppeteer:`^22.8.0`,rimraf:`^5.0.5`,s3rver:`^3.7.1`,typedoc:`^0.25.13`,typescript:`^5.3.3`,"wasm-feature-detect":`^1.6.1`,"web-worker":`^1.2.0`},scripts:{"build:debug":`node bundle.mjs debug && tsc --emitDeclarationOnly`,"build:release":`node bundle.mjs release && tsc --emitDeclarationOnly`,docs:`typedoc`,report:`node ./coverage.mjs`,"test:node":`node --enable-source-maps ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs`,"test:node:debug":`node --inspect-brk --enable-source-maps ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs`,"test:node:coverage":`nyc -r json --report-dir ./coverage/node node ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs`,"test:firefox":`karma start ./karma/tests-firefox.cjs`,"test:chrome":`karma start ./karma/tests-chrome.cjs`,"test:chrome:eh":`karma start ./karma/tests-chrome-eh.cjs`,"test:chrome:coverage":`karma start ./karma/tests-chrome-coverage.cjs`,"test:browser":`karma start ./karma/tests-all.cjs`,"test:browser:debug":`karma start ./karma/tests-debug.cjs`,test:`npm run test:chrome && npm run test:node`,"test:coverage":`npm run test:chrome:coverage && npm run test:node:coverage && npm run report`,lint:`eslint src test`},files:[`dist`,`!dist/tests-*`,`!dist/duckdb-browser-mvp.worker.js.map`,`!dist/types/test`],main:`dist/duckdb-browser.cjs`,module:`dist/duckdb-browser.mjs`,types:`dist/duckdb-browser.d.ts`,jsdelivr:`dist/duckdb-browser.cjs`,unpkg:`dist/duckdb-browser.mjs`,sideEffects:!1,browser:{fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},exports:{"./dist/duckdb-mvp.wasm":`./dist/duckdb-mvp.wasm`,"./dist/duckdb-eh.wasm":`./dist/duckdb-eh.wasm`,"./dist/duckdb-coi.wasm":`./dist/duckdb-coi.wasm`,"./dist/duckdb-browser":`./dist/duckdb-browser.mjs`,"./dist/duckdb-browser.cjs":`./dist/duckdb-browser.cjs`,"./dist/duckdb-browser.mjs":`./dist/duckdb-browser.mjs`,"./dist/duckdb-browser-coi.pthread.worker.js":`./dist/duckdb-browser-coi.pthread.worker.js`,"./dist/duckdb-browser-coi.worker.js":`./dist/duckdb-browser-coi.worker.js`,"./dist/duckdb-browser-eh.worker.js":`./dist/duckdb-browser-eh.worker.js`,"./dist/duckdb-browser-mvp.worker.js":`./dist/duckdb-browser-mvp.worker.js`,"./dist/duckdb-node":`./dist/duckdb-node.cjs`,"./dist/duckdb-node.cjs":`./dist/duckdb-node.cjs`,"./dist/duckdb-node-blocking":`./dist/duckdb-node-blocking.cjs`,"./dist/duckdb-node-blocking.cjs":`./dist/duckdb-node-blocking.cjs`,"./dist/duckdb-node-eh.worker.cjs":`./dist/duckdb-node-eh.worker.cjs`,"./dist/duckdb-node-mvp.worker.cjs":`./dist/duckdb-node-mvp.worker.cjs`,"./blocking":{node:{types:`./dist/duckdb-node-blocking.d.ts`,require:`./dist/duckdb-node-blocking.cjs`,import:`./dist/duckdb-node-blocking.cjs`},types:`./dist/duckdb-node-blocking.d.ts`,import:`./dist/duckdb-node-blocking.mjs`,require:`./dist/duckdb-node-blocking.cjs`},".":{browser:{types:`./dist/duckdb-browser.d.ts`,import:`./dist/duckdb-browser.mjs`,require:`./dist/duckdb-browser.cjs`},node:{types:`./dist/duckdb-node.d.ts`,import:`./dist/duckdb-node.cjs`,require:`./dist/duckdb-node.cjs`},types:`./dist/duckdb-browser.d.ts`,import:`./dist/duckdb-browser.mjs`,require:`./dist/duckdb-browser.cjs`}}};rv.name,rv.version;var iv=rv.version.split(`.`);iv[0],iv[1],iv[2];var av=()=>typeof navigator>`u`,ov=null,sv=null,cv=null,lv=null,uv=null;async function dv(){return ov??=typeof BigInt64Array<`u`,sv??=await ev(),cv??=await nv(),lv??=await tv(),uv??=await $_(),{bigInt64Array:ov,crossOriginIsolated:av()||globalThis.crossOriginIsolated||!1,wasmExceptions:sv,wasmSIMD:lv,wasmThreads:cv,wasmBulkMemory:uv}}async function fv(e){let t=await dv();if(t.wasmExceptions){if(t.wasmSIMD&&t.wasmThreads&&t.crossOriginIsolated&&e.coi)return{mainModule:e.coi.mainModule,mainWorker:e.coi.mainWorker,pthreadWorker:e.coi.pthreadWorker};if(e.eh)return{mainModule:e.eh.mainModule,mainWorker:e.eh.mainWorker,pthreadWorker:null}}return{mainModule:e.mvp.mainModule,mainWorker:e.mvp.mainWorker,pthreadWorker:null}}A_(j_());const pv={},mv={};function hv(e,t){try{let n=pv[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format,r=n(t).split(`GMT`)[1];return r in mv?mv[r]:_v(r,r.split(`:`))}catch{if(e in mv)return mv[e];let t=e?.match(gv);return t?_v(e,t.slice(1)):NaN}}const gv=/([+-]\d\d):?(\d\d)?/;function _v(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return mv[e]=n*60+r>0?n*60+r+i:n*60-r-i}var vv=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(hv(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Sv(this,NaN),bv(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-hv(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),bv(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const yv=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!yv.test(e))return;let t=e.replace(yv,`$1UTC`);vv.prototype[t]&&(e.startsWith(`get`)?vv.prototype[e]=function(){return this.internal[t]()}:(vv.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),xv(this),+this},vv.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),bv(this),+this}))});function bv(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-hv(e.timeZone,e)*60))}function xv(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Sv(e)}function Sv(e){let t=hv(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=-new Date(+r).getTimezoneOffset(),o=i-a,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);let c=i-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);let l=new Date(+e);l.setUTCSeconds(0);let u=i>0?l.getSeconds():(l.getSeconds()-60)%60,d=Math.round(-(hv(e.timeZone,e)*60))%60;(d||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+u));let f=hv(e.timeZone,e),p=f>0?Math.floor(f):Math.ceil(f),m=-new Date(+e).getTimezoneOffset(),h=m-p,ee=p!==n,te=h-c;if(ee&&te){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+te);let t=hv(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=p-n;r&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+r),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+r))}}const Cv=new TextDecoder(`utf-8`),wv=e=>Cv.decode(e),Tv=new TextEncoder,Ev=e=>Tv.encode(e),Dv=e=>typeof e==`function`,Ov=e=>e!=null&&Object(e)===e,kv=e=>Ov(e)&&Dv(e.then),Av=e=>Ov(e)&&Dv(e[Symbol.iterator]),jv=e=>Ov(e)&&Dv(e[Symbol.asyncIterator]),Mv=e=>Ov(e)&&`done`in e&&`value`in e,Nv=e=>Ov(e)&&Dv(e.clear)&&Dv(e.bytes)&&Dv(e.position)&&Dv(e.setPosition)&&Dv(e.capacity)&&Dv(e.getBufferIdentifier)&&Dv(e.createLong);var Pv={};An(Pv,{compareArrayLike:()=>yy,joinUint8Arrays:()=>Rv,memcpy:()=>Lv,rebaseValueOffsets:()=>vy,toArrayBufferView:()=>zv,toArrayBufferViewAsyncIterator:()=>cy,toArrayBufferViewIterator:()=>Qv,toBigInt64Array:()=>Uv,toBigUint64Array:()=>qv,toFloat32Array:()=>Jv,toFloat32ArrayAsyncIterator:()=>hy,toFloat32ArrayIterator:()=>ay,toFloat64Array:()=>Yv,toFloat64ArrayAsyncIterator:()=>gy,toFloat64ArrayIterator:()=>oy,toInt16Array:()=>Vv,toInt16ArrayAsyncIterator:()=>uy,toInt16ArrayIterator:()=>ey,toInt32Array:()=>Hv,toInt32ArrayAsyncIterator:()=>dy,toInt32ArrayIterator:()=>ty,toInt8Array:()=>Bv,toInt8ArrayAsyncIterator:()=>ly,toInt8ArrayIterator:()=>$v,toUint16Array:()=>Gv,toUint16ArrayAsyncIterator:()=>py,toUint16ArrayIterator:()=>ry,toUint32Array:()=>Kv,toUint32ArrayAsyncIterator:()=>my,toUint32ArrayIterator:()=>iy,toUint8Array:()=>Wv,toUint8ArrayAsyncIterator:()=>fy,toUint8ArrayIterator:()=>ny,toUint8ClampedArray:()=>Xv,toUint8ClampedArrayAsyncIterator:()=>_y,toUint8ClampedArrayIterator:()=>sy});const Fv=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function Iv(e){let t=e[0]?[e[0]]:[],n,r,i,a;for(let o,s,c=0,l=0,u=e.length;++ce+t.byteLength,0),i,a,o,s=0,c=-1,l=Math.min(t||1/0,r);for(let e=n.length;++czv(Int8Array,e),Vv=e=>zv(Int16Array,e),Hv=e=>zv(Int32Array,e),Uv=e=>zv(BigInt64Array,e),Wv=e=>zv(Uint8Array,e),Gv=e=>zv(Uint16Array,e),Kv=e=>zv(Uint32Array,e),qv=e=>zv(BigUint64Array,e),Jv=e=>zv(Float32Array,e),Yv=e=>zv(Float64Array,e),Xv=e=>zv(Uint8ClampedArray,e),Zv=e=>(e.next(),e);function*Qv(e,t){let n=function*(e){yield e},r=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Fv?n(t):Av(t)?t:n(t);return yield*Zv((function*(t){let n=null;do n=t.next(yield zv(e,n));while(!n.done)})(r[Symbol.iterator]())),new e}const $v=e=>Qv(Int8Array,e),ey=e=>Qv(Int16Array,e),ty=e=>Qv(Int32Array,e),ny=e=>Qv(Uint8Array,e),ry=e=>Qv(Uint16Array,e),iy=e=>Qv(Uint32Array,e),ay=e=>Qv(Float32Array,e),oy=e=>Qv(Float64Array,e),sy=e=>Qv(Uint8ClampedArray,e);function cy(e,t){return Bc(this,arguments,function*(){if(kv(t))return yield b(yield b(yield*Vc(Hc(cy(e,yield b(t))))));let n=function(e){return Bc(this,arguments,function*(){yield yield b(yield b(e))})},r=function(e){return Bc(this,arguments,function*(){yield b(yield*Vc(Hc(Zv((function*(e){let t=null;do t=e.next(yield t?.value);while(!t.done)})(e[Symbol.iterator]())))))})},i=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Fv?n(t):Av(t)?r(t):jv(t)?t:n(t);return yield b(yield*Vc(Hc(Zv((function(t){return Bc(this,arguments,function*(){let n=null;do n=yield b(t.next(yield yield b(zv(e,n))));while(!n.done)})})(i[Symbol.asyncIterator]()))))),yield b(new e)})}const ly=e=>cy(Int8Array,e),uy=e=>cy(Int16Array,e),dy=e=>cy(Int32Array,e),fy=e=>cy(Uint8Array,e),py=e=>cy(Uint16Array,e),my=e=>cy(Uint32Array,e),hy=e=>cy(Float32Array,e),gy=e=>cy(Float64Array,e),_y=e=>cy(Uint8ClampedArray,e);function vy(e,t,n){if(e!==0){n=n.slice(0,t);for(let t=-1,r=n.length;++t0)do if(e[n]!==t[n])return!1;while(++nEy});function Ey(e){if(e===null)return`null`;if(e===void 0)return`undefined`;switch(typeof e){case`number`:return`${e}`;case`bigint`:return`${e}`;case`string`:return`"${e}"`}return typeof e[Symbol.toPrimitive]==`function`?e[Symbol.toPrimitive](`string`):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?`[${[...e].map(e=>Ey(e))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(e,t)=>typeof t==`bigint`?`${t}`:t)}function Dy(e){if(typeof e==`bigint`&&(e<-(2**53-1)||e>2**53-1))throw TypeError(`${e} is not safe to convert to a number.`);return Number(e)}function Oy(e,t){return Dy(e/t)+Dy(e%t)/Dy(t)}var ky={};An(ky,{BN:()=>Vy,bigNumToBigInt:()=>zy,bigNumToNumber:()=>Ly,bigNumToString:()=>Ry,isArrowBigNumSymbol:()=>Ay});const Ay=Symbol.for(`isArrowBigNum`);function jy(e,...t){return t.length===0?Object.setPrototypeOf(zv(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}jy.prototype[Ay]=!0,jy.prototype.toJSON=function(){return`"${Ry(this)}"`},jy.prototype.valueOf=function(e){return Ly(this,e)},jy.prototype.toString=function(){return Ry(this)},jy.prototype[Symbol.toPrimitive]=function(e=`default`){switch(e){case`number`:return Ly(this);case`string`:return Ry(this);case`default`:return zy(this)}return Ry(this)};function My(...e){return jy.apply(this,e)}function Ny(...e){return jy.apply(this,e)}function Py(...e){return jy.apply(this,e)}Object.setPrototypeOf(My.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(Ny.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(Py.prototype,Object.create(Uint32Array.prototype)),Object.assign(My.prototype,jy.prototype,{constructor:My,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(Ny.prototype,jy.prototype,{constructor:Ny,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(Py.prototype,jy.prototype,{constructor:Py,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const Fy=BigInt(4294967296)*BigInt(4294967296),Iy=Fy-BigInt(1);function Ly(e,t){let{buffer:n,byteOffset:r,byteLength:i,signed:a}=e,o=new BigUint64Array(n,r,i/8),s=a&&o.at(-1)&BigInt(1)<0){let e=BigInt(`1`.padEnd(t+1,`0`)),n=c/e,r=s?-(c%e):c%e,i=Dy(n),a=`${r}`.padStart(t,`0`),o=s&&i===0?`-`:``;return+`${o}${i}.${a}`}return Dy(c)}function Ry(e){if(e.byteLength===8){let t=new e.BigIntArray(e.buffer,e.byteOffset,1);return`${t[0]}`}if(!e.signed)return By(e);let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=new Int16Array([t.at(-1)])[0];if(n>=0)return By(e);t=t.slice();let r=1;for(let e=0;e(e.children=null,e.ArrayType=Array,e.OffsetArrayType=Int32Array,e[Symbol.toStringTag]=`DataType`))(L.prototype);var ub=class extends L{constructor(){super(I.Null)}toString(){return`Null`}};Uy=Symbol.toStringTag,ub[Uy]=(e=>e[Symbol.toStringTag]=`Null`)(ub.prototype);var db=class extends L{constructor(e,t){super(I.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?`I`:`Ui`}nt${this.bitWidth}`}};Wy=Symbol.toStringTag,db[Wy]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]=`Int`))(db.prototype);var fb=class extends db{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},pb=class extends db{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},mb=class extends db{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},hb=class extends db{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},gb=class extends db{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},_b=class extends db{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},vb=class extends db{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},yb=class extends db{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(fb.prototype,`ArrayType`,{value:Int8Array}),Object.defineProperty(pb.prototype,`ArrayType`,{value:Int16Array}),Object.defineProperty(mb.prototype,`ArrayType`,{value:Int32Array}),Object.defineProperty(hb.prototype,`ArrayType`,{value:BigInt64Array}),Object.defineProperty(gb.prototype,`ArrayType`,{value:Uint8Array}),Object.defineProperty(_b.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(vb.prototype,`ArrayType`,{value:Uint32Array}),Object.defineProperty(yb.prototype,`ArrayType`,{value:BigUint64Array});var bb=class extends L{constructor(e){super(I.Float),this.precision=e}get ArrayType(){switch(this.precision){case xy.HALF:return Uint16Array;case xy.SINGLE:return Float32Array;case xy.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};Gy=Symbol.toStringTag,bb[Gy]=(e=>(e.precision=null,e[Symbol.toStringTag]=`Float`))(bb.prototype);var xb=class extends bb{constructor(){super(xy.HALF)}},Sb=class extends bb{constructor(){super(xy.SINGLE)}},Cb=class extends bb{constructor(){super(xy.DOUBLE)}};Object.defineProperty(xb.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(Sb.prototype,`ArrayType`,{value:Float32Array}),Object.defineProperty(Cb.prototype,`ArrayType`,{value:Float64Array});var wb=class extends L{constructor(){super(I.Binary)}toString(){return`Binary`}};Ky=Symbol.toStringTag,wb[Ky]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Binary`))(wb.prototype);var Tb=class extends L{constructor(){super(I.LargeBinary)}toString(){return`LargeBinary`}};qy=Symbol.toStringTag,Tb[qy]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeBinary`))(Tb.prototype);var Eb=class extends L{constructor(){super(I.Utf8)}toString(){return`Utf8`}};Jy=Symbol.toStringTag,Eb[Jy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Utf8`))(Eb.prototype);var Db=class extends L{constructor(){super(I.LargeUtf8)}toString(){return`LargeUtf8`}};Yy=Symbol.toStringTag,Db[Yy]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeUtf8`))(Db.prototype);var Ob=class extends L{constructor(){super(I.Bool)}toString(){return`Bool`}};Xy=Symbol.toStringTag,Ob[Xy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Bool`))(Ob.prototype);var kb=class extends L{constructor(e,t,n=128){super(I.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?`+`:``}${this.scale}]`}};Zy=Symbol.toStringTag,kb[Zy]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]=`Decimal`))(kb.prototype);var Ab=class extends L{constructor(e){super(I.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Sy[this.unit]}>`}get ArrayType(){return this.unit===Sy.DAY?Int32Array:BigInt64Array}};Qy=Symbol.toStringTag,Ab[Qy]=(e=>(e.unit=null,e[Symbol.toStringTag]=`Date`))(Ab.prototype);var jb=class extends L{constructor(e,t){super(I.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${F[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};$y=Symbol.toStringTag,jb[$y]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]=`Time`))(jb.prototype);var Mb=class extends L{constructor(e,t){super(I.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${F[this.unit]}${this.timezone?`, ${this.timezone}`:``}>`}};eb=Symbol.toStringTag,Mb[eb]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Timestamp`))(Mb.prototype);var Nb=class extends L{constructor(e){super(I.Interval),this.unit=e}toString(){return`Interval<${Cy[this.unit]}>`}};tb=Symbol.toStringTag,Nb[tb]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]=`Interval`))(Nb.prototype);var Pb=class extends L{constructor(e){super(I.Duration),this.unit=e}toString(){return`Duration<${F[this.unit]}>`}};nb=Symbol.toStringTag,Pb[nb]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Duration`))(Pb.prototype);var Fb=class extends L{constructor(e){super(I.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};rb=Symbol.toStringTag,Fb[rb]=(e=>(e.children=null,e[Symbol.toStringTag]=`List`))(Fb.prototype);var Ib=class extends L{constructor(e){super(I.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};ib=Symbol.toStringTag,Ib[ib]=(e=>(e.children=null,e[Symbol.toStringTag]=`Struct`))(Ib.prototype);var Lb=class extends L{constructor(e,t,n){super(I.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((e,t,n)=>(e[t]=n)&&e||e,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(` | `)}>`}};ab=Symbol.toStringTag,Lb[ab]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]=`Union`))(Lb.prototype);var Rb=class extends L{constructor(e){super(I.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};ob=Symbol.toStringTag,Rb[ob]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`FixedSizeBinary`))(Rb.prototype);var zb=class extends L{constructor(e,t){super(I.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};sb=Symbol.toStringTag,zb[sb]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]=`FixedSizeList`))(zb.prototype);var Bb=class extends L{constructor(e,t=!1){var n,r,i;if(super(I.Map),this.children=[e],this.keysSorted=t,e&&(e.name=`entries`,(n=e?.type)?.children)){let t=(r=e?.type)?.children[0];t&&(t.name=`key`);let n=(i=e?.type)?.children[1];n&&(n.name=`value`)}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};cb=Symbol.toStringTag,Bb[cb]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]=`Map_`))(Bb.prototype);const Vb=(e=>()=>++e)(-1);var Hb=class extends L{constructor(e,t,n,r){super(I.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=n==null?Vb():Dy(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};lb=Symbol.toStringTag,Hb[lb]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]=`Dictionary`))(Hb.prototype);function Ub(e){let t=e;switch(e.typeId){case I.Decimal:return e.bitWidth/32;case I.Interval:return t.unit===Cy.MONTH_DAY_NANO?4:1+t.unit;case I.FixedSizeList:return t.listSize;case I.FixedSizeBinary:return t.byteWidth;default:return 1}}var R=class{visitMany(e,...t){return e.map((e,n)=>this.visit(e,...t.map(e=>e[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Wb(this,e,t)}getVisitFnByTypeId(e,t=!0){return Gb(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function Wb(e,t,n=!0){return typeof t==`number`?Gb(e,t,n):typeof t==`string`&&t in I?Gb(e,I[t],n):t&&t instanceof L?Gb(e,Kb(t),n):t?.type&&t.type instanceof L?Gb(e,Kb(t.type),n):Gb(e,I.NONE,n)}function Gb(e,t,n=!0){let r=null;switch(t){case I.Null:r=e.visitNull;break;case I.Bool:r=e.visitBool;break;case I.Int:r=e.visitInt;break;case I.Int8:r=e.visitInt8||e.visitInt;break;case I.Int16:r=e.visitInt16||e.visitInt;break;case I.Int32:r=e.visitInt32||e.visitInt;break;case I.Int64:r=e.visitInt64||e.visitInt;break;case I.Uint8:r=e.visitUint8||e.visitInt;break;case I.Uint16:r=e.visitUint16||e.visitInt;break;case I.Uint32:r=e.visitUint32||e.visitInt;break;case I.Uint64:r=e.visitUint64||e.visitInt;break;case I.Float:r=e.visitFloat;break;case I.Float16:r=e.visitFloat16||e.visitFloat;break;case I.Float32:r=e.visitFloat32||e.visitFloat;break;case I.Float64:r=e.visitFloat64||e.visitFloat;break;case I.Utf8:r=e.visitUtf8;break;case I.LargeUtf8:r=e.visitLargeUtf8;break;case I.Binary:r=e.visitBinary;break;case I.LargeBinary:r=e.visitLargeBinary;break;case I.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case I.Date:r=e.visitDate;break;case I.DateDay:r=e.visitDateDay||e.visitDate;break;case I.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case I.Timestamp:r=e.visitTimestamp;break;case I.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case I.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case I.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case I.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case I.Time:r=e.visitTime;break;case I.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case I.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case I.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case I.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case I.Decimal:r=e.visitDecimal;break;case I.List:r=e.visitList;break;case I.Struct:r=e.visitStruct;break;case I.Union:r=e.visitUnion;break;case I.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case I.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case I.Dictionary:r=e.visitDictionary;break;case I.Interval:r=e.visitInterval;break;case I.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case I.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case I.IntervalMonthDayNano:r=e.visitIntervalMonthDayNano||e.visitInterval;break;case I.Duration:r=e.visitDuration;break;case I.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case I.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case I.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case I.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case I.FixedSizeList:r=e.visitFixedSizeList;break;case I.Map:r=e.visitMap;break}if(typeof r==`function`)return r;if(!n)return()=>null;throw Error(`Unrecognized type '${I[t]}'`)}function Kb(e){switch(e.typeId){case I.Null:return I.Null;case I.Int:{let{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?I.Int8:I.Uint8;case 16:return n?I.Int16:I.Uint16;case 32:return n?I.Int32:I.Uint32;case 64:return n?I.Int64:I.Uint64}return I.Int}case I.Float:switch(e.precision){case xy.HALF:return I.Float16;case xy.SINGLE:return I.Float32;case xy.DOUBLE:return I.Float64}return I.Float;case I.Binary:return I.Binary;case I.LargeBinary:return I.LargeBinary;case I.Utf8:return I.Utf8;case I.LargeUtf8:return I.LargeUtf8;case I.Bool:return I.Bool;case I.Decimal:return I.Decimal;case I.Time:switch(e.unit){case F.SECOND:return I.TimeSecond;case F.MILLISECOND:return I.TimeMillisecond;case F.MICROSECOND:return I.TimeMicrosecond;case F.NANOSECOND:return I.TimeNanosecond}return I.Time;case I.Timestamp:switch(e.unit){case F.SECOND:return I.TimestampSecond;case F.MILLISECOND:return I.TimestampMillisecond;case F.MICROSECOND:return I.TimestampMicrosecond;case F.NANOSECOND:return I.TimestampNanosecond}return I.Timestamp;case I.Date:switch(e.unit){case Sy.DAY:return I.DateDay;case Sy.MILLISECOND:return I.DateMillisecond}return I.Date;case I.Interval:switch(e.unit){case Cy.DAY_TIME:return I.IntervalDayTime;case Cy.YEAR_MONTH:return I.IntervalYearMonth;case Cy.MONTH_DAY_NANO:return I.IntervalMonthDayNano}return I.Interval;case I.Duration:switch(e.unit){case F.SECOND:return I.DurationSecond;case F.MILLISECOND:return I.DurationMillisecond;case F.MICROSECOND:return I.DurationMicrosecond;case F.NANOSECOND:return I.DurationNanosecond}return I.Duration;case I.Map:return I.Map;case I.List:return I.List;case I.Struct:return I.Struct;case I.Union:switch(e.mode){case by.Dense:return I.DenseUnion;case by.Sparse:return I.SparseUnion}return I.Union;case I.FixedSizeBinary:return I.FixedSizeBinary;case I.FixedSizeList:return I.FixedSizeList;case I.Dictionary:return I.Dictionary}throw Error(`Unrecognized type '${I[e.typeId]}'`)}R.prototype.visitInt8=null,R.prototype.visitInt16=null,R.prototype.visitInt32=null,R.prototype.visitInt64=null,R.prototype.visitUint8=null,R.prototype.visitUint16=null,R.prototype.visitUint32=null,R.prototype.visitUint64=null,R.prototype.visitFloat16=null,R.prototype.visitFloat32=null,R.prototype.visitFloat64=null,R.prototype.visitDateDay=null,R.prototype.visitDateMillisecond=null,R.prototype.visitTimestampSecond=null,R.prototype.visitTimestampMillisecond=null,R.prototype.visitTimestampMicrosecond=null,R.prototype.visitTimestampNanosecond=null,R.prototype.visitTimeSecond=null,R.prototype.visitTimeMillisecond=null,R.prototype.visitTimeMicrosecond=null,R.prototype.visitTimeNanosecond=null,R.prototype.visitDenseUnion=null,R.prototype.visitSparseUnion=null,R.prototype.visitIntervalDayTime=null,R.prototype.visitIntervalYearMonth=null,R.prototype.visitIntervalMonthDayNano=null,R.prototype.visitDuration=null,R.prototype.visitDurationSecond=null,R.prototype.visitDurationMillisecond=null,R.prototype.visitDurationMicrosecond=null,R.prototype.visitDurationNanosecond=null;var qb={};An(qb,{float64ToUint16:()=>Zb,uint16ToFloat64:()=>Xb});const Jb=new Float64Array(1),Yb=new Uint32Array(Jb.buffer);function Xb(e){let t=(e&31744)>>10,n=(e&1023)/1024,r=(-1)**((e&32768)>>15);switch(t){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*2**(t-15)*(1+n)}function Zb(e){if(e!==e)return 32256;Jb[0]=e;let t=(Yb[1]&2147483648)>>16&65535,n=Yb[1]&2146435072,r=0;return n>=1089470464?Yb[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Yb[1]&1048575)>>10):n<=1056964608?(r=1048576+(Yb[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Yb[1]&1048575)+512>>10),t|n|r&65535}var z=class extends R{};function B(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}const Qb=(e,t,n)=>{e[t]=Math.floor(n/864e5)},$b=(e,t,n,r)=>{if(n+1{let i=e+n;r?t[i>>3]|=1<>3]&=~(1<{e[t]=n},nx=({values:e},t,n)=>{e[t]=n},rx=({values:e},t,n)=>{e[t]=Zb(n)},ix=(e,t,n)=>{switch(e.type.precision){case xy.HALF:return rx(e,t,n);case xy.SINGLE:case xy.DOUBLE:return nx(e,t,n)}},ax=({values:e},t,n)=>{Qb(e,t,n.valueOf())},ox=({values:e},t,n)=>{e[t]=BigInt(n)},sx=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},cx=({values:e,valueOffsets:t},n,r)=>$b(e,t,n,r),lx=({values:e,valueOffsets:t},n,r)=>$b(e,t,n,Ev(r)),ux=(e,t,n)=>{e.type.unit===Sy.DAY?ax(e,t,n):ox(e,t,n)},dx=({values:e},t,n)=>{e[t]=BigInt(n/1e3)},fx=({values:e},t,n)=>{e[t]=BigInt(n)},px=({values:e},t,n)=>{e[t]=BigInt(n*1e3)},mx=({values:e},t,n)=>{e[t]=BigInt(n*1e6)},hx=(e,t,n)=>{switch(e.type.unit){case F.SECOND:return dx(e,t,n);case F.MILLISECOND:return fx(e,t,n);case F.MICROSECOND:return px(e,t,n);case F.NANOSECOND:return mx(e,t,n)}},gx=({values:e},t,n)=>{e[t]=n},_x=({values:e},t,n)=>{e[t]=n},vx=({values:e},t,n)=>{e[t]=n},yx=({values:e},t,n)=>{e[t]=n},bx=(e,t,n)=>{switch(e.type.unit){case F.SECOND:return gx(e,t,n);case F.MILLISECOND:return _x(e,t,n);case F.MICROSECOND:return vx(e,t,n);case F.NANOSECOND:return yx(e,t,n)}},xx=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},Sx=(e,t,n)=>{let r=e.children[0],i=e.valueOffsets,a=Ux.getVisitFn(r);if(Array.isArray(n))for(let e=-1,o=i[t],s=i[t+1];o{let r=e.children[0],{valueOffsets:i}=e,a=Ux.getVisitFn(r),{[t]:o,[t+1]:s}=i,c=n instanceof Map?n.entries():Object.entries(n);for(let e of c)if(a(r,o,e),++o>=s)break},wx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[a]),Tx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(a)),Ex=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(i.name)),Dx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[i.name]),Ox=(e,t,n)=>{let r=e.type.children.map(e=>Ux.getVisitFn(e.type)),i=n instanceof Map?Ex(t,n):n instanceof RC?Tx(t,n):Array.isArray(n)?wx(t,n):Dx(t,n);e.type.children.forEach((t,n)=>i(r[n],e.children[n],t,n))},kx=(e,t,n)=>{e.type.mode===by.Dense?Ax(e,t,n):jx(e,t,n)},Ax=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Ux.visit(i,e.valueOffsets[t],n)},jx=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Ux.visit(i,t,n)},Mx=(e,t,n)=>{var r;(r=e.dictionary)==null||r.set(e.values[t],n)},Nx=(e,t,n)=>{switch(e.type.unit){case Cy.YEAR_MONTH:return Fx(e,t,n);case Cy.DAY_TIME:return Px(e,t,n);case Cy.MONTH_DAY_NANO:return Ix(e,t,n)}},Px=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},Fx=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},Ix=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},Lx=({values:e},t,n)=>{e[t]=n},Rx=({values:e},t,n)=>{e[t]=n},zx=({values:e},t,n)=>{e[t]=n},Bx=({values:e},t,n)=>{e[t]=n},Vx=(e,t,n)=>{switch(e.type.unit){case F.SECOND:return Lx(e,t,n);case F.MILLISECOND:return Rx(e,t,n);case F.MICROSECOND:return zx(e,t,n);case F.NANOSECOND:return Bx(e,t,n)}},Hx=(e,t,n)=>{let{stride:r}=e,i=e.children[0],a=Ux.getVisitFn(i);if(Array.isArray(n))for(let e=-1,o=t*r;++e`${Ey(e)}: ${Ey(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}[Symbol.iterator](){return new qx(this[Wx],this[Gx])}},qx=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return ee.name)}has(e,t){return e[Wx].type.children.some(e=>e.name===t)}getOwnPropertyDescriptor(e,t){if(e[Wx].type.children.some(e=>e.name===t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[Wx].type.children.findIndex(e=>e.name===t);if(n!==-1){let r=zS.visit(e[Wx].children[n],e[Gx]);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[Wx].type.children.findIndex(e=>e.name===t);return r===-1?Reflect.has(e,t)||typeof t==`symbol`?Reflect.set(e,t,n):!1:(Ux.visit(e[Wx].children[r],e[Gx],n),Reflect.set(e,t,n))}};const Yx=new Jx;var V=class extends R{};function H(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Xx=(e,t)=>864e5*e[t],Zx=(e,t)=>null,Qx=(e,t,n)=>{if(n+1>=t.length)return null;let r=Dy(t[n]),i=Dy(t[n+1]);return e.subarray(r,i)},$x=({offset:e,values:t},n)=>{let r=e+n,i=t[r>>3];return(i&1<Xx(e,t),tS=({values:e},t)=>Dy(e[t]),nS=({stride:e,values:t},n)=>t[e*n],rS=({stride:e,values:t},n)=>Xb(t[e*n]),iS=({values:e},t)=>e[t],aS=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),oS=({values:e,valueOffsets:t},n)=>Qx(e,t,n),sS=({values:e,valueOffsets:t},n)=>{let r=Qx(e,t,n);return r===null?null:wv(r)},cS=({values:e},t)=>e[t],lS=({type:e,values:t},n)=>e.precision===xy.HALF?Xb(t[n]):t[n],uS=(e,t)=>e.type.unit===Sy.DAY?eS(e,t):tS(e,t),dS=({values:e},t)=>1e3*Dy(e[t]),fS=({values:e},t)=>Dy(e[t]),pS=({values:e},t)=>Oy(e[t],BigInt(1e3)),mS=({values:e},t)=>Oy(e[t],BigInt(1e6)),hS=(e,t)=>{switch(e.type.unit){case F.SECOND:return dS(e,t);case F.MILLISECOND:return fS(e,t);case F.MICROSECOND:return pS(e,t);case F.NANOSECOND:return mS(e,t)}},gS=({values:e},t)=>e[t],_S=({values:e},t)=>e[t],vS=({values:e},t)=>e[t],yS=({values:e},t)=>e[t],bS=(e,t)=>{switch(e.type.unit){case F.SECOND:return gS(e,t);case F.MILLISECOND:return _S(e,t);case F.MICROSECOND:return vS(e,t);case F.NANOSECOND:return yS(e,t)}},xS=({values:e,stride:t},n)=>Vy.decimal(e.subarray(t*n,t*(n+1))),SS=(e,t)=>{let{valueOffsets:n,stride:r,children:i}=e,{[t*r]:a,[t*r+1]:o}=n,s=i[0],c=s.slice(a,o-a);return new RC([c])},CS=(e,t)=>{let{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:a}=n,o=r[0];return new WS(o.slice(i,a-i))},wS=(e,t)=>new Kx(e,t),TS=(e,t)=>e.type.mode===by.Dense?ES(e,t):DS(e,t),ES=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return zS.visit(r,e.valueOffsets[t])},DS=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return zS.visit(r,t)},OS=(e,t)=>{var n;return(n=e.dictionary)?.get(e.values[t])},kS=(e,t)=>e.type.unit===Cy.MONTH_DAY_NANO?MS(e,t):e.type.unit===Cy.DAY_TIME?AS(e,t):jS(e,t),AS=({values:e},t)=>e.subarray(2*t,2*(t+1)),jS=({values:e},t)=>{let n=e[t],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},MS=({values:e},t)=>e.subarray(4*t,4*(t+1)),NS=({values:e},t)=>e[t],PS=({values:e},t)=>e[t],FS=({values:e},t)=>e[t],IS=({values:e},t)=>e[t],LS=(e,t)=>{switch(e.type.unit){case F.SECOND:return NS(e,t);case F.MILLISECOND:return PS(e,t);case F.MICROSECOND:return FS(e,t);case F.NANOSECOND:return IS(e,t)}},RS=(e,t)=>{let{stride:n,children:r}=e,i=r[0],a=i.slice(t*n,n);return new RC([a])};V.prototype.visitNull=H(Zx),V.prototype.visitBool=H($x),V.prototype.visitInt=H(cS),V.prototype.visitInt8=H(nS),V.prototype.visitInt16=H(nS),V.prototype.visitInt32=H(nS),V.prototype.visitInt64=H(iS),V.prototype.visitUint8=H(nS),V.prototype.visitUint16=H(nS),V.prototype.visitUint32=H(nS),V.prototype.visitUint64=H(iS),V.prototype.visitFloat=H(lS),V.prototype.visitFloat16=H(rS),V.prototype.visitFloat32=H(nS),V.prototype.visitFloat64=H(nS),V.prototype.visitUtf8=H(sS),V.prototype.visitLargeUtf8=H(sS),V.prototype.visitBinary=H(oS),V.prototype.visitLargeBinary=H(oS),V.prototype.visitFixedSizeBinary=H(aS),V.prototype.visitDate=H(uS),V.prototype.visitDateDay=H(eS),V.prototype.visitDateMillisecond=H(tS),V.prototype.visitTimestamp=H(hS),V.prototype.visitTimestampSecond=H(dS),V.prototype.visitTimestampMillisecond=H(fS),V.prototype.visitTimestampMicrosecond=H(pS),V.prototype.visitTimestampNanosecond=H(mS),V.prototype.visitTime=H(bS),V.prototype.visitTimeSecond=H(gS),V.prototype.visitTimeMillisecond=H(_S),V.prototype.visitTimeMicrosecond=H(vS),V.prototype.visitTimeNanosecond=H(yS),V.prototype.visitDecimal=H(xS),V.prototype.visitList=H(SS),V.prototype.visitStruct=H(wS),V.prototype.visitUnion=H(TS),V.prototype.visitDenseUnion=H(ES),V.prototype.visitSparseUnion=H(DS),V.prototype.visitDictionary=H(OS),V.prototype.visitInterval=H(kS),V.prototype.visitIntervalDayTime=H(AS),V.prototype.visitIntervalYearMonth=H(jS),V.prototype.visitIntervalMonthDayNano=H(MS),V.prototype.visitDuration=H(LS),V.prototype.visitDurationSecond=H(NS),V.prototype.visitDurationMillisecond=H(PS),V.prototype.visitDurationMicrosecond=H(FS),V.prototype.visitDurationNanosecond=H(IS),V.prototype.visitFixedSizeList=H(RS),V.prototype.visitMap=H(CS);const zS=new V,BS=Symbol.for(`keys`),VS=Symbol.for(`vals`),HS=Symbol.for(`kKeysAsStrings`),US=Symbol.for(`_kKeysAsStrings`);var WS=class{constructor(e){return this[BS]=new RC([e.children[0]]).memoize(),this[VS]=e.children[1],new Proxy(this,new KS)}get[HS](){return this[US]||(this[US]=Array.from(this[BS].toArray(),String))}[Symbol.iterator](){return new GS(this[BS],this[VS])}get size(){return this[BS].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[BS],t=this[VS],n={};for(let r=-1,i=e.length;++r`${Ey(e)}: ${Ey(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}},GS=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),zS.visit(this.vals,e)]})}},KS=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[HS]}has(e,t){return e[HS].includes(t)}getOwnPropertyDescriptor(e,t){let n=e[HS].indexOf(t);if(n!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let n=e[HS].indexOf(t);if(n!==-1){let r=zS.visit(Reflect.get(e,VS),n);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[HS].indexOf(t);return r===-1?Reflect.has(e,t)?Reflect.set(e,t,n):!1:(Ux.visit(Reflect.get(e,VS),r,n),Reflect.set(e,t,n))}};Object.defineProperties(WS.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[BS]:{writable:!0,enumerable:!1,configurable:!1,value:null},[VS]:{writable:!0,enumerable:!1,configurable:!1,value:null},[US]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var qS={};An(qS,{clampRange:()=>YS,createElementComparator:()=>QS,wrapIndex:()=>XS});let JS;function YS(e,t,n,r){let{length:i=0}=e,a=typeof t==`number`?t:0,o=typeof n==`number`?n:i;return a<0&&(a=(a%i+i)%i),o<0&&(o=(o%i+i)%i),oi&&(o=i),r?r(e,a,o):[a,o]}const XS=(e,t)=>e<0?t+e:e,ZS=e=>e!==e;function QS(e){let t=typeof e;if(t!==`object`||e===null)return ZS(e)?ZS:t=>t===e;if(e instanceof Date){let t=e.valueOf();return e=>e instanceof Date?e.valueOf()===t:!1}return ArrayBuffer.isView(e)?t=>t?yy(e,t):!1:e instanceof Map?eC(e):Array.isArray(e)?$S(e):e instanceof RC?tC(e):nC(e,!0)}function $S(e){let t=[];for(let n=-1,r=e.length;++n!1;let r=[];for(let t=-1,i=n.length;++t{if(!n||typeof n!=`object`)return!1;switch(n.constructor){case Array:return iC(e,n);case Map:return oC(e,n,n.keys());case WS:case Kx:case Object:case void 0:return oC(e,n,t||Object.keys(n))}return n instanceof RC?aC(e,n):!1}}function iC(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++rpC,getBit:()=>lC,getBool:()=>cC,packBools:()=>fC,popcnt_array:()=>hC,popcnt_bit_range:()=>mC,popcnt_uint32:()=>gC,setBool:()=>uC,truncateBitmap:()=>dC});function cC(e,t,n,r){return(n&1<>r}function uC(e,t,n){return n?!!(e[t>>3]|=1<>3]&=~(1<0||n.byteLength>3):fC(new pC(n,e,t,null,cC)).subarray(0,r)),i}return n}function fC(e){let t=[],n=0,r=0,i=0;for(let a of e)a&&(i|=1<0)&&(t[n++]=i);let a=new Uint8Array(t.length+7&-8);return a.set(t),a}var pC=class{constructor(e,t,n,r,i){this.bytes=e,this.length=n,this.context=r,this.get=i,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index>3<<3,i=t+(t%8==0?0:8-t%8);return mC(e,t,i)+mC(e,r,n)+hC(e,i>>3,r-i>>3)}function hC(e,t,n){let r=0,i=Math.trunc(t),a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n===void 0?e.byteLength:i+n;for(;o-i>=4;)r+=gC(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=gC(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=gC(a.getUint8(i)),i+=1;return r}function gC(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}var _C=class e{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:e}=this;return L.isSparseUnion(e)||L.isDenseUnion(e)?this.children.some(e=>e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:t,values:n,nullBitmap:r,typeIds:i}=this;return t&&(e+=t.byteLength),n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),this.children.reduce((e,t)=>e+t.byteLength,e)}get nullCount(){if(L.isUnion(this.type))return this.children.reduce((e,t)=>e+t.nullCount,0);let e=this._nullCount,t;return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-mC(t,this.offset,this.offset+this.length)),e}constructor(t,n,r,i,a,o=[],s){this.type=t,this.children=o,this.dictionary=s,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let c;a instanceof e?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=Ub(t),a&&((c=a[0])&&(this.valueOffsets=c),(c=a[1])&&(this.values=c),(c=a[2])&&(this.nullBitmap=c),(c=a[3])&&(this.typeIds=c)))}getValid(e){let{type:t}=this;if(L.isUnion(t)){let n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],i=n.mode===by.Dense?this.valueOffsets[e]:e;return r.getValid(i)}if(this.nullable&&this.nullCount>0){let t=this.offset+e,n=this.nullBitmap[t>>3];return(n&1<>3;(!r||r.byteLength<=c)&&(r=new Uint8Array((i+a+63&-64)>>3).fill(255),this.nullCount>0?(r.set(dC(i,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:r})):Object.assign(this,{nullBitmap:r,_nullCount:0}));let l=r[c];n=(l&s)!==0,r[c]=t?l|s:l&~s}return n!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(t=this.type,n=this.offset,r=this.length,i=this._nullCount,a=this,o=this.children){return new e(t,n,r,i,a,o,this.dictionary)}slice(e,t){let{stride:n,typeId:r,children:i}=this,a=(this._nullCount===0)-1,o=r===16?n:1,s=this._sliceBuffers(e,t,n,r);return this.clone(this.type,this.offset+e,t,a,s,i.length===0||this.valueOffsets?i:this._sliceChildren(i,o*e,o*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===I.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:n}=this,r=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);r[t>>3]=(1<0&&r.set(dC(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[wy.VALIDITY]=r,this.clone(this.type,0,e,n+(e-t),i)}_sliceBuffers(e,t,n,r){let i,{buffers:a}=this;return(i=a[wy.TYPE])&&(a[wy.TYPE]=i.subarray(e,e+t)),(i=a[wy.OFFSET])&&(a[wy.OFFSET]=i.subarray(e,e+t+1))||(i=a[wy.DATA])&&(a[wy.DATA]=r===6?i:i.subarray(n*e,n*(e+t))),a}_sliceChildren(e,t,n){return e.map(e=>e.slice(t,n))}};_C.prototype.children=Object.freeze([]);var vC=class e extends R{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:n=0,length:r=0}=e;return new _C(t,n,r,r)}visitBool(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitInt(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitFloat(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitUtf8(e){let{type:t,offset:n=0}=e,r=Wv(e.data),i=Wv(e.nullBitmap),a=Hv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,r,i])}visitLargeUtf8(e){let{type:t,offset:n=0}=e,r=Wv(e.data),i=Wv(e.nullBitmap),a=Uv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,r,i])}visitBinary(e){let{type:t,offset:n=0}=e,r=Wv(e.data),i=Wv(e.nullBitmap),a=Hv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,r,i])}visitLargeBinary(e){let{type:t,offset:n=0}=e,r=Wv(e.data),i=Wv(e.nullBitmap),a=Uv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,r,i])}visitFixedSizeBinary(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitDate(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitTimestamp(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitTime(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitDecimal(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitList(e){let{type:t,offset:n=0,child:r}=e,i=Wv(e.nullBitmap),a=Hv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new _C(t,n,o,s,[a,void 0,i],[r])}visitStruct(e){let{type:t,offset:n=0,children:r=[]}=e,i=Wv(e.nullBitmap),{length:a=r.reduce((e,{length:t})=>Math.max(e,t),0),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,void 0,i],r)}visitUnion(e){let{type:t,offset:n=0,children:r=[]}=e,i=zv(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:o=-1}=e;if(L.isSparseUnion(t))return new _C(t,n,a,o,[void 0,void 0,void 0,i],r);let s=Hv(e.valueOffsets);return new _C(t,n,a,o,[s,void 0,void 0,i],r)}visitDictionary(t){let{type:n,offset:r=0}=t,i=Wv(t.nullBitmap),a=zv(n.indices.ArrayType,t.data),{dictionary:o=new RC([new e().visit({type:n.dictionary})])}=t,{length:s=a.length,nullCount:c=t.nullBitmap?-1:0}=t;return new _C(n,r,s,c,[void 0,a,i],[],o)}visitInterval(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length/Ub(t),nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitDuration(e){let{type:t,offset:n=0}=e,r=Wv(e.nullBitmap),i=zv(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new _C(t,n,a,o,[void 0,i,r])}visitFixedSizeList(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.valueType})}=t,a=Wv(t.nullBitmap),{length:o=i.length/Ub(n),nullCount:s=t.nullBitmap?-1:0}=t;return new _C(n,r,o,s,[void 0,void 0,a],[i])}visitMap(t){let{type:n,offset:r=0,child:i=new e().visit({type:n.childType})}=t,a=Wv(t.nullBitmap),o=Hv(t.valueOffsets),{length:s=o.length-1,nullCount:c=t.nullBitmap?-1:0}=t;return new _C(n,r,s,c,[o,void 0,a],[i])}};new vC;var yC=class{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndexe.nullable)}function xC(e){return e.reduce((e,t)=>e+t.nullCount,0)}function SC(e){return e.reduce((e,t,n)=>(e[n+1]=e[n]+t.length,e),new Uint32Array(e.length+1))}function CC(e,t,n,r){let i=[];for(let a=-1,o=e.length;++a=r)break;if(n>=s+c)continue;if(s>=n&&s+c<=r){i.push(o);continue}let l=Math.max(0,n-s),u=Math.min(r-s,c);i.push(o.slice(l,u-l))}return i.length===0&&i.push(e[0].slice(0,0)),i}function wC(e,t,n,r){let i=0,a=0,o=t.length-1;do{if(i>=o-1)return n0?0:-1}function AC(e,t){let{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(let i of new pC(n,e.offset+(t||0),e.length,n,cC)){if(!i)return r;++r}return-1}function W(e,t,n){if(t===void 0)return-1;if(t===null)switch(e.typeId){case I.Union:break;case I.Dictionary:break;default:return AC(e,n)}let r=zS.getVisitFn(e),i=QS(t);for(let t=(n||0)-1,a=e.length;++t{let n=e.data[t];return n.values.subarray(0,n.length)[Symbol.iterator]()});let n=0;return new yC(e.data.length,t=>{let r=e.data[t],i=r.length,a=e.slice(n,n+i);return n+=i,new NC(a)})}var NC=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data):t;if(a.length===0||a.some(e=>!(e instanceof _C)))throw TypeError(`Vector constructor expects an Array of Data instances.`);let o=(n=a[0])?.type;switch(a.length){case 0:this._offsets=[0];break;case 1:{let{get:e,set:t,indexOf:n}=IC[o.typeId],r=a[0];this.isValid=e=>TC(r,e),this.get=t=>e(r,t),this.set=(e,n)=>t(r,e,n),this.indexOf=e=>n(r,e),this._offsets=[0,r.length];break}default:Object.setPrototypeOf(this,LC[o.typeId]),this._offsets=SC(a);break}this.data=a,this.type=o,this.stride=Ub(o),this.numChildren=(i=(r=o.children)?.length)??0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,t)=>e+t.byteLength,0)}get nullable(){return bC(this.data)}get nullCount(){return xC(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${I[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(XS(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return PC.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap(e=>e.data).flat(1/0)))}slice(t,n){return new e(YS(this,t,n,({data:e,_offsets:t},n,r)=>CC(e,t,n,r)))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case I.Int:case I.Float:case I.Decimal:case I.Time:case I.Timestamp:switch(t.length){case 0:return new i;case 1:return t[0].values.subarray(0,n*r);default:return t.reduce((e,{values:t,length:n})=>(e.array.set(t.subarray(0,n*r),e.offset),e.offset+=n*r,e),{array:new i(n*r),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(`,`)}]`}getChild(e){var t;return this.getChildAt((t=this.type.children)?.findIndex(t=>t.name===e))}getChildAt(t){return t>-1&&te[t])):null}get isMemoized(){return L.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(L.isDictionary(this.type)){let t=new zC(this.data[0].dictionary),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return new zC(this)}unmemoize(){if(L.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return this}};FC=Symbol.toStringTag,RC[FC]=(e=>{e.type=L.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;let t=Object.keys(I).map(e=>I[e]).filter(e=>typeof e==`number`&&e!==I.NONE);for(let n of t){let t=zS.getVisitFnByTypeId(n),r=Ux.getVisitFnByTypeId(n),i=MC.getVisitFnByTypeId(n);IC[n]={get:t,set:r,indexOf:i},LC[n]=Object.create(e,{isValid:{value:EC(TC)},get:{value:EC(zS.getVisitFnByTypeId(n))},set:{value:DC(Ux.getVisitFnByTypeId(n))},indexOf:{value:OC(MC.getVisitFnByTypeId(n))}})}return`Vector`})(RC.prototype);var zC=class e extends RC{constructor(t){super(t.data);let n=this.get,r=this.set,i=this.slice,a=Array(this.length);Object.defineProperty(this,`get`,{value(e){let t=a[e];if(t!==void 0)return t;let r=n.call(this,e);return a[e]=r,r}}),Object.defineProperty(this,`set`,{value(e,t){r.call(this,e,t),a[e]=t}}),Object.defineProperty(this,`slice`,{value:(t,n)=>new e(i.call(this,t,n))}),Object.defineProperty(this,`isMemoized`,{value:!0}),Object.defineProperty(this,`unmemoize`,{value:()=>new RC(this.data)}),Object.defineProperty(this,`memoize`,{value:()=>this})}},BC={};An(BC,{BaseInt64:()=>UC,Int128:()=>KC,Int64:()=>GC,Uint64:()=>WC});function VC(e){return e<0&&(e=4294967295+e+1),`0x${e.toString(16)}`}const HC=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];var UC=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let t=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),n=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),r=t[3]*n[3];this.buffer[0]=r&65535;let i=r>>>16;return r=t[2]*n[3],i+=r,r=t[3]*n[2]>>>0,i+=r,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0>>16,this.buffer[1]+=t[1]*n[3]+t[2]*n[2]+t[3]*n[1],this.buffer[1]+=t[0]*n[3]+t[1]*n[2]+t[2]*n[1]+t[3]*n[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]>>0&&++t[1],t[1]>>0&&++t[2],t[2]>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${VC(this.buffer[3])} ${VC(this.buffer[2])} ${VC(this.buffer[1])} ${VC(this.buffer[0])}`}static multiply(t,n){let r=new e(new Uint32Array(t.buffer));return r.times(n)}static add(t,n){let r=new e(new Uint32Array(t.buffer));return r.plus(n)}static from(t,n=new Uint32Array(4)){return e.fromString(typeof t==`string`?t:t.toString(),n)}static fromNumber(t,n=new Uint32Array(4)){return e.fromString(t.toString(),n)}static fromString(t,n=new Uint32Array(4)){let r=t.startsWith(`-`),i=t.length,a=new e(n);for(let n=r?1:0;nJC,toIntervalDayTimeObjects:()=>XC,toIntervalMonthDayNanoInt32Array:()=>YC,toIntervalMonthDayNanoObjects:()=>ZC});function JC(e){var t,n;let r=e.length,i=new Int32Array(r*2);for(let a=0,o=0;a>BigInt(32))):o+=2}return i}function XC(e){let t=e.length,n=Array(t/2);for(let r=0,i=0;r>>0);r[a++]={months:e[i],days:e[i+1],nanoseconds:t?`${n}`:n}}return r}var q=class extends R{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>this.compareFields(e,t[n]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};function QC(e,t){return t instanceof e.constructor}function $C(e,t){return e===t||QC(e,t)}function ew(e,t){return e===t||QC(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function tw(e,t){return e===t||QC(e,t)&&e.precision===t.precision}function nw(e,t){return e===t||QC(e,t)&&e.byteWidth===t.byteWidth}function rw(e,t){return e===t||QC(e,t)&&e.unit===t.unit}function iw(e,t){return e===t||QC(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function aw(e,t){return e===t||QC(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function ow(e,t){return e===t||QC(e,t)&&e.children.length===t.children.length&&mw.compareManyFields(e.children,t.children)}function sw(e,t){return e===t||QC(e,t)&&e.children.length===t.children.length&&mw.compareManyFields(e.children,t.children)}function cw(e,t){return e===t||QC(e,t)&&e.mode===t.mode&&e.typeIds.every((e,n)=>e===t.typeIds[n])&&mw.compareManyFields(e.children,t.children)}function lw(e,t){return e===t||QC(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&mw.visit(e.indices,t.indices)&&mw.visit(e.dictionary,t.dictionary)}function uw(e,t){return e===t||QC(e,t)&&e.unit===t.unit}function dw(e,t){return e===t||QC(e,t)&&e.unit===t.unit}function fw(e,t){return e===t||QC(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&mw.compareManyFields(e.children,t.children)}function pw(e,t){return e===t||QC(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&mw.compareManyFields(e.children,t.children)}q.prototype.visitNull=$C,q.prototype.visitBool=$C,q.prototype.visitInt=ew,q.prototype.visitInt8=ew,q.prototype.visitInt16=ew,q.prototype.visitInt32=ew,q.prototype.visitInt64=ew,q.prototype.visitUint8=ew,q.prototype.visitUint16=ew,q.prototype.visitUint32=ew,q.prototype.visitUint64=ew,q.prototype.visitFloat=tw,q.prototype.visitFloat16=tw,q.prototype.visitFloat32=tw,q.prototype.visitFloat64=tw,q.prototype.visitUtf8=$C,q.prototype.visitLargeUtf8=$C,q.prototype.visitBinary=$C,q.prototype.visitLargeBinary=$C,q.prototype.visitFixedSizeBinary=nw,q.prototype.visitDate=rw,q.prototype.visitDateDay=rw,q.prototype.visitDateMillisecond=rw,q.prototype.visitTimestamp=iw,q.prototype.visitTimestampSecond=iw,q.prototype.visitTimestampMillisecond=iw,q.prototype.visitTimestampMicrosecond=iw,q.prototype.visitTimestampNanosecond=iw,q.prototype.visitTime=aw,q.prototype.visitTimeSecond=aw,q.prototype.visitTimeMillisecond=aw,q.prototype.visitTimeMicrosecond=aw,q.prototype.visitTimeNanosecond=aw,q.prototype.visitDecimal=$C,q.prototype.visitList=ow,q.prototype.visitStruct=sw,q.prototype.visitUnion=cw,q.prototype.visitDenseUnion=cw,q.prototype.visitSparseUnion=cw,q.prototype.visitDictionary=lw,q.prototype.visitInterval=uw,q.prototype.visitIntervalDayTime=uw,q.prototype.visitIntervalYearMonth=uw,q.prototype.visitIntervalMonthDayNano=uw,q.prototype.visitDuration=dw,q.prototype.visitDurationSecond=dw,q.prototype.visitDurationMillisecond=dw,q.prototype.visitDurationMicrosecond=dw,q.prototype.visitDurationNanosecond=dw,q.prototype.visitFixedSizeList=fw,q.prototype.visitMap=pw;const mw=new q;function hw(e,t){return mw.compareSchemas(e,t)}function gw(e,t){return mw.compareFields(e,t)}function _w(e,t){return mw.visit(e,t)}const vw=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ky),BC),sC),qb),Pv),qS),Ty),qC),{compareSchemas:hw,compareFields:gw,compareTypes:_w}),yw=6048e5,bw=3600*24;bw*7,bw*365.2425;const xw=Symbol.for(`constructDateFrom`);function Sw(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&xw in e?e[xw](t):e instanceof Date?new e.constructor(t):new Date(t)}function Cw(e,t){return Sw(t||e,e)}let ww={};function Tw(){return ww}function Ew(e,t){let n=Tw(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Cw(e,t?.in),a=i.getDay(),o=(a=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function kw(e){let t=Cw(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Aw(e,...t){let n=Sw.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function jw(e,t){let n=Cw(e,t?.in);return n.setHours(0,0,0,0),n}function Mw(e,t,n){let[r,i]=Aw(n?.in,e,t),a=jw(r),o=jw(i),s=+a-kw(a),c=+o-kw(o);return Math.round((s-c)/864e5)}function Nw(e,t){let n=Ow(e,t),r=Sw(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Dw(r)}function Pw(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Fw(e){return!(!Pw(e)&&typeof e!=`number`||isNaN(+Cw(e)))}function Iw(e,t){let n=Cw(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Lw={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},Rw=(e,t,n)=>{let r,i=Lw[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function zw(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const Bw={full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},Vw={full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},Hw={full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},Uw={date:zw({formats:Bw,defaultWidth:`full`}),time:zw({formats:Vw,defaultWidth:`full`}),dateTime:zw({formats:Hw,defaultWidth:`full`})},Ww={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Gw=(e,t,n,r)=>Ww[e];function Kw(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const qw={narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},Jw={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},Yw={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},Xw={narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},Zw={narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},Qw={narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},$w=(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},eT={ordinalNumber:$w,era:Kw({values:qw,defaultWidth:`wide`}),quarter:Kw({values:Jw,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Kw({values:Yw,defaultWidth:`wide`}),day:Kw({values:Xw,defaultWidth:`wide`}),dayPeriod:Kw({values:Zw,defaultWidth:`wide`,formattingValues:Qw,defaultFormattingWidth:`wide`})};function tT(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?rT(s,e=>e.test(o)):nT(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function nT(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rT(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}const aT=/^(\d+)(th|st|nd|rd)?/i,oT=/\d+/i,sT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},cT={any:[/^b/i,/^(a|c)/i]},lT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},uT={any:[/1/i,/2/i,/3/i,/4/i]},dT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},pT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_T={ordinalNumber:iT({matchPattern:aT,parsePattern:oT,valueCallback:e=>parseInt(e,10)}),era:tT({matchPatterns:sT,defaultMatchWidth:`wide`,parsePatterns:cT,defaultParseWidth:`any`}),quarter:tT({matchPatterns:lT,defaultMatchWidth:`wide`,parsePatterns:uT,defaultParseWidth:`any`,valueCallback:e=>e+1}),month:tT({matchPatterns:dT,defaultMatchWidth:`wide`,parsePatterns:fT,defaultParseWidth:`any`}),day:tT({matchPatterns:pT,defaultMatchWidth:`wide`,parsePatterns:mT,defaultParseWidth:`any`}),dayPeriod:tT({matchPatterns:hT,defaultMatchWidth:`any`,parsePatterns:gT,defaultParseWidth:`any`})},vT={code:`en-US`,formatDistance:Rw,formatLong:Uw,formatRelative:Gw,localize:eT,match:_T,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yT(e,t){let n=Cw(e,t?.in),r=Mw(n,Iw(n)),i=r+1;return i}function bT(e,t){let n=Cw(e,t?.in),r=Dw(n)-+Nw(n);return Math.round(r/yw)+1}function xT(e,t){let n=Cw(e,t?.in),r=n.getFullYear(),i=Tw(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Sw(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Ew(o,t),c=Sw(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Ew(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function ST(e,t){let n=Tw(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=xT(e,t),a=Sw(t?.in||e,0);a.setFullYear(i,0,r),a.setHours(0,0,0,0);let o=Ew(a,t);return o}function CT(e,t){let n=Cw(e,t?.in),r=Ew(n,t)-+ST(n,t);return Math.round(r/yw)+1}function wT(e,t){let n=e<0?`-`:``,r=Math.abs(e).toString().padStart(t,`0`);return n+r}const TT={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return wT(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):wT(n+1,2)},d(e,t){return wT(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];case`aaaa`:default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return wT(e.getHours()%12||12,t.length)},H(e,t){return wT(e.getHours(),t.length)},m(e,t){return wT(e.getMinutes(),t.length)},s(e,t){return wT(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*10**(n-3));return wT(i,t.length)}},ET={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},DT={G:function(e,t,n){let r=e.getFullYear()>0?1:0;switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});case`GGGG`:default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return TT.y(e,t)},Y:function(e,t,n,r){let i=xT(e,r),a=i>0?i:1-i;if(t===`YY`){let e=a%100;return wT(e,2)}return t===`Yo`?n.ordinalNumber(a,{unit:`year`}):wT(a,t.length)},R:function(e,t){let n=Ow(e);return wT(n,t.length)},u:function(e,t){let n=e.getFullYear();return wT(n,t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return wT(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});case`QQQQ`:default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return wT(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});case`qqqq`:default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return TT.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});case`MMMM`:default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return wT(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});case`LLLL`:default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=CT(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):wT(i,t.length)},I:function(e,t,n){let r=bT(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):wT(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):TT.d(e,t)},D:function(e,t,n){let r=yT(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):wT(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});case`EEEE`:default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return wT(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});case`eeee`:default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return wT(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});case`cccc`:default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return wT(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});case`iiii`:default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours(),i=r/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});case`aaaa`:default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?ET.noon:r===0?ET.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});case`bbbb`:default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?ET.evening:r>=12?ET.afternoon:r>=4?ET.morning:ET.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});case`BBBB`:default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return TT.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):TT.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):wT(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):wT(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):TT.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):TT.s(e,t)},S:function(e,t){return TT.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return kT(r);case`XXXX`:case`XX`:return AT(r);case`XXXXX`:case`XXX`:default:return AT(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return kT(r);case`xxxx`:case`xx`:return AT(r);case`xxxxx`:case`xxx`:default:return AT(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+OT(r,`:`);case`OOOO`:default:return`GMT`+AT(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+OT(r,`:`);case`zzzz`:default:return`GMT`+AT(r,`:`)}},t:function(e,t,n){let r=Math.trunc(e/1e3);return wT(r,t.length)},T:function(e,t,n){return wT(+e,t.length)}};function OT(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+wT(a,2)}function kT(e,t){if(e%60==0){let t=e>0?`-`:`+`;return t+wT(Math.abs(e)/60,2)}return AT(e,t)}function AT(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=wT(Math.trunc(r/60),2),a=wT(r%60,2);return n+i+t+a}const jT=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});case`PPPP`:default:return t.date({width:`full`})}},MT=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});case`pppp`:default:return t.time({width:`full`})}},NT=(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return jT(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;case`PPPP`:default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,jT(r,t)).replace(`{{time}}`,MT(i,t))},PT={p:MT,P:NT},FT=/^D+$/,IT=/^Y+$/,LT=[`D`,`DD`,`YY`,`YYYY`];function RT(e){return FT.test(e)}function zT(e){return IT.test(e)}function BT(e,t,n){let r=VT(e,t,n);if(console.warn(r),LT.includes(e))throw RangeError(r)}function VT(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const HT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,UT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,WT=/^'([^]*?)'?$/,GT=/''/g,KT=/[a-zA-Z]/;function qT(e,t,n){let r=Tw(),i=n?.locale??r.locale??vT,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Cw(e,n?.in);if(!Fw(s))throw RangeError(`Invalid time value`);let c=t.match(UT).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=PT[t];return n(e,i.formatLong)}return e}).join(``).match(HT).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:JT(e)};if(DT[t])return{isToken:!0,value:e};if(t.match(KT))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&zT(a)||!n?.useAdditionalDayOfYearTokens&&RT(a))&&BT(a,t,String(e));let o=DT[a[0]];return o(s,a,i.localize,l)}).join(``)}function JT(e){let t=e.match(WT);return t?t[1].replace(GT,`'`):e}function YT(e,t){return Cw(e*1e3,t?.in)}function XT(e,t){let n=ZT(t)?new t(0):Sw(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function ZT(e){return typeof e==`function`&&e.prototype?.constructor===e}function QT(e,t){if(t===void 0)return e.trimEnd();let n=e.length;switch(typeof t){case`string`:if(t.length!==1)throw Error(`The 'chars' parameter should be a single character string.`);for(;n>0&&e[n-1]===t;)n--;break;case`object`:for(;n>0&&t.includes(e[n-1]);)n--}return e.substring(0,n)}function $T(e){return e==null}function eE(e){return e!=null}async function tE(){if(typeof window<`u`&&window!==null)return`browser`;try{let e=await ae(()=>import(`./__vite-browser-external-CplUCAoG.js`).then(jn(1)),__vite__mapDeps([0,1,2]));return e!==void 0&&e.versions!=null&&e.versions.node!=null?`node`:`unknown`}catch{return`unknown`}}function nE(e){return $T(e)?!1:L.isInt(e.type)&&!cE(e)||rE(e)}function rE(e){return $T(e)?!1:L.isInt(e.type)&&e.type.isSigned===!1}function iE(e){return $T(e)?!1:L.isFloat(e.type)??!1}function aE(e){return $T(e)?!1:L.isDecimal(e.type)}function oE(e){return $T(e)?!1:L.isBool(e.type)}function sE(e){return $T(e)?!1:L.isDuration(e.type)}function cE(e){return $T(e)?!1:L.isInt(e.type)&&e.metadata.get(`ARROW:extension:name`)===`period`}function lE(e){return $T(e)?!1:L.isTimestamp(e.type)}function uE(e){return $T(e)?!1:L.isDate(e.type)}function dE(e){return $T(e)?!1:L.isTime(e.type)}function fE(e){return $T(e)?!1:L.isList(e.type)||L.isFixedSizeList(e.type)}function pE(e){return $T(e)?!1:L.isStruct(e.type)||L.isMap(e.type)}function mE(e){return $T(e)?!1:L.isStruct(e.type)&&e.metadata.get(`ARROW:extension:name`)===`interval`||L.isInterval(e.type)}function hE(e,t){let n;if(t===F.MILLISECOND)n=1e3;else if(t===F.MICROSECOND)n=1e3*1e3;else if(t===F.NANOSECOND)n=1e3*1e3*1e3;else return Number(e);return typeof e==`bigint`&&!Number.isSafeInteger(Number(e))?Number(e/BigInt(n)):Number(e)/n}function gE(e,t){let n=hE(e,t?.type?.unit??F.SECOND);return YT(n)}function _E(e,t){let n=gE(e,t);return qT(n,n.getMilliseconds()===0?`HH:mm:ss`:`HH:mm:ss.SSS`)}function vE(e){return e instanceof Date||typeof e==`number`&&Number.isFinite(e)?qT(e,`yyyy-MM-dd`):(console.warn(`Unsupported date value: ${e}`),String(e))}function yE(e,t){if(!(e instanceof Date||typeof e==`number`&&Number.isFinite(e)))return console.warn(`Unsupported datetime value: ${e}`),null;let n,r=t?.type?.timezone;return n=r?new vv(e,r):new vv(e),XT(n,Date)}function bE(e,t){let n=t?.type?.scale||0,r=vw.bigNumToString(new vw.BN(e)).padStart(n,`0`);if(n===0)return r;let i=``;r.startsWith(`-`)&&(i=`-`,r=r.slice(1));let a=r.slice(0,-n)||`0`,o=QT(r.slice(-n),`0`)||``;return`${i}${a}${o?`.${o}`:``}`}new Intl.NumberFormat(`en-US`,{style:`decimal`,maximumFractionDigits:4,minimumFractionDigits:4,useGrouping:!0});function xE(e){let t=e[0],n=e[1],r=[];return t!==0&&r.push(`${t} year${t>1?`s`:``}`),n!==0&&r.push(`${n} month${n>1?`s`:``}`),r.length?r.join(` `):`0 months`}function SE(e,t){if(L.isInterval(t?.type))return xE(e);let n=t&&t.metadata.get(`ARROW:extension:name`);if(n&&n===`pandas.interval`){let n=JSON.parse(t.metadata.get(`ARROW:extension:metadata`)),{closed:r}=n,i=e.toJSON(),a=r===`both`||r===`left`?`[`:`(`,o=r===`both`||r===`right`?`]`:`)`,s=wE(i.left,t.type?.children?.[0]),c=wE(i.right,t.type?.children?.[1]);return`${a+s}, ${c+o}`}return String(e)}function CE(e,t){return t?.type instanceof Ib?JSON.parse(JSON.stringify(e,(e,t)=>{if(eE(t))return typeof t==`bigint`?Number(t):t})):JSON.parse(JSON.stringify(e,(e,t)=>typeof t==`bigint`?Number(t):t))}function wE(e,t){if($T(e))return null;let n=e instanceof Date||Number.isFinite(e);if(n&&uE(t))return vE(e);if(typeof e==`bigint`&&dE(t))return _E(Number(e),t);if(n&&lE(t))return yE(e,t);if(cE(t))throw Error(`Period type is not supported yet`);if(mE(t))return SE(e,t);if(sE(t))throw Error(`Duration type is not supported yet`);return aE(t)?bE(e,t):iE(t)&&Number.isFinite(e)||nE(t)?e:pE(t)||fE(t)?CE(e,t):oE(t)?!!e:String(e)}function TE(e){let t=(e.toArray()||[]).map(e=>e.toJSON())||[],n=t.map(t=>(e.schema.fields.forEach(e=>t[e.name]=wE(t[e.name],e)),t));return n}let EE=function(e){return e.ORIGIN_PRIVATE_FS=`origin-private-fs`,e.NODE_FS=`node-fs`,e}({});async function DE(e){let t=ze(e,{logger:!1}),n,r,i=await tE();if(i===`browser`){if(t.bundles===void 0){let{getBundles:e}=await ae(async()=>{let{getBundles:e}=await import(`./default-browser-DBEOGewc.js`);return{getBundles:e}},[]);t.bundles=await e()}r=await fv(await t.bundles),n=new Worker(r.mainWorker)}else if(i===`node`){if(t.bundles===void 0){let{getBundles:e}=await ae(async()=>{let{getBundles:e}=await import(`./default-node-BX8tyNLs.js`);return{getBundles:e}},__vite__mapDeps([3,1,2]));t.bundles=await e()}r=await fv(await t.bundles);let e=r.mainWorker;e.startsWith(`/@fs/`)&&(e=e.replace(`/@fs/`,`file://`));let i=await ae(()=>import(`./browser-BADqPKKy.js`),[]);n=new i.default(e,{type:`module`})}else throw Error(`Unsupported environment: ${i}`);let a;a=t.logger===!0?new z_:t.logger===!1?new R_:t.logger;let o=new X_(a,n);if(await o.instantiate(r.mainModule,r.pthreadWorker),t.storage)switch(t.storage.type){case EE.ORIGIN_PRIVATE_FS:try{let e=t.storage.path;e.startsWith(`/`)&&(e=e.slice(1)),await o.open({path:`opfs://${e}`,accessMode:t.storage.accessMode})}catch(e){throw await o.terminate(),await n.terminate(),e}break;case EE.NODE_FS:try{await o.open({path:t.storage.path,accessMode:t.storage.accessMode,useDirectIO:!0})}catch(e){throw await o.terminate(),await n.terminate(),e}break}let s=await o.connect();async function c(e,t=[]){if(!t||t.length===0){let t=await s.query(e);return{_results:t,_schema:t.schema,columns:t.schema.fields,rows:TE(t)}}let n=await s.prepare(e),r=await n.query(...t);return n.close(),{_results:r,_schema:r.schema,columns:r.schema.fields,rows:TE(r)}}return{worker:n,db:o,conn:s,query:async(e,t=[])=>c(e,t).then(e=>e.rows),queryWithColumns:async(e,t=[])=>c(e,t),close:async()=>{await s.close(),await o.terminate(),await n.terminate()}}}async function OE(e,t){await(await e).conn.send(`BEGIN TRANSACTION`);try{let n=await t(e);return await(await e).conn.send(`COMMIT`),n}catch(t){throw await(await e).conn.send(`ROLLBACK`),t}}async function kE(e,t,n){await(await e).conn.send(`SAVEPOINT ${t}`);try{let r=await n(e);return await(await e).conn.send(`RELEASE SAVEPOINT ${t}`),r}catch(n){throw await(await e).conn.send(`ROLLBACK TO SAVEPOINT ${t}`),n}}const J=Symbol.for(`drizzle:entityKind`);function Y(e,t){if(!e||typeof e!=`object`)return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,J))throw Error(`Class "${t.name??``}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(J in n&&n[J]===t[J])return!0;n=Object.getPrototypeOf(n)}return!1}var AE=class{constructor(e,t){this.table=e,this.config=t,this.name=t.name,this.keyAsName=t.keyAsName,this.notNull=t.notNull,this.default=t.default,this.defaultFn=t.defaultFn,this.onUpdateFn=t.onUpdateFn,this.hasDefault=t.hasDefault,this.primary=t.primaryKey,this.isUnique=t.isUnique,this.uniqueName=t.uniqueName,this.uniqueType=t.uniqueType,this.dataType=t.dataType,this.columnType=t.columnType,this.generated=t.generated,this.generatedIdentity=t.generatedIdentity}static[J]=`Column`;name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(e){return e}mapToDriverValue(e){return e}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!==`byDefault`}},jE=class{static[J]=`ColumnBuilder`;config;constructor(e,t,n){this.config={name:e,keyAsName:e===``,notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:t,columnType:n,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(e){return this.config.default=e,this.config.hasDefault=!0,this}$defaultFn(e){return this.config.defaultFn=e,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(e){return this.config.onUpdateFn=e,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(e){this.config.name===``&&(this.config.name=e)}};const ME=Symbol.for(`drizzle:Name`);var NE=class{static[J]=`PgForeignKeyBuilder`;reference;_onUpdate=`no action`;_onDelete=`no action`;constructor(e,t){this.reference=()=>{let{name:t,columns:n,foreignColumns:r}=e();return{name:t,columns:n,foreignTable:r[0].table,foreignColumns:r}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=e===void 0?`no action`:e,this}onDelete(e){return this._onDelete=e===void 0?`no action`:e,this}build(e){return new PE(e,this)}},PE=class{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static[J]=`PgForeignKey`;reference;onUpdate;onDelete;getName(){let{name:e,columns:t,foreignColumns:n}=this.reference(),r=t.map(e=>e.name),i=n.map(e=>e.name),a=[this.table[ME],...r,n[0].table[ME],...i];return e??`${a.join(`_`)}_fk`}};function FE(e,...t){return e(...t)}function IE(e,t){return`${e[ME]}_${t.join(`_`)}_unique`}function LE(e,t,n){for(let r=t;rArray.isArray(e)?BE(e):typeof e==`string`?`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`:`${e}`).join(`,`)}}`}var VE=class extends jE{foreignKeyConfigs=[];static[J]=`PgColumnBuilder`;array(e){return new WE(this.config.name,this,e)}references(e,t={}){return this.foreignKeyConfigs.push({ref:e,actions:t}),this}unique(e,t){return this.config.isUnique=!0,this.config.uniqueName=e,this.config.uniqueType=t?.nulls,this}generatedAlwaysAs(e){return this.config.generated={as:e,type:`always`,mode:`stored`},this}buildForeignKeys(e,t){return this.foreignKeyConfigs.map(({ref:n,actions:r})=>FE((n,r)=>{let i=new NE(()=>{let t=n();return{columns:[e],foreignColumns:[t]}});return r.onUpdate&&i.onUpdate(r.onUpdate),r.onDelete&&i.onDelete(r.onDelete),i.build(t)},n,r))}buildExtraConfigColumn(e){return new UE(e,this.config)}},HE=class extends AE{constructor(e,t){t.uniqueName||=IE(e,[t.name]),super(e,t),this.table=e}static[J]=`PgColumn`},UE=class extends HE{static[J]=`ExtraConfigColumn`;getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??`asc`,nulls:this.config.nulls??`last`,opClass:this.config.opClass};defaultConfig={order:`asc`,nulls:`last`,opClass:void 0};asc(){return this.indexConfig.order=`asc`,this}desc(){return this.indexConfig.order=`desc`,this}nullsFirst(){return this.indexConfig.nulls=`first`,this}nullsLast(){return this.indexConfig.nulls=`last`,this}op(e){return this.indexConfig.opClass=e,this}},WE=class extends VE{static[J]=`PgArrayBuilder`;constructor(e,t,n){super(e,`array`,`PgArray`),this.config.baseBuilder=t,this.config.size=n}build(e){let t=this.config.baseBuilder.build(e);return new GE(e,this.config,t)}},GE=class e extends HE{constructor(e,t,n,r){super(e,t),this.baseColumn=n,this.range=r,this.size=t.size}size;static[J]=`PgArray`;getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size==`number`?this.size:``}]`}mapFromDriverValue(e){return typeof e==`string`&&(e=zE(e)),e.map(e=>this.baseColumn.mapFromDriverValue(e))}mapToDriverValue(t,n=!1){let r=t.map(t=>t===null?null:Y(this.baseColumn,e)?this.baseColumn.mapToDriverValue(t,!0):this.baseColumn.mapToDriverValue(t));return n?r:BE(r)}};const KE=Symbol.for(`drizzle:isPgEnum`);function qE(e){return!!e&&typeof e==`function`&&KE in e&&e[KE]===!0}var JE=class{static[J]=`Subquery`;constructor(e,t,n,r=!1,i=[]){this._={brand:`Subquery`,sql:e,selectedFields:t,alias:n,isWith:r,usedTables:i}}},YE=class extends JE{static[J]=`WithSubquery`};const XE={startActiveSpan(e,t){return t()}},ZE=Symbol.for(`drizzle:ViewBaseConfig`),QE=Symbol.for(`drizzle:Schema`),$E=Symbol.for(`drizzle:Columns`),eD=Symbol.for(`drizzle:ExtraConfigColumns`),tD=Symbol.for(`drizzle:OriginalName`),nD=Symbol.for(`drizzle:BaseName`),rD=Symbol.for(`drizzle:IsAlias`),iD=Symbol.for(`drizzle:ExtraConfigBuilder`),aD=Symbol.for(`drizzle:IsDrizzleTable`);var X=class{static[J]=`Table`;static Symbol={Name:ME,Schema:QE,OriginalName:tD,Columns:$E,ExtraConfigColumns:eD,BaseName:nD,IsAlias:rD,ExtraConfigBuilder:iD};[ME];[tD];[QE];[$E];[eD];[nD];[rD]=!1;[aD]=!0;[iD]=void 0;constructor(e,t,n){this[ME]=this[tD]=e,this[QE]=t,this[nD]=n}};function oD(e){return e[ME]}function sD(e){return`${e[QE]??`public`}.${e[ME]}`}function cD(e){return e!=null&&typeof e.getSQL==`function`}function lD(e){let t={sql:``,params:[]};for(let n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||=[],t.typings.push(...n.typings));return t}var uD=class{static[J]=`StringChunk`;value;constructor(e){this.value=Array.isArray(e)?e:[e]}getSQL(){return new Z([this])}},Z=class e{constructor(e){this.queryChunks=e;for(let t of e)if(Y(t,X)){let e=t[X.Symbol.Schema];this.usedTables.push(e===void 0?t[X.Symbol.Name]:e+`.`+t[X.Symbol.Name])}}static[J]=`SQL`;decoder=pD;shouldInlineParams=!1;usedTables=[];append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return XE.startActiveSpan(`drizzle.buildSQL`,t=>{let n=this.buildQueryFromSourceParams(this.queryChunks,e);return t?.setAttributes({"drizzle.query.text":n.sql,"drizzle.query.params":JSON.stringify(n.params)}),n})}buildQueryFromSourceParams(t,n){let r=Object.assign({},n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:i,escapeName:a,escapeParam:o,prepareTyping:s,inlineParams:c,paramStartIndex:l}=r;return lD(t.map(t=>{if(Y(t,uD))return{sql:t.value.join(``),params:[]};if(Y(t,dD))return{sql:a(t.value),params:[]};if(t===void 0)return{sql:``,params:[]};if(Array.isArray(t)){let e=[new uD(`(`)];for(let[n,r]of t.entries())e.push(r),ne},mD={mapToDriverValue:e=>e};({...pD,...mD});var hD=class{constructor(e,t=mD){this.value=e,this.encoder=t}static[J]=`Param`;brand;getSQL(){return new Z([this])}};function Q(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!==``)&&n.push(new uD(e[0]));for(let[r,i]of t.entries())n.push(i,new uD(e[r+1]));return new Z(n)}(e=>{function t(){return new Z([])}e.empty=t;function n(e){return new Z(e)}e.fromList=n;function r(e){return new Z([new uD(e)])}e.raw=r;function i(e,t){let n=[];for(let[r,i]of e.entries())r>0&&t!==void 0&&n.push(t),n.push(i);return new Z(n)}e.join=i;function a(e){return new dD(e)}e.identifier=a;function o(e){return new gD(e)}e.placeholder=o;function s(e,t){return new hD(e,t)}e.param=s})(Q||={}),(e=>{class t{constructor(e,t){this.sql=e,this.fieldAlias=t}static[J]=`SQL.Aliased`;isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(Z||={});var gD=class{constructor(e){this.name=e}static[J]=`Placeholder`;getSQL(){return new Z([this])}};function _D(e,t){return e.map(e=>{if(Y(e,gD)){if(!(e.name in t))throw Error(`No value for placeholder "${e.name}" was provided`);return t[e.name]}if(Y(e,hD)&&Y(e.value,gD)){if(!(e.value.name in t))throw Error(`No value for placeholder "${e.value.name}" was provided`);return e.encoder.mapToDriverValue(t[e.value.name])}return e})}const vD=Symbol.for(`drizzle:IsDrizzleView`);var yD=class{static[J]=`View`;[ZE];[vD]=!0;constructor({name:e,schema:t,selectedFields:n,query:r}){this[ZE]={name:e,originalName:e,schema:t,selectedFields:n,query:r,isExisting:!r,isAlias:!1}}getSQL(){return new Z([this])}};AE.prototype.getSQL=function(){return new Z([this])},X.prototype.getSQL=function(){return new Z([this])},JE.prototype.getSQL=function(){return new Z([this])};var bD=class{constructor(e){this.table=e}static[J]=`ColumnAliasProxyHandler`;get(e,t){return t===`table`?this.table:e[t]}},xD=class{constructor(e,t){this.alias=e,this.replaceOriginalName=t}static[J]=`TableAliasProxyHandler`;get(e,t){if(t===X.Symbol.IsAlias)return!0;if(t===X.Symbol.Name||this.replaceOriginalName&&t===X.Symbol.OriginalName)return this.alias;if(t===ZE)return{...e[ZE],name:this.alias,isAlias:!0};if(t===X.Symbol.Columns){let t=e[X.Symbol.Columns];if(!t)return t;let n={};return Object.keys(t).map(r=>{n[r]=new Proxy(t[r],new bD(new Proxy(e,this)))}),n}let n=e[t];return Y(n,AE)?new Proxy(n,new bD(new Proxy(e,this))):n}};function SD(e,t){return new Proxy(e,new xD(t,!1))}function CD(e,t){return new Proxy(e,new bD(new Proxy(e.table,new xD(t,!1))))}function wD(e,t){return new Z.Aliased(TD(e.sql,t),e.fieldAlias)}function TD(e,t){return Q.join(e.queryChunks.map(e=>Y(e,AE)?CD(e,t):Y(e,Z)?TD(e,t):Y(e,Z.Aliased)?wD(e,t):e))}var ED=class extends Error{static[J]=`DrizzleError`;constructor({message:e,cause:t}){super(e),this.name=`DrizzleError`,this.cause=t}},DD=class e extends Error{constructor(t,n,r){super(`Failed query: ${t} params: ${n}`),this.query=t,this.params=n,this.cause=r,Error.captureStackTrace(this,e),r&&(this.cause=r)}},OD=class extends ED{static[J]=`TransactionRollbackError`;constructor(){super({message:`Rollback`})}},kD=class{static[J]=`ConsoleLogWriter`;write(e){console.log(e)}},AD=class{static[J]=`DefaultLogger`;writer;constructor(e){this.writer=e?.writer??new kD}logQuery(e,t){let n=t.map(e=>{try{return JSON.stringify(e)}catch{return String(e)}}),r=n.length?` -- params: [${n.join(`, `)}]`:``;this.writer.write(`Query: ${e}${r}`)}},jD=class{static[J]=`NoopLogger`;logQuery(){}},MD=class{static[J]=`QueryPromise`;[Symbol.toStringTag]=`QueryPromise`;catch(e){return this.then(void 0,e)}finally(e){return this.then(t=>(e?.(),t),t=>{throw e?.(),t})}then(e,t){return this.execute().then(e,t)}};function ND(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(typeof n!=`string`)return e;let i=t?[...t,n]:[n];return Y(r,AE)||Y(r,Z)||Y(r,Z.Aliased)?e.push({path:i,field:r}):Y(r,X)?e.push(...ND(r[X.Symbol.Columns],i)):e.push(...ND(r,i)),e},[])}function PD(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let[e,t]of n.entries())if(t!==r[e])return!1;return!0}function FD(e,t){let n=Object.entries(t).filter(([,e])=>e!==void 0).map(([t,n])=>Y(n,Z)||Y(n,AE)?[t,n]:[t,new hD(n,e[X.Symbol.Columns][t])]);if(n.length===0)throw Error(`No values to set`);return Object.fromEntries(n)}function ID(e,t){for(let n of t)for(let t of Object.getOwnPropertyNames(n.prototype)){if(t===`constructor`)continue;Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(n.prototype,t)||Object.create(null))}}function LD(e){return e[X.Symbol.Columns]}function RD(e){return Y(e,JE)?e._.alias:Y(e,yD)?e[ZE].name:Y(e,Z)?void 0:e[X.Symbol.IsAlias]?e[X.Symbol.Name]:e[X.Symbol.BaseName]}function zD(e){if(typeof e!=`object`||!e||e.constructor.name!==`Object`)return!1;if(`logger`in e){let t=typeof e.logger;return!(t!==`boolean`&&(t!==`object`||typeof e.logger.logQuery!=`function`)&&t!==`undefined`)}if(`schema`in e){let t=typeof e.schema;return!(t!==`object`&&t!==`undefined`)}if(`casing`in e){let t=typeof e.casing;return!(t!==`string`&&t!==`undefined`)}if(`mode`in e)return!(e.mode!==`default`||e.mode!==`planetscale`||e.mode!==void 0);if(`connection`in e){let t=typeof e.connection;return!(t!==`string`&&t!==`object`&&t!==`undefined`)}if(`client`in e){let t=typeof e.client;return!(t!==`object`&&t!==`function`&&t!==`undefined`)}return Object.keys(e).length===0}typeof TextDecoder>`u`||new TextDecoder;var BD=class extends HE{static[J]=`PgDate`;getSQLType(){return`date`}mapFromDriverValue(e){return new Date(e)}mapToDriverValue(e){return e.toISOString()}},VD=class extends HE{static[J]=`PgDateString`;getSQLType(){return`date`}},HD=class extends HE{static[J]=`PgJson`;constructor(e,t){super(e,t)}getSQLType(){return`json`}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if(typeof e==`string`)try{return JSON.parse(e)}catch{return e}return e}},UD=class extends HE{static[J]=`PgJsonb`;constructor(e,t){super(e,t)}getSQLType(){return`jsonb`}mapToDriverValue(e){return JSON.stringify(e)}mapFromDriverValue(e){if(typeof e==`string`)try{return JSON.parse(e)}catch{return e}return e}},WD=class extends HE{static[J]=`PgNumeric`;precision;scale;constructor(e,t){super(e,t),this.precision=t.precision,this.scale=t.scale}mapFromDriverValue(e){return typeof e==`string`?e:String(e)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?`numeric`:`numeric(${this.precision})`}},GD=class extends HE{static[J]=`PgTime`;withTimezone;precision;constructor(e,t){super(e,t),this.withTimezone=t.withTimezone,this.precision=t.precision}getSQLType(){let e=this.precision===void 0?``:`(${this.precision})`;return`time${e}${this.withTimezone?` with time zone`:``}`}},KD=class extends HE{static[J]=`PgTimestamp`;withTimezone;precision;constructor(e,t){super(e,t),this.withTimezone=t.withTimezone,this.precision=t.precision}getSQLType(){let e=this.precision===void 0?``:` (${this.precision})`;return`timestamp${e}${this.withTimezone?` with time zone`:``}`}mapFromDriverValue=e=>new Date(this.withTimezone?e:e+`+0000`);mapToDriverValue=e=>e.toISOString()},qD=class extends HE{static[J]=`PgTimestampString`;withTimezone;precision;constructor(e,t){super(e,t),this.withTimezone=t.withTimezone,this.precision=t.precision}getSQLType(){let e=this.precision===void 0?``:`(${this.precision})`;return`timestamp${e}${this.withTimezone?` with time zone`:``}`}},JD=class extends HE{static[J]=`PgUUID`;getSQLType(){return`uuid`}};const YD=Symbol.for(`drizzle:PgInlineForeignKeys`),XD=Symbol.for(`drizzle:EnableRLS`);var ZD=class extends X{static[J]=`PgTable`;static Symbol=Object.assign({},X.Symbol,{InlineForeignKeys:YD,EnableRLS:XD});[YD]=[];[XD]=!1;[X.Symbol.ExtraConfigBuilder]=void 0;[X.Symbol.ExtraConfigColumns]={}},QD=class{static[J]=`PgPrimaryKeyBuilder`;columns;name;constructor(e,t){this.columns=e,this.name=t}build(e){return new $D(e,this.columns,this.name)}},$D=class{constructor(e,t,n){this.table=e,this.columns=t,this.name=n}static[J]=`PgPrimaryKey`;columns;name;getName(){return this.name??`${this.table[ZD.Symbol.Name]}_${this.columns.map(e=>e.name).join(`_`)}_pk`}};function eO(e,t){return fD(t)&&!cD(e)&&!Y(e,hD)&&!Y(e,gD)&&!Y(e,AE)&&!Y(e,X)&&!Y(e,yD)?new hD(e,t):e}const tO=(e,t)=>Q`${e} = ${eO(t,e)}`,nO=(e,t)=>Q`${e} <> ${eO(t,e)}`;function rO(...e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?new Z(t):new Z([new uD(`(`),Q.join(t,new uD(` and `)),new uD(`)`)])}function iO(...e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?new Z(t):new Z([new uD(`(`),Q.join(t,new uD(` or `)),new uD(`)`)])}function aO(e){return Q`not ${e}`}const oO=(e,t)=>Q`${e} > ${eO(t,e)}`,sO=(e,t)=>Q`${e} >= ${eO(t,e)}`,cO=(e,t)=>Q`${e} < ${eO(t,e)}`,lO=(e,t)=>Q`${e} <= ${eO(t,e)}`;function uO(e,t){return Array.isArray(t)?t.length===0?Q`false`:Q`${e} in ${t.map(t=>eO(t,e))}`:Q`${e} in ${eO(t,e)}`}function dO(e,t){return Array.isArray(t)?t.length===0?Q`true`:Q`${e} not in ${t.map(t=>eO(t,e))}`:Q`${e} not in ${eO(t,e)}`}function fO(e){return Q`${e} is null`}function pO(e){return Q`${e} is not null`}function mO(e){return Q`exists ${e}`}function hO(e){return Q`not exists ${e}`}function gO(e,t,n){return Q`${e} between ${eO(t,e)} and ${eO(n,e)}`}function _O(e,t,n){return Q`${e} not between ${eO(t,e)} and ${eO(n,e)}`}function vO(e,t){return Q`${e} like ${t}`}function yO(e,t){return Q`${e} not like ${t}`}function bO(e,t){return Q`${e} ilike ${t}`}function xO(e,t){return Q`${e} not ilike ${t}`}function SO(e){return Q`${e} asc`}function CO(e){return Q`${e} desc`}var wO=class{constructor(e,t,n){this.sourceTable=e,this.referencedTable=t,this.relationName=n,this.referencedTableName=t[X.Symbol.Name]}static[J]=`Relation`;referencedTableName;fieldName},TO=class{constructor(e,t){this.table=e,this.config=t}static[J]=`Relations`},EO=class e extends wO{constructor(e,t,n,r){super(e,t,n?.relationName),this.config=n,this.isNullable=r}static[J]=`One`;withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config,this.isNullable);return n.fieldName=t,n}},DO=class e extends wO{constructor(e,t,n){super(e,t,n?.relationName),this.config=n}static[J]=`Many`;withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config);return n.fieldName=t,n}};function OO(){return{and:rO,between:gO,eq:tO,exists:mO,gt:oO,gte:sO,ilike:bO,inArray:uO,isNull:fO,isNotNull:pO,like:vO,lt:cO,lte:lO,ne:nO,not:aO,notBetween:_O,notExists:hO,notLike:yO,notIlike:xO,notInArray:dO,or:iO,sql:Q}}function kO(){return{sql:Q,asc:SO,desc:CO}}function AO(e,t){Object.keys(e).length===1&&`default`in e&&!Y(e.default,X)&&(e=e.default);let n={},r={},i={};for(let[a,o]of Object.entries(e))if(Y(o,X)){let e=sD(o),t=r[e];n[e]=a,i[a]={tsName:a,dbName:o[X.Symbol.Name],schema:o[X.Symbol.Schema],columns:o[X.Symbol.Columns],relations:t?.relations??{},primaryKey:t?.primaryKey??[]};for(let e of Object.values(o[X.Symbol.Columns]))e.primary&&i[a].primaryKey.push(e);let s=o[X.Symbol.ExtraConfigBuilder]?.(o[X.Symbol.ExtraConfigColumns]);if(s)for(let e of Object.values(s))Y(e,QD)&&i[a].primaryKey.push(...e.columns)}else if(Y(o,TO)){let e=sD(o.table),a=n[e],s=o.config(t(o.table));for(let[t,n]of Object.entries(s))if(a){let e=i[a];e.relations[t]=n}else e in r||(r[e]={relations:{},primaryKey:void 0}),r[e].relations[t]=n}return{tables:i,tableNamesMap:n}}function jO(e){return function(t,n){return new EO(e,t,n,n?.fields.reduce((e,t)=>e&&t.notNull,!0)??!1)}}function MO(e){return function(t,n){return new DO(e,t,n)}}function NO(e,t,n){if(Y(n,EO)&&n.config)return{fields:n.config.fields,references:n.config.references};let r=t[sD(n.referencedTable)];if(!r)throw Error(`Table "${n.referencedTable[X.Symbol.Name]}" not found in schema`);let i=e[r];if(!i)throw Error(`Table "${r}" not found in schema`);let a=n.sourceTable,o=t[sD(a)];if(!o)throw Error(`Table "${a[X.Symbol.Name]}" not found in schema`);let s=[];for(let e of Object.values(i.relations))(n.relationName&&n!==e&&e.relationName===n.relationName||!n.relationName&&e.referencedTable===n.sourceTable)&&s.push(e);if(s.length>1)throw n.relationName?Error(`There are multiple relations with name "${n.relationName}" in table "${r}"`):Error(`There are multiple relations between "${r}" and "${n.sourceTable[X.Symbol.Name]}". Please specify relation name`);if(s[0]&&Y(s[0],EO)&&s[0].config)return{fields:s[0].config.references,references:s[0].config.fields};throw Error(`There is not enough information to infer relation "${o}.${n.fieldName}"`)}function PO(e){return{one:jO(e),many:MO(e)}}function FO(e,t,n,r,i=e=>e){let a={};for(let[o,s]of r.entries())if(s.isJson){let r=t.relations[s.tsKey],c=n[o],l=typeof c==`string`?JSON.parse(c):c;a[s.tsKey]=Y(r,EO)?l&&FO(e,e[s.relationTableTsKey],l,s.selection,i):l.map(t=>FO(e,e[s.relationTableTsKey],t,s.selection,i))}else{let e=i(n[o]),t=s.field,r;r=Y(t,AE)?t:Y(t,Z)?t.decoder:t.sql.decoder,a[s.tsKey]=e===null?null:r.mapFromDriverValue(e)}return a}var IO=class e{static[J]=`SelectionProxyHandler`;config;constructor(e){this.config={...e}}get(t,n){if(n===`_`)return{...t._,selectedFields:new Proxy(t._.selectedFields,this)};if(n===ZE)return{...t[ZE],selectedFields:new Proxy(t[ZE].selectedFields,this)};if(typeof n==`symbol`)return t[n];let r=Y(t,JE)?t._.selectedFields:Y(t,yD)?t[ZE].selectedFields:t,i=r[n];if(Y(i,Z.Aliased)){if(this.config.sqlAliasedBehavior===`sql`&&!i.isSelectionField)return i.sql;let e=i.clone();return e.isSelectionField=!0,e}if(Y(i,Z)){if(this.config.sqlBehavior===`sql`)return i;throw Error(`You tried to reference "${n}" field from a subquery, which is a raw SQL field, but it doesn't have an alias declared. Please add an alias to the field using ".as('alias')" method.`)}return Y(i,AE)?this.config.alias?new Proxy(i,new bD(new Proxy(i.table,new xD(this.config.alias,this.config.replaceOriginalName??!1)))):i:typeof i!=`object`||!i?i:new Proxy(i,new e(this.config))}};function LO(e){let t=e.replace(/['\u2019]/g,``).match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g)??[];return t.map(e=>e.toLowerCase()).join(`_`)}function RO(e){let t=e.replace(/['\u2019]/g,``).match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g)??[];return t.reduce((e,t,n)=>{let r=n===0?t.toLowerCase():`${t[0].toUpperCase()}${t.slice(1)}`;return e+r},``)}function zO(e){return e}var BO=class{static[J]=`CasingCache`;cache={};cachedTables={};convert;constructor(e){this.convert=e===`snake_case`?LO:e===`camelCase`?RO:zO}getColumnCasing(e){if(!e.keyAsName)return e.name;let t=e.table[X.Symbol.Schema]??`public`,n=e.table[X.Symbol.OriginalName],r=`${t}.${n}.${e.name}`;return this.cache[r]||this.cacheTable(e.table),this.cache[r]}cacheTable(e){let t=e[X.Symbol.Schema]??`public`,n=e[X.Symbol.OriginalName],r=`${t}.${n}`;if(!this.cachedTables[r]){for(let t of Object.values(e[X.Symbol.Columns])){let e=`${r}.${t.name}`;this.cache[e]=this.convert(t.name)}this.cachedTables[r]=!0}}clearCache(){this.cache={},this.cachedTables={}}},VO=class extends yD{static[J]=`PgViewBase`},HO=class{static[J]=`PgDialect`;casing;constructor(e){this.casing=new BO(e?.casing)}async migrate(e,t,n){let r=typeof n==`string`?`__drizzle_migrations`:n.migrationsTable??`__drizzle_migrations`,i=typeof n==`string`?`drizzle`:n.migrationsSchema??`drizzle`,a=Q` CREATE TABLE IF NOT EXISTS ${Q.identifier(i)}.${Q.identifier(r)} ( id SERIAL PRIMARY KEY, hash text NOT NULL, created_at bigint ) - `;await t.execute(Q`CREATE SCHEMA IF NOT EXISTS ${Q.identifier(i)}`),await t.execute(a);let o=await t.all(Q`select id, hash, created_at from ${Q.identifier(i)}.${Q.identifier(r)} order by created_at desc limit 1`),s=o[0];await t.transaction(async t=>{for await(let n of e)if(!s||Number(s.created_at)t[e]!==void 0||n[e]?.onUpdateFn!==void 0),i=r.length;return Q.join(r.flatMap((e,r)=>{let a=n[e],o=t[e]??Q.param(a.onUpdateFn(),a),s=Q`${Q.identifier(this.casing.getColumnCasing(a))} = ${o}`;return r{let i=[];if(Y(e,Z.Aliased)&&e.isSelectionField)i.push(Q.identifier(e.fieldAlias));else if(Y(e,Z.Aliased)||Y(e,Z)){let n=Y(e,Z.Aliased)?e.sql:e;t?i.push(new Z(n.queryChunks.map(e=>Y(e,HE)?Q.identifier(this.casing.getColumnCasing(e)):e))):i.push(n),Y(e,Z.Aliased)&&i.push(Q` as ${Q.identifier(e.fieldAlias)}`)}else Y(e,AE)&&(t?i.push(Q.identifier(this.casing.getColumnCasing(e))):i.push(e));return ro?.some(({alias:t})=>t===(e[X.Symbol.IsAlias]?oD(e):e[X.Symbol.BaseName])))(e.field.table)){let t=oD(e.field.table);throw Error(`Your "${e.path.join(`->`)}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}let h=!o||o.length===0,ee=this.buildWithCTE(e),te;f&&(te=f===!0?Q` distinct`:Q` distinct on (${Q.join(f.on,Q`, `)})`);let ne=this.buildSelection(m,{isSingleTable:h}),re=this.buildFromTable(a),ie=this.buildJoins(o),ae=r?Q` where ${r}`:void 0,oe=i?Q` having ${i}`:void 0,se;s&&s.length>0&&(se=Q` order by ${Q.join(s,Q`, `)}`);let ce;c&&c.length>0&&(ce=Q` group by ${Q.join(c,Q`, `)}`);let le=typeof l==`object`||typeof l==`number`&&l>=0?Q` limit ${l}`:void 0,ue=u?Q` offset ${u}`:void 0,de=Q.empty();if(d){let e=Q` for ${Q.raw(d.strength)}`;d.config.of&&e.append(Q` of ${Q.join(Array.isArray(d.config.of)?d.config.of:[d.config.of],Q`, `)}`),d.config.noWait?e.append(Q` nowait`):d.config.skipLocked&&e.append(Q` skip locked`),de.append(e)}let fe=Q`${ee}select${te} ${ne} from ${re}${ie}${ae}${ce}${oe}${se}${le}${ue}${de}`;return p.length>0?this.buildSetOperations(fe,p):fe}buildSetOperations(e,t){let[n,...r]=t;if(!n)throw Error(`Cannot pass undefined values to any set operator`);return r.length===0?this.buildSetOperationQuery({leftSelect:e,setOperator:n}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:n}),r)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:n,rightSelect:r,limit:i,orderBy:a,offset:o}}){let s=Q`(${e.getSQL()}) `,c=Q`(${r.getSQL()})`,l;if(a&&a.length>0){let e=[];for(let t of a)if(Y(t,HE))e.push(Q.identifier(t.name));else if(Y(t,Z)){for(let e=0;e=0?Q` limit ${i}`:void 0,d=Q.raw(`${t} ${n?`all `:``}`),f=o?Q` offset ${o}`:void 0;return Q`${s}${d}${c}${l}${u}${f}`}buildInsertQuery({table:e,values:t,onConflict:n,returning:r,withList:i,select:a,overridingSystemValue_:o}){let s=[],c=e[X.Symbol.Columns],l=Object.entries(c).filter(([e,t])=>!t.shouldDisableInsert()),u=l.map(([,e])=>Q.identifier(this.casing.getColumnCasing(e)));if(a){let e=t;Y(e,Z)?s.push(e):s.push(e.getSQL())}else{let e=t;s.push(Q.raw(`values `));for(let[t,n]of e.entries()){let r=[];for(let[e,t]of l){let i=n[e];if(i===void 0||Y(i,hD)&&i.value===void 0)if(t.defaultFn!==void 0){let e=t.defaultFn(),n=Y(e,Z)?e:Q.param(e,t);r.push(n)}else if(!t.default&&t.onUpdateFn!==void 0){let e=t.onUpdateFn(),n=Y(e,Z)?e:Q.param(e,t);r.push(n)}else r.push(Q`default`);else r.push(i)}s.push(r),t({dbKey:t.name,tsKey:e,field:CD(t,o),relationTableTsKey:void 0,isJson:!1,selection:[]}))}else{let r=Object.fromEntries(Object.entries(i.columns).map(([e,t])=>[e,CD(t,o)]));if(a.where){let e=typeof a.where==`function`?a.where(r,OO()):a.where;p=e&&TD(e,o)}let s=[],c=[];if(a.columns){let e=!1;for(let[t,n]of Object.entries(a.columns)){if(n===void 0)continue;t in i.columns&&(!e&&n===!0&&(e=!0),c.push(t))}c.length>0&&(c=e?c.filter(e=>a.columns?.[e]===!0):Object.keys(i.columns).filter(e=>!c.includes(e)))}else c=Object.keys(i.columns);for(let e of c){let t=i.columns[e];s.push({tsKey:e,value:t})}let h=[];a.with&&(h=Object.entries(a.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:i.relations[e]})));let ee;if(a.extras){ee=typeof a.extras==`function`?a.extras(r,{sql:Q}):a.extras;for(let[e,t]of Object.entries(ee))s.push({tsKey:e,value:wD(t,o)})}for(let{tsKey:e,value:t}of s)l.push({dbKey:Y(t,Z.Aliased)?t.fieldAlias:i.columns[e].name,tsKey:e,field:Y(t,AE)?CD(t,o):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let te=typeof a.orderBy==`function`?a.orderBy(r,kO()):a.orderBy??[];Array.isArray(te)||(te=[te]),f=te.map(e=>Y(e,AE)?CD(e,o):TD(e,o)),u=a.limit,d=a.offset;for(let{tsKey:r,queryConfig:i,relation:a}of h){let s=NO(t,n,a),c=sD(a.referencedTable),u=n[c],d=`${o}_${r}`,f=rO(...s.fields.map((e,t)=>tO(CD(s.references[t],d),CD(e,o)))),p=this.buildRelationalQueryWithoutPK({fullSchema:e,schema:t,tableNamesMap:n,table:e[u],tableConfig:t[u],queryConfig:Y(a,EO)?i===!0?{limit:1}:{...i,limit:1}:i,tableAlias:d,joinOn:f,nestedQueryRelation:a}),h=Q`${Q.identifier(d)}.${Q.identifier(`data`)}`.as(r);m.push({on:Q`true`,table:new JE(p.sql,{},d),alias:d,joinType:`left`,lateral:!0}),l.push({dbKey:r,tsKey:r,field:h,relationTableTsKey:u,isJson:!0,selection:p.selection})}}if(l.length===0)throw new ED({message:`No fields selected for table "${i.tsName}" ("${o}")`});let h;if(p=rO(c,p),s){let e=Q`json_build_array(${Q.join(l.map(({field:e,tsKey:t,isJson:n})=>n?Q`${Q.identifier(`${o}_${t}`)}.${Q.identifier(`data`)}`:Y(e,Z.Aliased)?e.sql:e),Q`, `)})`;Y(s,DO)&&(e=Q`coalesce(json_agg(${e}${f.length>0?Q` order by ${Q.join(f,Q`, `)}`:void 0}), '[]'::json)`);let t=[{dbKey:`data`,tsKey:`data`,field:e.as(`data`),isJson:!0,relationTableTsKey:i.tsName,selection:l}],n=u!==void 0||d!==void 0||f.length>0;n?(h=this.buildSelectQuery({table:SD(r,o),fields:{},fieldsFlat:[{path:[],field:Q.raw(`*`)}],where:p,limit:u,offset:d,orderBy:f,setOperators:[]}),p=void 0,u=void 0,d=void 0,f=[]):h=SD(r,o),h=this.buildSelectQuery({table:Y(h,ZD)?h:new JE(h,{},o),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:Y(e,AE)?CD(e,o):e})),joins:m,where:p,limit:u,offset:d,orderBy:f,setOperators:[]})}else h=this.buildSelectQuery({table:SD(r,o),fields:{},fieldsFlat:l.map(({field:e})=>({path:[],field:Y(e,AE)?CD(e,o):e})),joins:m,where:p,limit:u,offset:d,orderBy:f,setOperators:[]});return{tableTsKey:i.tsName,sql:h,selection:l}}},UO=class{static[J]=`TypedQueryBuilder`;getSelectedFields(){return this._.selectedFields}},WO=class{static[J]=`PgSelectBuilder`;fields;session;dialect;withList=[];distinct;constructor(e){this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,e.withList&&(this.withList=e.withList),this.distinct=e.distinct}authToken;setToken(e){return this.authToken=e,this}from(e){let t=!!this.fields,n=e,r;return r=this.fields?this.fields:Y(n,JE)?Object.fromEntries(Object.keys(n._.selectedFields).map(e=>[e,n[e]])):Y(n,VO)?n[ZE].selectedFields:Y(n,Z)?{}:LD(n),new KO({table:n,fields:r,isPartialSelect:t,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct}).setToken(this.authToken)}},GO=class extends UO{static[J]=`PgSelectQueryBuilder`;_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:e,fields:t,isPartialSelect:n,session:r,dialect:i,withList:a,distinct:o}){super(),this.config={withList:a,table:e,fields:{...t},distinct:o,setOperators:[]},this.isPartialSelect=n,this.session=r,this.dialect=i,this._={selectedFields:t,config:this.config},this.tableName=RD(e),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{};for(let t of nk(e))this.usedTables.add(t)}getUsedTables(){return[...this.usedTables]}createJoin(e,t){return(n,r)=>{let i=this.tableName,a=RD(n);for(let e of nk(n))this.usedTables.add(e);if(typeof a==`string`&&this.config.joins?.some(e=>e.alias===a))throw Error(`Alias "${a}" is already used in this query`);if(!this.isPartialSelect&&(Object.keys(this.joinsNotNullableMap).length===1&&typeof i==`string`&&(this.config.fields={[i]:this.config.fields}),typeof a==`string`&&!Y(n,Z))){let e=Y(n,JE)?n._.selectedFields:Y(n,yD)?n[ZE].selectedFields:n[X.Symbol.Columns];this.config.fields[a]=e}if(typeof r==`function`&&(r=r(new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,table:n,joinType:e,alias:a,lateral:t}),typeof a==`string`)switch(e){case`left`:this.joinsNotNullableMap[a]=!1;break;case`right`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!0;break;case`cross`:case`inner`:this.joinsNotNullableMap[a]=!0;break;case`full`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!1;break}return this}}leftJoin=this.createJoin(`left`,!1);leftJoinLateral=this.createJoin(`left`,!0);rightJoin=this.createJoin(`right`,!1);innerJoin=this.createJoin(`inner`,!1);innerJoinLateral=this.createJoin(`inner`,!0);fullJoin=this.createJoin(`full`,!1);crossJoin=this.createJoin(`cross`,!1);crossJoinLateral=this.createJoin(`cross`,!0);createSetOperator(e,t){return n=>{let r=typeof n==`function`?n(JO()):n;if(!PD(this.getSelectedFields(),r.getSelectedFields()))throw Error(`Set operator error (union / intersect / except): selected fields are not the same or are in a different order`);return this.config.setOperators.push({type:e,isAll:t,rightSelect:r}),this}}union=this.createSetOperator(`union`,!1);unionAll=this.createSetOperator(`union`,!0);intersect=this.createSetOperator(`intersect`,!1);intersectAll=this.createSetOperator(`intersect`,!0);except=this.createSetOperator(`except`,!1);exceptAll=this.createSetOperator(`except`,!0);addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.where=e,this}having(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.having=e,this}groupBy(...e){if(typeof e[0]==`function`){let t=e[0](new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`alias`,sqlBehavior:`sql`})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if(typeof e[0]==`function`){let t=e[0](new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`alias`,sqlBehavior:`sql`}))),n=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=n:this.config.orderBy=n}else{let t=e;this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=t:this.config.orderBy=t}return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}for(e,t={}){return this.config.lockingClause={strength:e,config:t},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){let t=[];if(t.push(...nk(this.config.table)),this.config.joins)for(let e of this.config.joins)t.push(...nk(e.table));return new Proxy(new JE(this.getSQL(),this.config.fields,e,!1,[...new Set(t)]),new IO({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`}))}getSelectedFields(){return new Proxy(this.config.fields,new IO({alias:this.tableName,sqlAliasedBehavior:`alias`,sqlBehavior:`error`}))}$dynamic(){return this}$withCache(e){return this.cacheConfig=e===void 0?{config:{},enable:!0,autoInvalidate:!0}:e===!1?{enable:!1}:{enable:!0,autoInvalidate:!0,...e},this}},KO=class extends GO{static[J]=`PgSelect`;_prepare(e){let{session:t,config:n,dialect:r,joinsNotNullableMap:i,authToken:a,cacheConfig:o,usedTables:s}=this;if(!t)throw Error(`Cannot execute a query on a query builder. Please use a database instance instead.`);let{fields:c}=n;return XE.startActiveSpan(`drizzle.prepareQuery`,()=>{let n=ND(c),l=t.prepareQuery(r.sqlToQuery(this.getSQL()),n,e,!0,void 0,{type:`select`,tables:[...s]},o);return l.joinsNotNullableMap=i,l.setToken(a)})}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))};ID(KO,[MD]);function qO(e,t){return(n,r,...i)=>{let a=[r,...i].map(n=>({type:e,isAll:t,rightSelect:n}));for(let e of a)if(!PD(n.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error(`Set operator error (union / intersect / except): selected fields are not the same or are in a different order`);return n.addSetOperators(a)}}const JO=()=>({union:YO,unionAll:XO,intersect:ZO,intersectAll:QO,except:$O,exceptAll:ek}),YO=qO(`union`,!1),XO=qO(`union`,!0),ZO=qO(`intersect`,!1),QO=qO(`intersect`,!0),$O=qO(`except`,!1),ek=qO(`except`,!0);var tk=class{static[J]=`PgQueryBuilder`;dialect;dialectConfig;constructor(e){this.dialect=Y(e,HO)?e:void 0,this.dialectConfig=Y(e,HO)?void 0:e}$with=(e,t)=>{let n=this,r=r=>(typeof r==`function`&&(r=r(n)),new Proxy(new YE(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new IO({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})));return{as:r}};with(...e){let t=this;function n(n){return new WO({fields:n??void 0,session:void 0,dialect:t.getDialect(),withList:e})}function r(e){return new WO({fields:e??void 0,session:void 0,dialect:t.getDialect(),distinct:!0})}function i(e,n){return new WO({fields:n??void 0,session:void 0,dialect:t.getDialect(),distinct:{on:e}})}return{select:n,selectDistinct:r,selectDistinctOn:i}}select(e){return new WO({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new WO({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(e,t){return new WO({fields:t??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:e}})}getDialect(){return this.dialect||=new HO(this.dialectConfig),this.dialect}};function nk(e){return Y(e,ZD)?[e[QE]?`${e[QE]}.${e[X.Symbol.BaseName]}`:e[X.Symbol.BaseName]]:Y(e,JE)?e._.usedTables??[]:Y(e,Z)?e.usedTables??[]:[]}var rk=class extends MD{constructor(e,t,n,r){super(),this.session=t,this.dialect=n,this.config={table:e,withList:r}}static[J]=`PgDelete`;config;cacheConfig;where(e){return this.config.where=e,this}returning(e=this.config.table[X.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=ND(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return XE.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`delete`,tables:nk(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new IO({alias:oD(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},ik=class{constructor(e,t,n,r,i){this.table=e,this.session=t,this.dialect=n,this.withList=r,this.overridingSystemValue_=i}static[J]=`PgInsertBuilder`;authToken;setToken(e){return this.authToken=e,this}overridingSystemValue(){return this.overridingSystemValue_=!0,this}values(e){if(e=Array.isArray(e)?e:[e],e.length===0)throw Error(`values() must be called with at least one value`);let t=e.map(e=>{let t={},n=this.table[X.Symbol.Columns];for(let r of Object.keys(e)){let i=e[r];t[r]=Y(i,Z)?i:new hD(i,n[r])}return t});return new ak(this.table,t,this.session,this.dialect,this.withList,!1,this.overridingSystemValue_).setToken(this.authToken)}select(e){let t=typeof e==`function`?e(new tk):e;if(!Y(t,Z)&&!PD(this.table[$E],t._.selectedFields))throw Error(`Insert select error: selected fields are not the same or are in a different order compared to the table definition`);return new ak(this.table,t,this.session,this.dialect,this.withList,!0)}},ak=class extends MD{constructor(e,t,n,r,i,a,o){super(),this.session=n,this.dialect=r,this.config={table:e,values:t,withList:i,select:a,overridingSystemValue_:o}}static[J]=`PgInsert`;config;cacheConfig;returning(e=this.config.table[X.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=ND(e),this}onConflictDoNothing(e={}){if(e.target===void 0)this.config.onConflict=Q`do nothing`;else{let t=``;t=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(e))).join(`,`):this.dialect.escapeName(this.dialect.casing.getColumnCasing(e.target));let n=e.where?Q` where ${e.where}`:void 0;this.config.onConflict=Q`(${Q.raw(t)})${n} do nothing`}return this}onConflictDoUpdate(e){if(e.where&&(e.targetWhere||e.setWhere))throw Error(`You cannot use both "where" and "targetWhere"/"setWhere" at the same time - "where" is deprecated, use "targetWhere" or "setWhere" instead.`);let t=e.where?Q` where ${e.where}`:void 0,n=e.targetWhere?Q` where ${e.targetWhere}`:void 0,r=e.setWhere?Q` where ${e.setWhere}`:void 0,i=this.dialect.buildUpdateSet(this.config.table,FD(this.config.table,e.set)),a=``;return a=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(e))).join(`,`):this.dialect.escapeName(this.dialect.casing.getColumnCasing(e.target)),this.config.onConflict=Q`(${Q.raw(a)})${n} do update set ${i}${t}${r}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return XE.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`insert`,tables:nk(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new IO({alias:oD(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},ok=class extends MD{constructor(e,t,n){super(),this.session=t,this.dialect=n,this.config={view:e}}static[J]=`PgRefreshMaterializedView`;config;concurrently(){if(this.config.withNoData!==void 0)throw Error(`Cannot use concurrently and withNoData together`);return this.config.concurrently=!0,this}withNoData(){if(this.config.concurrently!==void 0)throw Error(`Cannot use concurrently and withNoData together`);return this.config.withNoData=!0,this}getSQL(){return this.dialect.buildRefreshMaterializedViewQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return XE.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,e,!0))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))},sk=class{constructor(e,t,n,r){this.table=e,this.session=t,this.dialect=n,this.withList=r}static[J]=`PgUpdateBuilder`;authToken;setToken(e){return this.authToken=e,this}set(e){return new ck(this.table,FD(this.table,e),this.session,this.dialect,this.withList).setToken(this.authToken)}},ck=class extends MD{constructor(e,t,n,r,i){super(),this.session=n,this.dialect=r,this.config={set:t,table:e,withList:i,joins:[]},this.tableName=RD(e),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{}}static[J]=`PgUpdate`;config;tableName;joinsNotNullableMap;cacheConfig;from(e){let t=e,n=RD(t);return typeof n==`string`&&(this.joinsNotNullableMap[n]=!0),this.config.from=t,this}getTableLikeFields(e){return Y(e,ZD)?e[X.Symbol.Columns]:Y(e,JE)?e._.selectedFields:e[ZE].selectedFields}createJoin(e){return(t,n)=>{let r=RD(t);if(typeof r==`string`&&this.config.joins.some(e=>e.alias===r))throw Error(`Alias "${r}" is already used in this query`);if(typeof n==`function`){let e=this.config.from&&!Y(this.config.from,Z)?this.getTableLikeFields(this.config.from):void 0;n=n(new Proxy(this.config.table[X.Symbol.Columns],new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})),e&&new Proxy(e,new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))}if(this.config.joins.push({on:n,table:t,joinType:e,alias:r}),typeof r==`string`)switch(e){case`left`:this.joinsNotNullableMap[r]=!1;break;case`right`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[r]=!0;break;case`inner`:this.joinsNotNullableMap[r]=!0;break;case`full`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[r]=!1;break}return this}}leftJoin=this.createJoin(`left`);rightJoin=this.createJoin(`right`);innerJoin=this.createJoin(`inner`);fullJoin=this.createJoin(`full`);where(e){return this.config.where=e,this}returning(e){if(!e&&(e=Object.assign({},this.config.table[X.Symbol.Columns]),this.config.from)){let t=RD(this.config.from);if(typeof t==`string`&&this.config.from&&!Y(this.config.from,Z)){let n=this.getTableLikeFields(this.config.from);e[t]=n}for(let t of this.config.joins){let n=RD(t.table);if(typeof n==`string`&&!Y(t.table,Z)){let r=this.getTableLikeFields(t.table);e[n]=r}}}return this.config.returningFields=e,this.config.returning=ND(e),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){let t=this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`insert`,tables:nk(this.config.table)},this.cacheConfig);return t.joinsNotNullableMap=this.joinsNotNullableMap,t}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>this._prepare().execute(e,this.authToken);getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new IO({alias:oD(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},lk=class e extends Z{constructor(t){super(e.buildEmbeddedCount(t.source,t.filters).queryChunks),this.params=t,this.mapWith(Number),this.session=t.session,this.sql=e.buildCount(t.source,t.filters)}sql;token;static[J]=`PgCountBuilder`;[Symbol.toStringTag]=`PgCountBuilder`;session;static buildEmbeddedCount(e,t){return Q`(select count(*) from ${e}${Q.raw(` where `).if(t)}${t})`}static buildCount(e,t){return Q`select count(*) as count from ${e}${Q.raw(` where `).if(t)}${t};`}setToken(e){return this.token=e,this}then(e,t){return Promise.resolve(this.session.count(this.sql,this.token)).then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return this.then(t=>(e?.(),t),t=>{throw e?.(),t})}},uk=class{constructor(e,t,n,r,i,a,o){this.fullSchema=e,this.schema=t,this.tableNamesMap=n,this.table=r,this.tableConfig=i,this.dialect=a,this.session=o}static[J]=`PgRelationalQueryBuilder`;findMany(e){return new dk(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},`many`)}findFirst(e){return new dk(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},`first`)}},dk=class extends MD{constructor(e,t,n,r,i,a,o,s,c){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=n,this.table=r,this.tableConfig=i,this.dialect=a,this.session=o,this.config=s,this.mode=c}static[J]=`PgRelationalQuery`;_prepare(e){return XE.startActiveSpan(`drizzle.prepareQuery`,()=>{let{query:t,builtQuery:n}=this._toSQL();return this.session.prepareQuery(n,void 0,e,!0,(e,n)=>{let r=e.map(e=>FO(this.schema,this.tableConfig,e,t.selection,n));return this.mode===`first`?r[0]:r})})}prepare(e){return this._prepare(e)}_getQuery(){return this.dialect.buildRelationalQueryWithoutPK({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}getSQL(){return this._getQuery().sql}_toSQL(){let e=this._getQuery(),t=this.dialect.sqlToQuery(e.sql);return{query:e,builtQuery:t}}toSQL(){return this._toSQL().builtQuery}authToken;setToken(e){return this.authToken=e,this}execute(){return XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(void 0,this.authToken))}},fk=class extends MD{constructor(e,t,n,r){super(),this.execute=e,this.sql=t,this.query=n,this.mapBatchResult=r}static[J]=`PgRaw`;getSQL(){return this.sql}getQuery(){return this.query}mapResult(e,t){return t?this.mapBatchResult(e):e}_prepare(){return this}isResponseInArrayMode(){return!1}},pk=class{constructor(e,t,n){if(this.dialect=e,this.session=t,this._=n?{schema:n.schema,fullSchema:n.fullSchema,tableNamesMap:n.tableNamesMap,session:t}:{schema:void 0,fullSchema:{},tableNamesMap:{},session:t},this.query={},this._.schema)for(let[r,i]of Object.entries(this._.schema))this.query[r]=new uk(n.fullSchema,this._.schema,this._.tableNamesMap,n.fullSchema[r],i,e,t);this.$cache={invalidate:async e=>{}}}static[J]=`PgDatabase`;query;$with=(e,t)=>{let n=this,r=r=>(typeof r==`function`&&(r=r(new tk(n.dialect))),new Proxy(new YE(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new IO({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})));return{as:r}};$count(e,t){return new lk({source:e,filters:t,session:this.session})}$cache;with(...e){let t=this;function n(n){return new WO({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e})}function r(n){return new WO({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}function i(n,r){return new WO({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:{on:n}})}function a(n){return new sk(n,t.session,t.dialect,e)}function o(n){return new ik(n,t.session,t.dialect,e)}function s(n){return new rk(n,t.session,t.dialect,e)}return{select:n,selectDistinct:r,selectDistinctOn:i,update:a,insert:o,delete:s}}select(e){return new WO({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new WO({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(e,t){return new WO({fields:t??void 0,session:this.session,dialect:this.dialect,distinct:{on:e}})}update(e){return new sk(e,this.session,this.dialect)}insert(e){return new ik(e,this.session,this.dialect)}delete(e){return new rk(e,this.session,this.dialect)}refreshMaterializedView(e){return new ok(e,this.session,this.dialect)}authToken;execute(e){let t=typeof e==`string`?Q.raw(e):e.getSQL(),n=this.dialect.sqlToQuery(t),r=this.session.prepareQuery(n,void 0,void 0,!1);return new fk(()=>r.execute(void 0,this.authToken),t,n,e=>r.mapResult(e,!0))}transaction(e,t){return this.session.transaction(e,t)}},mk=class{static[J]=`Cache`},hk=class extends mk{strategy(){return`all`}static[J]=`NoopCache`;async get(e){}async put(e,t,n,r){}async onMutate(e){}};async function gk(e,t){let n=`${e}-${JSON.stringify(t)}`,r=new TextEncoder,i=r.encode(n),a=await crypto.subtle.digest(`SHA-256`,i),o=[...new Uint8Array(a)],s=o.map(e=>e.toString(16).padStart(2,`0`)).join(``);return s}var _k=class{constructor(e,t,n,r){this.query=e,this.cache=t,this.queryMetadata=n,this.cacheConfig=r,t&&t.strategy()===`all`&&r===void 0&&(this.cacheConfig={enable:!0,autoInvalidate:!0}),this.cacheConfig?.enable||(this.cacheConfig=void 0)}authToken;getQuery(){return this.query}mapResult(e,t){return e}setToken(e){return this.authToken=e,this}static[J]=`PgPreparedQuery`;joinsNotNullableMap;async queryWithCache(e,t,n){if(this.cache===void 0||Y(this.cache,hk)||this.queryMetadata===void 0)try{return await n()}catch(n){throw new DD(e,t,n)}if(this.cacheConfig&&!this.cacheConfig.enable)try{return await n()}catch(n){throw new DD(e,t,n)}if((this.queryMetadata.type===`insert`||this.queryMetadata.type===`update`||this.queryMetadata.type===`delete`)&&this.queryMetadata.tables.length>0)try{let[e]=await Promise.all([n(),this.cache.onMutate({tables:this.queryMetadata.tables})]);return e}catch(n){throw new DD(e,t,n)}if(!this.cacheConfig)try{return await n()}catch(n){throw new DD(e,t,n)}if(this.queryMetadata.type===`select`){let r=await this.cache.get(this.cacheConfig.tag??await gk(e,t),this.queryMetadata.tables,this.cacheConfig.tag!==void 0,this.cacheConfig.autoInvalidate);if(r===void 0){let r;try{r=await n()}catch(n){throw new DD(e,t,n)}return await this.cache.put(this.cacheConfig.tag??await gk(e,t),r,this.cacheConfig.autoInvalidate?this.queryMetadata.tables:[],this.cacheConfig.tag!==void 0,this.cacheConfig.config),r}return r}try{return await n()}catch(n){throw new DD(e,t,n)}}},vk=class{constructor(e){this.dialect=e}static[J]=`PgSession`;execute(e,t){return XE.startActiveSpan(`drizzle.operation`,()=>{let n=XE.startActiveSpan(`drizzle.prepareQuery`,()=>this.prepareQuery(this.dialect.sqlToQuery(e),void 0,void 0,!1));return n.setToken(t).execute(void 0,t)})}all(e){return this.prepareQuery(this.dialect.sqlToQuery(e),void 0,void 0,!1).all()}async count(e,t){let n=await this.execute(e,t);return Number(n[0].count)}},yk=class extends pk{constructor(e,t,n,r=0){super(e,t,n),this.schema=n,this.nestedIndex=r}static[J]=`PgTransaction`;rollback(){throw new OD}getTransactionConfigSQL(e){let t=[];return e.isolationLevel&&t.push(`isolation level ${e.isolationLevel}`),e.accessMode&&t.push(e.accessMode),typeof e.deferrable==`boolean`&&t.push(e.deferrable?`deferrable`:`not deferrable`),Q.raw(t.join(` `))}setTransaction(e){return this.session.execute(Q`set transaction ${this.getTransactionConfigSQL(e)}`)}};function bk(e){return typeof e==`string`&&/^true$/i.test(e)}function xk(e){let t={scheme:`duckdb-wasm:`},n=new URL(e);if(!n.protocol.startsWith(`duckdb-wasm:`))throw Error(`Expected scheme to be "duckdb-wasm:" but got "${n.protocol}"`);n.searchParams.get(`bundles`)===`import-url`&&(t.bundles=`import-url`);let r=n.searchParams.get(`logger`);r&&bk(r)&&(t.logger=!0);let i=n.searchParams.get(`storage`);switch(i){case EE.ORIGIN_PRIVATE_FS:{n.host.length>0&&console.warn(`Host "${n.host}" will be ignored while using Origin Private FS`);let e=n.searchParams.get(`write`);t.storage={type:EE.ORIGIN_PRIVATE_FS,path:n.pathname.startsWith(`/`)?n.pathname.slice(1):n.pathname,...e&&bk(e)&&{accessMode:M_.READ_WRITE}};break}case null:break;default:console.warn(`Unknown storage type "${i}"`);break}return t}var Sk=class extends _k{static[J]=`DuckDBWasmPreparedQuery`;constructor(e,t,n,r,i,a){super({sql:t,params:n}),this.client=e,this.queryString=t,this.params=n,this.logger=r,this.fields=i,this.customResultMapper=a}async execute(e={}){let t=_D(this.params,e);this.logger.logQuery(this.queryString,t);let{fields:n,queryString:r,client:i,customResultMapper:a}=this,o=await i;return o.query(r,t)}async all(e={}){let t=_D(this.params,e);this.logger.logQuery(this.queryString,t);let n=await this.client;return n.query(this.queryString,t)}},Ck=class e extends vk{static[J]=`DuckDBWasmSession`;logger;constructor(e,t,n,r={}){super(t),this.client=e,this.schema=n,this.options=r,this.logger=r.logger??new jD}prepareQuery(e,t,n,r,i){return new Sk(this.client,e.sql,e.params,this.logger,t,i)}async query(e,t){this.logger.logQuery(e,t);let n=await this.client;return n.query(e,t)}async queryObjects(e,t){this.logger.logQuery(e,t);let n=await this.client;return n.query(e,t)}transaction(t,n){return OE(this.client,async r=>{let i=new e(r,this.dialect,this.schema,this.options),a=new wk(this.dialect,i,this.schema);return n&&await a.setTransaction(n),t(a)})}},wk=class e extends yk{static[J]=`DuckDBWasmTransaction`;dialect;session;constructor(e,t,n,r=0){super(e,t,n,r),this.dialect=e,this.session=t}async transaction(t){return kE(this.session.client,``,async n=>{let r=new Ck(n,this.dialect,this.schema,this.session.options),i=new e(this.dialect,r,this.schema);return t(i)})}},Tk=class extends pk{static[J]=`DuckDBWasmDatabase`};function Ek(e,t={}){let n=new HO({casing:t.casing}),r;t.logger===!0?r=new AD:t.logger!==!1&&(r=t.logger);let i;if(t.schema){let e=AO(t.schema,PO);i={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=new Ck(e,n,i,{logger:r}),o=new Tk(n,a,i);return o.$client=e,o}function Dk(e,t){let n=xk(e),r;if(n.bundles===`import-url`){let e=async()=>{let e=await tE();switch(e){case`browser`:return(await oe(async()=>{let{getImportUrlBundles:e}=await import(`./import-url-browser-agSP1LkN.js`);return{getImportUrlBundles:e}},__vite__mapDeps([4,5,6]))).getImportUrlBundles();case`node`:return await(await oe(async()=>{let{getImportUrlBundles:e}=await import(`./import-url-node-DsdDfn-V.js`);return{getImportUrlBundles:e}},__vite__mapDeps([7,6]))).getImportUrlBundles();default:throw Error(`Unsupported environment: "${e}"`)}};r=e()}else{let e=async()=>{let e=await tE();switch(e){case`browser`:return(await oe(async()=>{let{getBundles:e}=await import(`./default-browser-DBEOGewc.js`);return{getBundles:e}},[])).getBundles();case`node`:return await(await oe(async()=>{let{getBundles:e}=await import(`./default-node-CfSUWdLW.js`);return{getBundles:e}},__vite__mapDeps([3,1,2]))).getBundles();default:throw Error(`Unsupported environment: "${e}"`)}};r=e()}return Ek(DE({bundles:r,logger:n.logger?new z_:void 0,storage:n.storage}),t)}function Ok(...e){if(typeof e[0]==`string`)return Dk(e[0],e[1]);if(zD(e[0])){let{connection:t,client:n,...r}=e[0];if(n)return Ek(n,r);if(typeof t==`string`)return Dk(t,r);if(t===void 0)throw Error(`connection option is required`);return Ek(DE({bundles:t.bundles,logger:t.logger,storage:t.storage}),r)}return Ek(e[0],e[1])}(function(e){function t(e){return Ek({options:{parsers:{},serializers:{}}},e)}e.mock=t})(Ok||={});var kk=1/1e3,Ak=1e3,jk=class{constructor(){this.startTime=performance.now(),this.previousTime=0,this.currentTime=0,this._delta=0,this._elapsed=0,this._fixedDelta=1e3/60,this.timescale=1,this.useFixedDelta=!1,this._autoReset=!1}get autoReset(){return this._autoReset}set autoReset(e){typeof document<`u`&&document.hidden!==void 0&&(e?document.addEventListener(`visibilitychange`,this):document.removeEventListener(`visibilitychange`,this),this._autoReset=e)}get delta(){return this._delta*kk}get fixedDelta(){return this._fixedDelta*kk}set fixedDelta(e){this._fixedDelta=e*Ak}get elapsed(){return this._elapsed*kk}update(e){this.useFixedDelta?this._delta=this.fixedDelta:(this.previousTime=this.currentTime,this.currentTime=(e===void 0?performance.now():e)-this.startTime,this._delta=this.currentTime-this.previousTime),this._delta*=this.timescale,this._elapsed+=this._delta}reset(){this._delta=0,this._elapsed=0,this.currentTime=performance.now()-this.startTime}getDelta(){return this.delta}getElapsed(){return this.elapsed}handleEvent(e){document.hidden||(this.currentTime=performance.now()-this.startTime)}dispose(){this.autoReset=!1}},Mk=(()=>{let e=new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),t=new Float32Array([0,0,2,0,0,2]),n=new $e;return n.setAttribute(`position`,new Qe(e,3)),n.setAttribute(`uv`,new Qe(t,2)),n})(),Nk=class e{static get fullscreenGeometry(){return Mk}constructor(e=`Pass`,t=new bt,n=new et){this.name=e,this.renderer=null,this.scene=t,this.camera=n,this.screen=null,this.rtt=!0,this.needsSwap=!0,this.needsDepthTexture=!1,this.enabled=!0}get renderToScreen(){return!this.rtt}set renderToScreen(e){if(this.rtt===e){let t=this.fullscreenMaterial;t!==null&&(t.needsUpdate=!0),this.rtt=!e}}set mainScene(e){}set mainCamera(e){}setRenderer(e){this.renderer=e}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}get fullscreenMaterial(){return this.screen===null?null:this.screen.material}set fullscreenMaterial(t){let n=this.screen;n===null?(n=new At(e.fullscreenGeometry,t),n.frustumCulled=!1,this.scene===null&&(this.scene=new bt),this.scene.add(n),this.screen=n):n.material=t}getFullscreenMaterial(){return this.fullscreenMaterial}setFullscreenMaterial(e){this.fullscreenMaterial=e}getDepthTexture(){return null}setDepthTexture(e,t=Ze){}render(e,t,n,r,i){throw Error(`Render method not implemented!`)}setSize(e,t){}initialize(e,t,n){}dispose(){for(let t of Object.keys(this)){let n=this[t],r=n instanceof yn||n instanceof Ot||n instanceof Ht||n instanceof e;r&&this[t].dispose()}this.fullscreenMaterial!==null&&this.fullscreenMaterial.dispose()}},Pk=class extends Nk{constructor(){super(`ClearMaskPass`,null,null),this.needsSwap=!1}render(e,t,n,r,i){let a=e.state.buffers.stencil;a.setLocked(!1),a.setTest(!1)}},Fk=`#include + `;await t.execute(Q`CREATE SCHEMA IF NOT EXISTS ${Q.identifier(i)}`),await t.execute(a);let o=await t.all(Q`select id, hash, created_at from ${Q.identifier(i)}.${Q.identifier(r)} order by created_at desc limit 1`),s=o[0];await t.transaction(async t=>{for await(let n of e)if(!s||Number(s.created_at)t[e]!==void 0||n[e]?.onUpdateFn!==void 0),i=r.length;return Q.join(r.flatMap((e,r)=>{let a=n[e],o=t[e]??Q.param(a.onUpdateFn(),a),s=Q`${Q.identifier(this.casing.getColumnCasing(a))} = ${o}`;return r{let i=[];if(Y(e,Z.Aliased)&&e.isSelectionField)i.push(Q.identifier(e.fieldAlias));else if(Y(e,Z.Aliased)||Y(e,Z)){let n=Y(e,Z.Aliased)?e.sql:e;t?i.push(new Z(n.queryChunks.map(e=>Y(e,HE)?Q.identifier(this.casing.getColumnCasing(e)):e))):i.push(n),Y(e,Z.Aliased)&&i.push(Q` as ${Q.identifier(e.fieldAlias)}`)}else Y(e,AE)&&(t?i.push(Q.identifier(this.casing.getColumnCasing(e))):i.push(e));return ro?.some(({alias:t})=>t===(e[X.Symbol.IsAlias]?oD(e):e[X.Symbol.BaseName])))(e.field.table)){let t=oD(e.field.table);throw Error(`Your "${e.path.join(`->`)}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}let h=!o||o.length===0,ee=this.buildWithCTE(e),te;f&&(te=f===!0?Q` distinct`:Q` distinct on (${Q.join(f.on,Q`, `)})`);let ne=this.buildSelection(m,{isSingleTable:h}),re=this.buildFromTable(a),ie=this.buildJoins(o),ae=r?Q` where ${r}`:void 0,oe=i?Q` having ${i}`:void 0,se;s&&s.length>0&&(se=Q` order by ${Q.join(s,Q`, `)}`);let ce;c&&c.length>0&&(ce=Q` group by ${Q.join(c,Q`, `)}`);let le=typeof l==`object`||typeof l==`number`&&l>=0?Q` limit ${l}`:void 0,ue=u?Q` offset ${u}`:void 0,de=Q.empty();if(d){let e=Q` for ${Q.raw(d.strength)}`;d.config.of&&e.append(Q` of ${Q.join(Array.isArray(d.config.of)?d.config.of:[d.config.of],Q`, `)}`),d.config.noWait?e.append(Q` nowait`):d.config.skipLocked&&e.append(Q` skip locked`),de.append(e)}let fe=Q`${ee}select${te} ${ne} from ${re}${ie}${ae}${ce}${oe}${se}${le}${ue}${de}`;return p.length>0?this.buildSetOperations(fe,p):fe}buildSetOperations(e,t){let[n,...r]=t;if(!n)throw Error(`Cannot pass undefined values to any set operator`);return r.length===0?this.buildSetOperationQuery({leftSelect:e,setOperator:n}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:n}),r)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:n,rightSelect:r,limit:i,orderBy:a,offset:o}}){let s=Q`(${e.getSQL()}) `,c=Q`(${r.getSQL()})`,l;if(a&&a.length>0){let e=[];for(let t of a)if(Y(t,HE))e.push(Q.identifier(t.name));else if(Y(t,Z)){for(let e=0;e=0?Q` limit ${i}`:void 0,d=Q.raw(`${t} ${n?`all `:``}`),f=o?Q` offset ${o}`:void 0;return Q`${s}${d}${c}${l}${u}${f}`}buildInsertQuery({table:e,values:t,onConflict:n,returning:r,withList:i,select:a,overridingSystemValue_:o}){let s=[],c=e[X.Symbol.Columns],l=Object.entries(c).filter(([e,t])=>!t.shouldDisableInsert()),u=l.map(([,e])=>Q.identifier(this.casing.getColumnCasing(e)));if(a){let e=t;Y(e,Z)?s.push(e):s.push(e.getSQL())}else{let e=t;s.push(Q.raw(`values `));for(let[t,n]of e.entries()){let r=[];for(let[e,t]of l){let i=n[e];if(i===void 0||Y(i,hD)&&i.value===void 0)if(t.defaultFn!==void 0){let e=t.defaultFn(),n=Y(e,Z)?e:Q.param(e,t);r.push(n)}else if(!t.default&&t.onUpdateFn!==void 0){let e=t.onUpdateFn(),n=Y(e,Z)?e:Q.param(e,t);r.push(n)}else r.push(Q`default`);else r.push(i)}s.push(r),t({dbKey:t.name,tsKey:e,field:CD(t,o),relationTableTsKey:void 0,isJson:!1,selection:[]}))}else{let r=Object.fromEntries(Object.entries(i.columns).map(([e,t])=>[e,CD(t,o)]));if(a.where){let e=typeof a.where==`function`?a.where(r,OO()):a.where;p=e&&TD(e,o)}let s=[],c=[];if(a.columns){let e=!1;for(let[t,n]of Object.entries(a.columns)){if(n===void 0)continue;t in i.columns&&(!e&&n===!0&&(e=!0),c.push(t))}c.length>0&&(c=e?c.filter(e=>a.columns?.[e]===!0):Object.keys(i.columns).filter(e=>!c.includes(e)))}else c=Object.keys(i.columns);for(let e of c){let t=i.columns[e];s.push({tsKey:e,value:t})}let h=[];a.with&&(h=Object.entries(a.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:i.relations[e]})));let ee;if(a.extras){ee=typeof a.extras==`function`?a.extras(r,{sql:Q}):a.extras;for(let[e,t]of Object.entries(ee))s.push({tsKey:e,value:wD(t,o)})}for(let{tsKey:e,value:t}of s)l.push({dbKey:Y(t,Z.Aliased)?t.fieldAlias:i.columns[e].name,tsKey:e,field:Y(t,AE)?CD(t,o):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let te=typeof a.orderBy==`function`?a.orderBy(r,kO()):a.orderBy??[];Array.isArray(te)||(te=[te]),f=te.map(e=>Y(e,AE)?CD(e,o):TD(e,o)),u=a.limit,d=a.offset;for(let{tsKey:r,queryConfig:i,relation:a}of h){let s=NO(t,n,a),c=sD(a.referencedTable),u=n[c],d=`${o}_${r}`,f=rO(...s.fields.map((e,t)=>tO(CD(s.references[t],d),CD(e,o)))),p=this.buildRelationalQueryWithoutPK({fullSchema:e,schema:t,tableNamesMap:n,table:e[u],tableConfig:t[u],queryConfig:Y(a,EO)?i===!0?{limit:1}:{...i,limit:1}:i,tableAlias:d,joinOn:f,nestedQueryRelation:a}),h=Q`${Q.identifier(d)}.${Q.identifier(`data`)}`.as(r);m.push({on:Q`true`,table:new JE(p.sql,{},d),alias:d,joinType:`left`,lateral:!0}),l.push({dbKey:r,tsKey:r,field:h,relationTableTsKey:u,isJson:!0,selection:p.selection})}}if(l.length===0)throw new ED({message:`No fields selected for table "${i.tsName}" ("${o}")`});let h;if(p=rO(c,p),s){let e=Q`json_build_array(${Q.join(l.map(({field:e,tsKey:t,isJson:n})=>n?Q`${Q.identifier(`${o}_${t}`)}.${Q.identifier(`data`)}`:Y(e,Z.Aliased)?e.sql:e),Q`, `)})`;Y(s,DO)&&(e=Q`coalesce(json_agg(${e}${f.length>0?Q` order by ${Q.join(f,Q`, `)}`:void 0}), '[]'::json)`);let t=[{dbKey:`data`,tsKey:`data`,field:e.as(`data`),isJson:!0,relationTableTsKey:i.tsName,selection:l}],n=u!==void 0||d!==void 0||f.length>0;n?(h=this.buildSelectQuery({table:SD(r,o),fields:{},fieldsFlat:[{path:[],field:Q.raw(`*`)}],where:p,limit:u,offset:d,orderBy:f,setOperators:[]}),p=void 0,u=void 0,d=void 0,f=[]):h=SD(r,o),h=this.buildSelectQuery({table:Y(h,ZD)?h:new JE(h,{},o),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:Y(e,AE)?CD(e,o):e})),joins:m,where:p,limit:u,offset:d,orderBy:f,setOperators:[]})}else h=this.buildSelectQuery({table:SD(r,o),fields:{},fieldsFlat:l.map(({field:e})=>({path:[],field:Y(e,AE)?CD(e,o):e})),joins:m,where:p,limit:u,offset:d,orderBy:f,setOperators:[]});return{tableTsKey:i.tsName,sql:h,selection:l}}},UO=class{static[J]=`TypedQueryBuilder`;getSelectedFields(){return this._.selectedFields}},WO=class{static[J]=`PgSelectBuilder`;fields;session;dialect;withList=[];distinct;constructor(e){this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,e.withList&&(this.withList=e.withList),this.distinct=e.distinct}authToken;setToken(e){return this.authToken=e,this}from(e){let t=!!this.fields,n=e,r;return r=this.fields?this.fields:Y(n,JE)?Object.fromEntries(Object.keys(n._.selectedFields).map(e=>[e,n[e]])):Y(n,VO)?n[ZE].selectedFields:Y(n,Z)?{}:LD(n),new KO({table:n,fields:r,isPartialSelect:t,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct}).setToken(this.authToken)}},GO=class extends UO{static[J]=`PgSelectQueryBuilder`;_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:e,fields:t,isPartialSelect:n,session:r,dialect:i,withList:a,distinct:o}){super(),this.config={withList:a,table:e,fields:{...t},distinct:o,setOperators:[]},this.isPartialSelect=n,this.session=r,this.dialect=i,this._={selectedFields:t,config:this.config},this.tableName=RD(e),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{};for(let t of nk(e))this.usedTables.add(t)}getUsedTables(){return[...this.usedTables]}createJoin(e,t){return(n,r)=>{let i=this.tableName,a=RD(n);for(let e of nk(n))this.usedTables.add(e);if(typeof a==`string`&&this.config.joins?.some(e=>e.alias===a))throw Error(`Alias "${a}" is already used in this query`);if(!this.isPartialSelect&&(Object.keys(this.joinsNotNullableMap).length===1&&typeof i==`string`&&(this.config.fields={[i]:this.config.fields}),typeof a==`string`&&!Y(n,Z))){let e=Y(n,JE)?n._.selectedFields:Y(n,yD)?n[ZE].selectedFields:n[X.Symbol.Columns];this.config.fields[a]=e}if(typeof r==`function`&&(r=r(new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,table:n,joinType:e,alias:a,lateral:t}),typeof a==`string`)switch(e){case`left`:this.joinsNotNullableMap[a]=!1;break;case`right`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!0;break;case`cross`:case`inner`:this.joinsNotNullableMap[a]=!0;break;case`full`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!1;break}return this}}leftJoin=this.createJoin(`left`,!1);leftJoinLateral=this.createJoin(`left`,!0);rightJoin=this.createJoin(`right`,!1);innerJoin=this.createJoin(`inner`,!1);innerJoinLateral=this.createJoin(`inner`,!0);fullJoin=this.createJoin(`full`,!1);crossJoin=this.createJoin(`cross`,!1);crossJoinLateral=this.createJoin(`cross`,!0);createSetOperator(e,t){return n=>{let r=typeof n==`function`?n(JO()):n;if(!PD(this.getSelectedFields(),r.getSelectedFields()))throw Error(`Set operator error (union / intersect / except): selected fields are not the same or are in a different order`);return this.config.setOperators.push({type:e,isAll:t,rightSelect:r}),this}}union=this.createSetOperator(`union`,!1);unionAll=this.createSetOperator(`union`,!0);intersect=this.createSetOperator(`intersect`,!1);intersectAll=this.createSetOperator(`intersect`,!0);except=this.createSetOperator(`except`,!1);exceptAll=this.createSetOperator(`except`,!0);addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.where=e,this}having(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.having=e,this}groupBy(...e){if(typeof e[0]==`function`){let t=e[0](new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`alias`,sqlBehavior:`sql`})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if(typeof e[0]==`function`){let t=e[0](new Proxy(this.config.fields,new IO({sqlAliasedBehavior:`alias`,sqlBehavior:`sql`}))),n=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=n:this.config.orderBy=n}else{let t=e;this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=t:this.config.orderBy=t}return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}for(e,t={}){return this.config.lockingClause={strength:e,config:t},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){let t=[];if(t.push(...nk(this.config.table)),this.config.joins)for(let e of this.config.joins)t.push(...nk(e.table));return new Proxy(new JE(this.getSQL(),this.config.fields,e,!1,[...new Set(t)]),new IO({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`}))}getSelectedFields(){return new Proxy(this.config.fields,new IO({alias:this.tableName,sqlAliasedBehavior:`alias`,sqlBehavior:`error`}))}$dynamic(){return this}$withCache(e){return this.cacheConfig=e===void 0?{config:{},enable:!0,autoInvalidate:!0}:e===!1?{enable:!1}:{enable:!0,autoInvalidate:!0,...e},this}},KO=class extends GO{static[J]=`PgSelect`;_prepare(e){let{session:t,config:n,dialect:r,joinsNotNullableMap:i,authToken:a,cacheConfig:o,usedTables:s}=this;if(!t)throw Error(`Cannot execute a query on a query builder. Please use a database instance instead.`);let{fields:c}=n;return XE.startActiveSpan(`drizzle.prepareQuery`,()=>{let n=ND(c),l=t.prepareQuery(r.sqlToQuery(this.getSQL()),n,e,!0,void 0,{type:`select`,tables:[...s]},o);return l.joinsNotNullableMap=i,l.setToken(a)})}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))};ID(KO,[MD]);function qO(e,t){return(n,r,...i)=>{let a=[r,...i].map(n=>({type:e,isAll:t,rightSelect:n}));for(let e of a)if(!PD(n.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error(`Set operator error (union / intersect / except): selected fields are not the same or are in a different order`);return n.addSetOperators(a)}}const JO=()=>({union:YO,unionAll:XO,intersect:ZO,intersectAll:QO,except:$O,exceptAll:ek}),YO=qO(`union`,!1),XO=qO(`union`,!0),ZO=qO(`intersect`,!1),QO=qO(`intersect`,!0),$O=qO(`except`,!1),ek=qO(`except`,!0);var tk=class{static[J]=`PgQueryBuilder`;dialect;dialectConfig;constructor(e){this.dialect=Y(e,HO)?e:void 0,this.dialectConfig=Y(e,HO)?void 0:e}$with=(e,t)=>{let n=this,r=r=>(typeof r==`function`&&(r=r(n)),new Proxy(new YE(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new IO({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})));return{as:r}};with(...e){let t=this;function n(n){return new WO({fields:n??void 0,session:void 0,dialect:t.getDialect(),withList:e})}function r(e){return new WO({fields:e??void 0,session:void 0,dialect:t.getDialect(),distinct:!0})}function i(e,n){return new WO({fields:n??void 0,session:void 0,dialect:t.getDialect(),distinct:{on:e}})}return{select:n,selectDistinct:r,selectDistinctOn:i}}select(e){return new WO({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new WO({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(e,t){return new WO({fields:t??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:e}})}getDialect(){return this.dialect||=new HO(this.dialectConfig),this.dialect}};function nk(e){return Y(e,ZD)?[e[QE]?`${e[QE]}.${e[X.Symbol.BaseName]}`:e[X.Symbol.BaseName]]:Y(e,JE)?e._.usedTables??[]:Y(e,Z)?e.usedTables??[]:[]}var rk=class extends MD{constructor(e,t,n,r){super(),this.session=t,this.dialect=n,this.config={table:e,withList:r}}static[J]=`PgDelete`;config;cacheConfig;where(e){return this.config.where=e,this}returning(e=this.config.table[X.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=ND(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return XE.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`delete`,tables:nk(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new IO({alias:oD(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},ik=class{constructor(e,t,n,r,i){this.table=e,this.session=t,this.dialect=n,this.withList=r,this.overridingSystemValue_=i}static[J]=`PgInsertBuilder`;authToken;setToken(e){return this.authToken=e,this}overridingSystemValue(){return this.overridingSystemValue_=!0,this}values(e){if(e=Array.isArray(e)?e:[e],e.length===0)throw Error(`values() must be called with at least one value`);let t=e.map(e=>{let t={},n=this.table[X.Symbol.Columns];for(let r of Object.keys(e)){let i=e[r];t[r]=Y(i,Z)?i:new hD(i,n[r])}return t});return new ak(this.table,t,this.session,this.dialect,this.withList,!1,this.overridingSystemValue_).setToken(this.authToken)}select(e){let t=typeof e==`function`?e(new tk):e;if(!Y(t,Z)&&!PD(this.table[$E],t._.selectedFields))throw Error(`Insert select error: selected fields are not the same or are in a different order compared to the table definition`);return new ak(this.table,t,this.session,this.dialect,this.withList,!0)}},ak=class extends MD{constructor(e,t,n,r,i,a,o){super(),this.session=n,this.dialect=r,this.config={table:e,values:t,withList:i,select:a,overridingSystemValue_:o}}static[J]=`PgInsert`;config;cacheConfig;returning(e=this.config.table[X.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=ND(e),this}onConflictDoNothing(e={}){if(e.target===void 0)this.config.onConflict=Q`do nothing`;else{let t=``;t=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(e))).join(`,`):this.dialect.escapeName(this.dialect.casing.getColumnCasing(e.target));let n=e.where?Q` where ${e.where}`:void 0;this.config.onConflict=Q`(${Q.raw(t)})${n} do nothing`}return this}onConflictDoUpdate(e){if(e.where&&(e.targetWhere||e.setWhere))throw Error(`You cannot use both "where" and "targetWhere"/"setWhere" at the same time - "where" is deprecated, use "targetWhere" or "setWhere" instead.`);let t=e.where?Q` where ${e.where}`:void 0,n=e.targetWhere?Q` where ${e.targetWhere}`:void 0,r=e.setWhere?Q` where ${e.setWhere}`:void 0,i=this.dialect.buildUpdateSet(this.config.table,FD(this.config.table,e.set)),a=``;return a=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(e))).join(`,`):this.dialect.escapeName(this.dialect.casing.getColumnCasing(e.target)),this.config.onConflict=Q`(${Q.raw(a)})${n} do update set ${i}${t}${r}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return XE.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`insert`,tables:nk(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new IO({alias:oD(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},ok=class extends MD{constructor(e,t,n){super(),this.session=t,this.dialect=n,this.config={view:e}}static[J]=`PgRefreshMaterializedView`;config;concurrently(){if(this.config.withNoData!==void 0)throw Error(`Cannot use concurrently and withNoData together`);return this.config.concurrently=!0,this}withNoData(){if(this.config.concurrently!==void 0)throw Error(`Cannot use concurrently and withNoData together`);return this.config.withNoData=!0,this}getSQL(){return this.dialect.buildRefreshMaterializedViewQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return XE.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,e,!0))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))},sk=class{constructor(e,t,n,r){this.table=e,this.session=t,this.dialect=n,this.withList=r}static[J]=`PgUpdateBuilder`;authToken;setToken(e){return this.authToken=e,this}set(e){return new ck(this.table,FD(this.table,e),this.session,this.dialect,this.withList).setToken(this.authToken)}},ck=class extends MD{constructor(e,t,n,r,i){super(),this.session=n,this.dialect=r,this.config={set:t,table:e,withList:i,joins:[]},this.tableName=RD(e),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{}}static[J]=`PgUpdate`;config;tableName;joinsNotNullableMap;cacheConfig;from(e){let t=e,n=RD(t);return typeof n==`string`&&(this.joinsNotNullableMap[n]=!0),this.config.from=t,this}getTableLikeFields(e){return Y(e,ZD)?e[X.Symbol.Columns]:Y(e,JE)?e._.selectedFields:e[ZE].selectedFields}createJoin(e){return(t,n)=>{let r=RD(t);if(typeof r==`string`&&this.config.joins.some(e=>e.alias===r))throw Error(`Alias "${r}" is already used in this query`);if(typeof n==`function`){let e=this.config.from&&!Y(this.config.from,Z)?this.getTableLikeFields(this.config.from):void 0;n=n(new Proxy(this.config.table[X.Symbol.Columns],new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})),e&&new Proxy(e,new IO({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))}if(this.config.joins.push({on:n,table:t,joinType:e,alias:r}),typeof r==`string`)switch(e){case`left`:this.joinsNotNullableMap[r]=!1;break;case`right`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[r]=!0;break;case`inner`:this.joinsNotNullableMap[r]=!0;break;case`full`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[r]=!1;break}return this}}leftJoin=this.createJoin(`left`);rightJoin=this.createJoin(`right`);innerJoin=this.createJoin(`inner`);fullJoin=this.createJoin(`full`);where(e){return this.config.where=e,this}returning(e){if(!e&&(e=Object.assign({},this.config.table[X.Symbol.Columns]),this.config.from)){let t=RD(this.config.from);if(typeof t==`string`&&this.config.from&&!Y(this.config.from,Z)){let n=this.getTableLikeFields(this.config.from);e[t]=n}for(let t of this.config.joins){let n=RD(t.table);if(typeof n==`string`&&!Y(t.table,Z)){let r=this.getTableLikeFields(t.table);e[n]=r}}}return this.config.returningFields=e,this.config.returning=ND(e),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){let t=this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`insert`,tables:nk(this.config.table)},this.cacheConfig);return t.joinsNotNullableMap=this.joinsNotNullableMap,t}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>this._prepare().execute(e,this.authToken);getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new IO({alias:oD(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},lk=class e extends Z{constructor(t){super(e.buildEmbeddedCount(t.source,t.filters).queryChunks),this.params=t,this.mapWith(Number),this.session=t.session,this.sql=e.buildCount(t.source,t.filters)}sql;token;static[J]=`PgCountBuilder`;[Symbol.toStringTag]=`PgCountBuilder`;session;static buildEmbeddedCount(e,t){return Q`(select count(*) from ${e}${Q.raw(` where `).if(t)}${t})`}static buildCount(e,t){return Q`select count(*) as count from ${e}${Q.raw(` where `).if(t)}${t};`}setToken(e){return this.token=e,this}then(e,t){return Promise.resolve(this.session.count(this.sql,this.token)).then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return this.then(t=>(e?.(),t),t=>{throw e?.(),t})}},uk=class{constructor(e,t,n,r,i,a,o){this.fullSchema=e,this.schema=t,this.tableNamesMap=n,this.table=r,this.tableConfig=i,this.dialect=a,this.session=o}static[J]=`PgRelationalQueryBuilder`;findMany(e){return new dk(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},`many`)}findFirst(e){return new dk(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},`first`)}},dk=class extends MD{constructor(e,t,n,r,i,a,o,s,c){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=n,this.table=r,this.tableConfig=i,this.dialect=a,this.session=o,this.config=s,this.mode=c}static[J]=`PgRelationalQuery`;_prepare(e){return XE.startActiveSpan(`drizzle.prepareQuery`,()=>{let{query:t,builtQuery:n}=this._toSQL();return this.session.prepareQuery(n,void 0,e,!0,(e,n)=>{let r=e.map(e=>FO(this.schema,this.tableConfig,e,t.selection,n));return this.mode===`first`?r[0]:r})})}prepare(e){return this._prepare(e)}_getQuery(){return this.dialect.buildRelationalQueryWithoutPK({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}getSQL(){return this._getQuery().sql}_toSQL(){let e=this._getQuery(),t=this.dialect.sqlToQuery(e.sql);return{query:e,builtQuery:t}}toSQL(){return this._toSQL().builtQuery}authToken;setToken(e){return this.authToken=e,this}execute(){return XE.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(void 0,this.authToken))}},fk=class extends MD{constructor(e,t,n,r){super(),this.execute=e,this.sql=t,this.query=n,this.mapBatchResult=r}static[J]=`PgRaw`;getSQL(){return this.sql}getQuery(){return this.query}mapResult(e,t){return t?this.mapBatchResult(e):e}_prepare(){return this}isResponseInArrayMode(){return!1}},pk=class{constructor(e,t,n){if(this.dialect=e,this.session=t,this._=n?{schema:n.schema,fullSchema:n.fullSchema,tableNamesMap:n.tableNamesMap,session:t}:{schema:void 0,fullSchema:{},tableNamesMap:{},session:t},this.query={},this._.schema)for(let[r,i]of Object.entries(this._.schema))this.query[r]=new uk(n.fullSchema,this._.schema,this._.tableNamesMap,n.fullSchema[r],i,e,t);this.$cache={invalidate:async e=>{}}}static[J]=`PgDatabase`;query;$with=(e,t)=>{let n=this,r=r=>(typeof r==`function`&&(r=r(new tk(n.dialect))),new Proxy(new YE(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new IO({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})));return{as:r}};$count(e,t){return new lk({source:e,filters:t,session:this.session})}$cache;with(...e){let t=this;function n(n){return new WO({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e})}function r(n){return new WO({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}function i(n,r){return new WO({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:{on:n}})}function a(n){return new sk(n,t.session,t.dialect,e)}function o(n){return new ik(n,t.session,t.dialect,e)}function s(n){return new rk(n,t.session,t.dialect,e)}return{select:n,selectDistinct:r,selectDistinctOn:i,update:a,insert:o,delete:s}}select(e){return new WO({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new WO({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(e,t){return new WO({fields:t??void 0,session:this.session,dialect:this.dialect,distinct:{on:e}})}update(e){return new sk(e,this.session,this.dialect)}insert(e){return new ik(e,this.session,this.dialect)}delete(e){return new rk(e,this.session,this.dialect)}refreshMaterializedView(e){return new ok(e,this.session,this.dialect)}authToken;execute(e){let t=typeof e==`string`?Q.raw(e):e.getSQL(),n=this.dialect.sqlToQuery(t),r=this.session.prepareQuery(n,void 0,void 0,!1);return new fk(()=>r.execute(void 0,this.authToken),t,n,e=>r.mapResult(e,!0))}transaction(e,t){return this.session.transaction(e,t)}},mk=class{static[J]=`Cache`},hk=class extends mk{strategy(){return`all`}static[J]=`NoopCache`;async get(e){}async put(e,t,n,r){}async onMutate(e){}};async function gk(e,t){let n=`${e}-${JSON.stringify(t)}`,r=new TextEncoder,i=r.encode(n),a=await crypto.subtle.digest(`SHA-256`,i),o=[...new Uint8Array(a)],s=o.map(e=>e.toString(16).padStart(2,`0`)).join(``);return s}var _k=class{constructor(e,t,n,r){this.query=e,this.cache=t,this.queryMetadata=n,this.cacheConfig=r,t&&t.strategy()===`all`&&r===void 0&&(this.cacheConfig={enable:!0,autoInvalidate:!0}),this.cacheConfig?.enable||(this.cacheConfig=void 0)}authToken;getQuery(){return this.query}mapResult(e,t){return e}setToken(e){return this.authToken=e,this}static[J]=`PgPreparedQuery`;joinsNotNullableMap;async queryWithCache(e,t,n){if(this.cache===void 0||Y(this.cache,hk)||this.queryMetadata===void 0)try{return await n()}catch(n){throw new DD(e,t,n)}if(this.cacheConfig&&!this.cacheConfig.enable)try{return await n()}catch(n){throw new DD(e,t,n)}if((this.queryMetadata.type===`insert`||this.queryMetadata.type===`update`||this.queryMetadata.type===`delete`)&&this.queryMetadata.tables.length>0)try{let[e]=await Promise.all([n(),this.cache.onMutate({tables:this.queryMetadata.tables})]);return e}catch(n){throw new DD(e,t,n)}if(!this.cacheConfig)try{return await n()}catch(n){throw new DD(e,t,n)}if(this.queryMetadata.type===`select`){let r=await this.cache.get(this.cacheConfig.tag??await gk(e,t),this.queryMetadata.tables,this.cacheConfig.tag!==void 0,this.cacheConfig.autoInvalidate);if(r===void 0){let r;try{r=await n()}catch(n){throw new DD(e,t,n)}return await this.cache.put(this.cacheConfig.tag??await gk(e,t),r,this.cacheConfig.autoInvalidate?this.queryMetadata.tables:[],this.cacheConfig.tag!==void 0,this.cacheConfig.config),r}return r}try{return await n()}catch(n){throw new DD(e,t,n)}}},vk=class{constructor(e){this.dialect=e}static[J]=`PgSession`;execute(e,t){return XE.startActiveSpan(`drizzle.operation`,()=>{let n=XE.startActiveSpan(`drizzle.prepareQuery`,()=>this.prepareQuery(this.dialect.sqlToQuery(e),void 0,void 0,!1));return n.setToken(t).execute(void 0,t)})}all(e){return this.prepareQuery(this.dialect.sqlToQuery(e),void 0,void 0,!1).all()}async count(e,t){let n=await this.execute(e,t);return Number(n[0].count)}},yk=class extends pk{constructor(e,t,n,r=0){super(e,t,n),this.schema=n,this.nestedIndex=r}static[J]=`PgTransaction`;rollback(){throw new OD}getTransactionConfigSQL(e){let t=[];return e.isolationLevel&&t.push(`isolation level ${e.isolationLevel}`),e.accessMode&&t.push(e.accessMode),typeof e.deferrable==`boolean`&&t.push(e.deferrable?`deferrable`:`not deferrable`),Q.raw(t.join(` `))}setTransaction(e){return this.session.execute(Q`set transaction ${this.getTransactionConfigSQL(e)}`)}};function bk(e){return typeof e==`string`&&/^true$/i.test(e)}function xk(e){let t={scheme:`duckdb-wasm:`},n=new URL(e);if(!n.protocol.startsWith(`duckdb-wasm:`))throw Error(`Expected scheme to be "duckdb-wasm:" but got "${n.protocol}"`);n.searchParams.get(`bundles`)===`import-url`&&(t.bundles=`import-url`);let r=n.searchParams.get(`logger`);r&&bk(r)&&(t.logger=!0);let i=n.searchParams.get(`storage`);switch(i){case EE.ORIGIN_PRIVATE_FS:{n.host.length>0&&console.warn(`Host "${n.host}" will be ignored while using Origin Private FS`);let e=n.searchParams.get(`write`);t.storage={type:EE.ORIGIN_PRIVATE_FS,path:n.pathname.startsWith(`/`)?n.pathname.slice(1):n.pathname,...e&&bk(e)&&{accessMode:M_.READ_WRITE}};break}case null:break;default:console.warn(`Unknown storage type "${i}"`);break}return t}var Sk=class extends _k{static[J]=`DuckDBWasmPreparedQuery`;constructor(e,t,n,r,i,a){super({sql:t,params:n}),this.client=e,this.queryString=t,this.params=n,this.logger=r,this.fields=i,this.customResultMapper=a}async execute(e={}){let t=_D(this.params,e);this.logger.logQuery(this.queryString,t);let{fields:n,queryString:r,client:i,customResultMapper:a}=this,o=await i;return o.query(r,t)}async all(e={}){let t=_D(this.params,e);this.logger.logQuery(this.queryString,t);let n=await this.client;return n.query(this.queryString,t)}},Ck=class e extends vk{static[J]=`DuckDBWasmSession`;logger;constructor(e,t,n,r={}){super(t),this.client=e,this.schema=n,this.options=r,this.logger=r.logger??new jD}prepareQuery(e,t,n,r,i){return new Sk(this.client,e.sql,e.params,this.logger,t,i)}async query(e,t){this.logger.logQuery(e,t);let n=await this.client;return n.query(e,t)}async queryObjects(e,t){this.logger.logQuery(e,t);let n=await this.client;return n.query(e,t)}transaction(t,n){return OE(this.client,async r=>{let i=new e(r,this.dialect,this.schema,this.options),a=new wk(this.dialect,i,this.schema);return n&&await a.setTransaction(n),t(a)})}},wk=class e extends yk{static[J]=`DuckDBWasmTransaction`;dialect;session;constructor(e,t,n,r=0){super(e,t,n,r),this.dialect=e,this.session=t}async transaction(t){return kE(this.session.client,``,async n=>{let r=new Ck(n,this.dialect,this.schema,this.session.options),i=new e(this.dialect,r,this.schema);return t(i)})}},Tk=class extends pk{static[J]=`DuckDBWasmDatabase`};function Ek(e,t={}){let n=new HO({casing:t.casing}),r;t.logger===!0?r=new AD:t.logger!==!1&&(r=t.logger);let i;if(t.schema){let e=AO(t.schema,PO);i={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=new Ck(e,n,i,{logger:r}),o=new Tk(n,a,i);return o.$client=e,o}function Dk(e,t){let n=xk(e),r;if(n.bundles===`import-url`){let e=async()=>{let e=await tE();switch(e){case`browser`:return(await ae(async()=>{let{getImportUrlBundles:e}=await import(`./import-url-browser-agSP1LkN.js`);return{getImportUrlBundles:e}},__vite__mapDeps([4,5,6]))).getImportUrlBundles();case`node`:return await(await ae(async()=>{let{getImportUrlBundles:e}=await import(`./import-url-node-DsdDfn-V.js`);return{getImportUrlBundles:e}},__vite__mapDeps([7,6]))).getImportUrlBundles();default:throw Error(`Unsupported environment: "${e}"`)}};r=e()}else{let e=async()=>{let e=await tE();switch(e){case`browser`:return(await ae(async()=>{let{getBundles:e}=await import(`./default-browser-DBEOGewc.js`);return{getBundles:e}},[])).getBundles();case`node`:return await(await ae(async()=>{let{getBundles:e}=await import(`./default-node-BX8tyNLs.js`);return{getBundles:e}},__vite__mapDeps([3,1,2]))).getBundles();default:throw Error(`Unsupported environment: "${e}"`)}};r=e()}return Ek(DE({bundles:r,logger:n.logger?new z_:void 0,storage:n.storage}),t)}function Ok(...e){if(typeof e[0]==`string`)return Dk(e[0],e[1]);if(zD(e[0])){let{connection:t,client:n,...r}=e[0];if(n)return Ek(n,r);if(typeof t==`string`)return Dk(t,r);if(t===void 0)throw Error(`connection option is required`);return Ek(DE({bundles:t.bundles,logger:t.logger,storage:t.storage}),r)}return Ek(e[0],e[1])}(function(e){function t(e){return Ek({options:{parsers:{},serializers:{}}},e)}e.mock=t})(Ok||={});var kk=1/1e3,Ak=1e3,jk=class{constructor(){this.startTime=performance.now(),this.previousTime=0,this.currentTime=0,this._delta=0,this._elapsed=0,this._fixedDelta=1e3/60,this.timescale=1,this.useFixedDelta=!1,this._autoReset=!1}get autoReset(){return this._autoReset}set autoReset(e){typeof document<`u`&&document.hidden!==void 0&&(e?document.addEventListener(`visibilitychange`,this):document.removeEventListener(`visibilitychange`,this),this._autoReset=e)}get delta(){return this._delta*kk}get fixedDelta(){return this._fixedDelta*kk}set fixedDelta(e){this._fixedDelta=e*Ak}get elapsed(){return this._elapsed*kk}update(e){this.useFixedDelta?this._delta=this.fixedDelta:(this.previousTime=this.currentTime,this.currentTime=(e===void 0?performance.now():e)-this.startTime,this._delta=this.currentTime-this.previousTime),this._delta*=this.timescale,this._elapsed+=this._delta}reset(){this._delta=0,this._elapsed=0,this.currentTime=performance.now()-this.startTime}getDelta(){return this.delta}getElapsed(){return this.elapsed}handleEvent(e){document.hidden||(this.currentTime=performance.now()-this.startTime)}dispose(){this.autoReset=!1}},Mk=(()=>{let e=new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),t=new Float32Array([0,0,2,0,0,2]),n=new et;return n.setAttribute(`position`,new $e(e,3)),n.setAttribute(`uv`,new $e(t,2)),n})(),Nk=class e{static get fullscreenGeometry(){return Mk}constructor(e=`Pass`,t=new St,n=new ge){this.name=e,this.renderer=null,this.scene=t,this.camera=n,this.screen=null,this.rtt=!0,this.needsSwap=!0,this.needsDepthTexture=!1,this.enabled=!0}get renderToScreen(){return!this.rtt}set renderToScreen(e){if(this.rtt===e){let t=this.fullscreenMaterial;t!==null&&(t.needsUpdate=!0),this.rtt=!e}}set mainScene(e){}set mainCamera(e){}setRenderer(e){this.renderer=e}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}get fullscreenMaterial(){return this.screen===null?null:this.screen.material}set fullscreenMaterial(t){let n=this.screen;n===null?(n=new jt(e.fullscreenGeometry,t),n.frustumCulled=!1,this.scene===null&&(this.scene=new St),this.scene.add(n),this.screen=n):n.material=t}getFullscreenMaterial(){return this.fullscreenMaterial}setFullscreenMaterial(e){this.fullscreenMaterial=e}getDepthTexture(){return null}setDepthTexture(e,t=Qe){}render(e,t,n,r,i){throw Error(`Render method not implemented!`)}setSize(e,t){}initialize(e,t,n){}dispose(){for(let t of Object.keys(this)){let n=this[t],r=n instanceof yn||n instanceof kt||n instanceof Ht||n instanceof e;r&&this[t].dispose()}this.fullscreenMaterial!==null&&this.fullscreenMaterial.dispose()}},Pk=class extends Nk{constructor(){super(`ClearMaskPass`,null,null),this.needsSwap=!1}render(e,t,n,r,i){let a=e.state.buffers.stencil;a.setLocked(!1),a.setTest(!1)}},Fk=`#include #include #ifdef FRAMEBUFFER_PRECISION_HIGH uniform mediump sampler2D inputBuffer; @@ -2303,7 +2303,7 @@ uniform lowp sampler2D inputBuffer; uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuffer,vUv);gl_FragColor=opacity*texel; #include #include -}`,Ik=`varying vec2 vUv;void main(){vUv=position.xy*0.5+0.5;gl_Position=vec4(position.xy,1.0,1.0);}`,Lk=class extends xt{constructor(){super({name:`CopyMaterial`,uniforms:{inputBuffer:new cn(null),opacity:new cn(1)},blending:nt,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Fk,vertexShader:Ik})}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}getOpacity(e){return this.uniforms.opacity.value}setOpacity(e){this.uniforms.opacity.value=e}},Rk=class extends Nk{constructor(e,t=!0){super(`CopyPass`),this.fullscreenMaterial=new Lk,this.needsSwap=!1,this.renderTarget=e,e===void 0&&(this.renderTarget=new yn(1,1,{minFilter:St,magFilter:St,stencilBuffer:!1,depthBuffer:!1}),this.renderTarget.texture.name=`CopyPass.Target`),this.autoResize=t}get resize(){return this.autoResize}set resize(e){this.autoResize=e}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}setAutoResizeEnabled(e){this.autoResize=e}render(e,t,n,r,i){this.fullscreenMaterial.inputBuffer=t.texture,e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){this.autoResize&&this.renderTarget.setSize(e,t)}initialize(e,t,n){n!==void 0&&(this.renderTarget.texture.type=n,n===un?e!==null&&e.outputColorSpace===vt&&(this.renderTarget.texture.colorSpace=vt):this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH=`1`)}},zk=new be,Bk=class extends Nk{constructor(e=!0,t=!0,n=!1){super(`ClearPass`,null,null),this.needsSwap=!1,this.color=e,this.depth=t,this.stencil=n,this.overrideClearColor=null,this.overrideClearAlpha=-1}setClearFlags(e,t,n){this.color=e,this.depth=t,this.stencil=n}getOverrideClearColor(){return this.overrideClearColor}setOverrideClearColor(e){this.overrideClearColor=e}getOverrideClearAlpha(){return this.overrideClearAlpha}setOverrideClearAlpha(e){this.overrideClearAlpha=e}render(e,t,n,r,i){let a=this.overrideClearColor,o=this.overrideClearAlpha,s=e.getClearAlpha(),c=a!==null,l=o>=0;c?(e.getClearColor(zk),e.setClearColor(a,l?o:s)):l&&e.setClearAlpha(o),e.setRenderTarget(this.renderToScreen?null:t),e.clear(this.color,this.depth,this.stencil),c?e.setClearColor(zk,s):l&&e.setClearAlpha(s)}},Vk=class extends Nk{constructor(e,t){super(`MaskPass`,e,t),this.needsSwap=!1,this.clearPass=new Bk(!1,!1,!0),this.inverse=!1}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get inverted(){return this.inverse}set inverted(e){this.inverse=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getClearPass(){return this.clearPass}isInverted(){return this.inverted}setInverted(e){this.inverted=e}render(e,t,n,r,i){let a=e.getContext(),o=e.state.buffers,s=this.scene,c=this.camera,l=this.clearPass,u=this.inverted?0:1,d=1-u;o.color.setMask(!1),o.depth.setMask(!1),o.color.setLocked(!0),o.depth.setLocked(!0),o.stencil.setTest(!0),o.stencil.setOp(a.REPLACE,a.REPLACE,a.REPLACE),o.stencil.setFunc(a.ALWAYS,u,4294967295),o.stencil.setClear(d),o.stencil.setLocked(!0),this.clearPass.enabled&&(this.renderToScreen?l.render(e,null):(l.render(e,t),l.render(e,n))),this.renderToScreen?(e.setRenderTarget(null),e.render(s,c)):(e.setRenderTarget(t),e.render(s,c),e.setRenderTarget(n),e.render(s,c)),o.color.setLocked(!1),o.depth.setLocked(!1),o.stencil.setLocked(!1),o.stencil.setFunc(a.EQUAL,1,4294967295),o.stencil.setOp(a.KEEP,a.KEEP,a.KEEP),o.stencil.setLocked(!0)}},Hk=class{constructor(e=null,{depthBuffer:t=!0,stencilBuffer:n=!1,multisampling:r=0,frameBufferType:i}={}){this.renderer=null,this.inputBuffer=this.createBuffer(t,n,i,r),this.outputBuffer=this.inputBuffer.clone(),this.copyPass=new Rk,this.depthTexture=null,this.passes=[],this.timer=new jk,this.autoRenderToScreen=!0,this.setRenderer(e)}get multisampling(){return this.inputBuffer.samples||0}set multisampling(e){let t=this.inputBuffer,n=this.multisampling;n>0&&e>0?(this.inputBuffer.samples=e,this.outputBuffer.samples=e,this.inputBuffer.dispose(),this.outputBuffer.dispose()):n!==e&&(this.inputBuffer.dispose(),this.outputBuffer.dispose(),this.inputBuffer=this.createBuffer(t.depthBuffer,t.stencilBuffer,t.texture.type,e),this.inputBuffer.depthTexture=this.depthTexture,this.outputBuffer=this.inputBuffer.clone())}getTimer(){return this.timer}getRenderer(){return this.renderer}setRenderer(e){if(this.renderer=e,e!==null){let t=e.getSize(new pn),n=e.getContext().getContextAttributes().alpha,r=this.inputBuffer.texture.type;r===un&&e.outputColorSpace===vt&&(this.inputBuffer.texture.colorSpace=vt,this.outputBuffer.texture.colorSpace=vt,this.inputBuffer.dispose(),this.outputBuffer.dispose()),e.autoClear=!1,this.setSize(t.width,t.height);for(let t of this.passes)t.initialize(e,n,r)}}replaceRenderer(e,t=!0){let n=this.renderer,r=n.domElement.parentNode;return this.setRenderer(e),t&&r!==null&&(r.removeChild(n.domElement),r.appendChild(e.domElement)),n}createDepthTexture(){let e=this.depthTexture=new Oe;return this.inputBuffer.depthTexture=e,this.inputBuffer.dispose(),this.inputBuffer.stencilBuffer?(e.format=De,e.type=dn):e.type=fn,e}deleteDepthTexture(){if(this.depthTexture!==null){this.depthTexture.dispose(),this.depthTexture=null,this.inputBuffer.depthTexture=null,this.inputBuffer.dispose();for(let e of this.passes)e.setDepthTexture(null)}}createBuffer(e,t,n,r){let i=this.renderer,a=i===null?new pn:i.getDrawingBufferSize(new pn),o={minFilter:St,magFilter:St,stencilBuffer:t,depthBuffer:e,type:n},s=new yn(a.width,a.height,o);return r>0&&(s.ignoreDepthForMultisampleCopy=!1,s.samples=r),n===un&&i!==null&&i.outputColorSpace===vt&&(s.texture.colorSpace=vt),s.texture.name=`EffectComposer.Buffer`,s.texture.generateMipmaps=!1,s}setMainScene(e){for(let t of this.passes)t.mainScene=e}setMainCamera(e){for(let t of this.passes)t.mainCamera=e}addPass(e,t){let n=this.passes,r=this.renderer,i=r.getDrawingBufferSize(new pn),a=r.getContext().getContextAttributes().alpha,o=this.inputBuffer.texture.type;if(e.setRenderer(r),e.setSize(i.width,i.height),e.initialize(r,a,o),this.autoRenderToScreen&&(n.length>0&&(n[n.length-1].renderToScreen=!1),e.renderToScreen&&(this.autoRenderToScreen=!1)),t===void 0?n.push(e):n.splice(t,0,e),this.autoRenderToScreen&&(n[n.length-1].renderToScreen=!0),e.needsDepthTexture||this.depthTexture!==null)if(this.depthTexture===null){let t=this.createDepthTexture();for(e of n)e.setDepthTexture(t)}else e.setDepthTexture(this.depthTexture)}removePass(e){let t=this.passes,n=t.indexOf(e),r=n!==-1,i=r&&t.splice(n,1).length>0;if(i){if(this.depthTexture!==null){let n=(e,t)=>e||t.needsDepthTexture,r=t.reduce(n,!1);r||(e.getDepthTexture()===this.depthTexture&&e.setDepthTexture(null),this.deleteDepthTexture())}this.autoRenderToScreen&&n===t.length&&(e.renderToScreen=!1,t.length>0&&(t[t.length-1].renderToScreen=!0))}}removeAllPasses(){let e=this.passes;this.deleteDepthTexture(),e.length>0&&(this.autoRenderToScreen&&(e[e.length-1].renderToScreen=!1),this.passes=[])}render(e){let t=this.renderer,n=this.copyPass,r=this.inputBuffer,i=this.outputBuffer,a=!1,o,s,c;e===void 0&&(this.timer.update(),e=this.timer.getDelta());for(let l of this.passes)l.enabled&&(l.render(t,r,i,e,a),l.needsSwap&&(a&&(n.renderToScreen=l.renderToScreen,o=t.getContext(),s=t.state.buffers.stencil,s.setFunc(o.NOTEQUAL,1,4294967295),n.render(t,r,i,e,a),s.setFunc(o.EQUAL,1,4294967295)),c=r,r=i,i=c),l instanceof Vk?a=!0:l instanceof Pk&&(a=!1))}setSize(e,t,n){let r=this.renderer,i=r.getSize(new pn);(e===void 0||t===void 0)&&(e=i.width,t=i.height),(i.width!==e||i.height!==t)&&r.setSize(e,t,n);let a=r.getDrawingBufferSize(new pn);this.inputBuffer.setSize(a.width,a.height),this.outputBuffer.setSize(a.width,a.height);for(let e of this.passes)e.setSize(a.width,a.height)}reset(){this.dispose(),this.autoRenderToScreen=!0}dispose(){for(let e of this.passes)e.dispose();this.passes=[],this.inputBuffer!==null&&this.inputBuffer.dispose(),this.outputBuffer!==null&&this.outputBuffer.dispose(),this.deleteDepthTexture(),this.copyPass.dispose(),this.timer.dispose(),Nk.fullscreenGeometry.dispose()}},Uk={NONE:0,DEPTH:1,CONVOLUTION:2},Wk={FRAGMENT_HEAD:`FRAGMENT_HEAD`,FRAGMENT_MAIN_UV:`FRAGMENT_MAIN_UV`,FRAGMENT_MAIN_IMAGE:`FRAGMENT_MAIN_IMAGE`,VERTEX_HEAD:`VERTEX_HEAD`,VERTEX_MAIN_SUPPORT:`VERTEX_MAIN_SUPPORT`},Gk=class{constructor(){this.shaderParts=new Map([[Wk.FRAGMENT_HEAD,null],[Wk.FRAGMENT_MAIN_UV,null],[Wk.FRAGMENT_MAIN_IMAGE,null],[Wk.VERTEX_HEAD,null],[Wk.VERTEX_MAIN_SUPPORT,null]]),this.defines=new Map,this.uniforms=new Map,this.blendModes=new Map,this.extensions=new Set,this.attributes=Uk.NONE,this.varyings=new Set,this.uvTransformation=!1,this.readDepth=!1,this.colorSpace=wt}},Kk=!1,qk=class{constructor(e=null){this.originalMaterials=new Map,this.material=null,this.materials=null,this.materialsBackSide=null,this.materialsDoubleSide=null,this.materialsFlatShaded=null,this.materialsFlatShadedBackSide=null,this.materialsFlatShadedDoubleSide=null,this.setMaterial(e),this.meshCount=0,this.replaceMaterial=e=>{if(e.isMesh){let t;if(e.material.flatShading)switch(e.material.side){case ke:t=this.materialsFlatShadedDoubleSide;break;case Xe:t=this.materialsFlatShadedBackSide;break;default:t=this.materialsFlatShaded;break}else switch(e.material.side){case ke:t=this.materialsDoubleSide;break;case Xe:t=this.materialsBackSide;break;default:t=this.materials;break}this.originalMaterials.set(e,e.material),e.isSkinnedMesh?e.material=t[2]:e.isInstancedMesh?e.material=t[1]:e.material=t[0],++this.meshCount}}}cloneMaterial(e){if(!(e instanceof xt))return e.clone();let t=e.uniforms,n=new Map;for(let e in t){let r=t[e].value;r.isRenderTargetTexture&&(t[e].value=null,n.set(e,r))}let r=e.clone();for(let e of n)t[e[0]].value=e[1],r.uniforms[e[0]].value=e[1];return r}setMaterial(e){if(this.disposeMaterials(),this.material=e,e!==null){let t=this.materials=[this.cloneMaterial(e),this.cloneMaterial(e),this.cloneMaterial(e)];for(let n of t)n.uniforms=Object.assign({},e.uniforms),n.side=Fe;t[2].skinning=!0,this.materialsBackSide=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.side=Xe,n}),this.materialsDoubleSide=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.side=ke,n}),this.materialsFlatShaded=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n}),this.materialsFlatShadedBackSide=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n.side=Xe,n}),this.materialsFlatShadedDoubleSide=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n.side=ke,n})}}render(e,t,n){let r=e.shadowMap.enabled;if(e.shadowMap.enabled=!1,Kk){let r=this.originalMaterials;this.meshCount=0,t.traverse(this.replaceMaterial),e.render(t,n);for(let e of r)e[0].material=e[1];this.meshCount!==r.size&&r.clear()}else{let r=t.overrideMaterial;t.overrideMaterial=this.material,e.render(t,n),t.overrideMaterial=r}e.shadowMap.enabled=r}disposeMaterials(){if(this.material!==null){let e=this.materials.concat(this.materialsBackSide).concat(this.materialsDoubleSide).concat(this.materialsFlatShaded).concat(this.materialsFlatShadedBackSide).concat(this.materialsFlatShadedDoubleSide);for(let t of e)t.dispose()}}dispose(){this.originalMaterials.clear(),this.disposeMaterials()}static get workaroundEnabled(){return Kk}static set workaroundEnabled(e){Kk=e}},Jk=-1,Yk=class extends Me{constructor(e,t=Jk,n=Jk,r=1){super(),this.resizable=e,this.baseSize=new pn(1,1),this.preferredSize=new pn(t,n),this.target=this.preferredSize,this.s=r,this.effectiveSize=new pn,this.addEventListener(`change`,()=>this.updateEffectiveSize()),this.updateEffectiveSize()}updateEffectiveSize(){let e=this.baseSize,t=this.preferredSize,n=this.effectiveSize,r=this.scale;t.width===Jk?t.height===Jk?n.width=Math.round(e.width*r):n.width=Math.round(t.height*(e.width/Math.max(e.height,1))):n.width=t.width,t.height===Jk?t.width===Jk?n.height=Math.round(e.height*r):n.height=Math.round(t.width/Math.max(e.width/Math.max(e.height,1),1)):n.height=t.height}get width(){return this.effectiveSize.width}set width(e){this.preferredWidth=e}get height(){return this.effectiveSize.height}set height(e){this.preferredHeight=e}getWidth(){return this.width}getHeight(){return this.height}get scale(){return this.s}set scale(e){this.s!==e&&(this.s=e,this.preferredSize.setScalar(Jk),this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getScale(){return this.scale}setScale(e){this.scale=e}get baseWidth(){return this.baseSize.width}set baseWidth(e){this.baseSize.width!==e&&(this.baseSize.width=e,this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getBaseWidth(){return this.baseWidth}setBaseWidth(e){this.baseWidth=e}get baseHeight(){return this.baseSize.height}set baseHeight(e){this.baseSize.height!==e&&(this.baseSize.height=e,this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getBaseHeight(){return this.baseHeight}setBaseHeight(e){this.baseHeight=e}setBaseSize(e,t){(this.baseSize.width!==e||this.baseSize.height!==t)&&(this.baseSize.set(e,t),this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}get preferredWidth(){return this.preferredSize.width}set preferredWidth(e){this.preferredSize.width!==e&&(this.preferredSize.width=e,this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getPreferredWidth(){return this.preferredWidth}setPreferredWidth(e){this.preferredWidth=e}get preferredHeight(){return this.preferredSize.height}set preferredHeight(e){this.preferredSize.height!==e&&(this.preferredSize.height=e,this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getPreferredHeight(){return this.preferredHeight}setPreferredHeight(e){this.preferredHeight=e}setPreferredSize(e,t){(this.preferredSize.width!==e||this.preferredSize.height!==t)&&(this.preferredSize.set(e,t),this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}copy(e){this.s=e.scale,this.baseSize.set(e.baseWidth,e.baseHeight),this.preferredSize.set(e.preferredWidth,e.preferredHeight),this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height)}static get AUTO_SIZE(){return Jk}};Set;var $={SKIP:9,SET:30,ADD:0,ALPHA:1,AVERAGE:2,COLOR:3,COLOR_BURN:4,COLOR_DODGE:5,DARKEN:6,DIFFERENCE:7,DIVIDE:8,DST:9,EXCLUSION:10,HARD_LIGHT:11,HARD_MIX:12,HUE:13,INVERT:14,INVERT_RGB:15,LIGHTEN:16,LINEAR_BURN:17,LINEAR_DODGE:18,LINEAR_LIGHT:19,LUMINOSITY:20,MULTIPLY:21,NEGATION:22,NORMAL:23,OVERLAY:24,PIN_LIGHT:25,REFLECT:26,SATURATION:27,SCREEN:28,SOFT_LIGHT:29,SRC:30,SUBTRACT:31,VIVID_LIGHT:32},Xk=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb+y.rgb,y.a),opacity);}`,Zk=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,y.a*opacity);}`,Qk=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4((x.rgb+y.rgb)*0.5,y.a),opacity);}`,$k=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.xy,xHSL.z));return mix(x,vec4(z,y.a),opacity);}`,eA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb,b=y.rgb;vec3 z=mix(step(0.0,b)*(1.0-min(vec3(1.0),(1.0-a)/b)),vec3(1.0),step(1.0,a));return mix(x,vec4(z,y.a),opacity);}`,tA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb,b=y.rgb;vec3 z=step(0.0,a)*mix(min(vec3(1.0),a/max(1.0-b,1e-9)),vec3(1.0),step(1.0,b));return mix(x,vec4(z,y.a),opacity);}`,nA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(min(x.rgb,y.rgb),y.a),opacity);}`,rA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(abs(x.rgb-y.rgb),y.a),opacity);}`,iA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb/max(y.rgb,1e-12),y.a),opacity);}`,aA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4((x.rgb+y.rgb-2.0*x.rgb*y.rgb),y.a),opacity);}`,oA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=min(x.rgb,1.0);vec3 b=min(y.rgb,1.0);vec3 z=mix(2.0*a*b,1.0-2.0*(1.0-a)*(1.0-b),step(0.5,b));return mix(x,vec4(z,y.a),opacity);}`,sA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(step(1.0,x.rgb+y.rgb),y.a),opacity);}`,cA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.x,xHSL.yz));return mix(x,vec4(z,y.a),opacity);}`,lA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(1.0-y.rgb,y.a),opacity);}`,uA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(y.rgb*(1.0-x.rgb),y.a),opacity);}`,dA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(max(x.rgb,y.rgb),y.a),opacity);}`,fA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(clamp(y.rgb+x.rgb-1.0,0.0,1.0),y.a),opacity);}`,pA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(min(x.rgb+y.rgb,1.0),y.a),opacity);}`,mA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(clamp(2.0*y.rgb+x.rgb-1.0,0.0,1.0),y.a),opacity);}`,hA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.xy,yHSL.z));return mix(x,vec4(z,y.a),opacity);}`,gA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb*y.rgb,y.a),opacity);}`,_A=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(1.0-abs(1.0-x.rgb-y.rgb),y.a),opacity);}`,vA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,opacity);}`,yA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(2.0*y.rgb*x.rgb,1.0-2.0*(1.0-y.rgb)*(1.0-x.rgb),step(0.5,x.rgb));return mix(x,vec4(z,y.a),opacity);}`,bA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 y2=2.0*y.rgb;vec3 z=mix(mix(y2,x.rgb,step(0.5*x.rgb,y.rgb)),max(y2-1.0,vec3(0.0)),step(x.rgb,y2-1.0));return mix(x,vec4(z,y.a),opacity);}`,xA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(min(x.rgb*x.rgb/max(1.0-y.rgb,1e-12),1.0),y.rgb,step(1.0,y.rgb));return mix(x,vec4(z,y.a),opacity);}`,SA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.x,yHSL.y,xHSL.z));return mix(x,vec4(z,y.a),opacity);}`,CA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb+y.rgb-min(x.rgb*y.rgb,1.0),y.a),opacity);}`,wA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb;vec3 b=y.rgb;vec3 y2=2.0*b;vec3 w=step(0.5,b);vec3 c=a-(1.0-y2)*a*(1.0-a);vec3 d=mix(a+(y2-1.0)*(sqrt(a)-a),a+(y2-1.0)*a*((16.0*a-12.0)*a+3.0),w*(1.0-step(0.25,a)));vec3 z=mix(c,d,w);return mix(x,vec4(z,y.a),opacity);}`,TA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return y;}`,EA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(max(x.rgb+y.rgb-1.0,0.0),y.a),opacity);}`,DA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(max(1.0-min((1.0-x.rgb)/(2.0*y.rgb),1.0),0.0),min(x.rgb/(2.0*(1.0-y.rgb)),1.0),step(0.5,y.rgb));return mix(x,vec4(z,y.a),opacity);}`,OA=new Map([[$.ADD,Xk],[$.ALPHA,Zk],[$.AVERAGE,Qk],[$.COLOR,$k],[$.COLOR_BURN,eA],[$.COLOR_DODGE,tA],[$.DARKEN,nA],[$.DIFFERENCE,rA],[$.DIVIDE,iA],[$.DST,null],[$.EXCLUSION,aA],[$.HARD_LIGHT,oA],[$.HARD_MIX,sA],[$.HUE,cA],[$.INVERT,lA],[$.INVERT_RGB,uA],[$.LIGHTEN,dA],[$.LINEAR_BURN,fA],[$.LINEAR_DODGE,pA],[$.LINEAR_LIGHT,mA],[$.LUMINOSITY,hA],[$.MULTIPLY,gA],[$.NEGATION,_A],[$.NORMAL,vA],[$.OVERLAY,yA],[$.PIN_LIGHT,bA],[$.REFLECT,xA],[$.SATURATION,SA],[$.SCREEN,CA],[$.SOFT_LIGHT,wA],[$.SRC,TA],[$.SUBTRACT,EA],[$.VIVID_LIGHT,DA]]),kA=class extends Me{constructor(e,t=1){super(),this._blendFunction=e,this.opacity=new cn(t)}getOpacity(){return this.opacity.value}setOpacity(e){this.opacity.value=e}get blendFunction(){return this._blendFunction}set blendFunction(e){this._blendFunction=e,this.dispatchEvent({type:`change`})}getBlendFunction(){return this.blendFunction}setBlendFunction(e){this.blendFunction=e}getShaderCode(){return OA.get(this.blendFunction)}},AA=class extends Me{constructor(e,t,{attributes:n=Uk.NONE,blendFunction:r=$.NORMAL,defines:i=new Map,uniforms:a=new Map,extensions:o=null,vertexShader:s=null}={}){super(),this.name=e,this.renderer=null,this.attributes=n,this.fragmentShader=t,this.vertexShader=s,this.defines=i,this.uniforms=a,this.extensions=o,this.blendMode=new kA(r),this.blendMode.addEventListener(`change`,e=>this.setChanged()),this._inputColorSpace=wt,this._outputColorSpace=rt}get inputColorSpace(){return this._inputColorSpace}set inputColorSpace(e){this._inputColorSpace=e,this.setChanged()}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e,this.setChanged()}set mainScene(e){}set mainCamera(e){}getName(){return this.name}setRenderer(e){this.renderer=e}getDefines(){return this.defines}getUniforms(){return this.uniforms}getExtensions(){return this.extensions}getBlendMode(){return this.blendMode}getAttributes(){return this.attributes}setAttributes(e){this.attributes=e,this.setChanged()}getFragmentShader(){return this.fragmentShader}setFragmentShader(e){this.fragmentShader=e,this.setChanged()}getVertexShader(){return this.vertexShader}setVertexShader(e){this.vertexShader=e,this.setChanged()}setChanged(){this.dispatchEvent({type:`change`})}setDepthTexture(e,t=Ze){}update(e,t,n){}setSize(e,t){}initialize(e,t,n){}dispose(){for(let e of Object.keys(this)){let t=this[e],n=t instanceof yn||t instanceof Ot||t instanceof Ht||t instanceof Nk;n&&this[e].dispose()}}};new Float32Array([0,0]),new Float32Array([0,1,1]),new Float32Array([0,1,1,2]),new Float32Array([0,1,2,2,3]),new Float32Array([0,1,2,3,4,4,5]),new Float32Array([0,1,2,3,4,5,7,8,9,10]);var jA=class extends Nk{constructor(e,t,n=null){super(`RenderPass`,e,t),this.needsSwap=!1,this.clearPass=new Bk,this.overrideMaterialManager=n===null?null:new qk(n),this.ignoreBackground=!1,this.skipShadowMapUpdate=!1,this.selection=null}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get renderToScreen(){return super.renderToScreen}set renderToScreen(e){super.renderToScreen=e,this.clearPass.renderToScreen=e}get overrideMaterial(){let e=this.overrideMaterialManager;return e===null?null:e.material}set overrideMaterial(e){let t=this.overrideMaterialManager;e===null?t!==null&&(t.dispose(),this.overrideMaterialManager=null):t===null?this.overrideMaterialManager=new qk(e):t.setMaterial(e)}getOverrideMaterial(){return this.overrideMaterial}setOverrideMaterial(e){this.overrideMaterial=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getSelection(){return this.selection}setSelection(e){this.selection=e}isBackgroundDisabled(){return this.ignoreBackground}setBackgroundDisabled(e){this.ignoreBackground=e}isShadowMapDisabled(){return this.skipShadowMapUpdate}setShadowMapDisabled(e){this.skipShadowMapUpdate=e}getClearPass(){return this.clearPass}render(e,t,n,r,i){let a=this.scene,o=this.camera,s=this.selection,c=o.layers.mask,l=a.background,u=e.shadowMap.autoUpdate,d=this.renderToScreen?null:t;s!==null&&o.layers.set(s.getLayer()),this.skipShadowMapUpdate&&(e.shadowMap.autoUpdate=!1),(this.ignoreBackground||this.clearPass.overrideClearColor!==null)&&(a.background=null),this.clearPass.enabled&&this.clearPass.render(e,t),e.setRenderTarget(d),this.overrideMaterialManager===null?e.render(a,o):this.overrideMaterialManager.render(e,a,o),o.layers.mask=c,a.background=l,e.shadowMap.autoUpdate=u}},MA=`uniform vec3 hue;uniform float saturation;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec3 color=vec3(dot(inputColor.rgb,hue.xyz),dot(inputColor.rgb,hue.zxy),dot(inputColor.rgb,hue.yzx));float average=(color.r+color.g+color.b)/3.0;vec3 diff=average-color;if(saturation>0.0){color+=diff*(1.0-1.0/(1.001-saturation));}else{color+=diff*-saturation;}outputColor=vec4(min(color,1.0),inputColor.a);}`,NA=class extends AA{constructor({blendFunction:e=$.SRC,hue:t=0,saturation:n=0}={}){super(`HueSaturationEffect`,MA,{blendFunction:e,uniforms:new Map([[`hue`,new cn(new mn)],[`saturation`,new cn(n)]])}),this.hue=t}get saturation(){return this.uniforms.get(`saturation`).value}set saturation(e){this.uniforms.get(`saturation`).value=e}getSaturation(){return this.saturation}setSaturation(e){this.saturation=e}get hue(){let e=this.uniforms.get(`hue`).value;return Math.acos((e.x*3-1)/2)}set hue(e){let t=Math.sin(e),n=Math.cos(e);this.uniforms.get(`hue`).value.set((2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3)}getHue(){return this.hue}setHue(e){this.hue=e}};Math.PI*.5;var PA=`#include +}`,Ik=`varying vec2 vUv;void main(){vUv=position.xy*0.5+0.5;gl_Position=vec4(position.xy,1.0,1.0);}`,Lk=class extends tt{constructor(){super({name:`CopyMaterial`,uniforms:{inputBuffer:new cn(null),opacity:new cn(1)},blending:it,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:Fk,vertexShader:Ik})}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}getOpacity(e){return this.uniforms.opacity.value}setOpacity(e){this.uniforms.opacity.value=e}},Rk=class extends Nk{constructor(e,t=!0){super(`CopyPass`),this.fullscreenMaterial=new Lk,this.needsSwap=!1,this.renderTarget=e,e===void 0&&(this.renderTarget=new yn(1,1,{minFilter:Ct,magFilter:Ct,stencilBuffer:!1,depthBuffer:!1}),this.renderTarget.texture.name=`CopyPass.Target`),this.autoResize=t}get resize(){return this.autoResize}set resize(e){this.autoResize=e}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}setAutoResizeEnabled(e){this.autoResize=e}render(e,t,n,r,i){this.fullscreenMaterial.inputBuffer=t.texture,e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){this.autoResize&&this.renderTarget.setSize(e,t)}initialize(e,t,n){n!==void 0&&(this.renderTarget.texture.type=n,n===un?e!==null&&e.outputColorSpace===bt&&(this.renderTarget.texture.colorSpace=bt):this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH=`1`)}},zk=new be,Bk=class extends Nk{constructor(e=!0,t=!0,n=!1){super(`ClearPass`,null,null),this.needsSwap=!1,this.color=e,this.depth=t,this.stencil=n,this.overrideClearColor=null,this.overrideClearAlpha=-1}setClearFlags(e,t,n){this.color=e,this.depth=t,this.stencil=n}getOverrideClearColor(){return this.overrideClearColor}setOverrideClearColor(e){this.overrideClearColor=e}getOverrideClearAlpha(){return this.overrideClearAlpha}setOverrideClearAlpha(e){this.overrideClearAlpha=e}render(e,t,n,r,i){let a=this.overrideClearColor,o=this.overrideClearAlpha,s=e.getClearAlpha(),c=a!==null,l=o>=0;c?(e.getClearColor(zk),e.setClearColor(a,l?o:s)):l&&e.setClearAlpha(o),e.setRenderTarget(this.renderToScreen?null:t),e.clear(this.color,this.depth,this.stencil),c?e.setClearColor(zk,s):l&&e.setClearAlpha(s)}},Vk=class extends Nk{constructor(e,t){super(`MaskPass`,e,t),this.needsSwap=!1,this.clearPass=new Bk(!1,!1,!0),this.inverse=!1}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get inverted(){return this.inverse}set inverted(e){this.inverse=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getClearPass(){return this.clearPass}isInverted(){return this.inverted}setInverted(e){this.inverted=e}render(e,t,n,r,i){let a=e.getContext(),o=e.state.buffers,s=this.scene,c=this.camera,l=this.clearPass,u=this.inverted?0:1,d=1-u;o.color.setMask(!1),o.depth.setMask(!1),o.color.setLocked(!0),o.depth.setLocked(!0),o.stencil.setTest(!0),o.stencil.setOp(a.REPLACE,a.REPLACE,a.REPLACE),o.stencil.setFunc(a.ALWAYS,u,4294967295),o.stencil.setClear(d),o.stencil.setLocked(!0),this.clearPass.enabled&&(this.renderToScreen?l.render(e,null):(l.render(e,t),l.render(e,n))),this.renderToScreen?(e.setRenderTarget(null),e.render(s,c)):(e.setRenderTarget(t),e.render(s,c),e.setRenderTarget(n),e.render(s,c)),o.color.setLocked(!1),o.depth.setLocked(!1),o.stencil.setLocked(!1),o.stencil.setFunc(a.EQUAL,1,4294967295),o.stencil.setOp(a.KEEP,a.KEEP,a.KEEP),o.stencil.setLocked(!0)}},Hk=class{constructor(e=null,{depthBuffer:t=!0,stencilBuffer:n=!1,multisampling:r=0,frameBufferType:i}={}){this.renderer=null,this.inputBuffer=this.createBuffer(t,n,i,r),this.outputBuffer=this.inputBuffer.clone(),this.copyPass=new Rk,this.depthTexture=null,this.passes=[],this.timer=new jk,this.autoRenderToScreen=!0,this.setRenderer(e)}get multisampling(){return this.inputBuffer.samples||0}set multisampling(e){let t=this.inputBuffer,n=this.multisampling;n>0&&e>0?(this.inputBuffer.samples=e,this.outputBuffer.samples=e,this.inputBuffer.dispose(),this.outputBuffer.dispose()):n!==e&&(this.inputBuffer.dispose(),this.outputBuffer.dispose(),this.inputBuffer=this.createBuffer(t.depthBuffer,t.stencilBuffer,t.texture.type,e),this.inputBuffer.depthTexture=this.depthTexture,this.outputBuffer=this.inputBuffer.clone())}getTimer(){return this.timer}getRenderer(){return this.renderer}setRenderer(e){if(this.renderer=e,e!==null){let t=e.getSize(new pn),n=e.getContext().getContextAttributes().alpha,r=this.inputBuffer.texture.type;r===un&&e.outputColorSpace===bt&&(this.inputBuffer.texture.colorSpace=bt,this.outputBuffer.texture.colorSpace=bt,this.inputBuffer.dispose(),this.outputBuffer.dispose()),e.autoClear=!1,this.setSize(t.width,t.height);for(let t of this.passes)t.initialize(e,n,r)}}replaceRenderer(e,t=!0){let n=this.renderer,r=n.domElement.parentNode;return this.setRenderer(e),t&&r!==null&&(r.removeChild(n.domElement),r.appendChild(e.domElement)),n}createDepthTexture(){let e=this.depthTexture=new Oe;return this.inputBuffer.depthTexture=e,this.inputBuffer.dispose(),this.inputBuffer.stencilBuffer?(e.format=De,e.type=dn):e.type=fn,e}deleteDepthTexture(){if(this.depthTexture!==null){this.depthTexture.dispose(),this.depthTexture=null,this.inputBuffer.depthTexture=null,this.inputBuffer.dispose();for(let e of this.passes)e.setDepthTexture(null)}}createBuffer(e,t,n,r){let i=this.renderer,a=i===null?new pn:i.getDrawingBufferSize(new pn),o={minFilter:Ct,magFilter:Ct,stencilBuffer:t,depthBuffer:e,type:n},s=new yn(a.width,a.height,o);return r>0&&(s.ignoreDepthForMultisampleCopy=!1,s.samples=r),n===un&&i!==null&&i.outputColorSpace===bt&&(s.texture.colorSpace=bt),s.texture.name=`EffectComposer.Buffer`,s.texture.generateMipmaps=!1,s}setMainScene(e){for(let t of this.passes)t.mainScene=e}setMainCamera(e){for(let t of this.passes)t.mainCamera=e}addPass(e,t){let n=this.passes,r=this.renderer,i=r.getDrawingBufferSize(new pn),a=r.getContext().getContextAttributes().alpha,o=this.inputBuffer.texture.type;if(e.setRenderer(r),e.setSize(i.width,i.height),e.initialize(r,a,o),this.autoRenderToScreen&&(n.length>0&&(n[n.length-1].renderToScreen=!1),e.renderToScreen&&(this.autoRenderToScreen=!1)),t===void 0?n.push(e):n.splice(t,0,e),this.autoRenderToScreen&&(n[n.length-1].renderToScreen=!0),e.needsDepthTexture||this.depthTexture!==null)if(this.depthTexture===null){let t=this.createDepthTexture();for(e of n)e.setDepthTexture(t)}else e.setDepthTexture(this.depthTexture)}removePass(e){let t=this.passes,n=t.indexOf(e),r=n!==-1,i=r&&t.splice(n,1).length>0;if(i){if(this.depthTexture!==null){let n=(e,t)=>e||t.needsDepthTexture,r=t.reduce(n,!1);r||(e.getDepthTexture()===this.depthTexture&&e.setDepthTexture(null),this.deleteDepthTexture())}this.autoRenderToScreen&&n===t.length&&(e.renderToScreen=!1,t.length>0&&(t[t.length-1].renderToScreen=!0))}}removeAllPasses(){let e=this.passes;this.deleteDepthTexture(),e.length>0&&(this.autoRenderToScreen&&(e[e.length-1].renderToScreen=!1),this.passes=[])}render(e){let t=this.renderer,n=this.copyPass,r=this.inputBuffer,i=this.outputBuffer,a=!1,o,s,c;e===void 0&&(this.timer.update(),e=this.timer.getDelta());for(let l of this.passes)l.enabled&&(l.render(t,r,i,e,a),l.needsSwap&&(a&&(n.renderToScreen=l.renderToScreen,o=t.getContext(),s=t.state.buffers.stencil,s.setFunc(o.NOTEQUAL,1,4294967295),n.render(t,r,i,e,a),s.setFunc(o.EQUAL,1,4294967295)),c=r,r=i,i=c),l instanceof Vk?a=!0:l instanceof Pk&&(a=!1))}setSize(e,t,n){let r=this.renderer,i=r.getSize(new pn);(e===void 0||t===void 0)&&(e=i.width,t=i.height),(i.width!==e||i.height!==t)&&r.setSize(e,t,n);let a=r.getDrawingBufferSize(new pn);this.inputBuffer.setSize(a.width,a.height),this.outputBuffer.setSize(a.width,a.height);for(let e of this.passes)e.setSize(a.width,a.height)}reset(){this.dispose(),this.autoRenderToScreen=!0}dispose(){for(let e of this.passes)e.dispose();this.passes=[],this.inputBuffer!==null&&this.inputBuffer.dispose(),this.outputBuffer!==null&&this.outputBuffer.dispose(),this.deleteDepthTexture(),this.copyPass.dispose(),this.timer.dispose(),Nk.fullscreenGeometry.dispose()}},Uk={NONE:0,DEPTH:1,CONVOLUTION:2},Wk={FRAGMENT_HEAD:`FRAGMENT_HEAD`,FRAGMENT_MAIN_UV:`FRAGMENT_MAIN_UV`,FRAGMENT_MAIN_IMAGE:`FRAGMENT_MAIN_IMAGE`,VERTEX_HEAD:`VERTEX_HEAD`,VERTEX_MAIN_SUPPORT:`VERTEX_MAIN_SUPPORT`},Gk=class{constructor(){this.shaderParts=new Map([[Wk.FRAGMENT_HEAD,null],[Wk.FRAGMENT_MAIN_UV,null],[Wk.FRAGMENT_MAIN_IMAGE,null],[Wk.VERTEX_HEAD,null],[Wk.VERTEX_MAIN_SUPPORT,null]]),this.defines=new Map,this.uniforms=new Map,this.blendModes=new Map,this.extensions=new Set,this.attributes=Uk.NONE,this.varyings=new Set,this.uvTransformation=!1,this.readDepth=!1,this.colorSpace=Tt}},Kk=!1,qk=class{constructor(e=null){this.originalMaterials=new Map,this.material=null,this.materials=null,this.materialsBackSide=null,this.materialsDoubleSide=null,this.materialsFlatShaded=null,this.materialsFlatShadedBackSide=null,this.materialsFlatShadedDoubleSide=null,this.setMaterial(e),this.meshCount=0,this.replaceMaterial=e=>{if(e.isMesh){let t;if(e.material.flatShading)switch(e.material.side){case ke:t=this.materialsFlatShadedDoubleSide;break;case Ze:t=this.materialsFlatShadedBackSide;break;default:t=this.materialsFlatShaded;break}else switch(e.material.side){case ke:t=this.materialsDoubleSide;break;case Ze:t=this.materialsBackSide;break;default:t=this.materials;break}this.originalMaterials.set(e,e.material),e.isSkinnedMesh?e.material=t[2]:e.isInstancedMesh?e.material=t[1]:e.material=t[0],++this.meshCount}}}cloneMaterial(e){if(!(e instanceof tt))return e.clone();let t=e.uniforms,n=new Map;for(let e in t){let r=t[e].value;r.isRenderTargetTexture&&(t[e].value=null,n.set(e,r))}let r=e.clone();for(let e of n)t[e[0]].value=e[1],r.uniforms[e[0]].value=e[1];return r}setMaterial(e){if(this.disposeMaterials(),this.material=e,e!==null){let t=this.materials=[this.cloneMaterial(e),this.cloneMaterial(e),this.cloneMaterial(e)];for(let n of t)n.uniforms=Object.assign({},e.uniforms),n.side=Fe;t[2].skinning=!0,this.materialsBackSide=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.side=Ze,n}),this.materialsDoubleSide=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.side=ke,n}),this.materialsFlatShaded=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n}),this.materialsFlatShadedBackSide=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n.side=Ze,n}),this.materialsFlatShadedDoubleSide=t.map(t=>{let n=this.cloneMaterial(t);return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n.side=ke,n})}}render(e,t,n){let r=e.shadowMap.enabled;if(e.shadowMap.enabled=!1,Kk){let r=this.originalMaterials;this.meshCount=0,t.traverse(this.replaceMaterial),e.render(t,n);for(let e of r)e[0].material=e[1];this.meshCount!==r.size&&r.clear()}else{let r=t.overrideMaterial;t.overrideMaterial=this.material,e.render(t,n),t.overrideMaterial=r}e.shadowMap.enabled=r}disposeMaterials(){if(this.material!==null){let e=this.materials.concat(this.materialsBackSide).concat(this.materialsDoubleSide).concat(this.materialsFlatShaded).concat(this.materialsFlatShadedBackSide).concat(this.materialsFlatShadedDoubleSide);for(let t of e)t.dispose()}}dispose(){this.originalMaterials.clear(),this.disposeMaterials()}static get workaroundEnabled(){return Kk}static set workaroundEnabled(e){Kk=e}},Jk=-1,Yk=class extends Me{constructor(e,t=Jk,n=Jk,r=1){super(),this.resizable=e,this.baseSize=new pn(1,1),this.preferredSize=new pn(t,n),this.target=this.preferredSize,this.s=r,this.effectiveSize=new pn,this.addEventListener(`change`,()=>this.updateEffectiveSize()),this.updateEffectiveSize()}updateEffectiveSize(){let e=this.baseSize,t=this.preferredSize,n=this.effectiveSize,r=this.scale;t.width===Jk?t.height===Jk?n.width=Math.round(e.width*r):n.width=Math.round(t.height*(e.width/Math.max(e.height,1))):n.width=t.width,t.height===Jk?t.width===Jk?n.height=Math.round(e.height*r):n.height=Math.round(t.width/Math.max(e.width/Math.max(e.height,1),1)):n.height=t.height}get width(){return this.effectiveSize.width}set width(e){this.preferredWidth=e}get height(){return this.effectiveSize.height}set height(e){this.preferredHeight=e}getWidth(){return this.width}getHeight(){return this.height}get scale(){return this.s}set scale(e){this.s!==e&&(this.s=e,this.preferredSize.setScalar(Jk),this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getScale(){return this.scale}setScale(e){this.scale=e}get baseWidth(){return this.baseSize.width}set baseWidth(e){this.baseSize.width!==e&&(this.baseSize.width=e,this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getBaseWidth(){return this.baseWidth}setBaseWidth(e){this.baseWidth=e}get baseHeight(){return this.baseSize.height}set baseHeight(e){this.baseSize.height!==e&&(this.baseSize.height=e,this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getBaseHeight(){return this.baseHeight}setBaseHeight(e){this.baseHeight=e}setBaseSize(e,t){(this.baseSize.width!==e||this.baseSize.height!==t)&&(this.baseSize.set(e,t),this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}get preferredWidth(){return this.preferredSize.width}set preferredWidth(e){this.preferredSize.width!==e&&(this.preferredSize.width=e,this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getPreferredWidth(){return this.preferredWidth}setPreferredWidth(e){this.preferredWidth=e}get preferredHeight(){return this.preferredSize.height}set preferredHeight(e){this.preferredSize.height!==e&&(this.preferredSize.height=e,this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getPreferredHeight(){return this.preferredHeight}setPreferredHeight(e){this.preferredHeight=e}setPreferredSize(e,t){(this.preferredSize.width!==e||this.preferredSize.height!==t)&&(this.preferredSize.set(e,t),this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}copy(e){this.s=e.scale,this.baseSize.set(e.baseWidth,e.baseHeight),this.preferredSize.set(e.preferredWidth,e.preferredHeight),this.dispatchEvent({type:`change`}),this.resizable.setSize(this.baseSize.width,this.baseSize.height)}static get AUTO_SIZE(){return Jk}};Set;var $={SKIP:9,SET:30,ADD:0,ALPHA:1,AVERAGE:2,COLOR:3,COLOR_BURN:4,COLOR_DODGE:5,DARKEN:6,DIFFERENCE:7,DIVIDE:8,DST:9,EXCLUSION:10,HARD_LIGHT:11,HARD_MIX:12,HUE:13,INVERT:14,INVERT_RGB:15,LIGHTEN:16,LINEAR_BURN:17,LINEAR_DODGE:18,LINEAR_LIGHT:19,LUMINOSITY:20,MULTIPLY:21,NEGATION:22,NORMAL:23,OVERLAY:24,PIN_LIGHT:25,REFLECT:26,SATURATION:27,SCREEN:28,SOFT_LIGHT:29,SRC:30,SUBTRACT:31,VIVID_LIGHT:32},Xk=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb+y.rgb,y.a),opacity);}`,Zk=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,y.a*opacity);}`,Qk=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4((x.rgb+y.rgb)*0.5,y.a),opacity);}`,$k=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.xy,xHSL.z));return mix(x,vec4(z,y.a),opacity);}`,eA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb,b=y.rgb;vec3 z=mix(step(0.0,b)*(1.0-min(vec3(1.0),(1.0-a)/b)),vec3(1.0),step(1.0,a));return mix(x,vec4(z,y.a),opacity);}`,tA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb,b=y.rgb;vec3 z=step(0.0,a)*mix(min(vec3(1.0),a/max(1.0-b,1e-9)),vec3(1.0),step(1.0,b));return mix(x,vec4(z,y.a),opacity);}`,nA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(min(x.rgb,y.rgb),y.a),opacity);}`,rA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(abs(x.rgb-y.rgb),y.a),opacity);}`,iA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb/max(y.rgb,1e-12),y.a),opacity);}`,aA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4((x.rgb+y.rgb-2.0*x.rgb*y.rgb),y.a),opacity);}`,oA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=min(x.rgb,1.0);vec3 b=min(y.rgb,1.0);vec3 z=mix(2.0*a*b,1.0-2.0*(1.0-a)*(1.0-b),step(0.5,b));return mix(x,vec4(z,y.a),opacity);}`,sA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(step(1.0,x.rgb+y.rgb),y.a),opacity);}`,cA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(yHSL.x,xHSL.yz));return mix(x,vec4(z,y.a),opacity);}`,lA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(1.0-y.rgb,y.a),opacity);}`,uA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(y.rgb*(1.0-x.rgb),y.a),opacity);}`,dA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(max(x.rgb,y.rgb),y.a),opacity);}`,fA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(clamp(y.rgb+x.rgb-1.0,0.0,1.0),y.a),opacity);}`,pA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(min(x.rgb+y.rgb,1.0),y.a),opacity);}`,mA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(clamp(2.0*y.rgb+x.rgb-1.0,0.0,1.0),y.a),opacity);}`,hA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.xy,yHSL.z));return mix(x,vec4(z,y.a),opacity);}`,gA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb*y.rgb,y.a),opacity);}`,_A=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(1.0-abs(1.0-x.rgb-y.rgb),y.a),opacity);}`,vA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,y,opacity);}`,yA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(2.0*y.rgb*x.rgb,1.0-2.0*(1.0-y.rgb)*(1.0-x.rgb),step(0.5,x.rgb));return mix(x,vec4(z,y.a),opacity);}`,bA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 y2=2.0*y.rgb;vec3 z=mix(mix(y2,x.rgb,step(0.5*x.rgb,y.rgb)),max(y2-1.0,vec3(0.0)),step(x.rgb,y2-1.0));return mix(x,vec4(z,y.a),opacity);}`,xA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(min(x.rgb*x.rgb/max(1.0-y.rgb,1e-12),1.0),y.rgb,step(1.0,y.rgb));return mix(x,vec4(z,y.a),opacity);}`,SA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 xHSL=RGBToHSL(x.rgb);vec3 yHSL=RGBToHSL(y.rgb);vec3 z=HSLToRGB(vec3(xHSL.x,yHSL.y,xHSL.z));return mix(x,vec4(z,y.a),opacity);}`,CA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(x.rgb+y.rgb-min(x.rgb*y.rgb,1.0),y.a),opacity);}`,wA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 a=x.rgb;vec3 b=y.rgb;vec3 y2=2.0*b;vec3 w=step(0.5,b);vec3 c=a-(1.0-y2)*a*(1.0-a);vec3 d=mix(a+(y2-1.0)*(sqrt(a)-a),a+(y2-1.0)*a*((16.0*a-12.0)*a+3.0),w*(1.0-step(0.25,a)));vec3 z=mix(c,d,w);return mix(x,vec4(z,y.a),opacity);}`,TA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return y;}`,EA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){return mix(x,vec4(max(x.rgb+y.rgb-1.0,0.0),y.a),opacity);}`,DA=`vec4 blend(const in vec4 x,const in vec4 y,const in float opacity){vec3 z=mix(max(1.0-min((1.0-x.rgb)/(2.0*y.rgb),1.0),0.0),min(x.rgb/(2.0*(1.0-y.rgb)),1.0),step(0.5,y.rgb));return mix(x,vec4(z,y.a),opacity);}`,OA=new Map([[$.ADD,Xk],[$.ALPHA,Zk],[$.AVERAGE,Qk],[$.COLOR,$k],[$.COLOR_BURN,eA],[$.COLOR_DODGE,tA],[$.DARKEN,nA],[$.DIFFERENCE,rA],[$.DIVIDE,iA],[$.DST,null],[$.EXCLUSION,aA],[$.HARD_LIGHT,oA],[$.HARD_MIX,sA],[$.HUE,cA],[$.INVERT,lA],[$.INVERT_RGB,uA],[$.LIGHTEN,dA],[$.LINEAR_BURN,fA],[$.LINEAR_DODGE,pA],[$.LINEAR_LIGHT,mA],[$.LUMINOSITY,hA],[$.MULTIPLY,gA],[$.NEGATION,_A],[$.NORMAL,vA],[$.OVERLAY,yA],[$.PIN_LIGHT,bA],[$.REFLECT,xA],[$.SATURATION,SA],[$.SCREEN,CA],[$.SOFT_LIGHT,wA],[$.SRC,TA],[$.SUBTRACT,EA],[$.VIVID_LIGHT,DA]]),kA=class extends Me{constructor(e,t=1){super(),this._blendFunction=e,this.opacity=new cn(t)}getOpacity(){return this.opacity.value}setOpacity(e){this.opacity.value=e}get blendFunction(){return this._blendFunction}set blendFunction(e){this._blendFunction=e,this.dispatchEvent({type:`change`})}getBlendFunction(){return this.blendFunction}setBlendFunction(e){this.blendFunction=e}getShaderCode(){return OA.get(this.blendFunction)}},AA=class extends Me{constructor(e,t,{attributes:n=Uk.NONE,blendFunction:r=$.NORMAL,defines:i=new Map,uniforms:a=new Map,extensions:o=null,vertexShader:s=null}={}){super(),this.name=e,this.renderer=null,this.attributes=n,this.fragmentShader=t,this.vertexShader=s,this.defines=i,this.uniforms=a,this.extensions=o,this.blendMode=new kA(r),this.blendMode.addEventListener(`change`,e=>this.setChanged()),this._inputColorSpace=Tt,this._outputColorSpace=at}get inputColorSpace(){return this._inputColorSpace}set inputColorSpace(e){this._inputColorSpace=e,this.setChanged()}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e,this.setChanged()}set mainScene(e){}set mainCamera(e){}getName(){return this.name}setRenderer(e){this.renderer=e}getDefines(){return this.defines}getUniforms(){return this.uniforms}getExtensions(){return this.extensions}getBlendMode(){return this.blendMode}getAttributes(){return this.attributes}setAttributes(e){this.attributes=e,this.setChanged()}getFragmentShader(){return this.fragmentShader}setFragmentShader(e){this.fragmentShader=e,this.setChanged()}getVertexShader(){return this.vertexShader}setVertexShader(e){this.vertexShader=e,this.setChanged()}setChanged(){this.dispatchEvent({type:`change`})}setDepthTexture(e,t=Qe){}update(e,t,n){}setSize(e,t){}initialize(e,t,n){}dispose(){for(let e of Object.keys(this)){let t=this[e],n=t instanceof yn||t instanceof kt||t instanceof Ht||t instanceof Nk;n&&this[e].dispose()}}};new Float32Array([0,0]),new Float32Array([0,1,1]),new Float32Array([0,1,1,2]),new Float32Array([0,1,2,2,3]),new Float32Array([0,1,2,3,4,4,5]),new Float32Array([0,1,2,3,4,5,7,8,9,10]);var jA=class extends Nk{constructor(e,t,n=null){super(`RenderPass`,e,t),this.needsSwap=!1,this.clearPass=new Bk,this.overrideMaterialManager=n===null?null:new qk(n),this.ignoreBackground=!1,this.skipShadowMapUpdate=!1,this.selection=null}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get renderToScreen(){return super.renderToScreen}set renderToScreen(e){super.renderToScreen=e,this.clearPass.renderToScreen=e}get overrideMaterial(){let e=this.overrideMaterialManager;return e===null?null:e.material}set overrideMaterial(e){let t=this.overrideMaterialManager;e===null?t!==null&&(t.dispose(),this.overrideMaterialManager=null):t===null?this.overrideMaterialManager=new qk(e):t.setMaterial(e)}getOverrideMaterial(){return this.overrideMaterial}setOverrideMaterial(e){this.overrideMaterial=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getSelection(){return this.selection}setSelection(e){this.selection=e}isBackgroundDisabled(){return this.ignoreBackground}setBackgroundDisabled(e){this.ignoreBackground=e}isShadowMapDisabled(){return this.skipShadowMapUpdate}setShadowMapDisabled(e){this.skipShadowMapUpdate=e}getClearPass(){return this.clearPass}render(e,t,n,r,i){let a=this.scene,o=this.camera,s=this.selection,c=o.layers.mask,l=a.background,u=e.shadowMap.autoUpdate,d=this.renderToScreen?null:t;s!==null&&o.layers.set(s.getLayer()),this.skipShadowMapUpdate&&(e.shadowMap.autoUpdate=!1),(this.ignoreBackground||this.clearPass.overrideClearColor!==null)&&(a.background=null),this.clearPass.enabled&&this.clearPass.render(e,t),e.setRenderTarget(d),this.overrideMaterialManager===null?e.render(a,o):this.overrideMaterialManager.render(e,a,o),o.layers.mask=c,a.background=l,e.shadowMap.autoUpdate=u}},MA=`uniform vec3 hue;uniform float saturation;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec3 color=vec3(dot(inputColor.rgb,hue.xyz),dot(inputColor.rgb,hue.zxy),dot(inputColor.rgb,hue.yzx));float average=(color.r+color.g+color.b)/3.0;vec3 diff=average-color;if(saturation>0.0){color+=diff*(1.0-1.0/(1.001-saturation));}else{color+=diff*-saturation;}outputColor=vec4(min(color,1.0),inputColor.a);}`,NA=class extends AA{constructor({blendFunction:e=$.SRC,hue:t=0,saturation:n=0}={}){super(`HueSaturationEffect`,MA,{blendFunction:e,uniforms:new Map([[`hue`,new cn(new mn)],[`saturation`,new cn(n)]])}),this.hue=t}get saturation(){return this.uniforms.get(`saturation`).value}set saturation(e){this.uniforms.get(`saturation`).value=e}getSaturation(){return this.saturation}setSaturation(e){this.saturation=e}get hue(){let e=this.uniforms.get(`hue`).value;return Math.acos((e.x*3-1)/2)}set hue(e){let t=Math.sin(e),n=Math.cos(e);this.uniforms.get(`hue`).value.set((2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3)}getHue(){return this.hue}setHue(e){this.hue=e}};Math.PI*.5;var PA=`#include #ifdef GL_FRAGMENT_PRECISION_HIGH uniform highp sampler2D depthBuffer; #else @@ -2324,7 +2324,7 @@ vec3 n[4];n[0]=texture2D(normalBuffer,vUv0).rgb;n[1]=texture2D(normalBuffer,vUv1 #else vec3 n[4];n[0]=vec3(0.0);n[1]=vec3(0.0);n[2]=vec3(0.0);n[3]=vec3(0.0); #endif -gl_FragColor=vec4(n[index],d[index]);}`,FA=`uniform vec2 texelSize;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec2 uv=position.xy*0.5+0.5;vUv0=uv;vUv1=vec2(uv.x,uv.y+texelSize.y);vUv2=vec2(uv.x+texelSize.x,uv.y);vUv3=uv+texelSize;gl_Position=vec4(position.xy,1.0,1.0);}`,IA=class extends xt{constructor(){super({name:`DepthDownsamplingMaterial`,defines:{DEPTH_PACKING:`0`},uniforms:{depthBuffer:new cn(null),normalBuffer:new cn(null),texelSize:new cn(new pn)},blending:nt,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:PA,vertexShader:FA})}set depthBuffer(e){this.uniforms.depthBuffer.value=e}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=Ze){this.depthBuffer=e,this.depthPacking=t}set normalBuffer(e){this.uniforms.normalBuffer.value=e,e===null?delete this.defines.DOWNSAMPLE_NORMALS:this.defines.DOWNSAMPLE_NORMALS=`1`,this.needsUpdate=!0}setNormalBuffer(e){this.normalBuffer=e}setTexelSize(e,t){this.uniforms.texelSize.value.set(e,t)}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},LA=class extends Nk{constructor({normalBuffer:e=null,resolutionScale:t=.5,width:n=Yk.AUTO_SIZE,height:r=Yk.AUTO_SIZE,resolutionX:i=n,resolutionY:a=r}={}){super(`DepthDownsamplingPass`);let o=new IA;o.normalBuffer=e,this.fullscreenMaterial=o,this.needsDepthTexture=!0,this.needsSwap=!1,this.renderTarget=new yn(1,1,{minFilter:It,magFilter:It,depthBuffer:!1,type:Pe}),this.renderTarget.texture.name=`DepthDownsamplingPass.Target`,this.renderTarget.texture.generateMipmaps=!1;let s=this.resolution=new Yk(this,i,a,t);s.addEventListener(`change`,e=>this.setSize(s.baseWidth,s.baseHeight))}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}getResolution(){return this.resolution}setDepthTexture(e,t=Ze){this.fullscreenMaterial.depthBuffer=e,this.fullscreenMaterial.depthPacking=t}render(e,t,n,r,i){e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){let n=this.resolution;n.setBaseSize(e,t),this.renderTarget.setSize(n.width,n.height),this.fullscreenMaterial.setSize(e,t)}initialize(e,t,n){let r=e.getContext(),i=r.getExtension(`EXT_color_buffer_float`)||r.getExtension(`EXT_color_buffer_half_float`);if(!i)throw Error(`Rendering to float texture is not supported.`)}},RA=`#include +gl_FragColor=vec4(n[index],d[index]);}`,FA=`uniform vec2 texelSize;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec2 uv=position.xy*0.5+0.5;vUv0=uv;vUv1=vec2(uv.x,uv.y+texelSize.y);vUv2=vec2(uv.x+texelSize.x,uv.y);vUv3=uv+texelSize;gl_Position=vec4(position.xy,1.0,1.0);}`,IA=class extends tt{constructor(){super({name:`DepthDownsamplingMaterial`,defines:{DEPTH_PACKING:`0`},uniforms:{depthBuffer:new cn(null),normalBuffer:new cn(null),texelSize:new cn(new pn)},blending:it,toneMapped:!1,depthWrite:!1,depthTest:!1,fragmentShader:PA,vertexShader:FA})}set depthBuffer(e){this.uniforms.depthBuffer.value=e}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=Qe){this.depthBuffer=e,this.depthPacking=t}set normalBuffer(e){this.uniforms.normalBuffer.value=e,e===null?delete this.defines.DOWNSAMPLE_NORMALS:this.defines.DOWNSAMPLE_NORMALS=`1`,this.needsUpdate=!0}setNormalBuffer(e){this.normalBuffer=e}setTexelSize(e,t){this.uniforms.texelSize.value.set(e,t)}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},LA=class extends Nk{constructor({normalBuffer:e=null,resolutionScale:t=.5,width:n=Yk.AUTO_SIZE,height:r=Yk.AUTO_SIZE,resolutionX:i=n,resolutionY:a=r}={}){super(`DepthDownsamplingPass`);let o=new IA;o.normalBuffer=e,this.fullscreenMaterial=o,this.needsDepthTexture=!0,this.needsSwap=!1,this.renderTarget=new yn(1,1,{minFilter:Lt,magFilter:Lt,depthBuffer:!1,type:Pe}),this.renderTarget.texture.name=`DepthDownsamplingPass.Target`,this.renderTarget.texture.generateMipmaps=!1;let s=this.resolution=new Yk(this,i,a,t);s.addEventListener(`change`,e=>this.setSize(s.baseWidth,s.baseHeight))}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}getResolution(){return this.resolution}setDepthTexture(e,t=Qe){this.fullscreenMaterial.depthBuffer=e,this.fullscreenMaterial.depthPacking=t}render(e,t,n,r,i){e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){let n=this.resolution;n.setBaseSize(e,t),this.renderTarget.setSize(n.width,n.height),this.fullscreenMaterial.setSize(e,t)}initialize(e,t,n){let r=e.getContext(),i=r.getExtension(`EXT_color_buffer_float`)||r.getExtension(`EXT_color_buffer_half_float`);if(!i)throw Error(`Rendering to float texture is not supported.`)}},RA=`#include #include #include #define packFloatToRGBA(v) packDepthToRGBA(v) @@ -2358,12 +2358,12 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar); #include #endif #include -}`,zA=`uniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;VERTEX_HEAD void main(){vUv=position.xy*0.5+0.5;VERTEX_MAIN_SUPPORT gl_Position=vec4(position.xy,1.0,1.0);}`,BA=class extends xt{constructor(e,t,n,r,i=!1){super({name:`EffectMaterial`,defines:{THREE_REVISION:ct.replace(/\D+/g,``),DEPTH_PACKING:`0`,ENCODE_OUTPUT:`1`},uniforms:{inputBuffer:new cn(null),depthBuffer:new cn(null),resolution:new cn(new pn),texelSize:new cn(new pn),cameraNear:new cn(.3),cameraFar:new cn(1e3),aspect:new cn(1),time:new cn(0)},blending:nt,toneMapped:!1,depthWrite:!1,depthTest:!1,dithering:i}),e&&this.setShaderParts(e),t&&this.setDefines(t),n&&this.setUniforms(n),this.copyCameraSettings(r)}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}get depthBuffer(){return this.uniforms.depthBuffer.value}set depthBuffer(e){this.uniforms.depthBuffer.value=e}get depthPacking(){return Number(this.defines.DEPTH_PACKING)}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=Ze){this.depthBuffer=e,this.depthPacking=t}setShaderData(e){this.setShaderParts(e.shaderParts),this.setDefines(e.defines),this.setUniforms(e.uniforms),this.setExtensions(e.extensions)}setShaderParts(e){return this.fragmentShader=RA.replace(Wk.FRAGMENT_HEAD,e.get(Wk.FRAGMENT_HEAD)||``).replace(Wk.FRAGMENT_MAIN_UV,e.get(Wk.FRAGMENT_MAIN_UV)||``).replace(Wk.FRAGMENT_MAIN_IMAGE,e.get(Wk.FRAGMENT_MAIN_IMAGE)||``),this.vertexShader=zA.replace(Wk.VERTEX_HEAD,e.get(Wk.VERTEX_HEAD)||``).replace(Wk.VERTEX_MAIN_SUPPORT,e.get(Wk.VERTEX_MAIN_SUPPORT)||``),this.needsUpdate=!0,this}setDefines(e){for(let t of e.entries())this.defines[t[0]]=t[1];return this.needsUpdate=!0,this}setUniforms(e){for(let t of e.entries())this.uniforms[t[0]]=t[1];return this}setExtensions(e){this.extensions={};for(let t of e)this.extensions[t]=!0;return this}get encodeOutput(){return this.defines.ENCODE_OUTPUT!==void 0}set encodeOutput(e){this.encodeOutput!==e&&(e?this.defines.ENCODE_OUTPUT=`1`:delete this.defines.ENCODE_OUTPUT,this.needsUpdate=!0)}isOutputEncodingEnabled(e){return this.encodeOutput}setOutputEncodingEnabled(e){this.encodeOutput=e}get time(){return this.uniforms.time.value}set time(e){this.uniforms.time.value=e}setDeltaTime(e){this.uniforms.time.value+=e}adoptCameraSettings(e){this.copyCameraSettings(e)}copyCameraSettings(e){e&&(this.uniforms.cameraNear.value=e.near,this.uniforms.cameraFar.value=e.far,e instanceof at?this.defines.PERSPECTIVE_CAMERA=`1`:delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}setSize(e,t){let n=this.uniforms;n.resolution.value.set(e,t),n.texelSize.value.set(1/e,1/t),n.aspect.value=e/t}static get Section(){return Wk}};Number(ct.replace(/\D+/g,``));var VA=255/256;new Float32Array([VA/256**3,VA/256**2,VA/256,VA]),new Float32Array([VA,VA/256,VA/256**2,1/256**3]);function HA(e,t,n){for(let r of t){let t=`$1`+e+r.charAt(0).toUpperCase()+r.slice(1),i=RegExp(`([^\\.])(\\b`+r+`\\b)`,`g`);for(let e of n.entries())e[1]!==null&&n.set(e[0],e[1].replace(i,t))}}function UA(e,t,n){let r=t.getFragmentShader(),i=t.getVertexShader(),a=r!==void 0&&/mainImage/.test(r),o=r!==void 0&&/mainUv/.test(r);if(n.attributes|=t.getAttributes(),r===void 0)throw Error(`Missing fragment shader (${t.name})`);if(o&&(n.attributes&Uk.CONVOLUTION)!==0)throw Error(`Effects that transform UVs are incompatible with convolution effects (${t.name})`);if(!a&&!o)throw Error(`Could not find mainImage or mainUv function (${t.name})`);{let s=/\w+\s+(\w+)\([\w\s,]*\)\s*{/g,c=n.shaderParts,l=c.get(Wk.FRAGMENT_HEAD)||``,u=c.get(Wk.FRAGMENT_MAIN_UV)||``,d=c.get(Wk.FRAGMENT_MAIN_IMAGE)||``,f=c.get(Wk.VERTEX_HEAD)||``,p=c.get(Wk.VERTEX_MAIN_SUPPORT)||``,m=new Set,h=new Set;if(o&&(u+=` ${e}MainUv(UV); +}`,zA=`uniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;VERTEX_HEAD void main(){vUv=position.xy*0.5+0.5;VERTEX_MAIN_SUPPORT gl_Position=vec4(position.xy,1.0,1.0);}`,BA=class extends tt{constructor(e,t,n,r,i=!1){super({name:`EffectMaterial`,defines:{THREE_REVISION:ut.replace(/\D+/g,``),DEPTH_PACKING:`0`,ENCODE_OUTPUT:`1`},uniforms:{inputBuffer:new cn(null),depthBuffer:new cn(null),resolution:new cn(new pn),texelSize:new cn(new pn),cameraNear:new cn(.3),cameraFar:new cn(1e3),aspect:new cn(1),time:new cn(0)},blending:it,toneMapped:!1,depthWrite:!1,depthTest:!1,dithering:i}),e&&this.setShaderParts(e),t&&this.setDefines(t),n&&this.setUniforms(n),this.copyCameraSettings(r)}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}get depthBuffer(){return this.uniforms.depthBuffer.value}set depthBuffer(e){this.uniforms.depthBuffer.value=e}get depthPacking(){return Number(this.defines.DEPTH_PACKING)}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=Qe){this.depthBuffer=e,this.depthPacking=t}setShaderData(e){this.setShaderParts(e.shaderParts),this.setDefines(e.defines),this.setUniforms(e.uniforms),this.setExtensions(e.extensions)}setShaderParts(e){return this.fragmentShader=RA.replace(Wk.FRAGMENT_HEAD,e.get(Wk.FRAGMENT_HEAD)||``).replace(Wk.FRAGMENT_MAIN_UV,e.get(Wk.FRAGMENT_MAIN_UV)||``).replace(Wk.FRAGMENT_MAIN_IMAGE,e.get(Wk.FRAGMENT_MAIN_IMAGE)||``),this.vertexShader=zA.replace(Wk.VERTEX_HEAD,e.get(Wk.VERTEX_HEAD)||``).replace(Wk.VERTEX_MAIN_SUPPORT,e.get(Wk.VERTEX_MAIN_SUPPORT)||``),this.needsUpdate=!0,this}setDefines(e){for(let t of e.entries())this.defines[t[0]]=t[1];return this.needsUpdate=!0,this}setUniforms(e){for(let t of e.entries())this.uniforms[t[0]]=t[1];return this}setExtensions(e){this.extensions={};for(let t of e)this.extensions[t]=!0;return this}get encodeOutput(){return this.defines.ENCODE_OUTPUT!==void 0}set encodeOutput(e){this.encodeOutput!==e&&(e?this.defines.ENCODE_OUTPUT=`1`:delete this.defines.ENCODE_OUTPUT,this.needsUpdate=!0)}isOutputEncodingEnabled(e){return this.encodeOutput}setOutputEncodingEnabled(e){this.encodeOutput=e}get time(){return this.uniforms.time.value}set time(e){this.uniforms.time.value=e}setDeltaTime(e){this.uniforms.time.value+=e}adoptCameraSettings(e){this.copyCameraSettings(e)}copyCameraSettings(e){e&&(this.uniforms.cameraNear.value=e.near,this.uniforms.cameraFar.value=e.far,e instanceof st?this.defines.PERSPECTIVE_CAMERA=`1`:delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}setSize(e,t){let n=this.uniforms;n.resolution.value.set(e,t),n.texelSize.value.set(1/e,1/t),n.aspect.value=e/t}static get Section(){return Wk}};Number(ut.replace(/\D+/g,``));var VA=255/256;new Float32Array([VA/256**3,VA/256**2,VA/256,VA]),new Float32Array([VA,VA/256,VA/256**2,1/256**3]);function HA(e,t,n){for(let r of t){let t=`$1`+e+r.charAt(0).toUpperCase()+r.slice(1),i=RegExp(`([^\\.])(\\b`+r+`\\b)`,`g`);for(let e of n.entries())e[1]!==null&&n.set(e[0],e[1].replace(i,t))}}function UA(e,t,n){let r=t.getFragmentShader(),i=t.getVertexShader(),a=r!==void 0&&/mainImage/.test(r),o=r!==void 0&&/mainUv/.test(r);if(n.attributes|=t.getAttributes(),r===void 0)throw Error(`Missing fragment shader (${t.name})`);if(o&&(n.attributes&Uk.CONVOLUTION)!==0)throw Error(`Effects that transform UVs are incompatible with convolution effects (${t.name})`);if(!a&&!o)throw Error(`Could not find mainImage or mainUv function (${t.name})`);{let s=/\w+\s+(\w+)\([\w\s,]*\)\s*{/g,c=n.shaderParts,l=c.get(Wk.FRAGMENT_HEAD)||``,u=c.get(Wk.FRAGMENT_MAIN_UV)||``,d=c.get(Wk.FRAGMENT_MAIN_IMAGE)||``,f=c.get(Wk.VERTEX_HEAD)||``,p=c.get(Wk.VERTEX_MAIN_SUPPORT)||``,m=new Set,h=new Set;if(o&&(u+=` ${e}MainUv(UV); `,n.uvTransformation=!0),i!==null&&/mainSupport/.test(i)){let t=/mainSupport *\([\w\s]*?uv\s*?\)/.test(i);p+=` ${e}MainSupport(`,p+=t?`vUv); `:`); -`;for(let e of i.matchAll(/(?:varying\s+\w+\s+([\S\s]*?);)/g))for(let t of e[1].split(/\s*,\s*/))n.varyings.add(t),m.add(t),h.add(t);for(let e of i.matchAll(s))h.add(e[1])}for(let e of r.matchAll(s))h.add(e[1]);for(let e of t.defines.keys())h.add(e.replace(/\([\w\s,]*\)/g,``));for(let e of t.uniforms.keys())h.add(e);h.delete(`while`),h.delete(`for`),h.delete(`if`),t.uniforms.forEach((t,r)=>n.uniforms.set(e+r.charAt(0).toUpperCase()+r.slice(1),t)),t.defines.forEach((t,r)=>n.defines.set(e+r.charAt(0).toUpperCase()+r.slice(1),t));let ee=new Map([[`fragment`,r],[`vertex`,i]]);HA(e,h,n.defines),HA(e,h,ee),r=ee.get(`fragment`),i=ee.get(`vertex`);let te=t.blendMode;if(n.blendModes.set(te.blendFunction,te),a){t.inputColorSpace!==null&&t.inputColorSpace!==n.colorSpace&&(d+=t.inputColorSpace===vt?`color0 = sRGBTransferOETF(color0); +`;for(let e of i.matchAll(/(?:varying\s+\w+\s+([\S\s]*?);)/g))for(let t of e[1].split(/\s*,\s*/))n.varyings.add(t),m.add(t),h.add(t);for(let e of i.matchAll(s))h.add(e[1])}for(let e of r.matchAll(s))h.add(e[1]);for(let e of t.defines.keys())h.add(e.replace(/\([\w\s,]*\)/g,``));for(let e of t.uniforms.keys())h.add(e);h.delete(`while`),h.delete(`for`),h.delete(`if`),t.uniforms.forEach((t,r)=>n.uniforms.set(e+r.charAt(0).toUpperCase()+r.slice(1),t)),t.defines.forEach((t,r)=>n.defines.set(e+r.charAt(0).toUpperCase()+r.slice(1),t));let ee=new Map([[`fragment`,r],[`vertex`,i]]);HA(e,h,n.defines),HA(e,h,ee),r=ee.get(`fragment`),i=ee.get(`vertex`);let te=t.blendMode;if(n.blendModes.set(te.blendFunction,te),a){t.inputColorSpace!==null&&t.inputColorSpace!==n.colorSpace&&(d+=t.inputColorSpace===bt?`color0 = sRGBTransferOETF(color0); `:`color0 = sRGBToLinear(color0); - `),t.outputColorSpace===rt?t.inputColorSpace!==null&&(n.colorSpace=t.inputColorSpace):n.colorSpace=t.outputColorSpace;let i=/MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;d+=`${e}MainImage(color0, UV, `,(n.attributes&Uk.DEPTH)!==0&&i.test(r)&&(d+=`depth, `,n.readDepth=!0),d+=`color1); + `),t.outputColorSpace===at?t.inputColorSpace!==null&&(n.colorSpace=t.inputColorSpace):n.colorSpace=t.outputColorSpace;let i=/MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;d+=`${e}MainImage(color0, UV, `,(n.attributes&Uk.DEPTH)!==0&&i.test(r)&&(d+=`depth, `,n.readDepth=!0),d+=`color1); `;let a=e+`BlendOpacity`;n.uniforms.set(a,te.opacity),d+=`color0 = blend${te.blendFunction}(color0, color1, ${a}); `,l+=`uniform float ${a}; @@ -2373,10 +2373,10 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar); `),c.set(Wk.FRAGMENT_HEAD,l),c.set(Wk.FRAGMENT_MAIN_UV,u),c.set(Wk.FRAGMENT_MAIN_IMAGE,d),c.set(Wk.VERTEX_HEAD,f),c.set(Wk.VERTEX_MAIN_SUPPORT,p),t.extensions!==null)for(let e of t.extensions)n.extensions.add(e)}}var WA=class extends Nk{constructor(e,...t){super(`EffectPass`),this.fullscreenMaterial=new BA(null,null,null,e),this.listener=e=>this.handleEvent(e),this.effects=[],this.setEffects(t),this.skipRendering=!1,this.minTime=1,this.maxTime=1/0,this.timeScale=1}set mainScene(e){for(let t of this.effects)t.mainScene=e}set mainCamera(e){this.fullscreenMaterial.copyCameraSettings(e);for(let t of this.effects)t.mainCamera=e}get encodeOutput(){return this.fullscreenMaterial.encodeOutput}set encodeOutput(e){this.fullscreenMaterial.encodeOutput=e}get dithering(){return this.fullscreenMaterial.dithering}set dithering(e){let t=this.fullscreenMaterial;t.dithering=e,t.needsUpdate=!0}setEffects(e){for(let e of this.effects)e.removeEventListener(`change`,this.listener);this.effects=e.sort((e,t)=>t.attributes-e.attributes);for(let e of this.effects)e.addEventListener(`change`,this.listener)}updateMaterial(){let e=new Gk,t=0;for(let n of this.effects)if(n.blendMode.blendFunction===$.DST)e.attributes|=n.getAttributes()&Uk.DEPTH;else if((e.attributes&n.getAttributes()&Uk.CONVOLUTION)!==0)throw Error(`Convolution effects cannot be merged (${n.name})`);else UA(`e`+ t++,n,e);let n=e.shaderParts.get(Wk.FRAGMENT_HEAD),r=e.shaderParts.get(Wk.FRAGMENT_MAIN_IMAGE),i=e.shaderParts.get(Wk.FRAGMENT_MAIN_UV),a=/\bblend\b/g;for(let t of e.blendModes.values())n+=t.getShaderCode().replace(a,`blend${t.blendFunction}`)+` `;(e.attributes&Uk.DEPTH)===0?this.needsDepthTexture=!1:(e.readDepth&&(r=`float depth = readDepth(UV); - `+r),this.needsDepthTexture=this.getDepthTexture()===null),e.colorSpace===vt&&(r+=`color0 = sRGBToLinear(color0); + `+r),this.needsDepthTexture=this.getDepthTexture()===null),e.colorSpace===bt&&(r+=`color0 = sRGBToLinear(color0); `),e.uvTransformation?(i=`vec2 transformedUv = vUv; `+i,e.defines.set(`UV`,`transformedUv`)):e.defines.set(`UV`,`vUv`),e.shaderParts.set(Wk.FRAGMENT_HEAD,n),e.shaderParts.set(Wk.FRAGMENT_MAIN_IMAGE,r),e.shaderParts.set(Wk.FRAGMENT_MAIN_UV,i);for(let[t,n]of e.shaderParts)n!==null&&e.shaderParts.set(t,n.trim().replace(/^#/,` -#`));this.skipRendering=t===0,this.needsSwap=!this.skipRendering,this.fullscreenMaterial.setShaderData(e)}recompile(){this.updateMaterial()}getDepthTexture(){return this.fullscreenMaterial.depthBuffer}setDepthTexture(e,t=Ze){this.fullscreenMaterial.depthBuffer=e,this.fullscreenMaterial.depthPacking=t;for(let n of this.effects)n.setDepthTexture(e,t)}render(e,t,n,r,i){for(let n of this.effects)n.update(e,t,r);if(!this.skipRendering||this.renderToScreen){let i=this.fullscreenMaterial;i.inputBuffer=t.texture,i.time+=r*this.timeScale,e.setRenderTarget(this.renderToScreen?null:n),e.render(this.scene,this.camera)}}setSize(e,t){this.fullscreenMaterial.setSize(e,t);for(let n of this.effects)n.setSize(e,t)}initialize(e,t,n){this.renderer=e;for(let r of this.effects)r.initialize(e,t,n);this.updateMaterial(),n!==void 0&&n!==un&&(this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH=`1`)}dispose(){super.dispose();for(let e of this.effects)e.removeEventListener(`change`,this.listener),e.dispose()}handleEvent(e){switch(e.type){case`change`:this.recompile();break}}},GA=class extends Nk{constructor(e,t,{renderTarget:n,resolutionScale:r=1,width:i=Yk.AUTO_SIZE,height:a=Yk.AUTO_SIZE,resolutionX:o=i,resolutionY:s=a}={}){super(`NormalPass`),this.needsSwap=!1,this.renderPass=new jA(e,t,new Nt);let c=this.renderPass;c.ignoreBackground=!0,c.skipShadowMapUpdate=!0;let l=c.getClearPass();l.overrideClearColor=new be(7829503),l.overrideClearAlpha=1,this.renderTarget=n,this.renderTarget===void 0&&(this.renderTarget=new yn(1,1,{minFilter:It,magFilter:It}),this.renderTarget.texture.name=`NormalPass.Target`);let u=this.resolution=new Yk(this,o,s,r);u.addEventListener(`change`,e=>this.setSize(u.baseWidth,u.baseHeight))}set mainScene(e){this.renderPass.mainScene=e}set mainCamera(e){this.renderPass.mainCamera=e}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}getResolution(){return this.resolution}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}render(e,t,n,r,i){let a=this.renderToScreen?null:this.renderTarget;this.renderPass.render(e,a,a)}setSize(e,t){let n=this.resolution;n.setBaseSize(e,t),this.renderTarget.setSize(n.width,n.height)}};new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,0,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([1,0,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([0,1,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([0,1,1]),new Float32Array([1,1,1]),new Float32Array(2),new Float32Array(2),new Float32Array([0,-.25,.25,-.125,.125,-.375,.375]),new Float32Array([0,0]),new Float32Array([.25,-.25]),new Float32Array([-.25,.25]),new Float32Array([.125,-.125]),new Float32Array([-.125,.125]),new Uint8Array([0,0]),new Uint8Array([3,0]),new Uint8Array([0,3]),new Uint8Array([3,3]),new Uint8Array([1,0]),new Uint8Array([4,0]),new Uint8Array([1,3]),new Uint8Array([4,3]),new Uint8Array([0,1]),new Uint8Array([3,1]),new Uint8Array([0,4]),new Uint8Array([3,4]),new Uint8Array([1,1]),new Uint8Array([4,1]),new Uint8Array([1,4]),new Uint8Array([4,4]),new Uint8Array([0,0]),new Uint8Array([1,0]),new Uint8Array([0,2]),new Uint8Array([1,2]),new Uint8Array([2,0]),new Uint8Array([3,0]),new Uint8Array([2,2]),new Uint8Array([3,2]),new Uint8Array([0,1]),new Uint8Array([1,1]),new Uint8Array([0,3]),new Uint8Array([1,3]),new Uint8Array([2,1]),new Uint8Array([3,1]),new Uint8Array([2,3]),new Uint8Array([3,3]),qA(0,0,0,0),new Float32Array([0,0,0,0]),qA(0,0,0,1),new Float32Array([0,0,0,1]),qA(0,0,1,0),new Float32Array([0,0,1,0]),qA(0,0,1,1),new Float32Array([0,0,1,1]),qA(0,1,0,0),new Float32Array([0,1,0,0]),qA(0,1,0,1),new Float32Array([0,1,0,1]),qA(0,1,1,0),new Float32Array([0,1,1,0]),qA(0,1,1,1),new Float32Array([0,1,1,1]),qA(1,0,0,0),new Float32Array([1,0,0,0]),qA(1,0,0,1),new Float32Array([1,0,0,1]),qA(1,0,1,0),new Float32Array([1,0,1,0]),qA(1,0,1,1),new Float32Array([1,0,1,1]),qA(1,1,0,0),new Float32Array([1,1,0,0]),qA(1,1,0,1),new Float32Array([1,1,0,1]),qA(1,1,1,0),new Float32Array([1,1,1,0]),qA(1,1,1,1),new Float32Array([1,1,1,1]);function KA(e,t,n){return e+(t-e)*n}function qA(e,t,n,r){let i=KA(e,t,.75),a=KA(n,r,.75);return KA(i,a,.875)}var JA=class{static isWebGL2Available(){try{let e=document.createElement(`canvas`);return!!(window.WebGL2RenderingContext&&e.getContext(`webgl2`))}catch{return!1}}static isColorSpaceAvailable(e){try{let t=document.createElement(`canvas`),n=window.WebGL2RenderingContext&&t.getContext(`webgl2`);return n.drawingBufferColorSpace=e,n.drawingBufferColorSpace===e}catch{return!1}}static getWebGL2ErrorMessage(){return this.getErrorMessage(2)}static getErrorMessage(e){let t={1:`WebGL`,2:`WebGL 2`},n={1:window.WebGLRenderingContext,2:window.WebGL2RenderingContext},r=`Your $0 does not seem to support $1`,i=document.createElement(`div`);return i.id=`webglmessage`,i.style.fontFamily=`monospace`,i.style.fontSize=`13px`,i.style.fontWeight=`normal`,i.style.textAlign=`center`,i.style.background=`#fff`,i.style.color=`#000`,i.style.padding=`1.5em`,i.style.width=`400px`,i.style.margin=`5em auto 0`,r=n[e]?r.replace(`$0`,`graphics card`):r.replace(`$0`,`browser`),r=r.replace(`$1`,t[e]),i.innerHTML=r,i}static isWebGLAvailable(){console.warn(`isWebGLAvailable() has been deprecated and will be removed in r178. Use isWebGL2Available() instead.`);try{let e=document.createElement(`canvas`);return!!(window.WebGLRenderingContext&&(e.getContext(`webgl`)||e.getContext(`experimental-webgl`)))}catch{return!1}}static getWebGLErrorMessage(){return console.warn(`getWebGLErrorMessage() has been deprecated and will be removed in r178. Use getWebGL2ErrorMessage() instead.`),this.getErrorMessage(1)}};const YA=Symbol(`effectComposerPmndrs`),XA=qt({__name:`EffectComposerPmndrs`,props:{enabled:{type:Boolean,default:!0},depthBuffer:{type:Boolean,default:void 0},disableNormalPass:{type:Boolean,default:!1},stencilBuffer:{type:Boolean,default:void 0},resolutionScale:{},autoClear:{type:Boolean,default:!0},multisampling:{default:0},frameBufferType:{default:Ie}},emits:[`render`],setup(e,{expose:t,emit:n}){let r=e,i=n,{scene:a,camera:o,renderer:s,sizes:c,render:l}=Ue(),u=Tn(null),d=null,f=null;tn(YA,u),t({composer:u});let p=()=>{u.value&&(f=new GA(a.value,o.value),f.enabled=!1,u.value.addPass(f),r.resolutionScale!==void 0&&JA.isWebGL2Available()&&(d=new LA({normalBuffer:f.texture,resolutionScale:r.resolutionScale}),d.enabled=!1,u.value.addPass(d)))},m=Cn(()=>{let e=new Hk,t={depthBuffer:r.depthBuffer===void 0?e.inputBuffer.depthBuffer:r.depthBuffer,stencilBuffer:r.stencilBuffer===void 0?e.inputBuffer.stencilBuffer:r.stencilBuffer,multisampling:JA.isWebGL2Available()?r.multisampling===void 0?e.multisampling:r.multisampling:0,frameBufferType:r.frameBufferType===void 0?Ie:r.frameBufferType};return e.dispose(),t}),h=()=>{var e;!s.value&&!a.value&&!o.value||((e=u.value)==null||e.dispose(),u.value=new Hk(s.value,m.value),u.value.addPass(new jA(a.value,o.value)),r.disableNormalPass||p())};an([s,a,o,()=>r.disableNormalPass],()=>{!c.width.value||!c.height.value||h()}),an(()=>[c.width.value,c.height.value],([e,t])=>{!e&&!t||(u.value?u.value.setSize(e,t):h())},{immediate:!0});let{render:ee}=He();return ee(()=>{if(r.enabled&&s.value&&u.value&&c.width.value&&c.height.value&&l.frames.value>0){let e=s.value.autoClear;s.value.autoClear=r.autoClear,r.stencilBuffer&&!r.autoClear&&s.value.clearStencil(),u.value.render(),i(`render`,u.value),s.value.autoClear=e}l.frames.value=l.mode.value===`always`?1:Math.max(0,l.frames.value-1)}),$t(()=>{var e;(e=u.value)==null||e.dispose()}),(e,t)=>nn(e.$slots,`default`)}}),ZA=(e,t,n)=>{let r=Yt(YA),i=Tn(null),a=Tn(null),{scene:o,camera:s,invalidate:c}=Ue();an(t,()=>c());let l=()=>{var e,t,n;i.value&&((e=r?.value)==null||e.removePass(i.value)),(t=a.value)==null||t.dispose(),(n=i.value)==null||n.dispose()},u=t=>{!s.value||!(r!=null&&r.value)||!o.value||(a.value=e(),i.value=new WA(s.value,a.value),r.value.addPass(i.value,t))};n&&an(()=>n.map(e=>t[e]),()=>{var e;if(!(r!=null&&r.value))return;let t=(e=r.value)?.passes.findIndex(e=>e===i.value);~t&&(l(),u(t))}),on(()=>{!s.value||!(a!=null&&a.value)||(a.value.mainCamera=s.value)});let d=on(()=>{!s.value||!(r!=null&&r.value)||!o.value||(Zt(()=>d()),!a.value&&u())});return $t(()=>{l()}),{pass:i,effect:a}},QA=/([^[.\]])+/g,$A=(e,t)=>{if(!t)return;let n=Array.isArray(t)?t:t.match(QA);return n?.reduce((e,t)=>e&&e[t],e)},ej=(e,t,n)=>{let r=Array.isArray(t)?t:t.match(QA);r&&r.reduce((e,t,i)=>(e[t]===void 0&&(e[t]={}),i===r.length-1&&(e[t]=n),e[t]),e)},tj=(e,t,n,r,i={})=>an(e,i=>{var a;if(t.value)if(i===void 0){let e=r();ej(t.value,n,$A(e,n)),(a=e.dispose)==null||a.call(e)}else ej(t.value,n,e())},i),nj=(e,t,n)=>e.map(([e,r])=>tj(e,t,r,n));Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const rj=qt({__name:`HueSaturationPmndrs`,props:{saturation:{},hue:{},blendFunction:{}},setup(e,{expose:t}){let n=e,{pass:r,effect:i}=ZA(()=>new NA(n),n);return t({pass:r,effect:i}),nj([[()=>n.blendFunction,`blendMode.blendFunction`],[()=>n.hue,`hue`],[()=>n.saturation,`saturation`]],i,()=>new NA),()=>{}}});Boolean,Boolean;const ij={name:`CopyShader`,uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` +#`));this.skipRendering=t===0,this.needsSwap=!this.skipRendering,this.fullscreenMaterial.setShaderData(e)}recompile(){this.updateMaterial()}getDepthTexture(){return this.fullscreenMaterial.depthBuffer}setDepthTexture(e,t=Qe){this.fullscreenMaterial.depthBuffer=e,this.fullscreenMaterial.depthPacking=t;for(let n of this.effects)n.setDepthTexture(e,t)}render(e,t,n,r,i){for(let n of this.effects)n.update(e,t,r);if(!this.skipRendering||this.renderToScreen){let i=this.fullscreenMaterial;i.inputBuffer=t.texture,i.time+=r*this.timeScale,e.setRenderTarget(this.renderToScreen?null:n),e.render(this.scene,this.camera)}}setSize(e,t){this.fullscreenMaterial.setSize(e,t);for(let n of this.effects)n.setSize(e,t)}initialize(e,t,n){this.renderer=e;for(let r of this.effects)r.initialize(e,t,n);this.updateMaterial(),n!==void 0&&n!==un&&(this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH=`1`)}dispose(){super.dispose();for(let e of this.effects)e.removeEventListener(`change`,this.listener),e.dispose()}handleEvent(e){switch(e.type){case`change`:this.recompile();break}}},GA=class extends Nk{constructor(e,t,{renderTarget:n,resolutionScale:r=1,width:i=Yk.AUTO_SIZE,height:a=Yk.AUTO_SIZE,resolutionX:o=i,resolutionY:s=a}={}){super(`NormalPass`),this.needsSwap=!1,this.renderPass=new jA(e,t,new Pt);let c=this.renderPass;c.ignoreBackground=!0,c.skipShadowMapUpdate=!0;let l=c.getClearPass();l.overrideClearColor=new be(7829503),l.overrideClearAlpha=1,this.renderTarget=n,this.renderTarget===void 0&&(this.renderTarget=new yn(1,1,{minFilter:Lt,magFilter:Lt}),this.renderTarget.texture.name=`NormalPass.Target`);let u=this.resolution=new Yk(this,o,s,r);u.addEventListener(`change`,e=>this.setSize(u.baseWidth,u.baseHeight))}set mainScene(e){this.renderPass.mainScene=e}set mainCamera(e){this.renderPass.mainCamera=e}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}getResolution(){return this.resolution}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}render(e,t,n,r,i){let a=this.renderToScreen?null:this.renderTarget;this.renderPass.render(e,a,a)}setSize(e,t){let n=this.resolution;n.setBaseSize(e,t),this.renderTarget.setSize(n.width,n.height)}};new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array(3),new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([1,0,0]),new Float32Array([1,0,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([1,0,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([1,1,0]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,1,0]),new Float32Array([0,1,1]),new Float32Array([1,1,1]),new Float32Array([0,0,0]),new Float32Array([0,0,1]),new Float32Array([0,1,1]),new Float32Array([1,1,1]),new Float32Array(2),new Float32Array(2),new Float32Array([0,-.25,.25,-.125,.125,-.375,.375]),new Float32Array([0,0]),new Float32Array([.25,-.25]),new Float32Array([-.25,.25]),new Float32Array([.125,-.125]),new Float32Array([-.125,.125]),new Uint8Array([0,0]),new Uint8Array([3,0]),new Uint8Array([0,3]),new Uint8Array([3,3]),new Uint8Array([1,0]),new Uint8Array([4,0]),new Uint8Array([1,3]),new Uint8Array([4,3]),new Uint8Array([0,1]),new Uint8Array([3,1]),new Uint8Array([0,4]),new Uint8Array([3,4]),new Uint8Array([1,1]),new Uint8Array([4,1]),new Uint8Array([1,4]),new Uint8Array([4,4]),new Uint8Array([0,0]),new Uint8Array([1,0]),new Uint8Array([0,2]),new Uint8Array([1,2]),new Uint8Array([2,0]),new Uint8Array([3,0]),new Uint8Array([2,2]),new Uint8Array([3,2]),new Uint8Array([0,1]),new Uint8Array([1,1]),new Uint8Array([0,3]),new Uint8Array([1,3]),new Uint8Array([2,1]),new Uint8Array([3,1]),new Uint8Array([2,3]),new Uint8Array([3,3]),qA(0,0,0,0),new Float32Array([0,0,0,0]),qA(0,0,0,1),new Float32Array([0,0,0,1]),qA(0,0,1,0),new Float32Array([0,0,1,0]),qA(0,0,1,1),new Float32Array([0,0,1,1]),qA(0,1,0,0),new Float32Array([0,1,0,0]),qA(0,1,0,1),new Float32Array([0,1,0,1]),qA(0,1,1,0),new Float32Array([0,1,1,0]),qA(0,1,1,1),new Float32Array([0,1,1,1]),qA(1,0,0,0),new Float32Array([1,0,0,0]),qA(1,0,0,1),new Float32Array([1,0,0,1]),qA(1,0,1,0),new Float32Array([1,0,1,0]),qA(1,0,1,1),new Float32Array([1,0,1,1]),qA(1,1,0,0),new Float32Array([1,1,0,0]),qA(1,1,0,1),new Float32Array([1,1,0,1]),qA(1,1,1,0),new Float32Array([1,1,1,0]),qA(1,1,1,1),new Float32Array([1,1,1,1]);function KA(e,t,n){return e+(t-e)*n}function qA(e,t,n,r){let i=KA(e,t,.75),a=KA(n,r,.75);return KA(i,a,.875)}var JA=class{static isWebGL2Available(){try{let e=document.createElement(`canvas`);return!!(window.WebGL2RenderingContext&&e.getContext(`webgl2`))}catch{return!1}}static isColorSpaceAvailable(e){try{let t=document.createElement(`canvas`),n=window.WebGL2RenderingContext&&t.getContext(`webgl2`);return n.drawingBufferColorSpace=e,n.drawingBufferColorSpace===e}catch{return!1}}static getWebGL2ErrorMessage(){return this.getErrorMessage(2)}static getErrorMessage(e){let t={1:`WebGL`,2:`WebGL 2`},n={1:window.WebGLRenderingContext,2:window.WebGL2RenderingContext},r=`Your $0 does not seem to support $1`,i=document.createElement(`div`);return i.id=`webglmessage`,i.style.fontFamily=`monospace`,i.style.fontSize=`13px`,i.style.fontWeight=`normal`,i.style.textAlign=`center`,i.style.background=`#fff`,i.style.color=`#000`,i.style.padding=`1.5em`,i.style.width=`400px`,i.style.margin=`5em auto 0`,r=n[e]?r.replace(`$0`,`graphics card`):r.replace(`$0`,`browser`),r=r.replace(`$1`,t[e]),i.innerHTML=r,i}static isWebGLAvailable(){console.warn(`isWebGLAvailable() has been deprecated and will be removed in r178. Use isWebGL2Available() instead.`);try{let e=document.createElement(`canvas`);return!!(window.WebGLRenderingContext&&(e.getContext(`webgl`)||e.getContext(`experimental-webgl`)))}catch{return!1}}static getWebGLErrorMessage(){return console.warn(`getWebGLErrorMessage() has been deprecated and will be removed in r178. Use getWebGL2ErrorMessage() instead.`),this.getErrorMessage(1)}};const YA=Symbol(`effectComposerPmndrs`),XA=Jt({__name:`EffectComposerPmndrs`,props:{enabled:{type:Boolean,default:!0},depthBuffer:{type:Boolean,default:void 0},disableNormalPass:{type:Boolean,default:!1},stencilBuffer:{type:Boolean,default:void 0},resolutionScale:{},autoClear:{type:Boolean,default:!0},multisampling:{default:0},frameBufferType:{default:Ie}},emits:[`render`],setup(e,{expose:t,emit:n}){let r=e,i=n,{scene:a,camera:o,renderer:s,sizes:c,render:l}=We(),u=Tn(null),d=null,f=null;nn(YA,u),t({composer:u});let p=()=>{u.value&&(f=new GA(a.value,o.value),f.enabled=!1,u.value.addPass(f),r.resolutionScale!==void 0&&JA.isWebGL2Available()&&(d=new LA({normalBuffer:f.texture,resolutionScale:r.resolutionScale}),d.enabled=!1,u.value.addPass(d)))},m=Cn(()=>{let e=new Hk,t={depthBuffer:r.depthBuffer===void 0?e.inputBuffer.depthBuffer:r.depthBuffer,stencilBuffer:r.stencilBuffer===void 0?e.inputBuffer.stencilBuffer:r.stencilBuffer,multisampling:JA.isWebGL2Available()?r.multisampling===void 0?e.multisampling:r.multisampling:0,frameBufferType:r.frameBufferType===void 0?Ie:r.frameBufferType};return e.dispose(),t}),h=()=>{var e;!s.value&&!a.value&&!o.value||((e=u.value)==null||e.dispose(),u.value=new Hk(s.value,m.value),u.value.addPass(new jA(a.value,o.value)),r.disableNormalPass||p())};on([s,a,o,()=>r.disableNormalPass],()=>{!c.width.value||!c.height.value||h()}),on(()=>[c.width.value,c.height.value],([e,t])=>{!e&&!t||(u.value?u.value.setSize(e,t):h())},{immediate:!0});let{render:ee}=Ue();return ee(()=>{if(r.enabled&&s.value&&u.value&&c.width.value&&c.height.value&&l.frames.value>0){let e=s.value.autoClear;s.value.autoClear=r.autoClear,r.stencilBuffer&&!r.autoClear&&s.value.clearStencil(),u.value.render(),i(`render`,u.value),s.value.autoClear=e}l.frames.value=l.mode.value===`always`?1:Math.max(0,l.frames.value-1)}),en(()=>{var e;(e=u.value)==null||e.dispose()}),(e,t)=>rn(e.$slots,`default`)}}),ZA=(e,t,n)=>{let r=Xt(YA),i=Tn(null),a=Tn(null),{scene:o,camera:s,invalidate:c}=We();on(t,()=>c());let l=()=>{var e,t,n;i.value&&((e=r?.value)==null||e.removePass(i.value)),(t=a.value)==null||t.dispose(),(n=i.value)==null||n.dispose()},u=t=>{!s.value||!(r!=null&&r.value)||!o.value||(a.value=e(),i.value=new WA(s.value,a.value),r.value.addPass(i.value,t))};n&&on(()=>n.map(e=>t[e]),()=>{var e;if(!(r!=null&&r.value))return;let t=(e=r.value)?.passes.findIndex(e=>e===i.value);~t&&(l(),u(t))}),sn(()=>{!s.value||!(a!=null&&a.value)||(a.value.mainCamera=s.value)});let d=sn(()=>{!s.value||!(r!=null&&r.value)||!o.value||(Qt(()=>d()),!a.value&&u())});return en(()=>{l()}),{pass:i,effect:a}},QA=/([^[.\]])+/g,$A=(e,t)=>{if(!t)return;let n=Array.isArray(t)?t:t.match(QA);return n?.reduce((e,t)=>e&&e[t],e)},ej=(e,t,n)=>{let r=Array.isArray(t)?t:t.match(QA);r&&r.reduce((e,t,i)=>(e[t]===void 0&&(e[t]={}),i===r.length-1&&(e[t]=n),e[t]),e)},tj=(e,t,n,r,i={})=>on(e,i=>{var a;if(t.value)if(i===void 0){let e=r();ej(t.value,n,$A(e,n)),(a=e.dispose)==null||a.call(e)}else ej(t.value,n,e())},i),nj=(e,t,n)=>e.map(([e,r])=>tj(e,t,r,n));Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const rj=Jt({__name:`HueSaturationPmndrs`,props:{saturation:{},hue:{},blendFunction:{}},setup(e,{expose:t}){let n=e,{pass:r,effect:i}=ZA(()=>new NA(n),n);return t({pass:r,effect:i}),nj([[()=>n.blendFunction,`blendMode.blendFunction`],[()=>n.hue,`hue`],[()=>n.saturation,`saturation`]],i,()=>new NA),()=>{}}});Boolean,Boolean;const ij={name:`CopyShader`,uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` varying vec2 vUv; @@ -2399,7 +2399,7 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar); gl_FragColor = opacity * texel; - }`};var aj=class{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error(`THREE.Pass: .render() must be implemented in derived pass.`)}dispose(){}};const oj=new it(-1,1,1,-1,0,1);var sj=class extends $e{constructor(){super(),this.setAttribute(`position`,new Ne([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute(`uv`,new Ne([0,2,0,0,2,0],2))}};const cj=new sj;var lj=class{constructor(e){this._mesh=new At(cj,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,oj)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}};Boolean,Boolean,Boolean,Math.PI/12*1,Math.PI/12*2,Math.PI/12*3,new pn(1/1024,1/512),new pn(1/1024,1/512),new pn(1/1024,1/512);const uj={name:`LuminosityHighPassShader`,shaderID:`luminosityHighPass`,uniforms:{tDiffuse:{value:null},luminosityThreshold:{value:1},smoothWidth:{value:1},defaultColor:{value:new be(0)},defaultOpacity:{value:0}},vertexShader:` + }`};var aj=class{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error(`THREE.Pass: .render() must be implemented in derived pass.`)}dispose(){}};const oj=new ot(-1,1,1,-1,0,1);var sj=class extends et{constructor(){super(),this.setAttribute(`position`,new Ne([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute(`uv`,new Ne([0,2,0,0,2,0],2))}};const cj=new sj;var lj=class{constructor(e){this._mesh=new jt(cj,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,oj)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}};Boolean,Boolean,Boolean,Math.PI/12*1,Math.PI/12*2,Math.PI/12*3,new pn(1/1024,1/512),new pn(1/1024,1/512),new pn(1/1024,1/512);const uj={name:`LuminosityHighPassShader`,shaderID:`luminosityHighPass`,uniforms:{tDiffuse:{value:null},luminosityThreshold:{value:1},smoothWidth:{value:1},defaultColor:{value:new be(0)},defaultOpacity:{value:0}},vertexShader:` varying vec2 vUv; @@ -2431,7 +2431,7 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar); gl_FragColor = mix( outputColor, texel, alpha ); - }`};var dj=class e extends aj{constructor(e,t,n,r){super(),this.strength=t===void 0?1:t,this.radius=n,this.threshold=r,this.resolution=e===void 0?new pn(256,256):new pn(e.x,e.y),this.clearColor=new be(0,0,0),this.renderTargetsHorizontal=[],this.renderTargetsVertical=[],this.nMips=5;let i=Math.round(this.resolution.x/2),a=Math.round(this.resolution.y/2);this.renderTargetBright=new yn(i,a,{type:Ie}),this.renderTargetBright.texture.name=`UnrealBloomPass.bright`,this.renderTargetBright.texture.generateMipmaps=!1;for(let e=0;e(i=s.indexOf(` + }`})}};dj.BlurDirectionX=new pn(1,0),dj.BlurDirectionY=new pn(0,1);var fj=class{static fromCubeTexture(e){let t=0,n=new mn,r=new mn,i=new be,a=[0,0,0,0,0,0,0,0,0],o=new Bt,s=o.coefficients;for(let o=0;o<6;o++){let c=e.image[o],l=c.width,u=c.height,d=document.createElement(`canvas`);d.width=l,d.height=u;let f=d.getContext(`2d`);f.drawImage(c,0,0,l,u);let p=f.getImageData(0,0,l,u),m=p.data,h=p.width,ee=2/h;for(let c=0,l=m.length;c(i=s.indexOf(` `))&&a=e.byteLength||!(l=n(e)))&&t(1,`no header found`),(u=l.match(r))||t(3,`bad initial token`),c.valid|=1,c.programtype=u[1],c.string+=l+` `;l=n(e),!1!==l;){if(c.string+=l+` `,l.charAt(0)===`#`){c.comments+=l+` -`;continue}if((u=l.match(i))&&(c.gamma=parseFloat(u[1])),(u=l.match(a))&&(c.exposure=parseFloat(u[1])),(u=l.match(o))&&(c.valid|=2,c.format=u[1]),(u=l.match(s))&&(c.valid|=4,c.height=parseInt(u[1],10),c.width=parseInt(u[2],10)),c.valid&2&&c.valid&4)break}return c.valid&2||t(3,`missing format specifier`),c.valid&4||t(3,`missing image size specifier`),c},i=function(e,n,r){let i=n;if(i<8||i>32767||e[0]!==2||e[1]!==2||e[2]&128)return new Uint8Array(e);i!==(e[2]<<8|e[3])&&t(3,`wrong scanline width`);let a=new Uint8Array(4*n*r);a.length||t(4,`unable to allocate buffer space`);let o=0,s=0,c=4*i,l=new Uint8Array(4),u=new Uint8Array(c),d=r;for(;d>0&&se.byteLength&&t(1),l[0]=e[s++],l[1]=e[s++],l[2]=e[s++],l[3]=e[s++],(l[0]!=2||l[1]!=2||(l[2]<<8|l[3])!=i)&&t(3,`bad rgbe scanline format`);let n=0,r;for(;n128;if(i&&(r-=128),(r===0||n+r>c)&&t(3,`bad scanline data`),i){let t=e[s++];for(let e=0;e!!u.value&&!!u.value).toBeTruthy(),d(),e||=hj,u.value.outputColorSpace=vt,u.value.toneMapping=Ke;try{let t=await new mj().loadAsync(e);t.mapping=Ae,t.generateMipmaps=!0,t.minFilter=Ct,t.magFilter=St,t.colorSpace=wt,o=new Ge(u.value);let n=o.fromEquirectangular(t);s=n;let d=new vn(256);d.fromEquirectangularTexture(u.value,t);let f=await fj.fromCubeRenderTarget(u.value,d);a.value=t;let p=l.value;p.environment=n.texture,r.asBackground&&(p.background=n.texture),p.backgroundBlurriness=r.backgroundBlurriness,p.backgroundIntensity=r.backgroundIntensity,c=t,i(`skyboxReady`,{hdri:c,irrSH:f.sh})}catch(e){console.warn(`Failed to load HDRI environment:`,e)}}return Qt(async()=>{await f(r.skyBoxSrc),an(()=>[r.skyBoxSrc],([e])=>{f(e)},{deep:!1})}),t({reload:async e=>await f(e)}),$t(async()=>{await d()}),(e,t)=>nn(e.$slots,`default`)}}),_j=gj;const vj=se(`vrm`,()=>{let{post:e,data:t}=de({name:`airi-stores-vrm`}),n=g([]),r=e=>{n.value.push(e)};function i(){e({type:`should-update-view`}),n.value.forEach(e=>e())}an(t,e=>{e.type===`should-update-view`&&n.value.forEach(e=>e())});let a=me(`settings/vrm/cameraScale`,1),o=me(`settings/vrm/modelSize`,{x:0,y:0,z:0}),s=me(`settings/vrm/modelOrigin`,{x:0,y:0,z:0}),c=me(`settings/vrm/modelOffset`,{x:0,y:0,z:0}),l=me(`settings/vrm/modelRotationY`,0),u=me(`settings/vrm/cameraFOV`,40),d=me(`settings/vrm/camera-position`,{x:0,y:0,z:-1}),f=me(`settings/vrm/cameraDistance`,0),p=me(`settings/vrm/scenes/scene/directional-light/position`,{x:0,y:0,z:-1}),m=me(`settings/vrm/scenes/scene/directional-light/target`,{x:0,y:0,z:0}),h=me(`settings/vrm/scenes/scene/directional-light/rotation`,{x:0,y:0,z:0}),ee=me(`settings/vrm/scenes/scene/directional-light/intensity`,2.02),te=me(`settings/vrm/scenes/scene/directional-light/color`,`#fffbf5`),ne=me(`settings/vrm/scenes/scene/hemisphere-light/sky-color`,`#FFFFFF`),re=me(`settings/vrm/scenes/scene/hemisphere-light/ground-color`,`#222222`),ie=me(`settings/vrm/scenes/scene/hemisphere-light/intensity`,.4),ae=me(`settings/vrm/scenes/scene/ambient-light/color`,`#FFFFFF`),oe=me(`settings/vrm/scenes/scene/ambient-light/intensity`,.6),se=me(`settings/vrm/lookAtTarget`,{x:0,y:0,z:0}),ce=me(`settings/vrm/isTracking`,!1),le=me(`settings/vrm/trackingMode`,`none`),ue=me(`settings/vrm/eyeHeight`,0),fe=me(`settings/vrm/envEnabled`,`skyBox`),pe=me(`settings/vrm/skyBoxUrl`,hj),he=me(`settings/vrm/skyBoxIntensity`,.1);return{modelSize:o,scale:a,modelOrigin:s,modelOffset:c,modelRotationY:l,cameraFOV:u,cameraPosition:d,cameraDistance:f,directionalLightPosition:p,directionalLightTarget:m,directionalLightRotation:h,directionalLightIntensity:ee,directionalLightColor:te,ambientLightIntensity:oe,ambientLightColor:ae,hemisphereSkyColor:ne,hemisphereGroundColor:re,hemisphereLightIntensity:ie,lookAtTarget:se,isTracking:ce,trackingMode:le,eyeHeight:ue,envSelect:fe,skyBoxSrc:pe,skyBoxIntensity:he,shouldUpdateView:i,onShouldUpdateView:r}}),yj=[`color`,`ground-color`,`intensity`],bj=[`color`,`intensity`],xj=[`color`,`position`,`intensity`],Sj={key:2,size:1};var Cj=qt({__name:`VRM`,props:{modelSrc:{},showAxes:{type:Boolean,default:!1},idleAnimation:{default:`/assets/vrm/animations/idle_loop.vrma`},paused:{type:Boolean,default:!1}},emits:[`loadModelProgress`,`error`],setup(e,{expose:t,emit:n}){let r=e,i=n,{x:a,y:o}=ae(),s=g(),{width:c,height:l}=pe(s),{cameraFOV:u,cameraPosition:d,cameraDistance:f,modelOrigin:p,trackingMode:m,lookAtTarget:h,eyeHeight:ee,directionalLightIntensity:te,directionalLightColor:ne,directionalLightPosition:ie,directionalLightRotation:oe,directionalLightTarget:se,ambientLightIntensity:le,ambientLightColor:ue,hemisphereLightIntensity:de,hemisphereSkyColor:fe,hemisphereGroundColor:me,envSelect:he,skyBoxSrc:ge}=ce(vj()),_e=g(),ve=Tn(new at),ye=Tn(),be=Tn(),xe=g(),Se=g();function Ce(e){be.value=e}let we={saturation:.3,hue:0,blendFunction:$.SRC},Te=!0,Ee=g(!1),De=g(!1),Oe=g(!1),ke=g(!1),Ae=new mt,Me=new pn,Ne=g(null),Pe=g(null);function Fe(e){Ne.value=e.hdri,Pe.value=e.irrSH||null}function Ie(){ke.value=!0}an(u,e=>{ve.value&&(ve.value.fov=e,ve.value.updateProjectionMatrix())}),an(()=>ye.value?.controls,e=>{if(e&&ve.value){Ee.value=!0;let t=()=>{if(Te)return;Te=!0;let e=ve.value.position,t=ye.value.controls.getDistance(),n=Math.abs(d.value.x-e.x)>1e-6||Math.abs(d.value.y-e.y)>1e-6||Math.abs(d.value.z-e.z)>1e-6,r=Math.abs(f.value-t)>1e-6;(n||r)&&(d.value={x:e.x,y:e.y,z:e.z},f.value=t),Te=!1};e.addEventListener(`change`,t)}});function Le(){De.value=!0}an([Ee,De,ke],([e,t])=>{if(e&&t&&ve.value&&ye.value&&ye.value.controls&&Se.value){Te=!0;try{ve.value.aspect=c.value/l.value,ve.value.fov=u.value,ye.value.setTarget(p.value),ve.value.position.set(d.value.x,d.value.y,d.value.z),ve.value.updateProjectionMatrix(),ye.value.controls.update(),f.value=ye.value.controls.getDistance(),Se.value.parent?.add(Se.value.target),Se.value.target.position.set(se.value.x,se.value.y,se.value.z),Se.value.target.updateMatrixWorld()}finally{Te=!1,Oe.value=!0}}}),an(f,e=>{if(!Te&&ve.value&&ye.value&&ye.value.controls){Te=!0;let t=new mn,n=ye.value.controls.target,r=new mn().subVectors(ve.value.position,n).normalize();t.copy(n).addScaledVector(r,e),ve.value.position.set(t.x,t.y,t.z),ye.value.update(),d.value={x:t.x,y:t.y,z:t.z}}Te=!1});function Re(e){_e.value?.lookAtUpdate(e),h.value=e}function ze(e,t){Me.x=e/window.innerWidth*2-1,Me.y=-(t/window.innerHeight)*2+1,Ae.setFromCamera(Me,ve.value);let n=new mn;ve.value.getWorldDirection(n);let r=new ot;r.setFromNormalAndCoplanarPoint(n,ve.value.position.clone().add(n.multiplyScalar(1)));let i=new mn;Ae.ray.intersectPlane(r,i),h.value={x:i.x,y:i.y,z:i.z},_e.value?.lookAtUpdate(h.value)}function Be(e){let t=Se.value;if(!t)return;let{x:n,y:r,z:i}=e,a=new mn(ie.value.x,ie.value.y,ie.value.z),o=new mn(0,0,0),s=new je(kt.degToRad(n),kt.degToRad(r),kt.degToRad(i),`XYZ`),c=o.clone().sub(a).normalize(),l=c.applyEuler(s).normalize(),u=a.distanceTo(o),d=a.clone().addScaledVector(l,u);t.target.position.copy(d),t.target.updateMatrixWorld(),se.value={x:d.x,y:d.y,z:d.z}}return an(oe,e=>{Be(e)},{deep:!0}),an(d,e=>{!Oe.value||!_e.value||m.value===`camera`&&Re(e)},{deep:!0}),an([a,o],()=>{!Oe.value||!_e.value||m.value===`mouse`&&ze(a.value,o.value)}),an(m,e=>{!Oe.value||!_e.value||(e===`camera`?Re(d.value):e===`mouse`?ze(a.value,o.value):h.value={x:0,y:ee.value,z:-1e3})}),Qt(()=>{he.value===`skyBox`&&xe.value?.reload(ge.value)}),t({setExpression:e=>{_e.value?.setExpression(e)},canvasElement:()=>be.value?.renderer.value.domElement}),(e,t)=>(en(),Gt(`div`,{ref_key:`vrmContainerRef`,ref:s,w:`100%`,h:`100%`},[ve.value?Rt((en(),Ut(On(Ve),{key:0,camera:ve.value,antialias:!0,width:On(c),height:On(l),"tone-mapping":On(Ke),"tone-mapping-exposure":1,"preserve-drawing-buffer":!0,onReady:Ce},{default:sn(()=>[Kt(On(eP),{ref_key:`controlsRef`,ref:ye},null,512),On(he)===`skyBox`?(en(),Ut(_j,{key:0,ref_key:`skyBoxEnvRef`,ref:xe,"sky-box-src":On(ge),"as-background":!0,onSkyboxReady:Fe},null,8,[`sky-box-src`])):(en(),Gt(`TresHemisphereLight`,{key:1,color:On(re)(On(fe)),"ground-color":On(re)(On(me)),position:[0,1,0],intensity:On(de),"cast-shadow":``},null,8,yj)),wn(`TresAmbientLight`,{color:On(re)(On(ue)),intensity:On(le),"cast-shadow":``},null,8,bj),wn(`TresDirectionalLight`,{ref_key:`dirLightRef`,ref:Se,color:On(re)(On(ne)),position:[On(ie).x,On(ie).y,On(ie).z],intensity:On(te),"cast-shadow":``,onReady:Ie},null,40,xj),(en(),Ut(Sn,null,{default:sn(()=>[Kt(On(XA),null,{default:sn(()=>[Kt(On(rj),kn(Jt(we)),null,16)]),_:1})]),_:1})),Kt(On(kN),{ref_key:`modelRef`,ref:_e,"model-src":r.modelSrc,"idle-animation":r.idleAnimation,paused:r.paused,"npr-equirect-tex":Ne.value,"npr-irr-s-h":Pe.value,onLoadModelProgress:t[0]||=e=>i(`loadModelProgress`,e),onModelReady:Le,onError:t[1]||=e=>i(`error`,e)},null,8,[`model-src`,`idle-animation`,`paused`,`npr-equirect-tex`,`npr-irr-s-h`]),r.showAxes?(en(),Gt(`TresAxesHelper`,Sj)):Wt(``,!0)]),_:1},8,[`camera`,`width`,`height`,`tone-mapping`])),[[bn,Oe.value]]):Wt(``,!0)],512))}}),wj=Cj;const Tj=async({description:e,execute:t,name:n,parameters:r,strict:i})=>{let a=await mr(r);return{execute:t,function:{description:e,name:n,parameters:i===!1?a:pr(a),strict:i??!0},type:`function`}},Ej=v(`ZodISODateTime`,(e,t)=>{ji.init(e,t),Qj.init(e,t)});function Dj(e){return La(Ej,e)}const Oj=v(`ZodISODate`,(e,t)=>{Ai.init(e,t),Qj.init(e,t)});function kj(e){return Ia(Oj,e)}const Aj=v(`ZodISOTime`,(e,t)=>{Ni.init(e,t),Qj.init(e,t)});function jj(e){return gr(Aj,e)}const Mj=v(`ZodISODuration`,(e,t)=>{Mi.init(e,t),Qj.init(e,t)});function Nj(e){return Ra(Mj,e)}const Pj=(e,t)=>{ca.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ua(e,t)},flatten:{value:t=>la(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ga,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ga,2)}},isEmpty:{get(){return e.issues.length===0}}})};v(`ZodError`,Pj);const Fj=v(`ZodError`,Pj,{Parent:Error}),Ij=ea(Fj),Lj=ta(Fj),Rj=oa(Fj),zj=sa(Fj),Bj=Qi(Fj),Vj=Xi(Fj),Hj=$i(Fj),Uj=Zi(Fj),Wj=ia(Fj),Gj=na(Fj),Kj=aa(Fj),qj=ra(Fj),Jj=v(`ZodType`,(e,t)=>(si.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),e.clone=(t,n)=>fa(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Ij(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Rj(e,t,n),e.parseAsync=async(t,n)=>Lj(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>zj(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Bj(e,t,n),e.decode=(t,n)=>Vj(e,t,n),e.encodeAsync=async(t,n)=>Hj(e,t,n),e.decodeAsync=async(t,n)=>Uj(e,t,n),e.safeEncode=(t,n)=>Wj(e,t,n),e.safeDecode=(t,n)=>Gj(e,t,n),e.safeEncodeAsync=async(t,n)=>Kj(e,t,n),e.safeDecodeAsync=async(t,n)=>qj(e,t,n),e.refine=(t,n)=>e.check(rN(t,n)),e.superRefine=t=>e.check(iN(t)),e.overwrite=t=>e.check(Ar(t)),e.optional=()=>VM(e),e.nullable=()=>UM(e),e.nullish=()=>VM(UM(e)),e.nonoptional=t=>YM(e,t),e.array=()=>kM(e),e.or=t=>NM([e,t]),e.and=t=>FM(e,t),e.transform=t=>$M(e,zM(t)),e.default=t=>GM(e,t),e.prefault=t=>qM(e,t),e.catch=t=>ZM(e,t),e.pipe=t=>$M(e,t),e.readonly=()=>tN(e),e.describe=t=>{let n=e.clone();return qr.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return qr.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return qr.get(e);let n=e.clone();return qr.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Yj=v(`_ZodString`,(e,t)=>{ii.init(e,t),Jj.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Mr(...t)),e.includes=(...t)=>e.check(Ma(...t)),e.startsWith=(...t)=>e.check(Nr(...t)),e.endsWith=(...t)=>e.check(Oa(...t)),e.min=(...t)=>e.check(wr(...t)),e.max=(...t)=>e.check(Cr(...t)),e.length=(...t)=>e.check(yr(...t)),e.nonempty=(...t)=>e.check(wr(1,...t)),e.lowercase=t=>e.check(br(t)),e.uppercase=t=>e.check(Vr(t)),e.trim=()=>e.check(Rr()),e.normalize=(...t)=>e.check(Or(...t)),e.toLowerCase=()=>e.check(Ir()),e.toUpperCase=()=>e.check(Lr())}),Xj=v(`ZodString`,(e,t)=>{ii.init(e,t),Yj.init(e,t),e.email=t=>e.check(Ea($j,t)),e.url=t=>e.check(Hr(nM,t)),e.jwt=t=>e.check(_r(_M,t)),e.emoji=t=>e.check(Da(rM,t)),e.guid=t=>e.check(ja(eM,t)),e.uuid=t=>e.check(hr(tM,t)),e.uuidv4=t=>e.check(Ur(tM,t)),e.uuidv6=t=>e.check(Wr(tM,t)),e.uuidv7=t=>e.check(Gr(tM,t)),e.nanoid=t=>e.check(Er(iM,t)),e.guid=t=>e.check(ja(eM,t)),e.cuid=t=>e.check(Ca(aM,t)),e.cuid2=t=>e.check(wa(oM,t)),e.ulid=t=>e.check(zr(sM,t)),e.base64=t=>e.check(va(mM,t)),e.base64url=t=>e.check(ya(hM,t)),e.xid=t=>e.check(Kr(cM,t)),e.ksuid=t=>e.check(vr(lM,t)),e.ipv4=t=>e.check(Pa(uM,t)),e.ipv6=t=>e.check(Fa(dM,t)),e.cidrv4=t=>e.check(xa(fM,t)),e.cidrv6=t=>e.check(Sa(pM,t)),e.e164=t=>e.check(Ta(gM,t)),e.datetime=t=>e.check(Dj(t)),e.date=t=>e.check(kj(t)),e.time=t=>e.check(jj(t)),e.duration=t=>e.check(Nj(t))});function Zj(e){return Pr(Xj,e)}const Qj=v(`ZodStringFormat`,(e,t)=>{ai.init(e,t),Yj.init(e,t)}),$j=v(`ZodEmail`,(e,t)=>{wi.init(e,t),Qj.init(e,t)}),eM=v(`ZodGUID`,(e,t)=>{Di.init(e,t),Qj.init(e,t)}),tM=v(`ZodUUID`,(e,t)=>{ui.init(e,t),Qj.init(e,t)}),nM=v(`ZodURL`,(e,t)=>{li.init(e,t),Qj.init(e,t)}),rM=v(`ZodEmoji`,(e,t)=>{Ti.init(e,t),Qj.init(e,t)}),iM=v(`ZodNanoID`,(e,t)=>{Li.init(e,t),Qj.init(e,t)}),aM=v(`ZodCUID`,(e,t)=>{vi.init(e,t),Qj.init(e,t)}),oM=v(`ZodCUID2`,(e,t)=>{yi.init(e,t),Qj.init(e,t)}),sM=v(`ZodULID`,(e,t)=>{ci.init(e,t),Qj.init(e,t)}),cM=v(`ZodXID`,(e,t)=>{pi.init(e,t),Qj.init(e,t)}),lM=v(`ZodKSUID`,(e,t)=>{Ii.init(e,t),Qj.init(e,t)}),uM=v(`ZodIPv4`,(e,t)=>{Oi.init(e,t),Qj.init(e,t)}),dM=v(`ZodIPv6`,(e,t)=>{ki.init(e,t),Qj.init(e,t)}),fM=v(`ZodCIDRv4`,(e,t)=>{gi.init(e,t),Qj.init(e,t)}),pM=v(`ZodCIDRv6`,(e,t)=>{_i.init(e,t),Qj.init(e,t)}),mM=v(`ZodBase64`,(e,t)=>{Yr.init(e,t),Qj.init(e,t)}),hM=v(`ZodBase64URL`,(e,t)=>{mi.init(e,t),Qj.init(e,t)}),gM=v(`ZodE164`,(e,t)=>{Ci.init(e,t),Qj.init(e,t)}),_M=v(`ZodJWT`,(e,t)=>{Fi.init(e,t),Qj.init(e,t)}),vM=v(`ZodNumber`,(e,t)=>{Zr.init(e,t),Jj.init(e,t),e.gt=(t,n)=>e.check(ka(t,n)),e.gte=(t,n)=>e.check(Aa(t,n)),e.min=(t,n)=>e.check(Aa(t,n)),e.lt=(t,n)=>e.check(xr(t,n)),e.lte=(t,n)=>e.check(Sr(t,n)),e.max=(t,n)=>e.check(Sr(t,n)),e.int=t=>e.check(xM(t)),e.safe=t=>e.check(xM(t)),e.positive=t=>e.check(ka(0,t)),e.nonnegative=t=>e.check(Aa(0,t)),e.negative=t=>e.check(xr(0,t)),e.nonpositive=t=>e.check(Sr(0,t)),e.multipleOf=(t,n)=>e.check(Tr(t,n)),e.step=(t,n)=>e.check(Tr(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function yM(e){return kr(vM,e)}const bM=v(`ZodNumberFormat`,(e,t)=>{Qr.init(e,t),vM.init(e,t)});function xM(e){return Na(bM,e)}const SM=v(`ZodBoolean`,(e,t)=>{hi.init(e,t),Jj.init(e,t)});function CM(e){return ba(SM,e)}const wM=v(`ZodUnknown`,(e,t)=>{fi.init(e,t),Jj.init(e,t)});function TM(){return Br(wM)}const EM=v(`ZodNever`,(e,t)=>{Ri.init(e,t),Jj.init(e,t)});function DM(e){return Dr(EM,e)}const OM=v(`ZodArray`,(e,t)=>{Jr.init(e,t),Jj.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(wr(t,n)),e.nonempty=t=>e.check(wr(1,t)),e.max=(t,n)=>e.check(Cr(t,n)),e.length=(t,n)=>e.check(yr(t,n)),e.unwrap=()=>e.element});function kM(e,t){return _a(OM,e,t)}const AM=v(`ZodObject`,(e,t)=>{$r.init(e,t),Jj.init(e,t),pa(e,`shape`,()=>t.shape),e.keyof=()=>LM(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:TM()}),e.loose=()=>e.clone({...e._zod.def,catchall:TM()}),e.strict=()=>e.clone({...e._zod.def,catchall:DM()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>ma(e,t),e.safeExtend=t=>qi(e,t),e.merge=t=>Bi(e,t),e.pick=t=>Gi(e,t),e.omit=t=>Ui(e,t),e.partial=(...t)=>Wi(BM,e,t[0]),e.required=(...t)=>Ki(JM,e,t[0])});function jM(e,t){let n={type:`object`,get shape(){return da(this,`shape`,e?Hi(e):{}),this.shape},...Vi(t)};return new AM(n)}const MM=v(`ZodUnion`,(e,t)=>{di.init(e,t),Jj.init(e,t),e.options=t.options});function NM(e,t){return new MM({type:`union`,options:e,...Vi(t)})}const PM=v(`ZodIntersection`,(e,t)=>{Pi.init(e,t),Jj.init(e,t)});function FM(e,t){return new PM({type:`intersection`,left:e,right:t})}const IM=v(`ZodEnum`,(e,t)=>{Ei.init(e,t),Jj.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new IM({...t,checks:[],...Vi(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new IM({...t,checks:[],...Vi(r),entries:i})}});function LM(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new IM({type:`enum`,entries:n,...Vi(t)})}const RM=v(`ZodTransform`,(e,t)=>{oi.init(e,t),Jj.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Yi(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ha(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(ha(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function zM(e){return new RM({type:`transform`,transform:e})}const BM=v(`ZodOptional`,(e,t)=>{ei.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function VM(e){return new BM({type:`optional`,innerType:e})}const HM=v(`ZodNullable`,(e,t)=>{Xr.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function UM(e){return new HM({type:`nullable`,innerType:e})}const WM=v(`ZodDefault`,(e,t)=>{Si.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function GM(e,t){return new WM({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ji(t)}})}const KM=v(`ZodPrefault`,(e,t)=>{ni.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function qM(e,t){return new KM({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ji(t)}})}const JM=v(`ZodNonOptional`,(e,t)=>{zi.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function YM(e,t){return new JM({type:`nonoptional`,innerType:e,...Vi(t)})}const XM=v(`ZodCatch`,(e,t)=>{bi.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ZM(e,t){return new XM({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const QM=v(`ZodPipe`,(e,t)=>{ti.init(e,t),Jj.init(e,t),e.in=t.in,e.out=t.out});function $M(e,t){return new QM({type:`pipe`,in:e,out:t})}const eN=v(`ZodReadonly`,(e,t)=>{ri.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function tN(e){return new eN({type:`readonly`,innerType:e})}const nN=v(`ZodCustom`,(e,t)=>{xi.init(e,t),Jj.init(e,t)});function rN(e,t={}){return jr(nN,e,t)}function iN(e){return Fr(e)}const aN=[Tj({name:`debug_random_number`,description:`Generate a random number between 0 and 1`,execute:async()=>new Promise(e=>{setTimeout(()=>{e(Math.random().toString())},1e3)}),parameters:jM({})})],oN=async()=>Promise.all(aN);var sN,cN,lN,uN,dN;sN=new WeakMap,cN=new WeakMap,lN=new WeakMap,uN=new WeakMap;async function fN(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}dN=new WeakMap;async function pN(e,t){await fN(`plugin:mcp|connect_server`,{command:e,args:t})}async function mN(){await fN(`plugin:mcp|disconnect_server`)}async function hN(){return await fN(`plugin:mcp|list_tools`)}async function gN(e,t){return await fN(`plugin:mcp|call_tool`,{name:e,args:t})}const _N=[Tj({name:`mcp_list_tools`,description:`List all tools available on the MCP server`,execute:async(e,t)=>await hN(),parameters:jM({})}),Tj({name:`mcp_connect_server`,description:`Connect to the MCP server. If "success", the connection to the MCP server is successful. Otherwise, the connection fails.`,execute:async({command:e,args:t})=>(await pN(e,t),`success`),parameters:jM({command:Zj().describe(`The command to connect to the MCP server`),args:kM(Zj()).describe(`The arguments to pass to the MCP server`)})}),Tj({name:`mcp_disconnect_server`,description:`Disconnect from the MCP server. If "success", the disconnection from the MCP server is successful. Otherwise, the disconnection fails.`,execute:async()=>(await mN(),`success`),parameters:jM({})}),Tj({name:`mcp_call_tool`,description:`Call a tool on the MCP server. The result is a list of content and a boolean indicating whether the tool call is an error.`,execute:async({name:e,parameters:t})=>{let n=Object.fromEntries(t.map(({name:e,value:t})=>[e,t])),r=await gN(e,n);return r},parameters:jM({name:Zj().describe(`The name of the tool to call`),parameters:kM(jM({name:Zj().describe(`The name of the parameter`),value:NM([Zj(),yM(),CM(),jM({})]).describe(`The value of the parameter, it can be a string, a number, a boolean, or an object`)})).describe(`The parameters to pass to the tool`)})})],vN=async()=>Promise.all(_N);function yN(e,t,n,r,i=new Map){return!!(r?.supportsTools||i.get(`${t.chat(e).baseURL}-${e}`))}async function bN(e,t,n,r){let i=r?.headers;return await Xn({...t.chat(e),maxSteps:10,messages:n.map(e=>({...e,content:e.role===`error`?`User encountered error: ${e.content}`:e.content,role:e.role===`error`?`user`:e.role})),headers:i,tools:yN(e,t,n,r)?[...await vN(),...await oN()]:void 0,onEvent(e){r?.onStreamEvent?.(e)}})}async function xN(e,t,n,r){async function i(n){try{let i=await bN(e,t,[{role:`user`,content:`Hello, world!`}],{...r,supportsTools:n});for await(let e of Ba(i.textStream));return!0}catch(e){if(e instanceof Error&&e.name===new f(``).name&&(String(e).includes(`does not support tools`)||String(e).includes(`No endpoints found that support tool use.`)))return!1;throw e}}function a(e,t){return new Promise(n=>{let r=[],i=0;e.forEach((a,o)=>{setTimeout(()=>{a().then(e=>{r[o]={result:e}}).catch(e=>{r[o]={error:e}}).finally(()=>{i++,i===e.length&&n(r)})},o*t)})})}let o=[()=>i(!0),()=>i(!1)],s=await a(o,1e3);if(s.some(e=>e.error)){let t=Error(`Error during tools compatibility discovery for model: ${e}. Errors: ${s.map(e=>e.error).filter(Boolean).join(`, `)}`);throw t.cause=s.map(e=>e.error).filter(Boolean),t}return s[0].result===!0&&s[1].result===!0}const SN=se(`llm`,()=>{let e=g(new Map);async function t(t,n,r,i){if(e.value.has(`${n.chat(t).baseURL}-${t}`))return;let a=await xN(t,n,r,{...i,toolsCompatibility:e.value});e.value.set(`${n.chat(t).baseURL}-${t}`,a)}function n(t,n,r,i){return bN(t,n,r,{...i,toolsCompatibility:e.value})}async function r(e,t){if(e===``)return[];try{return await d({baseURL:e.endsWith(`/`)?e:`${e}/`,apiKey:t})}catch(e){if(String(e).includes(`Failed to construct 'URL': Invalid URL`))return[];throw e}}return{models:r,stream:n,discoverToolsCompatibility:t}}),CN=se(`chat`,()=>{let{stream:e,discoverToolsCompatibility:t}=SN(),{systemPrompt:n}=ce(za()),r=g(!1),i=g([]),a=g([]),o=g([]),s=g([]),u=g([]),d=g([]),f=g([]),p=g([]);function m(e){i.value.push(e)}function h(e){a.value.push(e)}function ee(e){o.value.push(e)}function te(e){s.value.push(e)}function ne(e){u.value.push(e)}function re(e){d.value.push(e)}function ie(e){f.value.push(e)}function ae(e){p.value.push(e)}function oe(){return{role:`system`,content:"- For any programming code block, always specify the programming language that supported on @shikijs/rehype on the rendered markdown, eg. ```python ... ```\n- For any math equation, use LaTeX format, eg: $ x^3 $, always escape dollar sign outside math equation\n"+n.value}}let se=me(`chat/messages`,[oe()]);function le(){se.value=[oe()]}an(n,()=>{se.value.length>0&&se.value[0].role===`system`&&(se.value[0]=oe())},{immediate:!0});let ue=g({role:`assistant`,content:``,slices:[],tool_results:[]});async function de(t,n){try{if(r.value=!0,!t&&!n.attachments?.length)return;for(let e of i.value)await e(t);let m=[{type:`text`,text:t}];if(n.attachments)for(let e of n.attachments)e.type===`image`&&m.push({type:`image_url`,image_url:{url:`data:${e.mimeType};base64,${e.data}`}});let h=m.length>1?m:t;se.value.push({role:`user`,content:h});let ee=cr({onLiteral:async e=>{for(let t of u.value)await t(e);ue.value.content+=e;let t=ue.value.slices.at(-1);if(t?.type===`text`){t.text+=e;return}ue.value.slices.push({type:`text`,text:e})},onSpecial:async e=>{for(let t of d.value)await t(e)},minLiteralEmitLength:24}),te=l({handlers:[async e=>{if(e.data.type===`tool-call`){ue.value.slices.push(e.data);return}e.data.type===`tool-call-result`&&ue.value.tool_results.push(e.data)}]});ue.value={role:`assistant`,content:``,slices:[],tool_results:[]};let ne=se.value.map(e=>{if(e.role===`assistant`){let{slices:t,...n}=e;return n.tool_results=En(n.tool_results),En(n)}return En(e)});for(let e of a.value)await e(t);for(let e of o.value)await e(t);let re=``,ie=n.providerConfig?.headers||{};await e(n.model,n.chatProvider,ne,{headers:ie,async onStreamEvent(e){if(e.type===`tool-call`)te.enqueue({type:`tool-call`,toolCall:e});else if(e.type===`tool-result`)te.enqueue({type:`tool-call-result`,id:e.toolCallId,result:e.result});else if(e.type===`text-delta`)re+=e.text,await ee.consume(e.text);else if(e.type===`finish`){await ee.end(),ue.value.slices.length>0&&se.value.push(En(ue.value)),ue.value={role:`assistant`,content:``,slices:[],tool_results:[]};let e=`${c}${c}`;for(let t of u.value)await t(e);for(let e of f.value)await e();for(let e of p.value)await e(re);console.debug(`LLM output:`,re)}}});for(let e of s.value)await e(t)}catch(e){throw console.error(`Error sending message:`,e),e}finally{r.value=!1}}return{sending:r,messages:se,streamingMessage:ue,discoverToolsCompatibility:t,send:de,cleanupMessages:le,onBeforeMessageComposed:m,onAfterMessageComposed:h,onBeforeSend:ee,onAfterSend:te,onTokenLiteral:ne,onTokenSpecial:re,onStreamEnd:ie,onAssistantResponseEnd:ae}}),wN={relative:``},TN={"h-full":``,"w-full":``};var EN=qt({__name:`Stage`,props:Xt({paused:{type:Boolean,default:!1},focusAt:{},xOffset:{},yOffset:{},scale:{default:1}},{state:{default:`pending`},stateModifiers:{}}),emits:[`update:state`],setup(e,{expose:c}){let d=rn(e,`state`),f=g(),ee=g(),te=g(),re=he(),{stageModelRenderer:ie,stageViewControlsEnabled:ae,live2dDisableFocus:oe,stageModelSelectedUrl:se}=ce(re),{mouthOpenSize:le}=ce(i()),{audioContext:ue,calculateVolume:de}=r(),{onBeforeMessageComposed:fe,onBeforeSend:pe,onTokenLiteral:me,onTokenSpecial:ge,onStreamEnd:_e,onAssistantResponseEnd:ve}=CN(),ye=u(),be=Pc(),xe=vj(),Se=g(!0);be.onShouldUpdateView(async()=>{Se.value=!1,await re.updateStageModel(),setTimeout(()=>{Se.value=!0},100)}),xe.onShouldUpdateView(async()=>{Se.value=!1,await re.updateStageModel(),setTimeout(()=>{Se.value=!0},100)});let Ce=g(),we=g(!1),Te=g(!1),Ee=null,De=l({handlers:[e=>new Promise(t=>{if(Ee){try{Ee.stop(),Ee.disconnect()}catch{}Ee=null}let n=ue.createBufferSource();n.buffer=e.data.audioBuffer,n.connect(ue.destination),n.connect(Ce.value),we.value=!0,Ee=n,n.start(0),n.onended=()=>{we.value=!1,Ee===n&&(Ee=null),t()}})]}),Oe=t(),{ssmlEnabled:ke,activeSpeechProvider:Ae,activeSpeechModel:je,activeSpeechVoice:Me,pitch:Ne}=ce(Oe);async function Pe(e){try{if(!Ae.value){console.warn(`No active speech provider configured`);return}if(!Me.value){console.warn(`No active speech voice configured`);return}let t=await ye.getProviderInstance(Ae.value);if(!t){console.error(`Failed to initialize speech provider`);return}let r=ye.getProviderConfig(Ae.value),i=ke.value?Oe.generateSSML(e.data,Me.value,{...r,pitch:Ne.value}):e.data,a=await n({...t.speech(je.value,r),input:i,voice:Me.value.id}),o=await ue.decodeAudioData(a);De.enqueue({audioBuffer:o,text:e.data})}catch(e){console.error(`Speech generation failed:`,e)}}let Fe=l({handlers:[Pe]}),Ie=s(Fe),{currentMotion:Le}=ce(Pc()),Re=l({handlers:[async e=>{if(ie.value===`vrm`){let t=h[e.data];if(!t)return;await ee.value.setExpression(t)}else ie.value===`live2d`&&(Le.value={group:m[e.data]})}]}),ze=o(Re);ze.onHandlerEvent(`emotion`,e=>{console.debug(`emotion detected`,e)});let Be=a();Be.onHandlerEvent(`delay`,e=>{console.debug(`delay detected`,e)});function Ve(){requestAnimationFrame(Ve),we.value&&(le.value=de(Ce.value,`linear`))}function He(){Te.value||=(Ve(),ue.resume(),!0)}function Ue(){Ce.value||=ue.createAnalyser()}fe(async()=>{if(Ee){try{Ee.stop(),Ee.disconnect()}catch{}Ee=null}De.clear(),Ue(),He()}),pe(async()=>{Le.value={group:ne}}),me(async e=>{Ie.enqueue(e)}),ge(async e=>{Be.enqueue(e),ze.enqueue(e)}),_e(async()=>{Be.enqueue(p)}),ve(async e=>{}),$t(()=>{Te.value=!1}),Qt(async()=>{f.value=Ok({connection:{bundles:fr()}}),await f.value.execute(`CREATE TABLE memory_test (vec FLOAT[768]);`)});function We(){if(ie.value===`live2d`)return te.value?.canvasElement();if(ie.value===`vrm`)return ee.value?.canvasElement()}return c({canvasElement:We}),(e,t)=>(en(),Gt(`div`,wN,[wn(`div`,TN,[On(ie)===`live2d`&&Se.value?(en(),Ut(Rc,{key:0,ref_key:`live2dSceneRef`,ref:te,state:d.value,"onUpdate:state":t[0]||=e=>d.value=e,"min-w":`50% r.modelSrc),l=g(),u=g(),{scene:d}=Ue(),{onBeforeRender:f}=He(),p=ar(),m=g(),h=vj(),{modelOffset:ee,modelOrigin:te,modelSize:ne,cameraPosition:re,modelRotationY:ie,lookAtTarget:ae,eyeHeight:oe,trackingMode:se,envSelect:le,skyBoxIntensity:ue}=ce(h),de=g(),fe=or(),pe=g(0),me=null;async function he(){await ge(o).not.toBeTruthy(),o.value=!0,s.value=!1;try{if(!d.value){console.warn(`Scene is not ready, cannot load VRM model.`);return}if(l.value&&ye(),!c.value)return;try{let e=await nr(c.value,{scene:d.value,lookAt:!0,onProgress:e=>i(`loadModelProgress`,Number((100*e.loaded/e.total).toFixed(2)))});if(!e||!e._vrm){console.warn(`No VRM model loaded`);return}let{_vrm:t,_vrmGroup:n,modelCenter:o,modelSize:h,initialCameraOffset:ce}=e;de.value=n,re.value={x:o.x+ce.x,y:o.y+ce.y,z:o.z+ce.z},te.value={x:o.x,y:o.y,z:o.z},ne.value={x:h.x,y:h.y,z:h.z},de.value.position.set(ee.value.x,ee.value.y,ee.value.z);let le=new mn(0,0,-1),ue=t.lookAt,pe=new st;if(ue){let e=ue.faceFront;pe.setFromUnitVectors(e.normalize(),le.normalize()),n.quaternion.premultiply(pe),n.updateMatrixWorld(!0)}else console.warn(`No look-at target found in VRM model`);ie.value=0;function he(e){let n=t.humanoid?.getNormalizedBoneNode(`hips`);if(!n){console.warn(`No hips node found in VRM model.`);return}n.updateMatrixWorld(!0);let r=new mn;n.getWorldPosition(r);let i=e.tracks.find(e=>e.name.endsWith(`Hips.position`));if(!(i instanceof gn)){console.warn(`No Hips.position track of type VectorKeyframeTrack found in animation.`);return}let a=new mn(i.values[0],i.values[1],i.values[2]),o=new mn().subVectors(a,r);e.tracks.forEach(e=>{if(e.name.endsWith(`.position`)&&e instanceof gn)for(let t=0;t!!e?.isShaderMaterial;!me&&d.value&&(me=Zn(d.value)),t.scene.traverse(e=>{if(e instanceof At&&e.material){let t=Array.isArray(e.material)?e.material:[e.material];t.forEach(e=>{if(e instanceof Ft||e instanceof Pt)e.envMapIntensity=1,e.needsUpdate=!0;else if(ve(e))`toneMapped`in e&&(e.toneMapped=!1);else if(ye(e)){`toneMapped`in e&&(e.toneMapped=!1),`envMap`in e&&e.envMap&&(e.envMap=null);let t=e.map;if(t&&t.colorSpace!==void 0)try{t.colorSpace=vt}catch(e){console.warn(`Failed to set colorSpace on texture:`,e)}Qn(e)}})}}),l.value=t,i(`modelReady`),s.value=!0;function be(){let e=l.value?.humanoid?.getNormalizedBoneNode(`head`);if(!e)return null;let t=new mn;return e.getWorldPosition(t),t.y}oe.value=be(),se.value=`none`,ae.value={x:0,y:oe.value,z:-1e3},a=f(({delta:e})=>{u.value?.update(e),l.value?.update(e),l.value?.lookAt?.update?.(e),p.update(l.value,e),fe.update(l.value,ae,e),m.value?.update(e)}).off}catch(e){i(`error`,e)}}catch(e){console.error(e)}finally{o.value=!1}}an(ee,()=>{de.value&&de.value.position.set(ee.value.x,ee.value.y,ee.value.z)},{deep:!0}),an(ie,e=>{l.value&&de.value&&(de.value.rotation.y=kt.degToRad(e))}),an(c,(e,t)=>{e!==t&&he()});let{pause:_e,resume:ve}=He();an(()=>r.paused,e=>e?_e():ve());function ye(){a?.(),l.value&&(l.value.scene.removeFromParent(),sr.deepDispose(l.value.scene),me?.dispose())}return an(()=>[le.value,r.nprEquirectTex,ue.value,r.nprIrrSH],async()=>{if(!l.value)return;pe.value+=1;let e=$n(le.value);er(l.value?.scene,{mode:e,intensity:ue.value,sh:r.nprIrrSH??null}),me?.update(e,ue.value,r.nprIrrSH??null)},{immediate:!0,deep:!1}),Qt(async()=>await he()),$t(()=>ye()),t({setExpression(e){m.value?.setEmotionWithResetAfter(e,1e3)},scene:Cn(()=>l.value?.scene),lookAtUpdate(e){fe.instantUpdate(l.value,e)}}),(e,t)=>s.value?nn(e.$slots,`default`,{key:0}):Wt(``,!0)}}),kN=ON;const AN={type:`change`},jN={type:`start`},MN={type:`end`},NN=new pt,PN=new ot,FN=Math.cos(70*kt.DEG2RAD),IN=new mn,LN=2*Math.PI,RN={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},zN=1e-6;var BN=class extends Se{constructor(e,t=null){super(e,t),this.state=RN.NONE,this.target=new mn,this.cursor=new mn,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:`ArrowLeft`,UP:`ArrowUp`,RIGHT:`ArrowRight`,BOTTOM:`ArrowDown`},this.mouseButtons={LEFT:Dt.ROTATE,MIDDLE:Dt.DOLLY,RIGHT:Dt.PAN},this.touches={ONE:Vt.ROTATE,TWO:Vt.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new mn,this._lastQuaternion=new st,this._lastTargetPosition=new mn,this._quat=new st().setFromUnitVectors(e.up,new mn(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new zt,this._sphericalDelta=new zt,this._scale=1,this._panOffset=new mn,this._rotateStart=new pn,this._rotateEnd=new pn,this._rotateDelta=new pn,this._panStart=new pn,this._panEnd=new pn,this._panDelta=new pn,this._dollyStart=new pn,this._dollyEnd=new pn,this._dollyDelta=new pn,this._dollyDirection=new mn,this._mouse=new pn,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=HN.bind(this),this._onPointerDown=VN.bind(this),this._onPointerUp=UN.bind(this),this._onContextMenu=XN.bind(this),this._onMouseWheel=KN.bind(this),this._onKeyDown=qN.bind(this),this._onTouchStart=JN.bind(this),this._onTouchMove=YN.bind(this),this._onMouseDown=WN.bind(this),this._onMouseMove=GN.bind(this),this._interceptControlDown=ZN.bind(this),this._interceptControlUp=QN.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(e){super.connect(e),this.domElement.addEventListener(`pointerdown`,this._onPointerDown),this.domElement.addEventListener(`pointercancel`,this._onPointerUp),this.domElement.addEventListener(`contextmenu`,this._onContextMenu),this.domElement.addEventListener(`wheel`,this._onMouseWheel,{passive:!1});let t=this.domElement.getRootNode();t.addEventListener(`keydown`,this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction=`none`}disconnect(){this.domElement.removeEventListener(`pointerdown`,this._onPointerDown),this.domElement.removeEventListener(`pointermove`,this._onPointerMove),this.domElement.removeEventListener(`pointerup`,this._onPointerUp),this.domElement.removeEventListener(`pointercancel`,this._onPointerUp),this.domElement.removeEventListener(`wheel`,this._onMouseWheel),this.domElement.removeEventListener(`contextmenu`,this._onContextMenu),this.stopListenToKeyEvents();let e=this.domElement.getRootNode();e.removeEventListener(`keydown`,this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction=`auto`}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener(`keydown`,this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener(`keydown`,this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(AN),this.update(),this.state=RN.NONE}update(e=null){let t=this.object.position;IN.copy(t).sub(this.target),IN.applyQuaternion(this._quat),this._spherical.setFromVector3(IN),this.autoRotate&&this.state===RN.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let n=this.minAzimuthAngle,r=this.maxAzimuthAngle;isFinite(n)&&isFinite(r)&&(n<-Math.PI?n+=LN:n>Math.PI&&(n-=LN),r<-Math.PI?r+=LN:r>Math.PI&&(r-=LN),n<=r?this._spherical.theta=Math.max(n,Math.min(r,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(n+r)/2?Math.max(n,this._spherical.theta):Math.min(r,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let i=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{let e=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),i=e!=this._spherical.radius}if(IN.setFromSpherical(this._spherical),IN.applyQuaternion(this._quatInverse),t.copy(this.target).add(IN),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let e=null;if(this.object.isPerspectiveCamera){let t=IN.length();e=this._clampDistance(t*this._scale);let n=t-e;this.object.position.addScaledVector(this._dollyDirection,n),this.object.updateMatrixWorld(),i=!!n}else if(this.object.isOrthographicCamera){let t=new mn(this._mouse.x,this._mouse.y,0);t.unproject(this.object);let n=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),i=n!==this.object.zoom;let r=new mn(this._mouse.x,this._mouse.y,0);r.unproject(this.object),this.object.position.sub(r).add(t),this.object.updateMatrixWorld(),e=IN.length()}else console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled.`),this.zoomToCursor=!1;e!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(e).add(this.object.position):(NN.origin.copy(this.object.position),NN.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(NN.direction))zN||8*(1-this._lastQuaternion.dot(this.object.quaternion))>zN||this._lastTargetPosition.distanceToSquared(this.target)>zN?(this.dispatchEvent(AN),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e===null?LN/60/60*this.autoRotateSpeed:LN/60*this.autoRotateSpeed*e}_getZoomScale(e){let t=Math.abs(e*.01);return .95**(this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){IN.setFromMatrixColumn(t,0),IN.multiplyScalar(-e),this._panOffset.add(IN)}_panUp(e,t){this.screenSpacePanning===!0?IN.setFromMatrixColumn(t,1):(IN.setFromMatrixColumn(t,0),IN.crossVectors(this.object.up,IN)),IN.multiplyScalar(e),this._panOffset.add(IN)}_pan(e,t){let n=this.domElement;if(this.object.isPerspectiveCamera){let r=this.object.position;IN.copy(r).sub(this.target);let i=IN.length();i*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*i/n.clientHeight,this.object.matrix),this._panUp(2*t*i/n.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.`),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.`),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.`),this.enableZoom=!1)}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;let n=this.domElement.getBoundingClientRect(),r=e-n.left,i=t-n.top,a=n.width,o=n.height;this._mouse.x=r/a*2-1,this._mouse.y=-(i/o)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let t=this.domElement;this._rotateLeft(LN*this._rotateDelta.x/t.clientHeight),this._rotateUp(LN*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(LN*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-LN*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(LN*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-LN*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._rotateStart.set(n,r)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._panStart.set(n,r)}}_handleTouchStartDolly(e){let t=this._getSecondPointerPosition(e),n=e.pageX-t.x,r=e.pageY-t.y,i=Math.sqrt(n*n+r*r);this._dollyStart.set(0,i)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let t=this.domElement;this._rotateLeft(LN*this._rotateDelta.x/t.clientHeight),this._rotateUp(LN*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._panEnd.set(n,r)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){let t=this._getSecondPointerPosition(e),n=e.pageX-t.x,r=e.pageY-t.y,i=Math.sqrt(n*n+r*r);this._dollyEnd.set(0,i),this._dollyDelta.set(0,(this._dollyEnd.y/this._dollyStart.y)**+this.zoomSpeed),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);let a=(e.pageX+t.x)*.5,o=(e.pageY+t.y)*.5;this._updateZoomParameters(a,o)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t{n.value&&r.value?.domElement&&(i.value=new BN(n.value,r.value.domElement),i.value.enableDamping=!0,i.value.dampingFactor=.5,i.value.mouseButtons={LEFT:Dt.ROTATE,MIDDLE:Dt.DOLLY,RIGHT:Dt.PAN},i.value.touches={ONE:Vt.ROTATE,TWO:Vt.DOLLY_PAN},i.value.enablePan=!1,i.value.minDistance=a.value.z,i.value.maxDistance=a.value.z*20,i.value.update(),o.value=i.value.getDistance())}),t({controls:i,getDistance:()=>i.value?.getDistance(),update:()=>i.value?.update(),setTarget:e=>{i.value&&(i.value.target.set(e.x,e.y,e.z),i.value.update())}}),(e,t)=>nn(e.$slots,`default`)}}),eP=$N;export{DN as b,CN as c,wj as d,vj as e,wT as f,Fw as g,Cw as h,Rc as i,Ic as j,Pc as k,Ha as l}; \ No newline at end of file +`;continue}if((u=l.match(i))&&(c.gamma=parseFloat(u[1])),(u=l.match(a))&&(c.exposure=parseFloat(u[1])),(u=l.match(o))&&(c.valid|=2,c.format=u[1]),(u=l.match(s))&&(c.valid|=4,c.height=parseInt(u[1],10),c.width=parseInt(u[2],10)),c.valid&2&&c.valid&4)break}return c.valid&2||t(3,`missing format specifier`),c.valid&4||t(3,`missing image size specifier`),c},i=function(e,n,r){let i=n;if(i<8||i>32767||e[0]!==2||e[1]!==2||e[2]&128)return new Uint8Array(e);i!==(e[2]<<8|e[3])&&t(3,`wrong scanline width`);let a=new Uint8Array(4*n*r);a.length||t(4,`unable to allocate buffer space`);let o=0,s=0,c=4*i,l=new Uint8Array(4),u=new Uint8Array(c),d=r;for(;d>0&&se.byteLength&&t(1),l[0]=e[s++],l[1]=e[s++],l[2]=e[s++],l[3]=e[s++],(l[0]!=2||l[1]!=2||(l[2]<<8|l[3])!=i)&&t(3,`bad rgbe scanline format`);let n=0,r;for(;n128;if(i&&(r-=128),(r===0||n+r>c)&&t(3,`bad scanline data`),i){let t=e[s++];for(let e=0;e!!u.value&&!!u.value).toBeTruthy(),d(),e||=hj,u.value.outputColorSpace=bt,u.value.toneMapping=qe;try{let t=await new mj().loadAsync(e);t.mapping=Ae,t.generateMipmaps=!0,t.minFilter=wt,t.magFilter=Ct,t.colorSpace=Tt,o=new Ke(u.value);let n=o.fromEquirectangular(t);s=n;let d=new vn(256);d.fromEquirectangularTexture(u.value,t);let f=await fj.fromCubeRenderTarget(u.value,d);a.value=t;let p=l.value;p.environment=n.texture,r.asBackground&&(p.background=n.texture),p.backgroundBlurriness=r.backgroundBlurriness,p.backgroundIntensity=r.backgroundIntensity,c=t,i(`skyboxReady`,{hdri:c,irrSH:f.sh})}catch(e){console.warn(`Failed to load HDRI environment:`,e)}}return $t(async()=>{await f(r.skyBoxSrc),on(()=>[r.skyBoxSrc],([e])=>{f(e)},{deep:!1})}),t({reload:async e=>await f(e)}),en(async()=>{await d()}),(e,t)=>rn(e.$slots,`default`)}}),_j=gj;const vj=oe(`vrm`,()=>{let{post:e,data:t}=ue({name:`airi-stores-vrm`}),n=g([]),r=e=>{n.value.push(e)};function i(){e({type:`should-update-view`}),n.value.forEach(e=>e())}on(t,e=>{e.type===`should-update-view`&&n.value.forEach(e=>e())});let a=pe(`settings/vrm/cameraScale`,1),o=pe(`settings/vrm/modelSize`,{x:0,y:0,z:0}),s=pe(`settings/vrm/modelOrigin`,{x:0,y:0,z:0}),c=pe(`settings/vrm/modelOffset`,{x:0,y:0,z:0}),l=pe(`settings/vrm/modelRotationY`,0),u=pe(`settings/vrm/cameraFOV`,40),d=pe(`settings/vrm/camera-position`,{x:0,y:0,z:-1}),f=pe(`settings/vrm/cameraDistance`,0),p=pe(`settings/vrm/scenes/scene/directional-light/position`,{x:0,y:0,z:-1}),m=pe(`settings/vrm/scenes/scene/directional-light/target`,{x:0,y:0,z:0}),h=pe(`settings/vrm/scenes/scene/directional-light/rotation`,{x:0,y:0,z:0}),ee=pe(`settings/vrm/scenes/scene/directional-light/intensity`,2.02),te=pe(`settings/vrm/scenes/scene/directional-light/color`,`#fffbf5`),ne=pe(`settings/vrm/scenes/scene/hemisphere-light/sky-color`,`#FFFFFF`),re=pe(`settings/vrm/scenes/scene/hemisphere-light/ground-color`,`#222222`),ie=pe(`settings/vrm/scenes/scene/hemisphere-light/intensity`,.4),ae=pe(`settings/vrm/scenes/scene/ambient-light/color`,`#FFFFFF`),oe=pe(`settings/vrm/scenes/scene/ambient-light/intensity`,.6),se=pe(`settings/vrm/lookAtTarget`,{x:0,y:0,z:0}),ce=pe(`settings/vrm/isTracking`,!1),le=pe(`settings/vrm/trackingMode`,`none`),de=pe(`settings/vrm/eyeHeight`,0),fe=pe(`settings/vrm/envEnabled`,`skyBox`),me=pe(`settings/vrm/skyBoxUrl`,hj),he=pe(`settings/vrm/skyBoxIntensity`,.1);return{modelSize:o,scale:a,modelOrigin:s,modelOffset:c,modelRotationY:l,cameraFOV:u,cameraPosition:d,cameraDistance:f,directionalLightPosition:p,directionalLightTarget:m,directionalLightRotation:h,directionalLightIntensity:ee,directionalLightColor:te,ambientLightIntensity:oe,ambientLightColor:ae,hemisphereSkyColor:ne,hemisphereGroundColor:re,hemisphereLightIntensity:ie,lookAtTarget:se,isTracking:ce,trackingMode:le,eyeHeight:de,envSelect:fe,skyBoxSrc:me,skyBoxIntensity:he,shouldUpdateView:i,onShouldUpdateView:r}}),yj=[`color`,`ground-color`,`intensity`],bj=[`color`,`intensity`],xj=[`color`,`position`,`intensity`],Sj={key:2,size:1};var Cj=Jt({__name:`VRM`,props:{modelSrc:{},showAxes:{type:Boolean,default:!1},idleAnimation:{default:`/assets/vrm/animations/idle_loop.vrma`},paused:{type:Boolean,default:!1}},emits:[`loadModelProgress`,`error`],setup(e,{expose:t,emit:n}){let r=e,i=n,{x:a,y:o}=he(),s=g(),{width:c,height:l}=fe(s),{cameraFOV:u,cameraPosition:d,cameraDistance:f,modelOrigin:p,trackingMode:m,lookAtTarget:h,eyeHeight:ee,directionalLightIntensity:te,directionalLightColor:ne,directionalLightPosition:ie,directionalLightRotation:ae,directionalLightTarget:oe,ambientLightIntensity:ce,ambientLightColor:le,hemisphereLightIntensity:ue,hemisphereSkyColor:de,hemisphereGroundColor:pe,envSelect:me,skyBoxSrc:ge}=se(vj()),_e=g(),ve=Tn(new st),ye=Tn(),be=Tn(),xe=g(),Se=g();function Ce(e){be.value=e}let we={saturation:.3,hue:0,blendFunction:$.SRC},Te=!0,Ee=g(!1),De=g(!1),Oe=g(!1),ke=g(!1),Ae=new gt,Me=new pn,Ne=g(null),Pe=g(null);function Fe(e){Ne.value=e.hdri,Pe.value=e.irrSH||null}function Ie(){ke.value=!0}on(u,e=>{ve.value&&(ve.value.fov=e,ve.value.updateProjectionMatrix())}),on(()=>ye.value?.controls,e=>{if(e&&ve.value){Ee.value=!0;let t=()=>{if(Te)return;Te=!0;let e=ve.value.position,t=ye.value.controls.getDistance(),n=Math.abs(d.value.x-e.x)>1e-6||Math.abs(d.value.y-e.y)>1e-6||Math.abs(d.value.z-e.z)>1e-6,r=Math.abs(f.value-t)>1e-6;(n||r)&&(d.value={x:e.x,y:e.y,z:e.z},f.value=t),Te=!1};e.addEventListener(`change`,t)}});function Le(){De.value=!0}on([Ee,De,ke],([e,t])=>{if(e&&t&&ve.value&&ye.value&&ye.value.controls&&Se.value){Te=!0;try{ve.value.aspect=c.value/l.value,ve.value.fov=u.value,ye.value.setTarget(p.value),ve.value.position.set(d.value.x,d.value.y,d.value.z),ve.value.updateProjectionMatrix(),ye.value.controls.update(),f.value=ye.value.controls.getDistance(),Se.value.parent?.add(Se.value.target),Se.value.target.position.set(oe.value.x,oe.value.y,oe.value.z),Se.value.target.updateMatrixWorld()}finally{Te=!1,Oe.value=!0}}}),on(f,e=>{if(!Te&&ve.value&&ye.value&&ye.value.controls){Te=!0;let t=new mn,n=ye.value.controls.target,r=new mn().subVectors(ve.value.position,n).normalize();t.copy(n).addScaledVector(r,e),ve.value.position.set(t.x,t.y,t.z),ye.value.update(),d.value={x:t.x,y:t.y,z:t.z}}Te=!1});function Re(e){_e.value?.lookAtUpdate(e),h.value=e}function ze(e,t){Me.x=e/window.innerWidth*2-1,Me.y=-(t/window.innerHeight)*2+1,Ae.setFromCamera(Me,ve.value);let n=new mn;ve.value.getWorldDirection(n);let r=new ct;r.setFromNormalAndCoplanarPoint(n,ve.value.position.clone().add(n.multiplyScalar(1)));let i=new mn;Ae.ray.intersectPlane(r,i),h.value={x:i.x,y:i.y,z:i.z},_e.value?.lookAtUpdate(h.value)}function Be(e){let t=Se.value;if(!t)return;let{x:n,y:r,z:i}=e,a=new mn(ie.value.x,ie.value.y,ie.value.z),o=new mn(0,0,0),s=new je(At.degToRad(n),At.degToRad(r),At.degToRad(i),`XYZ`),c=o.clone().sub(a).normalize(),l=c.applyEuler(s).normalize(),u=a.distanceTo(o),d=a.clone().addScaledVector(l,u);t.target.position.copy(d),t.target.updateMatrixWorld(),oe.value={x:d.x,y:d.y,z:d.z}}return on(ae,e=>{Be(e)},{deep:!0}),on(d,e=>{!Oe.value||!_e.value||m.value===`camera`&&Re(e)},{deep:!0}),on([a,o],()=>{!Oe.value||!_e.value||m.value===`mouse`&&ze(a.value,o.value)}),on(m,e=>{!Oe.value||!_e.value||(e===`camera`?Re(d.value):e===`mouse`?ze(a.value,o.value):h.value={x:0,y:ee.value,z:-1e3})}),$t(()=>{me.value===`skyBox`&&xe.value?.reload(ge.value)}),t({setExpression:e=>{_e.value?.setExpression(e)},canvasElement:()=>be.value?.renderer.value.domElement}),(e,t)=>(tn(),Kt(`div`,{ref_key:`vrmContainerRef`,ref:s,w:`100%`,h:`100%`},[ve.value?wn((tn(),Wt(On(He),{key:0,camera:ve.value,antialias:!0,width:On(c),height:On(l),"tone-mapping":On(qe),"tone-mapping-exposure":1,"preserve-drawing-buffer":!0,onReady:Ce},{default:Rt(()=>[qt(On(eP),{ref_key:`controlsRef`,ref:ye},null,512),On(me)===`skyBox`?(tn(),Wt(_j,{key:0,ref_key:`skyBoxEnvRef`,ref:xe,"sky-box-src":On(ge),"as-background":!0,onSkyboxReady:Fe},null,8,[`sky-box-src`])):(tn(),Kt(`TresHemisphereLight`,{key:1,color:On(re)(On(de)),"ground-color":On(re)(On(pe)),position:[0,1,0],intensity:On(ue),"cast-shadow":``},null,8,yj)),Ut(`TresAmbientLight`,{color:On(re)(On(le)),intensity:On(ce),"cast-shadow":``},null,8,bj),Ut(`TresDirectionalLight`,{ref_key:`dirLightRef`,ref:Se,color:On(re)(On(ne)),position:[On(ie).x,On(ie).y,On(ie).z],intensity:On(te),"cast-shadow":``,onReady:Ie},null,40,xj),(tn(),Wt(Sn,null,{default:Rt(()=>[qt(On(XA),null,{default:Rt(()=>[qt(On(rj),kn(Yt(we)),null,16)]),_:1})]),_:1})),qt(On(kN),{ref_key:`modelRef`,ref:_e,"model-src":r.modelSrc,"idle-animation":r.idleAnimation,paused:r.paused,"npr-equirect-tex":Ne.value,"npr-irr-s-h":Pe.value,onLoadModelProgress:t[0]||=e=>i(`loadModelProgress`,e),onModelReady:Le,onError:t[1]||=e=>i(`error`,e)},null,8,[`model-src`,`idle-animation`,`paused`,`npr-equirect-tex`,`npr-irr-s-h`]),r.showAxes?(tn(),Kt(`TresAxesHelper`,Sj)):Gt(``,!0)]),_:1},8,[`camera`,`width`,`height`,`tone-mapping`])),[[bn,Oe.value]]):Gt(``,!0)],512))}}),wj=Cj;const Tj=async({description:e,execute:t,name:n,parameters:r,strict:i})=>{let a=await mr(r);return{execute:t,function:{description:e,name:n,parameters:i===!1?a:pr(a),strict:i??!0},type:`function`}},Ej=v(`ZodISODateTime`,(e,t)=>{ji.init(e,t),Qj.init(e,t)});function Dj(e){return La(Ej,e)}const Oj=v(`ZodISODate`,(e,t)=>{Ai.init(e,t),Qj.init(e,t)});function kj(e){return Ia(Oj,e)}const Aj=v(`ZodISOTime`,(e,t)=>{Ni.init(e,t),Qj.init(e,t)});function jj(e){return gr(Aj,e)}const Mj=v(`ZodISODuration`,(e,t)=>{Mi.init(e,t),Qj.init(e,t)});function Nj(e){return Ra(Mj,e)}const Pj=(e,t)=>{ca.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ua(e,t)},flatten:{value:t=>la(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ga,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ga,2)}},isEmpty:{get(){return e.issues.length===0}}})};v(`ZodError`,Pj);const Fj=v(`ZodError`,Pj,{Parent:Error}),Ij=ea(Fj),Lj=ta(Fj),Rj=oa(Fj),zj=sa(Fj),Bj=Qi(Fj),Vj=Xi(Fj),Hj=$i(Fj),Uj=Zi(Fj),Wj=ia(Fj),Gj=na(Fj),Kj=aa(Fj),qj=ra(Fj),Jj=v(`ZodType`,(e,t)=>(si.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),e.clone=(t,n)=>fa(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Ij(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Rj(e,t,n),e.parseAsync=async(t,n)=>Lj(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>zj(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Bj(e,t,n),e.decode=(t,n)=>Vj(e,t,n),e.encodeAsync=async(t,n)=>Hj(e,t,n),e.decodeAsync=async(t,n)=>Uj(e,t,n),e.safeEncode=(t,n)=>Wj(e,t,n),e.safeDecode=(t,n)=>Gj(e,t,n),e.safeEncodeAsync=async(t,n)=>Kj(e,t,n),e.safeDecodeAsync=async(t,n)=>qj(e,t,n),e.refine=(t,n)=>e.check(rN(t,n)),e.superRefine=t=>e.check(iN(t)),e.overwrite=t=>e.check(Ar(t)),e.optional=()=>VM(e),e.nullable=()=>UM(e),e.nullish=()=>VM(UM(e)),e.nonoptional=t=>YM(e,t),e.array=()=>kM(e),e.or=t=>NM([e,t]),e.and=t=>FM(e,t),e.transform=t=>$M(e,zM(t)),e.default=t=>GM(e,t),e.prefault=t=>qM(e,t),e.catch=t=>ZM(e,t),e.pipe=t=>$M(e,t),e.readonly=()=>tN(e),e.describe=t=>{let n=e.clone();return qr.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return qr.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return qr.get(e);let n=e.clone();return qr.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Yj=v(`_ZodString`,(e,t)=>{ii.init(e,t),Jj.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Mr(...t)),e.includes=(...t)=>e.check(Ma(...t)),e.startsWith=(...t)=>e.check(Nr(...t)),e.endsWith=(...t)=>e.check(Oa(...t)),e.min=(...t)=>e.check(wr(...t)),e.max=(...t)=>e.check(Cr(...t)),e.length=(...t)=>e.check(yr(...t)),e.nonempty=(...t)=>e.check(wr(1,...t)),e.lowercase=t=>e.check(br(t)),e.uppercase=t=>e.check(Vr(t)),e.trim=()=>e.check(Rr()),e.normalize=(...t)=>e.check(Or(...t)),e.toLowerCase=()=>e.check(Ir()),e.toUpperCase=()=>e.check(Lr())}),Xj=v(`ZodString`,(e,t)=>{ii.init(e,t),Yj.init(e,t),e.email=t=>e.check(Ea($j,t)),e.url=t=>e.check(Hr(nM,t)),e.jwt=t=>e.check(_r(_M,t)),e.emoji=t=>e.check(Da(rM,t)),e.guid=t=>e.check(ja(eM,t)),e.uuid=t=>e.check(hr(tM,t)),e.uuidv4=t=>e.check(Ur(tM,t)),e.uuidv6=t=>e.check(Wr(tM,t)),e.uuidv7=t=>e.check(Gr(tM,t)),e.nanoid=t=>e.check(Er(iM,t)),e.guid=t=>e.check(ja(eM,t)),e.cuid=t=>e.check(Ca(aM,t)),e.cuid2=t=>e.check(wa(oM,t)),e.ulid=t=>e.check(zr(sM,t)),e.base64=t=>e.check(va(mM,t)),e.base64url=t=>e.check(ya(hM,t)),e.xid=t=>e.check(Kr(cM,t)),e.ksuid=t=>e.check(vr(lM,t)),e.ipv4=t=>e.check(Pa(uM,t)),e.ipv6=t=>e.check(Fa(dM,t)),e.cidrv4=t=>e.check(xa(fM,t)),e.cidrv6=t=>e.check(Sa(pM,t)),e.e164=t=>e.check(Ta(gM,t)),e.datetime=t=>e.check(Dj(t)),e.date=t=>e.check(kj(t)),e.time=t=>e.check(jj(t)),e.duration=t=>e.check(Nj(t))});function Zj(e){return Pr(Xj,e)}const Qj=v(`ZodStringFormat`,(e,t)=>{ai.init(e,t),Yj.init(e,t)}),$j=v(`ZodEmail`,(e,t)=>{wi.init(e,t),Qj.init(e,t)}),eM=v(`ZodGUID`,(e,t)=>{Di.init(e,t),Qj.init(e,t)}),tM=v(`ZodUUID`,(e,t)=>{ui.init(e,t),Qj.init(e,t)}),nM=v(`ZodURL`,(e,t)=>{li.init(e,t),Qj.init(e,t)}),rM=v(`ZodEmoji`,(e,t)=>{Ti.init(e,t),Qj.init(e,t)}),iM=v(`ZodNanoID`,(e,t)=>{Li.init(e,t),Qj.init(e,t)}),aM=v(`ZodCUID`,(e,t)=>{vi.init(e,t),Qj.init(e,t)}),oM=v(`ZodCUID2`,(e,t)=>{yi.init(e,t),Qj.init(e,t)}),sM=v(`ZodULID`,(e,t)=>{ci.init(e,t),Qj.init(e,t)}),cM=v(`ZodXID`,(e,t)=>{pi.init(e,t),Qj.init(e,t)}),lM=v(`ZodKSUID`,(e,t)=>{Ii.init(e,t),Qj.init(e,t)}),uM=v(`ZodIPv4`,(e,t)=>{Oi.init(e,t),Qj.init(e,t)}),dM=v(`ZodIPv6`,(e,t)=>{ki.init(e,t),Qj.init(e,t)}),fM=v(`ZodCIDRv4`,(e,t)=>{gi.init(e,t),Qj.init(e,t)}),pM=v(`ZodCIDRv6`,(e,t)=>{_i.init(e,t),Qj.init(e,t)}),mM=v(`ZodBase64`,(e,t)=>{Yr.init(e,t),Qj.init(e,t)}),hM=v(`ZodBase64URL`,(e,t)=>{mi.init(e,t),Qj.init(e,t)}),gM=v(`ZodE164`,(e,t)=>{Ci.init(e,t),Qj.init(e,t)}),_M=v(`ZodJWT`,(e,t)=>{Fi.init(e,t),Qj.init(e,t)}),vM=v(`ZodNumber`,(e,t)=>{Zr.init(e,t),Jj.init(e,t),e.gt=(t,n)=>e.check(ka(t,n)),e.gte=(t,n)=>e.check(Aa(t,n)),e.min=(t,n)=>e.check(Aa(t,n)),e.lt=(t,n)=>e.check(xr(t,n)),e.lte=(t,n)=>e.check(Sr(t,n)),e.max=(t,n)=>e.check(Sr(t,n)),e.int=t=>e.check(xM(t)),e.safe=t=>e.check(xM(t)),e.positive=t=>e.check(ka(0,t)),e.nonnegative=t=>e.check(Aa(0,t)),e.negative=t=>e.check(xr(0,t)),e.nonpositive=t=>e.check(Sr(0,t)),e.multipleOf=(t,n)=>e.check(Tr(t,n)),e.step=(t,n)=>e.check(Tr(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function yM(e){return kr(vM,e)}const bM=v(`ZodNumberFormat`,(e,t)=>{Qr.init(e,t),vM.init(e,t)});function xM(e){return Na(bM,e)}const SM=v(`ZodBoolean`,(e,t)=>{hi.init(e,t),Jj.init(e,t)});function CM(e){return ba(SM,e)}const wM=v(`ZodUnknown`,(e,t)=>{fi.init(e,t),Jj.init(e,t)});function TM(){return Br(wM)}const EM=v(`ZodNever`,(e,t)=>{Ri.init(e,t),Jj.init(e,t)});function DM(e){return Dr(EM,e)}const OM=v(`ZodArray`,(e,t)=>{Jr.init(e,t),Jj.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(wr(t,n)),e.nonempty=t=>e.check(wr(1,t)),e.max=(t,n)=>e.check(Cr(t,n)),e.length=(t,n)=>e.check(yr(t,n)),e.unwrap=()=>e.element});function kM(e,t){return _a(OM,e,t)}const AM=v(`ZodObject`,(e,t)=>{$r.init(e,t),Jj.init(e,t),pa(e,`shape`,()=>t.shape),e.keyof=()=>LM(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:TM()}),e.loose=()=>e.clone({...e._zod.def,catchall:TM()}),e.strict=()=>e.clone({...e._zod.def,catchall:DM()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>ma(e,t),e.safeExtend=t=>qi(e,t),e.merge=t=>Bi(e,t),e.pick=t=>Gi(e,t),e.omit=t=>Ui(e,t),e.partial=(...t)=>Wi(BM,e,t[0]),e.required=(...t)=>Ki(JM,e,t[0])});function jM(e,t){let n={type:`object`,get shape(){return da(this,`shape`,e?Hi(e):{}),this.shape},...Vi(t)};return new AM(n)}const MM=v(`ZodUnion`,(e,t)=>{di.init(e,t),Jj.init(e,t),e.options=t.options});function NM(e,t){return new MM({type:`union`,options:e,...Vi(t)})}const PM=v(`ZodIntersection`,(e,t)=>{Pi.init(e,t),Jj.init(e,t)});function FM(e,t){return new PM({type:`intersection`,left:e,right:t})}const IM=v(`ZodEnum`,(e,t)=>{Ei.init(e,t),Jj.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new IM({...t,checks:[],...Vi(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new IM({...t,checks:[],...Vi(r),entries:i})}});function LM(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new IM({type:`enum`,entries:n,...Vi(t)})}const RM=v(`ZodTransform`,(e,t)=>{oi.init(e,t),Jj.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Yi(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ha(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(ha(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function zM(e){return new RM({type:`transform`,transform:e})}const BM=v(`ZodOptional`,(e,t)=>{ei.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function VM(e){return new BM({type:`optional`,innerType:e})}const HM=v(`ZodNullable`,(e,t)=>{Xr.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function UM(e){return new HM({type:`nullable`,innerType:e})}const WM=v(`ZodDefault`,(e,t)=>{Si.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function GM(e,t){return new WM({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ji(t)}})}const KM=v(`ZodPrefault`,(e,t)=>{ni.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function qM(e,t){return new KM({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ji(t)}})}const JM=v(`ZodNonOptional`,(e,t)=>{zi.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function YM(e,t){return new JM({type:`nonoptional`,innerType:e,...Vi(t)})}const XM=v(`ZodCatch`,(e,t)=>{bi.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ZM(e,t){return new XM({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const QM=v(`ZodPipe`,(e,t)=>{ti.init(e,t),Jj.init(e,t),e.in=t.in,e.out=t.out});function $M(e,t){return new QM({type:`pipe`,in:e,out:t})}const eN=v(`ZodReadonly`,(e,t)=>{ri.init(e,t),Jj.init(e,t),e.unwrap=()=>e._zod.def.innerType});function tN(e){return new eN({type:`readonly`,innerType:e})}const nN=v(`ZodCustom`,(e,t)=>{xi.init(e,t),Jj.init(e,t)});function rN(e,t={}){return jr(nN,e,t)}function iN(e){return Fr(e)}const aN=[Tj({name:`debug_random_number`,description:`Generate a random number between 0 and 1`,execute:async()=>new Promise(e=>{setTimeout(()=>{e(Math.random().toString())},1e3)}),parameters:jM({})})],oN=async()=>Promise.all(aN);var sN,cN,lN,uN,dN;sN=new WeakMap,cN=new WeakMap,lN=new WeakMap,uN=new WeakMap;async function fN(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}dN=new WeakMap;async function pN(e,t){await fN(`plugin:mcp|connect_server`,{command:e,args:t})}async function mN(){await fN(`plugin:mcp|disconnect_server`)}async function hN(){return await fN(`plugin:mcp|list_tools`)}async function gN(e,t){return await fN(`plugin:mcp|call_tool`,{name:e,args:t})}const _N=[Tj({name:`mcp_list_tools`,description:`List all tools available on the MCP server`,execute:async(e,t)=>await hN(),parameters:jM({})}),Tj({name:`mcp_connect_server`,description:`Connect to the MCP server. If "success", the connection to the MCP server is successful. Otherwise, the connection fails.`,execute:async({command:e,args:t})=>(await pN(e,t),`success`),parameters:jM({command:Zj().describe(`The command to connect to the MCP server`),args:kM(Zj()).describe(`The arguments to pass to the MCP server`)})}),Tj({name:`mcp_disconnect_server`,description:`Disconnect from the MCP server. If "success", the disconnection from the MCP server is successful. Otherwise, the disconnection fails.`,execute:async()=>(await mN(),`success`),parameters:jM({})}),Tj({name:`mcp_call_tool`,description:`Call a tool on the MCP server. The result is a list of content and a boolean indicating whether the tool call is an error.`,execute:async({name:e,parameters:t})=>{let n=Object.fromEntries(t.map(({name:e,value:t})=>[e,t])),r=await gN(e,n);return r},parameters:jM({name:Zj().describe(`The name of the tool to call`),parameters:kM(jM({name:Zj().describe(`The name of the parameter`),value:NM([Zj(),yM(),CM(),jM({})]).describe(`The value of the parameter, it can be a string, a number, a boolean, or an object`)})).describe(`The parameters to pass to the tool`)})})],vN=async()=>Promise.all(_N);function yN(e,t,n,r,i=new Map){return!!(r?.supportsTools||i.get(`${t.chat(e).baseURL}-${e}`))}async function bN(e,t,n,r){let i=r?.headers;return await Xn({...t.chat(e),maxSteps:10,messages:n.map(e=>({...e,content:e.role===`error`?`User encountered error: ${e.content}`:e.content,role:e.role===`error`?`user`:e.role})),headers:i,tools:yN(e,t,n,r)?[...await vN(),...await oN()]:void 0,onEvent(e){r?.onStreamEvent?.(e)}})}async function xN(e,t,n,r){async function i(n){try{let i=await bN(e,t,[{role:`user`,content:`Hello, world!`}],{...r,supportsTools:n});for await(let e of Ba(i.textStream));return!0}catch(e){if(e instanceof Error&&e.name===new f(``).name&&(String(e).includes(`does not support tools`)||String(e).includes(`No endpoints found that support tool use.`)))return!1;throw e}}function a(e,t){return new Promise(n=>{let r=[],i=0;e.forEach((a,o)=>{setTimeout(()=>{a().then(e=>{r[o]={result:e}}).catch(e=>{r[o]={error:e}}).finally(()=>{i++,i===e.length&&n(r)})},o*t)})})}let o=[()=>i(!0),()=>i(!1)],s=await a(o,1e3);if(s.some(e=>e.error)){let t=Error(`Error during tools compatibility discovery for model: ${e}. Errors: ${s.map(e=>e.error).filter(Boolean).join(`, `)}`);throw t.cause=s.map(e=>e.error).filter(Boolean),t}return s[0].result===!0&&s[1].result===!0}const SN=oe(`llm`,()=>{let e=g(new Map);async function t(t,n,r,i){if(e.value.has(`${n.chat(t).baseURL}-${t}`))return;let a=await xN(t,n,r,{...i,toolsCompatibility:e.value});e.value.set(`${n.chat(t).baseURL}-${t}`,a)}function n(t,n,r,i){return bN(t,n,r,{...i,toolsCompatibility:e.value})}async function r(e,t){if(e===``)return[];try{return await d({baseURL:e.endsWith(`/`)?e:`${e}/`,apiKey:t})}catch(e){if(String(e).includes(`Failed to construct 'URL': Invalid URL`))return[];throw e}}return{models:r,stream:n,discoverToolsCompatibility:t}}),CN=oe(`chat`,()=>{let{stream:e,discoverToolsCompatibility:t}=SN(),{systemPrompt:n}=se(za()),r=g(!1),i=g([]),a=g([]),o=g([]),s=g([]),u=g([]),d=g([]),f=g([]),p=g([]);function m(e){i.value.push(e)}function h(e){a.value.push(e)}function ee(e){o.value.push(e)}function te(e){s.value.push(e)}function ne(e){u.value.push(e)}function re(e){d.value.push(e)}function ie(e){f.value.push(e)}function ae(e){p.value.push(e)}function oe(){return{role:`system`,content:"- For any programming code block, always specify the programming language that supported on @shikijs/rehype on the rendered markdown, eg. ```python ... ```\n- For any math equation, use LaTeX format, eg: $ x^3 $, always escape dollar sign outside math equation\n"+n.value}}let ce=pe(`chat/messages`,[oe()]);function le(){ce.value=[oe()]}on(n,()=>{ce.value.length>0&&ce.value[0].role===`system`&&(ce.value[0]=oe())},{immediate:!0});let ue=g({role:`assistant`,content:``,slices:[],tool_results:[]});async function de(t,n){try{if(r.value=!0,!t&&!n.attachments?.length)return;for(let e of i.value)await e(t);let m=[{type:`text`,text:t}];if(n.attachments)for(let e of n.attachments)e.type===`image`&&m.push({type:`image_url`,image_url:{url:`data:${e.mimeType};base64,${e.data}`}});let h=m.length>1?m:t;ce.value.push({role:`user`,content:h});let ee=cr({onLiteral:async e=>{for(let t of u.value)await t(e);ue.value.content+=e;let t=ue.value.slices.at(-1);if(t?.type===`text`){t.text+=e;return}ue.value.slices.push({type:`text`,text:e})},onSpecial:async e=>{for(let t of d.value)await t(e)},minLiteralEmitLength:24}),te=l({handlers:[async e=>{if(e.data.type===`tool-call`){ue.value.slices.push(e.data);return}e.data.type===`tool-call-result`&&ue.value.tool_results.push(e.data)}]});ue.value={role:`assistant`,content:``,slices:[],tool_results:[]};let ne=ce.value.map(e=>{if(e.role===`assistant`){let{slices:t,...n}=e;return n.tool_results=En(n.tool_results),En(n)}return En(e)});for(let e of a.value)await e(t);for(let e of o.value)await e(t);let re=``,ie=n.providerConfig?.headers||{};await e(n.model,n.chatProvider,ne,{headers:ie,async onStreamEvent(e){if(e.type===`tool-call`)te.enqueue({type:`tool-call`,toolCall:e});else if(e.type===`tool-result`)te.enqueue({type:`tool-call-result`,id:e.toolCallId,result:e.result});else if(e.type===`text-delta`)re+=e.text,await ee.consume(e.text);else if(e.type===`finish`){await ee.end(),ue.value.slices.length>0&&ce.value.push(En(ue.value)),ue.value={role:`assistant`,content:``,slices:[],tool_results:[]};let e=`${c}${c}`;for(let t of u.value)await t(e);for(let e of f.value)await e();for(let e of p.value)await e(re);console.debug(`LLM output:`,re)}}});for(let e of s.value)await e(t)}catch(e){throw console.error(`Error sending message:`,e),e}finally{r.value=!1}}return{sending:r,messages:ce,streamingMessage:ue,discoverToolsCompatibility:t,send:de,cleanupMessages:le,onBeforeMessageComposed:m,onAfterMessageComposed:h,onBeforeSend:ee,onAfterSend:te,onTokenLiteral:ne,onTokenSpecial:re,onStreamEnd:ie,onAssistantResponseEnd:ae}}),wN={relative:``},TN={"h-full":``,"w-full":``};var EN=Jt({__name:`Stage`,props:Zt({paused:{type:Boolean,default:!1},focusAt:{},xOffset:{},yOffset:{},scale:{default:1}},{state:{default:`pending`},stateModifiers:{}}),emits:[`update:state`],setup(e,{expose:c}){let d=an(e,`state`),f=g(),ee=g(),te=g(),re=me(),{stageModelRenderer:ie,stageViewControlsEnabled:ae,live2dDisableFocus:oe,stageModelSelectedUrl:ce}=se(re),{mouthOpenSize:le}=se(i()),{audioContext:ue,calculateVolume:de}=r(),{onBeforeMessageComposed:fe,onBeforeSend:pe,onTokenLiteral:he,onTokenSpecial:ge,onStreamEnd:_e,onAssistantResponseEnd:ve}=CN(),ye=u(),be=Pc(),xe=vj(),Se=g(!0);be.onShouldUpdateView(async()=>{Se.value=!1,await re.updateStageModel(),setTimeout(()=>{Se.value=!0},100)}),xe.onShouldUpdateView(async()=>{Se.value=!1,await re.updateStageModel(),setTimeout(()=>{Se.value=!0},100)});let Ce=g(),we=g(!1),Te=g(!1),Ee=null,De=l({handlers:[e=>new Promise(t=>{if(Ee){try{Ee.stop(),Ee.disconnect()}catch{}Ee=null}let n=ue.createBufferSource();n.buffer=e.data.audioBuffer,n.connect(ue.destination),n.connect(Ce.value),we.value=!0,Ee=n,n.start(0),n.onended=()=>{we.value=!1,Ee===n&&(Ee=null),t()}})]}),Oe=t(),{ssmlEnabled:ke,activeSpeechProvider:Ae,activeSpeechModel:je,activeSpeechVoice:Me,pitch:Ne}=se(Oe);async function Pe(e){try{if(!Ae.value){console.warn(`No active speech provider configured`);return}if(!Me.value){console.warn(`No active speech voice configured`);return}let t=await ye.getProviderInstance(Ae.value);if(!t){console.error(`Failed to initialize speech provider`);return}let r=ye.getProviderConfig(Ae.value),i=ke.value?Oe.generateSSML(e.data,Me.value,{...r,pitch:Ne.value}):e.data,a=await n({...t.speech(je.value,r),input:i,voice:Me.value.id}),o=await ue.decodeAudioData(a);De.enqueue({audioBuffer:o,text:e.data})}catch(e){console.error(`Speech generation failed:`,e)}}let Fe=l({handlers:[Pe]}),Ie=s(Fe),{currentMotion:Le}=se(Pc()),Re=l({handlers:[async e=>{if(ie.value===`vrm`){let t=h[e.data];if(!t)return;await ee.value.setExpression(t)}else ie.value===`live2d`&&(Le.value={group:m[e.data]})}]}),ze=o(Re);ze.onHandlerEvent(`emotion`,e=>{console.debug(`emotion detected`,e)});let Be=a();Be.onHandlerEvent(`delay`,e=>{console.debug(`delay detected`,e)});function Ve(){requestAnimationFrame(Ve),we.value&&(le.value=de(Ce.value,`linear`))}function He(){Te.value||=(Ve(),ue.resume(),!0)}function Ue(){Ce.value||=ue.createAnalyser()}fe(async()=>{if(Ee){try{Ee.stop(),Ee.disconnect()}catch{}Ee=null}De.clear(),Ue(),He()}),pe(async()=>{Le.value={group:ne}}),he(async e=>{Ie.enqueue(e)}),ge(async e=>{Be.enqueue(e),ze.enqueue(e)}),_e(async()=>{Be.enqueue(p)}),ve(async e=>{}),en(()=>{Te.value=!1}),$t(async()=>{f.value=Ok({connection:{bundles:fr()}}),await f.value.execute(`CREATE TABLE memory_test (vec FLOAT[768]);`)});function We(){if(ie.value===`live2d`)return te.value?.canvasElement();if(ie.value===`vrm`)return ee.value?.canvasElement()}return c({canvasElement:We}),(e,t)=>(tn(),Kt(`div`,wN,[Ut(`div`,TN,[On(ie)===`live2d`&&Se.value?(tn(),Wt(Rc,{key:0,ref_key:`live2dSceneRef`,ref:te,state:d.value,"onUpdate:state":t[0]||=e=>d.value=e,"min-w":`50% r.modelSrc),l=g(),u=g(),{scene:d}=We(),{onBeforeRender:f}=Ue(),p=ar(),m=g(),h=vj(),{modelOffset:ee,modelOrigin:te,modelSize:ne,cameraPosition:re,modelRotationY:ie,lookAtTarget:ae,eyeHeight:oe,trackingMode:ce,envSelect:le,skyBoxIntensity:ue}=se(h),de=g(),fe=or(),pe=g(0),me=null;async function he(){await Le(o).not.toBeTruthy(),o.value=!0,s.value=!1;try{if(!d.value){console.warn(`Scene is not ready, cannot load VRM model.`);return}if(l.value&&ve(),!c.value)return;try{let e=await nr(c.value,{scene:d.value,lookAt:!0,onProgress:e=>i(`loadModelProgress`,Number((100*e.loaded/e.total).toFixed(2)))});if(!e||!e._vrm){console.warn(`No VRM model loaded`);return}let{_vrm:t,_vrmGroup:n,modelCenter:o,modelSize:h,initialCameraOffset:se}=e;de.value=n,re.value={x:o.x+se.x,y:o.y+se.y,z:o.z+se.z},te.value={x:o.x,y:o.y,z:o.z},ne.value={x:h.x,y:h.y,z:h.z},de.value.position.set(ee.value.x,ee.value.y,ee.value.z);let le=new mn(0,0,-1),ue=t.lookAt,pe=new lt;if(ue){let e=ue.faceFront;pe.setFromUnitVectors(e.normalize(),le.normalize()),n.quaternion.premultiply(pe),n.updateMatrixWorld(!0)}else console.warn(`No look-at target found in VRM model`);ie.value=0;function he(e){let n=t.humanoid?.getNormalizedBoneNode(`hips`);if(!n){console.warn(`No hips node found in VRM model.`);return}n.updateMatrixWorld(!0);let r=new mn;n.getWorldPosition(r);let i=e.tracks.find(e=>e.name.endsWith(`Hips.position`));if(!(i instanceof gn)){console.warn(`No Hips.position track of type VectorKeyframeTrack found in animation.`);return}let a=new mn(i.values[0],i.values[1],i.values[2]),o=new mn().subVectors(a,r);e.tracks.forEach(e=>{if(e.name.endsWith(`.position`)&&e instanceof gn)for(let t=0;t!!e?.isShaderMaterial;!me&&d.value&&(me=Zn(d.value)),t.scene.traverse(e=>{if(e instanceof jt&&e.material){let t=Array.isArray(e.material)?e.material:[e.material];t.forEach(e=>{if(e instanceof It||e instanceof Ft)e.envMapIntensity=1,e.needsUpdate=!0;else if(ve(e))`toneMapped`in e&&(e.toneMapped=!1);else if(ye(e)){`toneMapped`in e&&(e.toneMapped=!1),`envMap`in e&&e.envMap&&(e.envMap=null);let t=e.map;if(t&&t.colorSpace!==void 0)try{t.colorSpace=bt}catch(e){console.warn(`Failed to set colorSpace on texture:`,e)}Qn(e)}})}}),l.value=t,i(`modelReady`),s.value=!0;function be(){let e=l.value?.humanoid?.getNormalizedBoneNode(`head`);if(!e)return null;let t=new mn;return e.getWorldPosition(t),t.y}oe.value=be(),ce.value=`none`,ae.value={x:0,y:oe.value,z:-1e3},a=f(({delta:e})=>{u.value?.update(e),l.value?.update(e),l.value?.lookAt?.update?.(e),p.update(l.value,e),fe.update(l.value,ae,e),m.value?.update(e)}).off}catch(e){i(`error`,e)}}catch(e){console.error(e)}finally{o.value=!1}}on(ee,()=>{de.value&&de.value.position.set(ee.value.x,ee.value.y,ee.value.z)},{deep:!0}),on(ie,e=>{l.value&&de.value&&(de.value.rotation.y=At.degToRad(e))}),on(c,(e,t)=>{e!==t&&he()});let{pause:ge,resume:_e}=Ue();on(()=>r.paused,e=>e?ge():_e());function ve(){a?.(),l.value&&(l.value.scene.removeFromParent(),sr.deepDispose(l.value.scene),me?.dispose())}return on(()=>[le.value,r.nprEquirectTex,ue.value,r.nprIrrSH],async()=>{if(!l.value)return;pe.value+=1;let e=$n(le.value);er(l.value?.scene,{mode:e,intensity:ue.value,sh:r.nprIrrSH??null}),me?.update(e,ue.value,r.nprIrrSH??null)},{immediate:!0,deep:!1}),$t(async()=>await he()),en(()=>ve()),t({setExpression(e){m.value?.setEmotionWithResetAfter(e,1e3)},scene:Cn(()=>l.value?.scene),lookAtUpdate(e){fe.instantUpdate(l.value,e)}}),(e,t)=>s.value?rn(e.$slots,`default`,{key:0}):Gt(``,!0)}}),kN=ON;const AN={type:`change`},jN={type:`start`},MN={type:`end`},NN=new ht,PN=new ct,FN=Math.cos(70*At.DEG2RAD),IN=new mn,LN=2*Math.PI,RN={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},zN=1e-6;var BN=class extends Se{constructor(e,t=null){super(e,t),this.state=RN.NONE,this.target=new mn,this.cursor=new mn,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:`ArrowLeft`,UP:`ArrowUp`,RIGHT:`ArrowRight`,BOTTOM:`ArrowDown`},this.mouseButtons={LEFT:Ot.ROTATE,MIDDLE:Ot.DOLLY,RIGHT:Ot.PAN},this.touches={ONE:Vt.ROTATE,TWO:Vt.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new mn,this._lastQuaternion=new lt,this._lastTargetPosition=new mn,this._quat=new lt().setFromUnitVectors(e.up,new mn(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new zt,this._sphericalDelta=new zt,this._scale=1,this._panOffset=new mn,this._rotateStart=new pn,this._rotateEnd=new pn,this._rotateDelta=new pn,this._panStart=new pn,this._panEnd=new pn,this._panDelta=new pn,this._dollyStart=new pn,this._dollyEnd=new pn,this._dollyDelta=new pn,this._dollyDirection=new mn,this._mouse=new pn,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=HN.bind(this),this._onPointerDown=VN.bind(this),this._onPointerUp=UN.bind(this),this._onContextMenu=XN.bind(this),this._onMouseWheel=KN.bind(this),this._onKeyDown=qN.bind(this),this._onTouchStart=JN.bind(this),this._onTouchMove=YN.bind(this),this._onMouseDown=WN.bind(this),this._onMouseMove=GN.bind(this),this._interceptControlDown=ZN.bind(this),this._interceptControlUp=QN.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(e){super.connect(e),this.domElement.addEventListener(`pointerdown`,this._onPointerDown),this.domElement.addEventListener(`pointercancel`,this._onPointerUp),this.domElement.addEventListener(`contextmenu`,this._onContextMenu),this.domElement.addEventListener(`wheel`,this._onMouseWheel,{passive:!1});let t=this.domElement.getRootNode();t.addEventListener(`keydown`,this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction=`none`}disconnect(){this.domElement.removeEventListener(`pointerdown`,this._onPointerDown),this.domElement.removeEventListener(`pointermove`,this._onPointerMove),this.domElement.removeEventListener(`pointerup`,this._onPointerUp),this.domElement.removeEventListener(`pointercancel`,this._onPointerUp),this.domElement.removeEventListener(`wheel`,this._onMouseWheel),this.domElement.removeEventListener(`contextmenu`,this._onContextMenu),this.stopListenToKeyEvents();let e=this.domElement.getRootNode();e.removeEventListener(`keydown`,this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction=`auto`}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener(`keydown`,this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener(`keydown`,this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(AN),this.update(),this.state=RN.NONE}update(e=null){let t=this.object.position;IN.copy(t).sub(this.target),IN.applyQuaternion(this._quat),this._spherical.setFromVector3(IN),this.autoRotate&&this.state===RN.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let n=this.minAzimuthAngle,r=this.maxAzimuthAngle;isFinite(n)&&isFinite(r)&&(n<-Math.PI?n+=LN:n>Math.PI&&(n-=LN),r<-Math.PI?r+=LN:r>Math.PI&&(r-=LN),n<=r?this._spherical.theta=Math.max(n,Math.min(r,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(n+r)/2?Math.max(n,this._spherical.theta):Math.min(r,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let i=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{let e=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),i=e!=this._spherical.radius}if(IN.setFromSpherical(this._spherical),IN.applyQuaternion(this._quatInverse),t.copy(this.target).add(IN),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let e=null;if(this.object.isPerspectiveCamera){let t=IN.length();e=this._clampDistance(t*this._scale);let n=t-e;this.object.position.addScaledVector(this._dollyDirection,n),this.object.updateMatrixWorld(),i=!!n}else if(this.object.isOrthographicCamera){let t=new mn(this._mouse.x,this._mouse.y,0);t.unproject(this.object);let n=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),i=n!==this.object.zoom;let r=new mn(this._mouse.x,this._mouse.y,0);r.unproject(this.object),this.object.position.sub(r).add(t),this.object.updateMatrixWorld(),e=IN.length()}else console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled.`),this.zoomToCursor=!1;e!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(e).add(this.object.position):(NN.origin.copy(this.object.position),NN.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(NN.direction))zN||8*(1-this._lastQuaternion.dot(this.object.quaternion))>zN||this._lastTargetPosition.distanceToSquared(this.target)>zN?(this.dispatchEvent(AN),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e===null?LN/60/60*this.autoRotateSpeed:LN/60*this.autoRotateSpeed*e}_getZoomScale(e){let t=Math.abs(e*.01);return .95**(this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){IN.setFromMatrixColumn(t,0),IN.multiplyScalar(-e),this._panOffset.add(IN)}_panUp(e,t){this.screenSpacePanning===!0?IN.setFromMatrixColumn(t,1):(IN.setFromMatrixColumn(t,0),IN.crossVectors(this.object.up,IN)),IN.multiplyScalar(e),this._panOffset.add(IN)}_pan(e,t){let n=this.domElement;if(this.object.isPerspectiveCamera){let r=this.object.position;IN.copy(r).sub(this.target);let i=IN.length();i*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*i/n.clientHeight,this.object.matrix),this._panUp(2*t*i/n.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.`),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.`),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn(`WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.`),this.enableZoom=!1)}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;let n=this.domElement.getBoundingClientRect(),r=e-n.left,i=t-n.top,a=n.width,o=n.height;this._mouse.x=r/a*2-1,this._mouse.y=-(i/o)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let t=this.domElement;this._rotateLeft(LN*this._rotateDelta.x/t.clientHeight),this._rotateUp(LN*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(LN*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-LN*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(LN*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-LN*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._rotateStart.set(n,r)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._panStart.set(n,r)}}_handleTouchStartDolly(e){let t=this._getSecondPointerPosition(e),n=e.pageX-t.x,r=e.pageY-t.y,i=Math.sqrt(n*n+r*r);this._dollyStart.set(0,i)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let t=this.domElement;this._rotateLeft(LN*this._rotateDelta.x/t.clientHeight),this._rotateUp(LN*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{let t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);this._panEnd.set(n,r)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){let t=this._getSecondPointerPosition(e),n=e.pageX-t.x,r=e.pageY-t.y,i=Math.sqrt(n*n+r*r);this._dollyEnd.set(0,i),this._dollyDelta.set(0,(this._dollyEnd.y/this._dollyStart.y)**+this.zoomSpeed),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);let a=(e.pageX+t.x)*.5,o=(e.pageY+t.y)*.5;this._updateZoomParameters(a,o)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t{n.value&&r.value?.domElement&&(i.value=new BN(n.value,r.value.domElement),i.value.enableDamping=!0,i.value.dampingFactor=.5,i.value.mouseButtons={LEFT:Ot.ROTATE,MIDDLE:Ot.DOLLY,RIGHT:Ot.PAN},i.value.touches={ONE:Vt.ROTATE,TWO:Vt.DOLLY_PAN},i.value.enablePan=!1,i.value.minDistance=a.value.z,i.value.maxDistance=a.value.z*20,i.value.update(),o.value=i.value.getDistance())}),t({controls:i,getDistance:()=>i.value?.getDistance(),update:()=>i.value?.update(),setTarget:e=>{i.value&&(i.value.target.set(e.x,e.y,e.z),i.value.update())}}),(e,t)=>rn(e.$slots,`default`)}}),eP=$N;export{DN as b,CN as c,wj as d,vj as e,wT as f,Fw as g,Cw as h,Rc as i,Ic as j,Pc as k,Ha as l}; \ No newline at end of file diff --git a/assets/Textarea-B_NArpfq.js b/assets/Textarea-CCCcUNHl.js similarity index 83% rename from assets/Textarea-B_NArpfq.js rename to assets/Textarea-CCCcUNHl.js index 50f305f38cb1bb29af566d00b9437c14e68f7182..f663e133d9dd3deb56f35bb5461cddf247f4d7c9 100644 --- a/assets/Textarea-B_NArpfq.js +++ b/assets/Textarea-CCCcUNHl.js @@ -1 +1 @@ -import{b as e}from"./Basic-D33XBiPI.js";import{eA as t,eG as n,eQ as r,eW as i}from"./index-DEhol03r.js";var a=n({__name:`Textarea`,props:{modelValue:{default:``},modelModifiers:{}},emits:[`update:modelValue`],setup(n){let a=i(n,`modelValue`);return(n,i)=>(r(),t(e,{modelValue:a.value,"onUpdate:modelValue":i[0]||=e=>a.value=e,border:`focus:primary-300 dark:focus:primary-400/50 2 solid neutral-100 dark:neutral-900`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-50 dark:neutral-950 focus:neutral-50 dark:focus:neutral-900`},null,8,[`modelValue`]))}}),o=a;export{o as b}; \ No newline at end of file +import{b as e}from"./Basic-IbpirTdD.js";import{eB as t,eH as n,eR as r,eX as i}from"./index-D3Bcbz9S.js";var a=n({__name:`Textarea`,props:{modelValue:{default:``},modelModifiers:{}},emits:[`update:modelValue`],setup(n){let a=i(n,`modelValue`);return(n,i)=>(r(),t(e,{modelValue:a.value,"onUpdate:modelValue":i[0]||=e=>a.value=e,border:`focus:primary-300 dark:focus:primary-400/50 2 solid neutral-100 dark:neutral-900`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-50 dark:neutral-950 focus:neutral-50 dark:focus:neutral-900`},null,8,[`modelValue`]))}}),o=a;export{o as b}; \ No newline at end of file diff --git a/assets/_...all_-C1wfaneY.js b/assets/_...all_-C1wfaneY.js new file mode 100644 index 0000000000000000000000000000000000000000..3f463d1bb4e8f04cd59298089306c05698aabc40 --- /dev/null +++ b/assets/_...all_-C1wfaneY.js @@ -0,0 +1 @@ +import{ao as e,bN as t,e$ as n,eA as r,eD as i,eF as a,eG as o,eH as s,eR as c,f7 as l}from"./index-D3Bcbz9S.js";const u={"h-full":``,"w-full":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``,"gap-4":``};var d=s({__name:`[...all]`,setup(s){let d=t();return(t,s)=>(c(),i(`div`,u,[s[2]||=r(`div`,{"text-3xl":``},` Where are we? `,-1),r(`div`,null,[o(l(e),{onClick:s[0]||=e=>l(d).go(-1)},{default:n(()=>[...s[1]||=[a(` Go Back `,-1)]]),_:1})])]))}}),f=d;export{f as default}; \ No newline at end of file diff --git a/assets/_...all_-DEVN9TnN.js b/assets/_...all_-DEVN9TnN.js deleted file mode 100644 index c94ec498656fac73b3f20f3edf9e470da75d6adb..0000000000000000000000000000000000000000 --- a/assets/_...all_-DEVN9TnN.js +++ /dev/null @@ -1 +0,0 @@ -import{ao as e,bM as t,eC as n,eE as r,eF as i,eG as a,eQ as o,e_ as s,ez as c,f6 as l}from"./index-DEhol03r.js";const u={"h-full":``,"w-full":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``,"gap-4":``};var d=a({__name:`[...all]`,setup(a){let d=t();return(t,a)=>(o(),n(`div`,u,[a[2]||=c(`div`,{"text-3xl":``},` Where are we? `,-1),c(`div`,null,[i(l(e),{onClick:a[0]||=e=>l(d).go(-1)},{default:s(()=>[...a[1]||=[r(` Go Back `,-1)]]),_:1})])]))}}),f=d;export{f as default}; \ No newline at end of file diff --git a/assets/__vite-browser-external-BOrN4rVf.js b/assets/__vite-browser-external-BOrN4rVf.js deleted file mode 100644 index 13ee7fa5c7ef84dde8d7dae9a232602f1c835980..0000000000000000000000000000000000000000 --- a/assets/__vite-browser-external-BOrN4rVf.js +++ /dev/null @@ -1 +0,0 @@ -import{fb as e}from"./index-DEhol03r.js";var t=e(((exports,t)=>{t.exports={}}));export default t(); \ No newline at end of file diff --git a/assets/__vite-browser-external-CplUCAoG.js b/assets/__vite-browser-external-CplUCAoG.js new file mode 100644 index 0000000000000000000000000000000000000000..5eb6ddb520e45af91f24968d029bc88d17db6041 --- /dev/null +++ b/assets/__vite-browser-external-CplUCAoG.js @@ -0,0 +1 @@ +import{fc as e}from"./index-D3Bcbz9S.js";var t=e(((exports,t)=>{t.exports={}}));export default t(); \ No newline at end of file diff --git a/assets/airi-card-BjmJX0Df.js b/assets/airi-card-BjmJX0Df.js new file mode 100644 index 0000000000000000000000000000000000000000..551744a4f3f3b56d1458982776e3b5515896a9a6 --- /dev/null +++ b/assets/airi-card-BjmJX0Df.js @@ -0,0 +1 @@ +import{b as e}from"./DeleteCardDialog-DnHrNX0U.js";import"./BasicInputFile-DP8wr1m6.js";import{b as t}from"./InputFile-Bx1X59Ey.js";import{aS as n,ae as r,as as ee,bQ as i,e$ as a,eA as o,eB as s,eC as c,eD as l,eF as u,eG as d,eH as f,eR as p,eT as te,eW as m,eZ as h,es as g,ew as _,ez as v,f0 as y,f2 as b,f7 as x,f8 as ne,fb as S}from"./index-D3Bcbz9S.js";import{b as C}from"./route-block-Dc_s4AGN.js";import{b as w}from"./airi-card-CObXZhjH.js";import{b as T}from"./CardCreate-kEgCBYa3.js";import{b as E}from"./CardCreationDialog-K2uIVETx.js";import{b as D}from"./CardDetailDialog-Bhvhe9Mf.js";import{b as O}from"./CardListItem-qNOu7TJN.js";const k={"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},A={flex:`~ row`,"flex-wrap":``,"items-center":``,"justify-between":``,"gap-4":``},re={class:`relative min-w-[200px] flex-1`,"inline-flex":`~`,"w-full":``,"items-center":``},ie=[`placeholder`],ae={class:`relative flex flex-row justify-start gap-2 lg:flex-col`},oe={class:`top-[-32px] whitespace-nowrap text-sm text-neutral-500 leading-10 lg:absolute dark:text-neutral-400`},j={key:0,flex:``,"flex-col":``,"items-center":``},M={"font-medium":``,text:`neutral-600 dark:neutral-300`},N={text:`neutral-500 dark:neutral-400`,"mt-2":``,"text-sm":``},P={key:1,flex:``,"flex-col":``,"items-center":``},F={"font-medium":``,text:`primary-600 dark:primary-300`},I={key:1,class:`col-span-full rounded-xl p-8 text-center`,border:`~ neutral-200/50 dark:neutral-700/30`,bg:`neutral-50/50 dark:neutral-900/50`},L={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var R=f({__name:`index`,setup(f){let{t:C}=r(),R=w(),{addCard:z,removeCard:B}=R,{cards:V,activeCardId:H}=i(R),U=b(``),W=b(!1),G=b(!1),K=b(``),q=b(`nameAsc`),J=b([]);h(J,async e=>{let t=e[0];if(t)try{let e=await t.text(),n=JSON.parse(e);U.value=z(n),W.value=!0}catch(e){console.error(`Error processing card file:`,e)}});let Y=v(()=>Array.from(V.value.entries()).map(([e,t])=>({id:e,name:t.name,description:t.description}))),se=v(()=>{if(!K.value)return Y.value;let e=K.value.toLowerCase();return Y.value.filter(t=>t.name.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))}),X=v(()=>{let e=[...se.value];return q.value===`nameAsc`?e.sort((e,t)=>e.name.localeCompare(t.name)):q.value===`nameDesc`?e.sort((e,t)=>t.name.localeCompare(e.name)):q.value===`recent`?e.sort((e,t)=>t.id.localeCompare(e.id)):e}),Z=b(!1),Q=b(null);function ce(){Q.value&&(B(Q.value),Q.value=null,Z.value=!1)}function le(e){Q.value=e,Z.value=!0}function ue(e){U.value=e,W.value=!0}function de(){G.value=!0}function fe(e){H.value=e}function pe(e){let t=V.value.get(e);return t?.version||`1.0.0`}function $(e,t){let n=V.value.get(e);if(!n||!n.extensions?.airi?.modules)return`default`;let r=n.extensions.airi.modules;return t===`consciousness`?r.consciousness?.model&&r.consciousness.model.split(`-`).pop()||`default`:t===`voice`&&r.speech?.voice_id||`default`}return(r,i)=>{let f=m(`motion`);return p(),l(_,null,[o(`div`,k,[o(`div`,A,[o(`div`,re,[i[7]||=o(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[o(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),y(o(`input`,{"onUpdate:modelValue":i[0]||=e=>K.value=e,type:`search`,class:`w-full rounded-xl p-2.5 pl-10 text-sm outline-none`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,bg:`white dark:neutral-900`,placeholder:x(C)(`settings.pages.card.search`)},null,8,ie),[[g,K.value]])]),o(`div`,ae,[o(`div`,oe,S(x(C)(`settings.pages.card.sort_by`))+`: `,1),d(x(n),{modelValue:q.value,"onUpdate:modelValue":i[1]||=e=>q.value=e,options:[{value:`nameAsc`,label:x(C)(`settings.pages.card.name_asc`)},{value:`nameDesc`,label:x(C)(`settings.pages.card.name_desc`)},{value:`recent`,label:x(C)(`settings.pages.card.recent`)}],placeholder:`Select sort option`,class:`min-w-[150px]`},null,8,[`modelValue`,`options`])])]),o(`div`,{class:ne([`mt-4`,{"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4 grid-auto-rows-[minmax(min-content,max-content)] grid-auto-flow-dense sm:grid-cols-[repeat(auto-fill,minmax(240px,1fr))] sm:gap-5 md:grid-cols-[repeat(auto-fill,minmax(220px,1fr))] lg:grid-cols-[repeat(auto-fill,minmax(250px,1fr))]":x(V).size>0}])},[d(x(t),{modelValue:J.value,"onUpdate:modelValue":i[2]||=e=>J.value=e,accept:`*.json`},{default:a(({isDragging:e})=>[e?(p(),l(`div`,P,[i[9]||=o(`div`,{"i-solar:upload-minimalistic-bold":``,class:`mb-2 text-5xl text-primary-500 dark:text-primary-400`},null,-1),o(`p`,F,S(x(C)(`settings.pages.card.drop_here`)),1)])):(p(),l(`div`,j,[i[8]||=o(`div`,{"i-solar:upload-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),o(`p`,M,S(x(C)(`settings.pages.card.upload`)),1),o(`p`,N,S(x(C)(`settings.pages.card.upload_desc`)),1)]))]),_:1},8,[`modelValue`]),d(T,{onClick:de}),x(V).size>0?(p(!0),l(_,{key:0},te(X.value,e=>(p(),s(O,{id:e.id,key:e.id,name:e.name,description:e.description,"is-active":e.id===x(H),"is-selected":e.id===U.value&&W.value,version:pe(e.id),"consciousness-model":$(e.id,`consciousness`),"voice-model":$(e.id,`voice`),onSelect:t=>ue(e.id),onActivate:t=>fe(e.id),onDelete:t=>le(e.id)},null,8,[`id`,`name`,`description`,`is-active`,`is-selected`,`version`,`consciousness-model`,`voice-model`,`onSelect`,`onActivate`,`onDelete`]))),128)):c(``,!0),x(V).size===0?(p(),l(`div`,I,[i[10]||=o(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),o(`p`,null,S(x(C)(`settings.pages.card.no_cards`)),1)])):c(``,!0),K.value&&X.value.length===0?(p(),s(x(ee),{key:2,type:`warning`},{title:a(()=>[u(S(x(C)(`settings.pages.card.no_results`)),1)]),content:a(()=>[u(S(x(C)(`settings.pages.card.try_different_search`)),1)]),_:1})):c(``,!0)],2)]),d(e,{modelValue:Z.value,"onUpdate:modelValue":i[3]||=e=>Z.value=e,"card-name":Q.value?x(R).getCard(Q.value)?.name:``,onConfirm:ce,onCancel:i[4]||=e=>Q.value=null},null,8,[`modelValue`,`card-name`]),d(D,{modelValue:W.value,"onUpdate:modelValue":i[5]||=e=>W.value=e,"card-id":U.value},null,8,[`modelValue`,`card-id`]),d(E,{modelValue:G.value,"onUpdate:modelValue":i[6]||=e=>G.value=e},null,8,[`modelValue`]),y((p(),l(`div`,L,[...i[11]||=[o(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)]])),[[f]])],64)}}});typeof C==`function`&&C(R);var z=R;export{z as default}; \ No newline at end of file diff --git a/assets/airi-card-7HyqBFjt.js b/assets/airi-card-CObXZhjH.js similarity index 94% rename from assets/airi-card-7HyqBFjt.js rename to assets/airi-card-CObXZhjH.js index b7a27a84348ead1576117ef5fd44b4fe0428a4b3..f87442e41fc447cac521f6ac00936c474aa82db8 100644 --- a/assets/airi-card-7HyqBFjt.js +++ b/assets/airi-card-CObXZhjH.js @@ -1,4 +1,4 @@ -import{L as e,a3 as t,aC as n,ae as r,bO as i,bP as a,bY as o,eO as s,eY as c,ey as l,j as u}from"./index-DEhol03r.js";const d=i(`airi-card`,()=>{let i=o(`airi-cards`,new Map),d=o(`airi-card-active-id`,`default`),f=l(()=>i.value.get(d.value)),p=t(),m=e(),{activeModel:h}=a(p),{activeSpeechVoiceId:g,activeSpeechModel:_}=a(m),v=e=>{let t=u();return i.value.set(t,S(e)),t},y=e=>{i.value.delete(e)},b=e=>i.value.get(e);function x(e){let t=`data`in e?e.data?.extensions?.airi:e.extensions?.airi,n={consciousness:{model:h.value},speech:{model:_.value,voice_id:g.value}};return t?{modules:{consciousness:{model:t.modules?.consciousness?.model??n.consciousness.model},speech:{model:t.modules?.speech?.model??n.speech.model,voice_id:t.modules?.speech?.voice_id??n.speech.voice_id,pitch:t.modules?.speech?.pitch,rate:t.modules?.speech?.rate,ssml:t.modules?.speech?.ssml,language:t.modules?.speech?.language},vrm:t.modules?.vrm,live2d:t.modules?.live2d},agents:t.agents??{}}:{modules:n,agents:{}}}function S(e){if(`data`in e){let t=e;return{name:t.data.name,version:t.data.character_version??`1.0.0`,description:t.data.description??``,creator:t.data.creator??``,notes:t.data.creator_notes??``,notesMultilingual:t.data.creator_notes_multilingual,personality:t.data.personality??``,scenario:t.data.scenario??``,greetings:[t.data.first_mes,...t.data.alternate_greetings??[]],greetingsGroupOnly:t.data.group_only_greetings??[],systemPrompt:t.data.system_prompt??``,postHistoryInstructions:t.data.post_history_instructions??``,messageExample:t.data.mes_example?t.data.mes_example.split(` +import{L as e,a3 as t,aD as n,ae as r,bP as i,bQ as a,bZ as o,eP as s,eZ as c,ez as l,j as u}from"./index-D3Bcbz9S.js";const d=i(`airi-card`,()=>{let i=o(`airi-cards`,new Map),d=o(`airi-card-active-id`,`default`),f=l(()=>i.value.get(d.value)),p=t(),m=e(),{activeModel:h}=a(p),{activeSpeechVoiceId:g,activeSpeechModel:_}=a(m),v=e=>{let t=u();return i.value.set(t,S(e)),t},y=e=>{i.value.delete(e)},b=e=>i.value.get(e);function x(e){let t=`data`in e?e.data?.extensions?.airi:e.extensions?.airi,n={consciousness:{model:h.value},speech:{model:_.value,voice_id:g.value}};return t?{modules:{consciousness:{model:t.modules?.consciousness?.model??n.consciousness.model},speech:{model:t.modules?.speech?.model??n.speech.model,voice_id:t.modules?.speech?.voice_id??n.speech.voice_id,pitch:t.modules?.speech?.pitch,rate:t.modules?.speech?.rate,ssml:t.modules?.speech?.ssml,language:t.modules?.speech?.language},vrm:t.modules?.vrm,live2d:t.modules?.live2d},agents:t.agents??{}}:{modules:n,agents:{}}}function S(e){if(`data`in e){let t=e;return{name:t.data.name,version:t.data.character_version??`1.0.0`,description:t.data.description??``,creator:t.data.creator??``,notes:t.data.creator_notes??``,notesMultilingual:t.data.creator_notes_multilingual,personality:t.data.personality??``,scenario:t.data.scenario??``,greetings:[t.data.first_mes,...t.data.alternate_greetings??[]],greetingsGroupOnly:t.data.group_only_greetings??[],systemPrompt:t.data.system_prompt??``,postHistoryInstructions:t.data.post_history_instructions??``,messageExample:t.data.mes_example?t.data.mes_example.split(` `).filter(Boolean).map(e=>e.split(` `).map(e=>{if(e.startsWith(`{{char}}:`)||e.startsWith(`{{user}}:`))return e;throw Error(`Invalid message example format: ${e}`)})):[],tags:t.data.tags??[],extensions:{airi:x(t),...t.data.extensions}}}return{...e,extensions:{airi:x(e),...e.extensions}}}return s(()=>{let{t:e}=r();i.value.set(`default`,S({name:`ReLU`,version:`1.0.0`,description:n(e(`base.prompt.prefix`),e(`base.prompt.suffix`)).content}))}),c(f,e=>{if(!e)return;let t=x(e);t&&(h.value=t?.modules?.consciousness?.model,_.value=t?.modules?.speech?.model,g.value=t?.modules?.speech?.voice_id)}),{cards:i,activeCard:f,activeCardId:d,addCard:v,removeCard:y,getCard:b,currentModels:l(()=>({consciousness:{model:h.value},speech:{model:_.value,voice_id:g.value}})),systemPrompt:l(()=>{let e=f.value;if(!e)return``;let t=[e.systemPrompt,e.description,e.personality].filter(Boolean);return t.join(` `)})}});export{d as b}; \ No newline at end of file diff --git a/assets/airi-card-DBOtd0Wi.js b/assets/airi-card-DBOtd0Wi.js deleted file mode 100644 index d1349ecc449747bcdee88d09f6daff96b6172770..0000000000000000000000000000000000000000 --- a/assets/airi-card-DBOtd0Wi.js +++ /dev/null @@ -1 +0,0 @@ -import{b as e}from"./DeleteCardDialog-BzH_7FHZ.js";import"./BasicInputFile-DJjm73Ud.js";import{b as t}from"./InputFile-BfCG4dBd.js";import{aR as n,ae as r,as as i,bP as a,e$ as o,eA as s,eB as c,eC as l,eE as u,eF as d,eG as f,eQ as p,eS as ee,eV as te,eY as ne,e_ as m,er as h,ev as g,ey as _,ez as v,f1 as y,f6 as b,f7 as re,fa as x}from"./index-DEhol03r.js";import{b as S}from"./route-block-Dc_s4AGN.js";import{b as C}from"./airi-card-7HyqBFjt.js";import{b as w}from"./CardCreate-CjMUomRq.js";import{b as T}from"./CardCreationDialog-tosLd0cj.js";import{b as E}from"./CardDetailDialog-CVyfYPDH.js";import{b as D}from"./CardListItem-C9OC2Kwb.js";const O={"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},k={flex:`~ row`,"flex-wrap":``,"items-center":``,"justify-between":``,"gap-4":``},A={class:`relative min-w-[200px] flex-1`,"inline-flex":`~`,"w-full":``,"items-center":``},ie=[`placeholder`],ae={class:`relative flex flex-row justify-start gap-2 lg:flex-col`},oe={class:`top-[-32px] whitespace-nowrap text-sm text-neutral-500 leading-10 lg:absolute dark:text-neutral-400`},j={key:0,flex:``,"flex-col":``,"items-center":``},M={"font-medium":``,text:`neutral-600 dark:neutral-300`},N={text:`neutral-500 dark:neutral-400`,"mt-2":``,"text-sm":``},P={key:1,flex:``,"flex-col":``,"items-center":``},F={"font-medium":``,text:`primary-600 dark:primary-300`},I={key:1,class:`col-span-full rounded-xl p-8 text-center`,border:`~ neutral-200/50 dark:neutral-700/30`,bg:`neutral-50/50 dark:neutral-900/50`},L={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var R=f({__name:`index`,setup(f){let{t:S}=r(),R=C(),{addCard:z,removeCard:B}=R,{cards:V,activeCardId:H}=a(R),U=y(``),W=y(!1),G=y(!1),K=y(``),q=y(`nameAsc`),J=y([]);ne(J,async e=>{let t=e[0];if(t)try{let e=await t.text(),n=JSON.parse(e);U.value=z(n),W.value=!0}catch(e){console.error(`Error processing card file:`,e)}});let Y=_(()=>Array.from(V.value.entries()).map(([e,t])=>({id:e,name:t.name,description:t.description}))),se=_(()=>{if(!K.value)return Y.value;let e=K.value.toLowerCase();return Y.value.filter(t=>t.name.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))}),X=_(()=>{let e=[...se.value];return q.value===`nameAsc`?e.sort((e,t)=>e.name.localeCompare(t.name)):q.value===`nameDesc`?e.sort((e,t)=>t.name.localeCompare(e.name)):q.value===`recent`?e.sort((e,t)=>t.id.localeCompare(e.id)):e}),Z=y(!1),Q=y(null);function ce(){Q.value&&(B(Q.value),Q.value=null,Z.value=!1)}function le(e){Q.value=e,Z.value=!0}function ue(e){U.value=e,W.value=!0}function de(){G.value=!0}function fe(e){H.value=e}function pe(e){let t=V.value.get(e);return t?.version||`1.0.0`}function $(e,t){let n=V.value.get(e);if(!n||!n.extensions?.airi?.modules)return`default`;let r=n.extensions.airi.modules;return t===`consciousness`?r.consciousness?.model&&r.consciousness.model.split(`-`).pop()||`default`:t===`voice`&&r.speech?.voice_id||`default`}return(r,a)=>{let f=te(`motion`);return p(),l(g,null,[v(`div`,O,[v(`div`,k,[v(`div`,A,[a[7]||=v(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[v(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),o(v(`input`,{"onUpdate:modelValue":a[0]||=e=>K.value=e,type:`search`,class:`w-full rounded-xl p-2.5 pl-10 text-sm outline-none`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,bg:`white dark:neutral-900`,placeholder:b(S)(`settings.pages.card.search`)},null,8,ie),[[h,K.value]])]),v(`div`,ae,[v(`div`,oe,x(b(S)(`settings.pages.card.sort_by`))+`: `,1),d(b(n),{modelValue:q.value,"onUpdate:modelValue":a[1]||=e=>q.value=e,options:[{value:`nameAsc`,label:b(S)(`settings.pages.card.name_asc`)},{value:`nameDesc`,label:b(S)(`settings.pages.card.name_desc`)},{value:`recent`,label:b(S)(`settings.pages.card.recent`)}],placeholder:`Select sort option`,class:`min-w-[150px]`},null,8,[`modelValue`,`options`])])]),v(`div`,{class:re([`mt-4`,{"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4 grid-auto-rows-[minmax(min-content,max-content)] grid-auto-flow-dense sm:grid-cols-[repeat(auto-fill,minmax(240px,1fr))] sm:gap-5 md:grid-cols-[repeat(auto-fill,minmax(220px,1fr))] lg:grid-cols-[repeat(auto-fill,minmax(250px,1fr))]":b(V).size>0}])},[d(b(t),{modelValue:J.value,"onUpdate:modelValue":a[2]||=e=>J.value=e,accept:`*.json`},{default:m(({isDragging:e})=>[e?(p(),l(`div`,P,[a[9]||=v(`div`,{"i-solar:upload-minimalistic-bold":``,class:`mb-2 text-5xl text-primary-500 dark:text-primary-400`},null,-1),v(`p`,F,x(b(S)(`settings.pages.card.drop_here`)),1)])):(p(),l(`div`,j,[a[8]||=v(`div`,{"i-solar:upload-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),v(`p`,M,x(b(S)(`settings.pages.card.upload`)),1),v(`p`,N,x(b(S)(`settings.pages.card.upload_desc`)),1)]))]),_:1},8,[`modelValue`]),d(w,{onClick:de}),b(V).size>0?(p(!0),l(g,{key:0},ee(X.value,e=>(p(),s(D,{id:e.id,key:e.id,name:e.name,description:e.description,"is-active":e.id===b(H),"is-selected":e.id===U.value&&W.value,version:pe(e.id),"consciousness-model":$(e.id,`consciousness`),"voice-model":$(e.id,`voice`),onSelect:t=>ue(e.id),onActivate:t=>fe(e.id),onDelete:t=>le(e.id)},null,8,[`id`,`name`,`description`,`is-active`,`is-selected`,`version`,`consciousness-model`,`voice-model`,`onSelect`,`onActivate`,`onDelete`]))),128)):c(``,!0),b(V).size===0?(p(),l(`div`,I,[a[10]||=v(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),v(`p`,null,x(b(S)(`settings.pages.card.no_cards`)),1)])):c(``,!0),K.value&&X.value.length===0?(p(),s(b(i),{key:2,type:`warning`},{title:m(()=>[u(x(b(S)(`settings.pages.card.no_results`)),1)]),content:m(()=>[u(x(b(S)(`settings.pages.card.try_different_search`)),1)]),_:1})):c(``,!0)],2)]),d(e,{modelValue:Z.value,"onUpdate:modelValue":a[3]||=e=>Z.value=e,"card-name":Q.value?b(R).getCard(Q.value)?.name:``,onConfirm:ce,onCancel:a[4]||=e=>Q.value=null},null,8,[`modelValue`,`card-name`]),d(E,{modelValue:W.value,"onUpdate:modelValue":a[5]||=e=>W.value=e,"card-id":U.value},null,8,[`modelValue`,`card-id`]),d(T,{modelValue:G.value,"onUpdate:modelValue":a[6]||=e=>G.value=e},null,8,[`modelValue`]),o((p(),l(`div`,L,[...a[11]||=[v(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)]])),[[f]])],64)}}});typeof S==`function`&&S(R);var z=R;export{z as default}; \ No newline at end of file diff --git a/assets/alibaba-cloud-model-studio-LoIwjmsd.js b/assets/alibaba-cloud-model-studio-ey2Rpach.js similarity index 57% rename from assets/alibaba-cloud-model-studio-LoIwjmsd.js rename to assets/alibaba-cloud-model-studio-ey2Rpach.js index 8aff9cf6034c9a77f4b9497bf558e8c9616a664b..eeb077113e43a310dd3588b1f024f62da8203c2f 100644 --- a/assets/alibaba-cloud-model-studio-LoIwjmsd.js +++ b/assets/alibaba-cloud-model-studio-ey2Rpach.js @@ -1 +1 @@ -import{K as e,L as t,O as n,a4 as r,aW as i,ae as a,bP as o,eA as s,eF as c,eG as l,eO as u,eQ as d,eY as f,e_ as p,ey as m,ez as h,f1 as g,f6 as _}from"./index-DEhol03r.js";import{b as v}from"./route-block-Dc_s4AGN.js";const y={flex:`~ col gap-4`},b=`alibaba-cloud-model-studio`,x=`cosyvoice-v1`;var S=l({__name:`alibaba-cloud-model-studio`,setup(l){let v={speed:1},S=g(0),C=g(1),w=g(0),T=t(),E=r(),{providers:D}=o(E),{t:O}=a(),k=m(()=>!!D.value[b]?.apiKey),A=m(()=>T.availableVoices[b]||[]);async function j(e,t,n){let r=await E.getProviderInstance(b);if(!r)throw Error(`Failed to initialize speech provider`);let i=E.getProviderConfig(b),a=i.model||x;return await T.speech(r,a,e,t,{...i,...v})}return u(async()=>{let e=E.getProviderConfig(b),t=E.getProviderMetadata(b);await t.validators.validateProviderConfig(e)?await T.loadVoicesForProvider(b):console.error(`Failed to validate provider config`,e)}),f(S,async()=>{let e=E.getProviderConfig(b);e.pitch=S.value}),f(C,async()=>{let e=E.getProviderConfig(b);e.speed=C.value}),f(w,async()=>{let e=E.getProviderConfig(b);e.volume=w.value}),f(D,async()=>{let e=E.getProviderConfig(b),t=E.getProviderMetadata(b);await t.validators.validateProviderConfig(e)?await T.loadVoicesForProvider(b):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(t,r)=>(d(),s(_(e),{"provider-id":b,"default-model":x,"additional-settings":v},{"voice-settings":p(()=>[h(`div`,y,[c(_(i),{modelValue:S.value,"onUpdate:modelValue":r[0]||=e=>S.value=e,label:_(O)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:_(O)(`settings.pages.providers.provider.common.fields.field.pitch.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),c(_(i),{modelValue:C.value,"onUpdate:modelValue":r[1]||=e=>C.value=e,label:_(O)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:_(O)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),c(_(i),{modelValue:w.value,"onUpdate:modelValue":r[2]||=e=>w.value=e,label:_(O)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:_(O)(`settings.pages.providers.provider.common.fields.field.volume.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`])])]),playground:p(()=>[c(_(n),{"available-voices":A.value,"generate-speech":j,"api-key-configured":k.value,"default-text":`Hello! This is a test of the ElevenLabs voice synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof v==`function`&&v(S);var C=S;export{C as default}; \ No newline at end of file +import{K as e,L as t,O as n,a4 as r,aX as i,ae as a,bQ as o,e$ as s,eA as c,eB as l,eG as u,eH as d,eP as f,eR as p,eZ as m,ez as h,f2 as g,f7 as _}from"./index-D3Bcbz9S.js";import{b as v}from"./route-block-Dc_s4AGN.js";const y={flex:`~ col gap-4`},b=`alibaba-cloud-model-studio`,x=`cosyvoice-v1`;var S=d({__name:`alibaba-cloud-model-studio`,setup(d){let v={speed:1},S=g(0),C=g(1),w=g(0),T=t(),E=r(),{providers:D}=o(E),{t:O}=a(),k=h(()=>!!D.value[b]?.apiKey),A=h(()=>T.availableVoices[b]||[]);async function j(e,t,n){let r=await E.getProviderInstance(b);if(!r)throw Error(`Failed to initialize speech provider`);let i=E.getProviderConfig(b),a=i.model||x;return await T.speech(r,a,e,t,{...i,...v})}return f(async()=>{let e=E.getProviderConfig(b),t=E.getProviderMetadata(b);await t.validators.validateProviderConfig(e)?await T.loadVoicesForProvider(b):console.error(`Failed to validate provider config`,e)}),m(S,async()=>{let e=E.getProviderConfig(b);e.pitch=S.value}),m(C,async()=>{let e=E.getProviderConfig(b);e.speed=C.value}),m(w,async()=>{let e=E.getProviderConfig(b);e.volume=w.value}),m(D,async()=>{let e=E.getProviderConfig(b),t=E.getProviderMetadata(b);await t.validators.validateProviderConfig(e)?await T.loadVoicesForProvider(b):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(t,r)=>(p(),l(_(e),{"provider-id":b,"default-model":x,"additional-settings":v},{"voice-settings":s(()=>[c(`div`,y,[u(_(i),{modelValue:S.value,"onUpdate:modelValue":r[0]||=e=>S.value=e,label:_(O)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:_(O)(`settings.pages.providers.provider.common.fields.field.pitch.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),u(_(i),{modelValue:C.value,"onUpdate:modelValue":r[1]||=e=>C.value=e,label:_(O)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:_(O)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),u(_(i),{modelValue:w.value,"onUpdate:modelValue":r[2]||=e=>w.value=e,label:_(O)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:_(O)(`settings.pages.providers.provider.common.fields.field.volume.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`])])]),playground:s(()=>[u(_(n),{"available-voices":A.value,"generate-speech":j,"api-key-configured":k.value,"default-text":`Hello! This is a test of the ElevenLabs voice synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof v==`function`&&v(S);var C=S;export{C as default}; \ No newline at end of file diff --git a/assets/anthropic-BA1O0Jc0.js b/assets/anthropic-BA1O0Jc0.js new file mode 100644 index 0000000000000000000000000000000000000000..43eb3c67d6f24561ccbf6b8733fb53b1bda623c8 --- /dev/null +++ b/assets/anthropic-BA1O0Jc0.js @@ -0,0 +1 @@ +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eA as d,eB as f,eF as p,eG as m,eH as h,eP as g,eR as _,eZ as v,ez as y,f7 as b,fb as x}from"./index-D3Bcbz9S.js";import{b as S}from"./route-block-Dc_s4AGN.js";const C={bg:`orange-50 dark:orange-900/20`,"rounded-xl":``,"p-4":``,flex:`~ col gap-3`},w={"text-xl":``,"font-semibold":``,text:`orange-700 dark:orange-500`},T={underline:``,href:`https://docs.anthropic.com/en/api/openai-sdk`},E=`anthropic`;var D=h({__name:`anthropic`,setup(h){let{t:S}=s(),D=c(),O=o(),{providers:k}=l(O),A=y(()=>O.getProviderMetadata(E)),j=y({get:()=>k.value[E]?.apiKey||``,set:e=>{k.value[E]||(k.value[E]={}),k.value[E].apiKey=e}}),M=y({get:()=>k.value[E]?.baseUrl||`https://api.anthropic.com/v1/`,set:e=>{k.value[E]||(k.value[E]={}),k.value[E].baseUrl=e}});g(()=>{k.value[E]||(k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}),j.value=k.value[E]?.apiKey||``,M.value=k.value[E]?.baseUrl||`https://api.anthropic.com/v1/`}),v([j,M],()=>{k.value[E]={...k.value[E],apiKey:j.value,baseUrl:M.value||`https://api.anthropic.com/v1/`}});function N(){k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}}return(o,s)=>(_(),f(b(t),{"provider-name":A.value?.localizedName||`Anthropic | Claude`,"provider-icon":A.value?.icon,"on-back":()=>b(D).back()},{default:u(()=>[d(`div`,C,[d(`h2`,w,x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.title`)),1),d(`p`,null,[p(x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part1`))+` `,1),d(`a`,T,x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part2`)),1),p(`, `+x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part3`))+` `,1),s[2]||=d(`a`,{underline:``,href:`https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS`},`CORS`,-1),p(` `+x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part4`)),1)]),d(`p`,null,[p(x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part5`))+` `,1),s[3]||=d(`a`,{underline:``,href:`https://workers.cloudflare.com/`},`Cloudflare Workers`,-1),p(` `+x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part6`)),1)])]),m(b(n),null,{default:u(()=>[m(b(r),{title:b(S)(`settings.pages.providers.common.section.basic.title`),description:b(S)(`settings.pages.providers.common.section.basic.description`),"on-reset":N},{default:u(()=>[m(b(e),{modelValue:j.value,"onUpdate:modelValue":s[0]||=e=>j.value=e,"provider-name":A.value?.localizedName||`Anthropic`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),m(b(a),{title:b(S)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[m(b(i),{modelValue:M.value,"onUpdate:modelValue":s[1]||=e=>M.value=e,placeholder:`https://api.anthropic.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof S==`function`&&S(D);var O=D;export{O as default}; \ No newline at end of file diff --git a/assets/anthropic-FxqJ0IEb.js b/assets/anthropic-FxqJ0IEb.js deleted file mode 100644 index 1aeb9d9d9d2ee83384520e5d5b111179fa8ce908..0000000000000000000000000000000000000000 --- a/assets/anthropic-FxqJ0IEb.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eE as d,eF as f,eG as p,eO as m,eQ as h,eY as g,e_ as _,ey as v,ez as y,f6 as b,fa as x}from"./index-DEhol03r.js";import{b as S}from"./route-block-Dc_s4AGN.js";const C={bg:`orange-50 dark:orange-900/20`,"rounded-xl":``,"p-4":``,flex:`~ col gap-3`},w={"text-xl":``,"font-semibold":``,text:`orange-700 dark:orange-500`},T={underline:``,href:`https://docs.anthropic.com/en/api/openai-sdk`},E=`anthropic`;var D=p({__name:`anthropic`,setup(p){let{t:S}=s(),D=c(),O=o(),{providers:k}=l(O),A=v(()=>O.getProviderMetadata(E)),j=v({get:()=>k.value[E]?.apiKey||``,set:e=>{k.value[E]||(k.value[E]={}),k.value[E].apiKey=e}}),M=v({get:()=>k.value[E]?.baseUrl||`https://api.anthropic.com/v1/`,set:e=>{k.value[E]||(k.value[E]={}),k.value[E].baseUrl=e}});m(()=>{k.value[E]||(k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}),j.value=k.value[E]?.apiKey||``,M.value=k.value[E]?.baseUrl||`https://api.anthropic.com/v1/`}),g([j,M],()=>{k.value[E]={...k.value[E],apiKey:j.value,baseUrl:M.value||`https://api.anthropic.com/v1/`}});function N(){k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}}return(o,s)=>(h(),u(b(t),{"provider-name":A.value?.localizedName||`Anthropic | Claude`,"provider-icon":A.value?.icon,"on-back":()=>b(D).back()},{default:_(()=>[y(`div`,C,[y(`h2`,w,x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.title`)),1),y(`p`,null,[d(x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part1`))+` `,1),y(`a`,T,x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part2`)),1),d(`, `+x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part3`))+` `,1),s[2]||=y(`a`,{underline:``,href:`https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS`},`CORS`,-1),d(` `+x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part4`)),1)]),y(`p`,null,[d(x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part5`))+` `,1),s[3]||=y(`a`,{underline:``,href:`https://workers.cloudflare.com/`},`Cloudflare Workers`,-1),d(` `+x(b(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part6`)),1)])]),f(b(n),null,{default:_(()=>[f(b(r),{title:b(S)(`settings.pages.providers.common.section.basic.title`),description:b(S)(`settings.pages.providers.common.section.basic.description`),"on-reset":N},{default:_(()=>[f(b(e),{modelValue:j.value,"onUpdate:modelValue":s[0]||=e=>j.value=e,"provider-name":A.value?.localizedName||`Anthropic`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(b(a),{title:b(S)(`settings.pages.providers.common.section.advanced.title`)},{default:_(()=>[f(b(i),{modelValue:M.value,"onUpdate:modelValue":s[1]||=e=>M.value=e,placeholder:`https://api.anthropic.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof S==`function`&&S(D);var O=D;export{O as default}; \ No newline at end of file diff --git a/assets/audio-CRFmA9nd.js b/assets/audio-CRFmA9nd.js new file mode 100644 index 0000000000000000000000000000000000000000..3151f2bd188086e0103bfb2b556826af84e03c9d --- /dev/null +++ b/assets/audio-CRFmA9nd.js @@ -0,0 +1 @@ +import{eA as e,eD as t,eH as n,eR as r,f2 as i}from"./index-D3Bcbz9S.js";var a=n({__name:`audio`,setup(n){let a=i(),o=i();function s(e){if(!e)return;let t=o.value?.files?.[0];if(!t)return;let n=document.createElement(`audio`);a.value?.appendChild(n),n.src=URL.createObjectURL(t),n.controls=!0,n.load(),n.play()}return(n,i)=>(r(),t(`div`,null,[e(`div`,null,[e(`div`,{ref_key:`containerRef`,ref:a},null,512),e(`input`,{ref_key:`fileInputRef`,ref:o,type:`file`,onChange:s},null,544)])]))}}),o=a;export{o as default}; \ No newline at end of file diff --git a/assets/audio-CfD_q6gC.js b/assets/audio-CfD_q6gC.js deleted file mode 100644 index 334ca85925676fd2146d37076d6ae41fef245d08..0000000000000000000000000000000000000000 --- a/assets/audio-CfD_q6gC.js +++ /dev/null @@ -1 +0,0 @@ -import{eC as e,eG as t,eQ as n,ez as r,f1 as i}from"./index-DEhol03r.js";var a=t({__name:`audio`,setup(t){let a=i(),o=i();function s(e){if(!e)return;let t=o.value?.files?.[0];if(!t)return;let n=document.createElement(`audio`);a.value?.appendChild(n),n.src=URL.createObjectURL(t),n.controls=!0,n.load(),n.play()}return(t,i)=>(n(),e(`div`,null,[r(`div`,null,[r(`div`,{ref_key:`containerRef`,ref:a},null,512),r(`input`,{ref_key:`fileInputRef`,ref:o,type:`file`,onChange:s},null,544)])]))}}),o=a;export{o as default}; \ No newline at end of file diff --git a/assets/audio-record-BRIGq6_f.js b/assets/audio-record-DY40XcIB.js similarity index 59% rename from assets/audio-record-BRIGq6_f.js rename to assets/audio-record-DY40XcIB.js index 5161994b34cb4418cb8a9d21507dbd8697f74575..ba5323df346d05ecf4f8d4ed9d388632c80d84f1 100644 --- a/assets/audio-record-BRIGq6_f.js +++ b/assets/audio-record-DY40XcIB.js @@ -1 +1 @@ -import{E as e,F as t,G as n,H as r,I as i,bV as a,c0 as o,e$ as s,eC as c,eG as l,eQ as u,eS as d,eq as f,ev as p,ey as m,ez as h,f1 as g,f6 as _,fa as v}from"./index-DEhol03r.js";const y=[`value`],b=[`src`];var x=l({__name:`audio-record`,setup(l){let{audioInputs:x}=a({constraints:{audio:!0},requestPermissions:!0}),S=g(``);async function C(e){let t=await navigator.mediaDevices.getUserMedia({audio:{deviceId:e}});return t.getAudioTracks()[0]}let w,T,E,D=g([]),O=m(()=>D.value.map(e=>o(new Blob([e],{type:E})).value));async function k(){T=await C(S.value),w=new e({format:new n,target:new r});let a=new t(T,{codec:`pcm-f32`,bitrate:i});a.errorPromise.catch(console.error),w.addAudioTrack(a),E=await w.getMimeType(),await w.start()}async function A(){await w?.finalize();let e=w?.target;e?.buffer&&D.value.push(e?.buffer)}function j(){w?.cancel()}return(e,t)=>(u(),c(`div`,null,[h(`div`,null,[s(h(`select`,{"onUpdate:modelValue":t[0]||=e=>S.value=e},[t[1]||=h(`option`,{value:``},` Select `,-1),(u(!0),c(p,null,d(_(x),(e,t)=>(u(),c(`option`,{key:t,value:e.deviceId},v(e.label),9,y))),128))],512),[[f,S.value]])]),h(`div`,{"space-x-2":``},[h(`button`,{onClick:k},` Start `),h(`button`,{onClick:j},` Cancel `),h(`button`,{onClick:A},` Stop `)]),h(`div`,null,[(u(!0),c(p,null,d(O.value,(e,t)=>(u(),c(`audio`,{key:t,controls:``},[h(`source`,{src:e,type:`audio/wav`},null,8,b)]))),128))])]))}}),S=x;export{S as default}; \ No newline at end of file +import{E as e,F as t,G as n,H as r,I as i,bW as a,c1 as o,eA as s,eD as c,eH as l,eR as u,eT as d,er as f,ew as p,ez as m,f0 as h,f2 as g,f7 as _,fb as v}from"./index-D3Bcbz9S.js";const y=[`value`],b=[`src`];var x=l({__name:`audio-record`,setup(l){let{audioInputs:x}=a({constraints:{audio:!0},requestPermissions:!0}),S=g(``);async function C(e){let t=await navigator.mediaDevices.getUserMedia({audio:{deviceId:e}});return t.getAudioTracks()[0]}let w,T,E,D=g([]),O=m(()=>D.value.map(e=>o(new Blob([e],{type:E})).value));async function k(){T=await C(S.value),w=new e({format:new n,target:new r});let a=new t(T,{codec:`pcm-f32`,bitrate:i});a.errorPromise.catch(console.error),w.addAudioTrack(a),E=await w.getMimeType(),await w.start()}async function A(){await w?.finalize();let e=w?.target;e?.buffer&&D.value.push(e?.buffer)}function j(){w?.cancel()}return(e,t)=>(u(),c(`div`,null,[s(`div`,null,[h(s(`select`,{"onUpdate:modelValue":t[0]||=e=>S.value=e},[t[1]||=s(`option`,{value:``},` Select `,-1),(u(!0),c(p,null,d(_(x),(e,t)=>(u(),c(`option`,{key:t,value:e.deviceId},v(e.label),9,y))),128))],512),[[f,S.value]])]),s(`div`,{"space-x-2":``},[s(`button`,{onClick:k},` Start `),s(`button`,{onClick:j},` Cancel `),s(`button`,{onClick:A},` Stop `)]),s(`div`,null,[(u(!0),c(p,null,d(O.value,(e,t)=>(u(),c(`audio`,{key:t,controls:``},[s(`source`,{src:e,type:`audio/wav`},null,8,b)]))),128))])]))}}),S=x;export{S as default}; \ No newline at end of file diff --git a/assets/azure-ai-foundry-DnvAoQYB.js b/assets/azure-ai-foundry-C1o9ptFu.js similarity index 69% rename from assets/azure-ai-foundry-DnvAoQYB.js rename to assets/azure-ai-foundry-C1o9ptFu.js index e40db97684a67e2da857fd6d28f294f92d8450ed..7808fbaa9226c7cd56c655985845e628fdf13149 100644 --- a/assets/azure-ai-foundry-DnvAoQYB.js +++ b/assets/azure-ai-foundry-C1o9ptFu.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,a1 as i,a2 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`azure-ai-foundry`;var x=f({__name:`azure-ai-foundry`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.resourceName||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].resourceName=e}}),D=_({get:()=>C.value[b]?.apiVersion||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiVersion=e}}),O=_({get:()=>C.value[b]?.modelId||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].modelId=e}});p(()=>{C.value[b]||(C.value[b]={}),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.resourceName||``,D.value=C.value[b]?.apiVersion||``,O.value=C.value[b]?.modelId||``}),h([T,E,D,O],()=>{C.value[b]={...C.value[b],apiKey:T.value,resourceName:E.value,apiVersion:D.value,modelId:O.value}});function k(){C.value[b]={}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName||`Azure OpenAI`,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":k},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName||`Azure OpenAI`,placeholder:`...`,required:``},null,8,[`modelValue`,`provider-name`]),d(v(a),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,label:`Resouce name`,placeholder:`...`,description:`Prefix used in https://.services.ai.azure.com`,required:``},null,8,[`modelValue`]),d(v(a),{modelValue:O.value,"onUpdate:modelValue":s[2]||=e=>O.value=e,label:`Model id`,placeholder:`...`,description:`Model ID on Azure AI Foundry`,required:``},null,8,[`modelValue`])]),_:1},8,[`title`,`description`]),d(v(i),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(a),{modelValue:D.value,"onUpdate:modelValue":s[3]||=e=>D.value=e,label:`API version`,placeholder:`e.g. 2025-04-01-preview`,description:`API version for snapshot of the models`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,a1 as i,a2 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`azure-ai-foundry`;var x=p({__name:`azure-ai-foundry`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.resourceName||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].resourceName=e}}),D=_({get:()=>C.value[b]?.apiVersion||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiVersion=e}}),O=_({get:()=>C.value[b]?.modelId||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].modelId=e}});m(()=>{C.value[b]||(C.value[b]={}),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.resourceName||``,D.value=C.value[b]?.apiVersion||``,O.value=C.value[b]?.modelId||``}),g([T,E,D,O],()=>{C.value[b]={...C.value[b],apiKey:T.value,resourceName:E.value,apiVersion:D.value,modelId:O.value}});function k(){C.value[b]={}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName||`Azure OpenAI`,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":k},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName||`Azure OpenAI`,placeholder:`...`,required:``},null,8,[`modelValue`,`provider-name`]),f(v(a),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,label:`Resouce name`,placeholder:`...`,description:`Prefix used in https://.services.ai.azure.com`,required:``},null,8,[`modelValue`]),f(v(a),{modelValue:O.value,"onUpdate:modelValue":s[2]||=e=>O.value=e,label:`Model id`,placeholder:`...`,description:`Model ID on Azure AI Foundry`,required:``},null,8,[`modelValue`])]),_:1},8,[`title`,`description`]),f(v(i),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(a),{modelValue:D.value,"onUpdate:modelValue":s[3]||=e=>D.value=e,label:`API version`,placeholder:`e.g. 2025-04-01-preview`,description:`API version for snapshot of the models`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/background-gradient-blending-DjcTayq6.js b/assets/background-gradient-blending-COcEL_ul.js similarity index 98% rename from assets/background-gradient-blending-DjcTayq6.js rename to assets/background-gradient-blending-COcEL_ul.js index 87048378aa4b9513537c9ac92af18975109169aa..ed12842e14e1f162c5111c69b5a671af31dd171a 100644 --- a/assets/background-gradient-blending-DjcTayq6.js +++ b/assets/background-gradient-blending-COcEL_ul.js @@ -1,4 +1,4 @@ -import{b as e}from"./BasicInputFile-DJjm73Ud.js";import"./merge-D5ueGMzg.js";import{d as t}from"./theme-color-D2aK6AFb.js";import{aP as n,aX as r,eC as i,eE as a,eF as o,eG as s,eN as c,eO as l,eP as u,eQ as d,eS as f,eX as p,eY as m,e_ as h,ev as g,ey as _,ez as v,f1 as y,f6 as b,f7 as x,f9 as S,fa as C,fb as w,fh as T}from"./index-DEhol03r.js";import{b as E}from"./browser-DlzSerl9.js";var D=w(((exports,t)=>{ +import{b as e}from"./BasicInputFile-DP8wr1m6.js";import"./merge-D5ueGMzg.js";import{d as t}from"./theme-color-CqKmMBmH.js";import{aQ as n,aY as r,e$ as i,eA as a,eD as o,eF as s,eG as c,eH as l,eO as u,eP as d,eQ as f,eR as p,eT as m,eY as h,eZ as g,ew as _,ez as v,f2 as y,f7 as b,f8 as x,fa as S,fb as C,fc as w,fi as T}from"./index-D3Bcbz9S.js";import{b as E}from"./browser-DlzSerl9.js";var D=w(((exports,t)=>{ /*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen @@ -23,4 +23,4 @@ var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Arr content: "" !important; display: none !important; }`,Ic=function(e){Lc(e,`.`+Nc+jc+Fc+` - .`+Pc+Mc+Fc)},Lc=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement(`style`);r.textContent=t,e.appendChild(r)}},Rc=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):`about:blank`},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement(`a`),e._origin=e.getOrigin(t.location.href)},e._origin=`about:blank`,e}(),zc=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Kc(e)||Uc(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o=this;return i(this,function(i){switch(i.label){case 0:return t=Rc.isSameOrigin(e),n=!Wc(e)&&this._options.useCORS===!0&&q.SUPPORT_CORS_IMAGES&&!t,r=!Wc(e)&&!t&&!Kc(e)&&typeof this._options.proxy==`string`&&q.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!Wc(e)&&!Kc(e)&&!r&&!n?[2]:(a=e,r?[4,this.proxy(a)]:[3,2]);case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug(`Added image `+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Gc(a)||n)&&(r.crossOrigin=`anonymous`),r.src=a,r.complete===!0&&setTimeout(function(){return e(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return t(`Timed out (`+o._options.imageTimeout+`ms) loading image`)},o._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return this._cache[e]!==void 0},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw Error(`No proxy defined`);var r=e.substring(0,256);return new Promise(function(i,a){var o=q.SUPPORT_RESPONSE_TYPE?`blob`:`text`,s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o===`text`)i(s.response);else{var e=new FileReader;e.addEventListener(`load`,function(){return i(e.result)},!1),e.addEventListener(`error`,function(e){return a(e)},!1),e.readAsDataURL(s.response)}else a(`Failed to proxy resource `+r+` with status code `+s.status)},s.onerror=a;var c=n.indexOf(`?`)>-1?`&`:`?`;if(s.open(`GET`,``+n+c+`url=`+encodeURIComponent(e)+`&responseType=`+o),o!==`text`&&s instanceof XMLHttpRequest&&(s.responseType=o),t._options.imageTimeout){var l=t._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return a(`Timed out (`+l+`ms) proxying `+r)}}s.send()})},e}(),Bc=/^data:image\/svg\+xml/i,Vc=/^data:image\/.*;base64,/i,Hc=/^data:image\/.*/i,Uc=function(e){return q.SUPPORT_SVG_DRAWING||!qc(e)},Wc=function(e){return Hc.test(e)},Gc=function(e){return Vc.test(e)},Kc=function(e){return e.substr(0,4)===`blob`},qc=function(e){return e.substr(-3).toLowerCase()===`svg`||Bc.test(e)},Y=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Jc=function(e,t,n){return new Y(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Yc=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=Jc(this.start,this.startControl,t),i=Jc(this.startControl,this.endControl,t),a=Jc(this.endControl,this.end,t),o=Jc(r,i,t),s=Jc(i,a,t),c=Jc(o,s,t);return n?new e(this.start,r,o,c):new e(c,s,a,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),X=function(e){return e.type===1},Xc=function(){function e(e){var t=e.styles,n=e.bounds,r=mr(t.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=mr(t.borderTopRightRadius,n.width,n.height),s=o[0],c=o[1],l=mr(t.borderBottomRightRadius,n.width,n.height),u=l[0],d=l[1],f=mr(t.borderBottomLeftRadius,n.width,n.height),p=f[0],m=f[1],h=[];h.push((i+s)/n.width),h.push((p+u)/n.width),h.push((a+m)/n.height),h.push((c+d)/n.height);var g=Math.max.apply(Math,h);g>1&&(i/=g,a/=g,s/=g,c/=g,u/=g,d/=g,p/=g,m/=g);var _=n.width-s,v=n.height-d,y=n.width-u,b=n.height-m,x=t.borderTopWidth,S=t.borderRightWidth,C=t.borderBottomWidth,w=t.borderLeftWidth,T=B(t.paddingTop,e.bounds.width),E=B(t.paddingRight,e.bounds.width),D=B(t.paddingBottom,e.bounds.width),O=B(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Q(n.left+w/3,n.top+x/3,i-w/3,a-x/3,Z.TOP_LEFT):new Y(n.left+w/3,n.top+x/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Q(n.left+_,n.top+x/3,s-S/3,c-x/3,Z.TOP_RIGHT):new Y(n.left+n.width-S/3,n.top+x/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?Q(n.left+y,n.top+v,u-S/3,d-C/3,Z.BOTTOM_RIGHT):new Y(n.left+n.width-S/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=p>0||m>0?Q(n.left+w/3,n.top+b,p-w/3,m-C/3,Z.BOTTOM_LEFT):new Y(n.left+w/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Q(n.left+w*2/3,n.top+x*2/3,i-w*2/3,a-x*2/3,Z.TOP_LEFT):new Y(n.left+w*2/3,n.top+x*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Q(n.left+_,n.top+x*2/3,s-S*2/3,c-x*2/3,Z.TOP_RIGHT):new Y(n.left+n.width-S*2/3,n.top+x*2/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?Q(n.left+y,n.top+v,u-S*2/3,d-C*2/3,Z.BOTTOM_RIGHT):new Y(n.left+n.width-S*2/3,n.top+n.height-C*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||m>0?Q(n.left+w*2/3,n.top+b,p-w*2/3,m-C*2/3,Z.BOTTOM_LEFT):new Y(n.left+w*2/3,n.top+n.height-C*2/3),this.topLeftBorderStroke=i>0||a>0?Q(n.left+w/2,n.top+x/2,i-w/2,a-x/2,Z.TOP_LEFT):new Y(n.left+w/2,n.top+x/2),this.topRightBorderStroke=i>0||a>0?Q(n.left+_,n.top+x/2,s-S/2,c-x/2,Z.TOP_RIGHT):new Y(n.left+n.width-S/2,n.top+x/2),this.bottomRightBorderStroke=u>0||d>0?Q(n.left+y,n.top+v,u-S/2,d-C/2,Z.BOTTOM_RIGHT):new Y(n.left+n.width-S/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=p>0||m>0?Q(n.left+w/2,n.top+b,p-w/2,m-C/2,Z.BOTTOM_LEFT):new Y(n.left+w/2,n.top+n.height-C/2),this.topLeftBorderBox=i>0||a>0?Q(n.left,n.top,i,a,Z.TOP_LEFT):new Y(n.left,n.top),this.topRightBorderBox=s>0||c>0?Q(n.left+_,n.top,s,c,Z.TOP_RIGHT):new Y(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?Q(n.left+y,n.top+v,u,d,Z.BOTTOM_RIGHT):new Y(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||m>0?Q(n.left,n.top+b,p,m,Z.BOTTOM_LEFT):new Y(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?Q(n.left+w,n.top+x,Math.max(0,i-w),Math.max(0,a-x),Z.TOP_LEFT):new Y(n.left+w,n.top+x),this.topRightPaddingBox=s>0||c>0?Q(n.left+Math.min(_,n.width-S),n.top+x,_>n.width+S?0:Math.max(0,s-S),Math.max(0,c-x),Z.TOP_RIGHT):new Y(n.left+n.width-S,n.top+x),this.bottomRightPaddingBox=u>0||d>0?Q(n.left+Math.min(y,n.width-w),n.top+Math.min(v,n.height-C),Math.max(0,u-S),Math.max(0,d-C),Z.BOTTOM_RIGHT):new Y(n.left+n.width-S,n.top+n.height-C),this.bottomLeftPaddingBox=p>0||m>0?Q(n.left+w,n.top+Math.min(b,n.height-C),Math.max(0,p-w),Math.max(0,m-C),Z.BOTTOM_LEFT):new Y(n.left+w,n.top+n.height-C),this.topLeftContentBox=i>0||a>0?Q(n.left+w+O,n.top+x+T,Math.max(0,i-(w+O)),Math.max(0,a-(x+T)),Z.TOP_LEFT):new Y(n.left+w+O,n.top+x+T),this.topRightContentBox=s>0||c>0?Q(n.left+Math.min(_,n.width+w+O),n.top+x+T,_>n.width+w+O?0:s-w+O,c-(x+T),Z.TOP_RIGHT):new Y(n.left+n.width-(S+E),n.top+x+T),this.bottomRightContentBox=u>0||d>0?Q(n.left+Math.min(y,n.width-(w+O)),n.top+Math.min(v,n.height+x+T),Math.max(0,u-(S+E)),d-(C+D),Z.BOTTOM_RIGHT):new Y(n.left+n.width-(S+E),n.top+n.height-(C+D)),this.bottomLeftContentBox=p>0||m>0?Q(n.left+w+O,n.top+b,Math.max(0,p-(w+O)),m-(C+D),Z.BOTTOM_LEFT):new Y(n.left+w+O,n.top+n.height-(C+D))}return e}(),Z;(function(e){e[e.TOP_LEFT=0]=`TOP_LEFT`,e[e.TOP_RIGHT=1]=`TOP_RIGHT`,e[e.BOTTOM_RIGHT=2]=`BOTTOM_RIGHT`,e[e.BOTTOM_LEFT=3]=`BOTTOM_LEFT`})(Z||={});var Q=function(e,t,n,r,i){var a=4*((Math.sqrt(2)-1)/3),o=n*a,s=r*a,c=e+n,l=t+r;switch(i){case Z.TOP_LEFT:return new Yc(new Y(e,l),new Y(e,l-s),new Y(c-o,t),new Y(c,t));case Z.TOP_RIGHT:return new Yc(new Y(e,t),new Y(e+o,t),new Y(c,l-s),new Y(c,l));case Z.BOTTOM_RIGHT:return new Yc(new Y(c,t),new Y(c,t+s),new Y(e+o,l),new Y(e,l));case Z.BOTTOM_LEFT:default:return new Yc(new Y(c,l),new Y(c-o,l),new Y(e,t+s),new Y(e,t))}},Zc=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Qc=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},$c=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},el=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),tl=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),nl=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),rl=function(e){return e.type===0},il=function(e){return e.type===1},al=function(e){return e.type===2},ol=function(e,t){return e.length===t.length?e.some(function(e,n){return e===t[n]}):!1},sl=function(e,t,n,r,i){return e.map(function(e,a){switch(a){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e})},cl=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),ll=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Xc(this.container),this.container.styles.opacity<1&&this.effects.push(new nl(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new el(n,r,i))}if(this.container.styles.overflowX!==0){var a=Zc(this.curves),o=$c(this.curves);ol(a,o)?this.effects.push(new tl(a,6)):(this.effects.push(new tl(a,2)),this.effects.push(new tl(o,4)))}}return e.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(e){return!il(e)});if(t||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var a=Zc(n.curves),o=$c(n.curves);ol(a,o)||r.unshift(new tl(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return W(t.target,e)})},e}(),ul=function(e,t,n,r){e.container.elements.forEach(function(i){var a=W(i.flags,4),o=W(i.flags,2),s=new ll(i,e);W(i.styles.display,2048)&&r.push(s);var c=W(i.flags,8)?[]:r;if(a||o){var l=a||i.styles.isPositioned()?n:t,u=new cl(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var d=i.styles.zIndex.order;if(d<0){var f=0;l.negativeZIndex.some(function(e,t){return d>e.element.container.styles.zIndex.order?(f=t,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(d>0){var p=0;l.positiveZIndex.some(function(e,t){return d>=e.element.container.styles.zIndex.order?(p=t+1,!1):p>0}),l.positiveZIndex.splice(p,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);ul(s,u,a?u:n,c)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),ul(s,t,n,c);W(i.flags,8)&&dl(i,c)})},dl=function(e,t){for(var n=e instanceof gs?e.start:1,r=e instanceof gs?e.reversed:!1,i=0;i0&&e.intrinsicHeight>0){var r=yl(e),i=$c(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,a,s,c,l,u,u,d,f,p,m,h,g,_,v,y,b,x,u,S,h,v;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,a=t.styles,s=0,c=t.textNodes,i.label=1;case 1:return s0&&f>0&&(p=r.ctx.createPattern(x,`repeat`),r.renderRepeat(c,p,l,u))):ei(n)&&(w=Sl(e,t,[null,null,null]),c=w[0],T=w[1],E=w[2],d=w[3],f=w[4],D=n.position.length===0?[fr]:n.position,l=B(D[0],d),u=B(D[D.length-1],f),O=zr(n,l,u,d,f),ee=O[0],te=O[1],ee>0&&te>0&&(ne=r.ctx.createRadialGradient(T+l,E+u,0,T+l,E+u,ee),Fr(n.stops,ee*2).forEach(function(e){return ne.addColorStop(e.stop,H(e.color))}),r.path(c),r.ctx.fillStyle=ne,ee===te?r.ctx.fill():(re=e.bounds.left+.5*e.bounds.width,ie=e.bounds.top+.5*e.bounds.height,ae=te/ee,oe=1/ae,r.ctx.save(),r.ctx.translate(re,ie),r.ctx.transform(1,0,0,ae,0,0),r.ctx.translate(-re,-ie),r.ctx.fillRect(T,oe*(E-ie)+ie,d,f*oe),r.ctx.restore()))),i.label=6;case 6:return t--,[2]}})},r=this,a=0,o=e.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a0?l.style===2?[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return i.sent(),[3,11];case 5:return l.style===3?[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,3)]:[3,7];case 6:return i.sent(),[3,11];case 7:return l.style===4?[4,this.renderDoubleBorder(l.color,l.width,o,e.curves)]:[3,9];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,e.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,a,o){return r(this,void 0,void 0,function(){var r,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,b,x;return i(this,function(i){return this.ctx.save(),r=gl(a,n),s=pl(a,n),o===2&&(this.path(s),this.ctx.clip()),X(s[0])?(c=s[0].start.x,l=s[0].start.y):(c=s[0].x,l=s[0].y),X(s[1])?(u=s[1].end.x,d=s[1].end.y):(u=s[1].x,d=s[1].y),f=n===0||n===2?Math.abs(c-u):Math.abs(l-d),this.ctx.beginPath(),o===3?this.formatPath(r):this.formatPath(s.slice(0,2)),p=t<3?t*3:t*2,m=t<3?t*2:t,o===3&&(p=t,m=t),h=!0,f<=p*2?h=!1:f<=p*2+m?(g=f/(2*p+m),p*=g,m*=g):(_=Math.floor((f+m)/(p+m)),v=(f-_*p)/(_-1),y=(f-(_+1)*p)/_,m=y<=0||Math.abs(m-v)be.value.length===0?[ee]:be.value.map(e=>{let t=URL.createObjectURL(e);return ye.value.push(()=>URL.revokeObjectURL(t)),t})),k=y(`vibrant`),A=p(`imageRef`),Se=p(`canvas`),{updateThemeColor:Ce}=t(()=>T.value),we=_(()=>k.value===`vibrant`?T.value:k.value===`html2canvas`?D.value:``);async function Te(){if(xe.value.length!==0)try{s.value=!0;let e=new window.Image;e.crossOrigin=`anonymous`,e.src=xe.value[0],await new Promise((t,n)=>{e.onload=t,e.onerror=n});let t=Math.floor(e.naturalHeight*.2),n=document.createElement(`canvas`);n.width=e.naturalWidth,n.height=t;let r=n.getContext(`2d`);r&&r.drawImage(e,0,0,e.naturalWidth,t,0,0,e.naturalWidth,t);let i=n.toDataURL(),a=new E(i),o=await a.getPalette(),c=Object.values(o).map(e=>e?.hex).filter(e=>typeof e==`string`);w.value=c,T.value=o.Vibrant?.hex||o.DarkVibrant?.hex||c[0],await Ce()}catch(e){console.error(`Color extraction failed:`,e)}finally{s.value=!1}}async function Ee(){if(A.value)try{s.value=!0;let e=await(0,O.default)(A.value,{allowTaint:!0,useCORS:!0,backgroundColor:null,scale:.5,height:100,width:A.value.offsetWidth,logging:!1});if(Se.value){let t=Se.value.getContext(`2d`);t&&(Se.value.width=e.width,Se.value.height=e.height,t.drawImage(e,0,0))}let t=e.getContext(`2d`);if(t){let r=t.getImageData(0,0,e.width,20),i=[];for(let e=0;e0&&i.push({mode:`rgb`,r:t,g:n,b:a})}if(i.length>0){let e=n(i);D.value=`rgb(${e.r}, ${e.g}, ${e.b})`}}}catch(e){console.error(`Canvas capture failed:`,e)}finally{s.value=!1}}return l(async()=>{await c(),await Te(),await Ee()}),m(xe,async()=>{await c(),await Te(),await Ee()}),u(()=>{ye.value.forEach(e=>e())}),(t,n)=>(d(),i(`div`,te,[v(`div`,ne,[v(`div`,{class:`pointer-events-none left-0 right-0 top-0 z-10 flex items-center justify-center backdrop-blur-md`,style:S({background:we.value})},[...n[3]||=[v(`div`,{class:`py-4 text-center text-sm text-white font-medium`},` Top Area `,-1)]],4),v(`div`,{class:`transparent-gradient-overlay absolute inset-0 h-[calc((1lh+1rem+1rem)*2)] w-full`,style:S({background:we.value})},null,4),v(`img`,{ref_key:`imageRef`,ref:A,src:xe.value[0],class:`h-full max-h-[calc(100dvh-28rem)] w-full object-cover`},null,8,re),v(`div`,ie,[o(b(e),{modelValue:be.value,"onUpdate:modelValue":n[0]||=e=>be.value=e},{default:h(()=>[...n[4]||=[v(`div`,{class:`rounded-xl bg-black bg-opacity-30 px-5 py-4 text-white backdrop-blur-sm`},` Replace Image `,-1)]]),_:1},8,[`modelValue`])])]),v(`div`,ae,[v(`div`,oe,[v(`div`,se,[v(`h3`,ce,[n[5]||=v(`span`,null,`Node Vibrant`,-1),v(`button`,{"border-2":``,"border-neutral-300":``,"rounded-xl":``,"border-solid":``,"px-3":``,"py-1":``,"text-sm":``,"font-normal":``,"dark:border-neutral-700":``,class:x([k.value===`vibrant`?`bg-neutral-100 dark:bg-neutral-700`:``]),onClick:n[1]||=e=>k.value=`vibrant`},C(k.value===`vibrant`?`Activated`:`Active`),3)]),v(`div`,le,[(d(!0),i(g,null,f(w.value,e=>(d(),i(`div`,{key:e,class:`h-12 w-12 cursor-pointer border-2 border-gray-300 rounded rounded-xl transition-transform duration-200 ease-in-out hover:scale-110 dark:border-gray-900`,style:S({backgroundColor:e}),title:e},null,12,ue))),128))]),v(`p`,de,[n[6]||=a(` Color: `,-1),v(`span`,{style:S({color:T.value})},C(T.value),5)])]),v(`div`,fe,[v(`h3`,pe,[n[7]||=v(`span`,null,`html2canvas Top sampling`,-1),v(`button`,{"border-2":``,"border-neutral-300":``,"rounded-xl":``,"border-solid":``,"px-3":``,"py-1":``,"text-sm":``,"font-normal":``,"dark:border-neutral-700":``,class:x([k.value===`html2canvas`?`bg-neutral-100 dark:bg-neutral-700`:``]),onClick:n[2]||=e=>k.value=`html2canvas`},C(k.value===`html2canvas`?`Activated`:`Active`),3)]),v(`div`,me,[v(`div`,{class:`color-swatch h-12 w-12 border-2 border-gray-300 rounded rounded-xl dark:border-gray-900`,style:S({backgroundColor:D.value}),title:D.value},null,12,he)]),v(`p`,ge,[n[8]||=a(` Color: `,-1),v(`span`,{style:S({color:D.value})},C(D.value),5)])])]),v(`div`,_e,[n[9]||=v(`h3`,{class:`mb-1 text-lg`},` Captured Canvas (Debug) `,-1),v(`canvas`,ve,null,512)])])]))}}),be=r(ye,[[`__scopeId`,`data-v-7a838108`]]);export{be as default}; \ No newline at end of file + .`+Pc+Mc+Fc)},Lc=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement(`style`);r.textContent=t,e.appendChild(r)}},Rc=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):`about:blank`},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement(`a`),e._origin=e.getOrigin(t.location.href)},e._origin=`about:blank`,e}(),zc=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Kc(e)||Uc(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o=this;return i(this,function(i){switch(i.label){case 0:return t=Rc.isSameOrigin(e),n=!Wc(e)&&this._options.useCORS===!0&&q.SUPPORT_CORS_IMAGES&&!t,r=!Wc(e)&&!t&&!Kc(e)&&typeof this._options.proxy==`string`&&q.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!Wc(e)&&!Kc(e)&&!r&&!n?[2]:(a=e,r?[4,this.proxy(a)]:[3,2]);case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug(`Added image `+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Gc(a)||n)&&(r.crossOrigin=`anonymous`),r.src=a,r.complete===!0&&setTimeout(function(){return e(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return t(`Timed out (`+o._options.imageTimeout+`ms) loading image`)},o._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return this._cache[e]!==void 0},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw Error(`No proxy defined`);var r=e.substring(0,256);return new Promise(function(i,a){var o=q.SUPPORT_RESPONSE_TYPE?`blob`:`text`,s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o===`text`)i(s.response);else{var e=new FileReader;e.addEventListener(`load`,function(){return i(e.result)},!1),e.addEventListener(`error`,function(e){return a(e)},!1),e.readAsDataURL(s.response)}else a(`Failed to proxy resource `+r+` with status code `+s.status)},s.onerror=a;var c=n.indexOf(`?`)>-1?`&`:`?`;if(s.open(`GET`,``+n+c+`url=`+encodeURIComponent(e)+`&responseType=`+o),o!==`text`&&s instanceof XMLHttpRequest&&(s.responseType=o),t._options.imageTimeout){var l=t._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return a(`Timed out (`+l+`ms) proxying `+r)}}s.send()})},e}(),Bc=/^data:image\/svg\+xml/i,Vc=/^data:image\/.*;base64,/i,Hc=/^data:image\/.*/i,Uc=function(e){return q.SUPPORT_SVG_DRAWING||!qc(e)},Wc=function(e){return Hc.test(e)},Gc=function(e){return Vc.test(e)},Kc=function(e){return e.substr(0,4)===`blob`},qc=function(e){return e.substr(-3).toLowerCase()===`svg`||Bc.test(e)},Y=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Jc=function(e,t,n){return new Y(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Yc=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=Jc(this.start,this.startControl,t),i=Jc(this.startControl,this.endControl,t),a=Jc(this.endControl,this.end,t),o=Jc(r,i,t),s=Jc(i,a,t),c=Jc(o,s,t);return n?new e(this.start,r,o,c):new e(c,s,a,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),X=function(e){return e.type===1},Xc=function(){function e(e){var t=e.styles,n=e.bounds,r=mr(t.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=mr(t.borderTopRightRadius,n.width,n.height),s=o[0],c=o[1],l=mr(t.borderBottomRightRadius,n.width,n.height),u=l[0],d=l[1],f=mr(t.borderBottomLeftRadius,n.width,n.height),p=f[0],m=f[1],h=[];h.push((i+s)/n.width),h.push((p+u)/n.width),h.push((a+m)/n.height),h.push((c+d)/n.height);var g=Math.max.apply(Math,h);g>1&&(i/=g,a/=g,s/=g,c/=g,u/=g,d/=g,p/=g,m/=g);var _=n.width-s,v=n.height-d,y=n.width-u,b=n.height-m,x=t.borderTopWidth,S=t.borderRightWidth,C=t.borderBottomWidth,w=t.borderLeftWidth,T=B(t.paddingTop,e.bounds.width),E=B(t.paddingRight,e.bounds.width),D=B(t.paddingBottom,e.bounds.width),O=B(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Q(n.left+w/3,n.top+x/3,i-w/3,a-x/3,Z.TOP_LEFT):new Y(n.left+w/3,n.top+x/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Q(n.left+_,n.top+x/3,s-S/3,c-x/3,Z.TOP_RIGHT):new Y(n.left+n.width-S/3,n.top+x/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?Q(n.left+y,n.top+v,u-S/3,d-C/3,Z.BOTTOM_RIGHT):new Y(n.left+n.width-S/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=p>0||m>0?Q(n.left+w/3,n.top+b,p-w/3,m-C/3,Z.BOTTOM_LEFT):new Y(n.left+w/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Q(n.left+w*2/3,n.top+x*2/3,i-w*2/3,a-x*2/3,Z.TOP_LEFT):new Y(n.left+w*2/3,n.top+x*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Q(n.left+_,n.top+x*2/3,s-S*2/3,c-x*2/3,Z.TOP_RIGHT):new Y(n.left+n.width-S*2/3,n.top+x*2/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?Q(n.left+y,n.top+v,u-S*2/3,d-C*2/3,Z.BOTTOM_RIGHT):new Y(n.left+n.width-S*2/3,n.top+n.height-C*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||m>0?Q(n.left+w*2/3,n.top+b,p-w*2/3,m-C*2/3,Z.BOTTOM_LEFT):new Y(n.left+w*2/3,n.top+n.height-C*2/3),this.topLeftBorderStroke=i>0||a>0?Q(n.left+w/2,n.top+x/2,i-w/2,a-x/2,Z.TOP_LEFT):new Y(n.left+w/2,n.top+x/2),this.topRightBorderStroke=i>0||a>0?Q(n.left+_,n.top+x/2,s-S/2,c-x/2,Z.TOP_RIGHT):new Y(n.left+n.width-S/2,n.top+x/2),this.bottomRightBorderStroke=u>0||d>0?Q(n.left+y,n.top+v,u-S/2,d-C/2,Z.BOTTOM_RIGHT):new Y(n.left+n.width-S/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=p>0||m>0?Q(n.left+w/2,n.top+b,p-w/2,m-C/2,Z.BOTTOM_LEFT):new Y(n.left+w/2,n.top+n.height-C/2),this.topLeftBorderBox=i>0||a>0?Q(n.left,n.top,i,a,Z.TOP_LEFT):new Y(n.left,n.top),this.topRightBorderBox=s>0||c>0?Q(n.left+_,n.top,s,c,Z.TOP_RIGHT):new Y(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?Q(n.left+y,n.top+v,u,d,Z.BOTTOM_RIGHT):new Y(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||m>0?Q(n.left,n.top+b,p,m,Z.BOTTOM_LEFT):new Y(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?Q(n.left+w,n.top+x,Math.max(0,i-w),Math.max(0,a-x),Z.TOP_LEFT):new Y(n.left+w,n.top+x),this.topRightPaddingBox=s>0||c>0?Q(n.left+Math.min(_,n.width-S),n.top+x,_>n.width+S?0:Math.max(0,s-S),Math.max(0,c-x),Z.TOP_RIGHT):new Y(n.left+n.width-S,n.top+x),this.bottomRightPaddingBox=u>0||d>0?Q(n.left+Math.min(y,n.width-w),n.top+Math.min(v,n.height-C),Math.max(0,u-S),Math.max(0,d-C),Z.BOTTOM_RIGHT):new Y(n.left+n.width-S,n.top+n.height-C),this.bottomLeftPaddingBox=p>0||m>0?Q(n.left+w,n.top+Math.min(b,n.height-C),Math.max(0,p-w),Math.max(0,m-C),Z.BOTTOM_LEFT):new Y(n.left+w,n.top+n.height-C),this.topLeftContentBox=i>0||a>0?Q(n.left+w+O,n.top+x+T,Math.max(0,i-(w+O)),Math.max(0,a-(x+T)),Z.TOP_LEFT):new Y(n.left+w+O,n.top+x+T),this.topRightContentBox=s>0||c>0?Q(n.left+Math.min(_,n.width+w+O),n.top+x+T,_>n.width+w+O?0:s-w+O,c-(x+T),Z.TOP_RIGHT):new Y(n.left+n.width-(S+E),n.top+x+T),this.bottomRightContentBox=u>0||d>0?Q(n.left+Math.min(y,n.width-(w+O)),n.top+Math.min(v,n.height+x+T),Math.max(0,u-(S+E)),d-(C+D),Z.BOTTOM_RIGHT):new Y(n.left+n.width-(S+E),n.top+n.height-(C+D)),this.bottomLeftContentBox=p>0||m>0?Q(n.left+w+O,n.top+b,Math.max(0,p-(w+O)),m-(C+D),Z.BOTTOM_LEFT):new Y(n.left+w+O,n.top+n.height-(C+D))}return e}(),Z;(function(e){e[e.TOP_LEFT=0]=`TOP_LEFT`,e[e.TOP_RIGHT=1]=`TOP_RIGHT`,e[e.BOTTOM_RIGHT=2]=`BOTTOM_RIGHT`,e[e.BOTTOM_LEFT=3]=`BOTTOM_LEFT`})(Z||={});var Q=function(e,t,n,r,i){var a=4*((Math.sqrt(2)-1)/3),o=n*a,s=r*a,c=e+n,l=t+r;switch(i){case Z.TOP_LEFT:return new Yc(new Y(e,l),new Y(e,l-s),new Y(c-o,t),new Y(c,t));case Z.TOP_RIGHT:return new Yc(new Y(e,t),new Y(e+o,t),new Y(c,l-s),new Y(c,l));case Z.BOTTOM_RIGHT:return new Yc(new Y(c,t),new Y(c,t+s),new Y(e+o,l),new Y(e,l));case Z.BOTTOM_LEFT:default:return new Yc(new Y(c,l),new Y(c-o,l),new Y(e,t+s),new Y(e,t))}},Zc=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Qc=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},$c=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},el=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),tl=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),nl=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),rl=function(e){return e.type===0},il=function(e){return e.type===1},al=function(e){return e.type===2},ol=function(e,t){return e.length===t.length?e.some(function(e,n){return e===t[n]}):!1},sl=function(e,t,n,r,i){return e.map(function(e,a){switch(a){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e})},cl=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),ll=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Xc(this.container),this.container.styles.opacity<1&&this.effects.push(new nl(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new el(n,r,i))}if(this.container.styles.overflowX!==0){var a=Zc(this.curves),o=$c(this.curves);ol(a,o)?this.effects.push(new tl(a,6)):(this.effects.push(new tl(a,2)),this.effects.push(new tl(o,4)))}}return e.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(e){return!il(e)});if(t||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var a=Zc(n.curves),o=$c(n.curves);ol(a,o)||r.unshift(new tl(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return W(t.target,e)})},e}(),ul=function(e,t,n,r){e.container.elements.forEach(function(i){var a=W(i.flags,4),o=W(i.flags,2),s=new ll(i,e);W(i.styles.display,2048)&&r.push(s);var c=W(i.flags,8)?[]:r;if(a||o){var l=a||i.styles.isPositioned()?n:t,u=new cl(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var d=i.styles.zIndex.order;if(d<0){var f=0;l.negativeZIndex.some(function(e,t){return d>e.element.container.styles.zIndex.order?(f=t,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(d>0){var p=0;l.positiveZIndex.some(function(e,t){return d>=e.element.container.styles.zIndex.order?(p=t+1,!1):p>0}),l.positiveZIndex.splice(p,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);ul(s,u,a?u:n,c)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),ul(s,t,n,c);W(i.flags,8)&&dl(i,c)})},dl=function(e,t){for(var n=e instanceof gs?e.start:1,r=e instanceof gs?e.reversed:!1,i=0;i0&&e.intrinsicHeight>0){var r=yl(e),i=$c(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,a,s,c,l,u,u,d,f,p,m,h,g,_,v,y,b,x,u,S,h,v;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,a=t.styles,s=0,c=t.textNodes,i.label=1;case 1:return s0&&f>0&&(p=r.ctx.createPattern(x,`repeat`),r.renderRepeat(c,p,l,u))):ei(n)&&(w=Sl(e,t,[null,null,null]),c=w[0],T=w[1],E=w[2],d=w[3],f=w[4],D=n.position.length===0?[fr]:n.position,l=B(D[0],d),u=B(D[D.length-1],f),O=zr(n,l,u,d,f),ee=O[0],te=O[1],ee>0&&te>0&&(ne=r.ctx.createRadialGradient(T+l,E+u,0,T+l,E+u,ee),Fr(n.stops,ee*2).forEach(function(e){return ne.addColorStop(e.stop,H(e.color))}),r.path(c),r.ctx.fillStyle=ne,ee===te?r.ctx.fill():(re=e.bounds.left+.5*e.bounds.width,ie=e.bounds.top+.5*e.bounds.height,ae=te/ee,oe=1/ae,r.ctx.save(),r.ctx.translate(re,ie),r.ctx.transform(1,0,0,ae,0,0),r.ctx.translate(-re,-ie),r.ctx.fillRect(T,oe*(E-ie)+ie,d,f*oe),r.ctx.restore()))),i.label=6;case 6:return t--,[2]}})},r=this,a=0,o=e.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a0?l.style===2?[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return i.sent(),[3,11];case 5:return l.style===3?[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,3)]:[3,7];case 6:return i.sent(),[3,11];case 7:return l.style===4?[4,this.renderDoubleBorder(l.color,l.width,o,e.curves)]:[3,9];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,e.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,a,o){return r(this,void 0,void 0,function(){var r,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,b,x;return i(this,function(i){return this.ctx.save(),r=gl(a,n),s=pl(a,n),o===2&&(this.path(s),this.ctx.clip()),X(s[0])?(c=s[0].start.x,l=s[0].start.y):(c=s[0].x,l=s[0].y),X(s[1])?(u=s[1].end.x,d=s[1].end.y):(u=s[1].x,d=s[1].y),f=n===0||n===2?Math.abs(c-u):Math.abs(l-d),this.ctx.beginPath(),o===3?this.formatPath(r):this.formatPath(s.slice(0,2)),p=t<3?t*3:t*2,m=t<3?t*2:t,o===3&&(p=t,m=t),h=!0,f<=p*2?h=!1:f<=p*2+m?(g=f/(2*p+m),p*=g,m*=g):(_=Math.floor((f+m)/(p+m)),v=(f-_*p)/(_-1),y=(f-(_+1)*p)/_,m=y<=0||Math.abs(m-v)be.value.length===0?[ee]:be.value.map(e=>{let t=URL.createObjectURL(e);return ye.value.push(()=>URL.revokeObjectURL(t)),t})),k=y(`vibrant`),A=h(`imageRef`),Se=h(`canvas`),{updateThemeColor:Ce}=t(()=>T.value),we=v(()=>k.value===`vibrant`?T.value:k.value===`html2canvas`?D.value:``);async function Te(){if(xe.value.length!==0)try{l.value=!0;let e=new window.Image;e.crossOrigin=`anonymous`,e.src=xe.value[0],await new Promise((t,n)=>{e.onload=t,e.onerror=n});let t=Math.floor(e.naturalHeight*.2),n=document.createElement(`canvas`);n.width=e.naturalWidth,n.height=t;let r=n.getContext(`2d`);r&&r.drawImage(e,0,0,e.naturalWidth,t,0,0,e.naturalWidth,t);let i=n.toDataURL(),a=new E(i),o=await a.getPalette(),s=Object.values(o).map(e=>e?.hex).filter(e=>typeof e==`string`);w.value=s,T.value=o.Vibrant?.hex||o.DarkVibrant?.hex||s[0],await Ce()}catch(e){console.error(`Color extraction failed:`,e)}finally{l.value=!1}}async function Ee(){if(A.value)try{l.value=!0;let e=await(0,O.default)(A.value,{allowTaint:!0,useCORS:!0,backgroundColor:null,scale:.5,height:100,width:A.value.offsetWidth,logging:!1});if(Se.value){let t=Se.value.getContext(`2d`);t&&(Se.value.width=e.width,Se.value.height=e.height,t.drawImage(e,0,0))}let t=e.getContext(`2d`);if(t){let r=t.getImageData(0,0,e.width,20),i=[];for(let e=0;e0&&i.push({mode:`rgb`,r:t,g:n,b:a})}if(i.length>0){let e=n(i);D.value=`rgb(${e.r}, ${e.g}, ${e.b})`}}}catch(e){console.error(`Canvas capture failed:`,e)}finally{l.value=!1}}return d(async()=>{await u(),await Te(),await Ee()}),g(xe,async()=>{await u(),await Te(),await Ee()}),f(()=>{ye.value.forEach(e=>e())}),(t,n)=>(p(),o(`div`,te,[a(`div`,ne,[a(`div`,{class:`pointer-events-none left-0 right-0 top-0 z-10 flex items-center justify-center backdrop-blur-md`,style:S({background:we.value})},[...n[3]||=[a(`div`,{class:`py-4 text-center text-sm text-white font-medium`},` Top Area `,-1)]],4),a(`div`,{class:`transparent-gradient-overlay absolute inset-0 h-[calc((1lh+1rem+1rem)*2)] w-full`,style:S({background:we.value})},null,4),a(`img`,{ref_key:`imageRef`,ref:A,src:xe.value[0],class:`h-full max-h-[calc(100dvh-28rem)] w-full object-cover`},null,8,re),a(`div`,ie,[c(b(e),{modelValue:be.value,"onUpdate:modelValue":n[0]||=e=>be.value=e},{default:i(()=>[...n[4]||=[a(`div`,{class:`rounded-xl bg-black bg-opacity-30 px-5 py-4 text-white backdrop-blur-sm`},` Replace Image `,-1)]]),_:1},8,[`modelValue`])])]),a(`div`,ae,[a(`div`,oe,[a(`div`,se,[a(`h3`,ce,[n[5]||=a(`span`,null,`Node Vibrant`,-1),a(`button`,{"border-2":``,"border-neutral-300":``,"rounded-xl":``,"border-solid":``,"px-3":``,"py-1":``,"text-sm":``,"font-normal":``,"dark:border-neutral-700":``,class:x([k.value===`vibrant`?`bg-neutral-100 dark:bg-neutral-700`:``]),onClick:n[1]||=e=>k.value=`vibrant`},C(k.value===`vibrant`?`Activated`:`Active`),3)]),a(`div`,le,[(p(!0),o(_,null,m(w.value,e=>(p(),o(`div`,{key:e,class:`h-12 w-12 cursor-pointer border-2 border-gray-300 rounded rounded-xl transition-transform duration-200 ease-in-out hover:scale-110 dark:border-gray-900`,style:S({backgroundColor:e}),title:e},null,12,ue))),128))]),a(`p`,de,[n[6]||=s(` Color: `,-1),a(`span`,{style:S({color:T.value})},C(T.value),5)])]),a(`div`,fe,[a(`h3`,pe,[n[7]||=a(`span`,null,`html2canvas Top sampling`,-1),a(`button`,{"border-2":``,"border-neutral-300":``,"rounded-xl":``,"border-solid":``,"px-3":``,"py-1":``,"text-sm":``,"font-normal":``,"dark:border-neutral-700":``,class:x([k.value===`html2canvas`?`bg-neutral-100 dark:bg-neutral-700`:``]),onClick:n[2]||=e=>k.value=`html2canvas`},C(k.value===`html2canvas`?`Activated`:`Active`),3)]),a(`div`,me,[a(`div`,{class:`color-swatch h-12 w-12 border-2 border-gray-300 rounded rounded-xl dark:border-gray-900`,style:S({backgroundColor:D.value}),title:D.value},null,12,he)]),a(`p`,ge,[n[8]||=s(` Color: `,-1),a(`span`,{style:S({color:D.value})},C(D.value),5)])])]),a(`div`,_e,[n[9]||=a(`h3`,{class:`mb-1 text-lg`},` Captured Canvas (Debug) `,-1),a(`canvas`,ve,null,512)])])]))}}),be=r(ye,[[`__scopeId`,`data-v-7a838108`]]);export{be as default}; \ No newline at end of file diff --git a/assets/background-removal-BsOGJCJr.js b/assets/background-removal-B9nXYjVG.js similarity index 66% rename from assets/background-removal-BsOGJCJr.js rename to assets/background-removal-B9nXYjVG.js index acab2e1e88dc2e3203601e0e30883b8cb1a233d4..e9cd6b8e6144785be7e6a2f8114be0a519b49d09 100644 --- a/assets/background-removal-BsOGJCJr.js +++ b/assets/background-removal-B9nXYjVG.js @@ -1 +1 @@ -import"./BasicInputFile-DJjm73Ud.js";import{b as e}from"./InputFile-BfCG4dBd.js";import{a5 as t,eB as n,eC as r,eF as i,eG as a,eO as o,eQ as s,eS as c,ev as l,ey as u,ez as d,f1 as f,f6 as p,f9 as m,fa as h}from"./index-DEhol03r.js";import{b as g,c as _,d as v,f as y}from"./transformers.web-0yVxjCoi.js";const b={flex:``,"flex-col":``,"items-center":``,"gap-4":``},x=[`disabled`],S={"h-full":``,"w-full":``,flex:``,"gap-2":``},C={w:`[50%]`,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"min-h":`120`,h:`auto`,"overflow-hidden":``,"rounded-lg":``},w=[`src`],T={w:`[50%]`,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"min-h":`120`,h:`auto`,relative:``,"overflow-hidden":``,"rounded-lg":``},E={key:0,bg:`black/50`,absolute:``,"inset-0":``,"z-10":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``},D={"mb-4":``,"text-white":``,"font-medium":``},O={bg:`gray-200/30`,w:`70%`,"h-2":``,"overflow-hidden":``,"rounded-full":``},k=[`src`],A={bg:`black/0 group-hover:black/20`,absolute:``,"inset-0":``,flex:``,"items-center":``,"justify-center":``,"transition-all":``,"duration-200":``},j=[`onClick`],M={key:1,absolute:``,"bottom-2":``,"right-2":``};var N=a({__name:`background-removal`,setup(a){let N=f(),P=f(),F=f(),I=f(),L=f(!1),R=f(0),z=f(),B=f(),V=f([]),H=u(()=>V.value.map(e=>URL.createObjectURL(e)));o(async()=>{try{if(!(await t()).supported)throw Error(`WebGPU is not supported in this browser.`);let e=`Xenova/modnet`;y.backends.onnx.wasm.proxy=!1,N.value??=await g.from_pretrained(e,{device:`webgpu`}),P.value??=await _.from_pretrained(e,{})}catch(e){F.value=e}I.value=!1});async function U(){if(!N.value||!P.value)return;L.value=!0,R.value=0,z.value=[];let e=H.value.length;for(let t=0;t=z.value.length||!V.value[e])return;let t=V.value[e].name,n=t.substring(0,t.lastIndexOf(`.`))||t,r=t.substring(t.lastIndexOf(`.`))||`.png`,i=`${n}-background-removed${r}`,a=document.createElement(`a`);a.href=z.value[e],a.download=i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function G(){!z.value||z.value.length===0||z.value.forEach((e,t)=>{setTimeout(()=>W(t),t*100)})}return(t,a)=>(s(),r(`div`,b,[d(`button`,{bg:`neutral-100 dark:neutral-800`,"w-full":``,"cursor-pointer":``,"rounded-lg":``,"px-3":``,"py-2":``,disabled:L.value,onClick:U},h(L.value?`Processing...`:`Process`),9,x),d(`div`,S,[d(`div`,C,[(s(!0),r(l,null,c(H.value,(e,t)=>(s(),r(`img`,{key:t,src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,w))),128))]),d(`div`,T,[L.value?(s(),r(`div`,E,[d(`div`,D,h(R.value)+`% `,1),d(`div`,O,[d(`div`,{bg:`emerald-500`,"h-full":``,style:m({width:`${R.value}%`}),"transition-all":``,"duration-200":``},null,4)])])):n(``,!0),(s(!0),r(l,null,c(z.value,(e,t)=>(s(),r(`div`,{key:t,relative:``,class:`group`,"h-full":``,"w-full":``},[d(`img`,{src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,k),d(`div`,A,[d(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,"opacity-0":``,"transition-all":``,"duration-200":``,"group-hover:opacity-100":``,onClick:e=>W(t)},[...a[1]||=[d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[d(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4`})],-1)]],8,j)])]))),128)),z.value&&z.value.length>1?(s(),r(`div`,M,[d(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,onClick:G},[...a[2]||=[d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[d(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12`})],-1)]])])):n(``,!0)])]),i(p(e),{modelValue:V.value,"onUpdate:modelValue":a[0]||=e=>V.value=e,"w-full":``},null,8,[`modelValue`])]))}}),P=N;export{P as default}; \ No newline at end of file +import"./BasicInputFile-DP8wr1m6.js";import{b as e}from"./InputFile-Bx1X59Ey.js";import{a5 as t,eA as n,eC as r,eD as i,eG as a,eH as o,eP as s,eR as c,eT as l,ew as u,ez as d,f2 as f,f7 as p,fa as m,fb as h}from"./index-D3Bcbz9S.js";import{b as g,c as _,d as v,f as y}from"./transformers.web-Dd3aeuYz.js";const b={flex:``,"flex-col":``,"items-center":``,"gap-4":``},x=[`disabled`],S={"h-full":``,"w-full":``,flex:``,"gap-2":``},C={w:`[50%]`,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"min-h":`120`,h:`auto`,"overflow-hidden":``,"rounded-lg":``},w=[`src`],T={w:`[50%]`,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"min-h":`120`,h:`auto`,relative:``,"overflow-hidden":``,"rounded-lg":``},E={key:0,bg:`black/50`,absolute:``,"inset-0":``,"z-10":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``},D={"mb-4":``,"text-white":``,"font-medium":``},O={bg:`gray-200/30`,w:`70%`,"h-2":``,"overflow-hidden":``,"rounded-full":``},k=[`src`],A={bg:`black/0 group-hover:black/20`,absolute:``,"inset-0":``,flex:``,"items-center":``,"justify-center":``,"transition-all":``,"duration-200":``},j=[`onClick`],M={key:1,absolute:``,"bottom-2":``,"right-2":``};var N=o({__name:`background-removal`,setup(o){let N=f(),P=f(),F=f(),I=f(),L=f(!1),R=f(0),z=f(),B=f(),V=f([]),H=d(()=>V.value.map(e=>URL.createObjectURL(e)));s(async()=>{try{if(!(await t()).supported)throw Error(`WebGPU is not supported in this browser.`);let e=`Xenova/modnet`;y.backends.onnx.wasm.proxy=!1,N.value??=await g.from_pretrained(e,{device:`webgpu`}),P.value??=await _.from_pretrained(e,{})}catch(e){F.value=e}I.value=!1});async function U(){if(!N.value||!P.value)return;L.value=!0,R.value=0,z.value=[];let e=H.value.length;for(let t=0;t=z.value.length||!V.value[e])return;let t=V.value[e].name,n=t.substring(0,t.lastIndexOf(`.`))||t,r=t.substring(t.lastIndexOf(`.`))||`.png`,i=`${n}-background-removed${r}`,a=document.createElement(`a`);a.href=z.value[e],a.download=i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function G(){!z.value||z.value.length===0||z.value.forEach((e,t)=>{setTimeout(()=>W(t),t*100)})}return(t,o)=>(c(),i(`div`,b,[n(`button`,{bg:`neutral-100 dark:neutral-800`,"w-full":``,"cursor-pointer":``,"rounded-lg":``,"px-3":``,"py-2":``,disabled:L.value,onClick:U},h(L.value?`Processing...`:`Process`),9,x),n(`div`,S,[n(`div`,C,[(c(!0),i(u,null,l(H.value,(e,t)=>(c(),i(`img`,{key:t,src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,w))),128))]),n(`div`,T,[L.value?(c(),i(`div`,E,[n(`div`,D,h(R.value)+`% `,1),n(`div`,O,[n(`div`,{bg:`emerald-500`,"h-full":``,style:m({width:`${R.value}%`}),"transition-all":``,"duration-200":``},null,4)])])):r(``,!0),(c(!0),i(u,null,l(z.value,(e,t)=>(c(),i(`div`,{key:t,relative:``,class:`group`,"h-full":``,"w-full":``},[n(`img`,{src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,k),n(`div`,A,[n(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,"opacity-0":``,"transition-all":``,"duration-200":``,"group-hover:opacity-100":``,onClick:e=>W(t)},[...o[1]||=[n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[n(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4`})],-1)]],8,j)])]))),128)),z.value&&z.value.length>1?(c(),i(`div`,M,[n(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,onClick:G},[...o[2]||=[n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[n(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12`})],-1)]])])):r(``,!0)])]),a(p(e),{modelValue:V.value,"onUpdate:modelValue":o[0]||=e=>V.value=e,"w-full":``},null,8,[`modelValue`])]))}}),P=N;export{P as default}; \ No newline at end of file diff --git a/assets/chat-Dh3koUdS.js b/assets/chat-Cp9xu-SE.js similarity index 89% rename from assets/chat-Dh3koUdS.js rename to assets/chat-Cp9xu-SE.js index 0c5f39de470819c92183f29667e54a7e496efa69..44781f068416379a5377888c09eb3bda26f6fb71 100644 --- a/assets/chat-Dh3koUdS.js +++ b/assets/chat-Cp9xu-SE.js @@ -1,3 +1,3 @@ -import{bY as e,e$ as t,eB as n,eC as r,eG as i,eQ as a,eS as o,er as s,ev as c,ez as l,f0 as u,f1 as d,f3 as f,f6 as p,fa as m}from"./index-DEhol03r.js";import{b as h}from"./dist-ByFcnk3K.js";const g=()=>{let e=null;return{getStore:()=>(e===null&&console.warn("Woops! Looks like you are calling `getContext` after `await fn()`. Please move `getContext` to top level of handler."),e),run(t,n){e=t;try{return n()}finally{e=null}}}},_=new WeakMap,v=new WeakMap;let y=0,b=0;const x=e=>{let t=`${y++}`,n={debugLabel:e?.debugLabel??t,include:e=>r.has(e),with:i=>{let a=`${b++}`,o={[Symbol.toStringTag]:e?.debugLabel??`WorkflowEvent(${t}.${a})`,toString:()=>e?.debugLabel?e.debugLabel:`WorkflowEvent(${t}.${a})`,toJSON:()=>({type:e?.debugLabel?e.debugLabel:t,data:i}),get data(){return i}};return r.add(o),v.set(o,n),o}},r=new WeakSet;_.set(n,r),Object.defineProperty(n,Symbol.toStringTag,{get:()=>n?.debugLabel??`WorkflowEvent<${t}>`}),Object.defineProperty(n,`displayName`,{value:n?.debugLabel??`WorkflowEvent<${t}>`});let i=e?.uniqueId;return Object.defineProperty(n,`uniqueId`,{get:()=>(i||=t,i),set:()=>{throw Error(`uniqueId is readonly`)}}),n.toString=()=>e?.debugLabel??`WorkflowEvent<${t}>`,n},S=e=>typeof e==`object`&&e?_.has(e):!1,C=e=>typeof e==`object`&&e?v.get(e):void 0,w=e=>typeof e==`object`&&!!e&&`data`in e,T=e=>e!=null&&typeof e.then==`function`;function E(e,t){let n=Array(e.length);for(let r of t)for(let t=0;t(e.add(t),()=>{e.delete(t)}),publish:(...t)=>{let n=[];for(let r of e)n.push(r(...t));return n}};return D.set(t,e),t}var A=class extends TransformStream{constructor(){super({transform:(e,t)=>{C(e)&&t.enqueue(JSON.stringify({data:e.data,uniqueId:C(e).uniqueId})+` +import{bZ as e,eA as t,eC as n,eD as r,eH as i,eR as a,eT as o,es as s,ew as c,f0 as l,f1 as u,f2 as d,f4 as f,f7 as p,fb as m}from"./index-D3Bcbz9S.js";import{b as h}from"./dist-DInrA4pj.js";const g=()=>{let e=null;return{getStore:()=>(e===null&&console.warn("Woops! Looks like you are calling `getContext` after `await fn()`. Please move `getContext` to top level of handler."),e),run(t,n){e=t;try{return n()}finally{e=null}}}},_=new WeakMap,v=new WeakMap;let y=0,b=0;const x=e=>{let t=`${y++}`,n={debugLabel:e?.debugLabel??t,include:e=>r.has(e),with:i=>{let a=`${b++}`,o={[Symbol.toStringTag]:e?.debugLabel??`WorkflowEvent(${t}.${a})`,toString:()=>e?.debugLabel?e.debugLabel:`WorkflowEvent(${t}.${a})`,toJSON:()=>({type:e?.debugLabel?e.debugLabel:t,data:i}),get data(){return i}};return r.add(o),v.set(o,n),o}},r=new WeakSet;_.set(n,r),Object.defineProperty(n,Symbol.toStringTag,{get:()=>n?.debugLabel??`WorkflowEvent<${t}>`}),Object.defineProperty(n,`displayName`,{value:n?.debugLabel??`WorkflowEvent<${t}>`});let i=e?.uniqueId;return Object.defineProperty(n,`uniqueId`,{get:()=>(i||=t,i),set:()=>{throw Error(`uniqueId is readonly`)}}),n.toString=()=>e?.debugLabel??`WorkflowEvent<${t}>`,n},S=e=>typeof e==`object`&&e?_.has(e):!1,C=e=>typeof e==`object`&&e?v.get(e):void 0,w=e=>typeof e==`object`&&!!e&&`data`in e,T=e=>e!=null&&typeof e.then==`function`;function E(e,t){let n=Array(e.length);for(let r of t)for(let t=0;t(e.add(t),()=>{e.delete(t)}),publish:(...t)=>{let n=[];for(let r of e)n.push(r(...t));return n}};return D.set(t,e),t}var A=class extends TransformStream{constructor(){super({transform:(e,t)=>{C(e)&&t.enqueue(JSON.stringify({data:e.data,uniqueId:C(e).uniqueId})+` `)}})}},j=class extends TransformStream{#eventMap;constructor(e){super({transform:(e,t)=>{let n=e.split(` -`).map(e=>e.trim()).filter(e=>e.length>0);n.forEach(e=>{let n=JSON.parse(e),r=Object.values(this.#eventMap).find(e=>e.uniqueId===n.uniqueId);if(r){let e=r.with(n.data);t.enqueue(e)}else console.warn(`Unknown event: ${n.uniqueId}`)})}}),this.#eventMap=e}},M=class e extends ReadableStream{#stream;#subscribable;on(e,t){return this.#subscribable.subscribe(n=>{e.include(n)&&t(n)})}constructor(e,t){if(!e&&!t)throw TypeError(`Either subscribable or root stream must be provided`);if(super(),e){this.#subscribable=e;let n;this.#stream=t??new ReadableStream({start:t=>{n=e.subscribe(e=>{t.enqueue(e)})},cancel:()=>{n()}})}else{this.#subscribable=k(),this.#stream=t.pipeThrough(new TransformStream({transform:(e,t)=>{this.#subscribable.publish(e),t.enqueue(e)}}));return}}static fromReadableStream(t){return new e(null,t.pipeThrough(new TransformStream({transform:(e,t)=>{t.enqueue(e)}})))}static fromResponse(t,n){let r=t.body;if(!r)throw Error(`Response body is not readable`);return new e(null,r.pipeThrough(new TextDecoderStream).pipeThrough(new j(n)))}toResponse(e,t=new A){return new Response(this.#stream.pipeThrough(t).pipeThrough(new TextEncoderStream),e)}get locked(){return this.#stream.locked}[Symbol.asyncIterator](){return this.#stream[Symbol.asyncIterator]()}cancel(e){return this.#stream.cancel(e)}getReader(){return this.#stream.getReader()}pipeThrough(t,n){let r=this.#stream.pipeThrough(t,n);return new e(null,r)}pipeTo(e,t){return this.#stream.pipeTo(e,t)}tee(){let[t,n]=this.#stream.tee();return[new e(this.#subscribable,t),new e(this.#subscribable,n)]}forEach(e){return this.#stream.pipeTo(new WritableStream({write:t=>{e(t)}}))}map(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{n.enqueue(e(t))}}))}values(e){return this.#stream.values(e)}take(e){let t=0;return this.pipeThrough(new TransformStream({transform:(n,r)=>{t=e&&r.terminate()}}))}filter(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{(typeof e==`function`?e(t):S(e)?e.include(t):e===t)&&n.enqueue(t)}}))}until(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{n.enqueue(t),(typeof e==`function`?e(t):S(e)?e.include(t):e===t)&&n.terminate()}}))}async toArray(){let e=[];return await this.pipeTo(new WritableStream({write:t=>{e.push(t)}})),e}};const N=g();function P(){let e=N.getStore();if(!e)throw Error(`No current context found`);return e}const F=g(),I=new WeakMap,L=({listeners:e})=>{let t=[],n=(e,t,n,r)=>{let c,l={get abortController(){return c||=new AbortController,c},async:`constructor`in e?e.constructor.name===`AsyncFunction`:!1,pending:null,handler:e,inputEvents:t,inputs:n,outputs:[],prev:r,next:new Set,get root(){return o}};l.prev.next.add(l);let u=i(l);F.run(l,()=>{let e=[...new Set([...O(s.__internal__call_context),...O(u.__internal__call_context)])];N.run(u,()=>{let t=0,n=r=>{if(t===e.length){let e;try{e=r.handler(...r.inputs)}catch(e){if(c??a)(c??a).abort(e);else throw console.error(`unhandled error in handler`,e),e}T(e)?(l.async=!0,l.pending=e.then(e=>(w(e)&&u.sendEvent(e),e))):w(e)&&u.sendEvent(e)}let i=e[t];i&&(t++,i(r,n))};n(l)})})},r=r=>{let i=[...t];[...e].filter(([e])=>{let t=E(e,i);return t.length===e.length}).map(([e,a])=>{let o=E(e,i);o.forEach(e=>{t.splice(t.indexOf(e),1)});for(let t of a)n(t,e,o,r)})},i=e=>{let n=null;return{get stream(){if(!n){let t=k();s.__internal__call_send_event.subscribe(n=>{let r=I.get(n);for(;r;){if(r===e){t.publish(n);break}r=r.prev}}),n=new M(t,null)}return n},get signal(){return e.abortController.signal},sendEvent:(...n)=>{n.forEach(n=>{I.set(n,e),e.outputs.push(n),t.push(n),s.__internal__call_send_event.publish(n,e),r(e)})},__internal__call_context:k(),__internal__call_send_event:k()}},a=new AbortController,o={get abortController(){return a||=new AbortController,a},async:!1,pending:null,inputEvents:[],inputs:[],outputs:[],handler:null,prev:null,next:new Set,get root(){return o}},s=i(o);return s},R=()=>{let e={steps:new Map};return{handle:(t,n)=>{if(e.steps.has(t)){let r=e.steps.get(t);r.add(n)}else{let r=new Set;r.add(n),e.steps.set(t,r)}},createContext(){return L({listeners:e.steps})}}};function z(e,t){let n=(...e)=>{let n=t.filter(([t])=>t.every((t,n)=>t.include(e[n]))).map(([e,t])=>t),r=P(),i=r.sendEvent;return(...e)=>{for(let t=0;tt.include(e[n])))return i(...e)}return console.warn(`Invalid input detected [%s]`,e.map(e=>e.data).join(`, `)),i(...e)}};return{...e,strictHandle:(t,n)=>{let r=(...e)=>{let t=P();return n(t.safeSendEvent,...e)};return e.handle(t,r)},createContext(){let t=e.createContext();return t.__internal__call_context.subscribe((e,t)=>{P().safeSendEvent=n(...e.inputs),t(e)}),t}}}async function B(e,t,n){let{stream:r,sendEvent:i}=e.createContext();i(t);let a=(await r.until(n).toArray()).at(-1);if(!a)throw Error(`No output event received`);return a}const V={flex:``,"flex-col":``,"gap-2":``},H={flex:`~ col`,"gap-2":``},U={flex:``,"flex-col":``,"gap-2":``},W={grid:``,"grid-cols-2":``,"gap-2":``},G={flex:``,"items-center":``,"gap-2":``},K={flex:``,"items-center":``,"gap-2":``},q={flex:``,"items-center":``,"gap-2":``},J={key:0},Y={key:1};var X=i({__name:`chat`,setup(i){let g=e(`settings/llm/baseUrl`,`https://openrouter.ai/api/v1/`),_=e(`settings/llm/apiKey`,``),v=e(`settings/llm/model`,`openai/gpt-4o-mini`),y=d(``),b=d([]),S=d({role:`assistant`,content:``}),C=d(!1),w=x(),T=x(),E=x(),D=x(),O=x();async function k(){C.value=!0;try{let e=z(R(),[[[w],[T,O]],[[T],[E]],[[E],[D]]]);e.handle([w],async()=>{let{sendEvent:t}=e.createContext();S.value={role:`assistant`,content:``},b.value.push({role:`user`,content:y.value}),b.value.push(S.value);let n=await h({baseURL:g.value,apiKey:_.value,model:v.value,messages:b.value.slice(0,b.value.length-1).map(e=>f(e))});for await(let e of n.fullStream)e.type===`text-delta`&&t(T.with(e.text||``));return O.with()}),e.handle([T],async e=>{S.value.content?S.value.content+=e.data:S.value.content=e.data}),await B(e,w.with(),O)}catch(e){console.error(e)}finally{C.value=!1}}return(e,i)=>(a(),r(`div`,V,[l(`div`,H,[l(`div`,U,[i[7]||=l(`div`,null,[l(`span`,{"text-neutral-500":``,"dark:text-neutral-400":``},`LLM`)],-1),l(`div`,W,[l(`label`,G,[i[4]||=l(`span`,{"text-nowrap":``},` Base URL `,-1),t(l(`input`,{"onUpdate:modelValue":i[0]||=e=>u(g)?g.value=e:null,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[s,p(g)]])]),l(`label`,K,[i[5]||=l(`span`,{"text-nowrap":``},` API Key `,-1),t(l(`input`,{"onUpdate:modelValue":i[1]||=e=>u(_)?_.value=e:null,type:`password`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[s,p(_)]])]),l(`label`,q,[i[6]||=l(`span`,{"text-nowrap":``},` Model `,-1),t(l(`input`,{"onUpdate:modelValue":i[2]||=e=>u(v)?v.value=e:null,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[s,p(v)]])])])]),l(`div`,null,[t(l(`textarea`,{"onUpdate:modelValue":i[3]||=e=>y.value=e,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[s,y.value]])]),l(`button`,{"rounded-lg":``,bg:`blue-100 dark:blue-900`,"px-4":``,"py-2":``,onClick:k},` Send `),l(`div`,null,[(a(!0),r(c,null,o(b.value,(e,t)=>(a(),r(`div`,{key:t},[e.role===`user`?(a(),r(`div`,J,[l(`span`,null,m(e.content),1)])):n(``,!0),e.role===`assistant`?(a(),r(`div`,Y,[l(`span`,null,m(e.content),1)])):n(``,!0)]))),128))])])]))}}),Z=X;export{Z as default}; \ No newline at end of file +`).map(e=>e.trim()).filter(e=>e.length>0);n.forEach(e=>{let n=JSON.parse(e),r=Object.values(this.#eventMap).find(e=>e.uniqueId===n.uniqueId);if(r){let e=r.with(n.data);t.enqueue(e)}else console.warn(`Unknown event: ${n.uniqueId}`)})}}),this.#eventMap=e}},M=class e extends ReadableStream{#stream;#subscribable;on(e,t){return this.#subscribable.subscribe(n=>{e.include(n)&&t(n)})}constructor(e,t){if(!e&&!t)throw TypeError(`Either subscribable or root stream must be provided`);if(super(),e){this.#subscribable=e;let n;this.#stream=t??new ReadableStream({start:t=>{n=e.subscribe(e=>{t.enqueue(e)})},cancel:()=>{n()}})}else{this.#subscribable=k(),this.#stream=t.pipeThrough(new TransformStream({transform:(e,t)=>{this.#subscribable.publish(e),t.enqueue(e)}}));return}}static fromReadableStream(t){return new e(null,t.pipeThrough(new TransformStream({transform:(e,t)=>{t.enqueue(e)}})))}static fromResponse(t,n){let r=t.body;if(!r)throw Error(`Response body is not readable`);return new e(null,r.pipeThrough(new TextDecoderStream).pipeThrough(new j(n)))}toResponse(e,t=new A){return new Response(this.#stream.pipeThrough(t).pipeThrough(new TextEncoderStream),e)}get locked(){return this.#stream.locked}[Symbol.asyncIterator](){return this.#stream[Symbol.asyncIterator]()}cancel(e){return this.#stream.cancel(e)}getReader(){return this.#stream.getReader()}pipeThrough(t,n){let r=this.#stream.pipeThrough(t,n);return new e(null,r)}pipeTo(e,t){return this.#stream.pipeTo(e,t)}tee(){let[t,n]=this.#stream.tee();return[new e(this.#subscribable,t),new e(this.#subscribable,n)]}forEach(e){return this.#stream.pipeTo(new WritableStream({write:t=>{e(t)}}))}map(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{n.enqueue(e(t))}}))}values(e){return this.#stream.values(e)}take(e){let t=0;return this.pipeThrough(new TransformStream({transform:(n,r)=>{t=e&&r.terminate()}}))}filter(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{(typeof e==`function`?e(t):S(e)?e.include(t):e===t)&&n.enqueue(t)}}))}until(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{n.enqueue(t),(typeof e==`function`?e(t):S(e)?e.include(t):e===t)&&n.terminate()}}))}async toArray(){let e=[];return await this.pipeTo(new WritableStream({write:t=>{e.push(t)}})),e}};const N=g();function P(){let e=N.getStore();if(!e)throw Error(`No current context found`);return e}const F=g(),I=new WeakMap,L=({listeners:e})=>{let t=[],n=(e,t,n,r)=>{let c,l={get abortController(){return c||=new AbortController,c},async:`constructor`in e?e.constructor.name===`AsyncFunction`:!1,pending:null,handler:e,inputEvents:t,inputs:n,outputs:[],prev:r,next:new Set,get root(){return o}};l.prev.next.add(l);let u=i(l);F.run(l,()=>{let e=[...new Set([...O(s.__internal__call_context),...O(u.__internal__call_context)])];N.run(u,()=>{let t=0,n=r=>{if(t===e.length){let e;try{e=r.handler(...r.inputs)}catch(e){if(c??a)(c??a).abort(e);else throw console.error(`unhandled error in handler`,e),e}T(e)?(l.async=!0,l.pending=e.then(e=>(w(e)&&u.sendEvent(e),e))):w(e)&&u.sendEvent(e)}let i=e[t];i&&(t++,i(r,n))};n(l)})})},r=r=>{let i=[...t];[...e].filter(([e])=>{let t=E(e,i);return t.length===e.length}).map(([e,a])=>{let o=E(e,i);o.forEach(e=>{t.splice(t.indexOf(e),1)});for(let t of a)n(t,e,o,r)})},i=e=>{let n=null;return{get stream(){if(!n){let t=k();s.__internal__call_send_event.subscribe(n=>{let r=I.get(n);for(;r;){if(r===e){t.publish(n);break}r=r.prev}}),n=new M(t,null)}return n},get signal(){return e.abortController.signal},sendEvent:(...n)=>{n.forEach(n=>{I.set(n,e),e.outputs.push(n),t.push(n),s.__internal__call_send_event.publish(n,e),r(e)})},__internal__call_context:k(),__internal__call_send_event:k()}},a=new AbortController,o={get abortController(){return a||=new AbortController,a},async:!1,pending:null,inputEvents:[],inputs:[],outputs:[],handler:null,prev:null,next:new Set,get root(){return o}},s=i(o);return s},R=()=>{let e={steps:new Map};return{handle:(t,n)=>{if(e.steps.has(t)){let r=e.steps.get(t);r.add(n)}else{let r=new Set;r.add(n),e.steps.set(t,r)}},createContext(){return L({listeners:e.steps})}}};function z(e,t){let n=(...e)=>{let n=t.filter(([t])=>t.every((t,n)=>t.include(e[n]))).map(([e,t])=>t),r=P(),i=r.sendEvent;return(...e)=>{for(let t=0;tt.include(e[n])))return i(...e)}return console.warn(`Invalid input detected [%s]`,e.map(e=>e.data).join(`, `)),i(...e)}};return{...e,strictHandle:(t,n)=>{let r=(...e)=>{let t=P();return n(t.safeSendEvent,...e)};return e.handle(t,r)},createContext(){let t=e.createContext();return t.__internal__call_context.subscribe((e,t)=>{P().safeSendEvent=n(...e.inputs),t(e)}),t}}}async function B(e,t,n){let{stream:r,sendEvent:i}=e.createContext();i(t);let a=(await r.until(n).toArray()).at(-1);if(!a)throw Error(`No output event received`);return a}const V={flex:``,"flex-col":``,"gap-2":``},H={flex:`~ col`,"gap-2":``},U={flex:``,"flex-col":``,"gap-2":``},W={grid:``,"grid-cols-2":``,"gap-2":``},G={flex:``,"items-center":``,"gap-2":``},K={flex:``,"items-center":``,"gap-2":``},q={flex:``,"items-center":``,"gap-2":``},J={key:0},Y={key:1};var X=i({__name:`chat`,setup(i){let g=e(`settings/llm/baseUrl`,`https://openrouter.ai/api/v1/`),_=e(`settings/llm/apiKey`,``),v=e(`settings/llm/model`,`openai/gpt-4o-mini`),y=d(``),b=d([]),S=d({role:`assistant`,content:``}),C=d(!1),w=x(),T=x(),E=x(),D=x(),O=x();async function k(){C.value=!0;try{let e=z(R(),[[[w],[T,O]],[[T],[E]],[[E],[D]]]);e.handle([w],async()=>{let{sendEvent:t}=e.createContext();S.value={role:`assistant`,content:``},b.value.push({role:`user`,content:y.value}),b.value.push(S.value);let n=await h({baseURL:g.value,apiKey:_.value,model:v.value,messages:b.value.slice(0,b.value.length-1).map(e=>f(e))});for await(let e of n.fullStream)e.type===`text-delta`&&t(T.with(e.text||``));return O.with()}),e.handle([T],async e=>{S.value.content?S.value.content+=e.data:S.value.content=e.data}),await B(e,w.with(),O)}catch(e){console.error(e)}finally{C.value=!1}}return(e,i)=>(a(),r(`div`,V,[t(`div`,H,[t(`div`,U,[i[7]||=t(`div`,null,[t(`span`,{"text-neutral-500":``,"dark:text-neutral-400":``},`LLM`)],-1),t(`div`,W,[t(`label`,G,[i[4]||=t(`span`,{"text-nowrap":``},` Base URL `,-1),l(t(`input`,{"onUpdate:modelValue":i[0]||=e=>u(g)?g.value=e:null,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[s,p(g)]])]),t(`label`,K,[i[5]||=t(`span`,{"text-nowrap":``},` API Key `,-1),l(t(`input`,{"onUpdate:modelValue":i[1]||=e=>u(_)?_.value=e:null,type:`password`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[s,p(_)]])]),t(`label`,q,[i[6]||=t(`span`,{"text-nowrap":``},` Model `,-1),l(t(`input`,{"onUpdate:modelValue":i[2]||=e=>u(v)?v.value=e:null,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[s,p(v)]])])])]),t(`div`,null,[l(t(`textarea`,{"onUpdate:modelValue":i[3]||=e=>y.value=e,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`},null,512),[[s,y.value]])]),t(`button`,{"rounded-lg":``,bg:`blue-100 dark:blue-900`,"px-4":``,"py-2":``,onClick:k},` Send `),t(`div`,null,[(a(!0),r(c,null,o(b.value,(e,i)=>(a(),r(`div`,{key:i},[e.role===`user`?(a(),r(`div`,J,[t(`span`,null,m(e.content),1)])):n(``,!0),e.role===`assistant`?(a(),r(`div`,Y,[t(`span`,null,m(e.content),1)])):n(``,!0)]))),128))])])]))}}),Z=X;export{Z as default}; \ No newline at end of file diff --git a/assets/cloudflare-workers-ai-UXTCTqVp.js b/assets/cloudflare-workers-ai-CdzoiEHd.js similarity index 65% rename from assets/cloudflare-workers-ai-UXTCTqVp.js rename to assets/cloudflare-workers-ai-CdzoiEHd.js index dea97148a24349eb54000e88d3e62c126e642902..11ed1fee78836bf0b61d6441e71c11de25a9e626 100644 --- a/assets/cloudflare-workers-ai-UXTCTqVp.js +++ b/assets/cloudflare-workers-ai-CdzoiEHd.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,a2 as i,a4 as a,ae as o,bM as s,bP as c,eA as l,eF as u,eG as d,eO as f,eQ as p,eY as m,e_ as h,ey as g,f6 as _}from"./index-DEhol03r.js";import{b as v}from"./route-block-Dc_s4AGN.js";const y=`cloudflare-workers-ai`;var b=d({__name:`cloudflare-workers-ai`,setup(d){let{t:v}=o(),b=s(),x=a(),{providers:S}=c(x),C=g(()=>x.getProviderMetadata(y)),w=g({get:()=>S.value[y]?.apiKey||``,set:e=>{S.value[y]||(S.value[y]={}),S.value[y].apiKey=e}}),T=g({get:()=>S.value[y]?.accountId||``,set:e=>{S.value[y]||(S.value[y]={}),S.value[y].accountId=e}});f(()=>{x.initializeProvider(y),w.value=S.value[y]?.apiKey||``,T.value=S.value[y]?.accountId||``}),m([w,T],()=>{S.value[y]={...S.value[y],apiKey:w.value,accountId:T.value}});function E(){S.value[y]={...C.value?.defaultOptions}}return(a,o)=>(p(),l(_(t),{"provider-name":C.value?.localizedName,"provider-icon-color":C.value?.iconColor,"on-back":()=>_(b).back()},{default:h(()=>[u(_(n),null,{default:h(()=>[u(_(r),{title:_(v)(`settings.pages.providers.common.section.basic.title`),description:_(v)(`settings.pages.providers.common.section.basic.description`),"on-reset":E},{default:h(()=>[u(_(e),{modelValue:w.value,"onUpdate:modelValue":o[0]||=e=>w.value=e,"provider-name":C.value?.localizedName,placeholder:_(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.api-key.placeholder`)},null,8,[`modelValue`,`provider-name`,`placeholder`]),u(_(i),{modelValue:T.value,"onUpdate:modelValue":o[1]||=e=>T.value=e,label:_(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.label`),description:_(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.description`),placeholder:_(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.placeholder`)},null,8,[`modelValue`,`label`,`description`,`placeholder`])]),_:1},8,[`title`,`description`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof v==`function`&&v(b);var x=b;export{x as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,a2 as i,a4 as a,ae as o,bN as s,bQ as c,e$ as l,eB as u,eG as d,eH as f,eP as p,eR as m,eZ as h,ez as g,f7 as _}from"./index-D3Bcbz9S.js";import{b as v}from"./route-block-Dc_s4AGN.js";const y=`cloudflare-workers-ai`;var b=f({__name:`cloudflare-workers-ai`,setup(f){let{t:v}=o(),b=s(),x=a(),{providers:S}=c(x),C=g(()=>x.getProviderMetadata(y)),w=g({get:()=>S.value[y]?.apiKey||``,set:e=>{S.value[y]||(S.value[y]={}),S.value[y].apiKey=e}}),T=g({get:()=>S.value[y]?.accountId||``,set:e=>{S.value[y]||(S.value[y]={}),S.value[y].accountId=e}});p(()=>{x.initializeProvider(y),w.value=S.value[y]?.apiKey||``,T.value=S.value[y]?.accountId||``}),h([w,T],()=>{S.value[y]={...S.value[y],apiKey:w.value,accountId:T.value}});function E(){S.value[y]={...C.value?.defaultOptions}}return(a,o)=>(m(),u(_(t),{"provider-name":C.value?.localizedName,"provider-icon-color":C.value?.iconColor,"on-back":()=>_(b).back()},{default:l(()=>[d(_(n),null,{default:l(()=>[d(_(r),{title:_(v)(`settings.pages.providers.common.section.basic.title`),description:_(v)(`settings.pages.providers.common.section.basic.description`),"on-reset":E},{default:l(()=>[d(_(e),{modelValue:w.value,"onUpdate:modelValue":o[0]||=e=>w.value=e,"provider-name":C.value?.localizedName,placeholder:_(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.api-key.placeholder`)},null,8,[`modelValue`,`provider-name`,`placeholder`]),d(_(i),{modelValue:T.value,"onUpdate:modelValue":o[1]||=e=>T.value=e,label:_(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.label`),description:_(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.description`),placeholder:_(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.placeholder`)},null,8,[`modelValue`,`label`,`description`,`placeholder`])]),_:1},8,[`title`,`description`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof v==`function`&&v(b);var x=b;export{x as default}; \ No newline at end of file diff --git a/assets/color-scheme-CNUaazxA.js b/assets/color-scheme-BElIJRed.js similarity index 50% rename from assets/color-scheme-CNUaazxA.js rename to assets/color-scheme-BElIJRed.js index 925eeda27abbbdc60bdbb68a577c50f738077527..ee7371856c0b746e233b5ad1d637a8abd7daa8c5 100644 --- a/assets/color-scheme-CNUaazxA.js +++ b/assets/color-scheme-BElIJRed.js @@ -1 +1 @@ -import{aT as e,aX as t,ae as n,ax as r,b as i,c as a,e$ as o,eA as s,eC as c,eE as l,eF as u,eG as d,eQ as f,eS as p,eV as m,e_ as h,ep as g,ev as _,ez as v,f6 as y,fa as b}from"./index-DEhol03r.js";import{b as x}from"./route-block-Dc_s4AGN.js";var S=[[],[`#A5978B`,`#D8CAAF`,`#B8B4A7`,`#C4BCB1`,`#E5DED8`,`#9A8F7D`,`#BEB5A7`,`#C9C0B6`],[`#7A9EAF`,`#B8C7CC`,`#D4B79C`,`#8B9D77`,`#C7D5CB`,`#E6D0B1`,`#94A7B1`,`#B4C8C3`],[`#D9B48F`,`#B5917A`,`#8C7A6B`,`#A17F5F`,`#B98C46`,`#C7A252`,`#DAB300`,`#D19826`],[`#9BA7B0`,`#C1CBD4`,`#A5ADB6`,`#8B959E`,`#D4DCE4`,`#7F8A94`,`#B3BCC6`,`#98A4AE`],[`#E4C6D0`,`#A61B29`,`#5D513C`,`#789262`,`#1C0D1A`,`#F7C242`,`#62A9DD`,`#8C4B3C`]];const C={flex:``,"items-center":``,"justify-between":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:300,delay:250,transition:`all ease-in-out duration-250`},w={"text-lg":``,"font-normal":``},T={relative:``,flex:``,"cursor-pointer":``,"items-center":``,"gap-2":``},E={class:`color-bar text-[10px] md:text-base sm:text-xs`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:320,delay:350,transition:`all ease-in-out duration-250`},D={"text-white":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:330,delay:400,transition:`all ease-in-out duration-250`},O={class:`color-bar transparency-grid text-[10px] md:text-base sm:text-xs`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:340,delay:450,transition:`all ease-in-out duration-250`},k=[`duration`,`delay`],A={"font-medium":``},j={text:`sm neutral-500`},M={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var N=d({__name:`color-scheme`,setup(t){let d=a(),{t:x}=n();return(t,n)=>{let a=m(`motion`);return f(),c(_,null,[o((f(),s(y(r),{"mb-2":``,title:y(x)(`settings.pages.themes.sections.section.custom-color.title`),icon:`i-solar:pallete-2-bold-duotone`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:290,delay:200,transition:`all ease-in-out duration-250`},{default:h(()=>[o((f(),c(`div`,C,[v(`span`,w,b(t.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.label`)),1),v(`label`,T,[o(v(`input`,{"onUpdate:modelValue":n[0]||=e=>y(d).themeColorsHueDynamic=e,type:`checkbox`,class:`peer sr-only`},null,512),[[g,y(d).themeColorsHueDynamic]]),n[2]||=v(`div`,{class:`h-6 w-11 rounded-full bg-neutral-200 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5 after:rounded-full after:bg-white dark:bg-neutral-600 peer-checked:bg-primary-500 after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white`},null,-1),l(` `+b(t.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.rgb-on.title`)),1)])])),[[a]]),o(u(y(e),{modelValue:y(d).themeColorsHue,"onUpdate:modelValue":n[1]||=e=>y(d).themeColorsHue=e,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:310,delay:300,disabled:y(d).themeColorsHueDynamic},null,8,[`modelValue`,`disabled`]),[[a]]),o((f(),c(`div`,E,[n[4]||=v(`span`,{"bg-primary-50":``},`50`,-1),n[5]||=v(`span`,{"bg-primary-100":``},`100`,-1),n[6]||=v(`span`,{"bg-primary-200":``},`200`,-1),n[7]||=v(`span`,{"bg-primary-300":``},`300`,-1),n[8]||=v(`span`,{"bg-primary-400":``},`400`,-1),n[9]||=v(`span`,{"bg-primary-500":``},`500`,-1),o((f(),c(`div`,D,[...n[3]||=[v(`span`,{"bg-primary-600":``},`600`,-1),v(`span`,{"bg-primary-700":``},`700`,-1),v(`span`,{"bg-primary-800":``},`800`,-1),v(`span`,{"bg-primary-900":``},`900`,-1),v(`span`,{"bg-primary-950":``},`950`,-1)]])),[[a]])])),[[a]]),o((f(),c(`div`,O,[...n[10]||=[v(`span`,{bg:`primary-500/5`},`500/5`,-1),v(`span`,{bg:`primary-500/10`},`500/10`,-1),v(`span`,{bg:`primary-500/20`},`500/20`,-1),v(`span`,{bg:`primary-500/30`},`500/30`,-1),v(`span`,{bg:`primary-500/40`},`500/40`,-1),v(`span`,{bg:`primary-500/50`},`500/50`,-1),v(`span`,{bg:`primary-500/60`},`500/60`,-1),v(`span`,{bg:`primary-500/70`},`500/70`,-1),v(`span`,{bg:`primary-500/80`},`500/80`,-1),v(`span`,{bg:`primary-500/90`},`500/90`,-1),v(`span`,{bg:`primary-500`},`500`,-1)]])),[[a]])]),_:1},8,[`title`])),[[a]]),o((f(),s(y(r),{"mb-2":``,title:y(x)(`settings.pages.themes.sections.section.theme-presets.title`),icon:`i-solar:magic-stick-2-bold-duotone`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:350,delay:500,transition:`all ease-in-out duration-250`},{default:h(()=>[(f(!0),c(_,null,p(t.$tm(`settings.pages.themes.sections.section.theme-presets.presets`),({title:e,description:n,colors:r},s)=>o((f(),c(`div`,{key:s,class:`w-full flex flex-col items-start justify-between gap-2 rounded-lg px-4 py-3 outline-none transition-all duration-250 ease-in-out md:flex-row md:items-center md:gap-0`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:360+s*10,delay:550+s*50,transition:`all ease-in-out duration-250`},[v(`div`,null,[v(`span`,A,b(t.$rt(e)),1),v(`div`,j,b(t.$rt(n)),1)]),u(y(i),{colors:r.map((e,n)=>({hex:y(S)[s][n],name:t.$rt(e)}))},null,8,[`colors`])],8,k)),[[a]])),128))]),_:1},8,[`title`])),[[a]]),o((f(),c(`div`,M,[...n[11]||=[v(`div`,{text:`60`,"i-solar:pallete-2-bold-duotone":``},null,-1)]])),[[a]])],64)}}});typeof x==`function`&&x(N);var P=t(N,[[`__scopeId`,`data-v-cc6b770a`]]);export{P as default}; \ No newline at end of file +import{aU as e,aY as t,ae as n,ay as r,b as i,c as a,e$ as o,eA as s,eB as c,eD as l,eF as u,eG as d,eH as f,eR as p,eT as m,eW as h,eq as g,ew as _,f0 as v,f7 as y,fb as b}from"./index-D3Bcbz9S.js";import{b as x}from"./route-block-Dc_s4AGN.js";var S=[[],[`#A5978B`,`#D8CAAF`,`#B8B4A7`,`#C4BCB1`,`#E5DED8`,`#9A8F7D`,`#BEB5A7`,`#C9C0B6`],[`#7A9EAF`,`#B8C7CC`,`#D4B79C`,`#8B9D77`,`#C7D5CB`,`#E6D0B1`,`#94A7B1`,`#B4C8C3`],[`#D9B48F`,`#B5917A`,`#8C7A6B`,`#A17F5F`,`#B98C46`,`#C7A252`,`#DAB300`,`#D19826`],[`#9BA7B0`,`#C1CBD4`,`#A5ADB6`,`#8B959E`,`#D4DCE4`,`#7F8A94`,`#B3BCC6`,`#98A4AE`],[`#E4C6D0`,`#A61B29`,`#5D513C`,`#789262`,`#1C0D1A`,`#F7C242`,`#62A9DD`,`#8C4B3C`]];const C={flex:``,"items-center":``,"justify-between":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:300,delay:250,transition:`all ease-in-out duration-250`},w={"text-lg":``,"font-normal":``},T={relative:``,flex:``,"cursor-pointer":``,"items-center":``,"gap-2":``},E={class:`color-bar text-[10px] md:text-base sm:text-xs`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:320,delay:350,transition:`all ease-in-out duration-250`},D={"text-white":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:330,delay:400,transition:`all ease-in-out duration-250`},O={class:`color-bar transparency-grid text-[10px] md:text-base sm:text-xs`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:340,delay:450,transition:`all ease-in-out duration-250`},k=[`duration`,`delay`],A={"font-medium":``},j={text:`sm neutral-500`},M={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var N=f({__name:`color-scheme`,setup(t){let f=a(),{t:x}=n();return(t,n)=>{let a=h(`motion`);return p(),l(_,null,[v((p(),c(y(r),{"mb-2":``,title:y(x)(`settings.pages.themes.sections.section.custom-color.title`),icon:`i-solar:pallete-2-bold-duotone`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:290,delay:200,transition:`all ease-in-out duration-250`},{default:o(()=>[v((p(),l(`div`,C,[s(`span`,w,b(t.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.label`)),1),s(`label`,T,[v(s(`input`,{"onUpdate:modelValue":n[0]||=e=>y(f).themeColorsHueDynamic=e,type:`checkbox`,class:`peer sr-only`},null,512),[[g,y(f).themeColorsHueDynamic]]),n[2]||=s(`div`,{class:`h-6 w-11 rounded-full bg-neutral-200 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5 after:rounded-full after:bg-white dark:bg-neutral-600 peer-checked:bg-primary-500 after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white`},null,-1),u(` `+b(t.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.rgb-on.title`)),1)])])),[[a]]),v(d(y(e),{modelValue:y(f).themeColorsHue,"onUpdate:modelValue":n[1]||=e=>y(f).themeColorsHue=e,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:310,delay:300,disabled:y(f).themeColorsHueDynamic},null,8,[`modelValue`,`disabled`]),[[a]]),v((p(),l(`div`,E,[n[4]||=s(`span`,{"bg-primary-50":``},`50`,-1),n[5]||=s(`span`,{"bg-primary-100":``},`100`,-1),n[6]||=s(`span`,{"bg-primary-200":``},`200`,-1),n[7]||=s(`span`,{"bg-primary-300":``},`300`,-1),n[8]||=s(`span`,{"bg-primary-400":``},`400`,-1),n[9]||=s(`span`,{"bg-primary-500":``},`500`,-1),v((p(),l(`div`,D,[...n[3]||=[s(`span`,{"bg-primary-600":``},`600`,-1),s(`span`,{"bg-primary-700":``},`700`,-1),s(`span`,{"bg-primary-800":``},`800`,-1),s(`span`,{"bg-primary-900":``},`900`,-1),s(`span`,{"bg-primary-950":``},`950`,-1)]])),[[a]])])),[[a]]),v((p(),l(`div`,O,[...n[10]||=[s(`span`,{bg:`primary-500/5`},`500/5`,-1),s(`span`,{bg:`primary-500/10`},`500/10`,-1),s(`span`,{bg:`primary-500/20`},`500/20`,-1),s(`span`,{bg:`primary-500/30`},`500/30`,-1),s(`span`,{bg:`primary-500/40`},`500/40`,-1),s(`span`,{bg:`primary-500/50`},`500/50`,-1),s(`span`,{bg:`primary-500/60`},`500/60`,-1),s(`span`,{bg:`primary-500/70`},`500/70`,-1),s(`span`,{bg:`primary-500/80`},`500/80`,-1),s(`span`,{bg:`primary-500/90`},`500/90`,-1),s(`span`,{bg:`primary-500`},`500`,-1)]])),[[a]])]),_:1},8,[`title`])),[[a]]),v((p(),c(y(r),{"mb-2":``,title:y(x)(`settings.pages.themes.sections.section.theme-presets.title`),icon:`i-solar:magic-stick-2-bold-duotone`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:350,delay:500,transition:`all ease-in-out duration-250`},{default:o(()=>[(p(!0),l(_,null,m(t.$tm(`settings.pages.themes.sections.section.theme-presets.presets`),({title:e,description:n,colors:r},o)=>v((p(),l(`div`,{key:o,class:`w-full flex flex-col items-start justify-between gap-2 rounded-lg px-4 py-3 outline-none transition-all duration-250 ease-in-out md:flex-row md:items-center md:gap-0`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:360+o*10,delay:550+o*50,transition:`all ease-in-out duration-250`},[s(`div`,null,[s(`span`,A,b(t.$rt(e)),1),s(`div`,j,b(t.$rt(n)),1)]),d(y(i),{colors:r.map((e,n)=>({hex:y(S)[o][n],name:t.$rt(e)}))},null,8,[`colors`])],8,k)),[[a]])),128))]),_:1},8,[`title`])),[[a]]),v((p(),l(`div`,M,[...n[11]||=[s(`div`,{text:`60`,"i-solar:pallete-2-bold-duotone":``},null,-1)]])),[[a]])],64)}}});typeof x==`function`&&x(N);var P=t(N,[[`__scopeId`,`data-v-cc6b770a`]]);export{P as default}; \ No newline at end of file diff --git a/assets/composables-C5AKp2DU.js b/assets/composables-Tp0cITw9.js similarity index 99% rename from assets/composables-C5AKp2DU.js rename to assets/composables-Tp0cITw9.js index 3c7cb192745d069da50cb50b2ad1a066a7ac69d4..c38fb55519de5eac6ebe211f7fa22a8ed8969c98 100644 --- a/assets/composables-C5AKp2DU.js +++ b/assets/composables-Tp0cITw9.js @@ -1,4 +1,4 @@ -import{b as merge}from"./merge-D5ueGMzg.js";import{c1 as usePermission,c5 as useWebWorker,c8 as tryOnMounted,eP as onUnmounted,eY as watch,f1 as ref,f4 as toRef,f6 as unref,fb as __commonJSMin,fc as __esmMin,fd as __export,ff as __toCommonJS,fh as __toESM}from"./index-DEhol03r.js";var require_asset_path=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let isWeb=typeof window<`u`&&window.document!==void 0,currentScript=isWeb?window.document.currentScript:null,basePath=`/`;currentScript&&(basePath=currentScript.src.replace(/#.*$/,``).replace(/\?.*$/,``).replace(/\/[^\/]+$/,`/`)),exports.baseAssetPath=basePath})),require_default_model_fetcher=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let defaultModelFetcher=path=>fetch(path).then(model=>model.arrayBuffer());exports.defaultModelFetcher=defaultModelFetcher})),require_logging=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.LOG_PREFIX=`[VAD]`;let levels=[`error`,`debug`,`warn`];function getLog(level){return(...args)=>{console[level](exports.LOG_PREFIX,...args)}}let _log=levels.reduce((acc,level)=>(acc[level]=getLog(level),acc),{});exports.log=_log})),require_messages=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});var Message;(function(Message$1){Message$1.AudioFrame=`AUDIO_FRAME`,Message$1.SpeechStart=`SPEECH_START`,Message$1.VADMisfire=`VAD_MISFIRE`,Message$1.SpeechEnd=`SPEECH_END`,Message$1.SpeechStop=`SPEECH_STOP`,Message$1.SpeechRealStart=`SPEECH_REAL_START`,Message$1.FrameProcessed=`FRAME_PROCESSED`})(Message||(exports.Message=Message={}))})),require_frame_processor=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let logging_1$4=require_logging(),messages_1$3=require_messages(),RECOMMENDED_FRAME_SAMPLES=[512,1024,1536];exports.defaultLegacyFrameProcessorOptions={positiveSpeechThreshold:.5,negativeSpeechThreshold:.35,preSpeechPadFrames:1,redemptionFrames:8,frameSamples:1536,minSpeechFrames:3,submitUserSpeechOnPause:!1},exports.defaultV5FrameProcessorOptions={positiveSpeechThreshold:.5,negativeSpeechThreshold:.35,preSpeechPadFrames:3,redemptionFrames:24,frameSamples:512,minSpeechFrames:9,submitUserSpeechOnPause:!1};function validateOptions(options){RECOMMENDED_FRAME_SAMPLES.includes(options.frameSamples)||logging_1$4.log.warn(`You are using an unusual frame size`),(options.positiveSpeechThreshold<0||options.positiveSpeechThreshold>1)&&logging_1$4.log.error(`positiveSpeechThreshold should be a number between 0 and 1`),(options.negativeSpeechThreshold<0||options.negativeSpeechThreshold>options.positiveSpeechThreshold)&&logging_1$4.log.error(`negativeSpeechThreshold should be between 0 and positiveSpeechThreshold`),options.preSpeechPadFrames<0&&logging_1$4.log.error(`preSpeechPadFrames should be positive`),options.redemptionFrames<0&&logging_1$4.log.error(`redemptionFrames should be positive`)}exports.validateOptions=validateOptions;let concatArrays=arrays=>{let sizes=arrays.reduce((out,next)=>(out.push(out.at(-1)+next.length),out),[0]),outArray=new Float32Array(sizes.at(-1));return arrays.forEach((arr,index)=>{let place=sizes[index];outArray.set(arr,place)}),outArray};var FrameProcessor=class{constructor(modelProcessFunc,modelResetFunc,options){this.modelProcessFunc=modelProcessFunc,this.modelResetFunc=modelResetFunc,this.options=options,this.speaking=!1,this.redemptionCounter=0,this.speechFrameCount=0,this.active=!1,this.speechRealStartFired=!1,this.reset=()=>{this.speaking=!1,this.speechRealStartFired=!1,this.audioBuffer=[],this.modelResetFunc(),this.redemptionCounter=0,this.speechFrameCount=0},this.pause=handleEvent=>{this.active=!1,this.options.submitUserSpeechOnPause?this.endSegment(handleEvent):this.reset()},this.resume=()=>{this.active=!0},this.endSegment=handleEvent=>{let audioBuffer=this.audioBuffer;this.audioBuffer=[];let speaking=this.speaking;if(this.reset(),speaking){let speechFrameCount=audioBuffer.reduce((acc,item)=>item.isSpeech?acc+1:acc,0);if(speechFrameCount>=this.options.minSpeechFrames){let audio=concatArrays(audioBuffer.map(item=>item.frame));handleEvent({msg:messages_1$3.Message.SpeechEnd,audio})}else handleEvent({msg:messages_1$3.Message.VADMisfire})}return{}},this.process=async(frame,handleEvent)=>{if(!this.active)return;let probs=await this.modelProcessFunc(frame),isSpeech=probs.isSpeech>=this.options.positiveSpeechThreshold;if(handleEvent({probs,msg:messages_1$3.Message.FrameProcessed,frame}),this.audioBuffer.push({frame,isSpeech}),isSpeech&&(this.speechFrameCount++,this.redemptionCounter=0),isSpeech&&!this.speaking&&(this.speaking=!0,handleEvent({msg:messages_1$3.Message.SpeechStart})),this.speaking&&this.speechFrameCount===this.options.minSpeechFrames&&!this.speechRealStartFired&&(this.speechRealStartFired=!0,handleEvent({msg:messages_1$3.Message.SpeechRealStart})),probs.isSpeech=this.options.redemptionFrames){this.redemptionCounter=0,this.speechFrameCount=0,this.speaking=!1,this.speechRealStartFired=!1;let audioBuffer=this.audioBuffer;this.audioBuffer=[];let speechFrameCount=audioBuffer.reduce((acc,item)=>item.isSpeech?acc+1:acc,0);if(speechFrameCount>=this.options.minSpeechFrames){let audio=concatArrays(audioBuffer.map(item=>item.frame));handleEvent({msg:messages_1$3.Message.SpeechEnd,audio})}else handleEvent({msg:messages_1$3.Message.VADMisfire})}if(!this.speaking){for(;this.audioBuffer.length>this.options.preSpeechPadFrames;)this.audioBuffer.shift();this.speechFrameCount=0}},this.audioBuffer=[],this.reset()}};exports.FrameProcessor=FrameProcessor})),backends,backendsSortedByPriority,registerBackend,resolveBackend,init_backend_impl=__esmMin((()=>{backends={},backendsSortedByPriority=[],registerBackend=(name$1,backend,priority)=>{if(backend&&typeof backend.init==`function`&&typeof backend.createSessionHandler==`function`){let currentBackend=backends[name$1];if(currentBackend===void 0)backends[name$1]={backend,priority};else if(currentBackend.priority>priority)return;else if(currentBackend.priority===priority&¤tBackend.backend!==backend)throw Error(`cannot register backend "${name$1}" using priority ${priority}`);if(priority>=0){let i=backendsSortedByPriority.indexOf(name$1);i!==-1&&backendsSortedByPriority.splice(i,1);for(let i$1=0;i$1{let backendNames=backendHints.length===0?backendsSortedByPriority:backendHints,errors=[];for(let backendName of backendNames){let backendInfo=backends[backendName];if(backendInfo){if(backendInfo.initialized)return backendInfo.backend;if(backendInfo.aborted)continue;let isInitializing=!!backendInfo.initPromise;try{return isInitializing||(backendInfo.initPromise=backendInfo.backend.init()),await backendInfo.initPromise,backendInfo.initialized=!0,backendInfo.backend}catch(e){isInitializing||errors.push({name:backendName,err:e}),backendInfo.aborted=!0}finally{delete backendInfo.initPromise}}}throw Error(`no available backend found. ERR: ${errors.map(e=>`[${e.name}] ${e.err}`).join(`, `)}`)}})),init_backend=__esmMin((()=>{init_backend_impl()})),EnvImpl,init_env_impl=__esmMin((()=>{EnvImpl=class{constructor(){this.wasm={},this.webgl={},this.logLevelInternal=`warning`}set logLevel(value){if(value!==void 0){if(typeof value!=`string`||[`verbose`,`info`,`warning`,`error`,`fatal`].indexOf(value)===-1)throw Error(`Unsupported logging level: ${value}`);this.logLevelInternal=value}}get logLevel(){return this.logLevelInternal}}})),env,init_env=__esmMin((()=>{init_env_impl(),env=new EnvImpl})),isBigInt64ArrayAvailable,isBigUint64ArrayAvailable,NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP,NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP,calculateSize,Tensor$1,init_tensor_impl=__esmMin((()=>{isBigInt64ArrayAvailable=typeof BigInt64Array<`u`&&typeof BigInt64Array.from==`function`,isBigUint64ArrayAvailable=typeof BigUint64Array<`u`&&typeof BigUint64Array.from==`function`,NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP=new Map([[`float32`,Float32Array],[`uint8`,Uint8Array],[`int8`,Int8Array],[`uint16`,Uint16Array],[`int16`,Int16Array],[`int32`,Int32Array],[`bool`,Uint8Array],[`float64`,Float64Array],[`uint32`,Uint32Array]]),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP=new Map([[Float32Array,`float32`],[Uint8Array,`uint8`],[Int8Array,`int8`],[Uint16Array,`uint16`],[Int16Array,`int16`],[Int32Array,`int32`],[Float64Array,`float64`],[Uint32Array,`uint32`]]),isBigInt64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set(`int64`,BigInt64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigInt64Array,`int64`)),isBigUint64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set(`uint64`,BigUint64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigUint64Array,`uint64`)),calculateSize=dims=>{let size=1;for(let i=0;i{let canvas=document.createElement(`canvas`),context=canvas.getContext(`2d`);if(!image||!context)return reject();let newImage=new Image;newImage.crossOrigin=`Anonymous`,newImage.src=image,newImage.onload=()=>{canvas.width=newImage.width,canvas.height=newImage.height,context.drawImage(newImage,0,0,canvas.width,canvas.height);let img=context.getImageData(0,0,canvas.width,canvas.height);if(options!==void 0){if(options.height!==void 0&&options.height!==canvas.height)throw Error(`Image input config height doesn't match ImageBitmap height`);if(tensorConfig.height=canvas.height,options.width!==void 0&&options.width!==canvas.width)throw Error(`Image input config width doesn't match ImageBitmap width`);tensorConfig.width=canvas.width}else tensorConfig.height=canvas.height,tensorConfig.width=canvas.width;resolve(Tensor$1.bufferToTensor(img.data,tensorConfig))}});else throw Error(`Input data provided is not supported - aborted tensor creation`);if(data!==void 0)return Tensor$1.bufferToTensor(data,tensorConfig);throw Error(`Input data provided is not supported - aborted tensor creation`)}toImageData(options){var _a$2,_b;let pixels2DContext=document.createElement(`canvas`).getContext(`2d`),image;if(pixels2DContext!=null){let width=this.dims[3],height=this.dims[2],channels=this.dims[1],inputformat=options===void 0||options.format===void 0?`RGB`:options.format,normMean=options===void 0||(_a$2=options.norm)?.mean===void 0?255:options.norm.mean,normBias=options===void 0||(_b=options.norm)?.bias===void 0?0:options.norm.bias,offset=height*width;if(options!==void 0){if(options.height!==void 0&&options.height!==height)throw Error(`Image output config height doesn't match tensor height`);if(options.width!==void 0&&options.width!==width)throw Error(`Image output config width doesn't match tensor width`);if(options.format!==void 0&&channels===4&&options.format!==`RGBA`||channels===3&&options.format!==`RGB`&&options.format!==`BGR`)throw Error(`Tensor format doesn't match input tensor dims`)}let step=4,rImagePointer=0,gImagePointer=1,bImagePointer=2,aImagePointer=3,rTensorPointer=0,gTensorPointer=offset,bTensorPointer=offset*2,aTensorPointer=-1;inputformat===`RGBA`?(rTensorPointer=0,gTensorPointer=offset,bTensorPointer=offset*2,aTensorPointer=offset*3):inputformat===`RGB`?(rTensorPointer=0,gTensorPointer=offset,bTensorPointer=offset*2):inputformat===`RBG`&&(rTensorPointer=0,bTensorPointer=offset,gTensorPointer=offset*2),image=pixels2DContext.createImageData(width,height);for(let i=0;i{init_tensor_impl(),Tensor=Tensor$1})),InferenceSession,init_inference_session_impl=__esmMin((()=>{init_backend_impl(),init_tensor(),InferenceSession=class InferenceSession{constructor(handler){this.handler=handler}async run(feeds,arg1,arg2){let fetches={},options={};if(typeof feeds!=`object`||!feeds||feeds instanceof Tensor||Array.isArray(feeds))throw TypeError(`'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.`);let isFetchesEmpty=!0;if(typeof arg1==`object`){if(arg1===null)throw TypeError(`Unexpected argument[1]: cannot be null.`);if(arg1 instanceof Tensor)throw TypeError(`'fetches' cannot be a Tensor`);if(Array.isArray(arg1)){if(arg1.length===0)throw TypeError(`'fetches' cannot be an empty array.`);isFetchesEmpty=!1;for(let name$1 of arg1){if(typeof name$1!=`string`)throw TypeError(`'fetches' must be a string array or an object.`);if(this.outputNames.indexOf(name$1)===-1)throw RangeError(`'fetches' contains invalid output name: ${name$1}.`);fetches[name$1]=null}if(typeof arg2==`object`&&arg2)options=arg2;else if(arg2!==void 0)throw TypeError(`'options' must be an object.`)}else{let isFetches=!1,arg1Keys=Object.getOwnPropertyNames(arg1);for(let name$1 of this.outputNames)if(arg1Keys.indexOf(name$1)!==-1){let v=arg1[name$1];(v===null||v instanceof Tensor)&&(isFetches=!0,isFetchesEmpty=!1,fetches[name$1]=v)}if(isFetches){if(typeof arg2==`object`&&arg2)options=arg2;else if(arg2!==void 0)throw TypeError(`'options' must be an object.`)}else options=arg1}}else if(arg1!==void 0)throw TypeError(`Unexpected argument[1]: must be 'fetches' or 'options'.`);for(let name$1 of this.inputNames)if(feeds[name$1]===void 0)throw Error(`input '${name$1}' is missing in 'feeds'.`);if(isFetchesEmpty)for(let name$1 of this.outputNames)fetches[name$1]=null;let results=await this.handler.run(feeds,fetches,options),returnValue={};for(let key in results)Object.hasOwnProperty.call(results,key)&&(returnValue[key]=new Tensor(results[key].type,results[key].data,results[key].dims));return returnValue}static async create(arg0,arg1,arg2,arg3){let filePathOrUint8Array,options={};if(typeof arg0==`string`){if(filePathOrUint8Array=arg0,typeof arg1==`object`&&arg1)options=arg1;else if(arg1!==void 0)throw TypeError(`'options' must be an object.`)}else if(arg0 instanceof Uint8Array){if(filePathOrUint8Array=arg0,typeof arg1==`object`&&arg1)options=arg1;else if(arg1!==void 0)throw TypeError(`'options' must be an object.`)}else if(arg0 instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&arg0 instanceof SharedArrayBuffer){let buffer=arg0,byteOffset=0,byteLength=arg0.byteLength;if(typeof arg1==`object`&&arg1)options=arg1;else if(typeof arg1==`number`){if(byteOffset=arg1,!Number.isSafeInteger(byteOffset))throw RangeError(`'byteOffset' must be an integer.`);if(byteOffset<0||byteOffset>=buffer.byteLength)throw RangeError(`'byteOffset' is out of range [0, ${buffer.byteLength}).`);if(byteLength=arg0.byteLength-byteOffset,typeof arg2==`number`){if(byteLength=arg2,!Number.isSafeInteger(byteLength))throw RangeError(`'byteLength' must be an integer.`);if(byteLength<=0||byteOffset+byteLength>buffer.byteLength)throw RangeError(`'byteLength' is out of range (0, ${buffer.byteLength-byteOffset}].`);if(typeof arg3==`object`&&arg3)options=arg3;else if(arg3!==void 0)throw TypeError(`'options' must be an object.`)}else if(arg2!==void 0)throw TypeError(`'byteLength' must be a number.`)}else if(arg1!==void 0)throw TypeError(`'options' must be an object.`);filePathOrUint8Array=new Uint8Array(buffer,byteOffset,byteLength)}else throw TypeError(`Unexpected argument[0]: must be 'path' or 'buffer'.`);let eps=options.executionProviders||[],backendHints=eps.map(i=>typeof i==`string`?i:i.name),backend=await resolveBackend(backendHints),handler=await backend.createSessionHandler(filePathOrUint8Array,options);return new InferenceSession(handler)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}}})),InferenceSession$1,init_inference_session=__esmMin((()=>{init_inference_session_impl(),InferenceSession$1=InferenceSession})),init_onnx_value=__esmMin((()=>{})),lib_exports={};__export(lib_exports,{InferenceSession:()=>InferenceSession$1,Tensor:()=>Tensor,env:()=>env,registerBackend:()=>registerBackend});var init_lib=__esmMin((()=>{init_backend(),init_env(),init_inference_session(),init_tensor(),init_onnx_value()})),require_ort_web_min=__commonJSMin(((exports,module)=>{ +import{b as merge}from"./merge-D5ueGMzg.js";import{c2 as usePermission,c6 as useWebWorker,c9 as tryOnMounted,eQ as onUnmounted,eZ as watch,f2 as ref,f5 as toRef,f7 as unref,fc as __commonJSMin,fd as __esmMin,fe as __export,fg as __toCommonJS,fi as __toESM}from"./index-D3Bcbz9S.js";var require_asset_path=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let isWeb=typeof window<`u`&&window.document!==void 0,currentScript=isWeb?window.document.currentScript:null,basePath=`/`;currentScript&&(basePath=currentScript.src.replace(/#.*$/,``).replace(/\?.*$/,``).replace(/\/[^\/]+$/,`/`)),exports.baseAssetPath=basePath})),require_default_model_fetcher=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let defaultModelFetcher=path=>fetch(path).then(model=>model.arrayBuffer());exports.defaultModelFetcher=defaultModelFetcher})),require_logging=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.LOG_PREFIX=`[VAD]`;let levels=[`error`,`debug`,`warn`];function getLog(level){return(...args)=>{console[level](exports.LOG_PREFIX,...args)}}let _log=levels.reduce((acc,level)=>(acc[level]=getLog(level),acc),{});exports.log=_log})),require_messages=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});var Message;(function(Message$1){Message$1.AudioFrame=`AUDIO_FRAME`,Message$1.SpeechStart=`SPEECH_START`,Message$1.VADMisfire=`VAD_MISFIRE`,Message$1.SpeechEnd=`SPEECH_END`,Message$1.SpeechStop=`SPEECH_STOP`,Message$1.SpeechRealStart=`SPEECH_REAL_START`,Message$1.FrameProcessed=`FRAME_PROCESSED`})(Message||(exports.Message=Message={}))})),require_frame_processor=__commonJSMin((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let logging_1$4=require_logging(),messages_1$3=require_messages(),RECOMMENDED_FRAME_SAMPLES=[512,1024,1536];exports.defaultLegacyFrameProcessorOptions={positiveSpeechThreshold:.5,negativeSpeechThreshold:.35,preSpeechPadFrames:1,redemptionFrames:8,frameSamples:1536,minSpeechFrames:3,submitUserSpeechOnPause:!1},exports.defaultV5FrameProcessorOptions={positiveSpeechThreshold:.5,negativeSpeechThreshold:.35,preSpeechPadFrames:3,redemptionFrames:24,frameSamples:512,minSpeechFrames:9,submitUserSpeechOnPause:!1};function validateOptions(options){RECOMMENDED_FRAME_SAMPLES.includes(options.frameSamples)||logging_1$4.log.warn(`You are using an unusual frame size`),(options.positiveSpeechThreshold<0||options.positiveSpeechThreshold>1)&&logging_1$4.log.error(`positiveSpeechThreshold should be a number between 0 and 1`),(options.negativeSpeechThreshold<0||options.negativeSpeechThreshold>options.positiveSpeechThreshold)&&logging_1$4.log.error(`negativeSpeechThreshold should be between 0 and positiveSpeechThreshold`),options.preSpeechPadFrames<0&&logging_1$4.log.error(`preSpeechPadFrames should be positive`),options.redemptionFrames<0&&logging_1$4.log.error(`redemptionFrames should be positive`)}exports.validateOptions=validateOptions;let concatArrays=arrays=>{let sizes=arrays.reduce((out,next)=>(out.push(out.at(-1)+next.length),out),[0]),outArray=new Float32Array(sizes.at(-1));return arrays.forEach((arr,index)=>{let place=sizes[index];outArray.set(arr,place)}),outArray};var FrameProcessor=class{constructor(modelProcessFunc,modelResetFunc,options){this.modelProcessFunc=modelProcessFunc,this.modelResetFunc=modelResetFunc,this.options=options,this.speaking=!1,this.redemptionCounter=0,this.speechFrameCount=0,this.active=!1,this.speechRealStartFired=!1,this.reset=()=>{this.speaking=!1,this.speechRealStartFired=!1,this.audioBuffer=[],this.modelResetFunc(),this.redemptionCounter=0,this.speechFrameCount=0},this.pause=handleEvent=>{this.active=!1,this.options.submitUserSpeechOnPause?this.endSegment(handleEvent):this.reset()},this.resume=()=>{this.active=!0},this.endSegment=handleEvent=>{let audioBuffer=this.audioBuffer;this.audioBuffer=[];let speaking=this.speaking;if(this.reset(),speaking){let speechFrameCount=audioBuffer.reduce((acc,item)=>item.isSpeech?acc+1:acc,0);if(speechFrameCount>=this.options.minSpeechFrames){let audio=concatArrays(audioBuffer.map(item=>item.frame));handleEvent({msg:messages_1$3.Message.SpeechEnd,audio})}else handleEvent({msg:messages_1$3.Message.VADMisfire})}return{}},this.process=async(frame,handleEvent)=>{if(!this.active)return;let probs=await this.modelProcessFunc(frame),isSpeech=probs.isSpeech>=this.options.positiveSpeechThreshold;if(handleEvent({probs,msg:messages_1$3.Message.FrameProcessed,frame}),this.audioBuffer.push({frame,isSpeech}),isSpeech&&(this.speechFrameCount++,this.redemptionCounter=0),isSpeech&&!this.speaking&&(this.speaking=!0,handleEvent({msg:messages_1$3.Message.SpeechStart})),this.speaking&&this.speechFrameCount===this.options.minSpeechFrames&&!this.speechRealStartFired&&(this.speechRealStartFired=!0,handleEvent({msg:messages_1$3.Message.SpeechRealStart})),probs.isSpeech=this.options.redemptionFrames){this.redemptionCounter=0,this.speechFrameCount=0,this.speaking=!1,this.speechRealStartFired=!1;let audioBuffer=this.audioBuffer;this.audioBuffer=[];let speechFrameCount=audioBuffer.reduce((acc,item)=>item.isSpeech?acc+1:acc,0);if(speechFrameCount>=this.options.minSpeechFrames){let audio=concatArrays(audioBuffer.map(item=>item.frame));handleEvent({msg:messages_1$3.Message.SpeechEnd,audio})}else handleEvent({msg:messages_1$3.Message.VADMisfire})}if(!this.speaking){for(;this.audioBuffer.length>this.options.preSpeechPadFrames;)this.audioBuffer.shift();this.speechFrameCount=0}},this.audioBuffer=[],this.reset()}};exports.FrameProcessor=FrameProcessor})),backends,backendsSortedByPriority,registerBackend,resolveBackend,init_backend_impl=__esmMin((()=>{backends={},backendsSortedByPriority=[],registerBackend=(name$1,backend,priority)=>{if(backend&&typeof backend.init==`function`&&typeof backend.createSessionHandler==`function`){let currentBackend=backends[name$1];if(currentBackend===void 0)backends[name$1]={backend,priority};else if(currentBackend.priority>priority)return;else if(currentBackend.priority===priority&¤tBackend.backend!==backend)throw Error(`cannot register backend "${name$1}" using priority ${priority}`);if(priority>=0){let i=backendsSortedByPriority.indexOf(name$1);i!==-1&&backendsSortedByPriority.splice(i,1);for(let i$1=0;i$1{let backendNames=backendHints.length===0?backendsSortedByPriority:backendHints,errors=[];for(let backendName of backendNames){let backendInfo=backends[backendName];if(backendInfo){if(backendInfo.initialized)return backendInfo.backend;if(backendInfo.aborted)continue;let isInitializing=!!backendInfo.initPromise;try{return isInitializing||(backendInfo.initPromise=backendInfo.backend.init()),await backendInfo.initPromise,backendInfo.initialized=!0,backendInfo.backend}catch(e){isInitializing||errors.push({name:backendName,err:e}),backendInfo.aborted=!0}finally{delete backendInfo.initPromise}}}throw Error(`no available backend found. ERR: ${errors.map(e=>`[${e.name}] ${e.err}`).join(`, `)}`)}})),init_backend=__esmMin((()=>{init_backend_impl()})),EnvImpl,init_env_impl=__esmMin((()=>{EnvImpl=class{constructor(){this.wasm={},this.webgl={},this.logLevelInternal=`warning`}set logLevel(value){if(value!==void 0){if(typeof value!=`string`||[`verbose`,`info`,`warning`,`error`,`fatal`].indexOf(value)===-1)throw Error(`Unsupported logging level: ${value}`);this.logLevelInternal=value}}get logLevel(){return this.logLevelInternal}}})),env,init_env=__esmMin((()=>{init_env_impl(),env=new EnvImpl})),isBigInt64ArrayAvailable,isBigUint64ArrayAvailable,NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP,NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP,calculateSize,Tensor$1,init_tensor_impl=__esmMin((()=>{isBigInt64ArrayAvailable=typeof BigInt64Array<`u`&&typeof BigInt64Array.from==`function`,isBigUint64ArrayAvailable=typeof BigUint64Array<`u`&&typeof BigUint64Array.from==`function`,NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP=new Map([[`float32`,Float32Array],[`uint8`,Uint8Array],[`int8`,Int8Array],[`uint16`,Uint16Array],[`int16`,Int16Array],[`int32`,Int32Array],[`bool`,Uint8Array],[`float64`,Float64Array],[`uint32`,Uint32Array]]),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP=new Map([[Float32Array,`float32`],[Uint8Array,`uint8`],[Int8Array,`int8`],[Uint16Array,`uint16`],[Int16Array,`int16`],[Int32Array,`int32`],[Float64Array,`float64`],[Uint32Array,`uint32`]]),isBigInt64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set(`int64`,BigInt64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigInt64Array,`int64`)),isBigUint64ArrayAvailable&&(NUMERIC_TENSOR_TYPE_TO_TYPEDARRAY_MAP.set(`uint64`,BigUint64Array),NUMERIC_TENSOR_TYPEDARRAY_TO_TYPE_MAP.set(BigUint64Array,`uint64`)),calculateSize=dims=>{let size=1;for(let i=0;i{let canvas=document.createElement(`canvas`),context=canvas.getContext(`2d`);if(!image||!context)return reject();let newImage=new Image;newImage.crossOrigin=`Anonymous`,newImage.src=image,newImage.onload=()=>{canvas.width=newImage.width,canvas.height=newImage.height,context.drawImage(newImage,0,0,canvas.width,canvas.height);let img=context.getImageData(0,0,canvas.width,canvas.height);if(options!==void 0){if(options.height!==void 0&&options.height!==canvas.height)throw Error(`Image input config height doesn't match ImageBitmap height`);if(tensorConfig.height=canvas.height,options.width!==void 0&&options.width!==canvas.width)throw Error(`Image input config width doesn't match ImageBitmap width`);tensorConfig.width=canvas.width}else tensorConfig.height=canvas.height,tensorConfig.width=canvas.width;resolve(Tensor$1.bufferToTensor(img.data,tensorConfig))}});else throw Error(`Input data provided is not supported - aborted tensor creation`);if(data!==void 0)return Tensor$1.bufferToTensor(data,tensorConfig);throw Error(`Input data provided is not supported - aborted tensor creation`)}toImageData(options){var _a$2,_b;let pixels2DContext=document.createElement(`canvas`).getContext(`2d`),image;if(pixels2DContext!=null){let width=this.dims[3],height=this.dims[2],channels=this.dims[1],inputformat=options===void 0||options.format===void 0?`RGB`:options.format,normMean=options===void 0||(_a$2=options.norm)?.mean===void 0?255:options.norm.mean,normBias=options===void 0||(_b=options.norm)?.bias===void 0?0:options.norm.bias,offset=height*width;if(options!==void 0){if(options.height!==void 0&&options.height!==height)throw Error(`Image output config height doesn't match tensor height`);if(options.width!==void 0&&options.width!==width)throw Error(`Image output config width doesn't match tensor width`);if(options.format!==void 0&&channels===4&&options.format!==`RGBA`||channels===3&&options.format!==`RGB`&&options.format!==`BGR`)throw Error(`Tensor format doesn't match input tensor dims`)}let step=4,rImagePointer=0,gImagePointer=1,bImagePointer=2,aImagePointer=3,rTensorPointer=0,gTensorPointer=offset,bTensorPointer=offset*2,aTensorPointer=-1;inputformat===`RGBA`?(rTensorPointer=0,gTensorPointer=offset,bTensorPointer=offset*2,aTensorPointer=offset*3):inputformat===`RGB`?(rTensorPointer=0,gTensorPointer=offset,bTensorPointer=offset*2):inputformat===`RBG`&&(rTensorPointer=0,bTensorPointer=offset,gTensorPointer=offset*2),image=pixels2DContext.createImageData(width,height);for(let i=0;i{init_tensor_impl(),Tensor=Tensor$1})),InferenceSession,init_inference_session_impl=__esmMin((()=>{init_backend_impl(),init_tensor(),InferenceSession=class InferenceSession{constructor(handler){this.handler=handler}async run(feeds,arg1,arg2){let fetches={},options={};if(typeof feeds!=`object`||!feeds||feeds instanceof Tensor||Array.isArray(feeds))throw TypeError(`'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.`);let isFetchesEmpty=!0;if(typeof arg1==`object`){if(arg1===null)throw TypeError(`Unexpected argument[1]: cannot be null.`);if(arg1 instanceof Tensor)throw TypeError(`'fetches' cannot be a Tensor`);if(Array.isArray(arg1)){if(arg1.length===0)throw TypeError(`'fetches' cannot be an empty array.`);isFetchesEmpty=!1;for(let name$1 of arg1){if(typeof name$1!=`string`)throw TypeError(`'fetches' must be a string array or an object.`);if(this.outputNames.indexOf(name$1)===-1)throw RangeError(`'fetches' contains invalid output name: ${name$1}.`);fetches[name$1]=null}if(typeof arg2==`object`&&arg2)options=arg2;else if(arg2!==void 0)throw TypeError(`'options' must be an object.`)}else{let isFetches=!1,arg1Keys=Object.getOwnPropertyNames(arg1);for(let name$1 of this.outputNames)if(arg1Keys.indexOf(name$1)!==-1){let v=arg1[name$1];(v===null||v instanceof Tensor)&&(isFetches=!0,isFetchesEmpty=!1,fetches[name$1]=v)}if(isFetches){if(typeof arg2==`object`&&arg2)options=arg2;else if(arg2!==void 0)throw TypeError(`'options' must be an object.`)}else options=arg1}}else if(arg1!==void 0)throw TypeError(`Unexpected argument[1]: must be 'fetches' or 'options'.`);for(let name$1 of this.inputNames)if(feeds[name$1]===void 0)throw Error(`input '${name$1}' is missing in 'feeds'.`);if(isFetchesEmpty)for(let name$1 of this.outputNames)fetches[name$1]=null;let results=await this.handler.run(feeds,fetches,options),returnValue={};for(let key in results)Object.hasOwnProperty.call(results,key)&&(returnValue[key]=new Tensor(results[key].type,results[key].data,results[key].dims));return returnValue}static async create(arg0,arg1,arg2,arg3){let filePathOrUint8Array,options={};if(typeof arg0==`string`){if(filePathOrUint8Array=arg0,typeof arg1==`object`&&arg1)options=arg1;else if(arg1!==void 0)throw TypeError(`'options' must be an object.`)}else if(arg0 instanceof Uint8Array){if(filePathOrUint8Array=arg0,typeof arg1==`object`&&arg1)options=arg1;else if(arg1!==void 0)throw TypeError(`'options' must be an object.`)}else if(arg0 instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&arg0 instanceof SharedArrayBuffer){let buffer=arg0,byteOffset=0,byteLength=arg0.byteLength;if(typeof arg1==`object`&&arg1)options=arg1;else if(typeof arg1==`number`){if(byteOffset=arg1,!Number.isSafeInteger(byteOffset))throw RangeError(`'byteOffset' must be an integer.`);if(byteOffset<0||byteOffset>=buffer.byteLength)throw RangeError(`'byteOffset' is out of range [0, ${buffer.byteLength}).`);if(byteLength=arg0.byteLength-byteOffset,typeof arg2==`number`){if(byteLength=arg2,!Number.isSafeInteger(byteLength))throw RangeError(`'byteLength' must be an integer.`);if(byteLength<=0||byteOffset+byteLength>buffer.byteLength)throw RangeError(`'byteLength' is out of range (0, ${buffer.byteLength-byteOffset}].`);if(typeof arg3==`object`&&arg3)options=arg3;else if(arg3!==void 0)throw TypeError(`'options' must be an object.`)}else if(arg2!==void 0)throw TypeError(`'byteLength' must be a number.`)}else if(arg1!==void 0)throw TypeError(`'options' must be an object.`);filePathOrUint8Array=new Uint8Array(buffer,byteOffset,byteLength)}else throw TypeError(`Unexpected argument[0]: must be 'path' or 'buffer'.`);let eps=options.executionProviders||[],backendHints=eps.map(i=>typeof i==`string`?i:i.name),backend=await resolveBackend(backendHints),handler=await backend.createSessionHandler(filePathOrUint8Array,options);return new InferenceSession(handler)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}}})),InferenceSession$1,init_inference_session=__esmMin((()=>{init_inference_session_impl(),InferenceSession$1=InferenceSession})),init_onnx_value=__esmMin((()=>{})),lib_exports={};__export(lib_exports,{InferenceSession:()=>InferenceSession$1,Tensor:()=>Tensor,env:()=>env,registerBackend:()=>registerBackend});var init_lib=__esmMin((()=>{init_backend(),init_env(),init_inference_session(),init_tensor(),init_onnx_value()})),require_ort_web_min=__commonJSMin(((exports,module)=>{ /*! * ONNX Runtime Web v1.14.0 * Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/assets/consciousness-C62d2AXR.js b/assets/consciousness-mFeV5_YA.js similarity index 66% rename from assets/consciousness-C62d2AXR.js rename to assets/consciousness-mFeV5_YA.js index 3fe92984d6d13a29eeed16adc215791f32ea0354..e96be8ba30b72564781f3d514fcfb6ea2ba368cf 100644 --- a/assets/consciousness-C62d2AXR.js +++ b/assets/consciousness-mFeV5_YA.js @@ -1 +1 @@ -import{a3 as e,a4 as t,ae as n,an as ee,aq as te,ar as r,as as ne,bJ as re,bP as i,e$ as a,eA as o,eB as s,eC as c,eE as l,eF as ie,eG as ae,eQ as u,eS as d,eV as f,eY as p,e_ as m,er as oe,ev as h,ez as g,f0 as _,f6 as v,fa as y}from"./index-DEhol03r.js";import{b}from"./route-block-Dc_s4AGN.js";const x={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},S={flex:`~ col gap-4`},C={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-500`},w={text:`neutral-400 dark:neutral-400`},T={"max-w-full":``},E={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},D={key:1},O={key:0},k={flex:`~ col gap-4`},A={class:`text-lg md:text-2xl`},j={text:`neutral-400 dark:neutral-400`},M={key:0,class:`flex items-center justify-center py-4`},N={key:1},P={flex:`~ col gap-4`},F={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},I={text:`neutral-400 dark:neutral-500`},se={class:`flex items-center gap-3 border border-primary-200 rounded-lg bg-primary-50 p-4 dark:border-primary-800 dark:bg-primary-900/20`},L={class:`flex flex-col`},R={class:`font-medium`},z={class:`text-sm text-primary-600 dark:text-primary-400`},B={class:`mt-2`},V={class:`mb-1 block text-sm font-medium`},H=[`placeholder`],U={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var W=ae({__name:`consciousness`,setup(ae){let b=t(),W=e(),{configuredChatProvidersMetadata:G}=i(b),{activeProvider:K,activeModel:q,customModelName:ce,modelSearchQuery:J,supportsModelListing:Y,providerModels:X,isLoadingActiveProviderModels:Z,activeProviderModelError:Q}=i(W),{t:$}=n();p(K,async e=>{await W.loadModelsForProvider(e)},{immediate:!0});function le(e){ce.value=e}return(e,t)=>{let n=f(`motion`);return u(),c(h,null,[g(`div`,x,[g(`div`,null,[g(`div`,S,[g(`div`,null,[g(`h2`,C,y(v($)(`settings.pages.providers.title`)),1),g(`div`,w,[g(`span`,null,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.description`)),1)])]),g(`div`,T,[v(G).length>0?(u(),c(`fieldset`,E,[(u(!0),c(h,null,d(v(G),e=>(u(),o(v(te),{id:e.id,key:e.id,modelValue:v(K),"onUpdate:modelValue":t[0]||=e=>_(K)?K.value=e:null,name:`provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(u(),c(`div`,D,[ie(v(re),{class:`flex items-center gap-3 rounded-lg p-4`,border:`2 dashed neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-800`,transition:`colors duration-200 ease-in-out`,to:`/settings/providers`},{default:m(()=>[...t[4]||=[g(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),g(`div`,{class:`flex flex-col`},[g(`span`,{class:`font-medium`},`No Providers Configured`),g(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your LLM providers`)],-1),g(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]]),_:1})]))])])]),v(K)&&v(Y)?(u(),c(`div`,O,[g(`div`,k,[g(`div`,null,[g(`h2`,A,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),g(`div`,j,[g(`span`,null,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),v(Z)?(u(),c(`div`,M,[t[5]||=g(`div`,{class:`mr-2 animate-spin`},[g(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),g(`span`,null,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):v(Q)?(u(),o(v(ee),{key:1,title:v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`),error:v(Q)},null,8,[`title`,`error`])):v(X).length===0&&!v(Z)?(u(),o(v(ne),{key:2,type:`warning`},{title:m(()=>[l(y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1)]),content:m(()=>[l(y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)]),_:1})):v(X).length>0?(u(),o(v(r),{key:3,modelValue:v(q),"onUpdate:modelValue":t[1]||=e=>_(q)?q.value=e:null,"search-query":v(J),"onUpdate:searchQuery":t[2]||=e=>_(J)?J.value=e:null,items:v(X).sort((e,t)=>e.id===v(q)?-1:t.id===v(q)?1:0),searchable:!0,"search-placeholder":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:v(J)}),"search-results-text":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":le},null,8,[`modelValue`,`search-query`,`items`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`])):s(``,!0)])])):v(K)&&!v(Y)?(u(),c(`div`,N,[g(`div`,P,[g(`div`,null,[g(`h2`,F,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),g(`div`,I,[g(`span`,null,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),g(`div`,se,[t[6]||=g(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-primary-500 dark:text-primary-400`},null,-1),g(`div`,L,[g(`span`,R,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported`)),1),g(`span`,z,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported_description`)),1)])]),g(`div`,B,[g(`label`,V,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_name`)),1),a(g(`input`,{"onUpdate:modelValue":t[3]||=e=>_(q)?q.value=e:null,type:`text`,class:`w-full border border-neutral-300 rounded bg-white px-3 py-2 dark:border-neutral-700 dark:bg-neutral-900`,placeholder:v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_placeholder`)},null,8,H),[[oe,v(q)]])])])])):s(``,!0)]),a((u(),c(`div`,U,[...t[7]||=[g(`div`,{text:`60`,"i-solar:ghost-bold-duotone":``},null,-1)]])),[[n]])],64)}}});typeof b==`function`&&b(W);var G=W;export{G as default}; \ No newline at end of file +import{a3 as e,a4 as t,ae as n,an as ee,aq as te,ar as r,as as ne,bK as re,bQ as i,e$ as a,eA as o,eB as s,eC as c,eD as l,eF as u,eG as ie,eH as ae,eR as d,eT as f,eW as p,eZ as m,es as oe,ew as h,f0 as g,f1 as _,f7 as v,fb as y}from"./index-D3Bcbz9S.js";import{b}from"./route-block-Dc_s4AGN.js";const x={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},S={flex:`~ col gap-4`},C={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-500`},w={text:`neutral-400 dark:neutral-400`},T={"max-w-full":``},E={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},D={key:1},O={key:0},k={flex:`~ col gap-4`},A={class:`text-lg md:text-2xl`},j={text:`neutral-400 dark:neutral-400`},M={key:0,class:`flex items-center justify-center py-4`},N={key:1},P={flex:`~ col gap-4`},F={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},I={text:`neutral-400 dark:neutral-500`},se={class:`flex items-center gap-3 border border-primary-200 rounded-lg bg-primary-50 p-4 dark:border-primary-800 dark:bg-primary-900/20`},L={class:`flex flex-col`},R={class:`font-medium`},z={class:`text-sm text-primary-600 dark:text-primary-400`},B={class:`mt-2`},V={class:`mb-1 block text-sm font-medium`},H=[`placeholder`],U={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var W=ae({__name:`consciousness`,setup(ae){let b=t(),W=e(),{configuredChatProvidersMetadata:G}=i(b),{activeProvider:K,activeModel:q,customModelName:ce,modelSearchQuery:J,supportsModelListing:Y,providerModels:X,isLoadingActiveProviderModels:Z,activeProviderModelError:Q}=i(W),{t:$}=n();m(K,async e=>{await W.loadModelsForProvider(e)},{immediate:!0});function le(e){ce.value=e}return(e,t)=>{let n=p(`motion`);return d(),l(h,null,[o(`div`,x,[o(`div`,null,[o(`div`,S,[o(`div`,null,[o(`h2`,C,y(v($)(`settings.pages.providers.title`)),1),o(`div`,w,[o(`span`,null,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.description`)),1)])]),o(`div`,T,[v(G).length>0?(d(),l(`fieldset`,E,[(d(!0),l(h,null,f(v(G),e=>(d(),s(v(te),{id:e.id,key:e.id,modelValue:v(K),"onUpdate:modelValue":t[0]||=e=>_(K)?K.value=e:null,name:`provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(d(),l(`div`,D,[ie(v(re),{class:`flex items-center gap-3 rounded-lg p-4`,border:`2 dashed neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-800`,transition:`colors duration-200 ease-in-out`,to:`/settings/providers`},{default:a(()=>[...t[4]||=[o(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),o(`div`,{class:`flex flex-col`},[o(`span`,{class:`font-medium`},`No Providers Configured`),o(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your LLM providers`)],-1),o(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]]),_:1})]))])])]),v(K)&&v(Y)?(d(),l(`div`,O,[o(`div`,k,[o(`div`,null,[o(`h2`,A,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),o(`div`,j,[o(`span`,null,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),v(Z)?(d(),l(`div`,M,[t[5]||=o(`div`,{class:`mr-2 animate-spin`},[o(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),o(`span`,null,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):v(Q)?(d(),s(v(ee),{key:1,title:v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`),error:v(Q)},null,8,[`title`,`error`])):v(X).length===0&&!v(Z)?(d(),s(v(ne),{key:2,type:`warning`},{title:a(()=>[u(y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1)]),content:a(()=>[u(y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)]),_:1})):v(X).length>0?(d(),s(v(r),{key:3,modelValue:v(q),"onUpdate:modelValue":t[1]||=e=>_(q)?q.value=e:null,"search-query":v(J),"onUpdate:searchQuery":t[2]||=e=>_(J)?J.value=e:null,items:v(X).sort((e,t)=>e.id===v(q)?-1:t.id===v(q)?1:0),searchable:!0,"search-placeholder":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:v(J)}),"search-results-text":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":le},null,8,[`modelValue`,`search-query`,`items`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`])):c(``,!0)])])):v(K)&&!v(Y)?(d(),l(`div`,N,[o(`div`,P,[o(`div`,null,[o(`h2`,F,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),o(`div`,I,[o(`span`,null,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),o(`div`,se,[t[6]||=o(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-primary-500 dark:text-primary-400`},null,-1),o(`div`,L,[o(`span`,R,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported`)),1),o(`span`,z,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported_description`)),1)])]),o(`div`,B,[o(`label`,V,y(v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_name`)),1),g(o(`input`,{"onUpdate:modelValue":t[3]||=e=>_(q)?q.value=e:null,type:`text`,class:`w-full border border-neutral-300 rounded bg-white px-3 py-2 dark:border-neutral-700 dark:bg-neutral-900`,placeholder:v($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_placeholder`)},null,8,H),[[oe,v(q)]])])])])):c(``,!0)]),g((d(),l(`div`,U,[...t[7]||=[o(`div`,{text:`60`,"i-solar:ghost-bold-duotone":``},null,-1)]])),[[n]])],64)}}});typeof b==`function`&&b(W);var G=W;export{G as default}; \ No newline at end of file diff --git a/assets/deepseek-Clmy1xD5.js b/assets/deepseek-CbhRF9iO.js similarity index 58% rename from assets/deepseek-Clmy1xD5.js rename to assets/deepseek-CbhRF9iO.js index 33ee7fe9dd89ed233ef311a85f66a192b08d5a35..466385246d60badbc23777bd932a8f903be4459f 100644 --- a/assets/deepseek-Clmy1xD5.js +++ b/assets/deepseek-CbhRF9iO.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`deepseek`;var x=f({__name:`deepseek`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.deepseek.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`deepseek`;var x=p({__name:`deepseek`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.deepseek.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/default-DOtQQCA0.js b/assets/default-DOtQQCA0.js deleted file mode 100644 index 6fededbbe11a21e779db24cca987877e395f9f38..0000000000000000000000000000000000000000 --- a/assets/default-DOtQQCA0.js +++ /dev/null @@ -1 +0,0 @@ -import{bK as e,eC as t,eF as n,eG as r,eQ as i,ez as a,f6 as o}from"./index-DEhol03r.js";import{b as s}from"./HeaderLink-CwKWoudF.js";const c={style:{paddingBottom:`env(safe-area-inset-bottom, 0px)`,paddingTop:`env(safe-area-inset-top, 0px)`,paddingRight:`env(safe-area-inset-right, 0px)`,paddingLeft:`env(safe-area-inset-left, 0px)`},"h-full":``},l={class:`px-0 py-1 md:px-3 md:py-3`,"w-full":``,"gap-2":``,bg:`$bg-color`},u={class:`px-3 py-2 md:px-5 md:py-5`,flex:`~ col`,h:`[calc(100%-56px)]`};var d=r({__name:`default`,setup(r){return(r,d)=>(i(),t(`div`,c,[a(`div`,l,[n(s)]),a(`div`,u,[n(o(e))])]))}}),f=d;export{f as default}; \ No newline at end of file diff --git a/assets/default-Dt3jyffF.js b/assets/default-Dt3jyffF.js new file mode 100644 index 0000000000000000000000000000000000000000..61f7c74cbf7dda87d65b5e2288bb1eb8b7c56f98 --- /dev/null +++ b/assets/default-Dt3jyffF.js @@ -0,0 +1 @@ +import{bL as e,eA as t,eD as n,eG as r,eH as i,eR as a,f7 as o}from"./index-D3Bcbz9S.js";import{b as s}from"./HeaderLink-CWxXVf7j.js";const c={style:{paddingBottom:`env(safe-area-inset-bottom, 0px)`,paddingTop:`env(safe-area-inset-top, 0px)`,paddingRight:`env(safe-area-inset-right, 0px)`,paddingLeft:`env(safe-area-inset-left, 0px)`},"h-full":``},l={class:`px-0 py-1 md:px-3 md:py-3`,"w-full":``,"gap-2":``,bg:`$bg-color`},u={class:`px-3 py-2 md:px-5 md:py-5`,flex:`~ col`,h:`[calc(100%-56px)]`};var d=i({__name:`default`,setup(i){return(i,d)=>(a(),n(`div`,c,[t(`div`,l,[r(s)]),t(`div`,u,[r(o(e))])]))}}),f=d;export{f as default}; \ No newline at end of file diff --git a/assets/default-node-CfSUWdLW.js b/assets/default-node-BX8tyNLs.js similarity index 64% rename from assets/default-node-CfSUWdLW.js rename to assets/default-node-BX8tyNLs.js index 18a219c2d65ce14e7ddc3f15578947f55e9ea7a5..ba10464d93e621562879457e60dc755614417f25 100644 --- a/assets/default-node-CfSUWdLW.js +++ b/assets/default-node-BX8tyNLs.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-BOrN4rVf.js","assets/index-DEhol03r.js","assets/index-Bg8-TZ3F.css"])))=>i.map(i=>d[i]); -import{bN as e,fg as t}from"./index-DEhol03r.js";async function n(){let{createRequire:n}=await e(async()=>{let{createRequire:e}=await import(`./__vite-browser-external-BOrN4rVf.js`).then(t(1));return{createRequire:e}},__vite__mapDeps([0,1,2])),{dirname:r,resolve:i}=await e(async()=>{let{dirname:e,resolve:n}=await import(`./__vite-browser-external-BOrN4rVf.js`).then(t(1));return{dirname:e,resolve:n}},__vite__mapDeps([0,1,2])),a=n(import.meta.url),o=r(a.resolve(`@duckdb/duckdb-wasm`));return{mvp:{mainModule:i(o,`./duckdb-mvp.wasm`),mainWorker:i(o,`./duckdb-node-mvp.worker.cjs`)},eh:{mainModule:i(o,`./duckdb-eh.wasm`),mainWorker:i(o,`./duckdb-node-eh.worker.cjs`)}}}export{n as getBundles}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-CplUCAoG.js","assets/index-D3Bcbz9S.js","assets/index-C3z_mh4Z.css"])))=>i.map(i=>d[i]); +import{bO as e,fh as t}from"./index-D3Bcbz9S.js";async function n(){let{createRequire:n}=await e(async()=>{let{createRequire:e}=await import(`./__vite-browser-external-CplUCAoG.js`).then(t(1));return{createRequire:e}},__vite__mapDeps([0,1,2])),{dirname:r,resolve:i}=await e(async()=>{let{dirname:e,resolve:n}=await import(`./__vite-browser-external-CplUCAoG.js`).then(t(1));return{dirname:e,resolve:n}},__vite__mapDeps([0,1,2])),a=n(import.meta.url),o=r(a.resolve(`@duckdb/duckdb-wasm`));return{mvp:{mainModule:i(o,`./duckdb-mvp.wasm`),mainWorker:i(o,`./duckdb-node-mvp.worker.cjs`)},eh:{mainModule:i(o,`./duckdb-eh.wasm`),mainWorker:i(o,`./duckdb-node-eh.worker.cjs`)}}}export{n as getBundles}; \ No newline at end of file diff --git a/assets/delays-CxQxu-mq.js b/assets/delays-CxQxu-mq.js deleted file mode 100644 index bce43193f49b61d822973f511c8e1264cb80463d..0000000000000000000000000000000000000000 --- a/assets/delays-CxQxu-mq.js +++ /dev/null @@ -1 +0,0 @@ -import"./Basic-D33XBiPI.js";import{b as e}from"./Textarea-B_NArpfq.js";import"./merge-D5ueGMzg.js";import{R as t,aB as n,eC as r,eF as i,eG as a,eQ as o,eS as s,ev as c,ez as l,f1 as u,f6 as d,fa as f}from"./index-DEhol03r.js";import"./ibl-CbBD07sa.js";import"./composables-C5AKp2DU.js";const p={flex:``,"flex-col":``,"gap-2":``,"p-2":``},m={flex:``,"flex-row":``,"gap-2":``},h={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},g={"w-full":``,flex:``,"flex-row":``,"gap-4":``},_={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``},v={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var y=a({__name:`delays`,setup(a){let y=u(``),b=u([]),x=u([]),S=u(!1),C=t();C.onHandlerEvent(`delay`,e=>{x.value.push(e)});function w(){S.value=!0;let e=y.value.split(``);for(let t of e)C.enqueue(t);C.enqueue(n),y.value=``,S.value=!1}return(t,n)=>(o(),r(`div`,p,[l(`div`,m,[i(d(e),{modelValue:y.value,"onUpdate:modelValue":n[0]||=e=>y.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:w},null,8,[`modelValue`]),l(`button`,h,f(S.value?`Processing...`:`Send`),1)]),l(`div`,g,[l(`div`,_,[n[1]||=l(`h3`,{"font-normal":``},` Emotion Message `,-1),(o(!0),r(c,null,s(b.value,e=>(o(),r(`div`,{key:e},[l(`div`,null,f(e),1)]))),128))]),l(`div`,v,[n[2]||=l(`h3`,{"font-normal":``},` Delays `,-1),(o(!0),r(c,null,s(x.value,e=>(o(),r(`div`,{key:e},[l(`div`,null,f(e)+`s`,1)]))),128))])])]))}}),b=y;export{b as default}; \ No newline at end of file diff --git a/assets/delays-R-jzJk-u.js b/assets/delays-R-jzJk-u.js new file mode 100644 index 0000000000000000000000000000000000000000..20539552d71d3c7ec1ca782e4b2c1587619f6079 --- /dev/null +++ b/assets/delays-R-jzJk-u.js @@ -0,0 +1 @@ +import"./Basic-IbpirTdD.js";import{b as e}from"./Textarea-CCCcUNHl.js";import"./merge-D5ueGMzg.js";import{R as t,aC as n,eA as r,eD as i,eG as a,eH as o,eR as s,eT as c,ew as l,f2 as u,f7 as d,fb as f}from"./index-D3Bcbz9S.js";import"./ibl-CoXg6NDS.js";import"./composables-Tp0cITw9.js";const p={flex:``,"flex-col":``,"gap-2":``,"p-2":``},m={flex:``,"flex-row":``,"gap-2":``},h={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},g={"w-full":``,flex:``,"flex-row":``,"gap-4":``},_={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``},v={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var y=o({__name:`delays`,setup(o){let y=u(``),b=u([]),x=u([]),S=u(!1),C=t();C.onHandlerEvent(`delay`,e=>{x.value.push(e)});function w(){S.value=!0;let e=y.value.split(``);for(let t of e)C.enqueue(t);C.enqueue(n),y.value=``,S.value=!1}return(t,n)=>(s(),i(`div`,p,[r(`div`,m,[a(d(e),{modelValue:y.value,"onUpdate:modelValue":n[0]||=e=>y.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:w},null,8,[`modelValue`]),r(`button`,h,f(S.value?`Processing...`:`Send`),1)]),r(`div`,g,[r(`div`,_,[n[1]||=r(`h3`,{"font-normal":``},` Emotion Message `,-1),(s(!0),i(l,null,c(b.value,e=>(s(),i(`div`,{key:e},[r(`div`,null,f(e),1)]))),128))]),r(`div`,v,[n[2]||=r(`h3`,{"font-normal":``},` Delays `,-1),(s(!0),i(l,null,c(x.value,e=>(s(),i(`div`,{key:e},[r(`div`,null,f(e)+`s`,1)]))),128))])])]))}}),b=y;export{b as default}; \ No newline at end of file diff --git a/assets/developer-MrKBC0bX.js b/assets/developer-lge657PF.js similarity index 60% rename from assets/developer-MrKBC0bX.js rename to assets/developer-lge657PF.js index 8c97885bae8dead1608a843f0805483c9196fc3a..cf93f9470554131f760682969b0387365b9a837c 100644 --- a/assets/developer-MrKBC0bX.js +++ b/assets/developer-lge657PF.js @@ -1 +1 @@ -import{ae as e,au as t,c as n,e$ as r,eA as i,eB as a,eC as o,eE as s,eF as c,eG as l,eL as u,eQ as d,eS as f,eV as p,eW as m,e_ as h,eo as g,ep as _,ev as v,ey as y,ez as b,f6 as x,f7 as S,f9 as C,fa as w}from"./index-DEhol03r.js";import{b as T}from"./route-block-Dc_s4AGN.js";const E={class:`w-full flex cursor-pointer items-center justify-between rounded-lg px-4 py-3 text-sm outline-none transition-all duration-250 ease-in-out`,bg:`neutral-50 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`},D=[`aria-checked`],O={key:0,text:`sm neutral-500`};var k=l({__name:`CheckBar`,props:u({text:{},iconOn:{},iconOff:{},description:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=m(e,`modelValue`);return(e,n)=>(d(),o(`label`,E,[r(b(`input`,{"onUpdate:modelValue":n[0]||=e=>t.value=e,"aria-checked":t.value,type:`checkbox`,hidden:``},null,8,D),[[_,t.value]]),b(`div`,null,[s(w(e.$t(e.text))+` `,1),e.description?(d(),o(`div`,O,w(e.$t(e.description)),1)):a(``,!0)]),c(g,{name:`slide-away`,mode:`out-in`},{default:h(()=>[t.value?(d(),o(`div`,{key:0,class:S(e.iconOn),transition:`all ease-in-out duration-250`},null,2)):(d(),o(`div`,{key:1,class:S(e.iconOff),transition:`all ease-in-out duration-250`},null,2))]),_:1})]))}}),A=k;const j={flex:`~ col gap-4`,"pb-12":``},M={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var N=l({__name:`developer`,setup(a){let{t:s}=e(),l=n(),u=y(()=>[{title:`Audio Record`,description:`Test Audio related composables`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/audio-record`},{title:`Background Theme color blending`,description:`Test blending & theme`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/background-gradient-blending`},{title:`Background removal (WebGPU required)`,description:`Utility for background removal`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/background-removal`},{title:`Chat`,description:`Chat`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/chat`},{title:`Gesture Circle (Desktop only)`,description:`Test gesture recognition`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/gesture-circle`},{title:`Image`,description:`Image`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/image`},{title:`Polaroid`,description:`Utility for taking shots of models`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/polaroid`},{title:s(`settings.pages.system.sections.section.developer.sections.section.use-magic-keys.title`),description:s(`settings.pages.system.sections.section.developer.sections.section.use-magic-keys.description`),icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/use-magic-keys`},{title:`Color extract`,description:`Test color extraction`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/vibrant`}]);return(e,n)=>{let a=p(`motion`);return d(),o(v,null,[r(c(A,{modelValue:x(l).disableTransitions,"onUpdate:modelValue":n[0]||=e=>x(l).disableTransitions=e,"mb-2":``,"icon-on":`i-solar:people-nearby-bold-duotone`,"icon-off":`i-solar:running-2-line-duotone`,text:`settings.animations.stage-transitions.title`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:440,delay:50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`]),[[a]]),r(c(A,{modelValue:x(l).usePageSpecificTransitions,"onUpdate:modelValue":n[1]||=e=>x(l).usePageSpecificTransitions=e,disabled:x(l).disableTransitions,"icon-on":`i-solar:running-2-line-duotone`,"icon-off":`i-solar:people-nearby-bold-duotone`,text:`settings.animations.use-page-specific-transitions.title`,description:`settings.animations.use-page-specific-transitions.description`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:450,delay:100,transition:`all ease-in-out duration-250`},null,8,[`modelValue`,`disabled`]),[[a]]),b(`div`,j,[(d(!0),o(v,null,f(u.value,(e,n)=>r((d(),i(x(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:C({transitionDelay:`${n*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to},null,8,[`style`,`title`,`description`,`icon`,`to`])),[[a]])),128))]),r((d(),o(`div`,M,[...n[2]||=[b(`div`,{text:`60`,"i-solar:code-bold-duotone":``},null,-1)]])),[[a]])],64)}}});typeof T==`function`&&T(N);var P=N;export{P as default}; \ No newline at end of file +import{ae as e,au as t,c as n,e$ as r,eA as i,eB as a,eC as o,eD as s,eF as c,eG as l,eH as u,eM as d,eR as f,eT as p,eW as m,eX as h,ep as g,eq as _,ew as v,ez as y,f0 as b,f7 as x,f8 as S,fa as C,fb as w}from"./index-D3Bcbz9S.js";import{b as T}from"./route-block-Dc_s4AGN.js";const E={class:`w-full flex cursor-pointer items-center justify-between rounded-lg px-4 py-3 text-sm outline-none transition-all duration-250 ease-in-out`,bg:`neutral-50 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`},D=[`aria-checked`],O={key:0,text:`sm neutral-500`};var k=u({__name:`CheckBar`,props:d({text:{},iconOn:{},iconOff:{},description:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=h(e,`modelValue`);return(e,n)=>(f(),s(`label`,E,[b(i(`input`,{"onUpdate:modelValue":n[0]||=e=>t.value=e,"aria-checked":t.value,type:`checkbox`,hidden:``},null,8,D),[[_,t.value]]),i(`div`,null,[c(w(e.$t(e.text))+` `,1),e.description?(f(),s(`div`,O,w(e.$t(e.description)),1)):o(``,!0)]),l(g,{name:`slide-away`,mode:`out-in`},{default:r(()=>[t.value?(f(),s(`div`,{key:0,class:S(e.iconOn),transition:`all ease-in-out duration-250`},null,2)):(f(),s(`div`,{key:1,class:S(e.iconOff),transition:`all ease-in-out duration-250`},null,2))]),_:1})]))}}),A=k;const j={flex:`~ col gap-4`,"pb-12":``},M={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var N=u({__name:`developer`,setup(r){let{t:o}=e(),c=n(),u=y(()=>[{title:`Audio Record`,description:`Test Audio related composables`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/audio-record`},{title:`Background Theme color blending`,description:`Test blending & theme`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/background-gradient-blending`},{title:`Background removal (WebGPU required)`,description:`Utility for background removal`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/background-removal`},{title:`Chat`,description:`Chat`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/chat`},{title:`Gesture Circle (Desktop only)`,description:`Test gesture recognition`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/gesture-circle`},{title:`Image`,description:`Image`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/image`},{title:`Polaroid`,description:`Utility for taking shots of models`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/polaroid`},{title:o(`settings.pages.system.sections.section.developer.sections.section.use-magic-keys.title`),description:o(`settings.pages.system.sections.section.developer.sections.section.use-magic-keys.description`),icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/use-magic-keys`},{title:`Color extract`,description:`Test color extraction`,icon:`i-solar:sledgehammer-bold-duotone`,to:`/devtools/vibrant`}]);return(e,n)=>{let r=m(`motion`);return f(),s(v,null,[b(l(A,{modelValue:x(c).disableTransitions,"onUpdate:modelValue":n[0]||=e=>x(c).disableTransitions=e,"mb-2":``,"icon-on":`i-solar:people-nearby-bold-duotone`,"icon-off":`i-solar:running-2-line-duotone`,text:`settings.animations.stage-transitions.title`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:440,delay:50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`]),[[r]]),b(l(A,{modelValue:x(c).usePageSpecificTransitions,"onUpdate:modelValue":n[1]||=e=>x(c).usePageSpecificTransitions=e,disabled:x(c).disableTransitions,"icon-on":`i-solar:running-2-line-duotone`,"icon-off":`i-solar:people-nearby-bold-duotone`,text:`settings.animations.use-page-specific-transitions.title`,description:`settings.animations.use-page-specific-transitions.description`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:450,delay:100,transition:`all ease-in-out duration-250`},null,8,[`modelValue`,`disabled`]),[[r]]),i(`div`,j,[(f(!0),s(v,null,p(u.value,(e,n)=>b((f(),a(x(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:C({transitionDelay:`${n*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to},null,8,[`style`,`title`,`description`,`icon`,`to`])),[[r]])),128))]),b((f(),s(`div`,M,[...n[2]||=[i(`div`,{text:`60`,"i-solar:code-bold-duotone":``},null,-1)]])),[[r]])],64)}}});typeof T==`function`&&T(N);var P=N;export{P as default}; \ No newline at end of file diff --git a/assets/dist-ByFcnk3K.js b/assets/dist-DInrA4pj.js similarity index 97% rename from assets/dist-ByFcnk3K.js rename to assets/dist-DInrA4pj.js index e63a9bf43a9806c4ef756f82d043c28085117f7d..2128830f6be2ef41531c474970d9626c3d5f84e8 100644 --- a/assets/dist-ByFcnk3K.js +++ b/assets/dist-DInrA4pj.js @@ -1,2 +1,2 @@ -import{a8 as e,a9 as t,aa as n,ab as r,ac as i}from"./index-DEhol03r.js";const a=async a=>(a.fetch??globalThis.fetch)(r(`chat/completions`,a.baseURL),{body:t({...a,tools:a.tools?.map(t=>({function:e({...t.function,returns:void 0}),type:`function`}))}),headers:n({"Content-Type":`application/json`,...a.headers},a.apiKey),method:`POST`,signal:a.abortSignal}).then(i),o=({finishReason:e,maxSteps:t,stepsLength:n,toolCallsLength:r})=>{if(n===0)return`initial`;if(n0&&e===`tool_calls`)return`tool-result`;if(![`error`,`length`].includes(e))return`continue`}return`done`},s=e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>!!(typeof e==`object`&&`type`in e&&[`file`,`image_url`,`input_audio`,`text`].includes(e.type)))?e:JSON.stringify(e),c=async({abortSignal:e,messages:t,toolCall:n,tools:r})=>{let i=r?.find(e=>e.function.name===n.function.name);if(!i){let e=r?.map(e=>e.function.name),t=e==null||e.length===0?`No tools are available`:`Available tools: ${e.join(`, `)}`;throw Error(`Model tried to call unavailable tool "${n.function.name}", ${t}.`)}let a=n.id,o=n.function.name,c=JSON.parse(n.function.arguments),l=s(await i.execute(c,{abortSignal:e,messages:t,toolCallId:a})),u={args:n.function.arguments,toolCallId:a,toolCallType:n.type,toolName:o},d={args:c,result:l,toolCallId:a,toolName:o},f={content:l,role:`tool`,tool_call_id:a};return{completionToolCall:u,completionToolResult:d,message:f}},l=e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`),u=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[l(e),t])),d=async e=>{let t=await e();for(;t instanceof Function;)t=await t();return t};var f=class{get promise(){return this._promise??=new Promise((e,t)=>{this.status.type===`resolved`?e(this.status.value):this.status.type===`rejected`&&t(this.status.error),this._resolve=e,this._reject=t}),this._promise}_promise;_reject;_resolve;status={type:`pending`};reject(e){this.status={error:e,type:`rejected`},this._promise&&this._reject?.(e)}resolve(e){this.status={type:`resolved`,value:e},this._promise&&this._resolve?.(e)}};const p=e=>{if(!e||!e.startsWith(`data:`))return[void 0,!1];let t=e.slice(5),n=t.startsWith(` `)?t.slice(1):t;if(n===`[DONE]`)return[void 0,!0];if(n.startsWith(`{`)&&n.includes(`"error":`))throw Error(`Error from server: ${n}`);let r=JSON.parse(n);return[r,!1]},m=()=>{let e=new TextDecoder,t=``;return new TransformStream({transform:async(n,r)=>{let i=e.decode(n,{stream:!0});t+=i;let a=t.split(` +import{a8 as e,a9 as t,aa as n,ab as r,ac as i}from"./index-D3Bcbz9S.js";const a=async a=>(a.fetch??globalThis.fetch)(r(`chat/completions`,a.baseURL),{body:t({...a,tools:a.tools?.map(t=>({function:e({...t.function,returns:void 0}),type:`function`}))}),headers:n({"Content-Type":`application/json`,...a.headers},a.apiKey),method:`POST`,signal:a.abortSignal}).then(i),o=({finishReason:e,maxSteps:t,stepsLength:n,toolCallsLength:r})=>{if(n===0)return`initial`;if(n0&&e===`tool_calls`)return`tool-result`;if(![`error`,`length`].includes(e))return`continue`}return`done`},s=e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>!!(typeof e==`object`&&`type`in e&&[`file`,`image_url`,`input_audio`,`text`].includes(e.type)))?e:JSON.stringify(e),c=async({abortSignal:e,messages:t,toolCall:n,tools:r})=>{let i=r?.find(e=>e.function.name===n.function.name);if(!i){let e=r?.map(e=>e.function.name),t=e==null||e.length===0?`No tools are available`:`Available tools: ${e.join(`, `)}`;throw Error(`Model tried to call unavailable tool "${n.function.name}", ${t}.`)}let a=n.id,o=n.function.name,c=JSON.parse(n.function.arguments),l=s(await i.execute(c,{abortSignal:e,messages:t,toolCallId:a})),u={args:n.function.arguments,toolCallId:a,toolCallType:n.type,toolName:o},d={args:c,result:l,toolCallId:a,toolName:o},f={content:l,role:`tool`,tool_call_id:a};return{completionToolCall:u,completionToolResult:d,message:f}},l=e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`),u=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[l(e),t])),d=async e=>{let t=await e();for(;t instanceof Function;)t=await t();return t};var f=class{get promise(){return this._promise??=new Promise((e,t)=>{this.status.type===`resolved`?e(this.status.value):this.status.type===`rejected`&&t(this.status.error),this._resolve=e,this._reject=t}),this._promise}_promise;_reject;_resolve;status={type:`pending`};reject(e){this.status={error:e,type:`rejected`},this._promise&&this._reject?.(e)}resolve(e){this.status={type:`resolved`,value:e},this._promise&&this._resolve?.(e)}};const p=e=>{if(!e||!e.startsWith(`data:`))return[void 0,!1];let t=e.slice(5),n=t.startsWith(` `)?t.slice(1):t;if(n===`[DONE]`)return[void 0,!0];if(n.startsWith(`{`)&&n.includes(`"error":`))throw Error(`Error from server: ${n}`);let r=JSON.parse(n);return[r,!1]},m=()=>{let e=new TextDecoder,t=``;return new TransformStream({transform:async(n,r)=>{let i=e.decode(n,{stream:!0});t+=i;let a=t.split(` `);t=a.pop()??``;for(let e of a)try{let[t,n]=p(e);if(n)break;t&&r.enqueue(t)}catch(e){r.error(e)}}})},h=async e=>{let t=[],n=structuredClone(e.messages),r=e.maxSteps??1,i,s=new f,l=new f,p=new f,h,g,_=new ReadableStream({start:e=>h=e}),v=new ReadableStream({start:e=>g=e}),y=t=>{h?.enqueue(t),e.onEvent?.(t)},b=n=>{t.push(n),e.onStepFinish?.(n)},x=async()=>a({...e,maxSteps:void 0,messages:n,stream:!0,streamOptions:e.streamOptions==null?void 0:u(e.streamOptions)}).then(e=>e.body),S=async a=>{let s=e=>{i=e},l=``,u=e=>{g?.enqueue(e),l+=e},d=[],f=[],p=[],_=`other`;if(await a.pipeThrough(m()).pipeTo(new WritableStream({abort:e=>{h?.error(e),g?.error(e)},close:()=>{},write:e=>{if(e.usage&&s(e.usage),e.choices==null||e.choices.length===0)return;let t=e.choices[0];if(t.delta.reasoning_content!=null&&y({text:t.delta.reasoning_content,type:`reasoning-delta`}),t.finish_reason!=null&&(_=t.finish_reason),t.delta.tool_calls?.length===0||t.delta.tool_calls==null)t.delta.content==null?t.delta.refusal==null?t.finish_reason!=null&&y({finishReason:t.finish_reason,type:`finish`,usage:i}):y({error:t.delta.refusal,type:`error`}):(y({text:t.delta.content,type:`text-delta`}),u(t.delta.content));else for(let e of t.delta.tool_calls){let{index:t}=e;d.at(t)?(d[t].function.arguments+=e.function.arguments,y({argsTextDelta:e.function.arguments,toolCallId:e.id,toolName:e.function.name,type:`tool-call-delta`})):(d[t]=e,y({toolCallId:e.id,toolName:e.function.name,type:`tool-call-streaming-start`}))}}})),n.push({content:l,role:`assistant`,tool_calls:d}),d.length!==0)for(let t of d){let{completionToolCall:r,completionToolResult:i,message:a}=await c({abortSignal:e.abortSignal,messages:n,toolCall:t,tools:e.tools});f.push(r),p.push(i),n.push(a),y({...r,type:`tool-call`}),y({...i,type:`tool-result`})}else y({finishReason:_,type:`finish`,usage:i});if(b({finishReason:_,stepType:o({finishReason:_,maxSteps:r,stepsLength:t.length,toolCallsLength:f.length}),text:l,toolCalls:f,toolResults:p,usage:i}),f.length!==0&&t.lengthS(await x())},C=await x();return(async()=>{try{await d(async()=>S(C)),h?.close(),g?.close()}catch(e){h?.error(e),g?.error(e),s.reject(e),l.reject(e),p.reject(e)}finally{s.resolve(t),l.resolve(n),p.resolve(i),e.onFinish?.(t.at(-1))}})(),{fullStream:_,messages:l.promise,steps:s.promise,textStream:v,usage:p.promise}};export{h as b}; \ No newline at end of file diff --git a/assets/effect--zg3C1LQ-vwsYjMdd.js b/assets/effect--zg3C1LQ-D98JZhsZ.js similarity index 52% rename from assets/effect--zg3C1LQ-vwsYjMdd.js rename to assets/effect--zg3C1LQ-D98JZhsZ.js index 6ed241f924d201778270d6949eb5e944754e795e..e75a7ac7e36e02ed068eacd798bed126c4e9c9b2 100644 --- a/assets/effect--zg3C1LQ-vwsYjMdd.js +++ b/assets/effect--zg3C1LQ-D98JZhsZ.js @@ -1 +1 @@ -import{bN as e}from"./index-DEhol03r.js";import{e as t}from"./index-CAcLDIRJ-zzf_MFDO.js";const n=async()=>{let{JSONSchema:n}=await t(e(()=>import(`./__vite-optional-peer-dep_effect_xsschema-BPt5PS67.js`),[]),`effect`);return e=>n.make(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file +import{bO as e}from"./index-D3Bcbz9S.js";import{e as t}from"./index-CAcLDIRJ-D76TFz33.js";const n=async()=>{let{JSONSchema:n}=await t(e(()=>import(`./__vite-optional-peer-dep_effect_xsschema-BPt5PS67.js`),[]),`effect`);return e=>n.make(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file diff --git a/assets/elevenlabs-By1-etWk.js b/assets/elevenlabs-CaYC4yGw.js similarity index 51% rename from assets/elevenlabs-By1-etWk.js rename to assets/elevenlabs-CaYC4yGw.js index 1861e03969dcbde24d7570ef3394381036960128..74b38ee51befbb2d05b1c5152e06347ea3833b38 100644 --- a/assets/elevenlabs-By1-etWk.js +++ b/assets/elevenlabs-CaYC4yGw.js @@ -1 +1 @@ -import{K as e,L as t,O as n,a4 as r,aW as i,a_ as a,ae as o,bP as s,eA as c,eF as l,eG as u,eO as d,eQ as f,eY as p,e_ as m,ey as h,ez as g,f1 as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b={flex:`~ col gap-4`},x=`elevenlabs`,S=`eleven_multilingual_v2`;var C=u({__name:`elevenlabs`,setup(u){let y={similarityBoost:.75,stability:.5,speed:1,style:0,useSpeakerBoost:!0},C=_(0),w=_(1),T=_(0),E=_(0),D=_(.5),O=_(.75),k=_(!1),A=t(),j=r(),{providers:M}=s(j),{t:N}=o(),P=h(()=>!!M.value[x]?.apiKey),F=h(()=>A.availableVoices[x]||[]);async function I(e,t,n){let r=await j.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=j.getProviderConfig(x),a=i.model||S;return await A.speech(r,a,e,t,{...i,...y})}return d(async()=>{let e=j.getProviderConfig(x),t=j.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await A.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)}),p(C,async()=>{let e=j.getProviderConfig(x);e.pitch=C.value}),p(w,async()=>{let e=j.getProviderConfig(x);e.speed=w.value}),p(T,async()=>{let e=j.getProviderConfig(x);e.volume=T.value}),p(E,async()=>{let e=j.getProviderConfig(x);e.style=E.value}),p(D,async()=>{let e=j.getProviderConfig(x);e.stability=D.value}),p(O,async()=>{let e=j.getProviderConfig(x);e.similarityBoost=O.value}),p(k,async()=>{let e=j.getProviderConfig(x);e.useSpeakerBoost=k.value}),p(M,async()=>{let e=j.getProviderConfig(x),t=j.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await A.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(t,r)=>(f(),c(v(e),{"provider-id":x,"default-model":S,"additional-settings":y},{"voice-settings":m(()=>[g(`div`,b,[l(v(i),{modelValue:C.value,"onUpdate:modelValue":r[0]||=e=>C.value=e,label:v(N)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:v(N)(`settings.pages.providers.provider.common.fields.field.pitch.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),l(v(i),{modelValue:w.value,"onUpdate:modelValue":r[1]||=e=>w.value=e,label:v(N)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:v(N)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),l(v(i),{modelValue:T.value,"onUpdate:modelValue":r[2]||=e=>T.value=e,label:v(N)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:v(N)(`settings.pages.providers.provider.common.fields.field.volume.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),l(v(i),{modelValue:E.value,"onUpdate:modelValue":r[3]||=e=>E.value=e,label:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.style.label`),description:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.style.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),l(v(i),{modelValue:D.value,"onUpdate:modelValue":r[4]||=e=>D.value=e,label:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.stability.label`),description:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.stability.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),l(v(i),{modelValue:O.value,"onUpdate:modelValue":r[5]||=e=>O.value=e,label:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.simularity-boost.label`),description:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.simularity-boost.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),l(v(a),{modelValue:k.value,"onUpdate:modelValue":r[6]||=e=>k.value=e,label:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.speaker-boost.label`),description:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.speaker-boost.description`)},null,8,[`modelValue`,`label`,`description`])])]),playground:m(()=>[l(v(n),{"available-voices":F.value,"generate-speech":I,"api-key-configured":P.value,"default-text":`Hello! This is a test of the ElevenLabs voice synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof y==`function`&&y(C);var w=C;export{w as default}; \ No newline at end of file +import{K as e,L as t,O as n,a$ as r,a4 as i,aX as a,ae as o,bQ as s,e$ as c,eA as l,eB as u,eG as d,eH as f,eP as p,eR as m,eZ as h,ez as g,f2 as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b={flex:`~ col gap-4`},x=`elevenlabs`,S=`eleven_multilingual_v2`;var C=f({__name:`elevenlabs`,setup(f){let y={similarityBoost:.75,stability:.5,speed:1,style:0,useSpeakerBoost:!0},C=_(0),w=_(1),T=_(0),E=_(0),D=_(.5),O=_(.75),k=_(!1),A=t(),j=i(),{providers:M}=s(j),{t:N}=o(),P=g(()=>!!M.value[x]?.apiKey),F=g(()=>A.availableVoices[x]||[]);async function I(e,t,n){let r=await j.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=j.getProviderConfig(x),a=i.model||S;return await A.speech(r,a,e,t,{...i,...y})}return p(async()=>{let e=j.getProviderConfig(x),t=j.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await A.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)}),h(C,async()=>{let e=j.getProviderConfig(x);e.pitch=C.value}),h(w,async()=>{let e=j.getProviderConfig(x);e.speed=w.value}),h(T,async()=>{let e=j.getProviderConfig(x);e.volume=T.value}),h(E,async()=>{let e=j.getProviderConfig(x);e.style=E.value}),h(D,async()=>{let e=j.getProviderConfig(x);e.stability=D.value}),h(O,async()=>{let e=j.getProviderConfig(x);e.similarityBoost=O.value}),h(k,async()=>{let e=j.getProviderConfig(x);e.useSpeakerBoost=k.value}),h(M,async()=>{let e=j.getProviderConfig(x),t=j.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await A.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(t,i)=>(m(),u(v(e),{"provider-id":x,"default-model":S,"additional-settings":y},{"voice-settings":c(()=>[l(`div`,b,[d(v(a),{modelValue:C.value,"onUpdate:modelValue":i[0]||=e=>C.value=e,label:v(N)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:v(N)(`settings.pages.providers.provider.common.fields.field.pitch.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),d(v(a),{modelValue:w.value,"onUpdate:modelValue":i[1]||=e=>w.value=e,label:v(N)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:v(N)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),d(v(a),{modelValue:T.value,"onUpdate:modelValue":i[2]||=e=>T.value=e,label:v(N)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:v(N)(`settings.pages.providers.provider.common.fields.field.volume.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),d(v(a),{modelValue:E.value,"onUpdate:modelValue":i[3]||=e=>E.value=e,label:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.style.label`),description:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.style.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),d(v(a),{modelValue:D.value,"onUpdate:modelValue":i[4]||=e=>D.value=e,label:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.stability.label`),description:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.stability.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),d(v(a),{modelValue:O.value,"onUpdate:modelValue":i[5]||=e=>O.value=e,label:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.simularity-boost.label`),description:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.simularity-boost.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),d(v(r),{modelValue:k.value,"onUpdate:modelValue":i[6]||=e=>k.value=e,label:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.speaker-boost.label`),description:v(N)(`settings.pages.providers.provider.elevenlabs.fields.field.speaker-boost.description`)},null,8,[`modelValue`,`label`,`description`])])]),playground:c(()=>[d(v(n),{"available-voices":F.value,"generate-speech":I,"api-key-configured":P.value,"default-text":`Hello! This is a test of the ElevenLabs voice synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof y==`function`&&y(C);var w=C;export{w as default}; \ No newline at end of file diff --git a/assets/emotions-CfSs7BF-.js b/assets/emotions-CfSs7BF-.js deleted file mode 100644 index 96e36af1a2b5adcd9221d660571a9a6e5939e64e..0000000000000000000000000000000000000000 --- a/assets/emotions-CfSs7BF-.js +++ /dev/null @@ -1 +0,0 @@ -import"./Basic-D33XBiPI.js";import{b as e}from"./Textarea-B_NArpfq.js";import{S as t,V as n,aB as r,eC as i,eF as a,eG as o,eQ as s,eS as c,ev as l,ez as u,f1 as d,f6 as f,fa as p}from"./index-DEhol03r.js";const m={flex:``,"flex-col":``,"gap-2":``,"p-2":``},h={flex:``,"flex-row":``,"gap-2":``},g={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},_={"w-full":``,flex:``,"flex-row":``,"gap-4":``},v={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``},y={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var b=o({__name:`emotions`,setup(o){let b=d(``),x=d([]),S=d([]),C=d(!1),w=n({handlers:[async e=>{S.value.push(e.data)}]}),T=t(w);function E(){C.value=!0;let e=b.value.split(``);for(let t of e)T.enqueue(t);T.enqueue(r),b.value=``,C.value=!1}return(t,n)=>(s(),i(`div`,m,[u(`div`,h,[a(f(e),{modelValue:b.value,"onUpdate:modelValue":n[0]||=e=>b.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:E},null,8,[`modelValue`]),u(`button`,g,p(C.value?`Processing...`:`Send`),1)]),u(`div`,_,[u(`div`,v,[n[1]||=u(`h3`,{"font-normal":``},` Messages `,-1),(s(!0),i(l,null,c(x.value,e=>(s(),i(`div`,{key:e},[u(`div`,null,p(e),1)]))),128))]),u(`div`,y,[n[2]||=u(`h3`,{"font-normal":``},` Emotions `,-1),(s(!0),i(l,null,c(S.value,e=>(s(),i(`div`,{key:e},[u(`div`,null,p(e),1)]))),128))])])]))}}),x=b;export{x as default}; \ No newline at end of file diff --git a/assets/emotions-Jhx86Tb2.js b/assets/emotions-Jhx86Tb2.js new file mode 100644 index 0000000000000000000000000000000000000000..e9fe7ca882756f56016f2f81cf167787458a61a5 --- /dev/null +++ b/assets/emotions-Jhx86Tb2.js @@ -0,0 +1 @@ +import"./Basic-IbpirTdD.js";import{b as e}from"./Textarea-CCCcUNHl.js";import{S as t,V as n,aC as r,eA as i,eD as a,eG as o,eH as s,eR as c,eT as l,ew as u,f2 as d,f7 as f,fb as p}from"./index-D3Bcbz9S.js";const m={flex:``,"flex-col":``,"gap-2":``,"p-2":``},h={flex:``,"flex-row":``,"gap-2":``},g={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},_={"w-full":``,flex:``,"flex-row":``,"gap-4":``},v={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``},y={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var b=s({__name:`emotions`,setup(s){let b=d(``),x=d([]),S=d([]),C=d(!1),w=n({handlers:[async e=>{S.value.push(e.data)}]}),T=t(w);function E(){C.value=!0;let e=b.value.split(``);for(let t of e)T.enqueue(t);T.enqueue(r),b.value=``,C.value=!1}return(t,n)=>(c(),a(`div`,m,[i(`div`,h,[o(f(e),{modelValue:b.value,"onUpdate:modelValue":n[0]||=e=>b.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:E},null,8,[`modelValue`]),i(`button`,g,p(C.value?`Processing...`:`Send`),1)]),i(`div`,_,[i(`div`,v,[n[1]||=i(`h3`,{"font-normal":``},` Messages `,-1),(c(!0),a(u,null,l(x.value,e=>(c(),a(`div`,{key:e},[i(`div`,null,p(e),1)]))),128))]),i(`div`,y,[n[2]||=i(`h3`,{"font-normal":``},` Emotions `,-1),(c(!0),a(u,null,l(S.value,e=>(c(),a(`div`,{key:e},[i(`div`,null,p(e),1)]))),128))])])]))}}),x=b;export{x as default}; \ No newline at end of file diff --git a/assets/featherless-ai-EUoqRwKj.js b/assets/featherless-ai-DDuh-ALV.js similarity index 62% rename from assets/featherless-ai-EUoqRwKj.js rename to assets/featherless-ai-DDuh-ALV.js index 2aa7e498be507dee26d89bdc761ba7e5a63fac37..a9100a6b231860b062487940c4bc517df0bb64f9 100644 --- a/assets/featherless-ai-EUoqRwKj.js +++ b/assets/featherless-ai-DDuh-ALV.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`featherless-ai`;var x=f({__name:`featherless-ai`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`fw-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.featherless.ai/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`featherless-ai`;var x=p({__name:`featherless-ai`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`fw-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.featherless.ai/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/filter-message-Bsrrp0SL.js b/assets/filter-message-oB4BRm9w.js similarity index 57% rename from assets/filter-message-Bsrrp0SL.js rename to assets/filter-message-oB4BRm9w.js index 8cb8f4bf4e274a54e945687f9b2a6d7dfda90f74..67f9c6438681f1b8c2f8456363712575fc62c62f 100644 --- a/assets/filter-message-Bsrrp0SL.js +++ b/assets/filter-message-oB4BRm9w.js @@ -1 +1 @@ -import"./Basic-D33XBiPI.js";import{b as e}from"./Textarea-B_NArpfq.js";import{W as t,eC as n,eF as r,eG as i,eQ as a,ez as o,f1 as s,f6 as c,fa as l}from"./index-DEhol03r.js";const u={flex:``,"flex-col":``,"gap-2":``,"p-2":``},d={flex:``,"flex-row":``,"gap-2":``},f={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},p={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var m=i({__name:`filter-message`,setup(i){let m=s(``),h=s(!1),g=s({content:``});async function _(){h.value=!0;let e=m.value.split(``),n=function(e){return e.Literal=`literal`,e.Special=`special`,e}({}),r=n.Literal,i=``;for(let a of e){await t(50);let e=r;a===`<`?e=n.Special:a===`>`&&(e=n.Literal),r===n.Literal&&e===n.Special&&(g.value.content+=i,i=``),r===n.Special&&e===n.Literal&&(i=``),r===n.Literal&&e===n.Literal&&(g.value.content+=a,i=``),r=e}i&&(g.value.content+=i),m.value=``,h.value=!1}return(t,i)=>(a(),n(`div`,u,[o(`div`,d,[r(c(e),{modelValue:m.value,"onUpdate:modelValue":i[0]||=e=>m.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:_},null,8,[`modelValue`]),o(`button`,f,l(h.value?`Processing...`:`Send`),1)]),o(`div`,p,[i[1]||=o(`h3`,{"font-normal":``},` Streaming Message `,-1),o(`div`,null,l(g.value.content),1)])]))}}),h=m;export{h as default}; \ No newline at end of file +import"./Basic-IbpirTdD.js";import{b as e}from"./Textarea-CCCcUNHl.js";import{W as t,eA as n,eD as r,eG as i,eH as a,eR as o,f2 as s,f7 as c,fb as l}from"./index-D3Bcbz9S.js";const u={flex:``,"flex-col":``,"gap-2":``,"p-2":``},d={flex:``,"flex-row":``,"gap-2":``},f={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},p={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var m=a({__name:`filter-message`,setup(a){let m=s(``),h=s(!1),g=s({content:``});async function _(){h.value=!0;let e=m.value.split(``),n=function(e){return e.Literal=`literal`,e.Special=`special`,e}({}),r=n.Literal,i=``;for(let a of e){await t(50);let e=r;a===`<`?e=n.Special:a===`>`&&(e=n.Literal),r===n.Literal&&e===n.Special&&(g.value.content+=i,i=``),r===n.Special&&e===n.Literal&&(i=``),r===n.Literal&&e===n.Literal&&(g.value.content+=a,i=``),r=e}i&&(g.value.content+=i),m.value=``,h.value=!1}return(t,a)=>(o(),r(`div`,u,[n(`div`,d,[i(c(e),{modelValue:m.value,"onUpdate:modelValue":a[0]||=e=>m.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:_},null,8,[`modelValue`]),n(`button`,f,l(h.value?`Processing...`:`Send`),1)]),n(`div`,p,[a[1]||=n(`h3`,{"font-normal":``},` Streaming Message `,-1),n(`div`,null,l(g.value.content),1)])]))}}),h=m;export{h as default}; \ No newline at end of file diff --git a/assets/fireworks-ai-uNnJ5PQ2.js b/assets/fireworks-ai-XKOYd2IG.js similarity index 59% rename from assets/fireworks-ai-uNnJ5PQ2.js rename to assets/fireworks-ai-XKOYd2IG.js index 7fea765231fe5b77b2b3e9cc1db519716bf5a55c..a5539037aeb948f8c6471e1ba376e01d35356b79 100644 --- a/assets/fireworks-ai-uNnJ5PQ2.js +++ b/assets/fireworks-ai-XKOYd2IG.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`fireworks-ai`;var x=f({__name:`fireworks-ai`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`fw-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.fireworks.ai/inference/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`fireworks-ai`;var x=p({__name:`fireworks-ai`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`fw-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.fireworks.ai/inference/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/general-CKI4PH85.js b/assets/general-xS0QHfzZ.js similarity index 77% rename from assets/general-CKI4PH85.js rename to assets/general-xS0QHfzZ.js index d453d722edc7e8cf1698fb688b510fe0fa855115..c8ee4926ccaa3ad8aef5eb33bae4c808474cbac7 100644 --- a/assets/general-CKI4PH85.js +++ b/assets/general-xS0QHfzZ.js @@ -1 +1 @@ -import{aV as e,a_ as t,ae as n,bU as r,c as i,e$ as a,eC as o,eF as s,eG as c,eQ as l,eV as u,ey as d,ez as f,f0 as p,f6 as m}from"./index-DEhol03r.js";import{b as h}from"./route-block-Dc_s4AGN.js";const g={en:`English`,es:`Español`,ru:`Русский`,vi:`Tiếng Việt`,"zh-Hans":`简体中文`,"zh-Hant":`繁體中文`},_={"rounded-lg":``,"bg-neutral-50":``,"p-4":``,"dark:bg-neutral-800":``,flex:`~ col gap-4`},v={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var y=c({__name:`general`,setup(c){let h=i(),{t:y}=n(),b=r(),x=d(()=>Object.entries(g).map(([e,t])=>({value:e,label:t})));return(n,r)=>{let i=u(`motion`);return l(),o(`div`,_,[a(s(m(t),{modelValue:m(b),"onUpdate:modelValue":r[0]||=e=>p(b)?b.value=e:null,"mb-2":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:270,delay:100,label:m(y)(`settings.theme.title`),description:m(y)(`settings.theme.description`)},null,8,[`modelValue`,`label`,`description`]),[[i]]),a(s(m(e),{modelValue:m(h).language,"onUpdate:modelValue":r[1]||=e=>m(h).language=e,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:280,delay:150,transition:`all ease-in-out duration-250`,label:m(y)(`settings.language.title`),description:m(y)(`settings.language.description`),options:x.value},null,8,[`modelValue`,`label`,`description`,`options`]),[[i]]),a((l(),o(`div`,v,[...r[2]||=[f(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)]])),[[i]])])}}});typeof h==`function`&&h(y);var b=y;export{b as default}; \ No newline at end of file +import{a$ as e,aW as t,ae as n,bV as r,c as i,eA as a,eD as o,eG as s,eH as c,eR as l,eW as u,ez as d,f0 as f,f1 as p,f7 as m}from"./index-D3Bcbz9S.js";import{b as h}from"./route-block-Dc_s4AGN.js";const g={en:`English`,es:`Español`,ru:`Русский`,vi:`Tiếng Việt`,"zh-Hans":`简体中文`,"zh-Hant":`繁體中文`},_={"rounded-lg":``,"bg-neutral-50":``,"p-4":``,"dark:bg-neutral-800":``,flex:`~ col gap-4`},v={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[65dvh]`,"right--15":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:30},enter:{scale:1,opacity:1,rotate:0},duration:250,flex:``,"items-center":``,"justify-center":``};var y=c({__name:`general`,setup(c){let h=i(),{t:y}=n(),b=r(),x=d(()=>Object.entries(g).map(([e,t])=>({value:e,label:t})));return(n,r)=>{let i=u(`motion`);return l(),o(`div`,_,[f(s(m(e),{modelValue:m(b),"onUpdate:modelValue":r[0]||=e=>p(b)?b.value=e:null,"mb-2":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:270,delay:100,label:m(y)(`settings.theme.title`),description:m(y)(`settings.theme.description`)},null,8,[`modelValue`,`label`,`description`]),[[i]]),f(s(m(t),{modelValue:m(h).language,"onUpdate:modelValue":r[1]||=e=>m(h).language=e,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:280,delay:150,transition:`all ease-in-out duration-250`,label:m(y)(`settings.language.title`),description:m(y)(`settings.language.description`),options:x.value},null,8,[`modelValue`,`label`,`description`,`options`]),[[i]]),f((l(),o(`div`,v,[...r[2]||=[a(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)]])),[[i]])])}}});typeof h==`function`&&h(y);var b=y;export{b as default}; \ No newline at end of file diff --git a/assets/gesture-circle-BQ-DUzun.js b/assets/gesture-circle-BQ-DUzun.js deleted file mode 100644 index 10dd99057e609c49513bfc2ed978069504ea52bd..0000000000000000000000000000000000000000 --- a/assets/gesture-circle-BQ-DUzun.js +++ /dev/null @@ -1 +0,0 @@ -import{bW as e,c2 as t,c3 as n,c6 as r,c7 as i,eC as a,eG as o,eQ as s,eY as c,ey as l,ez as u,f1 as d,f6 as f,fa as p}from"./index-DEhol03r.js";import{b as m}from"./route-block-Dc_s4AGN.js";const h={relative:``,"h-full":``},g={bg:`neutral-100/50 dark:neutral-900/50`,absolute:``,"inset-0":``,"h-fit":``,"rounded-xl":``,"px-3":``,"py-2":``,"font-mono":``,"shadow-md":``,"backdrop-blur-md":``,grid:`~ cols-[150px_1fr]`};var _=o({__name:`gesture-circle`,setup(o){let m=d(),_=d(),v=d(),y=d(),{x:b,y:x}=t({target:v}),S=e(_,{immediate:!0,windowResize:!0}),C=l(()=>({x:b.value,y:x.value}));n(_,e=>{let t=e[0],{width:n,height:r}=t.contentRect;v.value&&(v.value.width=n,v.value.height=r)}),c(_,e=>{if(!e)return;let t=document.createElement(`canvas`);t.width=S.width.value,t.height=S.height.value,t.style.objectFit=`contain`;let n=t.getContext(`2d`);y.value=n,v.value=t,_.value?.appendChild(t)});let w=i(C,50),T=r(C,50),E=d(T.value),D=d(0),O=d(0),k=d(!1),A=d([]),j=d(!1);return c([b,x],()=>{y.value&&(y.value.beginPath(),y.value.fillStyle=`red`,y.value.arc(b.value-20,x.value-40-40,4,0,2*Math.PI),y.value.closePath(),y.value.fill())}),c(T,()=>{if(j.value=!1,y.value&&y.value.reset(),A.value.length>=6){let e=A.value.reduce((e,t)=>e+t.x,0)/A.value.length,t=A.value.reduce((e,t)=>e+t.y,0)/A.value.length,n=A.value.map(n=>Math.sqrt((n.x-e)**2+(n.y-t)**2)),r=n.reduce((e,t)=>e+t,0)/n.length,i=n.reduce((e,t)=>e+(t-r)**2,0)/n.length,a=Math.sqrt(i);a<20&&(O.value++,j.value=!0)}A.value=[]}),c(w,e=>{A.value.push(e)}),(e,t)=>(s(),a(`div`,{ref_key:`containerRef`,ref:m,h:`[calc(100dvh-40px)]`},[u(`div`,h,[u(`div`,g,[t[0]||=u(`div`,{text:`neutral-400 dark:neutral-600`},` pointThrottled: `,-1),u(`div`,null,p(f(w)),1),t[1]||=u(`div`,{text:`neutral-400 dark:neutral-600`},` pointDebounced: `,-1),u(`div`,null,p(f(T)),1),t[2]||=u(`div`,{text:`neutral-400 dark:neutral-600`},` lastPoint: `,-1),u(`div`,null,p(E.value),1),t[3]||=u(`div`,{text:`neutral-400 dark:neutral-600`},` distance: `,-1),u(`div`,null,p(D.value),1),t[4]||=u(`div`,{text:`neutral-400 dark:neutral-600`},` count: `,-1),u(`div`,null,p(O.value),1),t[5]||=u(`div`,{text:`neutral-400 dark:neutral-600`},` show: `,-1),u(`div`,null,p(k.value),1),t[6]||=u(`div`,{text:`neutral-400 dark:neutral-600`},` lastPoints: `,-1),u(`div`,null,p(A.value),1),t[7]||=u(`div`,{text:`neutral-400 dark:neutral-600`},` isCircle: `,-1),u(`div`,null,p(j.value),1)]),u(`div`,{ref_key:`canvasContainerRef`,ref:_,"h-full":``,"w-full":``},null,512)])],512))}});typeof m==`function`&&m(_);var v=_;export{v as default}; \ No newline at end of file diff --git a/assets/gesture-circle-DW4NEEG3.js b/assets/gesture-circle-DW4NEEG3.js new file mode 100644 index 0000000000000000000000000000000000000000..b2c2fc362301727f252dfd2e662889ca7e5ed40e --- /dev/null +++ b/assets/gesture-circle-DW4NEEG3.js @@ -0,0 +1 @@ +import{bX as e,c3 as t,c4 as n,c7 as r,c8 as i,eA as a,eD as o,eH as s,eR as c,eZ as l,ez as u,f2 as d,f7 as f,fb as p}from"./index-D3Bcbz9S.js";import{b as m}from"./route-block-Dc_s4AGN.js";const h={relative:``,"h-full":``},g={bg:`neutral-100/50 dark:neutral-900/50`,absolute:``,"inset-0":``,"h-fit":``,"rounded-xl":``,"px-3":``,"py-2":``,"font-mono":``,"shadow-md":``,"backdrop-blur-md":``,grid:`~ cols-[150px_1fr]`};var _=s({__name:`gesture-circle`,setup(s){let m=d(),_=d(),v=d(),y=d(),{x:b,y:x}=t({target:v}),S=e(_,{immediate:!0,windowResize:!0}),C=u(()=>({x:b.value,y:x.value}));n(_,e=>{let t=e[0],{width:n,height:r}=t.contentRect;v.value&&(v.value.width=n,v.value.height=r)}),l(_,e=>{if(!e)return;let t=document.createElement(`canvas`);t.width=S.width.value,t.height=S.height.value,t.style.objectFit=`contain`;let n=t.getContext(`2d`);y.value=n,v.value=t,_.value?.appendChild(t)});let w=i(C,50),T=r(C,50),E=d(T.value),D=d(0),O=d(0),k=d(!1),A=d([]),j=d(!1);return l([b,x],()=>{y.value&&(y.value.beginPath(),y.value.fillStyle=`red`,y.value.arc(b.value-20,x.value-40-40,4,0,2*Math.PI),y.value.closePath(),y.value.fill())}),l(T,()=>{if(j.value=!1,y.value&&y.value.reset(),A.value.length>=6){let e=A.value.reduce((e,t)=>e+t.x,0)/A.value.length,t=A.value.reduce((e,t)=>e+t.y,0)/A.value.length,n=A.value.map(n=>Math.sqrt((n.x-e)**2+(n.y-t)**2)),r=n.reduce((e,t)=>e+t,0)/n.length,i=n.reduce((e,t)=>e+(t-r)**2,0)/n.length,a=Math.sqrt(i);a<20&&(O.value++,j.value=!0)}A.value=[]}),l(w,e=>{A.value.push(e)}),(e,t)=>(c(),o(`div`,{ref_key:`containerRef`,ref:m,h:`[calc(100dvh-40px)]`},[a(`div`,h,[a(`div`,g,[t[0]||=a(`div`,{text:`neutral-400 dark:neutral-600`},` pointThrottled: `,-1),a(`div`,null,p(f(w)),1),t[1]||=a(`div`,{text:`neutral-400 dark:neutral-600`},` pointDebounced: `,-1),a(`div`,null,p(f(T)),1),t[2]||=a(`div`,{text:`neutral-400 dark:neutral-600`},` lastPoint: `,-1),a(`div`,null,p(E.value),1),t[3]||=a(`div`,{text:`neutral-400 dark:neutral-600`},` distance: `,-1),a(`div`,null,p(D.value),1),t[4]||=a(`div`,{text:`neutral-400 dark:neutral-600`},` count: `,-1),a(`div`,null,p(O.value),1),t[5]||=a(`div`,{text:`neutral-400 dark:neutral-600`},` show: `,-1),a(`div`,null,p(k.value),1),t[6]||=a(`div`,{text:`neutral-400 dark:neutral-600`},` lastPoints: `,-1),a(`div`,null,p(A.value),1),t[7]||=a(`div`,{text:`neutral-400 dark:neutral-600`},` isCircle: `,-1),a(`div`,null,p(j.value),1)]),a(`div`,{ref_key:`canvasContainerRef`,ref:_,"h-full":``,"w-full":``},null,512)])],512))}});typeof m==`function`&&m(_);var v=_;export{v as default}; \ No newline at end of file diff --git a/assets/google-generative-ai-Dm_xZ9XG.js b/assets/google-generative-ai-Cnho5aZ0.js similarity index 62% rename from assets/google-generative-ai-Dm_xZ9XG.js rename to assets/google-generative-ai-Cnho5aZ0.js index eac47769d587288a40133381a629bda09d5dbeb7..986e735467f409deda0e9b8ccd3dc9fbc88e7b88 100644 --- a/assets/google-generative-ai-Dm_xZ9XG.js +++ b/assets/google-generative-ai-Cnho5aZ0.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`google-generative-ai`;var x=f({__name:`google-generative-ai`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||`https://generativelanguage.googleapis.com/v1beta/openai/`,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{C.value[b]||(C.value[b]={baseUrl:`https://api.anthropic.com/v1/`}),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||`https://generativelanguage.googleapis.com/v1beta/openai/`}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||`https://generativelanguage.googleapis.com/v1beta/openai/`}});function D(){C.value[b]={baseUrl:`https://generativelanguage.googleapis.com/v1beta/openai/`}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName||`Google | Gemini`,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName||`Google`,placeholder:`GEMINI_API_KEY`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://generativelanguage.googleapis.com/v1beta/openai/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`google-generative-ai`;var x=p({__name:`google-generative-ai`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||`https://generativelanguage.googleapis.com/v1beta/openai/`,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{C.value[b]||(C.value[b]={baseUrl:`https://api.anthropic.com/v1/`}),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||`https://generativelanguage.googleapis.com/v1beta/openai/`}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||`https://generativelanguage.googleapis.com/v1beta/openai/`}});function D(){C.value[b]={baseUrl:`https://generativelanguage.googleapis.com/v1beta/openai/`}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName||`Google | Gemini`,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName||`Google`,placeholder:`GEMINI_API_KEY`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://generativelanguage.googleapis.com/v1beta/openai/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/hearing-EgcjzOdT.js b/assets/hearing-BXMZCHIN.js similarity index 93% rename from assets/hearing-EgcjzOdT.js rename to assets/hearing-BXMZCHIN.js index 8a31df201ff3e518e15e8a3d7c6bc0adb3e24c1b..4c0a2d4edd88388696d07e2309e4845e6f63e362 100644 --- a/assets/hearing-EgcjzOdT.js +++ b/assets/hearing-BXMZCHIN.js @@ -1 +1 @@ -import{a4 as e,aa as t,ab as n,ac as r,ad as i,bO as a,bP as o,bY as s,ey as c,f1 as l}from"./index-DEhol03r.js";const u=async e=>{let a=new FormData;return a.append(`model`,e.model),a.append(`file`,e.file,e.fileName),a.append(`response_format`,e.responseFormat??`json`),e.responseFormat===`verbose_json`&&a.append(`timestamp_granularities[]`,e.timestampGranularities??`segment`),e.language!=null&&a.append(`language`,e.language),e.prompt!=null&&a.append(`prompt`,e.prompt),e.temperature!=null&&a.append(`temperature`,e.temperature),(e.fetch??globalThis.fetch)(n(`audio/transcriptions`,e.baseURL),{body:a,headers:t(e.headers,e.apiKey),method:`POST`,signal:e.abortSignal}).then(r).then(i)},d=a(`hearing-store`,()=>{let t=e(),{allAudioTranscriptionProvidersMetadata:n}=o(t),r=s(`settings/hearing/active-provider`,``),i=s(`settings/hearing/active-model`,``),a=s(`settings/hearing/active-custom-model`,``),d=l(``),f=c(()=>n.value),p=c(()=>t.getProviderMetadata(r.value)?.capabilities.listModels!==void 0),m=c(()=>t.getModelsForProvider(r.value)),h=c(()=>t.isLoadingModels[r.value]||!1),g=c(()=>t.modelLoadError[r.value]||null);async function _(e){e&&t.getProviderMetadata(e)?.capabilities.listModels!==void 0&&await t.fetchModelsForProvider(e)}async function v(e){return e&&t.getProviderMetadata(e)?.capabilities.listModels!==void 0?t.getModelsForProvider(e):[]}let y=c(()=>!!r.value&&!!i.value);async function b(e,t,n,r){let i=await u({...e.transcription(t),file:n,responseFormat:r});return i}return{activeTranscriptionProvider:r,activeTranscriptionModel:i,availableProvidersMetadata:f,activeCustomModelName:a,transcriptionModelSearchQuery:d,supportsModelListing:p,providerModels:m,isLoadingActiveProviderModels:h,activeProviderModelError:g,configured:y,transcription:b,loadModelsForProvider:_,getModelsForProvider:v}});export{d as b}; \ No newline at end of file +import{a4 as e,aa as t,ab as n,ac as r,ad as i,bP as a,bQ as o,bZ as s,ez as c,f2 as l}from"./index-D3Bcbz9S.js";const u=async e=>{let a=new FormData;return a.append(`model`,e.model),a.append(`file`,e.file,e.fileName),a.append(`response_format`,e.responseFormat??`json`),e.responseFormat===`verbose_json`&&a.append(`timestamp_granularities[]`,e.timestampGranularities??`segment`),e.language!=null&&a.append(`language`,e.language),e.prompt!=null&&a.append(`prompt`,e.prompt),e.temperature!=null&&a.append(`temperature`,e.temperature),(e.fetch??globalThis.fetch)(n(`audio/transcriptions`,e.baseURL),{body:a,headers:t(e.headers,e.apiKey),method:`POST`,signal:e.abortSignal}).then(r).then(i)},d=a(`hearing-store`,()=>{let t=e(),{allAudioTranscriptionProvidersMetadata:n}=o(t),r=s(`settings/hearing/active-provider`,``),i=s(`settings/hearing/active-model`,``),a=s(`settings/hearing/active-custom-model`,``),d=l(``),f=c(()=>n.value),p=c(()=>t.getProviderMetadata(r.value)?.capabilities.listModels!==void 0),m=c(()=>t.getModelsForProvider(r.value)),h=c(()=>t.isLoadingModels[r.value]||!1),g=c(()=>t.modelLoadError[r.value]||null);async function _(e){e&&t.getProviderMetadata(e)?.capabilities.listModels!==void 0&&await t.fetchModelsForProvider(e)}async function v(e){return e&&t.getProviderMetadata(e)?.capabilities.listModels!==void 0?t.getModelsForProvider(e):[]}let y=c(()=>!!r.value&&!!i.value);async function b(e,t,n,r){let i=await u({...e.transcription(t),file:n,responseFormat:r});return i}return{activeTranscriptionProvider:r,activeTranscriptionModel:i,availableProvidersMetadata:f,activeCustomModelName:a,transcriptionModelSearchQuery:d,supportsModelListing:p,providerModels:m,isLoadingActiveProviderModels:h,activeProviderModelError:g,configured:y,transcription:b,loadModelsForProvider:_,getModelsForProvider:v}});export{d as b}; \ No newline at end of file diff --git a/assets/hearing-YvgT5AIO.js b/assets/hearing-YvgT5AIO.js new file mode 100644 index 0000000000000000000000000000000000000000..311a07eeebb6275ccd3bf16a4b8fa873e05d647b --- /dev/null +++ b/assets/hearing-YvgT5AIO.js @@ -0,0 +1 @@ +import"./merge-D5ueGMzg.js";import{D as e,J as t,P as n,a$ as r,a4 as i,aB as a,aJ as o,aK as s,aL as c,aW as ee,aX as l,ae as te,an as u,ao as ne,aq as re,ar as ie,as as ae,bQ as d,d as oe,e$ as f,eA as p,eB as m,eC as h,eD as g,eF as _,eG as v,eH as se,eP as ce,eQ as le,eR as y,eT as ue,eV as de,eZ as b,ew as fe,ez as pe,f1 as x,f2 as S,f7 as C,f8 as me,fb as w}from"./index-D3Bcbz9S.js";import{b as T,e as E}from"./transformers.web-Dd3aeuYz.js";import{b as D}from"./route-block-Dc_s4AGN.js";import"./ibl-CoXg6NDS.js";import{b as he}from"./hearing-BXMZCHIN.js";import"./composables-Tp0cITw9.js";var ge=`/assets/process.worklet-DatbHzOU.js`;function _e(e,t,n){let r,i,a,{audioContextOptions:o={sampleRate:16e3,latencyHint:`interactive`}}=n||{},s=new AudioContext(o);async function c(){(!s||s.state===`closed`)&&(s=new AudioContext(o));try{await s.audioWorklet.addModule(t),r=new AudioWorkletNode(s,`vad-audio-worklet-processor`),r.port.onmessage=async t=>{let{buffer:n}=t.data;n&&n.length>0&&await e.processAudio(new Float32Array(n))}}catch(e){throw console.error(`Failed to initialize audio worklet:`,e),e}}async function ee(e){if(!s||!r)throw Error(`Audio system not initialized. Call initialize() first.`);try{s.state===`suspended`&&await s.resume(),i=e,a=s.createMediaStreamSource(i),a.connect(r);let t=s.createGain();t.gain.value=0,r.connect(t),t.connect(s.destination)}catch(e){throw console.error(`Failed to start microphone:`,e),e}}function l(){s&&s.suspend()}function te(){a&&=(a.disconnect(),null),r&&=(r.disconnect(),null),i&&=(i.getTracks().forEach(e=>e.stop()),null),s&&s.state!==`closed`&&s.close()}return{initialize:c,start:ee,stop:l,dispose:te}}var O=class{config;model;state;sampleRateTensor;buffer;bufferPointer=0;isRecording=!1;postSpeechSamples=0;prevBuffers=[];inferenceChain=Promise.resolve();eventListeners={};isReady=!1;constructor(e={}){let t={sampleRate:16e3,speechThreshold:.3,exitThreshold:.1,minSilenceDurationMs:400,speechPadMs:80,minSpeechDurationMs:250,maxBufferDuration:30,newBufferSize:512};this.config={...t,...e},this.buffer=new Float32Array(this.config.maxBufferDuration*this.config.sampleRate),this.sampleRateTensor=new E(`int64`,[this.config.sampleRate],[]),this.state=new E(`float32`,new Float32Array(256),[2,1,128])}async initialize(){try{this.emit(`status`,{type:`info`,message:`Loading VAD model...`}),this.model=await T.from_pretrained(`onnx-community/silero-vad`,{config:{model_type:`custom`},dtype:`fp32`}),this.isReady=!0,this.emit(`status`,{type:`info`,message:`VAD model loaded successfully`})}catch(e){throw this.emit(`status`,{type:`error`,message:`Failed to load VAD model: ${e}`}),e}}on(e,t){this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t)}off(e,t){this.eventListeners[e]&&(this.eventListeners[e]=this.eventListeners[e].filter(e=>e!==t))}emit(e,t){if(this.eventListeners[e])for(let n of this.eventListeners[e])n(t)}async processAudio(e){if(!this.isReady)throw Error(`VAD model is not initialized. Call initialize() first.`);let t=this.isRecording,n=await this.detectSpeech(e),r=this.config.sampleRate/1e3,i=this.config.minSilenceDurationMs*r,a=this.config.speechPadMs*r,o=this.config.minSpeechDurationMs*r,s=Math.ceil(a/this.config.newBufferSize);if(!t&&!n){this.prevBuffers.length>=s&&this.prevBuffers.shift(),this.prevBuffers.push(e.slice(0));return}let c=this.buffer.length-this.bufferPointer;if(e.length>=c){this.buffer.set(e.subarray(0,c),this.bufferPointer),this.bufferPointer+=c;let t=e.subarray(c);this.processSpeechSegment(t);return}else this.buffer.set(e,this.bufferPointer),this.bufferPointer+=e.length;if(n){this.isRecording||(this.emit(`speech-start`,void 0),this.emit(`status`,{type:`info`,message:`Speech detected`})),this.isRecording=!0,this.postSpeechSamples=0;return}if(this.postSpeechSamples+=e.length,this.postSpeechSamples>=i){if(this.bufferPointerthis.model?.({input:t,sr:this.sampleRateTensor,state:this.state})));this.state=n;let i=r.data[0];return this.emit(`debug`,{message:`VAD score`,data:{probability:i}}),i>this.config.speechThreshold||this.isRecording&&i>=this.config.exitThreshold}processSpeechSegment(e){let t=this.config.sampleRate/1e3,n=this.config.speechPadMs*t,r=this.bufferPointer/this.config.sampleRate*1e3,i=e?.length??0,a=this.prevBuffers.reduce((e,t)=>e+t.length,0),o=new Float32Array(a+this.bufferPointer+n),s=0;for(let e of this.prevBuffers)o.set(e,s),s+=e.length;o.set(this.buffer.slice(0,this.bufferPointer+n),s),this.emit(`speech-end`,void 0),this.emit(`speech-ready`,{buffer:o,duration:r}),e&&this.buffer.set(e,0),this.reset(i)}reset(e=0){this.buffer.fill(0,e),this.bufferPointer=e,this.isRecording=!1,this.postSpeechSamples=0,this.prevBuffers=[]}updateConfig(e){this.config={...this.config,...e},(e.maxBufferDuration||e.sampleRate)&&(this.buffer=new Float32Array(this.config.maxBufferDuration*this.config.sampleRate),this.bufferPointer=0),e.sampleRate&&(this.sampleRateTensor=new E(`int64`,[this.config.sampleRate],[]))}};async function ve(e){let t=new O(e);return await t.initialize(),t}const ye={flex:`~ col md:row gap-6`},be={bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`,class:`h-fit w-full md:w-[40%]`},xe={flex:`~ col gap-4`},Se={flex:`~ col gap-4`},Ce={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-500`},we={text:`neutral-400 dark:neutral-400`},Te={"max-w-full":``},Ee={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},De={key:1},Oe={key:0},ke={flex:`~ col gap-4`},Ae={class:`text-lg md:text-2xl`},je={text:`neutral-400 dark:neutral-400`},Me={key:0,class:`flex items-center justify-center py-4`},Ne={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},Pe={"w-full":``,"rounded-xl":``},Fe={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},Ie={class:`inline-flex items-center gap-4`},Le=[`src`],Re={key:0,class:`mt-2 text-sm text-neutral-500 dark:text-neutral-400`},ze={flex:`~ col gap-4`},Be={class:`space-y-4`},Ve={class:`space-y-3`},He={key:1,class:`space-y-3`},Ue={key:2,class:`space-y-3`},We={class:`flex items-center gap-3`},Ge={class:`text-sm font-medium`},Ke={class:`ml-auto text-xs text-neutral-500`},qe={class:`border-t border-neutral-200 pt-3 dark:border-neutral-700`},Je={key:0,class:`mt-3 space-y-2`},Ye={key:0,class:`flex items-center gap-2 text-primary-600 dark:text-primary-400`},Xe={key:2,class:`flex items-center gap-2 text-green-600 dark:text-green-400`},Ze={class:`ml-auto text-xs text-neutral-500`},Qe={key:0,class:`border-t border-neutral-200 pt-4 dark:border-neutral-700`},$e={key:0,class:`mt-3`},et={key:1,class:`border border-amber-200 rounded-lg bg-amber-50 p-3 dark:border-amber-800 dark:bg-amber-900/20`};var k=se({__name:`hearing`,setup(se){let{t:T}=te(),E=he(),{activeTranscriptionProvider:D,activeTranscriptionModel:O,providerModels:k,activeProviderModelError:A,isLoadingActiveProviderModels:j,supportsModelListing:tt,transcriptionModelSearchQuery:M,activeCustomModelName:nt}=d(E),N=i(),{configuredTranscriptionProvidersMetadata:rt}=d(N),{stopStream:it,startStream:at}=oe(),{audioInputs:ot,selectedAudioInput:P,stream:F}=d(oe()),{startRecord:st,stopRecord:ct,onStopRecord:lt}=e(F),{startAnalyzer:ut,stopAnalyzer:dt,onAnalyzerUpdate:ft,volumeLevel:pt}=t(),{audioContext:I}=d(n()),L=S(``),R=S(``),z=S(!1),B=S(!1),V=S(),mt=S(),H=S(!1),U=S(25),W=S(50),G=S(),K=S(!1),q=S(!1),J=S(!0),Y=S(0),X=S(.5),Z=S([]),ht=S([]),gt=S([]),_t=pe(()=>ht.value.map(e=>{let t=URL.createObjectURL(e);return gt.value.push(()=>URL.revokeObjectURL(t)),t})),Q=S([]);async function vt(){if(!(K.value||q.value)){q.value=!0,R.value=``;try{let e=await ve({sampleRate:16e3,speechThreshold:X.value,exitThreshold:X.value*.3,minSilenceDurationMs:400});e.on(`speech-start`,()=>{H.value=!0,st()}),e.on(`speech-end`,()=>{H.value=!1,ct()}),e.on(`debug`,({data:e})=>{e?.probability!==void 0&&(Y.value=e.probability,Z.value.push(e.probability),Z.value.length>50&&Z.value.shift())}),e.on(`status`,({type:e,message:t})=>{e===`error`&&(R.value=t)});let t=_e(e,ge,{minChunkSize:512,audioContextOptions:{sampleRate:16e3,latencyHint:`interactive`}});await t.initialize(),G.value=t,K.value=!0}catch(e){R.value=e instanceof Error?e.message:String(e),console.error(`Failed to load VAD model:`,e)}finally{q.value=!1}}}lt(async e=>{if(e)try{if(e&&e.size>0){ht.value.push(e);let t=await N.getProviderInstance(D.value);if(!t)throw Error(`Failed to initialize speech provider`);let n=O.value,r=await E.transcription(t,n,new File([e],`recording.wav`));Q.value.push(r.text)}}catch(e){L.value=e instanceof Error?e.message:String(e),console.error(`Error generating transcription:`,L.value)}});async function yt(){try{if(!P.value){console.warn(`No audio input device selected`);return}if(await $(),await at(),!F.value){console.warn(`No audio stream available`);return}let e=I.value.createMediaStreamSource(F.value),t=ut(I.value);ft(e=>{(!J.value||!K.value)&&(H.value=e>U.value)}),V.value=I.value.createGain(),V.value.gain.value=B.value?W.value/100:0,t&&e.connect(t),B.value&&(e.connect(V.value),V.value.connect(I.value.destination)),J.value&&(await vt(),G.value&&await G.value.start(F.value))}catch(e){console.error(`Error setting up audio monitoring:`,e),R.value=e instanceof Error?e.message:String(e)}}async function $(){mt.value&&=(cancelAnimationFrame(mt.value),void 0),G.value&&await G.value.stop(),F.value&&it(),dt(),V.value=void 0,H.value=!1,Y.value=0,Z.value=[]}async function bt(){!I.value||!V.value||(B.value?(V.value.gain.value=W.value/100,V.value.connect(I.value.destination)):(V.value.gain.value=0,V.value.disconnect()))}b(P,async()=>{z.value&&await yt()}),b(B,bt),b(W,()=>{V.value&&B.value&&(V.value.gain.value=W.value/100)}),b(X,()=>{G.value&&K.value});async function xt(){z.value?(await $(),z.value=!1):(await yt(),z.value=!0)}let St=pe(()=>{if(!J.value||!K.value)return H.value?`bg-green-500 shadow-lg shadow-green-500/50`:`bg-white dark:bg-neutral-900 border-2 border-neutral-300 dark:border-neutral-600`;let e=Y.value,t=X.value;return e>t?`bg-green-500 shadow-lg shadow-green-500/50`:e>t*.5?`bg-yellow-500 shadow-lg shadow-yellow-500/30`:`bg-white dark:bg-neutral-900 border-2 border-neutral-300 dark:border-neutral-600`});function Ct(e){nt.value=e}return ce(async()=>{await E.loadModelsForProvider(D.value)}),le(()=>{$(),G.value&&G.value.dispose(),gt.value.forEach(e=>e())}),(e,t)=>{let n=de(`RouterLink`);return y(),g(`div`,ye,[p(`div`,be,[p(`div`,xe,[p(`div`,null,[v(C(ee),{modelValue:C(P),"onUpdate:modelValue":t[0]||=e=>x(P)?P.value=e:null,label:`Audio Input Device`,description:`Select the audio input device for your hearing module.`,options:C(ot).map(e=>({label:e.label||e.deviceId,value:e.deviceId})),placeholder:`Select an audio input device`,layout:`vertical`},null,8,[`modelValue`,`options`])]),p(`div`,Se,[p(`div`,null,[p(`h2`,Ce,w(C(T)(`settings.pages.providers.title`)),1),p(`div`,we,[p(`span`,null,w(C(T)(`settings.pages.modules.hearing.sections.section.provider-selection.description`)),1)])]),p(`div`,Te,[C(rt).length>0?(y(),g(`fieldset`,Ee,[(y(!0),g(fe,null,ue(C(rt),e=>(y(),m(C(re),{id:e.id,key:e.id,modelValue:C(D),"onUpdate:modelValue":t[1]||=e=>x(D)?D.value=e:null,name:`provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(y(),g(`div`,De,[v(n,{class:`flex items-center gap-3 rounded-lg p-4`,border:`2 dashed neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-800`,transition:`colors duration-200 ease-in-out`,to:`/settings/providers`},{default:f(()=>[...t[9]||=[p(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),p(`div`,{class:`flex flex-col`},[p(`span`,{class:`font-medium`},`No Providers Configured`),p(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your Transcription providers`)],-1),p(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]]),_:1})]))])]),C(D)&&C(tt)?(y(),g(`div`,Oe,[p(`div`,ke,[p(`div`,null,[p(`h2`,Ae,w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),p(`div`,je,[p(`span`,null,w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),C(j)?(y(),g(`div`,Me,[t[10]||=p(`div`,{class:`mr-2 animate-spin`},[p(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),p(`span`,null,w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):C(A)?(y(),m(C(u),{key:1,title:C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`),error:C(A)},null,8,[`title`,`error`])):C(k).length===0&&!C(j)?(y(),m(C(ae),{key:2,type:`warning`},{title:f(()=>[_(w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1)]),content:f(()=>[_(w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)]),_:1})):C(k).length>0?(y(),m(C(ie),{key:3,modelValue:C(O),"onUpdate:modelValue":t[2]||=e=>x(O)?O.value=e:null,"search-query":C(M),"onUpdate:searchQuery":t[3]||=e=>x(M)?M.value=e:null,items:C(k).sort((e,t)=>e.id===C(O)?-1:t.id===C(O)?1:0),searchable:!0,"search-placeholder":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:C(M)}),"search-results-text":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":Ct},null,8,[`modelValue`,`search-query`,`items`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`])):h(``,!0)])])):h(``,!0)])]),p(`div`,Ne,[p(`div`,Pe,[p(`h2`,Fe,[p(`div`,Ie,[v(C(s)),p(`div`,null,w(C(T)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),L.value?(y(),m(C(u),{key:0,title:`Error occurred`,error:L.value,"mb-4":``},null,8,[`error`])):h(``,!0),v(C(ne),{class:`mb-4`,"w-full":``,onClick:xt},{default:f(()=>[_(w(z.value?`Stop Monitoring`:`Start Monitoring`),1)]),_:1}),p(`div`,null,[(y(!0),g(fe,null,ue(_t.value,(e,t)=>(y(),g(`div`,{key:t,class:`mb-2`},[p(`audio`,{src:e,controls:``,class:`w-full`},null,8,Le),Q.value[t]?(y(),g(`div`,Re,w(Q.value[t]),1)):h(``,!0)]))),128))]),p(`div`,ze,[p(`div`,Be,[p(`div`,Ve,[v(C(c),{level:C(pt),label:`Input Level`},null,8,[`level`]),J.value&&K.value?(y(),m(C(o),{key:0,value:Y.value,threshold:X.value,label:`Probability of Speech`,"below-label":`Silence`,"above-label":`Speech`,"threshold-label":`Detection threshold`},null,8,[`value`,`threshold`])):h(``,!0),J.value&&K.value?(y(),g(`div`,He,[v(C(l),{modelValue:X.value,"onUpdate:modelValue":t[4]||=e=>X.value=e,label:`Sensitivity`,description:`Adjust the threshold for speech detection`,min:.1,max:.9,step:.05,"format-value":e=>`${(e*100).toFixed(0)}%`},null,8,[`modelValue`,`format-value`])])):(y(),g(`div`,Ue,[v(C(l),{modelValue:U.value,"onUpdate:modelValue":t[5]||=e=>U.value=e,label:`Sensitivity`,description:`Adjust the threshold for speech detection`,min:1,max:80,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`format-value`])])),p(`div`,We,[p(`div`,{class:me([`h-4 w-4 rounded-full transition-all duration-200`,St.value])},null,2),p(`span`,Ge,w(H.value?`Speaking Detected`:`Silence`),1),p(`span`,Ke,w(J.value&&K.value?`Model Based`:`Volume Based`),1)]),p(`div`,qe,[v(C(r),{modelValue:J.value,"onUpdate:modelValue":t[6]||=e=>J.value=e,label:`Model Based`,description:`Use AI models for more accurate speech detection`},null,8,[`modelValue`]),J.value?(y(),g(`div`,Je,[q.value?(y(),g(`div`,Ye,[...t[11]||=[p(`div`,{class:`animate-spin text-sm`,"i-solar:spinner-line-duotone":``},null,-1),p(`span`,{class:`text-sm`},`Loading...`,-1)]])):R.value?(y(),m(C(u),{key:1,title:`Inference error`,error:R.value},null,8,[`error`])):K.value?(y(),g(`div`,Xe,[t[12]||=p(`div`,{class:`text-sm`,"i-solar:check-circle-bold-duotone":``},null,-1),t[13]||=p(`span`,{class:`text-sm`},`Activated`,-1),p(`span`,Ze,` Probability: `+w((Y.value*100).toFixed(1))+`% `,1)])):h(``,!0)])):h(``,!0)]),J.value&&K.value?(y(),m(C(a),{key:3,history:Z.value,"current-value":Y.value,threshold:X.value,"is-active":H.value,title:`Voice Activity`,subtitle:`Last 2 seconds`,"active-label":`Speaking`,"active-legend-label":`Voice detected`,"inactive-legend-label":`Silence`,"threshold-label":`Speech threshold`},null,8,[`history`,`current-value`,`threshold`,`is-active`])):h(``,!0)]),z.value?(y(),g(`div`,Qe,[v(C(r),{modelValue:B.value,"onUpdate:modelValue":t[7]||=e=>B.value=e,label:`Monitor Audio (Listen)`,description:`Enable audio playback monitoring (like OBS). Be careful of feedback!`},null,8,[`modelValue`]),B.value?(y(),g(`div`,$e,[v(C(l),{modelValue:W.value,"onUpdate:modelValue":t[8]||=e=>W.value=e,label:`Monitor Volume`,description:`Control the volume of audio monitoring playback`,min:0,max:100,step:5,"format-value":e=>`${e}%`},null,8,[`modelValue`,`format-value`])])):h(``,!0)])):h(``,!0),B.value?(y(),g(`div`,et,[...t[14]||=[p(`div`,{class:`flex items-center gap-2 text-amber-700 dark:text-amber-300`},[p(`div`,{class:`text-sm`,"i-solar:warning-circle-bold-duotone":``}),p(`span`,{class:`text-sm font-medium`},`Audio feedback warning`)],-1),p(`div`,{class:`mt-1 text-xs text-amber-600 dark:text-amber-400`},` Use headphones to prevent audio feedback. Lower the monitor volume if you hear echoing. `,-1)]])):h(``,!0)])])])])])}}});typeof D==`function`&&D(k);var A=k;export{A as default}; \ No newline at end of file diff --git a/assets/hearing-pH404Jfn.js b/assets/hearing-pH404Jfn.js deleted file mode 100644 index bf390cd0445368246875c362420dd5ad3c48362c..0000000000000000000000000000000000000000 --- a/assets/hearing-pH404Jfn.js +++ /dev/null @@ -1 +0,0 @@ -import"./merge-D5ueGMzg.js";import{D as e,J as t,P as n,a4 as r,aA as i,aI as a,aJ as o,aK as s,aV as c,aW as l,a_ as u,ae as ee,an as d,ao as te,aq as ne,ar as re,as as ie,bP as f,d as ae,eA as p,eB as m,eC as h,eE as g,eF as _,eG as oe,eO as se,eP as ce,eQ as v,eS as le,eU as ue,eY as y,e_ as b,ev as de,ey as fe,ez as x,f0 as S,f1 as C,f6 as w,f7 as pe,fa as T}from"./index-DEhol03r.js";import{b as E,e as D}from"./transformers.web-0yVxjCoi.js";import{b as O}from"./route-block-Dc_s4AGN.js";import"./ibl-CbBD07sa.js";import{b as me}from"./hearing-EgcjzOdT.js";import"./composables-C5AKp2DU.js";var he=`/assets/process.worklet-DatbHzOU.js`;function ge(e,t,n){let r,i,a,{audioContextOptions:o={sampleRate:16e3,latencyHint:`interactive`}}=n||{},s=new AudioContext(o);async function c(){(!s||s.state===`closed`)&&(s=new AudioContext(o));try{await s.audioWorklet.addModule(t),r=new AudioWorkletNode(s,`vad-audio-worklet-processor`),r.port.onmessage=async t=>{let{buffer:n}=t.data;n&&n.length>0&&await e.processAudio(new Float32Array(n))}}catch(e){throw console.error(`Failed to initialize audio worklet:`,e),e}}async function l(e){if(!s||!r)throw Error(`Audio system not initialized. Call initialize() first.`);try{s.state===`suspended`&&await s.resume(),i=e,a=s.createMediaStreamSource(i),a.connect(r);let t=s.createGain();t.gain.value=0,r.connect(t),t.connect(s.destination)}catch(e){throw console.error(`Failed to start microphone:`,e),e}}function u(){s&&s.suspend()}function ee(){a&&=(a.disconnect(),null),r&&=(r.disconnect(),null),i&&=(i.getTracks().forEach(e=>e.stop()),null),s&&s.state!==`closed`&&s.close()}return{initialize:c,start:l,stop:u,dispose:ee}}var k=class{config;model;state;sampleRateTensor;buffer;bufferPointer=0;isRecording=!1;postSpeechSamples=0;prevBuffers=[];inferenceChain=Promise.resolve();eventListeners={};isReady=!1;constructor(e={}){let t={sampleRate:16e3,speechThreshold:.3,exitThreshold:.1,minSilenceDurationMs:400,speechPadMs:80,minSpeechDurationMs:250,maxBufferDuration:30,newBufferSize:512};this.config={...t,...e},this.buffer=new Float32Array(this.config.maxBufferDuration*this.config.sampleRate),this.sampleRateTensor=new D(`int64`,[this.config.sampleRate],[]),this.state=new D(`float32`,new Float32Array(256),[2,1,128])}async initialize(){try{this.emit(`status`,{type:`info`,message:`Loading VAD model...`}),this.model=await E.from_pretrained(`onnx-community/silero-vad`,{config:{model_type:`custom`},dtype:`fp32`}),this.isReady=!0,this.emit(`status`,{type:`info`,message:`VAD model loaded successfully`})}catch(e){throw this.emit(`status`,{type:`error`,message:`Failed to load VAD model: ${e}`}),e}}on(e,t){this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t)}off(e,t){this.eventListeners[e]&&(this.eventListeners[e]=this.eventListeners[e].filter(e=>e!==t))}emit(e,t){if(this.eventListeners[e])for(let n of this.eventListeners[e])n(t)}async processAudio(e){if(!this.isReady)throw Error(`VAD model is not initialized. Call initialize() first.`);let t=this.isRecording,n=await this.detectSpeech(e),r=this.config.sampleRate/1e3,i=this.config.minSilenceDurationMs*r,a=this.config.speechPadMs*r,o=this.config.minSpeechDurationMs*r,s=Math.ceil(a/this.config.newBufferSize);if(!t&&!n){this.prevBuffers.length>=s&&this.prevBuffers.shift(),this.prevBuffers.push(e.slice(0));return}let c=this.buffer.length-this.bufferPointer;if(e.length>=c){this.buffer.set(e.subarray(0,c),this.bufferPointer),this.bufferPointer+=c;let t=e.subarray(c);this.processSpeechSegment(t);return}else this.buffer.set(e,this.bufferPointer),this.bufferPointer+=e.length;if(n){this.isRecording||(this.emit(`speech-start`,void 0),this.emit(`status`,{type:`info`,message:`Speech detected`})),this.isRecording=!0,this.postSpeechSamples=0;return}if(this.postSpeechSamples+=e.length,this.postSpeechSamples>=i){if(this.bufferPointerthis.model?.({input:t,sr:this.sampleRateTensor,state:this.state})));this.state=n;let i=r.data[0];return this.emit(`debug`,{message:`VAD score`,data:{probability:i}}),i>this.config.speechThreshold||this.isRecording&&i>=this.config.exitThreshold}processSpeechSegment(e){let t=this.config.sampleRate/1e3,n=this.config.speechPadMs*t,r=this.bufferPointer/this.config.sampleRate*1e3,i=e?.length??0,a=this.prevBuffers.reduce((e,t)=>e+t.length,0),o=new Float32Array(a+this.bufferPointer+n),s=0;for(let e of this.prevBuffers)o.set(e,s),s+=e.length;o.set(this.buffer.slice(0,this.bufferPointer+n),s),this.emit(`speech-end`,void 0),this.emit(`speech-ready`,{buffer:o,duration:r}),e&&this.buffer.set(e,0),this.reset(i)}reset(e=0){this.buffer.fill(0,e),this.bufferPointer=e,this.isRecording=!1,this.postSpeechSamples=0,this.prevBuffers=[]}updateConfig(e){this.config={...this.config,...e},(e.maxBufferDuration||e.sampleRate)&&(this.buffer=new Float32Array(this.config.maxBufferDuration*this.config.sampleRate),this.bufferPointer=0),e.sampleRate&&(this.sampleRateTensor=new D(`int64`,[this.config.sampleRate],[]))}};async function _e(e){let t=new k(e);return await t.initialize(),t}const ve={flex:`~ col md:row gap-6`},ye={bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`,class:`h-fit w-full md:w-[40%]`},be={flex:`~ col gap-4`},xe={flex:`~ col gap-4`},Se={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-500`},Ce={text:`neutral-400 dark:neutral-400`},we={"max-w-full":``},Te={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},Ee={key:1},De={key:0},Oe={flex:`~ col gap-4`},ke={class:`text-lg md:text-2xl`},Ae={text:`neutral-400 dark:neutral-400`},je={key:0,class:`flex items-center justify-center py-4`},Me={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},Ne={"w-full":``,"rounded-xl":``},Pe={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},Fe={class:`inline-flex items-center gap-4`},Ie=[`src`],Le={key:0,class:`mt-2 text-sm text-neutral-500 dark:text-neutral-400`},Re={flex:`~ col gap-4`},ze={class:`space-y-4`},Be={class:`space-y-3`},Ve={key:1,class:`space-y-3`},He={key:2,class:`space-y-3`},Ue={class:`flex items-center gap-3`},We={class:`text-sm font-medium`},Ge={class:`ml-auto text-xs text-neutral-500`},Ke={class:`border-t border-neutral-200 pt-3 dark:border-neutral-700`},qe={key:0,class:`mt-3 space-y-2`},Je={key:0,class:`flex items-center gap-2 text-primary-600 dark:text-primary-400`},Ye={key:2,class:`flex items-center gap-2 text-green-600 dark:text-green-400`},Xe={class:`ml-auto text-xs text-neutral-500`},Ze={key:0,class:`border-t border-neutral-200 pt-4 dark:border-neutral-700`},Qe={key:0,class:`mt-3`},$e={key:1,class:`border border-amber-200 rounded-lg bg-amber-50 p-3 dark:border-amber-800 dark:bg-amber-900/20`};var A=oe({__name:`hearing`,setup(oe){let{t:E}=ee(),D=me(),{activeTranscriptionProvider:O,activeTranscriptionModel:k,providerModels:A,activeProviderModelError:j,isLoadingActiveProviderModels:M,supportsModelListing:et,transcriptionModelSearchQuery:N,activeCustomModelName:tt}=f(D),nt=r(),{configuredTranscriptionProvidersMetadata:rt}=f(nt),{stopStream:it,startStream:at}=ae(),{audioInputs:ot,selectedAudioInput:P,stream:F}=f(ae()),{startRecord:st,stopRecord:ct,onStopRecord:lt}=e(F),{startAnalyzer:ut,stopAnalyzer:dt,onAnalyzerUpdate:ft,volumeLevel:pt}=t(),{audioContext:I}=f(n()),L=C(``),R=C(``),z=C(!1),B=C(!1),V=C(),mt=C(),H=C(!1),U=C(25),W=C(50),G=C(),K=C(!1),q=C(!1),J=C(!0),Y=C(0),X=C(.5),Z=C([]),ht=C([]),gt=C([]),_t=fe(()=>ht.value.map(e=>{let t=URL.createObjectURL(e);return gt.value.push(()=>URL.revokeObjectURL(t)),t})),Q=C([]);async function vt(){if(!(K.value||q.value)){q.value=!0,R.value=``;try{let e=await _e({sampleRate:16e3,speechThreshold:X.value,exitThreshold:X.value*.3,minSilenceDurationMs:400});e.on(`speech-start`,()=>{H.value=!0,st()}),e.on(`speech-end`,()=>{H.value=!1,ct()}),e.on(`debug`,({data:e})=>{e?.probability!==void 0&&(Y.value=e.probability,Z.value.push(e.probability),Z.value.length>50&&Z.value.shift())}),e.on(`status`,({type:e,message:t})=>{e===`error`&&(R.value=t)});let t=ge(e,he,{minChunkSize:512,audioContextOptions:{sampleRate:16e3,latencyHint:`interactive`}});await t.initialize(),G.value=t,K.value=!0}catch(e){R.value=e instanceof Error?e.message:String(e),console.error(`Failed to load VAD model:`,e)}finally{q.value=!1}}}lt(async e=>{if(e)try{if(e&&e.size>0){ht.value.push(e);let t=await nt.getProviderInstance(O.value);if(!t)throw Error(`Failed to initialize speech provider`);let n=k.value,r=await D.transcription(t,n,new File([e],`recording.wav`));Q.value.push(r.text)}}catch(e){L.value=e instanceof Error?e.message:String(e),console.error(`Error generating transcription:`,L.value)}});async function yt(){try{if(!P.value){console.warn(`No audio input device selected`);return}if(await $(),await at(),!F.value){console.warn(`No audio stream available`);return}let e=I.value.createMediaStreamSource(F.value),t=ut(I.value);ft(e=>{(!J.value||!K.value)&&(H.value=e>U.value)}),V.value=I.value.createGain(),V.value.gain.value=B.value?W.value/100:0,t&&e.connect(t),B.value&&(e.connect(V.value),V.value.connect(I.value.destination)),J.value&&(await vt(),G.value&&await G.value.start(F.value))}catch(e){console.error(`Error setting up audio monitoring:`,e),R.value=e instanceof Error?e.message:String(e)}}async function $(){mt.value&&=(cancelAnimationFrame(mt.value),void 0),G.value&&await G.value.stop(),F.value&&it(),dt(),V.value=void 0,H.value=!1,Y.value=0,Z.value=[]}async function bt(){!I.value||!V.value||(B.value?(V.value.gain.value=W.value/100,V.value.connect(I.value.destination)):(V.value.gain.value=0,V.value.disconnect()))}y(P,async()=>{z.value&&await yt()}),y(B,bt),y(W,()=>{V.value&&B.value&&(V.value.gain.value=W.value/100)}),y(X,()=>{G.value&&K.value});async function xt(){z.value?(await $(),z.value=!1):(await yt(),z.value=!0)}let St=fe(()=>{if(!J.value||!K.value)return H.value?`bg-green-500 shadow-lg shadow-green-500/50`:`bg-white dark:bg-neutral-900 border-2 border-neutral-300 dark:border-neutral-600`;let e=Y.value,t=X.value;return e>t?`bg-green-500 shadow-lg shadow-green-500/50`:e>t*.5?`bg-yellow-500 shadow-lg shadow-yellow-500/30`:`bg-white dark:bg-neutral-900 border-2 border-neutral-300 dark:border-neutral-600`});function Ct(e){tt.value=e}return se(async()=>{await D.loadModelsForProvider(O.value)}),ce(()=>{$(),G.value&&G.value.dispose(),gt.value.forEach(e=>e())}),(e,t)=>{let n=ue(`RouterLink`);return v(),h(`div`,ve,[x(`div`,ye,[x(`div`,be,[x(`div`,null,[_(w(c),{modelValue:w(P),"onUpdate:modelValue":t[0]||=e=>S(P)?P.value=e:null,label:`Audio Input Device`,description:`Select the audio input device for your hearing module.`,options:w(ot).map(e=>({label:e.label||e.deviceId,value:e.deviceId})),placeholder:`Select an audio input device`,layout:`vertical`},null,8,[`modelValue`,`options`])]),x(`div`,xe,[x(`div`,null,[x(`h2`,Se,T(w(E)(`settings.pages.providers.title`)),1),x(`div`,Ce,[x(`span`,null,T(w(E)(`settings.pages.modules.hearing.sections.section.provider-selection.description`)),1)])]),x(`div`,we,[w(rt).length>0?(v(),h(`fieldset`,Te,[(v(!0),h(de,null,le(w(rt),e=>(v(),p(w(ne),{id:e.id,key:e.id,modelValue:w(O),"onUpdate:modelValue":t[1]||=e=>S(O)?O.value=e:null,name:`provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(v(),h(`div`,Ee,[_(n,{class:`flex items-center gap-3 rounded-lg p-4`,border:`2 dashed neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-800`,transition:`colors duration-200 ease-in-out`,to:`/settings/providers`},{default:b(()=>[...t[9]||=[x(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),x(`div`,{class:`flex flex-col`},[x(`span`,{class:`font-medium`},`No Providers Configured`),x(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your Transcription providers`)],-1),x(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]]),_:1})]))])]),w(O)&&w(et)?(v(),h(`div`,De,[x(`div`,Oe,[x(`div`,null,[x(`h2`,ke,T(w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),x(`div`,Ae,[x(`span`,null,T(w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),w(M)?(v(),h(`div`,je,[t[10]||=x(`div`,{class:`mr-2 animate-spin`},[x(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),x(`span`,null,T(w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):w(j)?(v(),p(w(d),{key:1,title:w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`),error:w(j)},null,8,[`title`,`error`])):w(A).length===0&&!w(M)?(v(),p(w(ie),{key:2,type:`warning`},{title:b(()=>[g(T(w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1)]),content:b(()=>[g(T(w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)]),_:1})):w(A).length>0?(v(),p(w(re),{key:3,modelValue:w(k),"onUpdate:modelValue":t[2]||=e=>S(k)?k.value=e:null,"search-query":w(N),"onUpdate:searchQuery":t[3]||=e=>S(N)?N.value=e:null,items:w(A).sort((e,t)=>e.id===w(k)?-1:t.id===w(k)?1:0),searchable:!0,"search-placeholder":w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:w(N)}),"search-results-text":w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":w(E)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":Ct},null,8,[`modelValue`,`search-query`,`items`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`])):m(``,!0)])])):m(``,!0)])]),x(`div`,Me,[x(`div`,Ne,[x(`h2`,Pe,[x(`div`,Fe,[_(w(o)),x(`div`,null,T(w(E)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),L.value?(v(),p(w(d),{key:0,title:`Error occurred`,error:L.value,"mb-4":``},null,8,[`error`])):m(``,!0),_(w(te),{class:`mb-4`,"w-full":``,onClick:xt},{default:b(()=>[g(T(z.value?`Stop Monitoring`:`Start Monitoring`),1)]),_:1}),x(`div`,null,[(v(!0),h(de,null,le(_t.value,(e,t)=>(v(),h(`div`,{key:t,class:`mb-2`},[x(`audio`,{src:e,controls:``,class:`w-full`},null,8,Ie),Q.value[t]?(v(),h(`div`,Le,T(Q.value[t]),1)):m(``,!0)]))),128))]),x(`div`,Re,[x(`div`,ze,[x(`div`,Be,[_(w(s),{level:w(pt),label:`Input Level`},null,8,[`level`]),J.value&&K.value?(v(),p(w(a),{key:0,value:Y.value,threshold:X.value,label:`Probability of Speech`,"below-label":`Silence`,"above-label":`Speech`,"threshold-label":`Detection threshold`},null,8,[`value`,`threshold`])):m(``,!0),J.value&&K.value?(v(),h(`div`,Ve,[_(w(l),{modelValue:X.value,"onUpdate:modelValue":t[4]||=e=>X.value=e,label:`Sensitivity`,description:`Adjust the threshold for speech detection`,min:.1,max:.9,step:.05,"format-value":e=>`${(e*100).toFixed(0)}%`},null,8,[`modelValue`,`format-value`])])):(v(),h(`div`,He,[_(w(l),{modelValue:U.value,"onUpdate:modelValue":t[5]||=e=>U.value=e,label:`Sensitivity`,description:`Adjust the threshold for speech detection`,min:1,max:80,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`format-value`])])),x(`div`,Ue,[x(`div`,{class:pe([`h-4 w-4 rounded-full transition-all duration-200`,St.value])},null,2),x(`span`,We,T(H.value?`Speaking Detected`:`Silence`),1),x(`span`,Ge,T(J.value&&K.value?`Model Based`:`Volume Based`),1)]),x(`div`,Ke,[_(w(u),{modelValue:J.value,"onUpdate:modelValue":t[6]||=e=>J.value=e,label:`Model Based`,description:`Use AI models for more accurate speech detection`},null,8,[`modelValue`]),J.value?(v(),h(`div`,qe,[q.value?(v(),h(`div`,Je,[...t[11]||=[x(`div`,{class:`animate-spin text-sm`,"i-solar:spinner-line-duotone":``},null,-1),x(`span`,{class:`text-sm`},`Loading...`,-1)]])):R.value?(v(),p(w(d),{key:1,title:`Inference error`,error:R.value},null,8,[`error`])):K.value?(v(),h(`div`,Ye,[t[12]||=x(`div`,{class:`text-sm`,"i-solar:check-circle-bold-duotone":``},null,-1),t[13]||=x(`span`,{class:`text-sm`},`Activated`,-1),x(`span`,Xe,` Probability: `+T((Y.value*100).toFixed(1))+`% `,1)])):m(``,!0)])):m(``,!0)]),J.value&&K.value?(v(),p(w(i),{key:3,history:Z.value,"current-value":Y.value,threshold:X.value,"is-active":H.value,title:`Voice Activity`,subtitle:`Last 2 seconds`,"active-label":`Speaking`,"active-legend-label":`Voice detected`,"inactive-legend-label":`Silence`,"threshold-label":`Speech threshold`},null,8,[`history`,`current-value`,`threshold`,`is-active`])):m(``,!0)]),z.value?(v(),h(`div`,Ze,[_(w(u),{modelValue:B.value,"onUpdate:modelValue":t[7]||=e=>B.value=e,label:`Monitor Audio (Listen)`,description:`Enable audio playback monitoring (like OBS). Be careful of feedback!`},null,8,[`modelValue`]),B.value?(v(),h(`div`,Qe,[_(w(l),{modelValue:W.value,"onUpdate:modelValue":t[8]||=e=>W.value=e,label:`Monitor Volume`,description:`Control the volume of audio monitoring playback`,min:0,max:100,step:5,"format-value":e=>`${e}%`},null,8,[`modelValue`,`format-value`])])):m(``,!0)])):m(``,!0),B.value?(v(),h(`div`,$e,[...t[14]||=[x(`div`,{class:`flex items-center gap-2 text-amber-700 dark:text-amber-300`},[x(`div`,{class:`text-sm`,"i-solar:warning-circle-bold-duotone":``}),x(`span`,{class:`text-sm font-medium`},`Audio feedback warning`)],-1),x(`div`,{class:`mt-1 text-xs text-amber-600 dark:text-amber-400`},` Use headphones to prevent audio feedback. Lower the monitor volume if you hear echoing. `,-1)]])):m(``,!0)])])])])])}}});typeof O==`function`&&O(A);var j=A;export{j as default}; \ No newline at end of file diff --git a/assets/home-DDpShUXq.js b/assets/home-DDpShUXq.js deleted file mode 100644 index a95c48dc8ddbcf20569dd038c7521737620fc6e5..0000000000000000000000000000000000000000 --- a/assets/home-DDpShUXq.js +++ /dev/null @@ -1 +0,0 @@ -import{bK as e,eC as t,eF as n,eG as r,eQ as i,ez as a,f6 as o}from"./index-DEhol03r.js";const s={style:{paddingBottom:`env(safe-area-inset-bottom, 0px)`,paddingTop:`env(safe-area-inset-top, 0px)`,paddingRight:`env(safe-area-inset-right, 0px)`,paddingLeft:`env(safe-area-inset-left, 0px)`},"h-full":``},c={class:`px-3 py-2 md:px-5 md:py-5`,flex:`~ col`,"h-full":``};var l=r({__name:`home`,setup(r){return(r,l)=>(i(),t(`div`,s,[a(`div`,c,[n(o(e))])]))}}),u=l;export{u as default}; \ No newline at end of file diff --git a/assets/home-ZV8SKFZK.js b/assets/home-ZV8SKFZK.js new file mode 100644 index 0000000000000000000000000000000000000000..9225e7bb3a4f026b59c82b350e7797feef31e444 --- /dev/null +++ b/assets/home-ZV8SKFZK.js @@ -0,0 +1 @@ +import{bL as e,eA as t,eD as n,eG as r,eH as i,eR as a,f7 as o}from"./index-D3Bcbz9S.js";const s={style:{paddingBottom:`env(safe-area-inset-bottom, 0px)`,paddingTop:`env(safe-area-inset-top, 0px)`,paddingRight:`env(safe-area-inset-right, 0px)`,paddingLeft:`env(safe-area-inset-left, 0px)`},"h-full":``},c={class:`px-3 py-2 md:px-5 md:py-5`,flex:`~ col`,"h-full":``};var l=i({__name:`home`,setup(i){return(i,l)=>(a(),n(`div`,s,[t(`div`,c,[r(o(e))])]))}}),u=l;export{u as default}; \ No newline at end of file diff --git a/assets/ibl-CbBD07sa.js b/assets/ibl-CbBD07sa.js deleted file mode 100644 index 8ca38f179bd652d653abccdd4fe5c8cf8e029d67..0000000000000000000000000000000000000000 --- a/assets/ibl-CbBD07sa.js +++ /dev/null @@ -1,1048 +0,0 @@ -import{c$ as e,cC as t,cE as n,cF as r,cN as i,cO as a,cP as o,cR as s,cT as c,cW as l,cX as u,cY as d,c_ as f,cm as p,cq as m,cs as h,ct as g,cv as _,cw as v,cx as y,cy as b,d$ as x,d0 as ee,d1 as te,d2 as ne,d3 as re,d4 as ie,d5 as ae,d6 as oe,d7 as se,d8 as ce,d9 as le,dC as ue,dD as S,dE as de,dF as fe,dH as pe,dI as me,dJ as he,dK as ge,dL as C,dM as _e,dN as ve,dW as ye,dX as be,d_ as xe,da as Se,db as Ce,dc as we,dd as Te,de as Ee,df as w,dh as De,di as Oe,dl as ke,dm as T,dn as E,do as D,dp as Ae,dq as O,dt as k,du as je,dv as Me,dw as Ne,dx as Pe,dy as Fe,e0 as Ie,e1 as A,e4 as Le,e6 as Re,e7 as ze,e8 as Be,e9 as Ve,ea as He,eb as Ue,ed as We,eh as j,ei as M,ek as Ge,f1 as N}from"./index-DEhol03r.js";Math.PI/180,180/Math.PI;function Ke(e,t,n){return(1-n)*e+n*t}function P(e,t){return e+Math.random()*(t-e)}const F=[[.075,800],[.11,0],[.125,0],[.14,0],[.125,0],[.05,0],[.04,0],[.03,0],[.02,0],[1,0]];for(let e=1;e0;)if(r){let t=n.indexOf(`|>`);if(t<0)break;let i=n.slice(0,t+2);n=n.slice(t+2),await e.onSpecial?.(i),r=!1}else{let i=n.indexOf(`<|`);if(i<0){if(n.length-1>=t){let t=n.slice(0,-1);n=n[n.length-1],await e.onLiteral?.(t)}break}if(i>0){let t=n.slice(0,i);n=n.slice(i),await e.onLiteral?.(t)}r=!0}},async end(){!r&&n.length>0&&(await e.onLiteral?.(n),n=``)}}} -/*! -* @pixiv/three-vrm v3.4.2 -* VRM file loader for three.js. -* -* Copyright (c) 2019-2025 pixiv Inc. -* @pixiv/three-vrm is distributed under MIT License -* https://github.com/pixiv/three-vrm/blob/release/LICENSE -*/ -var Ye=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),I=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Xe=class extends S{constructor(e){super(),this.weight=0,this.isBinary=!1,this.overrideBlink=`none`,this.overrideLookAt=`none`,this.overrideMouth=`none`,this._binds=[],this.name=`VRMExpression_${e}`,this.expressionName=e,this.type=`VRMExpression`,this.visible=!1}get binds(){return this._binds}get overrideBlinkAmount(){return this.overrideBlink===`block`?0.5?1:0:this.weight}addBind(e){this._binds.push(e)}deleteBind(e){let t=this._binds.indexOf(e);t>=0&&this._binds.splice(t,1)}applyWeight(e){var t;let n=this.outputWeight;n*=(t=e?.multiplier)??1,this.isBinary&&n<1&&(n=0),this._binds.forEach(e=>e.applyWeight(n))}clearAppliedWeight(){this._binds.forEach(e=>e.clearAppliedWeight())}};function Ze(e,t,n){var r,i;let a=e.parser.json,o=(r=a.nodes)?.[t];if(o==null)return console.warn(`extractPrimitivesInternal: Attempt to use nodes[${t}] of glTF but the node doesn't exist`),null;let s=o.mesh;if(s==null)return null;let c=(i=a.meshes)?.[s];if(c==null)return console.warn(`extractPrimitivesInternal: Attempt to use meshes[${s}] of glTF but the mesh doesn't exist`),null;let l=c.primitives.length,u=[];return n.traverse(e=>{u.length{let i=Ze(e,r,t);i!=null&&n.set(r,i)}),n})}var et={Aa:`aa`,Ih:`ih`,Ou:`ou`,Ee:`ee`,Oh:`oh`,Blink:`blink`,Happy:`happy`,Angry:`angry`,Sad:`sad`,Relaxed:`relaxed`,LookUp:`lookUp`,Surprised:`surprised`,LookDown:`lookDown`,LookLeft:`lookLeft`,LookRight:`lookRight`,BlinkLeft:`blinkLeft`,BlinkRight:`blinkRight`,Neutral:`neutral`};function tt(e){return Math.max(Math.min(e,1),0)}var nt=class e{constructor(){this.blinkExpressionNames=[`blink`,`blinkLeft`,`blinkRight`],this.lookAtExpressionNames=[`lookLeft`,`lookRight`,`lookUp`,`lookDown`],this.mouthExpressionNames=[`aa`,`ee`,`ih`,`oh`,`ou`],this._expressions=[],this._expressionMap={}}get expressions(){return this._expressions.concat()}get expressionMap(){return Object.assign({},this._expressionMap)}get presetExpressionMap(){let e={},t=new Set(Object.values(et));return Object.entries(this._expressionMap).forEach(([n,r])=>{t.has(n)&&(e[n]=r)}),e}get customExpressionMap(){let e={},t=new Set(Object.values(et));return Object.entries(this._expressionMap).forEach(([n,r])=>{t.has(n)||(e[n]=r)}),e}copy(e){let t=this._expressions.concat();return t.forEach(e=>{this.unregisterExpression(e)}),e._expressions.forEach(e=>{this.registerExpression(e)}),this.blinkExpressionNames=e.blinkExpressionNames.concat(),this.lookAtExpressionNames=e.lookAtExpressionNames.concat(),this.mouthExpressionNames=e.mouthExpressionNames.concat(),this}clone(){return new e().copy(this)}getExpression(e){var t;return(t=this._expressionMap[e])??null}registerExpression(e){this._expressions.push(e),this._expressionMap[e.expressionName]=e}unregisterExpression(e){let t=this._expressions.indexOf(e);t===-1&&console.warn(`VRMExpressionManager: The specified expressions is not registered`),this._expressions.splice(t,1),delete this._expressionMap[e.expressionName]}getValue(e){var t;let n=this.getExpression(e);return(t=n?.weight)??null}setValue(e,t){let n=this.getExpression(e);n&&(n.weight=tt(t))}resetValues(){this._expressions.forEach(e=>{e.weight=0})}getExpressionTrackName(e){let t=this.getExpression(e);return t?`${t.name}.weight`:null}update(){let e=this._calculateWeightMultipliers();this._expressions.forEach(e=>{e.clearAppliedWeight()}),this._expressions.forEach(t=>{let n=1,r=t.expressionName;this.blinkExpressionNames.indexOf(r)!==-1&&(n*=e.blink),this.lookAtExpressionNames.indexOf(r)!==-1&&(n*=e.lookAt),this.mouthExpressionNames.indexOf(r)!==-1&&(n*=e.mouth),t.applyWeight({multiplier:n})})}_calculateWeightMultipliers(){let e=1,t=1,n=1;return this._expressions.forEach(r=>{e-=r.overrideBlinkAmount,t-=r.overrideLookAtAmount,n-=r.overrideMouthAmount}),e=Math.max(0,e),t=Math.max(0,t),n=Math.max(0,n),{blink:e,lookAt:t,mouth:n}}},L={Color:`color`,EmissionColor:`emissionColor`,ShadeColor:`shadeColor`,MatcapColor:`matcapColor`,RimColor:`rimColor`,OutlineColor:`outlineColor`},rt={_Color:L.Color,_EmissionColor:L.EmissionColor,_ShadeColor:L.ShadeColor,_RimColor:L.RimColor,_OutlineColor:L.OutlineColor},it=new n,at=class e{constructor({material:e,type:t,targetValue:n,targetAlpha:r}){this.material=e,this.type=t,this.targetValue=n,this.targetAlpha=r??1;let i=this._initColorBindState(),a=this._initAlphaBindState();this._state={color:i,alpha:a}}applyWeight(e){let{color:t,alpha:n}=this._state;if(t!=null){let{propertyName:n,deltaValue:r}=t,i=this.material[n];i?.add(it.copy(r).multiplyScalar(e))}if(n!=null){let{propertyName:t,deltaValue:r}=n,i=this.material[t];i!=null&&(this.material[t]+=r*e)}}clearAppliedWeight(){let{color:e,alpha:t}=this._state;if(e!=null){let{propertyName:t,initialValue:n}=e,r=this.material[t];r?.copy(n)}if(t!=null){let{propertyName:e,initialValue:n}=t,r=this.material[e];r!=null&&(this.material[e]=n)}}_initColorBindState(){var e,t,r;let{material:i,type:a,targetValue:o}=this,s=this._getPropertyNameMap(),c=(t=(e=s?.[a])?.[0])??null;if(c==null)return console.warn(`Tried to add a material color bind to the material ${(r=i.name)??`(no name)`}, the type ${a} but the material or the type is not supported.`),null;let l=i[c],u=l.clone(),d=new n(o.r-u.r,o.g-u.g,o.b-u.b);return{propertyName:c,initialValue:u,deltaValue:d}}_initAlphaBindState(){var e,t,n;let{material:r,type:i,targetAlpha:a}=this,o=this._getPropertyNameMap(),s=(t=(e=o?.[i])?.[1])??null;if(s==null&&a!==1)return console.warn(`Tried to add a material alpha bind to the material ${(n=r.name)??`(no name)`}, the type ${i} but the material or the type does not support alpha.`),null;if(s==null)return null;let c=r[s],l=a-c;return{propertyName:s,initialValue:c,deltaValue:l}}_getPropertyNameMap(){var t,n;return(n=(t=Object.entries(e._propertyNameMapMap).find(([e])=>this.material[e]===!0))?.[1])??null}};at._propertyNameMapMap={isMeshStandardMaterial:{color:[`color`,`opacity`],emissionColor:[`emissive`,null]},isMeshBasicMaterial:{color:[`color`,`opacity`]},isMToonMaterial:{color:[`color`,`opacity`],emissionColor:[`emissive`,null],outlineColor:[`outlineColorFactor`,null],matcapColor:[`matcapFactor`,null],rimColor:[`parametricRimColorFactor`,null],shadeColor:[`shadeColorFactor`,null]}};var ot=at,st=class{constructor({primitives:e,index:t,weight:n}){this.primitives=e,this.index=t,this.weight=n}applyWeight(e){this.primitives.forEach(t=>{var n;(n=t.morphTargetInfluences)?.[this.index]!=null&&(t.morphTargetInfluences[this.index]+=this.weight*e)})}clearAppliedWeight(){this.primitives.forEach(e=>{var t;(t=e.morphTargetInfluences)?.[this.index]!=null&&(e.morphTargetInfluences[this.index]=0)})}},ct=new j,lt=class e{constructor({material:t,scale:n,offset:r}){var i,a;this.material=t,this.scale=n,this.offset=r;let o=(i=Object.entries(e._propertyNamesMap).find(([e])=>t[e]===!0))?.[1];o==null?(console.warn(`Tried to add a texture transform bind to the material ${(a=t.name)??`(no name)`} but the material is not supported.`),this._properties=[]):(this._properties=[],o.forEach(e=>{var i;let a=(i=t[e])?.clone();if(!a)return null;t[e]=a;let o=a.offset.clone(),s=a.repeat.clone(),c=r.clone().sub(o),l=n.clone().sub(s);this._properties.push({name:e,initialOffset:o,deltaOffset:c,initialScale:s,deltaScale:l})}))}applyWeight(e){this._properties.forEach(t=>{let n=this.material[t.name];n!==void 0&&(n.offset.add(ct.copy(t.deltaOffset).multiplyScalar(e)),n.repeat.add(ct.copy(t.deltaScale).multiplyScalar(e)))})}clearAppliedWeight(){this._properties.forEach(e=>{let t=this.material[e.name];t!==void 0&&(t.offset.copy(e.initialOffset),t.repeat.copy(e.initialScale))})}};lt._propertyNamesMap={isMeshStandardMaterial:[`map`,`emissiveMap`,`bumpMap`,`normalMap`,`displacementMap`,`roughnessMap`,`metalnessMap`,`alphaMap`],isMeshBasicMaterial:[`map`,`specularMap`,`alphaMap`],isMToonMaterial:[`map`,`normalMap`,`emissiveMap`,`shadeMultiplyTexture`,`rimMultiplyTexture`,`outlineWidthMultiplyTexture`,`uvAnimationMaskTexture`]};var ut=lt,dt=new Set([`1.0`,`1.0-beta`]),ft=class e{get name(){return`VRMExpressionLoaderPlugin`}constructor(e){this.parser=e}afterRoot(e){return I(this,null,function*(){e.userData.vrmExpressionManager=yield this._import(e)})}_import(e){return I(this,null,function*(){let t=yield this._v1Import(e);if(t)return t;let n=yield this._v0Import(e);return n||null})}_v1Import(e){return I(this,null,function*(){var t,r;let i=this.parser.json,a=(t=i.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!a)return null;let o=(r=i.extensions)?.VRMC_vrm;if(!o)return null;let s=o.specVersion;if(!dt.has(s))return console.warn(`VRMExpressionLoaderPlugin: Unknown VRMC_vrm specVersion "${s}"`),null;let c=o.expressions;if(!c)return null;let l=new Set(Object.values(et)),u=new Map;c.preset!=null&&Object.entries(c.preset).forEach(([e,t])=>{if(t!=null){if(!l.has(e)){console.warn(`VRMExpressionLoaderPlugin: Unknown preset name "${e}" detected. Ignoring the expression`);return}u.set(e,t)}}),c.custom!=null&&Object.entries(c.custom).forEach(([e,t])=>{if(l.has(e)){console.warn(`VRMExpressionLoaderPlugin: Custom expression cannot have preset name "${e}". Ignoring the expression`);return}u.set(e,t)});let d=new nt;return yield Promise.all(Array.from(u.entries()).map(t=>I(this,[t],function*([t,r]){var i,a,o,s,c,l,u;let f=new Xe(t);if(e.scene.add(f),f.isBinary=(i=r.isBinary)??!1,f.overrideBlink=(a=r.overrideBlink)??`none`,f.overrideLookAt=(o=r.overrideLookAt)??`none`,f.overrideMouth=(s=r.overrideMouth)??`none`,(c=r.morphTargetBinds)==null||c.forEach(t=>I(this,null,function*(){var n;if(t.node===void 0||t.index===void 0)return;let i=yield Qe(e,t.node),a=t.index;if(!i.every(e=>Array.isArray(e.morphTargetInfluences)&&a{let n=e.material;n&&(Array.isArray(n)?t.push(...n):t.push(n))}),(l=r.materialColorBinds)==null||l.forEach(e=>I(this,null,function*(){let r=t.filter(t=>{var n;let r=(n=this.parser.associations.get(t))?.materials;return e.material===r});r.forEach(t=>{f.addBind(new ot({material:t,type:e.type,targetValue:new n().fromArray(e.targetValue),targetAlpha:e.targetValue[3]}))})})),(u=r.textureTransformBinds)==null||u.forEach(e=>I(this,null,function*(){let n=t.filter(t=>{var n;let r=(n=this.parser.associations.get(t))?.materials;return e.material===r});n.forEach(t=>{var n,r;f.addBind(new ut({material:t,offset:new j().fromArray((n=e.offset)??[0,0]),scale:new j().fromArray((r=e.scale)??[1,1])}))})}))}d.registerExpression(f)}))),d})}_v0Import(t){return I(this,null,function*(){var r;let i=this.parser.json,a=(r=i.extensions)?.VRM;if(!a)return null;let o=a.blendShapeMaster;if(!o)return null;let s=new nt,c=o.blendShapeGroups;if(!c)return s;let l=new Set;return yield Promise.all(c.map(r=>I(this,null,function*(){var a;let o=r.presetName,c=o!=null&&e.v0v1PresetNameMap[o]||null,u=c??r.name;if(u==null){console.warn(`VRMExpressionLoaderPlugin: One of custom expressions has no name. Ignoring the expression`);return}if(l.has(u)){console.warn(`VRMExpressionLoaderPlugin: An expression preset ${o} has duplicated entries. Ignoring the expression`);return}l.add(u);let d=new Xe(u);t.scene.add(d),d.isBinary=(a=r.isBinary)??!1,r.binds&&r.binds.forEach(e=>I(this,null,function*(){var n;if(e.mesh===void 0||e.index===void 0)return;let a=[];(n=i.nodes)==null||n.forEach((t,n)=>{t.mesh===e.mesh&&a.push(n)});let o=e.index;yield Promise.all(a.map(n=>I(this,null,function*(){var i;let a=yield Qe(t,n);if(!a.every(e=>Array.isArray(e.morphTargetInfluences)&&o{if(e.materialName===void 0||e.propertyName===void 0||e.targetValue===void 0)return;let r=[];t.scene.traverse(t=>{if(t.material){let n=t.material;Array.isArray(n)?r.push(...n.filter(t=>(t.name===e.materialName||t.name===e.materialName+` (Outline)`)&&r.indexOf(t)===-1)):n.name===e.materialName&&r.indexOf(n)===-1&&r.push(n)}});let i=e.propertyName;r.forEach(t=>{if(i===`_MainTex_ST`){let n=new j(e.targetValue[0],e.targetValue[1]),r=new j(e.targetValue[2],e.targetValue[3]);r.y=1-r.y-n.y,d.addBind(new ut({material:t,scale:n,offset:r}));return}let r=rt[i];if(r){d.addBind(new ot({material:t,type:r,targetValue:new n().fromArray(e.targetValue),targetAlpha:e.targetValue[3]}));return}console.warn(i+` is not supported`)})}),s.registerExpression(d)}))),s})}};ft.v0v1PresetNameMap={a:`aa`,e:`ee`,i:`ih`,o:`oh`,u:`ou`,blink:`blink`,joy:`happy`,angry:`angry`,sorrow:`sad`,fun:`relaxed`,lookup:`lookUp`,lookdown:`lookDown`,lookleft:`lookLeft`,lookright:`lookRight`,blink_l:`blinkLeft`,blink_r:`blinkRight`,neutral:`neutral`};var pt=ft,mt=class e{constructor(t,n){this._firstPersonOnlyLayer=e.DEFAULT_FIRSTPERSON_ONLY_LAYER,this._thirdPersonOnlyLayer=e.DEFAULT_THIRDPERSON_ONLY_LAYER,this._initializedLayers=!1,this.humanoid=t,this.meshAnnotations=n}copy(e){if(this.humanoid!==e.humanoid)throw Error(`VRMFirstPerson: humanoid must be same in order to copy`);return this.meshAnnotations=e.meshAnnotations.map(e=>({meshes:e.meshes.concat(),type:e.type})),this}clone(){return new e(this.humanoid,this.meshAnnotations).copy(this)}get firstPersonOnlyLayer(){return this._firstPersonOnlyLayer}get thirdPersonOnlyLayer(){return this._thirdPersonOnlyLayer}setup({firstPersonOnlyLayer:t=e.DEFAULT_FIRSTPERSON_ONLY_LAYER,thirdPersonOnlyLayer:n=e.DEFAULT_THIRDPERSON_ONLY_LAYER}={}){this._initializedLayers||=(this._firstPersonOnlyLayer=t,this._thirdPersonOnlyLayer=n,this.meshAnnotations.forEach(e=>{e.meshes.forEach(t=>{e.type===`firstPersonOnly`?(t.layers.set(this._firstPersonOnlyLayer),t.traverse(e=>e.layers.set(this._firstPersonOnlyLayer))):e.type===`thirdPersonOnly`?(t.layers.set(this._thirdPersonOnlyLayer),t.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer))):e.type===`auto`&&this._createHeadlessModel(t)})}),!0)}_excludeTriangles(e,t,n,r){let i=0;if(t!=null&&t.length>0)for(let a=0;a0&&r.includes(u[0])||l[1]>0&&r.includes(u[1])||l[2]>0&&r.includes(u[2])||l[3]>0&&r.includes(u[3]))continue;let d=t[s],f=n[s];if(d[0]>0&&r.includes(f[0])||d[1]>0&&r.includes(f[1])||d[2]>0&&r.includes(f[2])||d[3]>0&&r.includes(f[3]))continue;let p=t[c],m=n[c];p[0]>0&&r.includes(m[0])||p[1]>0&&r.includes(m[1])||p[2]>0&&r.includes(m[2])||p[3]>0&&r.includes(m[3])||(e[i++]=o,e[i++]=s,e[i++]=c)}return i}_createErasedMesh(e,t){let n=new Ie(e.geometry.clone(),e.material);n.name=`${e.name}(erase)`,n.frustumCulled=e.frustumCulled,n.layers.set(this._firstPersonOnlyLayer);let r=n.geometry,i=r.getAttribute(`skinIndex`),a=i instanceof u?[]:i.array,o=[];for(let e=0;e{this._isEraseTarget(e)&&n.push(t)}),!n.length){t.layers.enable(this._thirdPersonOnlyLayer),t.layers.enable(this._firstPersonOnlyLayer);return}t.layers.set(this._thirdPersonOnlyLayer);let r=this._createErasedMesh(t,n);e.add(r)}_createHeadlessModel(e){if(e.type===`Group`)if(e.layers.set(this._thirdPersonOnlyLayer),this._isEraseTarget(e))e.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer));else{let t=new d;t.name=`_headless_${e.name}`,t.layers.set(this._firstPersonOnlyLayer),e.parent.add(t),e.children.filter(e=>e.type===`SkinnedMesh`).forEach(e=>{let n=e;this._createHeadlessModelForSkinnedMesh(t,n)})}else if(e.type===`SkinnedMesh`){let t=e;this._createHeadlessModelForSkinnedMesh(e.parent,t)}else this._isEraseTarget(e)&&(e.layers.set(this._thirdPersonOnlyLayer),e.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer)))}_isEraseTarget(e){return e===this.humanoid.getRawBoneNode(`head`)?!0:e.parent?this._isEraseTarget(e.parent):!1}};mt.DEFAULT_FIRSTPERSON_ONLY_LAYER=9,mt.DEFAULT_THIRDPERSON_ONLY_LAYER=10;var ht=mt,gt=new Set([`1.0`,`1.0-beta`]),_t=class{get name(){return`VRMFirstPersonLoaderPlugin`}constructor(e){this.parser=e}afterRoot(e){return I(this,null,function*(){let t=e.userData.vrmHumanoid;if(t!==null){if(t===void 0)throw Error(`VRMFirstPersonLoaderPlugin: vrmHumanoid is undefined. VRMHumanoidLoaderPlugin have to be used first`);e.userData.vrmFirstPerson=yield this._import(e,t)}})}_import(e,t){return I(this,null,function*(){if(t==null)return null;let n=yield this._v1Import(e,t);if(n)return n;let r=yield this._v0Import(e,t);return r||null})}_v1Import(e,t){return I(this,null,function*(){var n,r;let i=this.parser.json,a=(n=i.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!a)return null;let o=(r=i.extensions)?.VRMC_vrm;if(!o)return null;let s=o.specVersion;if(!gt.has(s))return console.warn(`VRMFirstPersonLoaderPlugin: Unknown VRMC_vrm specVersion "${s}"`),null;let c=o.firstPerson,l=[],u=yield $e(e);return Array.from(u.entries()).forEach(([e,t])=>{var n,r;let i=(n=c?.meshAnnotations)?.find(t=>t.node===e);l.push({meshes:t,type:(r=i?.type)??`auto`})}),new ht(t,l)})}_v0Import(e,t){return I(this,null,function*(){var n;let r=this.parser.json,i=(n=r.extensions)?.VRM;if(!i)return null;let a=i.firstPerson;if(!a)return null;let o=[],s=yield $e(e);return Array.from(s.entries()).forEach(([e,t])=>{let n=r.nodes[e],i=a.meshAnnotations?a.meshAnnotations.find(e=>e.mesh===n.mesh):void 0;o.push({meshes:t,type:this._convertV0FlagToV1Type(i?.firstPersonFlag)})}),new ht(t,o)})}_convertV0FlagToV1Type(e){return e===`FirstPersonOnly`?`firstPersonOnly`:e===`ThirdPersonOnly`?`thirdPersonOnly`:e===`Both`?`both`:`auto`}},vt=new M,yt=new M,bt=new C,xt=class extends d{constructor(e){super(),this.vrmHumanoid=e,this._boneAxesMap=new Map,Object.values(e.humanBones).forEach(e=>{let t=new h(1);t.matrixAutoUpdate=!1,t.material.depthTest=!1,t.material.depthWrite=!1,this.add(t),this._boneAxesMap.set(e,t)})}dispose(){Array.from(this._boneAxesMap.values()).forEach(e=>{e.geometry.dispose(),e.material.dispose()})}updateMatrixWorld(e){Array.from(this._boneAxesMap.entries()).forEach(([e,t])=>{e.node.updateWorldMatrix(!0,!1),e.node.matrixWorld.decompose(vt,bt,yt);let n=vt.set(.1,.1,.1).divide(yt);t.matrix.copy(e.node.matrixWorld).scale(n)}),super.updateMatrixWorld(e)}},St=`hips.spine.chest.upperChest.neck.head.leftEye.rightEye.jaw.leftUpperLeg.leftLowerLeg.leftFoot.leftToes.rightUpperLeg.rightLowerLeg.rightFoot.rightToes.leftShoulder.leftUpperArm.leftLowerArm.leftHand.rightShoulder.rightUpperArm.rightLowerArm.rightHand.leftThumbMetacarpal.leftThumbProximal.leftThumbDistal.leftIndexProximal.leftIndexIntermediate.leftIndexDistal.leftMiddleProximal.leftMiddleIntermediate.leftMiddleDistal.leftRingProximal.leftRingIntermediate.leftRingDistal.leftLittleProximal.leftLittleIntermediate.leftLittleDistal.rightThumbMetacarpal.rightThumbProximal.rightThumbDistal.rightIndexProximal.rightIndexIntermediate.rightIndexDistal.rightMiddleProximal.rightMiddleIntermediate.rightMiddleDistal.rightRingProximal.rightRingIntermediate.rightRingDistal.rightLittleProximal.rightLittleIntermediate.rightLittleDistal`.split(`.`),Ct={hips:null,spine:`hips`,chest:`spine`,upperChest:`chest`,neck:`upperChest`,head:`neck`,leftEye:`head`,rightEye:`head`,jaw:`head`,leftUpperLeg:`hips`,leftLowerLeg:`leftUpperLeg`,leftFoot:`leftLowerLeg`,leftToes:`leftFoot`,rightUpperLeg:`hips`,rightLowerLeg:`rightUpperLeg`,rightFoot:`rightLowerLeg`,rightToes:`rightFoot`,leftShoulder:`upperChest`,leftUpperArm:`leftShoulder`,leftLowerArm:`leftUpperArm`,leftHand:`leftLowerArm`,rightShoulder:`upperChest`,rightUpperArm:`rightShoulder`,rightLowerArm:`rightUpperArm`,rightHand:`rightLowerArm`,leftThumbMetacarpal:`leftHand`,leftThumbProximal:`leftThumbMetacarpal`,leftThumbDistal:`leftThumbProximal`,leftIndexProximal:`leftHand`,leftIndexIntermediate:`leftIndexProximal`,leftIndexDistal:`leftIndexIntermediate`,leftMiddleProximal:`leftHand`,leftMiddleIntermediate:`leftMiddleProximal`,leftMiddleDistal:`leftMiddleIntermediate`,leftRingProximal:`leftHand`,leftRingIntermediate:`leftRingProximal`,leftRingDistal:`leftRingIntermediate`,leftLittleProximal:`leftHand`,leftLittleIntermediate:`leftLittleProximal`,leftLittleDistal:`leftLittleIntermediate`,rightThumbMetacarpal:`rightHand`,rightThumbProximal:`rightThumbMetacarpal`,rightThumbDistal:`rightThumbProximal`,rightIndexProximal:`rightHand`,rightIndexIntermediate:`rightIndexProximal`,rightIndexDistal:`rightIndexIntermediate`,rightMiddleProximal:`rightHand`,rightMiddleIntermediate:`rightMiddleProximal`,rightMiddleDistal:`rightMiddleIntermediate`,rightRingProximal:`rightHand`,rightRingIntermediate:`rightRingProximal`,rightRingDistal:`rightRingIntermediate`,rightLittleProximal:`rightHand`,rightLittleIntermediate:`rightLittleProximal`,rightLittleDistal:`rightLittleIntermediate`};function wt(e){return e.invert?e.invert():e.inverse(),e}var R=new M,z=new C,Tt=class{constructor(e){this.humanBones=e,this.restPose=this.getAbsolutePose()}getAbsolutePose(){let e={};return Object.keys(this.humanBones).forEach(t=>{let n=t,r=this.getBoneNode(n);r&&(R.copy(r.position),z.copy(r.quaternion),e[n]={position:R.toArray(),rotation:z.toArray()})}),e}getPose(){let e={};return Object.keys(this.humanBones).forEach(t=>{let n=t,r=this.getBoneNode(n);if(!r)return;R.set(0,0,0),z.identity();let i=this.restPose[n];i?.position&&R.fromArray(i.position).negate(),i?.rotation&&wt(z.fromArray(i.rotation)),R.add(r.position),z.premultiply(r.quaternion),e[n]={position:R.toArray(),rotation:z.toArray()}}),e}setPose(e){Object.entries(e).forEach(([e,t])=>{let n=e,r=this.getBoneNode(n);if(!r)return;let i=this.restPose[n];i&&(t?.position&&(r.position.fromArray(t.position),i.position&&r.position.add(R.fromArray(i.position))),t?.rotation&&(r.quaternion.fromArray(t.rotation),i.rotation&&r.quaternion.multiply(z.fromArray(i.rotation))))})}resetPose(){Object.entries(this.restPose).forEach(([e,t])=>{let n=this.getBoneNode(e);n&&(t?.position&&n.position.fromArray(t.position),t?.rotation&&n.quaternion.fromArray(t.rotation))})}getBone(e){var t;return(t=this.humanBones[e])??void 0}getBoneNode(e){var t,n;return(n=(t=this.humanBones[e])?.node)??null}},Et=new M,Dt=new C,Ot=new M,kt=class e extends Tt{static _setupTransforms(e){let t=new S;t.name=`VRMHumanoidRig`;let n={},r={},i={},a={};St.forEach(t=>{var o;let s=e.getBoneNode(t);if(s){let e=new M,c=new C;s.updateWorldMatrix(!0,!1),s.matrixWorld.decompose(e,c,Et),n[t]=e,r[t]=c,i[t]=s.quaternion.clone();let l=new C;(o=s.parent)==null||o.matrixWorld.decompose(Et,l,Et),a[t]=l}});let o={};return St.forEach(r=>{var i;let a=e.getBoneNode(r);if(a){let e=n[r],s=r,c;for(;c==null&&(s=Ct[s],s!=null);)c=n[s];let l=new S;l.name=`Normalized_`+a.name;let u=s?(i=o[s])?.node:t;u.add(l),l.position.copy(e),c&&l.position.sub(c),o[r]={node:l}}}),{rigBones:o,root:t,parentWorldRotations:a,boneRotations:i}}constructor(t){let{rigBones:n,root:r,parentWorldRotations:i,boneRotations:a}=e._setupTransforms(t);super(n),this.original=t,this.root=r,this._parentWorldRotations=i,this._boneRotations=a}update(){St.forEach(e=>{let t=this.original.getBoneNode(e);if(t!=null){let n=this.getBoneNode(e),r=this._parentWorldRotations[e],i=Dt.copy(r).invert(),a=this._boneRotations[e];if(t.quaternion.copy(n.quaternion).multiply(r).premultiply(i).multiply(a),e===`hips`){let e=n.getWorldPosition(Ot);t.parent.updateWorldMatrix(!0,!1);let r=t.parent.matrixWorld,i=e.applyMatrix4(r.invert());t.position.copy(i)}}})}},At=class e{get restPose(){return console.warn(`VRMHumanoid: restPose is deprecated. Use either rawRestPose or normalizedRestPose instead.`),this.rawRestPose}get rawRestPose(){return this._rawHumanBones.restPose}get normalizedRestPose(){return this._normalizedHumanBones.restPose}get humanBones(){return this._rawHumanBones.humanBones}get rawHumanBones(){return this._rawHumanBones.humanBones}get normalizedHumanBones(){return this._normalizedHumanBones.humanBones}get normalizedHumanBonesRoot(){return this._normalizedHumanBones.root}constructor(e,t){var n;this.autoUpdateHumanBones=(n=t?.autoUpdateHumanBones)??!0,this._rawHumanBones=new Tt(e),this._normalizedHumanBones=new kt(this._rawHumanBones)}copy(e){return this.autoUpdateHumanBones=e.autoUpdateHumanBones,this._rawHumanBones=new Tt(e.humanBones),this._normalizedHumanBones=new kt(this._rawHumanBones),this}clone(){return new e(this.humanBones,{autoUpdateHumanBones:this.autoUpdateHumanBones}).copy(this)}getAbsolutePose(){return console.warn(`VRMHumanoid: getAbsolutePose() is deprecated. Use either getRawAbsolutePose() or getNormalizedAbsolutePose() instead.`),this.getRawAbsolutePose()}getRawAbsolutePose(){return this._rawHumanBones.getAbsolutePose()}getNormalizedAbsolutePose(){return this._normalizedHumanBones.getAbsolutePose()}getPose(){return console.warn(`VRMHumanoid: getPose() is deprecated. Use either getRawPose() or getNormalizedPose() instead.`),this.getRawPose()}getRawPose(){return this._rawHumanBones.getPose()}getNormalizedPose(){return this._normalizedHumanBones.getPose()}setPose(e){return console.warn(`VRMHumanoid: setPose() is deprecated. Use either setRawPose() or setNormalizedPose() instead.`),this.setRawPose(e)}setRawPose(e){return this._rawHumanBones.setPose(e)}setNormalizedPose(e){return this._normalizedHumanBones.setPose(e)}resetPose(){return console.warn(`VRMHumanoid: resetPose() is deprecated. Use either resetRawPose() or resetNormalizedPose() instead.`),this.resetRawPose()}resetRawPose(){return this._rawHumanBones.resetPose()}resetNormalizedPose(){return this._normalizedHumanBones.resetPose()}getBone(e){return console.warn(`VRMHumanoid: getBone() is deprecated. Use either getRawBone() or getNormalizedBone() instead.`),this.getRawBone(e)}getRawBone(e){return this._rawHumanBones.getBone(e)}getNormalizedBone(e){return this._normalizedHumanBones.getBone(e)}getBoneNode(e){return console.warn(`VRMHumanoid: getBoneNode() is deprecated. Use either getRawBoneNode() or getNormalizedBoneNode() instead.`),this.getRawBoneNode(e)}getRawBoneNode(e){return this._rawHumanBones.getBoneNode(e)}getNormalizedBoneNode(e){return this._normalizedHumanBones.getBoneNode(e)}update(){this.autoUpdateHumanBones&&this._normalizedHumanBones.update()}},jt={Hips:`hips`,Spine:`spine`,Head:`head`,LeftUpperLeg:`leftUpperLeg`,LeftLowerLeg:`leftLowerLeg`,LeftFoot:`leftFoot`,RightUpperLeg:`rightUpperLeg`,RightLowerLeg:`rightLowerLeg`,RightFoot:`rightFoot`,LeftUpperArm:`leftUpperArm`,LeftLowerArm:`leftLowerArm`,LeftHand:`leftHand`,RightUpperArm:`rightUpperArm`,RightLowerArm:`rightLowerArm`,RightHand:`rightHand`},Mt=new Set([`1.0`,`1.0-beta`]),Nt={leftThumbProximal:`leftThumbMetacarpal`,leftThumbIntermediate:`leftThumbProximal`,rightThumbProximal:`rightThumbMetacarpal`,rightThumbIntermediate:`rightThumbProximal`},Pt=class{get name(){return`VRMHumanoidLoaderPlugin`}constructor(e,t){this.parser=e,this.helperRoot=t?.helperRoot,this.autoUpdateHumanBones=t?.autoUpdateHumanBones}afterRoot(e){return I(this,null,function*(){e.userData.vrmHumanoid=yield this._import(e)})}_import(e){return I(this,null,function*(){let t=yield this._v1Import(e);if(t)return t;let n=yield this._v0Import(e);return n||null})}_v1Import(e){return I(this,null,function*(){var t,n;let r=this.parser.json,i=(t=r.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!i)return null;let a=(n=r.extensions)?.VRMC_vrm;if(!a)return null;let o=a.specVersion;if(!Mt.has(o))return console.warn(`VRMHumanoidLoaderPlugin: Unknown VRMC_vrm specVersion "${o}"`),null;let s=a.humanoid;if(!s)return null;let c=s.humanBones.leftThumbIntermediate!=null||s.humanBones.rightThumbIntermediate!=null,l={};s.humanBones!=null&&(yield Promise.all(Object.entries(s.humanBones).map(e=>I(this,[e],function*([e,t]){let n=e,r=t.node;if(c){let e=Nt[n];e!=null&&(n=e)}let i=yield this.parser.getDependency(`node`,r);if(i==null){console.warn(`A glTF node bound to the humanoid bone ${n} (index = ${r}) does not exist`);return}l[n]={node:i}}))));let u=new At(this._ensureRequiredBonesExist(l),{autoUpdateHumanBones:this.autoUpdateHumanBones});if(e.scene.add(u.normalizedHumanBonesRoot),this.helperRoot){let e=new xt(u);this.helperRoot.add(e),e.renderOrder=this.helperRoot.renderOrder}return u})}_v0Import(e){return I(this,null,function*(){var t;let n=this.parser.json,r=(t=n.extensions)?.VRM;if(!r)return null;let i=r.humanoid;if(!i)return null;let a={};i.humanBones!=null&&(yield Promise.all(i.humanBones.map(e=>I(this,null,function*(){let t=e.bone,n=e.node;if(t==null||n==null)return;let r=yield this.parser.getDependency(`node`,n);if(r==null){console.warn(`A glTF node bound to the humanoid bone ${t} (index = ${n}) does not exist`);return}let i=Nt[t],o=i??t;if(a[o]!=null){console.warn(`Multiple bone entries for ${o} detected (index = ${n}), ignoring duplicated entries.`);return}a[o]={node:r}}))));let o=new At(this._ensureRequiredBonesExist(a),{autoUpdateHumanBones:this.autoUpdateHumanBones});if(e.scene.add(o.normalizedHumanBonesRoot),this.helperRoot){let e=new xt(o);this.helperRoot.add(e),e.renderOrder=this.helperRoot.renderOrder}return o})}_ensureRequiredBonesExist(e){let t=Object.values(jt).filter(t=>e[t]==null);if(t.length>0)throw Error(`VRMHumanoidLoaderPlugin: These humanoid bones are required but not exist: ${t.join(`, `)}`);return e}},Ft=class extends b{constructor(){super(),this._currentTheta=0,this._currentRadius=0,this.theta=0,this.radius=0,this._currentTheta=0,this._currentRadius=0,this._attrPos=new y(new Float32Array(195),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new y(new Uint16Array(189),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1;this._currentTheta!==this.theta&&(this._currentTheta=this.theta,e=!0),this._currentRadius!==this.radius&&(this._currentRadius=this.radius,e=!0),e&&this._buildPosition()}_buildPosition(){this._attrPos.setXYZ(0,0,0,0);for(let e=0;e<64;e++){let t=e/63*this._currentTheta;this._attrPos.setXYZ(e+1,this._currentRadius*Math.sin(t),0,this._currentRadius*Math.cos(t))}this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<63;e++)this._attrIndex.setXYZ(e*3,0,e+1,e+2);this._attrIndex.needsUpdate=!0}},It=class extends b{constructor(){super(),this.radius=0,this._currentRadius=0,this.tail=new M,this._currentTail=new M,this._attrPos=new y(new Float32Array(294),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new y(new Uint16Array(194),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1;this._currentRadius!==this.radius&&(this._currentRadius=this.radius,e=!0),this._currentTail.equals(this.tail)||(this._currentTail.copy(this.tail),e=!0),e&&this._buildPosition()}_buildPosition(){for(let e=0;e<32;e++){let t=e/16*Math.PI;this._attrPos.setXYZ(e,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+e,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+e,Math.sin(t),0,Math.cos(t))}this.scale(this._currentRadius,this._currentRadius,this._currentRadius),this.translate(this._currentTail.x,this._currentTail.y,this._currentTail.z),this._attrPos.setXYZ(96,0,0,0),this._attrPos.setXYZ(97,this._currentTail.x,this._currentTail.y,this._currentTail.z),this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<32;e++){let t=(e+1)%32;this._attrIndex.setXY(e*2,e,t),this._attrIndex.setXY(64+e*2,32+e,32+t),this._attrIndex.setXY(128+e*2,64+e,64+t)}this._attrIndex.setXY(192,96,97),this._attrIndex.needsUpdate=!0}},Lt=new C,Rt=new C,zt=new M,Bt=new M,Vt=Math.sqrt(2)/2,Ht=new C(0,0,-Vt,Vt),Ut=new M(0,1,0),Wt=class extends d{constructor(e){super(),this.matrixAutoUpdate=!1,this.vrmLookAt=e;{let e=new Ft;e.radius=.5;let t=new O({color:65280,transparent:!0,opacity:.5,side:a,depthTest:!1,depthWrite:!1});this._meshPitch=new Ae(e,t),this.add(this._meshPitch)}{let e=new Ft;e.radius=.5;let t=new O({color:16711680,transparent:!0,opacity:.5,side:a,depthTest:!1,depthWrite:!1});this._meshYaw=new Ae(e,t),this.add(this._meshYaw)}{let e=new It;e.radius=.1;let t=new le({color:16777215,depthTest:!1,depthWrite:!1});this._lineTarget=new Ce(e,t),this._lineTarget.frustumCulled=!1,this.add(this._lineTarget)}}dispose(){this._meshYaw.geometry.dispose(),this._meshYaw.material.dispose(),this._meshPitch.geometry.dispose(),this._meshPitch.material.dispose(),this._lineTarget.geometry.dispose(),this._lineTarget.material.dispose()}updateMatrixWorld(e){let t=T.DEG2RAD*this.vrmLookAt.yaw;this._meshYaw.geometry.theta=t,this._meshYaw.geometry.update();let n=T.DEG2RAD*this.vrmLookAt.pitch;this._meshPitch.geometry.theta=n,this._meshPitch.geometry.update(),this.vrmLookAt.getLookAtWorldPosition(zt),this.vrmLookAt.getLookAtWorldQuaternion(Lt),Lt.multiply(this.vrmLookAt.getFaceFrontQuaternion(Rt)),this._meshYaw.position.copy(zt),this._meshYaw.quaternion.copy(Lt),this._meshPitch.position.copy(zt),this._meshPitch.quaternion.copy(Lt),this._meshPitch.quaternion.multiply(Rt.setFromAxisAngle(Ut,t)),this._meshPitch.quaternion.multiply(Ht);let{target:r,autoUpdate:i}=this.vrmLookAt;r!=null&&i&&(r.getWorldPosition(Bt).sub(zt),this._lineTarget.geometry.tail.copy(Bt),this._lineTarget.geometry.update(),this._lineTarget.position.copy(zt)),super.updateMatrixWorld(e)}},Gt=new M,Kt=new M;function qt(e,t){return e.matrixWorld.decompose(Gt,t,Kt),t}function Jt(e){return[Math.atan2(-e.z,e.x),Math.atan2(e.y,Math.sqrt(e.x*e.x+e.z*e.z))]}function Yt(e){let t=Math.round(e/2/Math.PI);return e-2*Math.PI*t}var Xt=new M(0,0,1),Zt=new M,Qt=new M,$t=new M,en=new C,tn=new C,nn=new C,rn=new C,an=new s,on=class e{constructor(e,t){this.offsetFromHeadBone=new M,this.autoUpdate=!0,this.faceFront=new M(0,0,1),this.humanoid=e,this.applier=t,this._yaw=0,this._pitch=0,this._needsUpdate=!0,this._restHeadWorldQuaternion=this.getLookAtWorldQuaternion(new C)}get yaw(){return this._yaw}set yaw(e){this._yaw=e,this._needsUpdate=!0}get pitch(){return this._pitch}set pitch(e){this._pitch=e,this._needsUpdate=!0}get euler(){return console.warn(`VRMLookAt: euler is deprecated. use getEuler() instead.`),this.getEuler(new s)}getEuler(e){return e.set(T.DEG2RAD*this._pitch,T.DEG2RAD*this._yaw,0,`YXZ`)}copy(e){if(this.humanoid!==e.humanoid)throw Error(`VRMLookAt: humanoid must be same in order to copy`);return this.offsetFromHeadBone.copy(e.offsetFromHeadBone),this.applier=e.applier,this.autoUpdate=e.autoUpdate,this.target=e.target,this.faceFront.copy(e.faceFront),this}clone(){return new e(this.humanoid,this.applier).copy(this)}reset(){this._yaw=0,this._pitch=0,this._needsUpdate=!0}getLookAtWorldPosition(e){let t=this.humanoid.getRawBoneNode(`head`);return e.copy(this.offsetFromHeadBone).applyMatrix4(t.matrixWorld)}getLookAtWorldQuaternion(e){let t=this.humanoid.getRawBoneNode(`head`);return qt(t,e)}getFaceFrontQuaternion(e){if(this.faceFront.distanceToSquared(Xt)<.01)return e.copy(this._restHeadWorldQuaternion).invert();let[t,n]=Jt(this.faceFront);return an.set(0,.5*Math.PI+t,n,`YZX`),e.setFromEuler(an).premultiply(rn.copy(this._restHeadWorldQuaternion).invert())}getLookAtWorldDirection(e){return this.getLookAtWorldQuaternion(tn),this.getFaceFrontQuaternion(nn),e.copy(Xt).applyQuaternion(tn).applyQuaternion(nn).applyEuler(this.getEuler(an))}lookAt(e){let t=en.copy(this._restHeadWorldQuaternion).multiply(wt(this.getLookAtWorldQuaternion(tn))),n=this.getLookAtWorldPosition(Qt),r=$t.copy(e).sub(n).applyQuaternion(t).normalize(),[i,a]=Jt(this.faceFront),[o,s]=Jt(r),c=Yt(o-i),l=Yt(a-s);this._yaw=T.RAD2DEG*c,this._pitch=T.RAD2DEG*l,this._needsUpdate=!0}update(e){this.target!=null&&this.autoUpdate&&this.lookAt(this.target.getWorldPosition(Zt)),this._needsUpdate&&(this._needsUpdate=!1,this.applier.applyYawPitch(this._yaw,this._pitch))}};on.EULER_ORDER=`YXZ`;var sn=on,cn=new M(0,0,1),B=new C,ln=new C,V=new s(0,0,0,`YXZ`),un=class{constructor(e,t,n,r,i){this.humanoid=e,this.rangeMapHorizontalInner=t,this.rangeMapHorizontalOuter=n,this.rangeMapVerticalDown=r,this.rangeMapVerticalUp=i,this.faceFront=new M(0,0,1),this._restQuatLeftEye=new C,this._restQuatRightEye=new C,this._restLeftEyeParentWorldQuat=new C,this._restRightEyeParentWorldQuat=new C;let a=this.humanoid.getRawBoneNode(`leftEye`),o=this.humanoid.getRawBoneNode(`rightEye`);a&&(this._restQuatLeftEye.copy(a.quaternion),qt(a.parent,this._restLeftEyeParentWorldQuat)),o&&(this._restQuatRightEye.copy(o.quaternion),qt(o.parent,this._restRightEyeParentWorldQuat))}applyYawPitch(e,t){let n=this.humanoid.getRawBoneNode(`leftEye`),r=this.humanoid.getRawBoneNode(`rightEye`),i=this.humanoid.getNormalizedBoneNode(`leftEye`),a=this.humanoid.getNormalizedBoneNode(`rightEye`);n&&(t<0?V.x=-T.DEG2RAD*this.rangeMapVerticalDown.map(-t):V.x=T.DEG2RAD*this.rangeMapVerticalUp.map(t),e<0?V.y=-T.DEG2RAD*this.rangeMapHorizontalInner.map(-e):V.y=T.DEG2RAD*this.rangeMapHorizontalOuter.map(e),B.setFromEuler(V),this._getWorldFaceFrontQuat(ln),i.quaternion.copy(ln).multiply(B).multiply(ln.invert()),B.copy(this._restLeftEyeParentWorldQuat),n.quaternion.copy(i.quaternion).multiply(B).premultiply(B.invert()).multiply(this._restQuatLeftEye)),r&&(t<0?V.x=-T.DEG2RAD*this.rangeMapVerticalDown.map(-t):V.x=T.DEG2RAD*this.rangeMapVerticalUp.map(t),e<0?V.y=-T.DEG2RAD*this.rangeMapHorizontalOuter.map(-e):V.y=T.DEG2RAD*this.rangeMapHorizontalInner.map(e),B.setFromEuler(V),this._getWorldFaceFrontQuat(ln),a.quaternion.copy(ln).multiply(B).multiply(ln.invert()),B.copy(this._restRightEyeParentWorldQuat),r.quaternion.copy(a.quaternion).multiply(B).premultiply(B.invert()).multiply(this._restQuatRightEye))}lookAt(e){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let t=T.RAD2DEG*e.y,n=T.RAD2DEG*e.x;this.applyYawPitch(t,n)}_getWorldFaceFrontQuat(e){if(this.faceFront.distanceToSquared(cn)<.01)return e.identity();let[t,n]=Jt(this.faceFront);return V.set(0,.5*Math.PI+t,n,`YZX`),e.setFromEuler(V)}};un.type=`bone`;var dn=class{constructor(e,t,n,r,i){this.expressions=e,this.rangeMapHorizontalInner=t,this.rangeMapHorizontalOuter=n,this.rangeMapVerticalDown=r,this.rangeMapVerticalUp=i}applyYawPitch(e,t){t<0?(this.expressions.setValue(`lookDown`,0),this.expressions.setValue(`lookUp`,this.rangeMapVerticalUp.map(-t))):(this.expressions.setValue(`lookUp`,0),this.expressions.setValue(`lookDown`,this.rangeMapVerticalDown.map(t))),e<0?(this.expressions.setValue(`lookLeft`,0),this.expressions.setValue(`lookRight`,this.rangeMapHorizontalOuter.map(-e))):(this.expressions.setValue(`lookRight`,0),this.expressions.setValue(`lookLeft`,this.rangeMapHorizontalOuter.map(e)))}lookAt(e){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let t=T.RAD2DEG*e.y,n=T.RAD2DEG*e.x;this.applyYawPitch(t,n)}};dn.type=`expression`;var fn=class{constructor(e,t){this.inputMaxValue=e,this.outputScale=t}map(e){return this.outputScale*tt(e/this.inputMaxValue)}},pn=new Set([`1.0`,`1.0-beta`]),mn=.01,hn=class{get name(){return`VRMLookAtLoaderPlugin`}constructor(e,t){this.parser=e,this.helperRoot=t?.helperRoot}afterRoot(e){return I(this,null,function*(){let t=e.userData.vrmHumanoid;if(t===null)return;if(t===void 0)throw Error(`VRMLookAtLoaderPlugin: vrmHumanoid is undefined. VRMHumanoidLoaderPlugin have to be used first`);let n=e.userData.vrmExpressionManager;if(n!==null){if(n===void 0)throw Error(`VRMLookAtLoaderPlugin: vrmExpressionManager is undefined. VRMExpressionLoaderPlugin have to be used first`);e.userData.vrmLookAt=yield this._import(e,t,n)}})}_import(e,t,n){return I(this,null,function*(){if(t==null||n==null)return null;let r=yield this._v1Import(e,t,n);if(r)return r;let i=yield this._v0Import(e,t,n);return i||null})}_v1Import(e,t,n){return I(this,null,function*(){var e,r,i;let a=this.parser.json,o=(e=a.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!o)return null;let s=(r=a.extensions)?.VRMC_vrm;if(!s)return null;let c=s.specVersion;if(!pn.has(c))return console.warn(`VRMLookAtLoaderPlugin: Unknown VRMC_vrm specVersion "${c}"`),null;let l=s.lookAt;if(!l)return null;let u=l.type===`expression`?1:10,d=this._v1ImportRangeMap(l.rangeMapHorizontalInner,u),f=this._v1ImportRangeMap(l.rangeMapHorizontalOuter,u),p=this._v1ImportRangeMap(l.rangeMapVerticalDown,u),m=this._v1ImportRangeMap(l.rangeMapVerticalUp,u),h;h=l.type===`expression`?new dn(n,d,f,p,m):new un(t,d,f,p,m);let g=this._importLookAt(t,h);return g.offsetFromHeadBone.fromArray((i=l.offsetFromHeadBone)??[0,.06,0]),g})}_v1ImportRangeMap(e,t){var n,r;let i=(n=e?.inputMaxValue)??90,a=(r=e?.outputScale)??t;return i(console.error(e),console.warn(`VRMMetaLoaderPlugin: Failed to load a thumbnail image`),null))})}},yn=class{constructor(e){this.scene=e.scene,this.meta=e.meta,this.humanoid=e.humanoid,this.expressionManager=e.expressionManager,this.firstPerson=e.firstPerson,this.lookAt=e.lookAt}update(e){this.humanoid.update(),this.lookAt&&this.lookAt.update(e),this.expressionManager&&this.expressionManager.update()}},bn=class extends yn{constructor(e){super(e),this.materials=e.materials,this.springBoneManager=e.springBoneManager,this.nodeConstraintManager=e.nodeConstraintManager}update(e){super.update(e),this.nodeConstraintManager&&this.nodeConstraintManager.update(),this.springBoneManager&&this.springBoneManager.update(e),this.materials&&this.materials.forEach(t=>{t.update&&t.update(e)})}},xn=Object.defineProperty,Sn=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,Tn=(e,t,n)=>t in e?xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,En=(e,t)=>{for(var n in t||={})Cn.call(t,n)&&Tn(e,n,t[n]);if(Sn)for(var n of Sn(t))wn.call(t,n)&&Tn(e,n,t[n]);return e},H=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Dn={"":3e3,srgb:3001};function On(e,t){parseInt(ve,10)>=152?e.colorSpace=t:e.encoding=Dn[t]}var kn=class{get pending(){return Promise.all(this._pendings)}constructor(e,t){this._parser=e,this._materialParams=t,this._pendings=[]}assignPrimitive(e,t){t!=null&&(this._materialParams[e]=t)}assignColor(e,t,r){t!=null&&(this._materialParams[e]=new n().fromArray(t),r&&this._materialParams[e].convertSRGBToLinear())}assignTexture(e,t,n){return H(this,null,function*(){let r=(()=>H(this,null,function*(){t!=null&&(yield this._parser.assignTexture(this._materialParams,e,t),n&&On(this._materialParams[e],`srgb`))}))();return this._pendings.push(r),r})}assignTextureByIndex(e,t,n){return H(this,null,function*(){return this.assignTexture(e,t==null?void 0:{index:t},n)})}},An=`// #define PHONG - -varying vec3 vViewPosition; - -#ifndef FLAT_SHADED - varying vec3 vNormal; -#endif - -#include - -// #include -#ifdef MTOON_USE_UV - varying vec2 vUv; - - // COMPAT: pre-r151 uses a common uvTransform - #if THREE_VRM_THREE_REVISION < 151 - uniform mat3 uvTransform; - #endif -#endif - -// #include -// COMAPT: pre-r151 uses uv2 for lightMap and aoMap -#if THREE_VRM_THREE_REVISION < 151 - #if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) - attribute vec2 uv2; - varying vec2 vUv2; - uniform mat3 uv2Transform; - #endif -#endif - -// #include -// #include -#include -#include -#include -#include -#include -#include -#include - -#ifdef USE_OUTLINEWIDTHMULTIPLYTEXTURE - uniform sampler2D outlineWidthMultiplyTexture; - uniform mat3 outlineWidthMultiplyTextureUvTransform; -#endif - -uniform float outlineWidthFactor; - -void main() { - - // #include - #ifdef MTOON_USE_UV - // COMPAT: pre-r151 uses a common uvTransform - #if THREE_VRM_THREE_REVISION >= 151 - vUv = uv; - #else - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - #endif - #endif - - // #include - // COMAPT: pre-r151 uses uv2 for lightMap and aoMap - #if THREE_VRM_THREE_REVISION < 151 - #if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) - vUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy; - #endif - #endif - - #include - - #include - #include - #include - #include - - // we need this to compute the outline properly - objectNormal = normalize( objectNormal ); - - #include - - #ifndef FLAT_SHADED // Normal computed with derivatives when FLAT_SHADED - vNormal = normalize( transformedNormal ); - #endif - - #include - - #include - #include - // #include - #include - #include - #include - - vViewPosition = - mvPosition.xyz; - - #ifdef OUTLINE - float worldNormalLength = length( transformedNormal ); - vec3 outlineOffset = outlineWidthFactor * worldNormalLength * objectNormal; - - #ifdef USE_OUTLINEWIDTHMULTIPLYTEXTURE - vec2 outlineWidthMultiplyTextureUv = ( outlineWidthMultiplyTextureUvTransform * vec3( vUv, 1 ) ).xy; - float outlineTex = texture2D( outlineWidthMultiplyTexture, outlineWidthMultiplyTextureUv ).g; - outlineOffset *= outlineTex; - #endif - - #ifdef OUTLINE_WIDTH_SCREEN - outlineOffset *= vViewPosition.z / projectionMatrix[ 1 ].y; - #endif - - gl_Position = projectionMatrix * modelViewMatrix * vec4( outlineOffset + transformed, 1.0 ); - - gl_Position.z += 1E-6 * gl_Position.w; // anti-artifact magic - #endif - - #include - // #include - #include - #include - -}`,jn=`// #define PHONG - -uniform vec3 litFactor; - -uniform float opacity; - -uniform vec3 shadeColorFactor; -#ifdef USE_SHADEMULTIPLYTEXTURE - uniform sampler2D shadeMultiplyTexture; - uniform mat3 shadeMultiplyTextureUvTransform; -#endif - -uniform float shadingShiftFactor; -uniform float shadingToonyFactor; - -#ifdef USE_SHADINGSHIFTTEXTURE - uniform sampler2D shadingShiftTexture; - uniform mat3 shadingShiftTextureUvTransform; - uniform float shadingShiftTextureScale; -#endif - -uniform float giEqualizationFactor; - -uniform vec3 parametricRimColorFactor; -#ifdef USE_RIMMULTIPLYTEXTURE - uniform sampler2D rimMultiplyTexture; - uniform mat3 rimMultiplyTextureUvTransform; -#endif -uniform float rimLightingMixFactor; -uniform float parametricRimFresnelPowerFactor; -uniform float parametricRimLiftFactor; - -#ifdef USE_MATCAPTEXTURE - uniform vec3 matcapFactor; - uniform sampler2D matcapTexture; - uniform mat3 matcapTextureUvTransform; -#endif - -uniform vec3 emissive; -uniform float emissiveIntensity; - -uniform vec3 outlineColorFactor; -uniform float outlineLightingMixFactor; - -#ifdef USE_UVANIMATIONMASKTEXTURE - uniform sampler2D uvAnimationMaskTexture; - uniform mat3 uvAnimationMaskTextureUvTransform; -#endif - -uniform float uvAnimationScrollXOffset; -uniform float uvAnimationScrollYOffset; -uniform float uvAnimationRotationPhase; - -#include -#include -#include -#include - -// #include -#if ( defined( MTOON_USE_UV ) && !defined( MTOON_UVS_VERTEX_ONLY ) ) - varying vec2 vUv; -#endif - -// #include -// COMAPT: pre-r151 uses uv2 for lightMap and aoMap -#if THREE_VRM_THREE_REVISION < 151 - #if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) - varying vec2 vUv2; - #endif -#endif - -#include - -#ifdef USE_MAP - uniform mat3 mapUvTransform; -#endif - -// #include - -#include - -#include -// #include -#include - -#ifdef USE_EMISSIVEMAP - uniform mat3 emissiveMapUvTransform; -#endif - -// #include -// #include -// #include -#include - -// #include -// COMPAT: pre-r151 doesn't have BRDF_Lambert in -#if THREE_VRM_THREE_REVISION < 151 - vec3 BRDF_Lambert( const in vec3 diffuseColor ) { - return RECIPROCAL_PI * diffuseColor; - } -#endif - -#include - -#include - -// #include -varying vec3 vViewPosition; - -struct MToonMaterial { - vec3 diffuseColor; - vec3 shadeColor; - float shadingShift; -}; - -float linearstep( float a, float b, float t ) { - return clamp( ( t - a ) / ( b - a ), 0.0, 1.0 ); -} - -/** - * Convert NdotL into toon shading factor using shadingShift and shadingToony - */ -float getShading( - const in float dotNL, - const in float shadow, - const in float shadingShift -) { - float shading = dotNL; - shading = shading + shadingShift; - shading = linearstep( -1.0 + shadingToonyFactor, 1.0 - shadingToonyFactor, shading ); - shading *= shadow; - return shading; -} - -/** - * Mix diffuseColor and shadeColor using shading factor and light color - */ -vec3 getDiffuse( - const in MToonMaterial material, - const in float shading, - in vec3 lightColor -) { - #ifdef DEBUG_LITSHADERATE - return vec3( BRDF_Lambert( shading * lightColor ) ); - #endif - - vec3 col = lightColor * BRDF_Lambert( mix( material.shadeColor, material.diffuseColor, shading ) ); - - // The "comment out if you want to PBR absolutely" line - #ifdef V0_COMPAT_SHADE - col = min( col, material.diffuseColor ); - #endif - - return col; -} - -// COMPAT: pre-r156 uses a struct GeometricContext -#if THREE_VRM_THREE_REVISION >= 157 - void RE_Direct_MToon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in MToonMaterial material, const in float shadow, inout ReflectedLight reflectedLight ) { - float dotNL = clamp( dot( geometryNormal, directLight.direction ), -1.0, 1.0 ); - vec3 irradiance = directLight.color; - - // directSpecular will be used for rim lighting, not an actual specular - reflectedLight.directSpecular += irradiance; - - irradiance *= dotNL; - - float shading = getShading( dotNL, shadow, material.shadingShift ); - - // toon shaded diffuse - reflectedLight.directDiffuse += getDiffuse( material, shading, directLight.color ); - } - - void RE_IndirectDiffuse_MToon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in MToonMaterial material, inout ReflectedLight reflectedLight ) { - // indirect diffuse will use diffuseColor, no shadeColor involved - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); - - // directSpecular will be used for rim lighting, not an actual specular - reflectedLight.directSpecular += irradiance; - } -#else - void RE_Direct_MToon( const in IncidentLight directLight, const in GeometricContext geometry, const in MToonMaterial material, const in float shadow, inout ReflectedLight reflectedLight ) { - float dotNL = clamp( dot( geometry.normal, directLight.direction ), -1.0, 1.0 ); - vec3 irradiance = directLight.color; - - // directSpecular will be used for rim lighting, not an actual specular - reflectedLight.directSpecular += irradiance; - - irradiance *= dotNL; - - float shading = getShading( dotNL, shadow, material.shadingShift ); - - // toon shaded diffuse - reflectedLight.directDiffuse += getDiffuse( material, shading, directLight.color ); - } - - void RE_IndirectDiffuse_MToon( const in vec3 irradiance, const in GeometricContext geometry, const in MToonMaterial material, inout ReflectedLight reflectedLight ) { - // indirect diffuse will use diffuseColor, no shadeColor involved - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); - - // directSpecular will be used for rim lighting, not an actual specular - reflectedLight.directSpecular += irradiance; - } -#endif - -#define RE_Direct RE_Direct_MToon -#define RE_IndirectDiffuse RE_IndirectDiffuse_MToon -#define Material_LightProbeLOD( material ) (0) - -#include -// #include - -// #include -#ifdef USE_NORMALMAP - - uniform sampler2D normalMap; - uniform mat3 normalMapUvTransform; - uniform vec2 normalScale; - -#endif - -// COMPAT: pre-r151 -// USE_NORMALMAP_OBJECTSPACE used to be OBJECTSPACE_NORMALMAP in pre-r151 -#if defined( USE_NORMALMAP_OBJECTSPACE ) || defined( OBJECTSPACE_NORMALMAP ) - - uniform mat3 normalMatrix; - -#endif - -// COMPAT: pre-r151 -// USE_NORMALMAP_TANGENTSPACE used to be TANGENTSPACE_NORMALMAP in pre-r151 -#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( TANGENTSPACE_NORMALMAP ) ) - - // Per-Pixel Tangent Space Normal Mapping - // http://hacksoflife.blogspot.ch/2009/11/per-pixel-tangent-space-normal-mapping.html - - // three-vrm specific change: it requires \`uv\` as an input in order to support uv scrolls - - // Temporary compat against shader change @ Three.js r126, r151 - #if THREE_VRM_THREE_REVISION >= 151 - - mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { - - vec3 q0 = dFdx( eye_pos.xyz ); - vec3 q1 = dFdy( eye_pos.xyz ); - vec2 st0 = dFdx( uv.st ); - vec2 st1 = dFdy( uv.st ); - - vec3 N = surf_norm; - - vec3 q1perp = cross( q1, N ); - vec3 q0perp = cross( N, q0 ); - - vec3 T = q1perp * st0.x + q0perp * st1.x; - vec3 B = q1perp * st0.y + q0perp * st1.y; - - float det = max( dot( T, T ), dot( B, B ) ); - float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); - - return mat3( T * scale, B * scale, N ); - - } - - #else - - vec3 perturbNormal2Arb( vec2 uv, vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) { - - vec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) ); - vec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) ); - vec2 st0 = dFdx( uv.st ); - vec2 st1 = dFdy( uv.st ); - - vec3 N = normalize( surf_norm ); - - vec3 q1perp = cross( q1, N ); - vec3 q0perp = cross( N, q0 ); - - vec3 T = q1perp * st0.x + q0perp * st1.x; - vec3 B = q1perp * st0.y + q0perp * st1.y; - - // three-vrm specific change: Workaround for the issue that happens when delta of uv = 0.0 - // TODO: Is this still required? Or shall I make a PR about it? - if ( length( T ) == 0.0 || length( B ) == 0.0 ) { - return surf_norm; - } - - float det = max( dot( T, T ), dot( B, B ) ); - float scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det ); - - return normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z ); - - } - - #endif - -#endif - -// #include -#include -#include - -// == post correction ========================================================== -void postCorrection() { - #include - #include - #include - #include - #include -} - -// == main procedure =========================================================== -void main() { - #include - - vec2 uv = vec2(0.5, 0.5); - - #if ( defined( MTOON_USE_UV ) && !defined( MTOON_UVS_VERTEX_ONLY ) ) - uv = vUv; - - float uvAnimMask = 1.0; - #ifdef USE_UVANIMATIONMASKTEXTURE - vec2 uvAnimationMaskTextureUv = ( uvAnimationMaskTextureUvTransform * vec3( uv, 1 ) ).xy; - uvAnimMask = texture2D( uvAnimationMaskTexture, uvAnimationMaskTextureUv ).b; - #endif - - float uvRotCos = cos( uvAnimationRotationPhase * uvAnimMask ); - float uvRotSin = sin( uvAnimationRotationPhase * uvAnimMask ); - uv = mat2( uvRotCos, -uvRotSin, uvRotSin, uvRotCos ) * ( uv - 0.5 ) + 0.5; - uv = uv + vec2( uvAnimationScrollXOffset, uvAnimationScrollYOffset ) * uvAnimMask; - #endif - - #ifdef DEBUG_UV - gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - #if ( defined( MTOON_USE_UV ) && !defined( MTOON_UVS_VERTEX_ONLY ) ) - gl_FragColor = vec4( uv, 0.0, 1.0 ); - #endif - return; - #endif - - vec4 diffuseColor = vec4( litFactor, opacity ); - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive * emissiveIntensity; - - #include - - // #include - #ifdef USE_MAP - vec2 mapUv = ( mapUvTransform * vec3( uv, 1 ) ).xy; - vec4 sampledDiffuseColor = texture2D( map, mapUv ); - #ifdef DECODE_VIDEO_TEXTURE - sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); - #endif - diffuseColor *= sampledDiffuseColor; - #endif - - // #include - #if ( defined( USE_COLOR ) && !defined( IGNORE_VERTEX_COLOR ) ) - diffuseColor.rgb *= vColor; - #endif - - // #include - - #include - - // #include - - // #include - float faceDirection = gl_FrontFacing ? 1.0 : -1.0; - - #ifdef FLAT_SHADED - - vec3 fdx = dFdx( vViewPosition ); - vec3 fdy = dFdy( vViewPosition ); - vec3 normal = normalize( cross( fdx, fdy ) ); - - #else - - vec3 normal = normalize( vNormal ); - - #ifdef DOUBLE_SIDED - - normal *= faceDirection; - - #endif - - #endif - - #ifdef USE_NORMALMAP - - vec2 normalMapUv = ( normalMapUvTransform * vec3( uv, 1 ) ).xy; - - #endif - - #ifdef USE_NORMALMAP_TANGENTSPACE - - #ifdef USE_TANGENT - - mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - - #else - - mat3 tbn = getTangentFrame( - vViewPosition, normal, normalMapUv ); - - #endif - - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - - tbn[0] *= faceDirection; - tbn[1] *= faceDirection; - - #endif - - #endif - - #ifdef USE_CLEARCOAT_NORMALMAP - - #ifdef USE_TANGENT - - mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - - #else - - mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); - - #endif - - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - - tbn2[0] *= faceDirection; - tbn2[1] *= faceDirection; - - #endif - - #endif - - // non perturbed normal for clearcoat among others - - vec3 nonPerturbedNormal = normal; - - #ifdef OUTLINE - normal *= -1.0; - #endif - - // #include - - // COMPAT: pre-r151 - // USE_NORMALMAP_OBJECTSPACE used to be OBJECTSPACE_NORMALMAP in pre-r151 - #if defined( USE_NORMALMAP_OBJECTSPACE ) || defined( OBJECTSPACE_NORMALMAP ) - - normal = texture2D( normalMap, normalMapUv ).xyz * 2.0 - 1.0; // overrides both flatShading and attribute normals - - #ifdef FLIP_SIDED - - normal = - normal; - - #endif - - #ifdef DOUBLE_SIDED - - normal = normal * faceDirection; - - #endif - - normal = normalize( normalMatrix * normal ); - - // COMPAT: pre-r151 - // USE_NORMALMAP_TANGENTSPACE used to be TANGENTSPACE_NORMALMAP in pre-r151 - #elif defined( USE_NORMALMAP_TANGENTSPACE ) || defined( TANGENTSPACE_NORMALMAP ) - - vec3 mapN = texture2D( normalMap, normalMapUv ).xyz * 2.0 - 1.0; - mapN.xy *= normalScale; - - // COMPAT: pre-r151 - #if THREE_VRM_THREE_REVISION >= 151 || defined( USE_TANGENT ) - - normal = normalize( tbn * mapN ); - - #else - - normal = perturbNormal2Arb( uv, -vViewPosition, normal, mapN, faceDirection ); - - #endif - - #endif - - // #include - #ifdef USE_EMISSIVEMAP - vec2 emissiveMapUv = ( emissiveMapUvTransform * vec3( uv, 1 ) ).xy; - totalEmissiveRadiance *= texture2D( emissiveMap, emissiveMapUv ).rgb; - #endif - - #ifdef DEBUG_NORMAL - gl_FragColor = vec4( 0.5 + 0.5 * normal, 1.0 ); - return; - #endif - - // -- MToon: lighting -------------------------------------------------------- - // accumulation - // #include - MToonMaterial material; - - material.diffuseColor = diffuseColor.rgb; - - material.shadeColor = shadeColorFactor; - #ifdef USE_SHADEMULTIPLYTEXTURE - vec2 shadeMultiplyTextureUv = ( shadeMultiplyTextureUvTransform * vec3( uv, 1 ) ).xy; - material.shadeColor *= texture2D( shadeMultiplyTexture, shadeMultiplyTextureUv ).rgb; - #endif - - #if ( defined( USE_COLOR ) && !defined( IGNORE_VERTEX_COLOR ) ) - material.shadeColor.rgb *= vColor; - #endif - - material.shadingShift = shadingShiftFactor; - #ifdef USE_SHADINGSHIFTTEXTURE - vec2 shadingShiftTextureUv = ( shadingShiftTextureUvTransform * vec3( uv, 1 ) ).xy; - material.shadingShift += texture2D( shadingShiftTexture, shadingShiftTextureUv ).r * shadingShiftTextureScale; - #endif - - // #include - - // MToon Specific changes: - // Since we want to take shadows into account of shading instead of irradiance, - // we had to modify the codes that multiplies the results of shadowmap into color of direct lights. - - // COMPAT: pre-r156 uses a struct GeometricContext - #if THREE_VRM_THREE_REVISION >= 157 - vec3 geometryPosition = - vViewPosition; - vec3 geometryNormal = normal; - vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); - - vec3 geometryClearcoatNormal; - - #ifdef USE_CLEARCOAT - - geometryClearcoatNormal = clearcoatNormal; - - #endif - #else - GeometricContext geometry; - - geometry.position = - vViewPosition; - geometry.normal = normal; - geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); - - #ifdef USE_CLEARCOAT - - geometry.clearcoatNormal = clearcoatNormal; - - #endif - #endif - - IncidentLight directLight; - - // since these variables will be used in unrolled loop, we have to define in prior - float shadow; - - #if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) - - PointLight pointLight; - #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 - PointLightShadow pointLightShadow; - #endif - - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { - - pointLight = pointLights[ i ]; - - // COMPAT: pre-r156 uses a struct GeometricContext - #if THREE_VRM_THREE_REVISION >= 157 - getPointLightInfo( pointLight, geometryPosition, directLight ); - #else - getPointLightInfo( pointLight, geometry, directLight ); - #endif - - shadow = 1.0; - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) - pointLightShadow = pointLightShadows[ i ]; - // COMPAT: pre-r166 - // r166 introduced shadowIntensity - #if THREE_VRM_THREE_REVISION >= 166 - shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; - #else - shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; - #endif - #endif - - // COMPAT: pre-r156 uses a struct GeometricContext - #if THREE_VRM_THREE_REVISION >= 157 - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, shadow, reflectedLight ); - #else - RE_Direct( directLight, geometry, material, shadow, reflectedLight ); - #endif - - } - #pragma unroll_loop_end - - #endif - - #if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) - - SpotLight spotLight; - #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLightShadow; - #endif - - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { - - spotLight = spotLights[ i ]; - - // COMPAT: pre-r156 uses a struct GeometricContext - #if THREE_VRM_THREE_REVISION >= 157 - getSpotLightInfo( spotLight, geometryPosition, directLight ); - #else - getSpotLightInfo( spotLight, geometry, directLight ); - #endif - - shadow = 1.0; - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - spotLightShadow = spotLightShadows[ i ]; - // COMPAT: pre-r166 - // r166 introduced shadowIntensity - #if THREE_VRM_THREE_REVISION >= 166 - shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0; - #else - shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0; - #endif - #endif - - // COMPAT: pre-r156 uses a struct GeometricContext - #if THREE_VRM_THREE_REVISION >= 157 - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, shadow, reflectedLight ); - #else - RE_Direct( directLight, geometry, material, shadow, reflectedLight ); - #endif - - } - #pragma unroll_loop_end - - #endif - - #if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) - - DirectionalLight directionalLight; - #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLightShadow; - #endif - - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { - - directionalLight = directionalLights[ i ]; - - // COMPAT: pre-r156 uses a struct GeometricContext - #if THREE_VRM_THREE_REVISION >= 157 - getDirectionalLightInfo( directionalLight, directLight ); - #else - getDirectionalLightInfo( directionalLight, geometry, directLight ); - #endif - - shadow = 1.0; - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) - directionalLightShadow = directionalLightShadows[ i ]; - // COMPAT: pre-r166 - // r166 introduced shadowIntensity - #if THREE_VRM_THREE_REVISION >= 166 - shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - #else - shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - #endif - #endif - - // COMPAT: pre-r156 uses a struct GeometricContext - #if THREE_VRM_THREE_REVISION >= 157 - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, shadow, reflectedLight ); - #else - RE_Direct( directLight, geometry, material, shadow, reflectedLight ); - #endif - - } - #pragma unroll_loop_end - - #endif - - // #if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) - - // RectAreaLight rectAreaLight; - - // #pragma unroll_loop_start - // for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { - - // rectAreaLight = rectAreaLights[ i ]; - // RE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight ); - - // } - // #pragma unroll_loop_end - - // #endif - - #if defined( RE_IndirectDiffuse ) - - vec3 iblIrradiance = vec3( 0.0 ); - - vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); - - // COMPAT: pre-r156 uses a struct GeometricContext - // COMPAT: pre-r156 doesn't have a define USE_LIGHT_PROBES - #if THREE_VRM_THREE_REVISION >= 157 - #if defined( USE_LIGHT_PROBES ) - irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); - #endif - #else - irradiance += getLightProbeIrradiance( lightProbe, geometry.normal ); - #endif - - #if ( NUM_HEMI_LIGHTS > 0 ) - - #pragma unroll_loop_start - for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { - - // COMPAT: pre-r156 uses a struct GeometricContext - #if THREE_VRM_THREE_REVISION >= 157 - irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); - #else - irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal ); - #endif - - } - #pragma unroll_loop_end - - #endif - - #endif - - // #if defined( RE_IndirectSpecular ) - - // vec3 radiance = vec3( 0.0 ); - // vec3 clearcoatRadiance = vec3( 0.0 ); - - // #endif - - #include - #include - - // modulation - #include - - vec3 col = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; - - #ifdef DEBUG_LITSHADERATE - gl_FragColor = vec4( col, diffuseColor.a ); - postCorrection(); - return; - #endif - - // -- MToon: rim lighting ----------------------------------------- - vec3 viewDir = normalize( vViewPosition ); - - #ifndef PHYSICALLY_CORRECT_LIGHTS - reflectedLight.directSpecular /= PI; - #endif - vec3 rimMix = mix( vec3( 1.0 ), reflectedLight.directSpecular, 1.0 ); - - vec3 rim = parametricRimColorFactor * pow( saturate( 1.0 - dot( viewDir, normal ) + parametricRimLiftFactor ), parametricRimFresnelPowerFactor ); - - #ifdef USE_MATCAPTEXTURE - { - vec3 x = normalize( vec3( viewDir.z, 0.0, -viewDir.x ) ); - vec3 y = cross( viewDir, x ); // guaranteed to be normalized - vec2 sphereUv = 0.5 + 0.5 * vec2( dot( x, normal ), -dot( y, normal ) ); - sphereUv = ( matcapTextureUvTransform * vec3( sphereUv, 1 ) ).xy; - vec3 matcap = texture2D( matcapTexture, sphereUv ).rgb; - rim += matcapFactor * matcap; - } - #endif - - #ifdef USE_RIMMULTIPLYTEXTURE - vec2 rimMultiplyTextureUv = ( rimMultiplyTextureUvTransform * vec3( uv, 1 ) ).xy; - rim *= texture2D( rimMultiplyTexture, rimMultiplyTextureUv ).rgb; - #endif - - col += rimMix * rim; - - // -- MToon: Emission -------------------------------------------------------- - col += totalEmissiveRadiance; - - // #include - - // -- Almost done! ----------------------------------------------------------- - #if defined( OUTLINE ) - col = outlineColorFactor.rgb * mix( vec3( 1.0 ), col, outlineLightingMixFactor ); - #endif - - #ifdef OPAQUE - diffuseColor.a = 1.0; - #endif - - gl_FragColor = vec4( col, diffuseColor.a ); - postCorrection(); -} -`,Mn={None:`none`,Normal:`normal`,LitShadeRate:`litShadeRate`,UV:`uv`},Nn={None:`none`,WorldCoordinates:`worldCoordinates`,ScreenCoordinates:`screenCoordinates`},Pn={3e3:``,3001:`srgb`};function Fn(e){return parseInt(ve,10)>=152?e.colorSpace:Pn[e.encoding]}var In=class extends xe{constructor(e={}){var t;super({vertexShader:An,fragmentShader:jn}),this.uvAnimationScrollXSpeedFactor=0,this.uvAnimationScrollYSpeedFactor=0,this.uvAnimationRotationSpeedFactor=0,this.fog=!0,this.normalMapType=Re,this._ignoreVertexColor=!0,this._v0CompatShade=!1,this._debugMode=Mn.None,this._outlineWidthMode=Nn.None,this._isOutline=!1,e.transparentWithZWrite&&(e.depthWrite=!0),delete e.transparentWithZWrite,e.fog=!0,e.lights=!0,e.clipping=!0,this.uniforms=We.merge([p.common,p.normalmap,p.emissivemap,p.fog,p.lights,{litFactor:{value:new n(1,1,1)},mapUvTransform:{value:new E},colorAlpha:{value:1},normalMapUvTransform:{value:new E},shadeColorFactor:{value:new n(0,0,0)},shadeMultiplyTexture:{value:null},shadeMultiplyTextureUvTransform:{value:new E},shadingShiftFactor:{value:0},shadingShiftTexture:{value:null},shadingShiftTextureUvTransform:{value:new E},shadingShiftTextureScale:{value:1},shadingToonyFactor:{value:.9},giEqualizationFactor:{value:.9},matcapFactor:{value:new n(1,1,1)},matcapTexture:{value:null},matcapTextureUvTransform:{value:new E},parametricRimColorFactor:{value:new n(0,0,0)},rimMultiplyTexture:{value:null},rimMultiplyTextureUvTransform:{value:new E},rimLightingMixFactor:{value:1},parametricRimFresnelPowerFactor:{value:5},parametricRimLiftFactor:{value:0},emissive:{value:new n(0,0,0)},emissiveIntensity:{value:1},emissiveMapUvTransform:{value:new E},outlineWidthMultiplyTexture:{value:null},outlineWidthMultiplyTextureUvTransform:{value:new E},outlineWidthFactor:{value:0},outlineColorFactor:{value:new n(0,0,0)},outlineLightingMixFactor:{value:1},uvAnimationMaskTexture:{value:null},uvAnimationMaskTextureUvTransform:{value:new E},uvAnimationScrollXOffset:{value:0},uvAnimationScrollYOffset:{value:0},uvAnimationRotationPhase:{value:0}},(t=e.uniforms)??{}]),this.setValues(e),this._uploadUniformsWorkaround(),this.customProgramCacheKey=()=>[...Object.entries(this._generateDefines()).map(([e,t])=>`${e}:${t}`),this.matcapTexture?`matcapTextureColorSpace:${Fn(this.matcapTexture)}`:``,this.shadeMultiplyTexture?`shadeMultiplyTextureColorSpace:${Fn(this.shadeMultiplyTexture)}`:``,this.rimMultiplyTexture?`rimMultiplyTextureColorSpace:${Fn(this.rimMultiplyTexture)}`:``].join(`,`),this.onBeforeCompile=e=>{let t=parseInt(ve,10),n=Object.entries(En(En({},this._generateDefines()),this.defines)).filter(([e,t])=>!!t).map(([e,t])=>`#define ${e} ${t}`).join(` -`)+` -`;e.vertexShader=n+e.vertexShader,e.fragmentShader=n+e.fragmentShader,t<154&&(e.fragmentShader=e.fragmentShader.replace(`#include `,`#include `))}}get color(){return this.uniforms.litFactor.value}set color(e){this.uniforms.litFactor.value=e}get map(){return this.uniforms.map.value}set map(e){this.uniforms.map.value=e}get normalMap(){return this.uniforms.normalMap.value}set normalMap(e){this.uniforms.normalMap.value=e}get normalScale(){return this.uniforms.normalScale.value}set normalScale(e){this.uniforms.normalScale.value=e}get emissive(){return this.uniforms.emissive.value}set emissive(e){this.uniforms.emissive.value=e}get emissiveIntensity(){return this.uniforms.emissiveIntensity.value}set emissiveIntensity(e){this.uniforms.emissiveIntensity.value=e}get emissiveMap(){return this.uniforms.emissiveMap.value}set emissiveMap(e){this.uniforms.emissiveMap.value=e}get shadeColorFactor(){return this.uniforms.shadeColorFactor.value}set shadeColorFactor(e){this.uniforms.shadeColorFactor.value=e}get shadeMultiplyTexture(){return this.uniforms.shadeMultiplyTexture.value}set shadeMultiplyTexture(e){this.uniforms.shadeMultiplyTexture.value=e}get shadingShiftFactor(){return this.uniforms.shadingShiftFactor.value}set shadingShiftFactor(e){this.uniforms.shadingShiftFactor.value=e}get shadingShiftTexture(){return this.uniforms.shadingShiftTexture.value}set shadingShiftTexture(e){this.uniforms.shadingShiftTexture.value=e}get shadingShiftTextureScale(){return this.uniforms.shadingShiftTextureScale.value}set shadingShiftTextureScale(e){this.uniforms.shadingShiftTextureScale.value=e}get shadingToonyFactor(){return this.uniforms.shadingToonyFactor.value}set shadingToonyFactor(e){this.uniforms.shadingToonyFactor.value=e}get giEqualizationFactor(){return this.uniforms.giEqualizationFactor.value}set giEqualizationFactor(e){this.uniforms.giEqualizationFactor.value=e}get matcapFactor(){return this.uniforms.matcapFactor.value}set matcapFactor(e){this.uniforms.matcapFactor.value=e}get matcapTexture(){return this.uniforms.matcapTexture.value}set matcapTexture(e){this.uniforms.matcapTexture.value=e}get parametricRimColorFactor(){return this.uniforms.parametricRimColorFactor.value}set parametricRimColorFactor(e){this.uniforms.parametricRimColorFactor.value=e}get rimMultiplyTexture(){return this.uniforms.rimMultiplyTexture.value}set rimMultiplyTexture(e){this.uniforms.rimMultiplyTexture.value=e}get rimLightingMixFactor(){return this.uniforms.rimLightingMixFactor.value}set rimLightingMixFactor(e){this.uniforms.rimLightingMixFactor.value=e}get parametricRimFresnelPowerFactor(){return this.uniforms.parametricRimFresnelPowerFactor.value}set parametricRimFresnelPowerFactor(e){this.uniforms.parametricRimFresnelPowerFactor.value=e}get parametricRimLiftFactor(){return this.uniforms.parametricRimLiftFactor.value}set parametricRimLiftFactor(e){this.uniforms.parametricRimLiftFactor.value=e}get outlineWidthMultiplyTexture(){return this.uniforms.outlineWidthMultiplyTexture.value}set outlineWidthMultiplyTexture(e){this.uniforms.outlineWidthMultiplyTexture.value=e}get outlineWidthFactor(){return this.uniforms.outlineWidthFactor.value}set outlineWidthFactor(e){this.uniforms.outlineWidthFactor.value=e}get outlineColorFactor(){return this.uniforms.outlineColorFactor.value}set outlineColorFactor(e){this.uniforms.outlineColorFactor.value=e}get outlineLightingMixFactor(){return this.uniforms.outlineLightingMixFactor.value}set outlineLightingMixFactor(e){this.uniforms.outlineLightingMixFactor.value=e}get uvAnimationMaskTexture(){return this.uniforms.uvAnimationMaskTexture.value}set uvAnimationMaskTexture(e){this.uniforms.uvAnimationMaskTexture.value=e}get uvAnimationScrollXOffset(){return this.uniforms.uvAnimationScrollXOffset.value}set uvAnimationScrollXOffset(e){this.uniforms.uvAnimationScrollXOffset.value=e}get uvAnimationScrollYOffset(){return this.uniforms.uvAnimationScrollYOffset.value}set uvAnimationScrollYOffset(e){this.uniforms.uvAnimationScrollYOffset.value=e}get uvAnimationRotationPhase(){return this.uniforms.uvAnimationRotationPhase.value}set uvAnimationRotationPhase(e){this.uniforms.uvAnimationRotationPhase.value=e}get ignoreVertexColor(){return this._ignoreVertexColor}set ignoreVertexColor(e){this._ignoreVertexColor=e,this.needsUpdate=!0}get v0CompatShade(){return this._v0CompatShade}set v0CompatShade(e){this._v0CompatShade=e,this.needsUpdate=!0}get debugMode(){return this._debugMode}set debugMode(e){this._debugMode=e,this.needsUpdate=!0}get outlineWidthMode(){return this._outlineWidthMode}set outlineWidthMode(e){this._outlineWidthMode=e,this.needsUpdate=!0}get isOutline(){return this._isOutline}set isOutline(e){this._isOutline=e,this.needsUpdate=!0}get isMToonMaterial(){return!0}update(e){this._uploadUniformsWorkaround(),this._updateUVAnimation(e)}copy(e){return super.copy(e),this.map=e.map,this.normalMap=e.normalMap,this.emissiveMap=e.emissiveMap,this.shadeMultiplyTexture=e.shadeMultiplyTexture,this.shadingShiftTexture=e.shadingShiftTexture,this.matcapTexture=e.matcapTexture,this.rimMultiplyTexture=e.rimMultiplyTexture,this.outlineWidthMultiplyTexture=e.outlineWidthMultiplyTexture,this.uvAnimationMaskTexture=e.uvAnimationMaskTexture,this.normalMapType=e.normalMapType,this.uvAnimationScrollXSpeedFactor=e.uvAnimationScrollXSpeedFactor,this.uvAnimationScrollYSpeedFactor=e.uvAnimationScrollYSpeedFactor,this.uvAnimationRotationSpeedFactor=e.uvAnimationRotationSpeedFactor,this.ignoreVertexColor=e.ignoreVertexColor,this.v0CompatShade=e.v0CompatShade,this.debugMode=e.debugMode,this.outlineWidthMode=e.outlineWidthMode,this.isOutline=e.isOutline,this.needsUpdate=!0,this}_updateUVAnimation(e){this.uniforms.uvAnimationScrollXOffset.value+=e*this.uvAnimationScrollXSpeedFactor,this.uniforms.uvAnimationScrollYOffset.value+=e*this.uvAnimationScrollYSpeedFactor,this.uniforms.uvAnimationRotationPhase.value+=e*this.uvAnimationRotationSpeedFactor,this.uniforms.alphaTest.value=this.alphaTest,this.uniformsNeedUpdate=!0}_uploadUniformsWorkaround(){this.uniforms.opacity.value=this.opacity,this._updateTextureMatrix(this.uniforms.map,this.uniforms.mapUvTransform),this._updateTextureMatrix(this.uniforms.normalMap,this.uniforms.normalMapUvTransform),this._updateTextureMatrix(this.uniforms.emissiveMap,this.uniforms.emissiveMapUvTransform),this._updateTextureMatrix(this.uniforms.shadeMultiplyTexture,this.uniforms.shadeMultiplyTextureUvTransform),this._updateTextureMatrix(this.uniforms.shadingShiftTexture,this.uniforms.shadingShiftTextureUvTransform),this._updateTextureMatrix(this.uniforms.matcapTexture,this.uniforms.matcapTextureUvTransform),this._updateTextureMatrix(this.uniforms.rimMultiplyTexture,this.uniforms.rimMultiplyTextureUvTransform),this._updateTextureMatrix(this.uniforms.outlineWidthMultiplyTexture,this.uniforms.outlineWidthMultiplyTextureUvTransform),this._updateTextureMatrix(this.uniforms.uvAnimationMaskTexture,this.uniforms.uvAnimationMaskTextureUvTransform),this.uniformsNeedUpdate=!0}_generateDefines(){let e=parseInt(ve,10),t=this.outlineWidthMultiplyTexture!==null,n=this.map!==null||this.normalMap!==null||this.emissiveMap!==null||this.shadeMultiplyTexture!==null||this.shadingShiftTexture!==null||this.rimMultiplyTexture!==null||this.uvAnimationMaskTexture!==null;return{THREE_VRM_THREE_REVISION:e,OUTLINE:this._isOutline,MTOON_USE_UV:t||n,MTOON_UVS_VERTEX_ONLY:t&&!n,V0_COMPAT_SHADE:this._v0CompatShade,USE_SHADEMULTIPLYTEXTURE:this.shadeMultiplyTexture!==null,USE_SHADINGSHIFTTEXTURE:this.shadingShiftTexture!==null,USE_MATCAPTEXTURE:this.matcapTexture!==null,USE_RIMMULTIPLYTEXTURE:this.rimMultiplyTexture!==null,USE_OUTLINEWIDTHMULTIPLYTEXTURE:this._isOutline&&this.outlineWidthMultiplyTexture!==null,USE_UVANIMATIONMASKTEXTURE:this.uvAnimationMaskTexture!==null,IGNORE_VERTEX_COLOR:this._ignoreVertexColor===!0,DEBUG_NORMAL:this._debugMode===`normal`,DEBUG_LITSHADERATE:this._debugMode===`litShadeRate`,DEBUG_UV:this._debugMode===`uv`,OUTLINE_WIDTH_SCREEN:this._isOutline&&this._outlineWidthMode===Nn.ScreenCoordinates}}_updateTextureMatrix(e,t){e.value&&(e.value.matrixAutoUpdate&&e.value.updateMatrix(),t.value.copy(e.value.matrix))}},Ln=new Set([`1.0`,`1.0-beta`]),Rn=class e{get name(){return e.EXTENSION_NAME}constructor(e,t={}){var n,r,i,a;this.parser=e,this.materialType=(n=t.materialType)??In,this.renderOrderOffset=(r=t.renderOrderOffset)??0,this.v0CompatShade=(i=t.v0CompatShade)??!1,this.debugMode=(a=t.debugMode)??`none`,this._mToonMaterialSet=new Set}beforeRoot(){return H(this,null,function*(){this._removeUnlitExtensionIfMToonExists()})}afterRoot(e){return H(this,null,function*(){e.userData.vrmMToonMaterials=Array.from(this._mToonMaterialSet)})}getMaterialType(e){let t=this._getMToonExtension(e);return t?this.materialType:null}extendMaterialParams(e,t){let n=this._getMToonExtension(e);return n?this._extendMaterialParams(n,t):null}loadMesh(e){return H(this,null,function*(){var t;let n=this.parser,r=n.json,i=(t=r.meshes)?.[e];if(i==null)throw Error(`MToonMaterialLoaderPlugin: Attempt to use meshes[${e}] of glTF but the mesh doesn't exist`);let a=i.primitives,o=yield n.loadMesh(e);if(a.length===1){let e=o,t=a[0].material;t!=null&&this._setupPrimitive(e,t)}else{let e=o;for(let t=0;t{var n;let r=this._getMToonExtension(t);r&&(n=e.extensions)?.KHR_materials_unlit&&delete e.extensions.KHR_materials_unlit})}_getMToonExtension(t){var n,r;let i=this.parser,a=i.json,o=(n=a.materials)?.[t];if(o==null){console.warn(`MToonMaterialLoaderPlugin: Attempt to use materials[${t}] of glTF but the material doesn't exist`);return}let s=(r=o.extensions)?.[e.EXTENSION_NAME];if(s==null)return;let c=s.specVersion;if(!Ln.has(c)){console.warn(`MToonMaterialLoaderPlugin: Unknown ${e.EXTENSION_NAME} specVersion "${c}"`);return}return s}_extendMaterialParams(e,t){return H(this,null,function*(){var n;delete t.metalness,delete t.roughness;let r=new kn(this.parser,t);r.assignPrimitive(`transparentWithZWrite`,e.transparentWithZWrite),r.assignColor(`shadeColorFactor`,e.shadeColorFactor),r.assignTexture(`shadeMultiplyTexture`,e.shadeMultiplyTexture,!0),r.assignPrimitive(`shadingShiftFactor`,e.shadingShiftFactor),r.assignTexture(`shadingShiftTexture`,e.shadingShiftTexture,!0),r.assignPrimitive(`shadingShiftTextureScale`,(n=e.shadingShiftTexture)?.scale),r.assignPrimitive(`shadingToonyFactor`,e.shadingToonyFactor),r.assignPrimitive(`giEqualizationFactor`,e.giEqualizationFactor),r.assignColor(`matcapFactor`,e.matcapFactor),r.assignTexture(`matcapTexture`,e.matcapTexture,!0),r.assignColor(`parametricRimColorFactor`,e.parametricRimColorFactor),r.assignTexture(`rimMultiplyTexture`,e.rimMultiplyTexture,!0),r.assignPrimitive(`rimLightingMixFactor`,e.rimLightingMixFactor),r.assignPrimitive(`parametricRimFresnelPowerFactor`,e.parametricRimFresnelPowerFactor),r.assignPrimitive(`parametricRimLiftFactor`,e.parametricRimLiftFactor),r.assignPrimitive(`outlineWidthMode`,e.outlineWidthMode),r.assignPrimitive(`outlineWidthFactor`,e.outlineWidthFactor),r.assignTexture(`outlineWidthMultiplyTexture`,e.outlineWidthMultiplyTexture,!1),r.assignColor(`outlineColorFactor`,e.outlineColorFactor),r.assignPrimitive(`outlineLightingMixFactor`,e.outlineLightingMixFactor),r.assignTexture(`uvAnimationMaskTexture`,e.uvAnimationMaskTexture,!1),r.assignPrimitive(`uvAnimationScrollXSpeedFactor`,e.uvAnimationScrollXSpeedFactor),r.assignPrimitive(`uvAnimationScrollYSpeedFactor`,e.uvAnimationScrollYSpeedFactor),r.assignPrimitive(`uvAnimationRotationSpeedFactor`,e.uvAnimationRotationSpeedFactor),r.assignPrimitive(`v0CompatShade`,this.v0CompatShade),r.assignPrimitive(`debugMode`,this.debugMode),yield r.pending})}_setupPrimitive(e,t){let n=this._getMToonExtension(t);if(n){let t=this._parseRenderOrder(n);e.renderOrder=t+this.renderOrderOffset,this._generateOutline(e),this._addToMaterialSet(e);return}}_shouldGenerateOutline(e){return typeof e.outlineWidthMode==`string`&&e.outlineWidthMode!==`none`&&typeof e.outlineWidthFactor==`number`&&e.outlineWidthFactor>0}_generateOutline(e){let t=e.material;if(!(t instanceof ke)||!this._shouldGenerateOutline(t))return;e.material=[t];let n=t.clone();n.name+=` (Outline)`,n.isOutline=!0,n.side=g,e.material.push(n);let r=e.geometry,i=r.index?r.index.count:r.attributes.position.count/3;r.addGroup(0,i,0),r.addGroup(0,i,1)}_addToMaterialSet(e){let t=e.material,n=new Set;Array.isArray(t)?t.forEach(e=>n.add(e)):n.add(t);for(let e of n)this._mToonMaterialSet.add(e)}_parseRenderOrder(e){var t;let n=e.transparentWithZWrite;return(n?0:19)+((t=e.renderQueueOffsetNumber)??0)}};Rn.EXTENSION_NAME=`VRMC_materials_mtoon`;var zn=Rn,Bn=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Vn=class e{get name(){return e.EXTENSION_NAME}constructor(e){this.parser=e}extendMaterialParams(e,t){return Bn(this,null,function*(){let n=this._getHDREmissiveMultiplierExtension(e);if(n==null)return;console.warn("VRMMaterialsHDREmissiveMultiplierLoaderPlugin: `VRMC_materials_hdr_emissiveMultiplier` is archived. Use `KHR_materials_emissive_strength` instead.");let r=n.emissiveMultiplier;t.emissiveIntensity=r})}_getHDREmissiveMultiplierExtension(t){var n,r;let i=this.parser,a=i.json,o=(n=a.materials)?.[t];if(o==null){console.warn(`VRMMaterialsHDREmissiveMultiplierLoaderPlugin: Attempt to use materials[${t}] of glTF but the material doesn't exist`);return}let s=(r=o.extensions)?.[e.EXTENSION_NAME];if(s!=null)return s}};Vn.EXTENSION_NAME=`VRMC_materials_hdr_emissiveMultiplier`;var Hn=Vn,Un=Object.defineProperty,Wn=Object.defineProperties,Gn=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertySymbols,qn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,Yn=(e,t,n)=>t in e?Un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t)=>{for(var n in t||={})qn.call(t,n)&&Yn(e,n,t[n]);if(Kn)for(var n of Kn(t))Jn.call(t,n)&&Yn(e,n,t[n]);return e},Xn=(e,t)=>Wn(e,Gn(t)),Zn=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});function Qn(e){return e**2.2}var $n=class{get name(){return`VRMMaterialsV0CompatPlugin`}constructor(e){var t;this.parser=e,this._renderQueueMapTransparent=new Map,this._renderQueueMapTransparentZWrite=new Map;let n=this.parser.json;n.extensionsUsed=(t=n.extensionsUsed)??[],n.extensionsUsed.indexOf(`KHR_texture_transform`)===-1&&n.extensionsUsed.push(`KHR_texture_transform`)}beforeRoot(){return Zn(this,null,function*(){var e;let t=this.parser.json,n=(e=t.extensions)?.VRM,r=n?.materialProperties;r&&(this._populateRenderQueueMap(r),r.forEach((e,n)=>{var r,i;let a=(r=t.materials)?.[n];if(a==null){console.warn(`VRMMaterialsV0CompatPlugin: Attempt to use materials[${n}] of glTF but the material doesn't exist`);return}if(e.shader===`VRM/MToon`){let r=this._parseV0MToonProperties(e,a);t.materials[n]=r}else if((i=e.shader)?.startsWith(`VRM/Unlit`)){let r=this._parseV0UnlitProperties(e,a);t.materials[n]=r}else e.shader===`VRM_USE_GLTFSHADER`||console.warn(`VRMMaterialsV0CompatPlugin: Unknown shader: ${e.shader}`)}))})}_parseV0MToonProperties(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,S,de,fe,pe,me,he,ge,C,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,w,De,Oe,ke,E,D;let Ae=(r=(n=e.keywordMap)?._ALPHABLEND_ON)??!1,O=(i=e.floatProperties)?._ZWrite===1,k=O&&Ae,je=this._v0ParseRenderQueue(e),Me=(o=(a=e.keywordMap)?._ALPHATEST_ON)??!1,Ne=Ae?`BLEND`:Me?`MASK`:`OPAQUE`,Pe=Me?(c=(s=e.floatProperties)?._Cutoff)??.5:void 0,Fe=(u=(l=e.floatProperties)?._CullMode)??2,Ie=Fe===0,A=this._portTextureTransform(e),Le=((f=(d=e.vectorProperties)?._Color)??[1,1,1,1]).map((e,t)=>t===3?e:Qn(e)),Re=(p=e.textureProperties)?._MainTex,ze=Re==null?void 0:{index:Re,extensions:U({},A)},Be=(h=(m=e.floatProperties)?._BumpScale)??1,Ve=(g=e.textureProperties)?._BumpMap,He=Ve==null?void 0:{index:Ve,scale:Be,extensions:U({},A)},Ue=((v=(_=e.vectorProperties)?._EmissionColor)??[0,0,0,1]).map(Qn),We=(y=e.textureProperties)?._EmissionMap,j=We==null?void 0:{index:We,extensions:U({},A)},M=((x=(b=e.vectorProperties)?._ShadeColor)??[.97,.81,.86,1]).map(Qn),Ge=(ee=e.textureProperties)?._ShadeTexture,N=Ge==null?void 0:{index:Ge,extensions:U({},A)},Ke=(ne=(te=e.floatProperties)?._ShadeShift)??0,P=(ie=(re=e.floatProperties)?._ShadeToony)??.9;P=T.lerp(P,1,.5+.5*Ke),Ke=-Ke-(1-P);let F=(oe=(ae=e.floatProperties)?._IndirectLightIntensity)??.1,qe=F?1-F:void 0,Je=(se=e.textureProperties)?._SphereAdd,Ye=Je==null?void 0:[1,1,1],I=Je==null?void 0:{index:Je},Xe=(le=(ce=e.floatProperties)?._RimLightingMix)??0,Ze=(ue=e.textureProperties)?._RimTexture,Qe=Ze==null?void 0:{index:Ze,extensions:U({},A)},$e=((de=(S=e.vectorProperties)?._RimColor)??[0,0,0,1]).map(Qn),et=(pe=(fe=e.floatProperties)?._RimFresnelPower)??1,tt=(he=(me=e.floatProperties)?._RimLift)??0,nt=[`none`,`worldCoordinates`,`screenCoordinates`][(C=(ge=e.floatProperties)?._OutlineWidthMode)??0],L=(ve=(_e=e.floatProperties)?._OutlineWidth)??0;L=.01*L;let rt=(ye=e.textureProperties)?._OutlineWidthTexture,it=rt==null?void 0:{index:rt,extensions:U({},A)},at=((xe=(be=e.vectorProperties)?._OutlineColor)??[0,0,0]).map(Qn),ot=(Ce=(Se=e.floatProperties)?._OutlineColorMode)??0,st=ot===1?(Te=(we=e.floatProperties)?._OutlineLightingMix)??1:0,ct=(Ee=e.textureProperties)?._UvAnimMaskTexture,lt=ct==null?void 0:{index:ct,extensions:U({},A)},ut=(De=(w=e.floatProperties)?._UvAnimScrollX)??0,dt=(ke=(Oe=e.floatProperties)?._UvAnimScrollY)??0;dt!=null&&(dt=-dt);let ft=(D=(E=e.floatProperties)?._UvAnimRotation)??0,pt={specVersion:`1.0`,transparentWithZWrite:k,renderQueueOffsetNumber:je,shadeColorFactor:M,shadeMultiplyTexture:N,shadingShiftFactor:Ke,shadingToonyFactor:P,giEqualizationFactor:qe,matcapFactor:Ye,matcapTexture:I,rimLightingMixFactor:Xe,rimMultiplyTexture:Qe,parametricRimColorFactor:$e,parametricRimFresnelPowerFactor:et,parametricRimLiftFactor:tt,outlineWidthMode:nt,outlineWidthFactor:L,outlineWidthMultiplyTexture:it,outlineColorFactor:at,outlineLightingMixFactor:st,uvAnimationMaskTexture:lt,uvAnimationScrollXSpeedFactor:ut,uvAnimationScrollYSpeedFactor:dt,uvAnimationRotationSpeedFactor:ft};return Xn(U({},t),{pbrMetallicRoughness:{baseColorFactor:Le,baseColorTexture:ze},normalTexture:He,emissiveTexture:j,emissiveFactor:Ue,alphaMode:Ne,alphaCutoff:Pe,doubleSided:Ie,extensions:{VRMC_materials_mtoon:pt}})}_parseV0UnlitProperties(e,t){var n,r,i,a,o;let s=e.shader===`VRM/UnlitTransparentZWrite`,c=e.shader===`VRM/UnlitTransparent`||s,l=this._v0ParseRenderQueue(e),u=e.shader===`VRM/UnlitCutout`,d=c?`BLEND`:u?`MASK`:`OPAQUE`,f=u?(r=(n=e.floatProperties)?._Cutoff)??.5:void 0,p=this._portTextureTransform(e),m=((a=(i=e.vectorProperties)?._Color)??[1,1,1,1]).map(Qn),h=(o=e.textureProperties)?._MainTex,g=h==null?void 0:{index:h,extensions:U({},p)},_={specVersion:`1.0`,transparentWithZWrite:s,renderQueueOffsetNumber:l,shadeColorFactor:m,shadeMultiplyTexture:g};return Xn(U({},t),{pbrMetallicRoughness:{baseColorFactor:m,baseColorTexture:g},alphaMode:d,alphaCutoff:f,extensions:{VRMC_materials_mtoon:_}})}_portTextureTransform(e){var t,n,r,i,a;let o=(t=e.vectorProperties)?._MainTex;if(o==null)return{};let s=[(n=o?.[0])??0,(r=o?.[1])??0],c=[(i=o?.[2])??1,(a=o?.[3])??1];return s[1]=1-c[1]-s[1],{KHR_texture_transform:{offset:s,scale:c}}}_v0ParseRenderQueue(e){var t,n;let r=e.shader===`VRM/UnlitTransparentZWrite`,i=(t=e.keywordMap)?._ALPHABLEND_ON!=null||e.shader===`VRM/UnlitTransparent`||r,a=(n=e.floatProperties)?._ZWrite===1||r,o=0;if(i){let t=e.renderQueue;t!=null&&(o=a?this._renderQueueMapTransparentZWrite.get(t):this._renderQueueMapTransparent.get(t))}return o}_populateRenderQueueMap(e){let t=new Set,n=new Set;e.forEach(e=>{var r,i;let a=e.shader===`VRM/UnlitTransparentZWrite`,o=(r=e.keywordMap)?._ALPHABLEND_ON!=null||e.shader===`VRM/UnlitTransparent`||a,s=(i=e.floatProperties)?._ZWrite===1||a;if(o){let r=e.renderQueue;r!=null&&(s?n.add(r):t.add(r))}}),t.size>10&&console.warn(`VRMMaterialsV0CompatPlugin: This VRM uses ${t.size} render queues for Transparent materials while VRM 1.0 only supports up to 10 render queues. The model might not be rendered correctly.`),n.size>10&&console.warn(`VRMMaterialsV0CompatPlugin: This VRM uses ${n.size} render queues for TransparentZWrite materials while VRM 1.0 only supports up to 10 render queues. The model might not be rendered correctly.`),Array.from(t).sort().forEach((e,n)=>{let r=Math.min(Math.max(n-t.size+1,-9),0);this._renderQueueMapTransparent.set(e,r)}),Array.from(n).sort().forEach((e,t)=>{let n=Math.min(Math.max(t,0),9);this._renderQueueMapTransparentZWrite.set(e,n)})}},er=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),W=new M,tr=class extends d{constructor(e){super(),this._attrPosition=new y(new Float32Array([0,0,0,0,0,0]),3),this._attrPosition.setUsage(o);let t=new b;t.setAttribute(`position`,this._attrPosition);let n=new le({color:16711935,depthTest:!1,depthWrite:!1});this._line=new ce(t,n),this.add(this._line),this.constraint=e}updateMatrixWorld(e){W.setFromMatrixPosition(this.constraint.destination.matrixWorld),this._attrPosition.setXYZ(0,W.x,W.y,W.z),this.constraint.source&&W.setFromMatrixPosition(this.constraint.source.matrixWorld),this._attrPosition.setXYZ(1,W.x,W.y,W.z),this._attrPosition.needsUpdate=!0,super.updateMatrixWorld(e)}};function nr(e,t){return t.set(e.elements[12],e.elements[13],e.elements[14])}var rr=new M,ir=new M;function ar(e,t){return e.decompose(rr,t,ir),t}function or(e){return e.invert?e.invert():e.inverse(),e}var sr=class{constructor(e,t){this.destination=e,this.source=t,this.weight=1}},cr=new M,lr=new M,ur=new M,dr=new C,fr=new C,pr=new C,mr=class extends sr{get aimAxis(){return this._aimAxis}set aimAxis(e){this._aimAxis=e,this._v3AimAxis.set(e===`PositiveX`?1:e===`NegativeX`?-1:0,e===`PositiveY`?1:e===`NegativeY`?-1:0,e===`PositiveZ`?1:e===`NegativeZ`?-1:0)}get dependencies(){let e=new Set([this.source]);return this.destination.parent&&e.add(this.destination.parent),e}constructor(e,t){super(e,t),this._aimAxis=`PositiveX`,this._v3AimAxis=new M(1,0,0),this._dstRestQuat=new C}setInitState(){this._dstRestQuat.copy(this.destination.quaternion)}update(){this.destination.updateWorldMatrix(!0,!1),this.source.updateWorldMatrix(!0,!1);let e=dr.identity(),t=fr.identity();this.destination.parent&&(ar(this.destination.parent.matrixWorld,e),or(t.copy(e)));let n=cr.copy(this._v3AimAxis).applyQuaternion(this._dstRestQuat).applyQuaternion(e),r=nr(this.source.matrixWorld,lr).sub(nr(this.destination.matrixWorld,ur)).normalize(),i=pr.setFromUnitVectors(n,r).premultiply(t).multiply(e).multiply(this._dstRestQuat);this.destination.quaternion.copy(this._dstRestQuat).slerp(i,this.weight)}};function hr(e,t){let n=[e],r=e.parent;for(;r!==null;)n.unshift(r),r=r.parent;n.forEach(e=>{t(e)})}var gr=class{constructor(){this._constraints=new Set,this._objectConstraintsMap=new Map}get constraints(){return this._constraints}addConstraint(e){this._constraints.add(e);let t=this._objectConstraintsMap.get(e.destination);t??(t=new Set,this._objectConstraintsMap.set(e.destination,t)),t.add(e)}deleteConstraint(e){this._constraints.delete(e);let t=this._objectConstraintsMap.get(e.destination);t.delete(e)}setInitState(){let e=new Set,t=new Set;for(let n of this._constraints)this._processConstraint(n,e,t,e=>e.setInitState())}update(){let e=new Set,t=new Set;for(let n of this._constraints)this._processConstraint(n,e,t,e=>e.update())}_processConstraint(e,t,n,r){if(n.has(e))return;if(t.has(e))throw Error(`VRMNodeConstraintManager: Circular dependency detected while updating constraints`);t.add(e);let i=e.dependencies;for(let e of i)hr(e,e=>{let i=this._objectConstraintsMap.get(e);if(i)for(let e of i)this._processConstraint(e,t,n,r)});r(e),n.add(e)}},_r=new C,vr=new C,yr=class extends sr{get dependencies(){return new Set([this.source])}constructor(e,t){super(e,t),this._dstRestQuat=new C,this._invSrcRestQuat=new C}setInitState(){this._dstRestQuat.copy(this.destination.quaternion),or(this._invSrcRestQuat.copy(this.source.quaternion))}update(){let e=_r.copy(this._invSrcRestQuat).multiply(this.source.quaternion),t=vr.copy(this._dstRestQuat).multiply(e);this.destination.quaternion.copy(this._dstRestQuat).slerp(t,this.weight)}},br=new M,xr=new C,Sr=new C,Cr=class extends sr{get rollAxis(){return this._rollAxis}set rollAxis(e){this._rollAxis=e,this._v3RollAxis.set(e===`X`?1:0,e===`Y`?1:0,e===`Z`?1:0)}get dependencies(){return new Set([this.source])}constructor(e,t){super(e,t),this._rollAxis=`X`,this._v3RollAxis=new M(1,0,0),this._dstRestQuat=new C,this._invDstRestQuat=new C,this._invSrcRestQuatMulDstRestQuat=new C}setInitState(){this._dstRestQuat.copy(this.destination.quaternion),or(this._invDstRestQuat.copy(this._dstRestQuat)),or(this._invSrcRestQuatMulDstRestQuat.copy(this.source.quaternion)).multiply(this._dstRestQuat)}update(){let e=xr.copy(this._invDstRestQuat).multiply(this.source.quaternion).multiply(this._invSrcRestQuatMulDstRestQuat),t=br.copy(this._v3RollAxis).applyQuaternion(e),n=Sr.setFromUnitVectors(t,this._v3RollAxis),r=n.premultiply(this._dstRestQuat).multiply(e);this.destination.quaternion.copy(this._dstRestQuat).slerp(r,this.weight)}},wr=new Set([`1.0`,`1.0-beta`]),Tr=class e{get name(){return e.EXTENSION_NAME}constructor(e,t){this.parser=e,this.helperRoot=t?.helperRoot}afterRoot(e){return er(this,null,function*(){e.userData.vrmNodeConstraintManager=yield this._import(e)})}_import(t){return er(this,null,function*(){var n;let r=this.parser.json,i=(n=r.extensionsUsed)?.indexOf(e.EXTENSION_NAME)!==-1;if(!i)return null;let a=new gr,o=yield this.parser.getDependencies(`node`);return o.forEach((t,n)=>{var i;let s=r.nodes[n],c=(i=s?.extensions)?.[e.EXTENSION_NAME];if(c==null)return;let l=c.specVersion;if(!wr.has(l)){console.warn(`VRMNodeConstraintLoaderPlugin: Unknown ${e.EXTENSION_NAME} specVersion "${l}"`);return}let u=c.constraint;if(u.roll!=null){let e=this._importRollConstraint(t,o,u.roll);a.addConstraint(e)}else if(u.aim!=null){let e=this._importAimConstraint(t,o,u.aim);a.addConstraint(e)}else if(u.rotation!=null){let e=this._importRotationConstraint(t,o,u.rotation);a.addConstraint(e)}}),t.scene.updateMatrixWorld(),a.setInitState(),a})}_importRollConstraint(e,t,n){let{source:r,rollAxis:i,weight:a}=n,o=t[r],s=new Cr(e,o);if(i!=null&&(s.rollAxis=i),a!=null&&(s.weight=a),this.helperRoot){let e=new tr(s);this.helperRoot.add(e)}return s}_importAimConstraint(e,t,n){let{source:r,aimAxis:i,weight:a}=n,o=t[r],s=new mr(e,o);if(i!=null&&(s.aimAxis=i),a!=null&&(s.weight=a),this.helperRoot){let e=new tr(s);this.helperRoot.add(e)}return s}_importRotationConstraint(e,t,n){let{source:r,weight:i}=n,a=t[r],o=new yr(e,a);if(i!=null&&(o.weight=i),this.helperRoot){let e=new tr(o);this.helperRoot.add(e)}return o}};Tr.EXTENSION_NAME=`VRMC_node_constraint`;var Er=Tr,Dr=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Or=class{},kr=new M,Ar=new M,jr=class extends Or{get type(){return`capsule`}constructor(e){var t,n,r,i;super(),this.offset=(t=e?.offset)??new M(0,0,0),this.tail=(n=e?.tail)??new M(0,0,0),this.radius=(r=e?.radius)??0,this.inside=(i=e?.inside)??!1}calculateCollision(e,t,n,r){kr.setFromMatrixPosition(e),Ar.subVectors(this.tail,this.offset).applyMatrix4(e),Ar.sub(kr);let i=Ar.lengthSq();r.copy(t).sub(kr);let a=Ar.dot(r);a<=0||(i<=a||Ar.multiplyScalar(a/i),r.sub(Ar));let o=r.length(),s=this.inside?this.radius-n-o:o-n-this.radius;return s<0&&(r.multiplyScalar(1/o),this.inside&&r.negate()),s}},Mr=new M,Nr=new E,Pr=class extends Or{get type(){return`plane`}constructor(e){var t,n;super(),this.offset=(t=e?.offset)??new M(0,0,0),this.normal=(n=e?.normal)??new M(0,0,1)}calculateCollision(e,t,n,r){r.setFromMatrixPosition(e),r.negate().add(t),Nr.getNormalMatrix(e),Mr.copy(this.normal).applyNormalMatrix(Nr).normalize();let i=r.dot(Mr)-n;return r.copy(Mr),i}},Fr=new M,Ir=class extends Or{get type(){return`sphere`}constructor(e){var t,n,r;super(),this.offset=(t=e?.offset)??new M(0,0,0),this.radius=(n=e?.radius)??0,this.inside=(r=e?.inside)??!1}calculateCollision(e,t,n,r){r.subVectors(t,Fr.setFromMatrixPosition(e));let i=r.length(),a=this.inside?this.radius-n-i:i-n-this.radius;return a<0&&(r.multiplyScalar(1/i),this.inside&&r.negate()),a}},G=new M,Lr=class extends b{constructor(e){super(),this.worldScale=1,this._currentRadius=0,this._currentOffset=new M,this._currentTail=new M,this._shape=e,this._attrPos=new y(new Float32Array(396),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new y(new Uint16Array(264),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1,t=this._shape.radius/this.worldScale;this._currentRadius!==t&&(this._currentRadius=t,e=!0),this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),e=!0);let n=G.copy(this._shape.tail).divideScalar(this.worldScale);this._currentTail.distanceToSquared(n)>1e-10&&(this._currentTail.copy(n),e=!0),e&&this._buildPosition()}_buildPosition(){G.copy(this._currentTail).sub(this._currentOffset);let e=G.length()/this._currentRadius;for(let t=0;t<=16;t++){let n=t/16*Math.PI;this._attrPos.setXYZ(t,-Math.sin(n),-Math.cos(n),0),this._attrPos.setXYZ(17+t,e+Math.sin(n),Math.cos(n),0),this._attrPos.setXYZ(34+t,-Math.sin(n),0,-Math.cos(n)),this._attrPos.setXYZ(51+t,e+Math.sin(n),0,Math.cos(n))}for(let t=0;t<32;t++){let n=t/16*Math.PI;this._attrPos.setXYZ(68+t,0,Math.sin(n),Math.cos(n)),this._attrPos.setXYZ(100+t,e,Math.sin(n),Math.cos(n))}let t=Math.atan2(G.y,Math.sqrt(G.x*G.x+G.z*G.z)),n=-Math.atan2(G.z,G.x);this.rotateZ(t),this.rotateY(n),this.scale(this._currentRadius,this._currentRadius,this._currentRadius),this.translate(this._currentOffset.x,this._currentOffset.y,this._currentOffset.z),this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<34;e++){let t=(e+1)%34;this._attrIndex.setXY(e*2,e,t),this._attrIndex.setXY(68+e*2,34+e,34+t)}for(let e=0;e<32;e++){let t=(e+1)%32;this._attrIndex.setXY(136+e*2,68+e,68+t),this._attrIndex.setXY(200+e*2,100+e,100+t)}this._attrIndex.needsUpdate=!0}},Rr=class extends b{constructor(e){super(),this.worldScale=1,this._currentOffset=new M,this._currentNormal=new M,this._shape=e,this._attrPos=new y(new Float32Array(18),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new y(new Uint16Array(10),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1;this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),e=!0),this._currentNormal.equals(this._shape.normal)||(this._currentNormal.copy(this._shape.normal),e=!0),e&&this._buildPosition()}_buildPosition(){this._attrPos.setXYZ(0,-.5,-.5,0),this._attrPos.setXYZ(1,.5,-.5,0),this._attrPos.setXYZ(2,.5,.5,0),this._attrPos.setXYZ(3,-.5,.5,0),this._attrPos.setXYZ(4,0,0,0),this._attrPos.setXYZ(5,0,0,.25),this.translate(this._currentOffset.x,this._currentOffset.y,this._currentOffset.z),this.lookAt(this._currentNormal),this._attrPos.needsUpdate=!0}_buildIndex(){this._attrIndex.setXY(0,0,1),this._attrIndex.setXY(2,1,2),this._attrIndex.setXY(4,2,3),this._attrIndex.setXY(6,3,0),this._attrIndex.setXY(8,4,5),this._attrIndex.needsUpdate=!0}},zr=class extends b{constructor(e){super(),this.worldScale=1,this._currentRadius=0,this._currentOffset=new M,this._shape=e,this._attrPos=new y(new Float32Array(288),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new y(new Uint16Array(192),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1,t=this._shape.radius/this.worldScale;this._currentRadius!==t&&(this._currentRadius=t,e=!0),this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),e=!0),e&&this._buildPosition()}_buildPosition(){for(let e=0;e<32;e++){let t=e/16*Math.PI;this._attrPos.setXYZ(e,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+e,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+e,Math.sin(t),0,Math.cos(t))}this.scale(this._currentRadius,this._currentRadius,this._currentRadius),this.translate(this._currentOffset.x,this._currentOffset.y,this._currentOffset.z),this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<32;e++){let t=(e+1)%32;this._attrIndex.setXY(e*2,e,t),this._attrIndex.setXY(64+e*2,32+e,32+t),this._attrIndex.setXY(128+e*2,64+e,64+t)}this._attrIndex.needsUpdate=!0}},Br=new M,Vr=class extends d{constructor(e){if(super(),this.matrixAutoUpdate=!1,this.collider=e,this.collider.shape instanceof Ir)this._geometry=new zr(this.collider.shape);else if(this.collider.shape instanceof jr)this._geometry=new Lr(this.collider.shape);else if(this.collider.shape instanceof Pr)this._geometry=new Rr(this.collider.shape);else throw Error(`VRMSpringBoneColliderHelper: Unknown collider shape type detected`);let t=new le({color:16711935,depthTest:!1,depthWrite:!1});this._line=new Ce(this._geometry,t),this.add(this._line)}dispose(){this._geometry.dispose()}updateMatrixWorld(e){this.collider.updateWorldMatrix(!0,!1),this.matrix.copy(this.collider.matrixWorld);let t=this.matrix.elements;this._geometry.worldScale=Br.set(t[0],t[1],t[2]).length(),this._geometry.update(),super.updateMatrixWorld(e)}},Hr=class extends b{constructor(e){super(),this.worldScale=1,this._currentRadius=0,this._currentTail=new M,this._springBone=e,this._attrPos=new y(new Float32Array(294),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new y(new Uint16Array(194),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1,t=this._springBone.settings.hitRadius/this.worldScale;this._currentRadius!==t&&(this._currentRadius=t,e=!0),this._currentTail.equals(this._springBone.initialLocalChildPosition)||(this._currentTail.copy(this._springBone.initialLocalChildPosition),e=!0),e&&this._buildPosition()}_buildPosition(){for(let e=0;e<32;e++){let t=e/16*Math.PI;this._attrPos.setXYZ(e,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+e,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+e,Math.sin(t),0,Math.cos(t))}this.scale(this._currentRadius,this._currentRadius,this._currentRadius),this.translate(this._currentTail.x,this._currentTail.y,this._currentTail.z),this._attrPos.setXYZ(96,0,0,0),this._attrPos.setXYZ(97,this._currentTail.x,this._currentTail.y,this._currentTail.z),this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<32;e++){let t=(e+1)%32;this._attrIndex.setXY(e*2,e,t),this._attrIndex.setXY(64+e*2,32+e,32+t),this._attrIndex.setXY(128+e*2,64+e,64+t)}this._attrIndex.setXY(192,96,97),this._attrIndex.needsUpdate=!0}},Ur=new M,Wr=class extends d{constructor(e){super(),this.matrixAutoUpdate=!1,this.springBone=e,this._geometry=new Hr(this.springBone);let t=new le({color:16776960,depthTest:!1,depthWrite:!1});this._line=new Ce(this._geometry,t),this.add(this._line)}dispose(){this._geometry.dispose()}updateMatrixWorld(e){this.springBone.bone.updateWorldMatrix(!0,!1),this.matrix.copy(this.springBone.bone.matrixWorld);let t=this.matrix.elements;this._geometry.worldScale=Ur.set(t[0],t[1],t[2]).length(),this._geometry.update(),super.updateMatrixWorld(e)}},Gr=class extends S{constructor(e){super(),this.colliderMatrix=new D,this.shape=e}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),Kr(this.colliderMatrix,this.matrixWorld,this.shape.offset)}};function Kr(e,t,n){let r=t.elements;e.copy(t),n&&(e.elements[12]=r[0]*n.x+r[4]*n.y+r[8]*n.z+r[12],e.elements[13]=r[1]*n.x+r[5]*n.y+r[9]*n.z+r[13],e.elements[14]=r[2]*n.x+r[6]*n.y+r[10]*n.z+r[14])}var qr=new D;function Jr(e){return e.invert?e.invert():e.getInverse(qr.copy(e)),e}var Yr=class{constructor(e){this._inverseCache=new D,this._shouldUpdateInverse=!0,this.matrix=e;let t={set:(e,t,n)=>(this._shouldUpdateInverse=!0,e[t]=n,!0)};this._originalElements=e.elements,e.elements=new Proxy(e.elements,t)}get inverse(){return this._shouldUpdateInverse&&=(Jr(this._inverseCache.copy(this.matrix)),!1),this._inverseCache}revert(){this.matrix.elements=this._originalElements}},Xr=new D,Zr=new M,Qr=new M,$r=new M,ei=new M,ti=new D,ni=class{constructor(e,t,n={},r=[]){this._currentTail=new M,this._prevTail=new M,this._boneAxis=new M,this._worldSpaceBoneLength=0,this._center=null,this._initialLocalMatrix=new D,this._initialLocalRotation=new C,this._initialLocalChildPosition=new M;var i,a,o,s,c,l;this.bone=e,this.bone.matrixAutoUpdate=!1,this.child=t,this.settings={hitRadius:(i=n.hitRadius)??0,stiffness:(a=n.stiffness)??1,gravityPower:(o=n.gravityPower)??0,gravityDir:(c=(s=n.gravityDir)?.clone())??new M(0,-1,0),dragForce:(l=n.dragForce)??.4},this.colliderGroups=r}get dependencies(){let e=new Set,t=this.bone.parent;t&&e.add(t);for(let t=0;t{t(e)})}function ii(e,t){e.children.forEach(e=>{let n=t(e);n||ii(e,t)})}function ai(e){var t;let n=new Map;for(let r of e){let i=r;do{let r=((t=n.get(i))??0)+1;if(r===e.size)return i;n.set(i,r),i=i.parent}while(i!==null)}return null}var oi=class{constructor(){this._joints=new Set,this._sortedJoints=[],this._hasWarnedCircularDependency=!1,this._ancestors=[],this._objectSpringBonesMap=new Map,this._isSortedJointsDirty=!1,this._relevantChildrenUpdated=this._relevantChildrenUpdated.bind(this)}get joints(){return this._joints}get springBones(){return console.warn(`VRMSpringBoneManager: springBones is deprecated. use joints instead.`),this._joints}get colliderGroups(){let e=new Set;return this._joints.forEach(t=>{t.colliderGroups.forEach(t=>{e.add(t)})}),Array.from(e)}get colliders(){let e=new Set;return this.colliderGroups.forEach(t=>{t.colliders.forEach(t=>{e.add(t)})}),Array.from(e)}addJoint(e){this._joints.add(e);let t=this._objectSpringBonesMap.get(e.bone);t??(t=new Set,this._objectSpringBonesMap.set(e.bone,t)),t.add(e),this._isSortedJointsDirty=!0}addSpringBone(e){console.warn(`VRMSpringBoneManager: addSpringBone() is deprecated. use addJoint() instead.`),this.addJoint(e)}deleteJoint(e){this._joints.delete(e);let t=this._objectSpringBonesMap.get(e.bone);t.delete(e),this._isSortedJointsDirty=!0}deleteSpringBone(e){console.warn(`VRMSpringBoneManager: deleteSpringBone() is deprecated. use deleteJoint() instead.`),this.deleteJoint(e)}setInitState(){this._sortJoints();for(let e=0;e{var t,n;return((n=(t=this._objectSpringBonesMap.get(e))?.size)??0)>0?!0:(this._ancestors.push(e),!1)})),this._isSortedJointsDirty=!1}_insertJointSort(e,t,n,r,i){if(n.has(e))return;if(t.has(e)){this._hasWarnedCircularDependency||=(console.warn(`VRMSpringBoneManager: Circular dependency detected`),!0);return}t.add(e);let a=e.dependencies;for(let e of a){let a=!1,o=null;ri(e,e=>{let s=this._objectSpringBonesMap.get(e);if(s)for(let e of s)a=!0,this._insertJointSort(e,t,n,r,i);else a||(o=e)}),o&&i.add(o)}r.push(e),n.add(e)}_relevantChildrenUpdated(e){var t,n;return((n=(t=this._objectSpringBonesMap.get(e))?.size)??0)>0?!0:(e.updateWorldMatrix(!1,!1),!1)}},si=`VRMC_springBone_extended_collider`,ci=new Set([`1.0`,`1.0-beta`]),li=new Set([`1.0`]),ui=class e{get name(){return e.EXTENSION_NAME}constructor(e,t){var n;this.parser=e,this.jointHelperRoot=t?.jointHelperRoot,this.colliderHelperRoot=t?.colliderHelperRoot,this.useExtendedColliders=(n=t?.useExtendedColliders)??!0}afterRoot(e){return Dr(this,null,function*(){e.userData.vrmSpringBoneManager=yield this._import(e)})}_import(e){return Dr(this,null,function*(){let t=yield this._v1Import(e);if(t!=null)return t;let n=yield this._v0Import(e);return n??null})}_v1Import(t){return Dr(this,null,function*(){var n,r,i,a,o;let s=t.parser.json,c=(n=s.extensionsUsed)?.indexOf(e.EXTENSION_NAME)!==-1;if(!c)return null;let l=new oi,u=yield t.parser.getDependencies(`node`),d=(r=s.extensions)?.[e.EXTENSION_NAME];if(!d)return null;let f=d.specVersion;if(!ci.has(f))return console.warn(`VRMSpringBoneLoaderPlugin: Unknown ${e.EXTENSION_NAME} specVersion "${f}"`),null;let p=(i=d.colliders)?.map((t,n)=>{var r,i,a,o,s,c,l,d,f,p,m,h,g,_,v;let y=u[t.node];if(y==null)return console.warn(`VRMSpringBoneLoaderPlugin: The collider #${n} attempted to use the node #${t.node} but not found`),null;let b=t.shape,x=(r=t.extensions)?.[si];if(this.useExtendedColliders&&x!=null){let t=x.specVersion;if(!li.has(t))console.warn(`VRMSpringBoneLoaderPlugin: Unknown ${si} specVersion "${t}". Fallbacking to the ${e.EXTENSION_NAME} definition`);else{let e=x.shape;if(e.sphere)return this._importSphereCollider(y,{offset:new M().fromArray((i=e.sphere.offset)??[0,0,0]),radius:(a=e.sphere.radius)??0,inside:(o=e.sphere.inside)??!1});if(e.capsule)return this._importCapsuleCollider(y,{offset:new M().fromArray((s=e.capsule.offset)??[0,0,0]),radius:(c=e.capsule.radius)??0,tail:new M().fromArray((l=e.capsule.tail)??[0,0,0]),inside:(d=e.capsule.inside)??!1});if(e.plane)return this._importPlaneCollider(y,{offset:new M().fromArray((f=e.plane.offset)??[0,0,0]),normal:new M().fromArray((p=e.plane.normal)??[0,0,1])})}}if(b.sphere)return this._importSphereCollider(y,{offset:new M().fromArray((m=b.sphere.offset)??[0,0,0]),radius:(h=b.sphere.radius)??0,inside:!1});if(b.capsule)return this._importCapsuleCollider(y,{offset:new M().fromArray((g=b.capsule.offset)??[0,0,0]),radius:(_=b.capsule.radius)??0,tail:new M().fromArray((v=b.capsule.tail)??[0,0,0]),inside:!1});throw Error(`VRMSpringBoneLoaderPlugin: The collider #${n} has no valid shape`)}),m=(a=d.colliderGroups)?.map((e,t)=>{var n;let r=((n=e.colliders)??[]).flatMap(e=>{let n=p?.[e];return n??(console.warn(`VRMSpringBoneLoaderPlugin: The colliderGroup #${t} attempted to use a collider #${e} but not found`),[])});return{colliders:r,name:e.name}});return(o=d.springs)==null||o.forEach((e,t)=>{var n;let r=e.joints,i=(n=e.colliderGroups)?.map(e=>{let n=m?.[e];if(n==null)throw Error(`VRMSpringBoneLoaderPlugin: The spring #${t} attempted to use a colliderGroup ${e} but not found`);return n}),a=e.center==null?void 0:u[e.center],o;r.forEach(e=>{if(o){let t=o.node,n=u[t],r=e.node,s=u[r],c={hitRadius:o.hitRadius,dragForce:o.dragForce,gravityPower:o.gravityPower,stiffness:o.stiffness,gravityDir:o.gravityDir==null?void 0:new M().fromArray(o.gravityDir)},d=this._importJoint(n,s,c,i);a&&(d.center=a),l.addJoint(d)}o=e})}),l.setInitState(),l})}_v0Import(e){return Dr(this,null,function*(){var t,n,r;let i=e.parser.json,a=(t=i.extensionsUsed)?.indexOf(`VRM`)!==-1;if(!a)return null;let o=(n=i.extensions)?.VRM,s=o?.secondaryAnimation;if(!s)return null;let c=s?.boneGroups;if(!c)return null;let l=new oi,u=yield e.parser.getDependencies(`node`),d=(r=s.colliderGroups)?.map(e=>{var t;let n=u[e.node],r=((t=e.colliders)??[]).map((e,t)=>{var r,i,a;let o=new M(0,0,0);return e.offset&&o.set((r=e.offset.x)??0,(i=e.offset.y)??0,e.offset.z?-e.offset.z:0),this._importSphereCollider(n,{offset:o,radius:(a=e.radius)??0,inside:!1})});return{colliders:r}});return c?.forEach((e,t)=>{let n=e.bones;n&&n.forEach(n=>{var r,i,a,o;let s=u[n],c=new M;e.gravityDir?c.set((r=e.gravityDir.x)??0,(i=e.gravityDir.y)??0,(a=e.gravityDir.z)??0):c.set(0,-1,0);let f=e.center==null?void 0:u[e.center],p={hitRadius:e.hitRadius,dragForce:e.dragForce,gravityPower:e.gravityPower,stiffness:e.stiffiness,gravityDir:c},m=(o=e.colliderGroups)?.map(e=>{let n=d?.[e];if(n==null)throw Error(`VRMSpringBoneLoaderPlugin: The spring #${t} attempted to use a colliderGroup ${e} but not found`);return n});s.traverse(e=>{var t;let n=(t=e.children[0])??null,r=this._importJoint(e,n,p,m);f&&(r.center=f),l.addJoint(r)})})}),e.scene.updateMatrixWorld(),l.setInitState(),l})}_importJoint(e,t,n,r){let i=new ni(e,t,n,r);if(this.jointHelperRoot){let e=new Wr(i);this.jointHelperRoot.add(e),e.renderOrder=this.jointHelperRoot.renderOrder}return i}_importSphereCollider(e,t){let n=new Ir(t),r=new Gr(n);if(e.add(r),this.colliderHelperRoot){let e=new Vr(r);this.colliderHelperRoot.add(e),e.renderOrder=this.colliderHelperRoot.renderOrder}return r}_importCapsuleCollider(e,t){let n=new jr(t),r=new Gr(n);if(e.add(r),this.colliderHelperRoot){let e=new Vr(r);this.colliderHelperRoot.add(e),e.renderOrder=this.colliderHelperRoot.renderOrder}return r}_importPlaneCollider(e,t){let n=new Pr(t),r=new Gr(n);if(e.add(r),this.colliderHelperRoot){let e=new Vr(r);this.colliderHelperRoot.add(e),e.renderOrder=this.colliderHelperRoot.renderOrder}return r}};ui.EXTENSION_NAME=`VRMC_springBone`;var di=ui,fi=class{get name(){return`VRMLoaderPlugin`}constructor(e,t){var n,r,i,a,o,s,c,l,u,d;this.parser=e;let f=t?.helperRoot,p=t?.autoUpdateHumanBones;this.expressionPlugin=(n=t?.expressionPlugin)??new pt(e),this.firstPersonPlugin=(r=t?.firstPersonPlugin)??new _t(e),this.humanoidPlugin=(i=t?.humanoidPlugin)??new Pt(e,{helperRoot:f,autoUpdateHumanBones:p}),this.lookAtPlugin=(a=t?.lookAtPlugin)??new hn(e,{helperRoot:f}),this.metaPlugin=(o=t?.metaPlugin)??new vn(e),this.mtoonMaterialPlugin=(s=t?.mtoonMaterialPlugin)??new zn(e),this.materialsHDREmissiveMultiplierPlugin=(c=t?.materialsHDREmissiveMultiplierPlugin)??new Hn(e),this.materialsV0CompatPlugin=(l=t?.materialsV0CompatPlugin)??new $n(e),this.springBonePlugin=(u=t?.springBonePlugin)??new di(e,{colliderHelperRoot:f,jointHelperRoot:f}),this.nodeConstraintPlugin=(d=t?.nodeConstraintPlugin)??new Er(e,{helperRoot:f})}beforeRoot(){return Ye(this,null,function*(){yield this.materialsV0CompatPlugin.beforeRoot(),yield this.mtoonMaterialPlugin.beforeRoot()})}loadMesh(e){return Ye(this,null,function*(){return yield this.mtoonMaterialPlugin.loadMesh(e)})}getMaterialType(e){let t=this.mtoonMaterialPlugin.getMaterialType(e);return t??null}extendMaterialParams(e,t){return Ye(this,null,function*(){yield this.materialsHDREmissiveMultiplierPlugin.extendMaterialParams(e,t),yield this.mtoonMaterialPlugin.extendMaterialParams(e,t)})}afterRoot(e){return Ye(this,null,function*(){yield this.metaPlugin.afterRoot(e),yield this.humanoidPlugin.afterRoot(e),yield this.expressionPlugin.afterRoot(e),yield this.lookAtPlugin.afterRoot(e),yield this.firstPersonPlugin.afterRoot(e),yield this.springBonePlugin.afterRoot(e),yield this.nodeConstraintPlugin.afterRoot(e),yield this.mtoonMaterialPlugin.afterRoot(e);let t=e.userData.vrmMeta,n=e.userData.vrmHumanoid;if(t&&n){let r=new bn({scene:e.scene,expressionManager:e.userData.vrmExpressionManager,firstPerson:e.userData.vrmFirstPerson,humanoid:n,lookAt:e.userData.vrmLookAt,meta:t,materials:e.userData.vrmMToonMaterials,springBoneManager:e.userData.vrmSpringBoneManager,nodeConstraintManager:e.userData.vrmNodeConstraintManager});e.userData.vrm=r}})}};function pi(e){let t=new Set;return e.traverse(e=>{if(!e.isMesh)return;let n=e;t.add(n)}),t}function mi(e,t,n){if(t.size===1){let n=t.values().next().value;if(n.weight===1)return e[n.index]}let r=new Float32Array(e[0].count*3),i=0;if(n)i=1;else for(let e of t)i+=e.weight;for(let n of t){let t=e[n.index],a=n.weight/i;for(let e=0;eu.getOrCreate(e)).join(`,`),l=`${n};${o};${a}`,d=s.get(l);d??(d=t.clone(),Ci(d,i,r),s.set(l,d)),e.geometry.setAttribute(`skinIndex`,d)}for(let e of n)e.bind(a,new D)}}function yi(e){let t=new Set;return e.traverse(e=>{if(!e.isSkinnedMesh)return;let n=e;t.add(n)}),t}function bi(e,t){let n=new Set;for(let r=0;rn)return!1}return!0}var Ti=class{constructor(){this._objectIndexMap=new Map,this._index=0}get(e){return this._objectIndexMap.get(e)}getOrCreate(e){let t=this._objectIndexMap.get(e);return t??(t=this._index,this._objectIndexMap.set(e,t),this._index++),t}};function Ei(e){var t,n,r,i;let a=new b;a.name=e.name,a.setIndex(e.index);for(let[t,n]of Object.entries(e.attributes))a.setAttribute(t,n);for(let[t,n]of Object.entries(e.morphAttributes)){let e=t;a.morphAttributes[e]=n.concat()}a.morphTargetsRelative=e.morphTargetsRelative,a.groups=[];for(let t of e.groups)a.addGroup(t.start,t.count,t.materialIndex);return a.boundingSphere=(n=(t=e.boundingSphere)?.clone())??null,a.boundingBox=(i=(r=e.boundingBox)?.clone())??null,a.drawRange.start=e.drawRange.start,a.drawRange.count=e.drawRange.count,a.userData=e.userData,a}function Di(e){if(Object.values(e).forEach(e=>{if(e?.isTexture){let t=e;t.dispose()}}),e.isShaderMaterial){let t=e.uniforms;t&&Object.values(t).forEach(e=>{let t=e.value;if(t?.isTexture){let e=t;e.dispose()}})}e.dispose()}function Oi(e){let t=e.geometry;t&&t.dispose();let n=e.skeleton;n&&n.dispose();let r=e.material;r&&(Array.isArray(r)?r.forEach(e=>Di(e)):r&&Di(r))}function ki(e){e.traverse(Oi)}function Ai(e,t){var n,r;console.warn(`VRMUtils.removeUnnecessaryJoints: removeUnnecessaryJoints is deprecated. Use combineSkeletons instead. combineSkeletons contributes more to the performance improvement. This function will be removed in the next major version.`);let i=(n=t?.experimentalSameBoneCounts)??!1,a=[];e.traverse(e=>{e.type===`SkinnedMesh`&&a.push(e)});let o=new Map,s=0;for(let e of a){let t=e.geometry,n=t.getAttribute(`skinIndex`);if(o.has(n))continue;let r=new Map,i=new Map;for(let e=0;e{var n,r,i,a;if(!e.isMesh)return;let o=e,s=o.geometry,c=s.index;if(c==null)return;let l=t.get(s);if(l!=null){o.geometry=l;return}let u=Object.values(s.attributes)[0].count,d=Array(u),f=0,p=c.array;for(let e=0;e{_.addGroup(e.start,e.count,e.materialIndex)}),_.boundingBox=(r=(n=s.boundingBox)?.clone())??null,_.boundingSphere=(a=(i=s.boundingSphere)?.clone())??null,_.setDrawRange(s.drawRange.start,s.drawRange.count),_.userData=s.userData,t.set(s,_);{let e=c.array,t=new e.constructor(e.length);for(let n=0;n{let t=s.attributes[e];if(t.isInterleavedBufferAttribute)throw Error(`removeUnnecessaryVertices: InterleavedBufferAttribute is not supported`);let n=t.array,{itemSize:r,normalized:i}=t,a=new n.constructor(h.length*r);h.forEach((e,t)=>{for(let i=0;i{for(let n=0;ne===0),_.morphAttributes[n][e]=new y(s,a,o)}}v&&(_.morphAttributes={}),o.geometry=_}),Array.from(t.keys()).forEach(e=>{e.dispose()})}function Mi(e){var t;(t=e.meta)?.metaVersion===`0`&&(e.scene.rotation.y=Math.PI)}var K=class{constructor(){}};K.combineMorphs=hi,K.combineSkeletons=vi,K.deepDispose=ki,K.removeUnnecessaryJoints=Ai,K.removeUnnecessaryVertices=ji,K.rotateVRM0=Mi; -/*! -* @pixiv/three-vrm-core v3.4.2 -* The implementation of core features of VRM, for @pixiv/three-vrm -* -* Copyright (c) 2019-2025 pixiv Inc. -* @pixiv/three-vrm-core is distributed under MIT License -* https://github.com/pixiv/three-vrm/blob/release/LICENSE -*/ -/*! -* @pixiv/three-vrm-materials-mtoon v3.4.2 -* MToon (toon material) module for @pixiv/three-vrm -* -* Copyright (c) 2019-2025 pixiv Inc. -* @pixiv/three-vrm-materials-mtoon is distributed under MIT License -* https://github.com/pixiv/three-vrm/blob/release/LICENSE -*/ -/*! -* @pixiv/three-vrm-materials-hdr-emissive-multiplier v3.4.2 -* Support VRMC_hdr_emissiveMultiplier for @pixiv/three-vrm -* -* Copyright (c) 2019-2025 pixiv Inc. -* @pixiv/three-vrm-materials-hdr-emissive-multiplier is distributed under MIT License -* https://github.com/pixiv/three-vrm/blob/release/LICENSE -*/ -/*! -* @pixiv/three-vrm-materials-v0compat v3.4.2 -* VRM0.0 materials compatibility layer plugin for @pixiv/three-vrm -* -* Copyright (c) 2019-2025 pixiv Inc. -* @pixiv/three-vrm-materials-v0compat is distributed under MIT License -* https://github.com/pixiv/three-vrm/blob/release/LICENSE -*/ -/*! -* @pixiv/three-vrm-node-constraint v3.4.2 -* Node constraint module for @pixiv/three-vrm -* -* Copyright (c) 2019-2025 pixiv Inc. -* @pixiv/three-vrm-node-constraint is distributed under MIT License -* https://github.com/pixiv/three-vrm/blob/release/LICENSE -*/ -/*! -* @pixiv/three-vrm-springbone v3.4.2 -* Spring bone module for @pixiv/three-vrm -* -* Copyright (c) 2019-2025 pixiv Inc. -* @pixiv/three-vrm-springbone is distributed under MIT License -* https://github.com/pixiv/three-vrm/blob/release/LICENSE -*/ -/*! -* @pixiv/three-vrm-animation v3.4.2 -* The implementation of VRM Animation -* -* Copyright (c) 2019-2025 pixiv Inc. -* @pixiv/three-vrm-animation is distributed under MIT License -* https://github.com/pixiv/three-vrm/blob/release/LICENSE -*/ -var Ni=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),q=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Pi=class extends S{constructor(e){super(),this.weight=0,this.isBinary=!1,this.overrideBlink=`none`,this.overrideLookAt=`none`,this.overrideMouth=`none`,this._binds=[],this.name=`VRMExpression_${e}`,this.expressionName=e,this.type=`VRMExpression`,this.visible=!1}get binds(){return this._binds}get overrideBlinkAmount(){return this.overrideBlink===`block`?0.5?1:0:this.weight}addBind(e){this._binds.push(e)}deleteBind(e){let t=this._binds.indexOf(e);t>=0&&this._binds.splice(t,1)}applyWeight(e){var t;let n=this.outputWeight;n*=(t=e?.multiplier)??1,this.isBinary&&n<1&&(n=0),this._binds.forEach(e=>e.applyWeight(n))}clearAppliedWeight(){this._binds.forEach(e=>e.clearAppliedWeight())}};function Fi(e,t,n){var r,i;let a=e.parser.json,o=(r=a.nodes)?.[t];if(o==null)return console.warn(`extractPrimitivesInternal: Attempt to use nodes[${t}] of glTF but the node doesn't exist`),null;let s=o.mesh;if(s==null)return null;let c=(i=a.meshes)?.[s];if(c==null)return console.warn(`extractPrimitivesInternal: Attempt to use meshes[${s}] of glTF but the mesh doesn't exist`),null;let l=c.primitives.length,u=[];return n.traverse(e=>{u.length{t.has(n)&&(e[n]=r)}),e}get customExpressionMap(){let e={},t=new Set(Object.values(Li));return Object.entries(this._expressionMap).forEach(([n,r])=>{t.has(n)||(e[n]=r)}),e}copy(e){let t=this._expressions.concat();return t.forEach(e=>{this.unregisterExpression(e)}),e._expressions.forEach(e=>{this.registerExpression(e)}),this.blinkExpressionNames=e.blinkExpressionNames.concat(),this.lookAtExpressionNames=e.lookAtExpressionNames.concat(),this.mouthExpressionNames=e.mouthExpressionNames.concat(),this}clone(){return new e().copy(this)}getExpression(e){var t;return(t=this._expressionMap[e])??null}registerExpression(e){this._expressions.push(e),this._expressionMap[e.expressionName]=e}unregisterExpression(e){let t=this._expressions.indexOf(e);t===-1&&console.warn(`VRMExpressionManager: The specified expressions is not registered`),this._expressions.splice(t,1),delete this._expressionMap[e.expressionName]}getValue(e){var t;let n=this.getExpression(e);return(t=n?.weight)??null}setValue(e,t){let n=this.getExpression(e);n&&(n.weight=Ri(t))}resetValues(){this._expressions.forEach(e=>{e.weight=0})}getExpressionTrackName(e){let t=this.getExpression(e);return t?`${t.name}.weight`:null}update(){let e=this._calculateWeightMultipliers();this._expressions.forEach(e=>{e.clearAppliedWeight()}),this._expressions.forEach(t=>{let n=1,r=t.expressionName;this.blinkExpressionNames.indexOf(r)!==-1&&(n*=e.blink),this.lookAtExpressionNames.indexOf(r)!==-1&&(n*=e.lookAt),this.mouthExpressionNames.indexOf(r)!==-1&&(n*=e.mouth),t.applyWeight({multiplier:n})})}_calculateWeightMultipliers(){let e=1,t=1,n=1;return this._expressions.forEach(r=>{e-=r.overrideBlinkAmount,t-=r.overrideLookAtAmount,n-=r.overrideMouthAmount}),e=Math.max(0,e),t=Math.max(0,t),n=Math.max(0,n),{blink:e,lookAt:t,mouth:n}}},Bi={Color:`color`,EmissionColor:`emissionColor`,ShadeColor:`shadeColor`,MatcapColor:`matcapColor`,RimColor:`rimColor`,OutlineColor:`outlineColor`},Vi={_Color:Bi.Color,_EmissionColor:Bi.EmissionColor,_ShadeColor:Bi.ShadeColor,_RimColor:Bi.RimColor,_OutlineColor:Bi.OutlineColor},Hi=new n,Ui=class e{constructor({material:e,type:t,targetValue:n,targetAlpha:r}){this.material=e,this.type=t,this.targetValue=n,this.targetAlpha=r??1;let i=this._initColorBindState(),a=this._initAlphaBindState();this._state={color:i,alpha:a}}applyWeight(e){let{color:t,alpha:n}=this._state;if(t!=null){let{propertyName:n,deltaValue:r}=t,i=this.material[n];i?.add(Hi.copy(r).multiplyScalar(e))}if(n!=null){let{propertyName:t,deltaValue:r}=n,i=this.material[t];i!=null&&(this.material[t]+=r*e)}}clearAppliedWeight(){let{color:e,alpha:t}=this._state;if(e!=null){let{propertyName:t,initialValue:n}=e,r=this.material[t];r?.copy(n)}if(t!=null){let{propertyName:e,initialValue:n}=t,r=this.material[e];r!=null&&(this.material[e]=n)}}_initColorBindState(){var e,t,r;let{material:i,type:a,targetValue:o}=this,s=this._getPropertyNameMap(),c=(t=(e=s?.[a])?.[0])??null;if(c==null)return console.warn(`Tried to add a material color bind to the material ${(r=i.name)??`(no name)`}, the type ${a} but the material or the type is not supported.`),null;let l=i[c],u=l.clone(),d=new n(o.r-u.r,o.g-u.g,o.b-u.b);return{propertyName:c,initialValue:u,deltaValue:d}}_initAlphaBindState(){var e,t,n;let{material:r,type:i,targetAlpha:a}=this,o=this._getPropertyNameMap(),s=(t=(e=o?.[i])?.[1])??null;if(s==null&&a!==1)return console.warn(`Tried to add a material alpha bind to the material ${(n=r.name)??`(no name)`}, the type ${i} but the material or the type does not support alpha.`),null;if(s==null)return null;let c=r[s],l=a-c;return{propertyName:s,initialValue:c,deltaValue:l}}_getPropertyNameMap(){var t,n;return(n=(t=Object.entries(e._propertyNameMapMap).find(([e])=>this.material[e]===!0))?.[1])??null}};Ui._propertyNameMapMap={isMeshStandardMaterial:{color:[`color`,`opacity`],emissionColor:[`emissive`,null]},isMeshBasicMaterial:{color:[`color`,`opacity`]},isMToonMaterial:{color:[`color`,`opacity`],emissionColor:[`emissive`,null],outlineColor:[`outlineColorFactor`,null],matcapColor:[`matcapFactor`,null],rimColor:[`parametricRimColorFactor`,null],shadeColor:[`shadeColorFactor`,null]}};var Wi=Ui,Gi=class{constructor({primitives:e,index:t,weight:n}){this.primitives=e,this.index=t,this.weight=n}applyWeight(e){this.primitives.forEach(t=>{var n;(n=t.morphTargetInfluences)?.[this.index]!=null&&(t.morphTargetInfluences[this.index]+=this.weight*e)})}clearAppliedWeight(){this.primitives.forEach(e=>{var t;(t=e.morphTargetInfluences)?.[this.index]!=null&&(e.morphTargetInfluences[this.index]=0)})}},Ki=new j,qi=class e{constructor({material:t,scale:n,offset:r}){var i,a;this.material=t,this.scale=n,this.offset=r;let o=(i=Object.entries(e._propertyNamesMap).find(([e])=>t[e]===!0))?.[1];o==null?(console.warn(`Tried to add a texture transform bind to the material ${(a=t.name)??`(no name)`} but the material is not supported.`),this._properties=[]):(this._properties=[],o.forEach(e=>{var i;let a=(i=t[e])?.clone();if(!a)return null;t[e]=a;let o=a.offset.clone(),s=a.repeat.clone(),c=r.clone().sub(o),l=n.clone().sub(s);this._properties.push({name:e,initialOffset:o,deltaOffset:c,initialScale:s,deltaScale:l})}))}applyWeight(e){this._properties.forEach(t=>{let n=this.material[t.name];n!==void 0&&(n.offset.add(Ki.copy(t.deltaOffset).multiplyScalar(e)),n.repeat.add(Ki.copy(t.deltaScale).multiplyScalar(e)))})}clearAppliedWeight(){this._properties.forEach(e=>{let t=this.material[e.name];t!==void 0&&(t.offset.copy(e.initialOffset),t.repeat.copy(e.initialScale))})}};qi._propertyNamesMap={isMeshStandardMaterial:[`map`,`emissiveMap`,`bumpMap`,`normalMap`,`displacementMap`,`roughnessMap`,`metalnessMap`,`alphaMap`],isMeshBasicMaterial:[`map`,`specularMap`,`alphaMap`],isMToonMaterial:[`map`,`normalMap`,`emissiveMap`,`shadeMultiplyTexture`,`rimMultiplyTexture`,`outlineWidthMultiplyTexture`,`uvAnimationMaskTexture`]};var Ji=qi,Yi=new Set([`1.0`,`1.0-beta`]),Xi=class e{get name(){return`VRMExpressionLoaderPlugin`}constructor(e){this.parser=e}afterRoot(e){return q(this,null,function*(){e.userData.vrmExpressionManager=yield this._import(e)})}_import(e){return q(this,null,function*(){let t=yield this._v1Import(e);if(t)return t;let n=yield this._v0Import(e);return n||null})}_v1Import(e){return q(this,null,function*(){var t,r;let i=this.parser.json,a=(t=i.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!a)return null;let o=(r=i.extensions)?.VRMC_vrm;if(!o)return null;let s=o.specVersion;if(!Yi.has(s))return console.warn(`VRMExpressionLoaderPlugin: Unknown VRMC_vrm specVersion "${s}"`),null;let c=o.expressions;if(!c)return null;let l=new Set(Object.values(Li)),u=new Map;c.preset!=null&&Object.entries(c.preset).forEach(([e,t])=>{if(t!=null){if(!l.has(e)){console.warn(`VRMExpressionLoaderPlugin: Unknown preset name "${e}" detected. Ignoring the expression`);return}u.set(e,t)}}),c.custom!=null&&Object.entries(c.custom).forEach(([e,t])=>{if(l.has(e)){console.warn(`VRMExpressionLoaderPlugin: Custom expression cannot have preset name "${e}". Ignoring the expression`);return}u.set(e,t)});let d=new zi;return yield Promise.all(Array.from(u.entries()).map(t=>q(this,[t],function*([t,r]){var i,a,o,s,c,l,u;let f=new Pi(t);if(e.scene.add(f),f.isBinary=(i=r.isBinary)??!1,f.overrideBlink=(a=r.overrideBlink)??`none`,f.overrideLookAt=(o=r.overrideLookAt)??`none`,f.overrideMouth=(s=r.overrideMouth)??`none`,(c=r.morphTargetBinds)==null||c.forEach(t=>q(this,null,function*(){var n;if(t.node===void 0||t.index===void 0)return;let i=yield Ii(e,t.node),a=t.index;if(!i.every(e=>Array.isArray(e.morphTargetInfluences)&&a{let n=e.material;n&&(Array.isArray(n)?t.push(...n):t.push(n))}),(l=r.materialColorBinds)==null||l.forEach(e=>q(this,null,function*(){let r=t.filter(t=>{var n;let r=(n=this.parser.associations.get(t))?.materials;return e.material===r});r.forEach(t=>{f.addBind(new Wi({material:t,type:e.type,targetValue:new n().fromArray(e.targetValue),targetAlpha:e.targetValue[3]}))})})),(u=r.textureTransformBinds)==null||u.forEach(e=>q(this,null,function*(){let n=t.filter(t=>{var n;let r=(n=this.parser.associations.get(t))?.materials;return e.material===r});n.forEach(t=>{var n,r;f.addBind(new Ji({material:t,offset:new j().fromArray((n=e.offset)??[0,0]),scale:new j().fromArray((r=e.scale)??[1,1])}))})}))}d.registerExpression(f)}))),d})}_v0Import(t){return q(this,null,function*(){var r;let i=this.parser.json,a=(r=i.extensions)?.VRM;if(!a)return null;let o=a.blendShapeMaster;if(!o)return null;let s=new zi,c=o.blendShapeGroups;if(!c)return s;let l=new Set;return yield Promise.all(c.map(r=>q(this,null,function*(){var a;let o=r.presetName,c=o!=null&&e.v0v1PresetNameMap[o]||null,u=c??r.name;if(u==null){console.warn(`VRMExpressionLoaderPlugin: One of custom expressions has no name. Ignoring the expression`);return}if(l.has(u)){console.warn(`VRMExpressionLoaderPlugin: An expression preset ${o} has duplicated entries. Ignoring the expression`);return}l.add(u);let d=new Pi(u);t.scene.add(d),d.isBinary=(a=r.isBinary)??!1,r.binds&&r.binds.forEach(e=>q(this,null,function*(){var n;if(e.mesh===void 0||e.index===void 0)return;let a=[];(n=i.nodes)==null||n.forEach((t,n)=>{t.mesh===e.mesh&&a.push(n)});let o=e.index;yield Promise.all(a.map(n=>q(this,null,function*(){var i;let a=yield Ii(t,n);if(!a.every(e=>Array.isArray(e.morphTargetInfluences)&&o{if(e.materialName===void 0||e.propertyName===void 0||e.targetValue===void 0)return;let r=[];t.scene.traverse(t=>{if(t.material){let n=t.material;Array.isArray(n)?r.push(...n.filter(t=>(t.name===e.materialName||t.name===e.materialName+` (Outline)`)&&r.indexOf(t)===-1)):n.name===e.materialName&&r.indexOf(n)===-1&&r.push(n)}});let i=e.propertyName;r.forEach(t=>{if(i===`_MainTex_ST`){let n=new j(e.targetValue[0],e.targetValue[1]),r=new j(e.targetValue[2],e.targetValue[3]);r.y=1-r.y-n.y,d.addBind(new Ji({material:t,scale:n,offset:r}));return}let r=Vi[i];if(r){d.addBind(new Wi({material:t,type:r,targetValue:new n().fromArray(e.targetValue),targetAlpha:e.targetValue[3]}));return}console.warn(i+` is not supported`)})}),s.registerExpression(d)}))),s})}};Xi.v0v1PresetNameMap={a:`aa`,e:`ee`,i:`ih`,o:`oh`,u:`ou`,blink:`blink`,joy:`happy`,angry:`angry`,sorrow:`sad`,fun:`relaxed`,lookup:`lookUp`,lookdown:`lookDown`,lookleft:`lookLeft`,lookright:`lookRight`,blink_l:`blinkLeft`,blink_r:`blinkRight`,neutral:`neutral`};var Zi=class e{constructor(t,n){this._firstPersonOnlyLayer=e.DEFAULT_FIRSTPERSON_ONLY_LAYER,this._thirdPersonOnlyLayer=e.DEFAULT_THIRDPERSON_ONLY_LAYER,this._initializedLayers=!1,this.humanoid=t,this.meshAnnotations=n}copy(e){if(this.humanoid!==e.humanoid)throw Error(`VRMFirstPerson: humanoid must be same in order to copy`);return this.meshAnnotations=e.meshAnnotations.map(e=>({meshes:e.meshes.concat(),type:e.type})),this}clone(){return new e(this.humanoid,this.meshAnnotations).copy(this)}get firstPersonOnlyLayer(){return this._firstPersonOnlyLayer}get thirdPersonOnlyLayer(){return this._thirdPersonOnlyLayer}setup({firstPersonOnlyLayer:t=e.DEFAULT_FIRSTPERSON_ONLY_LAYER,thirdPersonOnlyLayer:n=e.DEFAULT_THIRDPERSON_ONLY_LAYER}={}){this._initializedLayers||=(this._firstPersonOnlyLayer=t,this._thirdPersonOnlyLayer=n,this.meshAnnotations.forEach(e=>{e.meshes.forEach(t=>{e.type===`firstPersonOnly`?(t.layers.set(this._firstPersonOnlyLayer),t.traverse(e=>e.layers.set(this._firstPersonOnlyLayer))):e.type===`thirdPersonOnly`?(t.layers.set(this._thirdPersonOnlyLayer),t.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer))):e.type===`auto`&&this._createHeadlessModel(t)})}),!0)}_excludeTriangles(e,t,n,r){let i=0;if(t!=null&&t.length>0)for(let a=0;a0&&r.includes(u[0])||l[1]>0&&r.includes(u[1])||l[2]>0&&r.includes(u[2])||l[3]>0&&r.includes(u[3]))continue;let d=t[s],f=n[s];if(d[0]>0&&r.includes(f[0])||d[1]>0&&r.includes(f[1])||d[2]>0&&r.includes(f[2])||d[3]>0&&r.includes(f[3]))continue;let p=t[c],m=n[c];p[0]>0&&r.includes(m[0])||p[1]>0&&r.includes(m[1])||p[2]>0&&r.includes(m[2])||p[3]>0&&r.includes(m[3])||(e[i++]=o,e[i++]=s,e[i++]=c)}return i}_createErasedMesh(e,t){let n=new Ie(e.geometry.clone(),e.material);n.name=`${e.name}(erase)`,n.frustumCulled=e.frustumCulled,n.layers.set(this._firstPersonOnlyLayer);let r=n.geometry,i=r.getAttribute(`skinIndex`),a=i instanceof u?[]:i.array,o=[];for(let e=0;e{this._isEraseTarget(e)&&n.push(t)}),!n.length){t.layers.enable(this._thirdPersonOnlyLayer),t.layers.enable(this._firstPersonOnlyLayer);return}t.layers.set(this._thirdPersonOnlyLayer);let r=this._createErasedMesh(t,n);e.add(r)}_createHeadlessModel(e){if(e.type===`Group`)if(e.layers.set(this._thirdPersonOnlyLayer),this._isEraseTarget(e))e.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer));else{let t=new d;t.name=`_headless_${e.name}`,t.layers.set(this._firstPersonOnlyLayer),e.parent.add(t),e.children.filter(e=>e.type===`SkinnedMesh`).forEach(e=>{let n=e;this._createHeadlessModelForSkinnedMesh(t,n)})}else if(e.type===`SkinnedMesh`){let t=e;this._createHeadlessModelForSkinnedMesh(e.parent,t)}else this._isEraseTarget(e)&&(e.layers.set(this._thirdPersonOnlyLayer),e.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer)))}_isEraseTarget(e){return e===this.humanoid.getRawBoneNode(`head`)?!0:e.parent?this._isEraseTarget(e.parent):!1}};Zi.DEFAULT_FIRSTPERSON_ONLY_LAYER=9,Zi.DEFAULT_THIRDPERSON_ONLY_LAYER=10,new M,new M,new C;var Qi={hips:null,spine:`hips`,chest:`spine`,upperChest:`chest`,neck:`upperChest`,head:`neck`,leftEye:`head`,rightEye:`head`,jaw:`head`,leftUpperLeg:`hips`,leftLowerLeg:`leftUpperLeg`,leftFoot:`leftLowerLeg`,leftToes:`leftFoot`,rightUpperLeg:`hips`,rightLowerLeg:`rightUpperLeg`,rightFoot:`rightLowerLeg`,rightToes:`rightFoot`,leftShoulder:`upperChest`,leftUpperArm:`leftShoulder`,leftLowerArm:`leftUpperArm`,leftHand:`leftLowerArm`,rightShoulder:`upperChest`,rightUpperArm:`rightShoulder`,rightLowerArm:`rightUpperArm`,rightHand:`rightLowerArm`,leftThumbMetacarpal:`leftHand`,leftThumbProximal:`leftThumbMetacarpal`,leftThumbDistal:`leftThumbProximal`,leftIndexProximal:`leftHand`,leftIndexIntermediate:`leftIndexProximal`,leftIndexDistal:`leftIndexIntermediate`,leftMiddleProximal:`leftHand`,leftMiddleIntermediate:`leftMiddleProximal`,leftMiddleDistal:`leftMiddleIntermediate`,leftRingProximal:`leftHand`,leftRingIntermediate:`leftRingProximal`,leftRingDistal:`leftRingIntermediate`,leftLittleProximal:`leftHand`,leftLittleIntermediate:`leftLittleProximal`,leftLittleDistal:`leftLittleIntermediate`,rightThumbMetacarpal:`rightHand`,rightThumbProximal:`rightThumbMetacarpal`,rightThumbDistal:`rightThumbProximal`,rightIndexProximal:`rightHand`,rightIndexIntermediate:`rightIndexProximal`,rightIndexDistal:`rightIndexIntermediate`,rightMiddleProximal:`rightHand`,rightMiddleIntermediate:`rightMiddleProximal`,rightMiddleDistal:`rightMiddleIntermediate`,rightRingProximal:`rightHand`,rightRingIntermediate:`rightRingProximal`,rightRingDistal:`rightRingIntermediate`,rightLittleProximal:`rightHand`,rightLittleIntermediate:`rightLittleProximal`,rightLittleDistal:`rightLittleIntermediate`};function $i(e){return e.invert?e.invert():e.inverse(),e}new M,new C,new M,new C,new M,new C,new C,new M,new M;var ea=Math.sqrt(2)/2;new C(0,0,-ea,ea),new M(0,1,0);var ta=new M,na=new M;function ra(e,t){return e.matrixWorld.decompose(ta,t,na),t}function ia(e){return[Math.atan2(-e.z,e.x),Math.atan2(e.y,Math.sqrt(e.x*e.x+e.z*e.z))]}function aa(e){let t=Math.round(e/2/Math.PI);return e-2*Math.PI*t}var oa=new M(0,0,1),sa=new M,ca=new M,la=new M,ua=new C,da=new C,fa=new C,pa=new C,ma=new s,ha=class e{constructor(e,t){this.offsetFromHeadBone=new M,this.autoUpdate=!0,this.faceFront=new M(0,0,1),this.humanoid=e,this.applier=t,this._yaw=0,this._pitch=0,this._needsUpdate=!0,this._restHeadWorldQuaternion=this.getLookAtWorldQuaternion(new C)}get yaw(){return this._yaw}set yaw(e){this._yaw=e,this._needsUpdate=!0}get pitch(){return this._pitch}set pitch(e){this._pitch=e,this._needsUpdate=!0}get euler(){return console.warn(`VRMLookAt: euler is deprecated. use getEuler() instead.`),this.getEuler(new s)}getEuler(e){return e.set(T.DEG2RAD*this._pitch,T.DEG2RAD*this._yaw,0,`YXZ`)}copy(e){if(this.humanoid!==e.humanoid)throw Error(`VRMLookAt: humanoid must be same in order to copy`);return this.offsetFromHeadBone.copy(e.offsetFromHeadBone),this.applier=e.applier,this.autoUpdate=e.autoUpdate,this.target=e.target,this.faceFront.copy(e.faceFront),this}clone(){return new e(this.humanoid,this.applier).copy(this)}reset(){this._yaw=0,this._pitch=0,this._needsUpdate=!0}getLookAtWorldPosition(e){let t=this.humanoid.getRawBoneNode(`head`);return e.copy(this.offsetFromHeadBone).applyMatrix4(t.matrixWorld)}getLookAtWorldQuaternion(e){let t=this.humanoid.getRawBoneNode(`head`);return ra(t,e)}getFaceFrontQuaternion(e){if(this.faceFront.distanceToSquared(oa)<.01)return e.copy(this._restHeadWorldQuaternion).invert();let[t,n]=ia(this.faceFront);return ma.set(0,.5*Math.PI+t,n,`YZX`),e.setFromEuler(ma).premultiply(pa.copy(this._restHeadWorldQuaternion).invert())}getLookAtWorldDirection(e){return this.getLookAtWorldQuaternion(da),this.getFaceFrontQuaternion(fa),e.copy(oa).applyQuaternion(da).applyQuaternion(fa).applyEuler(this.getEuler(ma))}lookAt(e){let t=ua.copy(this._restHeadWorldQuaternion).multiply($i(this.getLookAtWorldQuaternion(da))),n=this.getLookAtWorldPosition(ca),r=la.copy(e).sub(n).applyQuaternion(t).normalize(),[i,a]=ia(this.faceFront),[o,s]=ia(r),c=aa(o-i),l=aa(a-s);this._yaw=T.RAD2DEG*c,this._pitch=T.RAD2DEG*l,this._needsUpdate=!0}update(e){this.target!=null&&this.autoUpdate&&this.lookAt(this.target.getWorldPosition(sa)),this._needsUpdate&&(this._needsUpdate=!1,this.applier.applyYawPitch(this._yaw,this._pitch))}};ha.EULER_ORDER=`YXZ`;var ga=ha,_a=new M(0,0,1),J=new C,va=new C,Y=new s(0,0,0,`YXZ`),ya=class{constructor(e,t,n,r,i){this.humanoid=e,this.rangeMapHorizontalInner=t,this.rangeMapHorizontalOuter=n,this.rangeMapVerticalDown=r,this.rangeMapVerticalUp=i,this.faceFront=new M(0,0,1),this._restQuatLeftEye=new C,this._restQuatRightEye=new C,this._restLeftEyeParentWorldQuat=new C,this._restRightEyeParentWorldQuat=new C;let a=this.humanoid.getRawBoneNode(`leftEye`),o=this.humanoid.getRawBoneNode(`rightEye`);a&&(this._restQuatLeftEye.copy(a.quaternion),ra(a.parent,this._restLeftEyeParentWorldQuat)),o&&(this._restQuatRightEye.copy(o.quaternion),ra(o.parent,this._restRightEyeParentWorldQuat))}applyYawPitch(e,t){let n=this.humanoid.getRawBoneNode(`leftEye`),r=this.humanoid.getRawBoneNode(`rightEye`),i=this.humanoid.getNormalizedBoneNode(`leftEye`),a=this.humanoid.getNormalizedBoneNode(`rightEye`);n&&(t<0?Y.x=-T.DEG2RAD*this.rangeMapVerticalDown.map(-t):Y.x=T.DEG2RAD*this.rangeMapVerticalUp.map(t),e<0?Y.y=-T.DEG2RAD*this.rangeMapHorizontalInner.map(-e):Y.y=T.DEG2RAD*this.rangeMapHorizontalOuter.map(e),J.setFromEuler(Y),this._getWorldFaceFrontQuat(va),i.quaternion.copy(va).multiply(J).multiply(va.invert()),J.copy(this._restLeftEyeParentWorldQuat),n.quaternion.copy(i.quaternion).multiply(J).premultiply(J.invert()).multiply(this._restQuatLeftEye)),r&&(t<0?Y.x=-T.DEG2RAD*this.rangeMapVerticalDown.map(-t):Y.x=T.DEG2RAD*this.rangeMapVerticalUp.map(t),e<0?Y.y=-T.DEG2RAD*this.rangeMapHorizontalOuter.map(-e):Y.y=T.DEG2RAD*this.rangeMapHorizontalInner.map(e),J.setFromEuler(Y),this._getWorldFaceFrontQuat(va),a.quaternion.copy(va).multiply(J).multiply(va.invert()),J.copy(this._restRightEyeParentWorldQuat),r.quaternion.copy(a.quaternion).multiply(J).premultiply(J.invert()).multiply(this._restQuatRightEye))}lookAt(e){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let t=T.RAD2DEG*e.y,n=T.RAD2DEG*e.x;this.applyYawPitch(t,n)}_getWorldFaceFrontQuat(e){if(this.faceFront.distanceToSquared(_a)<.01)return e.identity();let[t,n]=ia(this.faceFront);return Y.set(0,.5*Math.PI+t,n,`YZX`),e.setFromEuler(Y)}};ya.type=`bone`;var ba=class{constructor(e,t,n,r,i){this.expressions=e,this.rangeMapHorizontalInner=t,this.rangeMapHorizontalOuter=n,this.rangeMapVerticalDown=r,this.rangeMapVerticalUp=i}applyYawPitch(e,t){t<0?(this.expressions.setValue(`lookDown`,0),this.expressions.setValue(`lookUp`,this.rangeMapVerticalUp.map(-t))):(this.expressions.setValue(`lookUp`,0),this.expressions.setValue(`lookDown`,this.rangeMapVerticalDown.map(t))),e<0?(this.expressions.setValue(`lookLeft`,0),this.expressions.setValue(`lookRight`,this.rangeMapHorizontalOuter.map(-e))):(this.expressions.setValue(`lookRight`,0),this.expressions.setValue(`lookLeft`,this.rangeMapHorizontalOuter.map(e)))}lookAt(e){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let t=T.RAD2DEG*e.y,n=T.RAD2DEG*e.x;this.applyYawPitch(t,n)}};ba.type=`expression`;var xa=180/Math.PI,Sa=new s,Ca=class extends S{constructor(e){super(),this.vrmLookAt=e,this.type=`VRMLookAtQuaternionProxy`;let t=this.rotation._onChangeCallback;this.rotation._onChange(()=>{t(),this._applyToLookAt()});let n=this.quaternion._onChangeCallback;this.quaternion._onChange(()=>{n(),this._applyToLookAt()})}_applyToLookAt(){Sa.setFromQuaternion(this.quaternion,ga.EULER_ORDER),this.vrmLookAt.yaw=xa*Sa.y,this.vrmLookAt.pitch=xa*Sa.x}};function wa(e,t,n){var r,i;let a=new Map,o=new Map;for(let[i,a]of e.humanoidTracks.rotation.entries()){let e=(r=t.getNormalizedBoneNode(i))?.name;if(e!=null){let t=new _e(`${e}.quaternion`,a.times,a.values.map((e,t)=>n===`0`&&t%2==0?-e:e));o.set(i,t)}}for(let[r,o]of e.humanoidTracks.translation.entries()){let s=(i=t.getNormalizedBoneNode(r))?.name;if(s!=null){let i=e.restHipsPosition.y,c=t.normalizedRestPose.hips.position[1],l=c/i,u=o.clone();u.values=u.values.map((e,t)=>(n===`0`&&t%3!=1?-e:e)*l),u.name=`${s}.position`,a.set(r,u)}}return{translation:a,rotation:o}}function Ta(e,t){let n=new Map,r=new Map;for(let[r,i]of e.expressionTracks.preset.entries()){let e=t.getExpressionTrackName(r);if(e!=null){let t=i.clone();t.name=e,n.set(r,t)}}for(let[n,i]of e.expressionTracks.custom.entries()){let e=t.getExpressionTrackName(n);if(e!=null){let t=i.clone();t.name=e,r.set(n,t)}}return{preset:n,custom:r}}function Ea(e,t){if(e.lookAtTrack==null)return null;let n=e.lookAtTrack.clone();return n.name=t,n}function Da(e,t){let n=[],r=wa(e,t.humanoid,t.meta.metaVersion);if(n.push(...r.translation.values()),n.push(...r.rotation.values()),t.expressionManager!=null){let r=Ta(e,t.expressionManager);n.push(...r.preset.values()),n.push(...r.custom.values())}if(t.lookAt!=null){let r=t.scene.children.find(e=>e instanceof Ca);r==null?(console.warn(`createVRMAnimationClip: VRMLookAtQuaternionProxy is not found. Creating a new one automatically. To suppress this warning, create a VRMLookAtQuaternionProxy manually`),r=new Ca(t.lookAt),r.name=`VRMLookAtQuaternionProxy`,t.scene.add(r)):r.name===``&&(console.warn(`createVRMAnimationClip: VRMLookAtQuaternionProxy is found but its name is not set. Setting the name automatically. To suppress this warning, set the name manually`),r.name=`VRMLookAtQuaternionProxy`);let i=Ea(e,`${r.name}.quaternion`);i!=null&&n.push(i)}return new m(`Clip`,e.duration,n)}var Oa=class{constructor(){this.duration=0,this.restHipsPosition=new M,this.humanoidTracks={translation:new Map,rotation:new Map},this.expressionTracks={preset:new Map,custom:new Map},this.lookAtTrack=null}};function ka(e,t){let n=e.length,r=[],i=[],a=0;for(let o=0;o{let n=i.animations[t],r=this._parseAnimation(e,n,c,l);return r.restHipsPosition=f,r});e.userData.vrmAnimations=m})}_createNodeMap(e){var t,n,r,i,a;let o=new Map,s=new Map,c=(t=e.humanoid)?.humanBones;c&&Object.entries(c).forEach(([e,t])=>{let n=t?.node;n!=null&&o.set(n,e)});let l=(n=e.expressions)?.preset;l&&Object.entries(l).forEach(([e,t])=>{let n=t?.node;n!=null&&s.set(n,e)});let u=(r=e.expressions)?.custom;u&&Object.entries(u).forEach(([e,t])=>{let{node:n}=t;s.set(n,e)});let d=(a=(i=e.lookAt)?.node)??null;return{humanoidIndexToName:o,expressionsIndexToName:s,lookAtIndex:d}}_createBoneWorldMatrixMap(e,t){return Ni(this,null,function*(){var n,r;e.scene.updateWorldMatrix(!1,!0);let i=yield e.parser.getDependencies(`node`),a=new Map;if(t.humanoid==null)return a;for(let[e,o]of Object.entries(t.humanoid.humanBones)){let t=o?.node;if(t!=null){let o=i[t];a.set(e,o.matrixWorld),e===`hips`&&a.set(`hipsParent`,(r=(n=o.parent)?.matrixWorld)??Aa)}}return a})}_parseAnimation(e,t,n,r){let i=e.tracks,a=t.channels,o=new Oa;return o.duration=e.duration,a.forEach((e,t)=>{let{node:a,path:s}=e.target,c=i[t];if(a==null)return;let l=n.humanoidIndexToName.get(a);if(l!=null){let e=Qi[l];for(;e!=null&&r.get(e)==null;)e=Qi[e];if(e??=`hipsParent`,s===`translation`)if(l!==`hips`)console.warn(`The loading animation contains a translation track for ${l}, which is not permitted in the VRMC_vrm_animation spec. ignoring the track`);else{let e=r.get(`hipsParent`),t=ka(c.values,3).flatMap(t=>ja.fromArray(t).applyMatrix4(e).toArray()),n=c.clone();n.values=new Float32Array(t),o.humanoidTracks.translation.set(l,n)}else if(s===`rotation`){let t=r.get(l),n=r.get(e);t.decompose(ja,Ma,ja),Ma.invert(),n.decompose(ja,Na,ja);let i=ka(c.values,4).flatMap(e=>Pa.fromArray(e).premultiply(Na).multiply(Ma).toArray()),a=c.clone();a.values=new Float32Array(i),o.humanoidTracks.rotation.set(l,a)}else throw Error(`Invalid path "${s}"`);return}let u=n.expressionsIndexToName.get(a);if(u!=null){if(s===`translation`){let e=c.times,t=new Float32Array(c.values.length/3);for(let e=0;e=2.0 are supported.`));return}let c=new jo(i,{path:t||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&o[t]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+t+`".`)}}c.setExtensions(a),c.setPlugins(o),c.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}};function Ba(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}const X={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`};var Va=class{constructor(e){this.parser=e,this.name=X.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return t.loadTextureImage(e,i.source,a)}},to=class{constructor(e){this.parser=e,this.name=X.EXT_TEXTURE_WEBP}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},no=class{constructor(e){this.parser=e,this.name=X.EXT_TEXTURE_AVIF}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},ro=class{constructor(e){this.name=X.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){let e=n.extensions[this.name],r=this.parser.getDependency(`buffer`,e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t})})}else return null}},io=class{constructor(e){this.name=X.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;let r=t.meshes[n.mesh];for(let e of r.primitives)if(e.mode!==Z.TRIANGLES&&e.mode!==Z.TRIANGLE_STRIP&&e.mode!==Z.TRIANGLE_FAN&&e.mode!==void 0)return null;let i=n.extensions[this.name],a=i.attributes,o=[],s={};for(let e in a)o.push(this.parser.getDependency(`accessor`,a[e]).then(t=>(s[e]=t,s[e])));return o.length<1?null:(o.push(this.parser.createNodeMesh(e)),Promise.all(o).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(let e of n){let t=new D,n=new M,a=new C,o=new M(1,1,1),c=new te(e.geometry,e.material,r);for(let e=0;e0||e.search(/^data\:image\/jpeg/)===0?`image/jpeg`:e.search(/\.webp($|\?)/i)>0||e.search(/^data\:image\/webp/)===0?`image/webp`:e.search(/\.ktx2($|\?)/i)>0||e.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}const Ao=new D;var jo=class{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new Ba,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=-1,i=!1,a=-1;if(typeof navigator<`u`){let e=navigator.userAgent;n=/^((?!chrome|android).)*safari/i.test(e)===!0;let t=e.match(/Version\/(\d+)/);r=n&&t?parseInt(t[1],10):-1,i=e.indexOf(`Firefox`)>-1,a=i?e.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>`u`||n&&r<17||i&&a<98?this.textureLoader=new Be(this.options.manager):this.textureLoader=new f(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new c(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies(`scene`),n.getDependencies(`animation`),n.getDependencies(`camera`)])}).then(function(t){let a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return Co(i,a,r),$(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(let e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n{let n=this.associations.get(e);n!=null&&this.associations.set(t,n);for(let[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+=`_instance_`+ e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&p.setY(t,u[e*a+1]),a>=3&&p.setZ(t,u[e*a+2]),a>=4&&p.setW(t,u[e*a+3]),a>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}p.normalized=d}return p})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e],i=r.source,a=t.images[i],o=this.textureLoader;if(a.uri){let e=n.manager.getHandler(a.uri);e!==null&&(o=e)}return this.loadTextureImage(e,i,o)}loadTextureImage(e,t,n){let r=this,i=this.json,a=i.textures[e],o=i.images[t],s=(o.uri||o.bufferView)+`:`+a.sampler;if(this.textureCache[s])return this.textureCache[s];let c=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||o.name||``,t.name===``&&typeof o.uri==`string`&&o.uri.startsWith(`data:image/`)===!1&&(t.name=o.uri);let n=i.samplers||{},s=n[a.sampler]||{};return t.magFilter=go[s.magFilter]||we,t.minFilter=go[s.minFilter]||Te,t.wrapS=_o[s.wrapS]||ye,t.wrapT=_o[s.wrapT]||ye,t.generateMipmaps=!t.isCompressedTexture&&t.minFilter!==Ne&&t.minFilter!==we,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[s]=c,c}loadImageSource(e,t){let n=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(e=>e.clone());let a=r.images[e],o=self.URL||self.webkitURL,s=a.uri||``,c=!1;if(a.bufferView!==void 0)s=n.getDependency(`bufferView`,a.bufferView).then(function(e){c=!0;let t=new Blob([e],{type:a.mimeType});return s=o.createObjectURL(t),s});else if(a.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+e+` is missing URI and bufferView`);let l=Promise.resolve(s).then(function(e){return new Promise(function(n,r){let a=n;t.isImageBitmapLoader===!0&&(a=function(e){let t=new ze(e);t.needsUpdate=!0,n(t)}),t.load(Oe.resolveURL(e,i.path),a,void 0,r)})}).then(function(e){return c===!0&&o.revokeObjectURL(s),$(e,a),e.userData.mimeType=a.mimeType||ko(a.uri),e}).catch(function(e){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){let i=this;return this.getDependency(`texture`,n.index).then(function(a){if(!a)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),i.extensions[X.KHR_TEXTURE_TRANSFORM]){let e=n.extensions===void 0?void 0:n.extensions[X.KHR_TEXTURE_TRANSFORM];if(e){let t=i.associations.get(a);a=i.extensions[X.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return r!==void 0&&(a.colorSpace=r),e[t]=a,a})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,a=t.attributes.normal===void 0;if(e.isPoints){let e=`PointsMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new he,ke.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e=`LineBasicMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new le,ke.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e=`ClonedMaterial:`+n.uuid+`:`;r&&(e+=`derivative-tangents:`),i&&(e+=`vertex-colors:`),a&&(e+=`flat-shading:`);let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return je}loadMaterial(e){let t=this,r=this.json,i=this.extensions,o=r.materials[e],s,c={},l=o.extensions||{},u=[];if(l[X.KHR_MATERIALS_UNLIT]){let e=i[X.KHR_MATERIALS_UNLIT];s=e.getMaterialType(),u.push(e.extendParams(c,o,t))}else{let r=o.pbrMetallicRoughness||{};if(c.color=new n(1,1,1),c.opacity=1,Array.isArray(r.baseColorFactor)){let e=r.baseColorFactor;c.color.setRGB(e[0],e[1],e[2],w),c.opacity=e[3]}r.baseColorTexture!==void 0&&u.push(t.assignTexture(c,`map`,r.baseColorTexture,be)),c.metalness=r.metallicFactor===void 0?1:r.metallicFactor,c.roughness=r.roughnessFactor===void 0?1:r.roughnessFactor,r.metallicRoughnessTexture!==void 0&&(u.push(t.assignTexture(c,`metalnessMap`,r.metallicRoughnessTexture)),u.push(t.assignTexture(c,`roughnessMap`,r.metallicRoughnessTexture))),s=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,c)})))}o.doubleSided===!0&&(c.side=a);let d=o.alphaMode||xo.OPAQUE;if(d===xo.BLEND?(c.transparent=!0,c.depthWrite=!1):(c.transparent=!1,d===xo.MASK&&(c.alphaTest=o.alphaCutoff===void 0?.5:o.alphaCutoff)),o.normalTexture!==void 0&&s!==O&&(u.push(t.assignTexture(c,`normalMap`,o.normalTexture)),c.normalScale=new j(1,1),o.normalTexture.scale!==void 0)){let e=o.normalTexture.scale;c.normalScale.set(e,e)}if(o.occlusionTexture!==void 0&&s!==O&&(u.push(t.assignTexture(c,`aoMap`,o.occlusionTexture)),o.occlusionTexture.strength!==void 0&&(c.aoMapIntensity=o.occlusionTexture.strength)),o.emissiveFactor!==void 0&&s!==O){let e=o.emissiveFactor;c.emissive=new n().setRGB(e[0],e[1],e[2],w)}return o.emissiveTexture!==void 0&&s!==O&&u.push(t.assignTexture(c,`emissiveMap`,o.emissiveTexture,be)),Promise.all(u).then(function(){let n=new s(c);return o.name&&(n.name=o.name),$(n,o),t.associations.set(n,{materials:e}),o.extensions&&Co(i,n,o),n})}createUniqueName(e){let t=ge.sanitizeNodeName(e||``);return t in this.nodeNamesUsed?t+`_`+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[X.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return No(n,e,t)})}let a=[];for(let n=0,o=e.length;n0&&To(d,i),d.name=t.createUniqueName(i.name||`mesh_`+e),$(d,i),u.extensions&&Co(r,d,u),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n1?new d:t.length===1?t[0]:new S,o!==t[0])for(let e=0,n=t.length;e1){let e=r.associations.get(o);r.associations.set(o,{...e})}return r.associations.get(o).nodes=e,o}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,i=new d;n.name&&(i.name=r.createUniqueName(n.name)),$(i,n),n.extensions&&Co(t,i,n);let a=n.nodes||[],o=[];for(let e=0,t=a.length;e{let t=new Map;for(let[e,n]of r.associations)(e instanceof ke||e instanceof ze)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);n!=null&&t.set(e,n)}),t};return r.associations=t(i),i})}_createAnimationTracks(e,t,n,r,i){let a=[],o=e.name?e.name:e.uuid,s=[];Q[i.path]===Q.weights?e.traverse(function(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)}):s.push(o);let c;switch(Q[i.path]){case Q.weights:c=ue;break;case Q.rotation:c=_e;break;case Q.translation:case Q.scale:c=Ge;break;default:switch(n.itemSize){case 1:c=ue;break;case 2:case 3:default:c=Ge;break}break}let l=r.interpolation===void 0?oe:bo[r.interpolation],u=this._getArrayFromAccessor(n);for(let e=0,n=s.length;enew fi(e)),Po.register(e=>new La(e)),Po)}async function Io(e){let t=Fo(),n=await t.loadAsync(e),r=n.userData;if(!r.vrmAnimations){console.warn(`No VRM animations found in the .vrma file`);return}if(r.vrmAnimations.length===0){console.warn(`No VRM animations found in the .vrma file`);return}return r.vrmAnimations[0]}async function Lo(e,t){if(!e){console.warn(`No VRM found`);return}if(t)return Da(t,e)}function Ro(){let e=N(!1),t=N(0),n=N(0),r=N(Math.random()*5+1);function i(i,a){if(i?.expressionManager&&(n.value+=a,!e.value&&n.value>=r.value&&(e.value=!0,t.value=0),e.value)){t.value+=a/.2;let o=Math.sin(Math.PI*t.value);i.expressionManager.setValue(`blink`,o),t.value>=1&&(e.value=!1,n.value=0,i.expressionManager.setValue(`blink`,0),r.value=Math.random()*5+1)}}return{update:i}}function zo(){let e=-1,t=new M,n=0;function r(e){t.set(e.value.x+P(-.25,.25),e.value.y+P(-.25,.25),e.value.z)}function i(i,a,o){!i?.expressionManager||!i.lookAt||(n>=e?(r(a),n=0,e=qe()/1e3):t||r(a),i.lookAt.target||(i.lookAt.target=new S),i.lookAt.target.position.lerp(t,1),i.lookAt?.update(o),n+=o)}function a(e,n){t.set(n.x,n.y,n.z),!(!e?.expressionManager||!e.lookAt)&&(e.lookAt.target||(e.lookAt.target=new S),e.lookAt.target.position.lerp(t,1),e.lookAt?.update(.016))}return{update:i,instantUpdate:a}}async function Bo(e,t){let n=Fo(),r=await n.loadAsync(e,e=>t?.onProgress?.(e)),i=r.userData;if(!i.vrm)return;let a=i.vrm;if(K.removeUnnecessaryVertices(a.scene),K.combineSkeletons(a.scene),a.scene.traverse(e=>{e.frustumCulled=!1}),t?.lookAt&&a.lookAt){let e=new Ca(a.lookAt);e.name=`lookAtQuaternionProxy`,a.scene.add(e)}let o=new d;o.add(a.scene),t?.scene&&t.scene.add(o);let s=new v().setFromObject(a.scene),c=new M,l=new M;s.getSize(c),s.getCenter(l),l.y+=c.y/5;let u=40/2*Math.PI/180,f=new M(c.x/16,c.y/6,-(c.y/3)/Math.tan(u));return{_vrm:a,_vrmGroup:o,modelCenter:l,modelSize:c,initialCameraOffset:f}}function Vo(e){let t=N(null),n=N(!1),r=N(0),i=N(new Map),a=N(new Map),o=N(),s=(e,t,n)=>e+(t-e)*n,c=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,l=new Map([[`happy`,{expression:[{name:`happy`,value:1,duration:.3},{name:`aa`,value:.3}],blendDuration:.3}],[`sad`,{expression:[{name:`sad`,value:1},{name:`oh`,value:.2}],blendDuration:.3}],[`angry`,{expression:[{name:`angry`,value:1},{name:`ee`,value:.4}],blendDuration:.2}],[`surprised`,{expression:[{name:`Surprised`,value:1},{name:`oh`,value:.6}],blendDuration:.1}],[`neutral`,{expression:[{name:`neutral`,value:1}],blendDuration:.5}]]),u=()=>{o.value&&=(clearTimeout(o.value),void 0)},d=o=>{if(u(),!l.has(o)){console.warn(`Emotion ${o} not found`);return}let s=l.get(o);if(t.value=o,n.value=!0,r.value=0,e.expressionManager){let t=Object.keys(e.expressionManager.expressionMap);for(let n of t)e.expressionManager.setValue(n,0)}i.value.clear(),a.value.clear();for(let t of s.expression||[]){let n=e.expressionManager?.getValue(t.name)||0;i.value.set(t.name,n),a.value.set(t.name,t.value)}},f=(e,t)=>{u(),d(e),o.value=setTimeout(()=>{d(`neutral`),o.value=void 0},t)},p=o=>{if(!n.value||!t.value)return;let u=l.get(t.value),d=u.blendDuration||.3;r.value+=o/d,r.value>=1&&(r.value=1,n.value=!1);for(let[t,n]of a.value){let a=i.value.get(t)||0,o=s(a,n,c(r.value));e.expressionManager?.setValue(t,o)}},m=(e,t)=>{l.set(e,t)},h=e=>{l.delete(e)},g=()=>{u()};return{currentEmotion:t,isTransitioning:n,setEmotion:d,setEmotionWithResetAfter:f,update:p,addEmotionState:m,removeEmotionState:h,dispose:g}}function Ho(e){return e===`skyBox`?`skyBox`:e===`hemisphere`?`hemisphere`:`off`}function Uo(e,t){if(!(!e?.uSHCoeffs||!e.uSHCoeffs.value||!Array.isArray(e.uSHCoeffs.value))&&t)for(let n=0;n<9;n++)e.uSHCoeffs.value[n]||=new M,e.uSHCoeffs.value[n].copy(t.coefficients[n])}function Wo(e){let t=e.customProgramCacheKey?.()??``;e.customProgramCacheKey=()=>`${t}|airi-diffuse-ibl`;let n=e.onBeforeCompile;e.onBeforeCompile=(t,r)=>{n?.(t,r),t.vertexShader.includes(`AIRI_DIFFUSE_VS_DECL`)||(t.vertexShader=` -#ifndef AIRI_DIFFUSE_VS_DECL -#define AIRI_DIFFUSE_VS_DECL -varying vec3 vWorldNormal; -#endif -\n${t.vertexShader}`),t.vertexShader.includes(`#include `)&&!t.vertexShader.includes(`AIRI_DIFFUSE_VS_APPLY`)&&(t.vertexShader=t.vertexShader.replace(`#include `,`#include - -#ifndef AIRI_DIFFUSE_VS_APPLY -#define AIRI_DIFFUSE_VS_APPLY -vWorldNormal = normalize( mat3( modelMatrix ) * objectNormal ); -#endif -`)),t.fragmentShader.includes(`AIRI_DIFFUSE_COMMON`)||(t.fragmentShader=t.fragmentShader.replace(`#include `,`#include - -#ifndef AIRI_DIFFUSE_COMMON -#define AIRI_DIFFUSE_COMMON -uniform int uNprEnvMode; // 0=off, 2=skybox -uniform float uEnvIntensity; -uniform vec3 uSHCoeffs[9]; -varying vec3 vWorldNormal; - -// 3rd-order SH constants -const float C0=0.2820947918; -const float C1=0.4886025119; -const float C2=1.0925484306; -const float C3=0.3153915653; -const float C4=0.5462742153; - -vec3 AIRI_evalIrradianceSH(vec3 n){ - n = normalize(n); - vec3 r = uSHCoeffs[0]*C0; - r += uSHCoeffs[1]*(-C1*n.y); - r += uSHCoeffs[2]*( C1*n.z); - r += uSHCoeffs[3]*(-C1*n.x); - r += uSHCoeffs[4]*( C2*n.x*n.y); - r += uSHCoeffs[5]*(-C2*n.y*n.z); - r += uSHCoeffs[6]*( C3*(3.0*n.z*n.z-1.0)); - r += uSHCoeffs[7]*(-C2*n.x*n.z); - r += uSHCoeffs[8]*( C4*(n.x*n.x-n.y*n.y)); - return r; -} -#endif -`)),t.fragmentShader.includes(`AIRI_DIFFUSE_APPLY`)||(t.fragmentShader=t.fragmentShader.replace(`#include `,` -#ifndef AIRI_DIFFUSE_APPLY -#define AIRI_DIFFUSE_APPLY -if (uNprEnvMode == 2) { - vec3 I = AIRI_evalIrradianceSH(normalize(vWorldNormal)); - gl_FragColor.rgb += (gl_FragColor.rgb / PI) * I * uEnvIntensity; -} -#endif - -#include `));let i=Array.from({length:9},()=>new M);t.uniforms.uNprEnvMode||={value:0},t.uniforms.uEnvIntensity||={value:0},t.uniforms.uSHCoeffs||={value:i},(e.userData||={}).__airiIbl=t.uniforms},`toneMapped`in e&&(e.toneMapped=!1),e.needsUpdate=!0}function Go(e,t){let n=t.mode===`skyBox`?2:0;e.traverse(e=>{let r=e,i=r.material,a=i?Array.isArray(i)?i:[i]:[];a.forEach(e=>{let r=e?.userData?.__airiIbl;r&&(r.uNprEnvMode.value=n,r.uEnvIntensity.value=t.intensity,Uo(r,t.sh??null))})})}function Ko(e){let t=new se;t.name=`AIRI_IBL_Probe`,e.add(t);function n(e,n,r){t.intensity=e===`skyBox`?n:0,r&&t.sh.copy(r)}function r(){t.parent?.remove(t)}return{update:n,dispose:r}}export{Ko as b,Wo as c,Ho as d,Go as e,Vo as f,Bo as g,Lo as h,Io as i,Ro as j,zo as k,K as l,Je as m,qe as n,Ke as o,P as p}; \ No newline at end of file diff --git a/assets/ibl-CoXg6NDS.js b/assets/ibl-CoXg6NDS.js new file mode 100644 index 0000000000000000000000000000000000000000..a40af5e85ee2a3efcc77e614b1698db6d3b035bf --- /dev/null +++ b/assets/ibl-CoXg6NDS.js @@ -0,0 +1,1048 @@ +import{c$ as e,cD as t,cF as n,cG as r,cO as i,cP as a,cQ as o,cS as s,cU as c,cX as l,cY as u,cZ as d,cn as f,cr as p,ct as m,cu as h,cw as g,cx as _,cy as v,cz as y,d$ as b,d0 as ee,d1 as te,d2 as ne,d3 as re,d4 as ie,d5 as ae,d6 as oe,d7 as se,d8 as ce,d9 as le,dD as ue,dE as x,dF as de,dG as fe,dI as pe,dJ as me,dK as he,dL as ge,dM as S,dN as _e,dO as ve,dX as ye,dY as be,da as xe,db as Se,dc as Ce,dd as we,de as Te,df as Ee,dg as C,di as De,dj as Oe,dm as ke,dn as w,do as T,dp as E,dq as Ae,dr as D,du as O,dv as je,dw as Me,dx as Ne,dy as Pe,dz as Fe,e0 as Ie,e1 as Le,e2 as k,e5 as Re,e7 as ze,e8 as Be,e9 as Ve,ea as He,eb as Ue,ec as We,ee as Ge,ei as A,ej as j,el as Ke,f2 as M}from"./index-D3Bcbz9S.js";Math.PI/180,180/Math.PI;function qe(e,t,n){return(1-n)*e+n*t}function N(e,t){return e+Math.random()*(t-e)}const P=[[.075,800],[.11,0],[.125,0],[.14,0],[.125,0],[.05,0],[.04,0],[.03,0],[.02,0],[1,0]];for(let e=1;e0;)if(r){let t=n.indexOf(`|>`);if(t<0)break;let i=n.slice(0,t+2);n=n.slice(t+2),await e.onSpecial?.(i),r=!1}else{let i=n.indexOf(`<|`);if(i<0){if(n.length-1>=t){let t=n.slice(0,-1);n=n[n.length-1],await e.onLiteral?.(t)}break}if(i>0){let t=n.slice(0,i);n=n.slice(i),await e.onLiteral?.(t)}r=!0}},async end(){!r&&n.length>0&&(await e.onLiteral?.(n),n=``)}}} +/*! +* @pixiv/three-vrm v3.4.2 +* VRM file loader for three.js. +* +* Copyright (c) 2019-2025 pixiv Inc. +* @pixiv/three-vrm is distributed under MIT License +* https://github.com/pixiv/three-vrm/blob/release/LICENSE +*/ +var Xe=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),F=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Ze=class extends x{constructor(e){super(),this.weight=0,this.isBinary=!1,this.overrideBlink=`none`,this.overrideLookAt=`none`,this.overrideMouth=`none`,this._binds=[],this.name=`VRMExpression_${e}`,this.expressionName=e,this.type=`VRMExpression`,this.visible=!1}get binds(){return this._binds}get overrideBlinkAmount(){return this.overrideBlink===`block`?0.5?1:0:this.weight}addBind(e){this._binds.push(e)}deleteBind(e){let t=this._binds.indexOf(e);t>=0&&this._binds.splice(t,1)}applyWeight(e){var t;let n=this.outputWeight;n*=(t=e?.multiplier)??1,this.isBinary&&n<1&&(n=0),this._binds.forEach(e=>e.applyWeight(n))}clearAppliedWeight(){this._binds.forEach(e=>e.clearAppliedWeight())}};function Qe(e,t,n){var r,i;let a=e.parser.json,o=(r=a.nodes)?.[t];if(o==null)return console.warn(`extractPrimitivesInternal: Attempt to use nodes[${t}] of glTF but the node doesn't exist`),null;let s=o.mesh;if(s==null)return null;let c=(i=a.meshes)?.[s];if(c==null)return console.warn(`extractPrimitivesInternal: Attempt to use meshes[${s}] of glTF but the mesh doesn't exist`),null;let l=c.primitives.length,u=[];return n.traverse(e=>{u.length{let i=Qe(e,r,t);i!=null&&n.set(r,i)}),n})}var tt={Aa:`aa`,Ih:`ih`,Ou:`ou`,Ee:`ee`,Oh:`oh`,Blink:`blink`,Happy:`happy`,Angry:`angry`,Sad:`sad`,Relaxed:`relaxed`,LookUp:`lookUp`,Surprised:`surprised`,LookDown:`lookDown`,LookLeft:`lookLeft`,LookRight:`lookRight`,BlinkLeft:`blinkLeft`,BlinkRight:`blinkRight`,Neutral:`neutral`};function nt(e){return Math.max(Math.min(e,1),0)}var rt=class e{constructor(){this.blinkExpressionNames=[`blink`,`blinkLeft`,`blinkRight`],this.lookAtExpressionNames=[`lookLeft`,`lookRight`,`lookUp`,`lookDown`],this.mouthExpressionNames=[`aa`,`ee`,`ih`,`oh`,`ou`],this._expressions=[],this._expressionMap={}}get expressions(){return this._expressions.concat()}get expressionMap(){return Object.assign({},this._expressionMap)}get presetExpressionMap(){let e={},t=new Set(Object.values(tt));return Object.entries(this._expressionMap).forEach(([n,r])=>{t.has(n)&&(e[n]=r)}),e}get customExpressionMap(){let e={},t=new Set(Object.values(tt));return Object.entries(this._expressionMap).forEach(([n,r])=>{t.has(n)||(e[n]=r)}),e}copy(e){let t=this._expressions.concat();return t.forEach(e=>{this.unregisterExpression(e)}),e._expressions.forEach(e=>{this.registerExpression(e)}),this.blinkExpressionNames=e.blinkExpressionNames.concat(),this.lookAtExpressionNames=e.lookAtExpressionNames.concat(),this.mouthExpressionNames=e.mouthExpressionNames.concat(),this}clone(){return new e().copy(this)}getExpression(e){var t;return(t=this._expressionMap[e])??null}registerExpression(e){this._expressions.push(e),this._expressionMap[e.expressionName]=e}unregisterExpression(e){let t=this._expressions.indexOf(e);t===-1&&console.warn(`VRMExpressionManager: The specified expressions is not registered`),this._expressions.splice(t,1),delete this._expressionMap[e.expressionName]}getValue(e){var t;let n=this.getExpression(e);return(t=n?.weight)??null}setValue(e,t){let n=this.getExpression(e);n&&(n.weight=nt(t))}resetValues(){this._expressions.forEach(e=>{e.weight=0})}getExpressionTrackName(e){let t=this.getExpression(e);return t?`${t.name}.weight`:null}update(){let e=this._calculateWeightMultipliers();this._expressions.forEach(e=>{e.clearAppliedWeight()}),this._expressions.forEach(t=>{let n=1,r=t.expressionName;this.blinkExpressionNames.indexOf(r)!==-1&&(n*=e.blink),this.lookAtExpressionNames.indexOf(r)!==-1&&(n*=e.lookAt),this.mouthExpressionNames.indexOf(r)!==-1&&(n*=e.mouth),t.applyWeight({multiplier:n})})}_calculateWeightMultipliers(){let e=1,t=1,n=1;return this._expressions.forEach(r=>{e-=r.overrideBlinkAmount,t-=r.overrideLookAtAmount,n-=r.overrideMouthAmount}),e=Math.max(0,e),t=Math.max(0,t),n=Math.max(0,n),{blink:e,lookAt:t,mouth:n}}},I={Color:`color`,EmissionColor:`emissionColor`,ShadeColor:`shadeColor`,MatcapColor:`matcapColor`,RimColor:`rimColor`,OutlineColor:`outlineColor`},it={_Color:I.Color,_EmissionColor:I.EmissionColor,_ShadeColor:I.ShadeColor,_RimColor:I.RimColor,_OutlineColor:I.OutlineColor},at=new n,ot=class e{constructor({material:e,type:t,targetValue:n,targetAlpha:r}){this.material=e,this.type=t,this.targetValue=n,this.targetAlpha=r??1;let i=this._initColorBindState(),a=this._initAlphaBindState();this._state={color:i,alpha:a}}applyWeight(e){let{color:t,alpha:n}=this._state;if(t!=null){let{propertyName:n,deltaValue:r}=t,i=this.material[n];i?.add(at.copy(r).multiplyScalar(e))}if(n!=null){let{propertyName:t,deltaValue:r}=n,i=this.material[t];i!=null&&(this.material[t]+=r*e)}}clearAppliedWeight(){let{color:e,alpha:t}=this._state;if(e!=null){let{propertyName:t,initialValue:n}=e,r=this.material[t];r?.copy(n)}if(t!=null){let{propertyName:e,initialValue:n}=t,r=this.material[e];r!=null&&(this.material[e]=n)}}_initColorBindState(){var e,t,r;let{material:i,type:a,targetValue:o}=this,s=this._getPropertyNameMap(),c=(t=(e=s?.[a])?.[0])??null;if(c==null)return console.warn(`Tried to add a material color bind to the material ${(r=i.name)??`(no name)`}, the type ${a} but the material or the type is not supported.`),null;let l=i[c],u=l.clone(),d=new n(o.r-u.r,o.g-u.g,o.b-u.b);return{propertyName:c,initialValue:u,deltaValue:d}}_initAlphaBindState(){var e,t,n;let{material:r,type:i,targetAlpha:a}=this,o=this._getPropertyNameMap(),s=(t=(e=o?.[i])?.[1])??null;if(s==null&&a!==1)return console.warn(`Tried to add a material alpha bind to the material ${(n=r.name)??`(no name)`}, the type ${i} but the material or the type does not support alpha.`),null;if(s==null)return null;let c=r[s],l=a-c;return{propertyName:s,initialValue:c,deltaValue:l}}_getPropertyNameMap(){var t,n;return(n=(t=Object.entries(e._propertyNameMapMap).find(([e])=>this.material[e]===!0))?.[1])??null}};ot._propertyNameMapMap={isMeshStandardMaterial:{color:[`color`,`opacity`],emissionColor:[`emissive`,null]},isMeshBasicMaterial:{color:[`color`,`opacity`]},isMToonMaterial:{color:[`color`,`opacity`],emissionColor:[`emissive`,null],outlineColor:[`outlineColorFactor`,null],matcapColor:[`matcapFactor`,null],rimColor:[`parametricRimColorFactor`,null],shadeColor:[`shadeColorFactor`,null]}};var st=ot,ct=class{constructor({primitives:e,index:t,weight:n}){this.primitives=e,this.index=t,this.weight=n}applyWeight(e){this.primitives.forEach(t=>{var n;(n=t.morphTargetInfluences)?.[this.index]!=null&&(t.morphTargetInfluences[this.index]+=this.weight*e)})}clearAppliedWeight(){this.primitives.forEach(e=>{var t;(t=e.morphTargetInfluences)?.[this.index]!=null&&(e.morphTargetInfluences[this.index]=0)})}},lt=new A,ut=class e{constructor({material:t,scale:n,offset:r}){var i,a;this.material=t,this.scale=n,this.offset=r;let o=(i=Object.entries(e._propertyNamesMap).find(([e])=>t[e]===!0))?.[1];o==null?(console.warn(`Tried to add a texture transform bind to the material ${(a=t.name)??`(no name)`} but the material is not supported.`),this._properties=[]):(this._properties=[],o.forEach(e=>{var i;let a=(i=t[e])?.clone();if(!a)return null;t[e]=a;let o=a.offset.clone(),s=a.repeat.clone(),c=r.clone().sub(o),l=n.clone().sub(s);this._properties.push({name:e,initialOffset:o,deltaOffset:c,initialScale:s,deltaScale:l})}))}applyWeight(e){this._properties.forEach(t=>{let n=this.material[t.name];n!==void 0&&(n.offset.add(lt.copy(t.deltaOffset).multiplyScalar(e)),n.repeat.add(lt.copy(t.deltaScale).multiplyScalar(e)))})}clearAppliedWeight(){this._properties.forEach(e=>{let t=this.material[e.name];t!==void 0&&(t.offset.copy(e.initialOffset),t.repeat.copy(e.initialScale))})}};ut._propertyNamesMap={isMeshStandardMaterial:[`map`,`emissiveMap`,`bumpMap`,`normalMap`,`displacementMap`,`roughnessMap`,`metalnessMap`,`alphaMap`],isMeshBasicMaterial:[`map`,`specularMap`,`alphaMap`],isMToonMaterial:[`map`,`normalMap`,`emissiveMap`,`shadeMultiplyTexture`,`rimMultiplyTexture`,`outlineWidthMultiplyTexture`,`uvAnimationMaskTexture`]};var dt=ut,ft=new Set([`1.0`,`1.0-beta`]),pt=class e{get name(){return`VRMExpressionLoaderPlugin`}constructor(e){this.parser=e}afterRoot(e){return F(this,null,function*(){e.userData.vrmExpressionManager=yield this._import(e)})}_import(e){return F(this,null,function*(){let t=yield this._v1Import(e);if(t)return t;let n=yield this._v0Import(e);return n||null})}_v1Import(e){return F(this,null,function*(){var t,r;let i=this.parser.json,a=(t=i.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!a)return null;let o=(r=i.extensions)?.VRMC_vrm;if(!o)return null;let s=o.specVersion;if(!ft.has(s))return console.warn(`VRMExpressionLoaderPlugin: Unknown VRMC_vrm specVersion "${s}"`),null;let c=o.expressions;if(!c)return null;let l=new Set(Object.values(tt)),u=new Map;c.preset!=null&&Object.entries(c.preset).forEach(([e,t])=>{if(t!=null){if(!l.has(e)){console.warn(`VRMExpressionLoaderPlugin: Unknown preset name "${e}" detected. Ignoring the expression`);return}u.set(e,t)}}),c.custom!=null&&Object.entries(c.custom).forEach(([e,t])=>{if(l.has(e)){console.warn(`VRMExpressionLoaderPlugin: Custom expression cannot have preset name "${e}". Ignoring the expression`);return}u.set(e,t)});let d=new rt;return yield Promise.all(Array.from(u.entries()).map(t=>F(this,[t],function*([t,r]){var i,a,o,s,c,l,u;let f=new Ze(t);if(e.scene.add(f),f.isBinary=(i=r.isBinary)??!1,f.overrideBlink=(a=r.overrideBlink)??`none`,f.overrideLookAt=(o=r.overrideLookAt)??`none`,f.overrideMouth=(s=r.overrideMouth)??`none`,(c=r.morphTargetBinds)==null||c.forEach(t=>F(this,null,function*(){var n;if(t.node===void 0||t.index===void 0)return;let i=yield $e(e,t.node),a=t.index;if(!i.every(e=>Array.isArray(e.morphTargetInfluences)&&a{let n=e.material;n&&(Array.isArray(n)?t.push(...n):t.push(n))}),(l=r.materialColorBinds)==null||l.forEach(e=>F(this,null,function*(){let r=t.filter(t=>{var n;let r=(n=this.parser.associations.get(t))?.materials;return e.material===r});r.forEach(t=>{f.addBind(new st({material:t,type:e.type,targetValue:new n().fromArray(e.targetValue),targetAlpha:e.targetValue[3]}))})})),(u=r.textureTransformBinds)==null||u.forEach(e=>F(this,null,function*(){let n=t.filter(t=>{var n;let r=(n=this.parser.associations.get(t))?.materials;return e.material===r});n.forEach(t=>{var n,r;f.addBind(new dt({material:t,offset:new A().fromArray((n=e.offset)??[0,0]),scale:new A().fromArray((r=e.scale)??[1,1])}))})}))}d.registerExpression(f)}))),d})}_v0Import(t){return F(this,null,function*(){var r;let i=this.parser.json,a=(r=i.extensions)?.VRM;if(!a)return null;let o=a.blendShapeMaster;if(!o)return null;let s=new rt,c=o.blendShapeGroups;if(!c)return s;let l=new Set;return yield Promise.all(c.map(r=>F(this,null,function*(){var a;let o=r.presetName,c=o!=null&&e.v0v1PresetNameMap[o]||null,u=c??r.name;if(u==null){console.warn(`VRMExpressionLoaderPlugin: One of custom expressions has no name. Ignoring the expression`);return}if(l.has(u)){console.warn(`VRMExpressionLoaderPlugin: An expression preset ${o} has duplicated entries. Ignoring the expression`);return}l.add(u);let d=new Ze(u);t.scene.add(d),d.isBinary=(a=r.isBinary)??!1,r.binds&&r.binds.forEach(e=>F(this,null,function*(){var n;if(e.mesh===void 0||e.index===void 0)return;let a=[];(n=i.nodes)==null||n.forEach((t,n)=>{t.mesh===e.mesh&&a.push(n)});let o=e.index;yield Promise.all(a.map(n=>F(this,null,function*(){var i;let a=yield $e(t,n);if(!a.every(e=>Array.isArray(e.morphTargetInfluences)&&o{if(e.materialName===void 0||e.propertyName===void 0||e.targetValue===void 0)return;let r=[];t.scene.traverse(t=>{if(t.material){let n=t.material;Array.isArray(n)?r.push(...n.filter(t=>(t.name===e.materialName||t.name===e.materialName+` (Outline)`)&&r.indexOf(t)===-1)):n.name===e.materialName&&r.indexOf(n)===-1&&r.push(n)}});let i=e.propertyName;r.forEach(t=>{if(i===`_MainTex_ST`){let n=new A(e.targetValue[0],e.targetValue[1]),r=new A(e.targetValue[2],e.targetValue[3]);r.y=1-r.y-n.y,d.addBind(new dt({material:t,scale:n,offset:r}));return}let r=it[i];if(r){d.addBind(new st({material:t,type:r,targetValue:new n().fromArray(e.targetValue),targetAlpha:e.targetValue[3]}));return}console.warn(i+` is not supported`)})}),s.registerExpression(d)}))),s})}};pt.v0v1PresetNameMap={a:`aa`,e:`ee`,i:`ih`,o:`oh`,u:`ou`,blink:`blink`,joy:`happy`,angry:`angry`,sorrow:`sad`,fun:`relaxed`,lookup:`lookUp`,lookdown:`lookDown`,lookleft:`lookLeft`,lookright:`lookRight`,blink_l:`blinkLeft`,blink_r:`blinkRight`,neutral:`neutral`};var mt=pt,ht=class e{constructor(t,n){this._firstPersonOnlyLayer=e.DEFAULT_FIRSTPERSON_ONLY_LAYER,this._thirdPersonOnlyLayer=e.DEFAULT_THIRDPERSON_ONLY_LAYER,this._initializedLayers=!1,this.humanoid=t,this.meshAnnotations=n}copy(e){if(this.humanoid!==e.humanoid)throw Error(`VRMFirstPerson: humanoid must be same in order to copy`);return this.meshAnnotations=e.meshAnnotations.map(e=>({meshes:e.meshes.concat(),type:e.type})),this}clone(){return new e(this.humanoid,this.meshAnnotations).copy(this)}get firstPersonOnlyLayer(){return this._firstPersonOnlyLayer}get thirdPersonOnlyLayer(){return this._thirdPersonOnlyLayer}setup({firstPersonOnlyLayer:t=e.DEFAULT_FIRSTPERSON_ONLY_LAYER,thirdPersonOnlyLayer:n=e.DEFAULT_THIRDPERSON_ONLY_LAYER}={}){this._initializedLayers||=(this._firstPersonOnlyLayer=t,this._thirdPersonOnlyLayer=n,this.meshAnnotations.forEach(e=>{e.meshes.forEach(t=>{e.type===`firstPersonOnly`?(t.layers.set(this._firstPersonOnlyLayer),t.traverse(e=>e.layers.set(this._firstPersonOnlyLayer))):e.type===`thirdPersonOnly`?(t.layers.set(this._thirdPersonOnlyLayer),t.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer))):e.type===`auto`&&this._createHeadlessModel(t)})}),!0)}_excludeTriangles(e,t,n,r){let i=0;if(t!=null&&t.length>0)for(let a=0;a0&&r.includes(u[0])||l[1]>0&&r.includes(u[1])||l[2]>0&&r.includes(u[2])||l[3]>0&&r.includes(u[3]))continue;let d=t[s],f=n[s];if(d[0]>0&&r.includes(f[0])||d[1]>0&&r.includes(f[1])||d[2]>0&&r.includes(f[2])||d[3]>0&&r.includes(f[3]))continue;let p=t[c],m=n[c];p[0]>0&&r.includes(m[0])||p[1]>0&&r.includes(m[1])||p[2]>0&&r.includes(m[2])||p[3]>0&&r.includes(m[3])||(e[i++]=o,e[i++]=s,e[i++]=c)}return i}_createErasedMesh(e,t){let n=new Le(e.geometry.clone(),e.material);n.name=`${e.name}(erase)`,n.frustumCulled=e.frustumCulled,n.layers.set(this._firstPersonOnlyLayer);let r=n.geometry,i=r.getAttribute(`skinIndex`),a=i instanceof u?[]:i.array,o=[];for(let e=0;e{this._isEraseTarget(e)&&n.push(t)}),!n.length){t.layers.enable(this._thirdPersonOnlyLayer),t.layers.enable(this._firstPersonOnlyLayer);return}t.layers.set(this._thirdPersonOnlyLayer);let r=this._createErasedMesh(t,n);e.add(r)}_createHeadlessModel(e){if(e.type===`Group`)if(e.layers.set(this._thirdPersonOnlyLayer),this._isEraseTarget(e))e.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer));else{let t=new d;t.name=`_headless_${e.name}`,t.layers.set(this._firstPersonOnlyLayer),e.parent.add(t),e.children.filter(e=>e.type===`SkinnedMesh`).forEach(e=>{let n=e;this._createHeadlessModelForSkinnedMesh(t,n)})}else if(e.type===`SkinnedMesh`){let t=e;this._createHeadlessModelForSkinnedMesh(e.parent,t)}else this._isEraseTarget(e)&&(e.layers.set(this._thirdPersonOnlyLayer),e.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer)))}_isEraseTarget(e){return e===this.humanoid.getRawBoneNode(`head`)?!0:e.parent?this._isEraseTarget(e.parent):!1}};ht.DEFAULT_FIRSTPERSON_ONLY_LAYER=9,ht.DEFAULT_THIRDPERSON_ONLY_LAYER=10;var gt=ht,_t=new Set([`1.0`,`1.0-beta`]),vt=class{get name(){return`VRMFirstPersonLoaderPlugin`}constructor(e){this.parser=e}afterRoot(e){return F(this,null,function*(){let t=e.userData.vrmHumanoid;if(t!==null){if(t===void 0)throw Error(`VRMFirstPersonLoaderPlugin: vrmHumanoid is undefined. VRMHumanoidLoaderPlugin have to be used first`);e.userData.vrmFirstPerson=yield this._import(e,t)}})}_import(e,t){return F(this,null,function*(){if(t==null)return null;let n=yield this._v1Import(e,t);if(n)return n;let r=yield this._v0Import(e,t);return r||null})}_v1Import(e,t){return F(this,null,function*(){var n,r;let i=this.parser.json,a=(n=i.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!a)return null;let o=(r=i.extensions)?.VRMC_vrm;if(!o)return null;let s=o.specVersion;if(!_t.has(s))return console.warn(`VRMFirstPersonLoaderPlugin: Unknown VRMC_vrm specVersion "${s}"`),null;let c=o.firstPerson,l=[],u=yield et(e);return Array.from(u.entries()).forEach(([e,t])=>{var n,r;let i=(n=c?.meshAnnotations)?.find(t=>t.node===e);l.push({meshes:t,type:(r=i?.type)??`auto`})}),new gt(t,l)})}_v0Import(e,t){return F(this,null,function*(){var n;let r=this.parser.json,i=(n=r.extensions)?.VRM;if(!i)return null;let a=i.firstPerson;if(!a)return null;let o=[],s=yield et(e);return Array.from(s.entries()).forEach(([e,t])=>{let n=r.nodes[e],i=a.meshAnnotations?a.meshAnnotations.find(e=>e.mesh===n.mesh):void 0;o.push({meshes:t,type:this._convertV0FlagToV1Type(i?.firstPersonFlag)})}),new gt(t,o)})}_convertV0FlagToV1Type(e){return e===`FirstPersonOnly`?`firstPersonOnly`:e===`ThirdPersonOnly`?`thirdPersonOnly`:e===`Both`?`both`:`auto`}},yt=new j,bt=new j,xt=new S,St=class extends d{constructor(e){super(),this.vrmHumanoid=e,this._boneAxesMap=new Map,Object.values(e.humanBones).forEach(e=>{let t=new m(1);t.matrixAutoUpdate=!1,t.material.depthTest=!1,t.material.depthWrite=!1,this.add(t),this._boneAxesMap.set(e,t)})}dispose(){Array.from(this._boneAxesMap.values()).forEach(e=>{e.geometry.dispose(),e.material.dispose()})}updateMatrixWorld(e){Array.from(this._boneAxesMap.entries()).forEach(([e,t])=>{e.node.updateWorldMatrix(!0,!1),e.node.matrixWorld.decompose(yt,xt,bt);let n=yt.set(.1,.1,.1).divide(bt);t.matrix.copy(e.node.matrixWorld).scale(n)}),super.updateMatrixWorld(e)}},Ct=`hips.spine.chest.upperChest.neck.head.leftEye.rightEye.jaw.leftUpperLeg.leftLowerLeg.leftFoot.leftToes.rightUpperLeg.rightLowerLeg.rightFoot.rightToes.leftShoulder.leftUpperArm.leftLowerArm.leftHand.rightShoulder.rightUpperArm.rightLowerArm.rightHand.leftThumbMetacarpal.leftThumbProximal.leftThumbDistal.leftIndexProximal.leftIndexIntermediate.leftIndexDistal.leftMiddleProximal.leftMiddleIntermediate.leftMiddleDistal.leftRingProximal.leftRingIntermediate.leftRingDistal.leftLittleProximal.leftLittleIntermediate.leftLittleDistal.rightThumbMetacarpal.rightThumbProximal.rightThumbDistal.rightIndexProximal.rightIndexIntermediate.rightIndexDistal.rightMiddleProximal.rightMiddleIntermediate.rightMiddleDistal.rightRingProximal.rightRingIntermediate.rightRingDistal.rightLittleProximal.rightLittleIntermediate.rightLittleDistal`.split(`.`),wt={hips:null,spine:`hips`,chest:`spine`,upperChest:`chest`,neck:`upperChest`,head:`neck`,leftEye:`head`,rightEye:`head`,jaw:`head`,leftUpperLeg:`hips`,leftLowerLeg:`leftUpperLeg`,leftFoot:`leftLowerLeg`,leftToes:`leftFoot`,rightUpperLeg:`hips`,rightLowerLeg:`rightUpperLeg`,rightFoot:`rightLowerLeg`,rightToes:`rightFoot`,leftShoulder:`upperChest`,leftUpperArm:`leftShoulder`,leftLowerArm:`leftUpperArm`,leftHand:`leftLowerArm`,rightShoulder:`upperChest`,rightUpperArm:`rightShoulder`,rightLowerArm:`rightUpperArm`,rightHand:`rightLowerArm`,leftThumbMetacarpal:`leftHand`,leftThumbProximal:`leftThumbMetacarpal`,leftThumbDistal:`leftThumbProximal`,leftIndexProximal:`leftHand`,leftIndexIntermediate:`leftIndexProximal`,leftIndexDistal:`leftIndexIntermediate`,leftMiddleProximal:`leftHand`,leftMiddleIntermediate:`leftMiddleProximal`,leftMiddleDistal:`leftMiddleIntermediate`,leftRingProximal:`leftHand`,leftRingIntermediate:`leftRingProximal`,leftRingDistal:`leftRingIntermediate`,leftLittleProximal:`leftHand`,leftLittleIntermediate:`leftLittleProximal`,leftLittleDistal:`leftLittleIntermediate`,rightThumbMetacarpal:`rightHand`,rightThumbProximal:`rightThumbMetacarpal`,rightThumbDistal:`rightThumbProximal`,rightIndexProximal:`rightHand`,rightIndexIntermediate:`rightIndexProximal`,rightIndexDistal:`rightIndexIntermediate`,rightMiddleProximal:`rightHand`,rightMiddleIntermediate:`rightMiddleProximal`,rightMiddleDistal:`rightMiddleIntermediate`,rightRingProximal:`rightHand`,rightRingIntermediate:`rightRingProximal`,rightRingDistal:`rightRingIntermediate`,rightLittleProximal:`rightHand`,rightLittleIntermediate:`rightLittleProximal`,rightLittleDistal:`rightLittleIntermediate`};function Tt(e){return e.invert?e.invert():e.inverse(),e}var L=new j,R=new S,Et=class{constructor(e){this.humanBones=e,this.restPose=this.getAbsolutePose()}getAbsolutePose(){let e={};return Object.keys(this.humanBones).forEach(t=>{let n=t,r=this.getBoneNode(n);r&&(L.copy(r.position),R.copy(r.quaternion),e[n]={position:L.toArray(),rotation:R.toArray()})}),e}getPose(){let e={};return Object.keys(this.humanBones).forEach(t=>{let n=t,r=this.getBoneNode(n);if(!r)return;L.set(0,0,0),R.identity();let i=this.restPose[n];i?.position&&L.fromArray(i.position).negate(),i?.rotation&&Tt(R.fromArray(i.rotation)),L.add(r.position),R.premultiply(r.quaternion),e[n]={position:L.toArray(),rotation:R.toArray()}}),e}setPose(e){Object.entries(e).forEach(([e,t])=>{let n=e,r=this.getBoneNode(n);if(!r)return;let i=this.restPose[n];i&&(t?.position&&(r.position.fromArray(t.position),i.position&&r.position.add(L.fromArray(i.position))),t?.rotation&&(r.quaternion.fromArray(t.rotation),i.rotation&&r.quaternion.multiply(R.fromArray(i.rotation))))})}resetPose(){Object.entries(this.restPose).forEach(([e,t])=>{let n=this.getBoneNode(e);n&&(t?.position&&n.position.fromArray(t.position),t?.rotation&&n.quaternion.fromArray(t.rotation))})}getBone(e){var t;return(t=this.humanBones[e])??void 0}getBoneNode(e){var t,n;return(n=(t=this.humanBones[e])?.node)??null}},Dt=new j,Ot=new S,kt=new j,At=class e extends Et{static _setupTransforms(e){let t=new x;t.name=`VRMHumanoidRig`;let n={},r={},i={},a={};Ct.forEach(t=>{var o;let s=e.getBoneNode(t);if(s){let e=new j,c=new S;s.updateWorldMatrix(!0,!1),s.matrixWorld.decompose(e,c,Dt),n[t]=e,r[t]=c,i[t]=s.quaternion.clone();let l=new S;(o=s.parent)==null||o.matrixWorld.decompose(Dt,l,Dt),a[t]=l}});let o={};return Ct.forEach(r=>{var i;let a=e.getBoneNode(r);if(a){let e=n[r],s=r,c;for(;c==null&&(s=wt[s],s!=null);)c=n[s];let l=new x;l.name=`Normalized_`+a.name;let u=s?(i=o[s])?.node:t;u.add(l),l.position.copy(e),c&&l.position.sub(c),o[r]={node:l}}}),{rigBones:o,root:t,parentWorldRotations:a,boneRotations:i}}constructor(t){let{rigBones:n,root:r,parentWorldRotations:i,boneRotations:a}=e._setupTransforms(t);super(n),this.original=t,this.root=r,this._parentWorldRotations=i,this._boneRotations=a}update(){Ct.forEach(e=>{let t=this.original.getBoneNode(e);if(t!=null){let n=this.getBoneNode(e),r=this._parentWorldRotations[e],i=Ot.copy(r).invert(),a=this._boneRotations[e];if(t.quaternion.copy(n.quaternion).multiply(r).premultiply(i).multiply(a),e===`hips`){let e=n.getWorldPosition(kt);t.parent.updateWorldMatrix(!0,!1);let r=t.parent.matrixWorld,i=e.applyMatrix4(r.invert());t.position.copy(i)}}})}},jt=class e{get restPose(){return console.warn(`VRMHumanoid: restPose is deprecated. Use either rawRestPose or normalizedRestPose instead.`),this.rawRestPose}get rawRestPose(){return this._rawHumanBones.restPose}get normalizedRestPose(){return this._normalizedHumanBones.restPose}get humanBones(){return this._rawHumanBones.humanBones}get rawHumanBones(){return this._rawHumanBones.humanBones}get normalizedHumanBones(){return this._normalizedHumanBones.humanBones}get normalizedHumanBonesRoot(){return this._normalizedHumanBones.root}constructor(e,t){var n;this.autoUpdateHumanBones=(n=t?.autoUpdateHumanBones)??!0,this._rawHumanBones=new Et(e),this._normalizedHumanBones=new At(this._rawHumanBones)}copy(e){return this.autoUpdateHumanBones=e.autoUpdateHumanBones,this._rawHumanBones=new Et(e.humanBones),this._normalizedHumanBones=new At(this._rawHumanBones),this}clone(){return new e(this.humanBones,{autoUpdateHumanBones:this.autoUpdateHumanBones}).copy(this)}getAbsolutePose(){return console.warn(`VRMHumanoid: getAbsolutePose() is deprecated. Use either getRawAbsolutePose() or getNormalizedAbsolutePose() instead.`),this.getRawAbsolutePose()}getRawAbsolutePose(){return this._rawHumanBones.getAbsolutePose()}getNormalizedAbsolutePose(){return this._normalizedHumanBones.getAbsolutePose()}getPose(){return console.warn(`VRMHumanoid: getPose() is deprecated. Use either getRawPose() or getNormalizedPose() instead.`),this.getRawPose()}getRawPose(){return this._rawHumanBones.getPose()}getNormalizedPose(){return this._normalizedHumanBones.getPose()}setPose(e){return console.warn(`VRMHumanoid: setPose() is deprecated. Use either setRawPose() or setNormalizedPose() instead.`),this.setRawPose(e)}setRawPose(e){return this._rawHumanBones.setPose(e)}setNormalizedPose(e){return this._normalizedHumanBones.setPose(e)}resetPose(){return console.warn(`VRMHumanoid: resetPose() is deprecated. Use either resetRawPose() or resetNormalizedPose() instead.`),this.resetRawPose()}resetRawPose(){return this._rawHumanBones.resetPose()}resetNormalizedPose(){return this._normalizedHumanBones.resetPose()}getBone(e){return console.warn(`VRMHumanoid: getBone() is deprecated. Use either getRawBone() or getNormalizedBone() instead.`),this.getRawBone(e)}getRawBone(e){return this._rawHumanBones.getBone(e)}getNormalizedBone(e){return this._normalizedHumanBones.getBone(e)}getBoneNode(e){return console.warn(`VRMHumanoid: getBoneNode() is deprecated. Use either getRawBoneNode() or getNormalizedBoneNode() instead.`),this.getRawBoneNode(e)}getRawBoneNode(e){return this._rawHumanBones.getBoneNode(e)}getNormalizedBoneNode(e){return this._normalizedHumanBones.getBoneNode(e)}update(){this.autoUpdateHumanBones&&this._normalizedHumanBones.update()}},Mt={Hips:`hips`,Spine:`spine`,Head:`head`,LeftUpperLeg:`leftUpperLeg`,LeftLowerLeg:`leftLowerLeg`,LeftFoot:`leftFoot`,RightUpperLeg:`rightUpperLeg`,RightLowerLeg:`rightLowerLeg`,RightFoot:`rightFoot`,LeftUpperArm:`leftUpperArm`,LeftLowerArm:`leftLowerArm`,LeftHand:`leftHand`,RightUpperArm:`rightUpperArm`,RightLowerArm:`rightLowerArm`,RightHand:`rightHand`},Nt=new Set([`1.0`,`1.0-beta`]),Pt={leftThumbProximal:`leftThumbMetacarpal`,leftThumbIntermediate:`leftThumbProximal`,rightThumbProximal:`rightThumbMetacarpal`,rightThumbIntermediate:`rightThumbProximal`},Ft=class{get name(){return`VRMHumanoidLoaderPlugin`}constructor(e,t){this.parser=e,this.helperRoot=t?.helperRoot,this.autoUpdateHumanBones=t?.autoUpdateHumanBones}afterRoot(e){return F(this,null,function*(){e.userData.vrmHumanoid=yield this._import(e)})}_import(e){return F(this,null,function*(){let t=yield this._v1Import(e);if(t)return t;let n=yield this._v0Import(e);return n||null})}_v1Import(e){return F(this,null,function*(){var t,n;let r=this.parser.json,i=(t=r.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!i)return null;let a=(n=r.extensions)?.VRMC_vrm;if(!a)return null;let o=a.specVersion;if(!Nt.has(o))return console.warn(`VRMHumanoidLoaderPlugin: Unknown VRMC_vrm specVersion "${o}"`),null;let s=a.humanoid;if(!s)return null;let c=s.humanBones.leftThumbIntermediate!=null||s.humanBones.rightThumbIntermediate!=null,l={};s.humanBones!=null&&(yield Promise.all(Object.entries(s.humanBones).map(e=>F(this,[e],function*([e,t]){let n=e,r=t.node;if(c){let e=Pt[n];e!=null&&(n=e)}let i=yield this.parser.getDependency(`node`,r);if(i==null){console.warn(`A glTF node bound to the humanoid bone ${n} (index = ${r}) does not exist`);return}l[n]={node:i}}))));let u=new jt(this._ensureRequiredBonesExist(l),{autoUpdateHumanBones:this.autoUpdateHumanBones});if(e.scene.add(u.normalizedHumanBonesRoot),this.helperRoot){let e=new St(u);this.helperRoot.add(e),e.renderOrder=this.helperRoot.renderOrder}return u})}_v0Import(e){return F(this,null,function*(){var t;let n=this.parser.json,r=(t=n.extensions)?.VRM;if(!r)return null;let i=r.humanoid;if(!i)return null;let a={};i.humanBones!=null&&(yield Promise.all(i.humanBones.map(e=>F(this,null,function*(){let t=e.bone,n=e.node;if(t==null||n==null)return;let r=yield this.parser.getDependency(`node`,n);if(r==null){console.warn(`A glTF node bound to the humanoid bone ${t} (index = ${n}) does not exist`);return}let i=Pt[t],o=i??t;if(a[o]!=null){console.warn(`Multiple bone entries for ${o} detected (index = ${n}), ignoring duplicated entries.`);return}a[o]={node:r}}))));let o=new jt(this._ensureRequiredBonesExist(a),{autoUpdateHumanBones:this.autoUpdateHumanBones});if(e.scene.add(o.normalizedHumanBonesRoot),this.helperRoot){let e=new St(o);this.helperRoot.add(e),e.renderOrder=this.helperRoot.renderOrder}return o})}_ensureRequiredBonesExist(e){let t=Object.values(Mt).filter(t=>e[t]==null);if(t.length>0)throw Error(`VRMHumanoidLoaderPlugin: These humanoid bones are required but not exist: ${t.join(`, `)}`);return e}},It=class extends y{constructor(){super(),this._currentTheta=0,this._currentRadius=0,this.theta=0,this.radius=0,this._currentTheta=0,this._currentRadius=0,this._attrPos=new v(new Float32Array(195),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new v(new Uint16Array(189),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1;this._currentTheta!==this.theta&&(this._currentTheta=this.theta,e=!0),this._currentRadius!==this.radius&&(this._currentRadius=this.radius,e=!0),e&&this._buildPosition()}_buildPosition(){this._attrPos.setXYZ(0,0,0,0);for(let e=0;e<64;e++){let t=e/63*this._currentTheta;this._attrPos.setXYZ(e+1,this._currentRadius*Math.sin(t),0,this._currentRadius*Math.cos(t))}this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<63;e++)this._attrIndex.setXYZ(e*3,0,e+1,e+2);this._attrIndex.needsUpdate=!0}},Lt=class extends y{constructor(){super(),this.radius=0,this._currentRadius=0,this.tail=new j,this._currentTail=new j,this._attrPos=new v(new Float32Array(294),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new v(new Uint16Array(194),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1;this._currentRadius!==this.radius&&(this._currentRadius=this.radius,e=!0),this._currentTail.equals(this.tail)||(this._currentTail.copy(this.tail),e=!0),e&&this._buildPosition()}_buildPosition(){for(let e=0;e<32;e++){let t=e/16*Math.PI;this._attrPos.setXYZ(e,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+e,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+e,Math.sin(t),0,Math.cos(t))}this.scale(this._currentRadius,this._currentRadius,this._currentRadius),this.translate(this._currentTail.x,this._currentTail.y,this._currentTail.z),this._attrPos.setXYZ(96,0,0,0),this._attrPos.setXYZ(97,this._currentTail.x,this._currentTail.y,this._currentTail.z),this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<32;e++){let t=(e+1)%32;this._attrIndex.setXY(e*2,e,t),this._attrIndex.setXY(64+e*2,32+e,32+t),this._attrIndex.setXY(128+e*2,64+e,64+t)}this._attrIndex.setXY(192,96,97),this._attrIndex.needsUpdate=!0}},Rt=new S,zt=new S,Bt=new j,Vt=new j,Ht=Math.sqrt(2)/2,Ut=new S(0,0,-Ht,Ht),Wt=new j(0,1,0),Gt=class extends d{constructor(e){super(),this.matrixAutoUpdate=!1,this.vrmLookAt=e;{let e=new It;e.radius=.5;let t=new D({color:65280,transparent:!0,opacity:.5,side:a,depthTest:!1,depthWrite:!1});this._meshPitch=new Ae(e,t),this.add(this._meshPitch)}{let e=new It;e.radius=.5;let t=new D({color:16711680,transparent:!0,opacity:.5,side:a,depthTest:!1,depthWrite:!1});this._meshYaw=new Ae(e,t),this.add(this._meshYaw)}{let e=new Lt;e.radius=.1;let t=new xe({color:16777215,depthTest:!1,depthWrite:!1});this._lineTarget=new Ce(e,t),this._lineTarget.frustumCulled=!1,this.add(this._lineTarget)}}dispose(){this._meshYaw.geometry.dispose(),this._meshYaw.material.dispose(),this._meshPitch.geometry.dispose(),this._meshPitch.material.dispose(),this._lineTarget.geometry.dispose(),this._lineTarget.material.dispose()}updateMatrixWorld(e){let t=w.DEG2RAD*this.vrmLookAt.yaw;this._meshYaw.geometry.theta=t,this._meshYaw.geometry.update();let n=w.DEG2RAD*this.vrmLookAt.pitch;this._meshPitch.geometry.theta=n,this._meshPitch.geometry.update(),this.vrmLookAt.getLookAtWorldPosition(Bt),this.vrmLookAt.getLookAtWorldQuaternion(Rt),Rt.multiply(this.vrmLookAt.getFaceFrontQuaternion(zt)),this._meshYaw.position.copy(Bt),this._meshYaw.quaternion.copy(Rt),this._meshPitch.position.copy(Bt),this._meshPitch.quaternion.copy(Rt),this._meshPitch.quaternion.multiply(zt.setFromAxisAngle(Wt,t)),this._meshPitch.quaternion.multiply(Ut);let{target:r,autoUpdate:i}=this.vrmLookAt;r!=null&&i&&(r.getWorldPosition(Vt).sub(Bt),this._lineTarget.geometry.tail.copy(Vt),this._lineTarget.geometry.update(),this._lineTarget.position.copy(Bt)),super.updateMatrixWorld(e)}},Kt=new j,qt=new j;function Jt(e,t){return e.matrixWorld.decompose(Kt,t,qt),t}function Yt(e){return[Math.atan2(-e.z,e.x),Math.atan2(e.y,Math.sqrt(e.x*e.x+e.z*e.z))]}function Xt(e){let t=Math.round(e/2/Math.PI);return e-2*Math.PI*t}var Zt=new j(0,0,1),Qt=new j,$t=new j,en=new j,tn=new S,nn=new S,rn=new S,an=new S,on=new s,sn=class e{constructor(e,t){this.offsetFromHeadBone=new j,this.autoUpdate=!0,this.faceFront=new j(0,0,1),this.humanoid=e,this.applier=t,this._yaw=0,this._pitch=0,this._needsUpdate=!0,this._restHeadWorldQuaternion=this.getLookAtWorldQuaternion(new S)}get yaw(){return this._yaw}set yaw(e){this._yaw=e,this._needsUpdate=!0}get pitch(){return this._pitch}set pitch(e){this._pitch=e,this._needsUpdate=!0}get euler(){return console.warn(`VRMLookAt: euler is deprecated. use getEuler() instead.`),this.getEuler(new s)}getEuler(e){return e.set(w.DEG2RAD*this._pitch,w.DEG2RAD*this._yaw,0,`YXZ`)}copy(e){if(this.humanoid!==e.humanoid)throw Error(`VRMLookAt: humanoid must be same in order to copy`);return this.offsetFromHeadBone.copy(e.offsetFromHeadBone),this.applier=e.applier,this.autoUpdate=e.autoUpdate,this.target=e.target,this.faceFront.copy(e.faceFront),this}clone(){return new e(this.humanoid,this.applier).copy(this)}reset(){this._yaw=0,this._pitch=0,this._needsUpdate=!0}getLookAtWorldPosition(e){let t=this.humanoid.getRawBoneNode(`head`);return e.copy(this.offsetFromHeadBone).applyMatrix4(t.matrixWorld)}getLookAtWorldQuaternion(e){let t=this.humanoid.getRawBoneNode(`head`);return Jt(t,e)}getFaceFrontQuaternion(e){if(this.faceFront.distanceToSquared(Zt)<.01)return e.copy(this._restHeadWorldQuaternion).invert();let[t,n]=Yt(this.faceFront);return on.set(0,.5*Math.PI+t,n,`YZX`),e.setFromEuler(on).premultiply(an.copy(this._restHeadWorldQuaternion).invert())}getLookAtWorldDirection(e){return this.getLookAtWorldQuaternion(nn),this.getFaceFrontQuaternion(rn),e.copy(Zt).applyQuaternion(nn).applyQuaternion(rn).applyEuler(this.getEuler(on))}lookAt(e){let t=tn.copy(this._restHeadWorldQuaternion).multiply(Tt(this.getLookAtWorldQuaternion(nn))),n=this.getLookAtWorldPosition($t),r=en.copy(e).sub(n).applyQuaternion(t).normalize(),[i,a]=Yt(this.faceFront),[o,s]=Yt(r),c=Xt(o-i),l=Xt(a-s);this._yaw=w.RAD2DEG*c,this._pitch=w.RAD2DEG*l,this._needsUpdate=!0}update(e){this.target!=null&&this.autoUpdate&&this.lookAt(this.target.getWorldPosition(Qt)),this._needsUpdate&&(this._needsUpdate=!1,this.applier.applyYawPitch(this._yaw,this._pitch))}};sn.EULER_ORDER=`YXZ`;var cn=sn,ln=new j(0,0,1),z=new S,un=new S,B=new s(0,0,0,`YXZ`),dn=class{constructor(e,t,n,r,i){this.humanoid=e,this.rangeMapHorizontalInner=t,this.rangeMapHorizontalOuter=n,this.rangeMapVerticalDown=r,this.rangeMapVerticalUp=i,this.faceFront=new j(0,0,1),this._restQuatLeftEye=new S,this._restQuatRightEye=new S,this._restLeftEyeParentWorldQuat=new S,this._restRightEyeParentWorldQuat=new S;let a=this.humanoid.getRawBoneNode(`leftEye`),o=this.humanoid.getRawBoneNode(`rightEye`);a&&(this._restQuatLeftEye.copy(a.quaternion),Jt(a.parent,this._restLeftEyeParentWorldQuat)),o&&(this._restQuatRightEye.copy(o.quaternion),Jt(o.parent,this._restRightEyeParentWorldQuat))}applyYawPitch(e,t){let n=this.humanoid.getRawBoneNode(`leftEye`),r=this.humanoid.getRawBoneNode(`rightEye`),i=this.humanoid.getNormalizedBoneNode(`leftEye`),a=this.humanoid.getNormalizedBoneNode(`rightEye`);n&&(t<0?B.x=-w.DEG2RAD*this.rangeMapVerticalDown.map(-t):B.x=w.DEG2RAD*this.rangeMapVerticalUp.map(t),e<0?B.y=-w.DEG2RAD*this.rangeMapHorizontalInner.map(-e):B.y=w.DEG2RAD*this.rangeMapHorizontalOuter.map(e),z.setFromEuler(B),this._getWorldFaceFrontQuat(un),i.quaternion.copy(un).multiply(z).multiply(un.invert()),z.copy(this._restLeftEyeParentWorldQuat),n.quaternion.copy(i.quaternion).multiply(z).premultiply(z.invert()).multiply(this._restQuatLeftEye)),r&&(t<0?B.x=-w.DEG2RAD*this.rangeMapVerticalDown.map(-t):B.x=w.DEG2RAD*this.rangeMapVerticalUp.map(t),e<0?B.y=-w.DEG2RAD*this.rangeMapHorizontalOuter.map(-e):B.y=w.DEG2RAD*this.rangeMapHorizontalInner.map(e),z.setFromEuler(B),this._getWorldFaceFrontQuat(un),a.quaternion.copy(un).multiply(z).multiply(un.invert()),z.copy(this._restRightEyeParentWorldQuat),r.quaternion.copy(a.quaternion).multiply(z).premultiply(z.invert()).multiply(this._restQuatRightEye))}lookAt(e){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let t=w.RAD2DEG*e.y,n=w.RAD2DEG*e.x;this.applyYawPitch(t,n)}_getWorldFaceFrontQuat(e){if(this.faceFront.distanceToSquared(ln)<.01)return e.identity();let[t,n]=Yt(this.faceFront);return B.set(0,.5*Math.PI+t,n,`YZX`),e.setFromEuler(B)}};dn.type=`bone`;var fn=class{constructor(e,t,n,r,i){this.expressions=e,this.rangeMapHorizontalInner=t,this.rangeMapHorizontalOuter=n,this.rangeMapVerticalDown=r,this.rangeMapVerticalUp=i}applyYawPitch(e,t){t<0?(this.expressions.setValue(`lookDown`,0),this.expressions.setValue(`lookUp`,this.rangeMapVerticalUp.map(-t))):(this.expressions.setValue(`lookUp`,0),this.expressions.setValue(`lookDown`,this.rangeMapVerticalDown.map(t))),e<0?(this.expressions.setValue(`lookLeft`,0),this.expressions.setValue(`lookRight`,this.rangeMapHorizontalOuter.map(-e))):(this.expressions.setValue(`lookRight`,0),this.expressions.setValue(`lookLeft`,this.rangeMapHorizontalOuter.map(e)))}lookAt(e){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let t=w.RAD2DEG*e.y,n=w.RAD2DEG*e.x;this.applyYawPitch(t,n)}};fn.type=`expression`;var pn=class{constructor(e,t){this.inputMaxValue=e,this.outputScale=t}map(e){return this.outputScale*nt(e/this.inputMaxValue)}},mn=new Set([`1.0`,`1.0-beta`]),hn=.01,gn=class{get name(){return`VRMLookAtLoaderPlugin`}constructor(e,t){this.parser=e,this.helperRoot=t?.helperRoot}afterRoot(e){return F(this,null,function*(){let t=e.userData.vrmHumanoid;if(t===null)return;if(t===void 0)throw Error(`VRMLookAtLoaderPlugin: vrmHumanoid is undefined. VRMHumanoidLoaderPlugin have to be used first`);let n=e.userData.vrmExpressionManager;if(n!==null){if(n===void 0)throw Error(`VRMLookAtLoaderPlugin: vrmExpressionManager is undefined. VRMExpressionLoaderPlugin have to be used first`);e.userData.vrmLookAt=yield this._import(e,t,n)}})}_import(e,t,n){return F(this,null,function*(){if(t==null||n==null)return null;let r=yield this._v1Import(e,t,n);if(r)return r;let i=yield this._v0Import(e,t,n);return i||null})}_v1Import(e,t,n){return F(this,null,function*(){var e,r,i;let a=this.parser.json,o=(e=a.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!o)return null;let s=(r=a.extensions)?.VRMC_vrm;if(!s)return null;let c=s.specVersion;if(!mn.has(c))return console.warn(`VRMLookAtLoaderPlugin: Unknown VRMC_vrm specVersion "${c}"`),null;let l=s.lookAt;if(!l)return null;let u=l.type===`expression`?1:10,d=this._v1ImportRangeMap(l.rangeMapHorizontalInner,u),f=this._v1ImportRangeMap(l.rangeMapHorizontalOuter,u),p=this._v1ImportRangeMap(l.rangeMapVerticalDown,u),m=this._v1ImportRangeMap(l.rangeMapVerticalUp,u),h;h=l.type===`expression`?new fn(n,d,f,p,m):new dn(t,d,f,p,m);let g=this._importLookAt(t,h);return g.offsetFromHeadBone.fromArray((i=l.offsetFromHeadBone)??[0,.06,0]),g})}_v1ImportRangeMap(e,t){var n,r;let i=(n=e?.inputMaxValue)??90,a=(r=e?.outputScale)??t;return i(console.error(e),console.warn(`VRMMetaLoaderPlugin: Failed to load a thumbnail image`),null))})}},bn=class{constructor(e){this.scene=e.scene,this.meta=e.meta,this.humanoid=e.humanoid,this.expressionManager=e.expressionManager,this.firstPerson=e.firstPerson,this.lookAt=e.lookAt}update(e){this.humanoid.update(),this.lookAt&&this.lookAt.update(e),this.expressionManager&&this.expressionManager.update()}},xn=class extends bn{constructor(e){super(e),this.materials=e.materials,this.springBoneManager=e.springBoneManager,this.nodeConstraintManager=e.nodeConstraintManager}update(e){super.update(e),this.nodeConstraintManager&&this.nodeConstraintManager.update(),this.springBoneManager&&this.springBoneManager.update(e),this.materials&&this.materials.forEach(t=>{t.update&&t.update(e)})}},Sn=Object.defineProperty,Cn=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,En=(e,t,n)=>t in e?Sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dn=(e,t)=>{for(var n in t||={})wn.call(t,n)&&En(e,n,t[n]);if(Cn)for(var n of Cn(t))Tn.call(t,n)&&En(e,n,t[n]);return e},V=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),On={"":3e3,srgb:3001};function kn(e,t){parseInt(ve,10)>=152?e.colorSpace=t:e.encoding=On[t]}var An=class{get pending(){return Promise.all(this._pendings)}constructor(e,t){this._parser=e,this._materialParams=t,this._pendings=[]}assignPrimitive(e,t){t!=null&&(this._materialParams[e]=t)}assignColor(e,t,r){t!=null&&(this._materialParams[e]=new n().fromArray(t),r&&this._materialParams[e].convertSRGBToLinear())}assignTexture(e,t,n){return V(this,null,function*(){let r=(()=>V(this,null,function*(){t!=null&&(yield this._parser.assignTexture(this._materialParams,e,t),n&&kn(this._materialParams[e],`srgb`))}))();return this._pendings.push(r),r})}assignTextureByIndex(e,t,n){return V(this,null,function*(){return this.assignTexture(e,t==null?void 0:{index:t},n)})}},jn=`// #define PHONG + +varying vec3 vViewPosition; + +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif + +#include + +// #include +#ifdef MTOON_USE_UV + varying vec2 vUv; + + // COMPAT: pre-r151 uses a common uvTransform + #if THREE_VRM_THREE_REVISION < 151 + uniform mat3 uvTransform; + #endif +#endif + +// #include +// COMAPT: pre-r151 uses uv2 for lightMap and aoMap +#if THREE_VRM_THREE_REVISION < 151 + #if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) + attribute vec2 uv2; + varying vec2 vUv2; + uniform mat3 uv2Transform; + #endif +#endif + +// #include +// #include +#include +#include +#include +#include +#include +#include +#include + +#ifdef USE_OUTLINEWIDTHMULTIPLYTEXTURE + uniform sampler2D outlineWidthMultiplyTexture; + uniform mat3 outlineWidthMultiplyTextureUvTransform; +#endif + +uniform float outlineWidthFactor; + +void main() { + + // #include + #ifdef MTOON_USE_UV + // COMPAT: pre-r151 uses a common uvTransform + #if THREE_VRM_THREE_REVISION >= 151 + vUv = uv; + #else + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #endif + + // #include + // COMAPT: pre-r151 uses uv2 for lightMap and aoMap + #if THREE_VRM_THREE_REVISION < 151 + #if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) + vUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy; + #endif + #endif + + #include + + #include + #include + #include + #include + + // we need this to compute the outline properly + objectNormal = normalize( objectNormal ); + + #include + + #ifndef FLAT_SHADED // Normal computed with derivatives when FLAT_SHADED + vNormal = normalize( transformedNormal ); + #endif + + #include + + #include + #include + // #include + #include + #include + #include + + vViewPosition = - mvPosition.xyz; + + #ifdef OUTLINE + float worldNormalLength = length( transformedNormal ); + vec3 outlineOffset = outlineWidthFactor * worldNormalLength * objectNormal; + + #ifdef USE_OUTLINEWIDTHMULTIPLYTEXTURE + vec2 outlineWidthMultiplyTextureUv = ( outlineWidthMultiplyTextureUvTransform * vec3( vUv, 1 ) ).xy; + float outlineTex = texture2D( outlineWidthMultiplyTexture, outlineWidthMultiplyTextureUv ).g; + outlineOffset *= outlineTex; + #endif + + #ifdef OUTLINE_WIDTH_SCREEN + outlineOffset *= vViewPosition.z / projectionMatrix[ 1 ].y; + #endif + + gl_Position = projectionMatrix * modelViewMatrix * vec4( outlineOffset + transformed, 1.0 ); + + gl_Position.z += 1E-6 * gl_Position.w; // anti-artifact magic + #endif + + #include + // #include + #include + #include + +}`,Mn=`// #define PHONG + +uniform vec3 litFactor; + +uniform float opacity; + +uniform vec3 shadeColorFactor; +#ifdef USE_SHADEMULTIPLYTEXTURE + uniform sampler2D shadeMultiplyTexture; + uniform mat3 shadeMultiplyTextureUvTransform; +#endif + +uniform float shadingShiftFactor; +uniform float shadingToonyFactor; + +#ifdef USE_SHADINGSHIFTTEXTURE + uniform sampler2D shadingShiftTexture; + uniform mat3 shadingShiftTextureUvTransform; + uniform float shadingShiftTextureScale; +#endif + +uniform float giEqualizationFactor; + +uniform vec3 parametricRimColorFactor; +#ifdef USE_RIMMULTIPLYTEXTURE + uniform sampler2D rimMultiplyTexture; + uniform mat3 rimMultiplyTextureUvTransform; +#endif +uniform float rimLightingMixFactor; +uniform float parametricRimFresnelPowerFactor; +uniform float parametricRimLiftFactor; + +#ifdef USE_MATCAPTEXTURE + uniform vec3 matcapFactor; + uniform sampler2D matcapTexture; + uniform mat3 matcapTextureUvTransform; +#endif + +uniform vec3 emissive; +uniform float emissiveIntensity; + +uniform vec3 outlineColorFactor; +uniform float outlineLightingMixFactor; + +#ifdef USE_UVANIMATIONMASKTEXTURE + uniform sampler2D uvAnimationMaskTexture; + uniform mat3 uvAnimationMaskTextureUvTransform; +#endif + +uniform float uvAnimationScrollXOffset; +uniform float uvAnimationScrollYOffset; +uniform float uvAnimationRotationPhase; + +#include +#include +#include +#include + +// #include +#if ( defined( MTOON_USE_UV ) && !defined( MTOON_UVS_VERTEX_ONLY ) ) + varying vec2 vUv; +#endif + +// #include +// COMAPT: pre-r151 uses uv2 for lightMap and aoMap +#if THREE_VRM_THREE_REVISION < 151 + #if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) + varying vec2 vUv2; + #endif +#endif + +#include + +#ifdef USE_MAP + uniform mat3 mapUvTransform; +#endif + +// #include + +#include + +#include +// #include +#include + +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapUvTransform; +#endif + +// #include +// #include +// #include +#include + +// #include +// COMPAT: pre-r151 doesn't have BRDF_Lambert in +#if THREE_VRM_THREE_REVISION < 151 + vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; + } +#endif + +#include + +#include + +// #include +varying vec3 vViewPosition; + +struct MToonMaterial { + vec3 diffuseColor; + vec3 shadeColor; + float shadingShift; +}; + +float linearstep( float a, float b, float t ) { + return clamp( ( t - a ) / ( b - a ), 0.0, 1.0 ); +} + +/** + * Convert NdotL into toon shading factor using shadingShift and shadingToony + */ +float getShading( + const in float dotNL, + const in float shadow, + const in float shadingShift +) { + float shading = dotNL; + shading = shading + shadingShift; + shading = linearstep( -1.0 + shadingToonyFactor, 1.0 - shadingToonyFactor, shading ); + shading *= shadow; + return shading; +} + +/** + * Mix diffuseColor and shadeColor using shading factor and light color + */ +vec3 getDiffuse( + const in MToonMaterial material, + const in float shading, + in vec3 lightColor +) { + #ifdef DEBUG_LITSHADERATE + return vec3( BRDF_Lambert( shading * lightColor ) ); + #endif + + vec3 col = lightColor * BRDF_Lambert( mix( material.shadeColor, material.diffuseColor, shading ) ); + + // The "comment out if you want to PBR absolutely" line + #ifdef V0_COMPAT_SHADE + col = min( col, material.diffuseColor ); + #endif + + return col; +} + +// COMPAT: pre-r156 uses a struct GeometricContext +#if THREE_VRM_THREE_REVISION >= 157 + void RE_Direct_MToon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in MToonMaterial material, const in float shadow, inout ReflectedLight reflectedLight ) { + float dotNL = clamp( dot( geometryNormal, directLight.direction ), -1.0, 1.0 ); + vec3 irradiance = directLight.color; + + // directSpecular will be used for rim lighting, not an actual specular + reflectedLight.directSpecular += irradiance; + + irradiance *= dotNL; + + float shading = getShading( dotNL, shadow, material.shadingShift ); + + // toon shaded diffuse + reflectedLight.directDiffuse += getDiffuse( material, shading, directLight.color ); + } + + void RE_IndirectDiffuse_MToon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in MToonMaterial material, inout ReflectedLight reflectedLight ) { + // indirect diffuse will use diffuseColor, no shadeColor involved + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + + // directSpecular will be used for rim lighting, not an actual specular + reflectedLight.directSpecular += irradiance; + } +#else + void RE_Direct_MToon( const in IncidentLight directLight, const in GeometricContext geometry, const in MToonMaterial material, const in float shadow, inout ReflectedLight reflectedLight ) { + float dotNL = clamp( dot( geometry.normal, directLight.direction ), -1.0, 1.0 ); + vec3 irradiance = directLight.color; + + // directSpecular will be used for rim lighting, not an actual specular + reflectedLight.directSpecular += irradiance; + + irradiance *= dotNL; + + float shading = getShading( dotNL, shadow, material.shadingShift ); + + // toon shaded diffuse + reflectedLight.directDiffuse += getDiffuse( material, shading, directLight.color ); + } + + void RE_IndirectDiffuse_MToon( const in vec3 irradiance, const in GeometricContext geometry, const in MToonMaterial material, inout ReflectedLight reflectedLight ) { + // indirect diffuse will use diffuseColor, no shadeColor involved + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + + // directSpecular will be used for rim lighting, not an actual specular + reflectedLight.directSpecular += irradiance; + } +#endif + +#define RE_Direct RE_Direct_MToon +#define RE_IndirectDiffuse RE_IndirectDiffuse_MToon +#define Material_LightProbeLOD( material ) (0) + +#include +// #include + +// #include +#ifdef USE_NORMALMAP + + uniform sampler2D normalMap; + uniform mat3 normalMapUvTransform; + uniform vec2 normalScale; + +#endif + +// COMPAT: pre-r151 +// USE_NORMALMAP_OBJECTSPACE used to be OBJECTSPACE_NORMALMAP in pre-r151 +#if defined( USE_NORMALMAP_OBJECTSPACE ) || defined( OBJECTSPACE_NORMALMAP ) + + uniform mat3 normalMatrix; + +#endif + +// COMPAT: pre-r151 +// USE_NORMALMAP_TANGENTSPACE used to be TANGENTSPACE_NORMALMAP in pre-r151 +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( TANGENTSPACE_NORMALMAP ) ) + + // Per-Pixel Tangent Space Normal Mapping + // http://hacksoflife.blogspot.ch/2009/11/per-pixel-tangent-space-normal-mapping.html + + // three-vrm specific change: it requires \`uv\` as an input in order to support uv scrolls + + // Temporary compat against shader change @ Three.js r126, r151 + #if THREE_VRM_THREE_REVISION >= 151 + + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + + vec3 N = surf_norm; + + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + + return mat3( T * scale, B * scale, N ); + + } + + #else + + vec3 perturbNormal2Arb( vec2 uv, vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) { + + vec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) ); + vec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + + vec3 N = normalize( surf_norm ); + + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + + // three-vrm specific change: Workaround for the issue that happens when delta of uv = 0.0 + // TODO: Is this still required? Or shall I make a PR about it? + if ( length( T ) == 0.0 || length( B ) == 0.0 ) { + return surf_norm; + } + + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det ); + + return normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z ); + + } + + #endif + +#endif + +// #include +#include +#include + +// == post correction ========================================================== +void postCorrection() { + #include + #include + #include + #include + #include +} + +// == main procedure =========================================================== +void main() { + #include + + vec2 uv = vec2(0.5, 0.5); + + #if ( defined( MTOON_USE_UV ) && !defined( MTOON_UVS_VERTEX_ONLY ) ) + uv = vUv; + + float uvAnimMask = 1.0; + #ifdef USE_UVANIMATIONMASKTEXTURE + vec2 uvAnimationMaskTextureUv = ( uvAnimationMaskTextureUvTransform * vec3( uv, 1 ) ).xy; + uvAnimMask = texture2D( uvAnimationMaskTexture, uvAnimationMaskTextureUv ).b; + #endif + + float uvRotCos = cos( uvAnimationRotationPhase * uvAnimMask ); + float uvRotSin = sin( uvAnimationRotationPhase * uvAnimMask ); + uv = mat2( uvRotCos, -uvRotSin, uvRotSin, uvRotCos ) * ( uv - 0.5 ) + 0.5; + uv = uv + vec2( uvAnimationScrollXOffset, uvAnimationScrollYOffset ) * uvAnimMask; + #endif + + #ifdef DEBUG_UV + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #if ( defined( MTOON_USE_UV ) && !defined( MTOON_UVS_VERTEX_ONLY ) ) + gl_FragColor = vec4( uv, 0.0, 1.0 ); + #endif + return; + #endif + + vec4 diffuseColor = vec4( litFactor, opacity ); + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive * emissiveIntensity; + + #include + + // #include + #ifdef USE_MAP + vec2 mapUv = ( mapUvTransform * vec3( uv, 1 ) ).xy; + vec4 sampledDiffuseColor = texture2D( map, mapUv ); + #ifdef DECODE_VIDEO_TEXTURE + sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); + #endif + diffuseColor *= sampledDiffuseColor; + #endif + + // #include + #if ( defined( USE_COLOR ) && !defined( IGNORE_VERTEX_COLOR ) ) + diffuseColor.rgb *= vColor; + #endif + + // #include + + #include + + // #include + + // #include + float faceDirection = gl_FrontFacing ? 1.0 : -1.0; + + #ifdef FLAT_SHADED + + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); + + #else + + vec3 normal = normalize( vNormal ); + + #ifdef DOUBLE_SIDED + + normal *= faceDirection; + + #endif + + #endif + + #ifdef USE_NORMALMAP + + vec2 normalMapUv = ( normalMapUvTransform * vec3( uv, 1 ) ).xy; + + #endif + + #ifdef USE_NORMALMAP_TANGENTSPACE + + #ifdef USE_TANGENT + + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + + #else + + mat3 tbn = getTangentFrame( - vViewPosition, normal, normalMapUv ); + + #endif + + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + + #endif + + #endif + + #ifdef USE_CLEARCOAT_NORMALMAP + + #ifdef USE_TANGENT + + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + + #else + + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + + #endif + + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + + #endif + + #endif + + // non perturbed normal for clearcoat among others + + vec3 nonPerturbedNormal = normal; + + #ifdef OUTLINE + normal *= -1.0; + #endif + + // #include + + // COMPAT: pre-r151 + // USE_NORMALMAP_OBJECTSPACE used to be OBJECTSPACE_NORMALMAP in pre-r151 + #if defined( USE_NORMALMAP_OBJECTSPACE ) || defined( OBJECTSPACE_NORMALMAP ) + + normal = texture2D( normalMap, normalMapUv ).xyz * 2.0 - 1.0; // overrides both flatShading and attribute normals + + #ifdef FLIP_SIDED + + normal = - normal; + + #endif + + #ifdef DOUBLE_SIDED + + normal = normal * faceDirection; + + #endif + + normal = normalize( normalMatrix * normal ); + + // COMPAT: pre-r151 + // USE_NORMALMAP_TANGENTSPACE used to be TANGENTSPACE_NORMALMAP in pre-r151 + #elif defined( USE_NORMALMAP_TANGENTSPACE ) || defined( TANGENTSPACE_NORMALMAP ) + + vec3 mapN = texture2D( normalMap, normalMapUv ).xyz * 2.0 - 1.0; + mapN.xy *= normalScale; + + // COMPAT: pre-r151 + #if THREE_VRM_THREE_REVISION >= 151 || defined( USE_TANGENT ) + + normal = normalize( tbn * mapN ); + + #else + + normal = perturbNormal2Arb( uv, -vViewPosition, normal, mapN, faceDirection ); + + #endif + + #endif + + // #include + #ifdef USE_EMISSIVEMAP + vec2 emissiveMapUv = ( emissiveMapUvTransform * vec3( uv, 1 ) ).xy; + totalEmissiveRadiance *= texture2D( emissiveMap, emissiveMapUv ).rgb; + #endif + + #ifdef DEBUG_NORMAL + gl_FragColor = vec4( 0.5 + 0.5 * normal, 1.0 ); + return; + #endif + + // -- MToon: lighting -------------------------------------------------------- + // accumulation + // #include + MToonMaterial material; + + material.diffuseColor = diffuseColor.rgb; + + material.shadeColor = shadeColorFactor; + #ifdef USE_SHADEMULTIPLYTEXTURE + vec2 shadeMultiplyTextureUv = ( shadeMultiplyTextureUvTransform * vec3( uv, 1 ) ).xy; + material.shadeColor *= texture2D( shadeMultiplyTexture, shadeMultiplyTextureUv ).rgb; + #endif + + #if ( defined( USE_COLOR ) && !defined( IGNORE_VERTEX_COLOR ) ) + material.shadeColor.rgb *= vColor; + #endif + + material.shadingShift = shadingShiftFactor; + #ifdef USE_SHADINGSHIFTTEXTURE + vec2 shadingShiftTextureUv = ( shadingShiftTextureUvTransform * vec3( uv, 1 ) ).xy; + material.shadingShift += texture2D( shadingShiftTexture, shadingShiftTextureUv ).r * shadingShiftTextureScale; + #endif + + // #include + + // MToon Specific changes: + // Since we want to take shadows into account of shading instead of irradiance, + // we had to modify the codes that multiplies the results of shadowmap into color of direct lights. + + // COMPAT: pre-r156 uses a struct GeometricContext + #if THREE_VRM_THREE_REVISION >= 157 + vec3 geometryPosition = - vViewPosition; + vec3 geometryNormal = normal; + vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); + + vec3 geometryClearcoatNormal; + + #ifdef USE_CLEARCOAT + + geometryClearcoatNormal = clearcoatNormal; + + #endif + #else + GeometricContext geometry; + + geometry.position = - vViewPosition; + geometry.normal = normal; + geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); + + #ifdef USE_CLEARCOAT + + geometry.clearcoatNormal = clearcoatNormal; + + #endif + #endif + + IncidentLight directLight; + + // since these variables will be used in unrolled loop, we have to define in prior + float shadow; + + #if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + + pointLight = pointLights[ i ]; + + // COMPAT: pre-r156 uses a struct GeometricContext + #if THREE_VRM_THREE_REVISION >= 157 + getPointLightInfo( pointLight, geometryPosition, directLight ); + #else + getPointLightInfo( pointLight, geometry, directLight ); + #endif + + shadow = 1.0; + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) + pointLightShadow = pointLightShadows[ i ]; + // COMPAT: pre-r166 + // r166 introduced shadowIntensity + #if THREE_VRM_THREE_REVISION >= 166 + shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #else + shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + #endif + + // COMPAT: pre-r156 uses a struct GeometricContext + #if THREE_VRM_THREE_REVISION >= 157 + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, shadow, reflectedLight ); + #else + RE_Direct( directLight, geometry, material, shadow, reflectedLight ); + #endif + + } + #pragma unroll_loop_end + + #endif + + #if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + + SpotLight spotLight; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + + spotLight = spotLights[ i ]; + + // COMPAT: pre-r156 uses a struct GeometricContext + #if THREE_VRM_THREE_REVISION >= 157 + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #else + getSpotLightInfo( spotLight, geometry, directLight ); + #endif + + shadow = 1.0; + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + // COMPAT: pre-r166 + // r166 introduced shadowIntensity + #if THREE_VRM_THREE_REVISION >= 166 + shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0; + #else + shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0; + #endif + #endif + + // COMPAT: pre-r156 uses a struct GeometricContext + #if THREE_VRM_THREE_REVISION >= 157 + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, shadow, reflectedLight ); + #else + RE_Direct( directLight, geometry, material, shadow, reflectedLight ); + #endif + + } + #pragma unroll_loop_end + + #endif + + #if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + + directionalLight = directionalLights[ i ]; + + // COMPAT: pre-r156 uses a struct GeometricContext + #if THREE_VRM_THREE_REVISION >= 157 + getDirectionalLightInfo( directionalLight, directLight ); + #else + getDirectionalLightInfo( directionalLight, geometry, directLight ); + #endif + + shadow = 1.0; + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + // COMPAT: pre-r166 + // r166 introduced shadowIntensity + #if THREE_VRM_THREE_REVISION >= 166 + shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #else + shadow = all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + #endif + + // COMPAT: pre-r156 uses a struct GeometricContext + #if THREE_VRM_THREE_REVISION >= 157 + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, shadow, reflectedLight ); + #else + RE_Direct( directLight, geometry, material, shadow, reflectedLight ); + #endif + + } + #pragma unroll_loop_end + + #endif + + // #if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + + // RectAreaLight rectAreaLight; + + // #pragma unroll_loop_start + // for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + + // rectAreaLight = rectAreaLights[ i ]; + // RE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight ); + + // } + // #pragma unroll_loop_end + + // #endif + + #if defined( RE_IndirectDiffuse ) + + vec3 iblIrradiance = vec3( 0.0 ); + + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + + // COMPAT: pre-r156 uses a struct GeometricContext + // COMPAT: pre-r156 doesn't have a define USE_LIGHT_PROBES + #if THREE_VRM_THREE_REVISION >= 157 + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #else + irradiance += getLightProbeIrradiance( lightProbe, geometry.normal ); + #endif + + #if ( NUM_HEMI_LIGHTS > 0 ) + + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + + // COMPAT: pre-r156 uses a struct GeometricContext + #if THREE_VRM_THREE_REVISION >= 157 + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + #else + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal ); + #endif + + } + #pragma unroll_loop_end + + #endif + + #endif + + // #if defined( RE_IndirectSpecular ) + + // vec3 radiance = vec3( 0.0 ); + // vec3 clearcoatRadiance = vec3( 0.0 ); + + // #endif + + #include + #include + + // modulation + #include + + vec3 col = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + + #ifdef DEBUG_LITSHADERATE + gl_FragColor = vec4( col, diffuseColor.a ); + postCorrection(); + return; + #endif + + // -- MToon: rim lighting ----------------------------------------- + vec3 viewDir = normalize( vViewPosition ); + + #ifndef PHYSICALLY_CORRECT_LIGHTS + reflectedLight.directSpecular /= PI; + #endif + vec3 rimMix = mix( vec3( 1.0 ), reflectedLight.directSpecular, 1.0 ); + + vec3 rim = parametricRimColorFactor * pow( saturate( 1.0 - dot( viewDir, normal ) + parametricRimLiftFactor ), parametricRimFresnelPowerFactor ); + + #ifdef USE_MATCAPTEXTURE + { + vec3 x = normalize( vec3( viewDir.z, 0.0, -viewDir.x ) ); + vec3 y = cross( viewDir, x ); // guaranteed to be normalized + vec2 sphereUv = 0.5 + 0.5 * vec2( dot( x, normal ), -dot( y, normal ) ); + sphereUv = ( matcapTextureUvTransform * vec3( sphereUv, 1 ) ).xy; + vec3 matcap = texture2D( matcapTexture, sphereUv ).rgb; + rim += matcapFactor * matcap; + } + #endif + + #ifdef USE_RIMMULTIPLYTEXTURE + vec2 rimMultiplyTextureUv = ( rimMultiplyTextureUvTransform * vec3( uv, 1 ) ).xy; + rim *= texture2D( rimMultiplyTexture, rimMultiplyTextureUv ).rgb; + #endif + + col += rimMix * rim; + + // -- MToon: Emission -------------------------------------------------------- + col += totalEmissiveRadiance; + + // #include + + // -- Almost done! ----------------------------------------------------------- + #if defined( OUTLINE ) + col = outlineColorFactor.rgb * mix( vec3( 1.0 ), col, outlineLightingMixFactor ); + #endif + + #ifdef OPAQUE + diffuseColor.a = 1.0; + #endif + + gl_FragColor = vec4( col, diffuseColor.a ); + postCorrection(); +} +`,Nn={None:`none`,Normal:`normal`,LitShadeRate:`litShadeRate`,UV:`uv`},Pn={None:`none`,WorldCoordinates:`worldCoordinates`,ScreenCoordinates:`screenCoordinates`},Fn={3e3:``,3001:`srgb`};function In(e){return parseInt(ve,10)>=152?e.colorSpace:Fn[e.encoding]}var Ln=class extends b{constructor(e={}){var t;super({vertexShader:jn,fragmentShader:Mn}),this.uvAnimationScrollXSpeedFactor=0,this.uvAnimationScrollYSpeedFactor=0,this.uvAnimationRotationSpeedFactor=0,this.fog=!0,this.normalMapType=ze,this._ignoreVertexColor=!0,this._v0CompatShade=!1,this._debugMode=Nn.None,this._outlineWidthMode=Pn.None,this._isOutline=!1,e.transparentWithZWrite&&(e.depthWrite=!0),delete e.transparentWithZWrite,e.fog=!0,e.lights=!0,e.clipping=!0,this.uniforms=Ge.merge([f.common,f.normalmap,f.emissivemap,f.fog,f.lights,{litFactor:{value:new n(1,1,1)},mapUvTransform:{value:new T},colorAlpha:{value:1},normalMapUvTransform:{value:new T},shadeColorFactor:{value:new n(0,0,0)},shadeMultiplyTexture:{value:null},shadeMultiplyTextureUvTransform:{value:new T},shadingShiftFactor:{value:0},shadingShiftTexture:{value:null},shadingShiftTextureUvTransform:{value:new T},shadingShiftTextureScale:{value:1},shadingToonyFactor:{value:.9},giEqualizationFactor:{value:.9},matcapFactor:{value:new n(1,1,1)},matcapTexture:{value:null},matcapTextureUvTransform:{value:new T},parametricRimColorFactor:{value:new n(0,0,0)},rimMultiplyTexture:{value:null},rimMultiplyTextureUvTransform:{value:new T},rimLightingMixFactor:{value:1},parametricRimFresnelPowerFactor:{value:5},parametricRimLiftFactor:{value:0},emissive:{value:new n(0,0,0)},emissiveIntensity:{value:1},emissiveMapUvTransform:{value:new T},outlineWidthMultiplyTexture:{value:null},outlineWidthMultiplyTextureUvTransform:{value:new T},outlineWidthFactor:{value:0},outlineColorFactor:{value:new n(0,0,0)},outlineLightingMixFactor:{value:1},uvAnimationMaskTexture:{value:null},uvAnimationMaskTextureUvTransform:{value:new T},uvAnimationScrollXOffset:{value:0},uvAnimationScrollYOffset:{value:0},uvAnimationRotationPhase:{value:0}},(t=e.uniforms)??{}]),this.setValues(e),this._uploadUniformsWorkaround(),this.customProgramCacheKey=()=>[...Object.entries(this._generateDefines()).map(([e,t])=>`${e}:${t}`),this.matcapTexture?`matcapTextureColorSpace:${In(this.matcapTexture)}`:``,this.shadeMultiplyTexture?`shadeMultiplyTextureColorSpace:${In(this.shadeMultiplyTexture)}`:``,this.rimMultiplyTexture?`rimMultiplyTextureColorSpace:${In(this.rimMultiplyTexture)}`:``].join(`,`),this.onBeforeCompile=e=>{let t=parseInt(ve,10),n=Object.entries(Dn(Dn({},this._generateDefines()),this.defines)).filter(([e,t])=>!!t).map(([e,t])=>`#define ${e} ${t}`).join(` +`)+` +`;e.vertexShader=n+e.vertexShader,e.fragmentShader=n+e.fragmentShader,t<154&&(e.fragmentShader=e.fragmentShader.replace(`#include `,`#include `))}}get color(){return this.uniforms.litFactor.value}set color(e){this.uniforms.litFactor.value=e}get map(){return this.uniforms.map.value}set map(e){this.uniforms.map.value=e}get normalMap(){return this.uniforms.normalMap.value}set normalMap(e){this.uniforms.normalMap.value=e}get normalScale(){return this.uniforms.normalScale.value}set normalScale(e){this.uniforms.normalScale.value=e}get emissive(){return this.uniforms.emissive.value}set emissive(e){this.uniforms.emissive.value=e}get emissiveIntensity(){return this.uniforms.emissiveIntensity.value}set emissiveIntensity(e){this.uniforms.emissiveIntensity.value=e}get emissiveMap(){return this.uniforms.emissiveMap.value}set emissiveMap(e){this.uniforms.emissiveMap.value=e}get shadeColorFactor(){return this.uniforms.shadeColorFactor.value}set shadeColorFactor(e){this.uniforms.shadeColorFactor.value=e}get shadeMultiplyTexture(){return this.uniforms.shadeMultiplyTexture.value}set shadeMultiplyTexture(e){this.uniforms.shadeMultiplyTexture.value=e}get shadingShiftFactor(){return this.uniforms.shadingShiftFactor.value}set shadingShiftFactor(e){this.uniforms.shadingShiftFactor.value=e}get shadingShiftTexture(){return this.uniforms.shadingShiftTexture.value}set shadingShiftTexture(e){this.uniforms.shadingShiftTexture.value=e}get shadingShiftTextureScale(){return this.uniforms.shadingShiftTextureScale.value}set shadingShiftTextureScale(e){this.uniforms.shadingShiftTextureScale.value=e}get shadingToonyFactor(){return this.uniforms.shadingToonyFactor.value}set shadingToonyFactor(e){this.uniforms.shadingToonyFactor.value=e}get giEqualizationFactor(){return this.uniforms.giEqualizationFactor.value}set giEqualizationFactor(e){this.uniforms.giEqualizationFactor.value=e}get matcapFactor(){return this.uniforms.matcapFactor.value}set matcapFactor(e){this.uniforms.matcapFactor.value=e}get matcapTexture(){return this.uniforms.matcapTexture.value}set matcapTexture(e){this.uniforms.matcapTexture.value=e}get parametricRimColorFactor(){return this.uniforms.parametricRimColorFactor.value}set parametricRimColorFactor(e){this.uniforms.parametricRimColorFactor.value=e}get rimMultiplyTexture(){return this.uniforms.rimMultiplyTexture.value}set rimMultiplyTexture(e){this.uniforms.rimMultiplyTexture.value=e}get rimLightingMixFactor(){return this.uniforms.rimLightingMixFactor.value}set rimLightingMixFactor(e){this.uniforms.rimLightingMixFactor.value=e}get parametricRimFresnelPowerFactor(){return this.uniforms.parametricRimFresnelPowerFactor.value}set parametricRimFresnelPowerFactor(e){this.uniforms.parametricRimFresnelPowerFactor.value=e}get parametricRimLiftFactor(){return this.uniforms.parametricRimLiftFactor.value}set parametricRimLiftFactor(e){this.uniforms.parametricRimLiftFactor.value=e}get outlineWidthMultiplyTexture(){return this.uniforms.outlineWidthMultiplyTexture.value}set outlineWidthMultiplyTexture(e){this.uniforms.outlineWidthMultiplyTexture.value=e}get outlineWidthFactor(){return this.uniforms.outlineWidthFactor.value}set outlineWidthFactor(e){this.uniforms.outlineWidthFactor.value=e}get outlineColorFactor(){return this.uniforms.outlineColorFactor.value}set outlineColorFactor(e){this.uniforms.outlineColorFactor.value=e}get outlineLightingMixFactor(){return this.uniforms.outlineLightingMixFactor.value}set outlineLightingMixFactor(e){this.uniforms.outlineLightingMixFactor.value=e}get uvAnimationMaskTexture(){return this.uniforms.uvAnimationMaskTexture.value}set uvAnimationMaskTexture(e){this.uniforms.uvAnimationMaskTexture.value=e}get uvAnimationScrollXOffset(){return this.uniforms.uvAnimationScrollXOffset.value}set uvAnimationScrollXOffset(e){this.uniforms.uvAnimationScrollXOffset.value=e}get uvAnimationScrollYOffset(){return this.uniforms.uvAnimationScrollYOffset.value}set uvAnimationScrollYOffset(e){this.uniforms.uvAnimationScrollYOffset.value=e}get uvAnimationRotationPhase(){return this.uniforms.uvAnimationRotationPhase.value}set uvAnimationRotationPhase(e){this.uniforms.uvAnimationRotationPhase.value=e}get ignoreVertexColor(){return this._ignoreVertexColor}set ignoreVertexColor(e){this._ignoreVertexColor=e,this.needsUpdate=!0}get v0CompatShade(){return this._v0CompatShade}set v0CompatShade(e){this._v0CompatShade=e,this.needsUpdate=!0}get debugMode(){return this._debugMode}set debugMode(e){this._debugMode=e,this.needsUpdate=!0}get outlineWidthMode(){return this._outlineWidthMode}set outlineWidthMode(e){this._outlineWidthMode=e,this.needsUpdate=!0}get isOutline(){return this._isOutline}set isOutline(e){this._isOutline=e,this.needsUpdate=!0}get isMToonMaterial(){return!0}update(e){this._uploadUniformsWorkaround(),this._updateUVAnimation(e)}copy(e){return super.copy(e),this.map=e.map,this.normalMap=e.normalMap,this.emissiveMap=e.emissiveMap,this.shadeMultiplyTexture=e.shadeMultiplyTexture,this.shadingShiftTexture=e.shadingShiftTexture,this.matcapTexture=e.matcapTexture,this.rimMultiplyTexture=e.rimMultiplyTexture,this.outlineWidthMultiplyTexture=e.outlineWidthMultiplyTexture,this.uvAnimationMaskTexture=e.uvAnimationMaskTexture,this.normalMapType=e.normalMapType,this.uvAnimationScrollXSpeedFactor=e.uvAnimationScrollXSpeedFactor,this.uvAnimationScrollYSpeedFactor=e.uvAnimationScrollYSpeedFactor,this.uvAnimationRotationSpeedFactor=e.uvAnimationRotationSpeedFactor,this.ignoreVertexColor=e.ignoreVertexColor,this.v0CompatShade=e.v0CompatShade,this.debugMode=e.debugMode,this.outlineWidthMode=e.outlineWidthMode,this.isOutline=e.isOutline,this.needsUpdate=!0,this}_updateUVAnimation(e){this.uniforms.uvAnimationScrollXOffset.value+=e*this.uvAnimationScrollXSpeedFactor,this.uniforms.uvAnimationScrollYOffset.value+=e*this.uvAnimationScrollYSpeedFactor,this.uniforms.uvAnimationRotationPhase.value+=e*this.uvAnimationRotationSpeedFactor,this.uniforms.alphaTest.value=this.alphaTest,this.uniformsNeedUpdate=!0}_uploadUniformsWorkaround(){this.uniforms.opacity.value=this.opacity,this._updateTextureMatrix(this.uniforms.map,this.uniforms.mapUvTransform),this._updateTextureMatrix(this.uniforms.normalMap,this.uniforms.normalMapUvTransform),this._updateTextureMatrix(this.uniforms.emissiveMap,this.uniforms.emissiveMapUvTransform),this._updateTextureMatrix(this.uniforms.shadeMultiplyTexture,this.uniforms.shadeMultiplyTextureUvTransform),this._updateTextureMatrix(this.uniforms.shadingShiftTexture,this.uniforms.shadingShiftTextureUvTransform),this._updateTextureMatrix(this.uniforms.matcapTexture,this.uniforms.matcapTextureUvTransform),this._updateTextureMatrix(this.uniforms.rimMultiplyTexture,this.uniforms.rimMultiplyTextureUvTransform),this._updateTextureMatrix(this.uniforms.outlineWidthMultiplyTexture,this.uniforms.outlineWidthMultiplyTextureUvTransform),this._updateTextureMatrix(this.uniforms.uvAnimationMaskTexture,this.uniforms.uvAnimationMaskTextureUvTransform),this.uniformsNeedUpdate=!0}_generateDefines(){let e=parseInt(ve,10),t=this.outlineWidthMultiplyTexture!==null,n=this.map!==null||this.normalMap!==null||this.emissiveMap!==null||this.shadeMultiplyTexture!==null||this.shadingShiftTexture!==null||this.rimMultiplyTexture!==null||this.uvAnimationMaskTexture!==null;return{THREE_VRM_THREE_REVISION:e,OUTLINE:this._isOutline,MTOON_USE_UV:t||n,MTOON_UVS_VERTEX_ONLY:t&&!n,V0_COMPAT_SHADE:this._v0CompatShade,USE_SHADEMULTIPLYTEXTURE:this.shadeMultiplyTexture!==null,USE_SHADINGSHIFTTEXTURE:this.shadingShiftTexture!==null,USE_MATCAPTEXTURE:this.matcapTexture!==null,USE_RIMMULTIPLYTEXTURE:this.rimMultiplyTexture!==null,USE_OUTLINEWIDTHMULTIPLYTEXTURE:this._isOutline&&this.outlineWidthMultiplyTexture!==null,USE_UVANIMATIONMASKTEXTURE:this.uvAnimationMaskTexture!==null,IGNORE_VERTEX_COLOR:this._ignoreVertexColor===!0,DEBUG_NORMAL:this._debugMode===`normal`,DEBUG_LITSHADERATE:this._debugMode===`litShadeRate`,DEBUG_UV:this._debugMode===`uv`,OUTLINE_WIDTH_SCREEN:this._isOutline&&this._outlineWidthMode===Pn.ScreenCoordinates}}_updateTextureMatrix(e,t){e.value&&(e.value.matrixAutoUpdate&&e.value.updateMatrix(),t.value.copy(e.value.matrix))}},Rn=new Set([`1.0`,`1.0-beta`]),zn=class e{get name(){return e.EXTENSION_NAME}constructor(e,t={}){var n,r,i,a;this.parser=e,this.materialType=(n=t.materialType)??Ln,this.renderOrderOffset=(r=t.renderOrderOffset)??0,this.v0CompatShade=(i=t.v0CompatShade)??!1,this.debugMode=(a=t.debugMode)??`none`,this._mToonMaterialSet=new Set}beforeRoot(){return V(this,null,function*(){this._removeUnlitExtensionIfMToonExists()})}afterRoot(e){return V(this,null,function*(){e.userData.vrmMToonMaterials=Array.from(this._mToonMaterialSet)})}getMaterialType(e){let t=this._getMToonExtension(e);return t?this.materialType:null}extendMaterialParams(e,t){let n=this._getMToonExtension(e);return n?this._extendMaterialParams(n,t):null}loadMesh(e){return V(this,null,function*(){var t;let n=this.parser,r=n.json,i=(t=r.meshes)?.[e];if(i==null)throw Error(`MToonMaterialLoaderPlugin: Attempt to use meshes[${e}] of glTF but the mesh doesn't exist`);let a=i.primitives,o=yield n.loadMesh(e);if(a.length===1){let e=o,t=a[0].material;t!=null&&this._setupPrimitive(e,t)}else{let e=o;for(let t=0;t{var n;let r=this._getMToonExtension(t);r&&(n=e.extensions)?.KHR_materials_unlit&&delete e.extensions.KHR_materials_unlit})}_getMToonExtension(t){var n,r;let i=this.parser,a=i.json,o=(n=a.materials)?.[t];if(o==null){console.warn(`MToonMaterialLoaderPlugin: Attempt to use materials[${t}] of glTF but the material doesn't exist`);return}let s=(r=o.extensions)?.[e.EXTENSION_NAME];if(s==null)return;let c=s.specVersion;if(!Rn.has(c)){console.warn(`MToonMaterialLoaderPlugin: Unknown ${e.EXTENSION_NAME} specVersion "${c}"`);return}return s}_extendMaterialParams(e,t){return V(this,null,function*(){var n;delete t.metalness,delete t.roughness;let r=new An(this.parser,t);r.assignPrimitive(`transparentWithZWrite`,e.transparentWithZWrite),r.assignColor(`shadeColorFactor`,e.shadeColorFactor),r.assignTexture(`shadeMultiplyTexture`,e.shadeMultiplyTexture,!0),r.assignPrimitive(`shadingShiftFactor`,e.shadingShiftFactor),r.assignTexture(`shadingShiftTexture`,e.shadingShiftTexture,!0),r.assignPrimitive(`shadingShiftTextureScale`,(n=e.shadingShiftTexture)?.scale),r.assignPrimitive(`shadingToonyFactor`,e.shadingToonyFactor),r.assignPrimitive(`giEqualizationFactor`,e.giEqualizationFactor),r.assignColor(`matcapFactor`,e.matcapFactor),r.assignTexture(`matcapTexture`,e.matcapTexture,!0),r.assignColor(`parametricRimColorFactor`,e.parametricRimColorFactor),r.assignTexture(`rimMultiplyTexture`,e.rimMultiplyTexture,!0),r.assignPrimitive(`rimLightingMixFactor`,e.rimLightingMixFactor),r.assignPrimitive(`parametricRimFresnelPowerFactor`,e.parametricRimFresnelPowerFactor),r.assignPrimitive(`parametricRimLiftFactor`,e.parametricRimLiftFactor),r.assignPrimitive(`outlineWidthMode`,e.outlineWidthMode),r.assignPrimitive(`outlineWidthFactor`,e.outlineWidthFactor),r.assignTexture(`outlineWidthMultiplyTexture`,e.outlineWidthMultiplyTexture,!1),r.assignColor(`outlineColorFactor`,e.outlineColorFactor),r.assignPrimitive(`outlineLightingMixFactor`,e.outlineLightingMixFactor),r.assignTexture(`uvAnimationMaskTexture`,e.uvAnimationMaskTexture,!1),r.assignPrimitive(`uvAnimationScrollXSpeedFactor`,e.uvAnimationScrollXSpeedFactor),r.assignPrimitive(`uvAnimationScrollYSpeedFactor`,e.uvAnimationScrollYSpeedFactor),r.assignPrimitive(`uvAnimationRotationSpeedFactor`,e.uvAnimationRotationSpeedFactor),r.assignPrimitive(`v0CompatShade`,this.v0CompatShade),r.assignPrimitive(`debugMode`,this.debugMode),yield r.pending})}_setupPrimitive(e,t){let n=this._getMToonExtension(t);if(n){let t=this._parseRenderOrder(n);e.renderOrder=t+this.renderOrderOffset,this._generateOutline(e),this._addToMaterialSet(e);return}}_shouldGenerateOutline(e){return typeof e.outlineWidthMode==`string`&&e.outlineWidthMode!==`none`&&typeof e.outlineWidthFactor==`number`&&e.outlineWidthFactor>0}_generateOutline(e){let t=e.material;if(!(t instanceof ke)||!this._shouldGenerateOutline(t))return;e.material=[t];let n=t.clone();n.name+=` (Outline)`,n.isOutline=!0,n.side=h,e.material.push(n);let r=e.geometry,i=r.index?r.index.count:r.attributes.position.count/3;r.addGroup(0,i,0),r.addGroup(0,i,1)}_addToMaterialSet(e){let t=e.material,n=new Set;Array.isArray(t)?t.forEach(e=>n.add(e)):n.add(t);for(let e of n)this._mToonMaterialSet.add(e)}_parseRenderOrder(e){var t;let n=e.transparentWithZWrite;return(n?0:19)+((t=e.renderQueueOffsetNumber)??0)}};zn.EXTENSION_NAME=`VRMC_materials_mtoon`;var Bn=zn,Vn=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Hn=class e{get name(){return e.EXTENSION_NAME}constructor(e){this.parser=e}extendMaterialParams(e,t){return Vn(this,null,function*(){let n=this._getHDREmissiveMultiplierExtension(e);if(n==null)return;console.warn("VRMMaterialsHDREmissiveMultiplierLoaderPlugin: `VRMC_materials_hdr_emissiveMultiplier` is archived. Use `KHR_materials_emissive_strength` instead.");let r=n.emissiveMultiplier;t.emissiveIntensity=r})}_getHDREmissiveMultiplierExtension(t){var n,r;let i=this.parser,a=i.json,o=(n=a.materials)?.[t];if(o==null){console.warn(`VRMMaterialsHDREmissiveMultiplierLoaderPlugin: Attempt to use materials[${t}] of glTF but the material doesn't exist`);return}let s=(r=o.extensions)?.[e.EXTENSION_NAME];if(s!=null)return s}};Hn.EXTENSION_NAME=`VRMC_materials_hdr_emissiveMultiplier`;var Un=Hn,Wn=Object.defineProperty,Gn=Object.defineProperties,Kn=Object.getOwnPropertyDescriptors,qn=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable,Xn=(e,t,n)=>t in e?Wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H=(e,t)=>{for(var n in t||={})Jn.call(t,n)&&Xn(e,n,t[n]);if(qn)for(var n of qn(t))Yn.call(t,n)&&Xn(e,n,t[n]);return e},Zn=(e,t)=>Gn(e,Kn(t)),Qn=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});function $n(e){return e**2.2}var er=class{get name(){return`VRMMaterialsV0CompatPlugin`}constructor(e){var t;this.parser=e,this._renderQueueMapTransparent=new Map,this._renderQueueMapTransparentZWrite=new Map;let n=this.parser.json;n.extensionsUsed=(t=n.extensionsUsed)??[],n.extensionsUsed.indexOf(`KHR_texture_transform`)===-1&&n.extensionsUsed.push(`KHR_texture_transform`)}beforeRoot(){return Qn(this,null,function*(){var e;let t=this.parser.json,n=(e=t.extensions)?.VRM,r=n?.materialProperties;r&&(this._populateRenderQueueMap(r),r.forEach((e,n)=>{var r,i;let a=(r=t.materials)?.[n];if(a==null){console.warn(`VRMMaterialsV0CompatPlugin: Attempt to use materials[${n}] of glTF but the material doesn't exist`);return}if(e.shader===`VRM/MToon`){let r=this._parseV0MToonProperties(e,a);t.materials[n]=r}else if((i=e.shader)?.startsWith(`VRM/Unlit`)){let r=this._parseV0UnlitProperties(e,a);t.materials[n]=r}else e.shader===`VRM_USE_GLTFSHADER`||console.warn(`VRMMaterialsV0CompatPlugin: Unknown shader: ${e.shader}`)}))})}_parseV0MToonProperties(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,x,de,fe,pe,me,he,ge,S,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,C,De,Oe,ke,T,E,Ae;let D=(r=(n=e.keywordMap)?._ALPHABLEND_ON)??!1,O=(i=e.floatProperties)?._ZWrite===1,je=O&&D,Me=this._v0ParseRenderQueue(e),Ne=(o=(a=e.keywordMap)?._ALPHATEST_ON)??!1,Pe=D?`BLEND`:Ne?`MASK`:`OPAQUE`,Fe=Ne?(c=(s=e.floatProperties)?._Cutoff)??.5:void 0,Ie=(u=(l=e.floatProperties)?._CullMode)??2,Le=Ie===0,k=this._portTextureTransform(e),Re=((f=(d=e.vectorProperties)?._Color)??[1,1,1,1]).map((e,t)=>t===3?e:$n(e)),ze=(p=e.textureProperties)?._MainTex,Be=ze==null?void 0:{index:ze,extensions:H({},k)},Ve=(h=(m=e.floatProperties)?._BumpScale)??1,He=(g=e.textureProperties)?._BumpMap,Ue=He==null?void 0:{index:He,scale:Ve,extensions:H({},k)},We=((v=(_=e.vectorProperties)?._EmissionColor)??[0,0,0,1]).map($n),Ge=(y=e.textureProperties)?._EmissionMap,A=Ge==null?void 0:{index:Ge,extensions:H({},k)},j=((ee=(b=e.vectorProperties)?._ShadeColor)??[.97,.81,.86,1]).map($n),Ke=(te=e.textureProperties)?._ShadeTexture,M=Ke==null?void 0:{index:Ke,extensions:H({},k)},qe=(re=(ne=e.floatProperties)?._ShadeShift)??0,N=(ae=(ie=e.floatProperties)?._ShadeToony)??.9;N=w.lerp(N,1,.5+.5*qe),qe=-qe-(1-N);let P=(se=(oe=e.floatProperties)?._IndirectLightIntensity)??.1,Je=P?1-P:void 0,Ye=(ce=e.textureProperties)?._SphereAdd,Xe=Ye==null?void 0:[1,1,1],F=Ye==null?void 0:{index:Ye},Ze=(ue=(le=e.floatProperties)?._RimLightingMix)??0,Qe=(x=e.textureProperties)?._RimTexture,$e=Qe==null?void 0:{index:Qe,extensions:H({},k)},et=((fe=(de=e.vectorProperties)?._RimColor)??[0,0,0,1]).map($n),tt=(me=(pe=e.floatProperties)?._RimFresnelPower)??1,nt=(ge=(he=e.floatProperties)?._RimLift)??0,rt=[`none`,`worldCoordinates`,`screenCoordinates`][(_e=(S=e.floatProperties)?._OutlineWidthMode)??0],I=(ye=(ve=e.floatProperties)?._OutlineWidth)??0;I=.01*I;let it=(be=e.textureProperties)?._OutlineWidthTexture,at=it==null?void 0:{index:it,extensions:H({},k)},ot=((Se=(xe=e.vectorProperties)?._OutlineColor)??[0,0,0]).map($n),st=(we=(Ce=e.floatProperties)?._OutlineColorMode)??0,ct=st===1?(Ee=(Te=e.floatProperties)?._OutlineLightingMix)??1:0,lt=(C=e.textureProperties)?._UvAnimMaskTexture,ut=lt==null?void 0:{index:lt,extensions:H({},k)},dt=(Oe=(De=e.floatProperties)?._UvAnimScrollX)??0,ft=(T=(ke=e.floatProperties)?._UvAnimScrollY)??0;ft!=null&&(ft=-ft);let pt=(Ae=(E=e.floatProperties)?._UvAnimRotation)??0,mt={specVersion:`1.0`,transparentWithZWrite:je,renderQueueOffsetNumber:Me,shadeColorFactor:j,shadeMultiplyTexture:M,shadingShiftFactor:qe,shadingToonyFactor:N,giEqualizationFactor:Je,matcapFactor:Xe,matcapTexture:F,rimLightingMixFactor:Ze,rimMultiplyTexture:$e,parametricRimColorFactor:et,parametricRimFresnelPowerFactor:tt,parametricRimLiftFactor:nt,outlineWidthMode:rt,outlineWidthFactor:I,outlineWidthMultiplyTexture:at,outlineColorFactor:ot,outlineLightingMixFactor:ct,uvAnimationMaskTexture:ut,uvAnimationScrollXSpeedFactor:dt,uvAnimationScrollYSpeedFactor:ft,uvAnimationRotationSpeedFactor:pt};return Zn(H({},t),{pbrMetallicRoughness:{baseColorFactor:Re,baseColorTexture:Be},normalTexture:Ue,emissiveTexture:A,emissiveFactor:We,alphaMode:Pe,alphaCutoff:Fe,doubleSided:Le,extensions:{VRMC_materials_mtoon:mt}})}_parseV0UnlitProperties(e,t){var n,r,i,a,o;let s=e.shader===`VRM/UnlitTransparentZWrite`,c=e.shader===`VRM/UnlitTransparent`||s,l=this._v0ParseRenderQueue(e),u=e.shader===`VRM/UnlitCutout`,d=c?`BLEND`:u?`MASK`:`OPAQUE`,f=u?(r=(n=e.floatProperties)?._Cutoff)??.5:void 0,p=this._portTextureTransform(e),m=((a=(i=e.vectorProperties)?._Color)??[1,1,1,1]).map($n),h=(o=e.textureProperties)?._MainTex,g=h==null?void 0:{index:h,extensions:H({},p)},_={specVersion:`1.0`,transparentWithZWrite:s,renderQueueOffsetNumber:l,shadeColorFactor:m,shadeMultiplyTexture:g};return Zn(H({},t),{pbrMetallicRoughness:{baseColorFactor:m,baseColorTexture:g},alphaMode:d,alphaCutoff:f,extensions:{VRMC_materials_mtoon:_}})}_portTextureTransform(e){var t,n,r,i,a;let o=(t=e.vectorProperties)?._MainTex;if(o==null)return{};let s=[(n=o?.[0])??0,(r=o?.[1])??0],c=[(i=o?.[2])??1,(a=o?.[3])??1];return s[1]=1-c[1]-s[1],{KHR_texture_transform:{offset:s,scale:c}}}_v0ParseRenderQueue(e){var t,n;let r=e.shader===`VRM/UnlitTransparentZWrite`,i=(t=e.keywordMap)?._ALPHABLEND_ON!=null||e.shader===`VRM/UnlitTransparent`||r,a=(n=e.floatProperties)?._ZWrite===1||r,o=0;if(i){let t=e.renderQueue;t!=null&&(o=a?this._renderQueueMapTransparentZWrite.get(t):this._renderQueueMapTransparent.get(t))}return o}_populateRenderQueueMap(e){let t=new Set,n=new Set;e.forEach(e=>{var r,i;let a=e.shader===`VRM/UnlitTransparentZWrite`,o=(r=e.keywordMap)?._ALPHABLEND_ON!=null||e.shader===`VRM/UnlitTransparent`||a,s=(i=e.floatProperties)?._ZWrite===1||a;if(o){let r=e.renderQueue;r!=null&&(s?n.add(r):t.add(r))}}),t.size>10&&console.warn(`VRMMaterialsV0CompatPlugin: This VRM uses ${t.size} render queues for Transparent materials while VRM 1.0 only supports up to 10 render queues. The model might not be rendered correctly.`),n.size>10&&console.warn(`VRMMaterialsV0CompatPlugin: This VRM uses ${n.size} render queues for TransparentZWrite materials while VRM 1.0 only supports up to 10 render queues. The model might not be rendered correctly.`),Array.from(t).sort().forEach((e,n)=>{let r=Math.min(Math.max(n-t.size+1,-9),0);this._renderQueueMapTransparent.set(e,r)}),Array.from(n).sort().forEach((e,t)=>{let n=Math.min(Math.max(t,0),9);this._renderQueueMapTransparentZWrite.set(e,n)})}},tr=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),U=new j,nr=class extends d{constructor(e){super(),this._attrPosition=new v(new Float32Array([0,0,0,0,0,0]),3),this._attrPosition.setUsage(o);let t=new y;t.setAttribute(`position`,this._attrPosition);let n=new xe({color:16711935,depthTest:!1,depthWrite:!1});this._line=new le(t,n),this.add(this._line),this.constraint=e}updateMatrixWorld(e){U.setFromMatrixPosition(this.constraint.destination.matrixWorld),this._attrPosition.setXYZ(0,U.x,U.y,U.z),this.constraint.source&&U.setFromMatrixPosition(this.constraint.source.matrixWorld),this._attrPosition.setXYZ(1,U.x,U.y,U.z),this._attrPosition.needsUpdate=!0,super.updateMatrixWorld(e)}};function rr(e,t){return t.set(e.elements[12],e.elements[13],e.elements[14])}var ir=new j,ar=new j;function or(e,t){return e.decompose(ir,t,ar),t}function sr(e){return e.invert?e.invert():e.inverse(),e}var cr=class{constructor(e,t){this.destination=e,this.source=t,this.weight=1}},lr=new j,ur=new j,dr=new j,fr=new S,pr=new S,mr=new S,hr=class extends cr{get aimAxis(){return this._aimAxis}set aimAxis(e){this._aimAxis=e,this._v3AimAxis.set(e===`PositiveX`?1:e===`NegativeX`?-1:0,e===`PositiveY`?1:e===`NegativeY`?-1:0,e===`PositiveZ`?1:e===`NegativeZ`?-1:0)}get dependencies(){let e=new Set([this.source]);return this.destination.parent&&e.add(this.destination.parent),e}constructor(e,t){super(e,t),this._aimAxis=`PositiveX`,this._v3AimAxis=new j(1,0,0),this._dstRestQuat=new S}setInitState(){this._dstRestQuat.copy(this.destination.quaternion)}update(){this.destination.updateWorldMatrix(!0,!1),this.source.updateWorldMatrix(!0,!1);let e=fr.identity(),t=pr.identity();this.destination.parent&&(or(this.destination.parent.matrixWorld,e),sr(t.copy(e)));let n=lr.copy(this._v3AimAxis).applyQuaternion(this._dstRestQuat).applyQuaternion(e),r=rr(this.source.matrixWorld,ur).sub(rr(this.destination.matrixWorld,dr)).normalize(),i=mr.setFromUnitVectors(n,r).premultiply(t).multiply(e).multiply(this._dstRestQuat);this.destination.quaternion.copy(this._dstRestQuat).slerp(i,this.weight)}};function gr(e,t){let n=[e],r=e.parent;for(;r!==null;)n.unshift(r),r=r.parent;n.forEach(e=>{t(e)})}var _r=class{constructor(){this._constraints=new Set,this._objectConstraintsMap=new Map}get constraints(){return this._constraints}addConstraint(e){this._constraints.add(e);let t=this._objectConstraintsMap.get(e.destination);t??(t=new Set,this._objectConstraintsMap.set(e.destination,t)),t.add(e)}deleteConstraint(e){this._constraints.delete(e);let t=this._objectConstraintsMap.get(e.destination);t.delete(e)}setInitState(){let e=new Set,t=new Set;for(let n of this._constraints)this._processConstraint(n,e,t,e=>e.setInitState())}update(){let e=new Set,t=new Set;for(let n of this._constraints)this._processConstraint(n,e,t,e=>e.update())}_processConstraint(e,t,n,r){if(n.has(e))return;if(t.has(e))throw Error(`VRMNodeConstraintManager: Circular dependency detected while updating constraints`);t.add(e);let i=e.dependencies;for(let e of i)gr(e,e=>{let i=this._objectConstraintsMap.get(e);if(i)for(let e of i)this._processConstraint(e,t,n,r)});r(e),n.add(e)}},vr=new S,yr=new S,br=class extends cr{get dependencies(){return new Set([this.source])}constructor(e,t){super(e,t),this._dstRestQuat=new S,this._invSrcRestQuat=new S}setInitState(){this._dstRestQuat.copy(this.destination.quaternion),sr(this._invSrcRestQuat.copy(this.source.quaternion))}update(){let e=vr.copy(this._invSrcRestQuat).multiply(this.source.quaternion),t=yr.copy(this._dstRestQuat).multiply(e);this.destination.quaternion.copy(this._dstRestQuat).slerp(t,this.weight)}},xr=new j,Sr=new S,Cr=new S,wr=class extends cr{get rollAxis(){return this._rollAxis}set rollAxis(e){this._rollAxis=e,this._v3RollAxis.set(e===`X`?1:0,e===`Y`?1:0,e===`Z`?1:0)}get dependencies(){return new Set([this.source])}constructor(e,t){super(e,t),this._rollAxis=`X`,this._v3RollAxis=new j(1,0,0),this._dstRestQuat=new S,this._invDstRestQuat=new S,this._invSrcRestQuatMulDstRestQuat=new S}setInitState(){this._dstRestQuat.copy(this.destination.quaternion),sr(this._invDstRestQuat.copy(this._dstRestQuat)),sr(this._invSrcRestQuatMulDstRestQuat.copy(this.source.quaternion)).multiply(this._dstRestQuat)}update(){let e=Sr.copy(this._invDstRestQuat).multiply(this.source.quaternion).multiply(this._invSrcRestQuatMulDstRestQuat),t=xr.copy(this._v3RollAxis).applyQuaternion(e),n=Cr.setFromUnitVectors(t,this._v3RollAxis),r=n.premultiply(this._dstRestQuat).multiply(e);this.destination.quaternion.copy(this._dstRestQuat).slerp(r,this.weight)}},Tr=new Set([`1.0`,`1.0-beta`]),Er=class e{get name(){return e.EXTENSION_NAME}constructor(e,t){this.parser=e,this.helperRoot=t?.helperRoot}afterRoot(e){return tr(this,null,function*(){e.userData.vrmNodeConstraintManager=yield this._import(e)})}_import(t){return tr(this,null,function*(){var n;let r=this.parser.json,i=(n=r.extensionsUsed)?.indexOf(e.EXTENSION_NAME)!==-1;if(!i)return null;let a=new _r,o=yield this.parser.getDependencies(`node`);return o.forEach((t,n)=>{var i;let s=r.nodes[n],c=(i=s?.extensions)?.[e.EXTENSION_NAME];if(c==null)return;let l=c.specVersion;if(!Tr.has(l)){console.warn(`VRMNodeConstraintLoaderPlugin: Unknown ${e.EXTENSION_NAME} specVersion "${l}"`);return}let u=c.constraint;if(u.roll!=null){let e=this._importRollConstraint(t,o,u.roll);a.addConstraint(e)}else if(u.aim!=null){let e=this._importAimConstraint(t,o,u.aim);a.addConstraint(e)}else if(u.rotation!=null){let e=this._importRotationConstraint(t,o,u.rotation);a.addConstraint(e)}}),t.scene.updateMatrixWorld(),a.setInitState(),a})}_importRollConstraint(e,t,n){let{source:r,rollAxis:i,weight:a}=n,o=t[r],s=new wr(e,o);if(i!=null&&(s.rollAxis=i),a!=null&&(s.weight=a),this.helperRoot){let e=new nr(s);this.helperRoot.add(e)}return s}_importAimConstraint(e,t,n){let{source:r,aimAxis:i,weight:a}=n,o=t[r],s=new hr(e,o);if(i!=null&&(s.aimAxis=i),a!=null&&(s.weight=a),this.helperRoot){let e=new nr(s);this.helperRoot.add(e)}return s}_importRotationConstraint(e,t,n){let{source:r,weight:i}=n,a=t[r],o=new br(e,a);if(i!=null&&(o.weight=i),this.helperRoot){let e=new nr(o);this.helperRoot.add(e)}return o}};Er.EXTENSION_NAME=`VRMC_node_constraint`;var Dr=Er,Or=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),kr=class{},Ar=new j,jr=new j,Mr=class extends kr{get type(){return`capsule`}constructor(e){var t,n,r,i;super(),this.offset=(t=e?.offset)??new j(0,0,0),this.tail=(n=e?.tail)??new j(0,0,0),this.radius=(r=e?.radius)??0,this.inside=(i=e?.inside)??!1}calculateCollision(e,t,n,r){Ar.setFromMatrixPosition(e),jr.subVectors(this.tail,this.offset).applyMatrix4(e),jr.sub(Ar);let i=jr.lengthSq();r.copy(t).sub(Ar);let a=jr.dot(r);a<=0||(i<=a||jr.multiplyScalar(a/i),r.sub(jr));let o=r.length(),s=this.inside?this.radius-n-o:o-n-this.radius;return s<0&&(r.multiplyScalar(1/o),this.inside&&r.negate()),s}},Nr=new j,Pr=new T,Fr=class extends kr{get type(){return`plane`}constructor(e){var t,n;super(),this.offset=(t=e?.offset)??new j(0,0,0),this.normal=(n=e?.normal)??new j(0,0,1)}calculateCollision(e,t,n,r){r.setFromMatrixPosition(e),r.negate().add(t),Pr.getNormalMatrix(e),Nr.copy(this.normal).applyNormalMatrix(Pr).normalize();let i=r.dot(Nr)-n;return r.copy(Nr),i}},Ir=new j,Lr=class extends kr{get type(){return`sphere`}constructor(e){var t,n,r;super(),this.offset=(t=e?.offset)??new j(0,0,0),this.radius=(n=e?.radius)??0,this.inside=(r=e?.inside)??!1}calculateCollision(e,t,n,r){r.subVectors(t,Ir.setFromMatrixPosition(e));let i=r.length(),a=this.inside?this.radius-n-i:i-n-this.radius;return a<0&&(r.multiplyScalar(1/i),this.inside&&r.negate()),a}},W=new j,Rr=class extends y{constructor(e){super(),this.worldScale=1,this._currentRadius=0,this._currentOffset=new j,this._currentTail=new j,this._shape=e,this._attrPos=new v(new Float32Array(396),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new v(new Uint16Array(264),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1,t=this._shape.radius/this.worldScale;this._currentRadius!==t&&(this._currentRadius=t,e=!0),this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),e=!0);let n=W.copy(this._shape.tail).divideScalar(this.worldScale);this._currentTail.distanceToSquared(n)>1e-10&&(this._currentTail.copy(n),e=!0),e&&this._buildPosition()}_buildPosition(){W.copy(this._currentTail).sub(this._currentOffset);let e=W.length()/this._currentRadius;for(let t=0;t<=16;t++){let n=t/16*Math.PI;this._attrPos.setXYZ(t,-Math.sin(n),-Math.cos(n),0),this._attrPos.setXYZ(17+t,e+Math.sin(n),Math.cos(n),0),this._attrPos.setXYZ(34+t,-Math.sin(n),0,-Math.cos(n)),this._attrPos.setXYZ(51+t,e+Math.sin(n),0,Math.cos(n))}for(let t=0;t<32;t++){let n=t/16*Math.PI;this._attrPos.setXYZ(68+t,0,Math.sin(n),Math.cos(n)),this._attrPos.setXYZ(100+t,e,Math.sin(n),Math.cos(n))}let t=Math.atan2(W.y,Math.sqrt(W.x*W.x+W.z*W.z)),n=-Math.atan2(W.z,W.x);this.rotateZ(t),this.rotateY(n),this.scale(this._currentRadius,this._currentRadius,this._currentRadius),this.translate(this._currentOffset.x,this._currentOffset.y,this._currentOffset.z),this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<34;e++){let t=(e+1)%34;this._attrIndex.setXY(e*2,e,t),this._attrIndex.setXY(68+e*2,34+e,34+t)}for(let e=0;e<32;e++){let t=(e+1)%32;this._attrIndex.setXY(136+e*2,68+e,68+t),this._attrIndex.setXY(200+e*2,100+e,100+t)}this._attrIndex.needsUpdate=!0}},zr=class extends y{constructor(e){super(),this.worldScale=1,this._currentOffset=new j,this._currentNormal=new j,this._shape=e,this._attrPos=new v(new Float32Array(18),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new v(new Uint16Array(10),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1;this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),e=!0),this._currentNormal.equals(this._shape.normal)||(this._currentNormal.copy(this._shape.normal),e=!0),e&&this._buildPosition()}_buildPosition(){this._attrPos.setXYZ(0,-.5,-.5,0),this._attrPos.setXYZ(1,.5,-.5,0),this._attrPos.setXYZ(2,.5,.5,0),this._attrPos.setXYZ(3,-.5,.5,0),this._attrPos.setXYZ(4,0,0,0),this._attrPos.setXYZ(5,0,0,.25),this.translate(this._currentOffset.x,this._currentOffset.y,this._currentOffset.z),this.lookAt(this._currentNormal),this._attrPos.needsUpdate=!0}_buildIndex(){this._attrIndex.setXY(0,0,1),this._attrIndex.setXY(2,1,2),this._attrIndex.setXY(4,2,3),this._attrIndex.setXY(6,3,0),this._attrIndex.setXY(8,4,5),this._attrIndex.needsUpdate=!0}},Br=class extends y{constructor(e){super(),this.worldScale=1,this._currentRadius=0,this._currentOffset=new j,this._shape=e,this._attrPos=new v(new Float32Array(288),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new v(new Uint16Array(192),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1,t=this._shape.radius/this.worldScale;this._currentRadius!==t&&(this._currentRadius=t,e=!0),this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),e=!0),e&&this._buildPosition()}_buildPosition(){for(let e=0;e<32;e++){let t=e/16*Math.PI;this._attrPos.setXYZ(e,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+e,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+e,Math.sin(t),0,Math.cos(t))}this.scale(this._currentRadius,this._currentRadius,this._currentRadius),this.translate(this._currentOffset.x,this._currentOffset.y,this._currentOffset.z),this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<32;e++){let t=(e+1)%32;this._attrIndex.setXY(e*2,e,t),this._attrIndex.setXY(64+e*2,32+e,32+t),this._attrIndex.setXY(128+e*2,64+e,64+t)}this._attrIndex.needsUpdate=!0}},Vr=new j,Hr=class extends d{constructor(e){if(super(),this.matrixAutoUpdate=!1,this.collider=e,this.collider.shape instanceof Lr)this._geometry=new Br(this.collider.shape);else if(this.collider.shape instanceof Mr)this._geometry=new Rr(this.collider.shape);else if(this.collider.shape instanceof Fr)this._geometry=new zr(this.collider.shape);else throw Error(`VRMSpringBoneColliderHelper: Unknown collider shape type detected`);let t=new xe({color:16711935,depthTest:!1,depthWrite:!1});this._line=new Ce(this._geometry,t),this.add(this._line)}dispose(){this._geometry.dispose()}updateMatrixWorld(e){this.collider.updateWorldMatrix(!0,!1),this.matrix.copy(this.collider.matrixWorld);let t=this.matrix.elements;this._geometry.worldScale=Vr.set(t[0],t[1],t[2]).length(),this._geometry.update(),super.updateMatrixWorld(e)}},Ur=class extends y{constructor(e){super(),this.worldScale=1,this._currentRadius=0,this._currentTail=new j,this._springBone=e,this._attrPos=new v(new Float32Array(294),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new v(new Uint16Array(194),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let e=!1,t=this._springBone.settings.hitRadius/this.worldScale;this._currentRadius!==t&&(this._currentRadius=t,e=!0),this._currentTail.equals(this._springBone.initialLocalChildPosition)||(this._currentTail.copy(this._springBone.initialLocalChildPosition),e=!0),e&&this._buildPosition()}_buildPosition(){for(let e=0;e<32;e++){let t=e/16*Math.PI;this._attrPos.setXYZ(e,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+e,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+e,Math.sin(t),0,Math.cos(t))}this.scale(this._currentRadius,this._currentRadius,this._currentRadius),this.translate(this._currentTail.x,this._currentTail.y,this._currentTail.z),this._attrPos.setXYZ(96,0,0,0),this._attrPos.setXYZ(97,this._currentTail.x,this._currentTail.y,this._currentTail.z),this._attrPos.needsUpdate=!0}_buildIndex(){for(let e=0;e<32;e++){let t=(e+1)%32;this._attrIndex.setXY(e*2,e,t),this._attrIndex.setXY(64+e*2,32+e,32+t),this._attrIndex.setXY(128+e*2,64+e,64+t)}this._attrIndex.setXY(192,96,97),this._attrIndex.needsUpdate=!0}},Wr=new j,Gr=class extends d{constructor(e){super(),this.matrixAutoUpdate=!1,this.springBone=e,this._geometry=new Ur(this.springBone);let t=new xe({color:16776960,depthTest:!1,depthWrite:!1});this._line=new Ce(this._geometry,t),this.add(this._line)}dispose(){this._geometry.dispose()}updateMatrixWorld(e){this.springBone.bone.updateWorldMatrix(!0,!1),this.matrix.copy(this.springBone.bone.matrixWorld);let t=this.matrix.elements;this._geometry.worldScale=Wr.set(t[0],t[1],t[2]).length(),this._geometry.update(),super.updateMatrixWorld(e)}},Kr=class extends x{constructor(e){super(),this.colliderMatrix=new E,this.shape=e}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),qr(this.colliderMatrix,this.matrixWorld,this.shape.offset)}};function qr(e,t,n){let r=t.elements;e.copy(t),n&&(e.elements[12]=r[0]*n.x+r[4]*n.y+r[8]*n.z+r[12],e.elements[13]=r[1]*n.x+r[5]*n.y+r[9]*n.z+r[13],e.elements[14]=r[2]*n.x+r[6]*n.y+r[10]*n.z+r[14])}var Jr=new E;function Yr(e){return e.invert?e.invert():e.getInverse(Jr.copy(e)),e}var Xr=class{constructor(e){this._inverseCache=new E,this._shouldUpdateInverse=!0,this.matrix=e;let t={set:(e,t,n)=>(this._shouldUpdateInverse=!0,e[t]=n,!0)};this._originalElements=e.elements,e.elements=new Proxy(e.elements,t)}get inverse(){return this._shouldUpdateInverse&&=(Yr(this._inverseCache.copy(this.matrix)),!1),this._inverseCache}revert(){this.matrix.elements=this._originalElements}},Zr=new E,Qr=new j,$r=new j,ei=new j,ti=new j,ni=new E,ri=class{constructor(e,t,n={},r=[]){this._currentTail=new j,this._prevTail=new j,this._boneAxis=new j,this._worldSpaceBoneLength=0,this._center=null,this._initialLocalMatrix=new E,this._initialLocalRotation=new S,this._initialLocalChildPosition=new j;var i,a,o,s,c,l;this.bone=e,this.bone.matrixAutoUpdate=!1,this.child=t,this.settings={hitRadius:(i=n.hitRadius)??0,stiffness:(a=n.stiffness)??1,gravityPower:(o=n.gravityPower)??0,gravityDir:(c=(s=n.gravityDir)?.clone())??new j(0,-1,0),dragForce:(l=n.dragForce)??.4},this.colliderGroups=r}get dependencies(){let e=new Set,t=this.bone.parent;t&&e.add(t);for(let t=0;t{t(e)})}function ai(e,t){e.children.forEach(e=>{let n=t(e);n||ai(e,t)})}function oi(e){var t;let n=new Map;for(let r of e){let i=r;do{let r=((t=n.get(i))??0)+1;if(r===e.size)return i;n.set(i,r),i=i.parent}while(i!==null)}return null}var si=class{constructor(){this._joints=new Set,this._sortedJoints=[],this._hasWarnedCircularDependency=!1,this._ancestors=[],this._objectSpringBonesMap=new Map,this._isSortedJointsDirty=!1,this._relevantChildrenUpdated=this._relevantChildrenUpdated.bind(this)}get joints(){return this._joints}get springBones(){return console.warn(`VRMSpringBoneManager: springBones is deprecated. use joints instead.`),this._joints}get colliderGroups(){let e=new Set;return this._joints.forEach(t=>{t.colliderGroups.forEach(t=>{e.add(t)})}),Array.from(e)}get colliders(){let e=new Set;return this.colliderGroups.forEach(t=>{t.colliders.forEach(t=>{e.add(t)})}),Array.from(e)}addJoint(e){this._joints.add(e);let t=this._objectSpringBonesMap.get(e.bone);t??(t=new Set,this._objectSpringBonesMap.set(e.bone,t)),t.add(e),this._isSortedJointsDirty=!0}addSpringBone(e){console.warn(`VRMSpringBoneManager: addSpringBone() is deprecated. use addJoint() instead.`),this.addJoint(e)}deleteJoint(e){this._joints.delete(e);let t=this._objectSpringBonesMap.get(e.bone);t.delete(e),this._isSortedJointsDirty=!0}deleteSpringBone(e){console.warn(`VRMSpringBoneManager: deleteSpringBone() is deprecated. use deleteJoint() instead.`),this.deleteJoint(e)}setInitState(){this._sortJoints();for(let e=0;e{var t,n;return((n=(t=this._objectSpringBonesMap.get(e))?.size)??0)>0?!0:(this._ancestors.push(e),!1)})),this._isSortedJointsDirty=!1}_insertJointSort(e,t,n,r,i){if(n.has(e))return;if(t.has(e)){this._hasWarnedCircularDependency||=(console.warn(`VRMSpringBoneManager: Circular dependency detected`),!0);return}t.add(e);let a=e.dependencies;for(let e of a){let a=!1,o=null;ii(e,e=>{let s=this._objectSpringBonesMap.get(e);if(s)for(let e of s)a=!0,this._insertJointSort(e,t,n,r,i);else a||(o=e)}),o&&i.add(o)}r.push(e),n.add(e)}_relevantChildrenUpdated(e){var t,n;return((n=(t=this._objectSpringBonesMap.get(e))?.size)??0)>0?!0:(e.updateWorldMatrix(!1,!1),!1)}},ci=`VRMC_springBone_extended_collider`,li=new Set([`1.0`,`1.0-beta`]),ui=new Set([`1.0`]),di=class e{get name(){return e.EXTENSION_NAME}constructor(e,t){var n;this.parser=e,this.jointHelperRoot=t?.jointHelperRoot,this.colliderHelperRoot=t?.colliderHelperRoot,this.useExtendedColliders=(n=t?.useExtendedColliders)??!0}afterRoot(e){return Or(this,null,function*(){e.userData.vrmSpringBoneManager=yield this._import(e)})}_import(e){return Or(this,null,function*(){let t=yield this._v1Import(e);if(t!=null)return t;let n=yield this._v0Import(e);return n??null})}_v1Import(t){return Or(this,null,function*(){var n,r,i,a,o;let s=t.parser.json,c=(n=s.extensionsUsed)?.indexOf(e.EXTENSION_NAME)!==-1;if(!c)return null;let l=new si,u=yield t.parser.getDependencies(`node`),d=(r=s.extensions)?.[e.EXTENSION_NAME];if(!d)return null;let f=d.specVersion;if(!li.has(f))return console.warn(`VRMSpringBoneLoaderPlugin: Unknown ${e.EXTENSION_NAME} specVersion "${f}"`),null;let p=(i=d.colliders)?.map((t,n)=>{var r,i,a,o,s,c,l,d,f,p,m,h,g,_,v;let y=u[t.node];if(y==null)return console.warn(`VRMSpringBoneLoaderPlugin: The collider #${n} attempted to use the node #${t.node} but not found`),null;let b=t.shape,ee=(r=t.extensions)?.[ci];if(this.useExtendedColliders&&ee!=null){let t=ee.specVersion;if(!ui.has(t))console.warn(`VRMSpringBoneLoaderPlugin: Unknown ${ci} specVersion "${t}". Fallbacking to the ${e.EXTENSION_NAME} definition`);else{let e=ee.shape;if(e.sphere)return this._importSphereCollider(y,{offset:new j().fromArray((i=e.sphere.offset)??[0,0,0]),radius:(a=e.sphere.radius)??0,inside:(o=e.sphere.inside)??!1});if(e.capsule)return this._importCapsuleCollider(y,{offset:new j().fromArray((s=e.capsule.offset)??[0,0,0]),radius:(c=e.capsule.radius)??0,tail:new j().fromArray((l=e.capsule.tail)??[0,0,0]),inside:(d=e.capsule.inside)??!1});if(e.plane)return this._importPlaneCollider(y,{offset:new j().fromArray((f=e.plane.offset)??[0,0,0]),normal:new j().fromArray((p=e.plane.normal)??[0,0,1])})}}if(b.sphere)return this._importSphereCollider(y,{offset:new j().fromArray((m=b.sphere.offset)??[0,0,0]),radius:(h=b.sphere.radius)??0,inside:!1});if(b.capsule)return this._importCapsuleCollider(y,{offset:new j().fromArray((g=b.capsule.offset)??[0,0,0]),radius:(_=b.capsule.radius)??0,tail:new j().fromArray((v=b.capsule.tail)??[0,0,0]),inside:!1});throw Error(`VRMSpringBoneLoaderPlugin: The collider #${n} has no valid shape`)}),m=(a=d.colliderGroups)?.map((e,t)=>{var n;let r=((n=e.colliders)??[]).flatMap(e=>{let n=p?.[e];return n??(console.warn(`VRMSpringBoneLoaderPlugin: The colliderGroup #${t} attempted to use a collider #${e} but not found`),[])});return{colliders:r,name:e.name}});return(o=d.springs)==null||o.forEach((e,t)=>{var n;let r=e.joints,i=(n=e.colliderGroups)?.map(e=>{let n=m?.[e];if(n==null)throw Error(`VRMSpringBoneLoaderPlugin: The spring #${t} attempted to use a colliderGroup ${e} but not found`);return n}),a=e.center==null?void 0:u[e.center],o;r.forEach(e=>{if(o){let t=o.node,n=u[t],r=e.node,s=u[r],c={hitRadius:o.hitRadius,dragForce:o.dragForce,gravityPower:o.gravityPower,stiffness:o.stiffness,gravityDir:o.gravityDir==null?void 0:new j().fromArray(o.gravityDir)},d=this._importJoint(n,s,c,i);a&&(d.center=a),l.addJoint(d)}o=e})}),l.setInitState(),l})}_v0Import(e){return Or(this,null,function*(){var t,n,r;let i=e.parser.json,a=(t=i.extensionsUsed)?.indexOf(`VRM`)!==-1;if(!a)return null;let o=(n=i.extensions)?.VRM,s=o?.secondaryAnimation;if(!s)return null;let c=s?.boneGroups;if(!c)return null;let l=new si,u=yield e.parser.getDependencies(`node`),d=(r=s.colliderGroups)?.map(e=>{var t;let n=u[e.node],r=((t=e.colliders)??[]).map((e,t)=>{var r,i,a;let o=new j(0,0,0);return e.offset&&o.set((r=e.offset.x)??0,(i=e.offset.y)??0,e.offset.z?-e.offset.z:0),this._importSphereCollider(n,{offset:o,radius:(a=e.radius)??0,inside:!1})});return{colliders:r}});return c?.forEach((e,t)=>{let n=e.bones;n&&n.forEach(n=>{var r,i,a,o;let s=u[n],c=new j;e.gravityDir?c.set((r=e.gravityDir.x)??0,(i=e.gravityDir.y)??0,(a=e.gravityDir.z)??0):c.set(0,-1,0);let f=e.center==null?void 0:u[e.center],p={hitRadius:e.hitRadius,dragForce:e.dragForce,gravityPower:e.gravityPower,stiffness:e.stiffiness,gravityDir:c},m=(o=e.colliderGroups)?.map(e=>{let n=d?.[e];if(n==null)throw Error(`VRMSpringBoneLoaderPlugin: The spring #${t} attempted to use a colliderGroup ${e} but not found`);return n});s.traverse(e=>{var t;let n=(t=e.children[0])??null,r=this._importJoint(e,n,p,m);f&&(r.center=f),l.addJoint(r)})})}),e.scene.updateMatrixWorld(),l.setInitState(),l})}_importJoint(e,t,n,r){let i=new ri(e,t,n,r);if(this.jointHelperRoot){let e=new Gr(i);this.jointHelperRoot.add(e),e.renderOrder=this.jointHelperRoot.renderOrder}return i}_importSphereCollider(e,t){let n=new Lr(t),r=new Kr(n);if(e.add(r),this.colliderHelperRoot){let e=new Hr(r);this.colliderHelperRoot.add(e),e.renderOrder=this.colliderHelperRoot.renderOrder}return r}_importCapsuleCollider(e,t){let n=new Mr(t),r=new Kr(n);if(e.add(r),this.colliderHelperRoot){let e=new Hr(r);this.colliderHelperRoot.add(e),e.renderOrder=this.colliderHelperRoot.renderOrder}return r}_importPlaneCollider(e,t){let n=new Fr(t),r=new Kr(n);if(e.add(r),this.colliderHelperRoot){let e=new Hr(r);this.colliderHelperRoot.add(e),e.renderOrder=this.colliderHelperRoot.renderOrder}return r}};di.EXTENSION_NAME=`VRMC_springBone`;var fi=di,pi=class{get name(){return`VRMLoaderPlugin`}constructor(e,t){var n,r,i,a,o,s,c,l,u,d;this.parser=e;let f=t?.helperRoot,p=t?.autoUpdateHumanBones;this.expressionPlugin=(n=t?.expressionPlugin)??new mt(e),this.firstPersonPlugin=(r=t?.firstPersonPlugin)??new vt(e),this.humanoidPlugin=(i=t?.humanoidPlugin)??new Ft(e,{helperRoot:f,autoUpdateHumanBones:p}),this.lookAtPlugin=(a=t?.lookAtPlugin)??new gn(e,{helperRoot:f}),this.metaPlugin=(o=t?.metaPlugin)??new yn(e),this.mtoonMaterialPlugin=(s=t?.mtoonMaterialPlugin)??new Bn(e),this.materialsHDREmissiveMultiplierPlugin=(c=t?.materialsHDREmissiveMultiplierPlugin)??new Un(e),this.materialsV0CompatPlugin=(l=t?.materialsV0CompatPlugin)??new er(e),this.springBonePlugin=(u=t?.springBonePlugin)??new fi(e,{colliderHelperRoot:f,jointHelperRoot:f}),this.nodeConstraintPlugin=(d=t?.nodeConstraintPlugin)??new Dr(e,{helperRoot:f})}beforeRoot(){return Xe(this,null,function*(){yield this.materialsV0CompatPlugin.beforeRoot(),yield this.mtoonMaterialPlugin.beforeRoot()})}loadMesh(e){return Xe(this,null,function*(){return yield this.mtoonMaterialPlugin.loadMesh(e)})}getMaterialType(e){let t=this.mtoonMaterialPlugin.getMaterialType(e);return t??null}extendMaterialParams(e,t){return Xe(this,null,function*(){yield this.materialsHDREmissiveMultiplierPlugin.extendMaterialParams(e,t),yield this.mtoonMaterialPlugin.extendMaterialParams(e,t)})}afterRoot(e){return Xe(this,null,function*(){yield this.metaPlugin.afterRoot(e),yield this.humanoidPlugin.afterRoot(e),yield this.expressionPlugin.afterRoot(e),yield this.lookAtPlugin.afterRoot(e),yield this.firstPersonPlugin.afterRoot(e),yield this.springBonePlugin.afterRoot(e),yield this.nodeConstraintPlugin.afterRoot(e),yield this.mtoonMaterialPlugin.afterRoot(e);let t=e.userData.vrmMeta,n=e.userData.vrmHumanoid;if(t&&n){let r=new xn({scene:e.scene,expressionManager:e.userData.vrmExpressionManager,firstPerson:e.userData.vrmFirstPerson,humanoid:n,lookAt:e.userData.vrmLookAt,meta:t,materials:e.userData.vrmMToonMaterials,springBoneManager:e.userData.vrmSpringBoneManager,nodeConstraintManager:e.userData.vrmNodeConstraintManager});e.userData.vrm=r}})}};function mi(e){let t=new Set;return e.traverse(e=>{if(!e.isMesh)return;let n=e;t.add(n)}),t}function hi(e,t,n){if(t.size===1){let n=t.values().next().value;if(n.weight===1)return e[n.index]}let r=new Float32Array(e[0].count*3),i=0;if(n)i=1;else for(let e of t)i+=e.weight;for(let n of t){let t=e[n.index],a=n.weight/i;for(let e=0;eu.getOrCreate(e)).join(`,`),l=`${n};${o};${a}`,d=s.get(l);d??(d=t.clone(),wi(d,i,r),s.set(l,d)),e.geometry.setAttribute(`skinIndex`,d)}for(let e of n)e.bind(a,new E)}}function bi(e){let t=new Set;return e.traverse(e=>{if(!e.isSkinnedMesh)return;let n=e;t.add(n)}),t}function xi(e,t){let n=new Set;for(let r=0;rn)return!1}return!0}var Ei=class{constructor(){this._objectIndexMap=new Map,this._index=0}get(e){return this._objectIndexMap.get(e)}getOrCreate(e){let t=this._objectIndexMap.get(e);return t??(t=this._index,this._objectIndexMap.set(e,t),this._index++),t}};function Di(e){var t,n,r,i;let a=new y;a.name=e.name,a.setIndex(e.index);for(let[t,n]of Object.entries(e.attributes))a.setAttribute(t,n);for(let[t,n]of Object.entries(e.morphAttributes)){let e=t;a.morphAttributes[e]=n.concat()}a.morphTargetsRelative=e.morphTargetsRelative,a.groups=[];for(let t of e.groups)a.addGroup(t.start,t.count,t.materialIndex);return a.boundingSphere=(n=(t=e.boundingSphere)?.clone())??null,a.boundingBox=(i=(r=e.boundingBox)?.clone())??null,a.drawRange.start=e.drawRange.start,a.drawRange.count=e.drawRange.count,a.userData=e.userData,a}function Oi(e){if(Object.values(e).forEach(e=>{if(e?.isTexture){let t=e;t.dispose()}}),e.isShaderMaterial){let t=e.uniforms;t&&Object.values(t).forEach(e=>{let t=e.value;if(t?.isTexture){let e=t;e.dispose()}})}e.dispose()}function ki(e){let t=e.geometry;t&&t.dispose();let n=e.skeleton;n&&n.dispose();let r=e.material;r&&(Array.isArray(r)?r.forEach(e=>Oi(e)):r&&Oi(r))}function Ai(e){e.traverse(ki)}function ji(e,t){var n,r;console.warn(`VRMUtils.removeUnnecessaryJoints: removeUnnecessaryJoints is deprecated. Use combineSkeletons instead. combineSkeletons contributes more to the performance improvement. This function will be removed in the next major version.`);let i=(n=t?.experimentalSameBoneCounts)??!1,a=[];e.traverse(e=>{e.type===`SkinnedMesh`&&a.push(e)});let o=new Map,s=0;for(let e of a){let t=e.geometry,n=t.getAttribute(`skinIndex`);if(o.has(n))continue;let r=new Map,i=new Map;for(let e=0;e{var n,r,i,a;if(!e.isMesh)return;let o=e,s=o.geometry,c=s.index;if(c==null)return;let l=t.get(s);if(l!=null){o.geometry=l;return}let u=Object.values(s.attributes)[0].count,d=Array(u),f=0,p=c.array;for(let e=0;e{_.addGroup(e.start,e.count,e.materialIndex)}),_.boundingBox=(r=(n=s.boundingBox)?.clone())??null,_.boundingSphere=(a=(i=s.boundingSphere)?.clone())??null,_.setDrawRange(s.drawRange.start,s.drawRange.count),_.userData=s.userData,t.set(s,_);{let e=c.array,t=new e.constructor(e.length);for(let n=0;n{let t=s.attributes[e];if(t.isInterleavedBufferAttribute)throw Error(`removeUnnecessaryVertices: InterleavedBufferAttribute is not supported`);let n=t.array,{itemSize:r,normalized:i}=t,a=new n.constructor(h.length*r);h.forEach((e,t)=>{for(let i=0;i{for(let n=0;ne===0),_.morphAttributes[n][e]=new v(s,a,o)}}b&&(_.morphAttributes={}),o.geometry=_}),Array.from(t.keys()).forEach(e=>{e.dispose()})}function Ni(e){var t;(t=e.meta)?.metaVersion===`0`&&(e.scene.rotation.y=Math.PI)}var G=class{constructor(){}};G.combineMorphs=gi,G.combineSkeletons=yi,G.deepDispose=Ai,G.removeUnnecessaryJoints=ji,G.removeUnnecessaryVertices=Mi,G.rotateVRM0=Ni; +/*! +* @pixiv/three-vrm-core v3.4.2 +* The implementation of core features of VRM, for @pixiv/three-vrm +* +* Copyright (c) 2019-2025 pixiv Inc. +* @pixiv/three-vrm-core is distributed under MIT License +* https://github.com/pixiv/three-vrm/blob/release/LICENSE +*/ +/*! +* @pixiv/three-vrm-materials-mtoon v3.4.2 +* MToon (toon material) module for @pixiv/three-vrm +* +* Copyright (c) 2019-2025 pixiv Inc. +* @pixiv/three-vrm-materials-mtoon is distributed under MIT License +* https://github.com/pixiv/three-vrm/blob/release/LICENSE +*/ +/*! +* @pixiv/three-vrm-materials-hdr-emissive-multiplier v3.4.2 +* Support VRMC_hdr_emissiveMultiplier for @pixiv/three-vrm +* +* Copyright (c) 2019-2025 pixiv Inc. +* @pixiv/three-vrm-materials-hdr-emissive-multiplier is distributed under MIT License +* https://github.com/pixiv/three-vrm/blob/release/LICENSE +*/ +/*! +* @pixiv/three-vrm-materials-v0compat v3.4.2 +* VRM0.0 materials compatibility layer plugin for @pixiv/three-vrm +* +* Copyright (c) 2019-2025 pixiv Inc. +* @pixiv/three-vrm-materials-v0compat is distributed under MIT License +* https://github.com/pixiv/three-vrm/blob/release/LICENSE +*/ +/*! +* @pixiv/three-vrm-node-constraint v3.4.2 +* Node constraint module for @pixiv/three-vrm +* +* Copyright (c) 2019-2025 pixiv Inc. +* @pixiv/three-vrm-node-constraint is distributed under MIT License +* https://github.com/pixiv/three-vrm/blob/release/LICENSE +*/ +/*! +* @pixiv/three-vrm-springbone v3.4.2 +* Spring bone module for @pixiv/three-vrm +* +* Copyright (c) 2019-2025 pixiv Inc. +* @pixiv/three-vrm-springbone is distributed under MIT License +* https://github.com/pixiv/three-vrm/blob/release/LICENSE +*/ +/*! +* @pixiv/three-vrm-animation v3.4.2 +* The implementation of VRM Animation +* +* Copyright (c) 2019-2025 pixiv Inc. +* @pixiv/three-vrm-animation is distributed under MIT License +* https://github.com/pixiv/three-vrm/blob/release/LICENSE +*/ +var Pi=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),K=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),Fi=class extends x{constructor(e){super(),this.weight=0,this.isBinary=!1,this.overrideBlink=`none`,this.overrideLookAt=`none`,this.overrideMouth=`none`,this._binds=[],this.name=`VRMExpression_${e}`,this.expressionName=e,this.type=`VRMExpression`,this.visible=!1}get binds(){return this._binds}get overrideBlinkAmount(){return this.overrideBlink===`block`?0.5?1:0:this.weight}addBind(e){this._binds.push(e)}deleteBind(e){let t=this._binds.indexOf(e);t>=0&&this._binds.splice(t,1)}applyWeight(e){var t;let n=this.outputWeight;n*=(t=e?.multiplier)??1,this.isBinary&&n<1&&(n=0),this._binds.forEach(e=>e.applyWeight(n))}clearAppliedWeight(){this._binds.forEach(e=>e.clearAppliedWeight())}};function Ii(e,t,n){var r,i;let a=e.parser.json,o=(r=a.nodes)?.[t];if(o==null)return console.warn(`extractPrimitivesInternal: Attempt to use nodes[${t}] of glTF but the node doesn't exist`),null;let s=o.mesh;if(s==null)return null;let c=(i=a.meshes)?.[s];if(c==null)return console.warn(`extractPrimitivesInternal: Attempt to use meshes[${s}] of glTF but the mesh doesn't exist`),null;let l=c.primitives.length,u=[];return n.traverse(e=>{u.length{t.has(n)&&(e[n]=r)}),e}get customExpressionMap(){let e={},t=new Set(Object.values(Ri));return Object.entries(this._expressionMap).forEach(([n,r])=>{t.has(n)||(e[n]=r)}),e}copy(e){let t=this._expressions.concat();return t.forEach(e=>{this.unregisterExpression(e)}),e._expressions.forEach(e=>{this.registerExpression(e)}),this.blinkExpressionNames=e.blinkExpressionNames.concat(),this.lookAtExpressionNames=e.lookAtExpressionNames.concat(),this.mouthExpressionNames=e.mouthExpressionNames.concat(),this}clone(){return new e().copy(this)}getExpression(e){var t;return(t=this._expressionMap[e])??null}registerExpression(e){this._expressions.push(e),this._expressionMap[e.expressionName]=e}unregisterExpression(e){let t=this._expressions.indexOf(e);t===-1&&console.warn(`VRMExpressionManager: The specified expressions is not registered`),this._expressions.splice(t,1),delete this._expressionMap[e.expressionName]}getValue(e){var t;let n=this.getExpression(e);return(t=n?.weight)??null}setValue(e,t){let n=this.getExpression(e);n&&(n.weight=zi(t))}resetValues(){this._expressions.forEach(e=>{e.weight=0})}getExpressionTrackName(e){let t=this.getExpression(e);return t?`${t.name}.weight`:null}update(){let e=this._calculateWeightMultipliers();this._expressions.forEach(e=>{e.clearAppliedWeight()}),this._expressions.forEach(t=>{let n=1,r=t.expressionName;this.blinkExpressionNames.indexOf(r)!==-1&&(n*=e.blink),this.lookAtExpressionNames.indexOf(r)!==-1&&(n*=e.lookAt),this.mouthExpressionNames.indexOf(r)!==-1&&(n*=e.mouth),t.applyWeight({multiplier:n})})}_calculateWeightMultipliers(){let e=1,t=1,n=1;return this._expressions.forEach(r=>{e-=r.overrideBlinkAmount,t-=r.overrideLookAtAmount,n-=r.overrideMouthAmount}),e=Math.max(0,e),t=Math.max(0,t),n=Math.max(0,n),{blink:e,lookAt:t,mouth:n}}},Vi={Color:`color`,EmissionColor:`emissionColor`,ShadeColor:`shadeColor`,MatcapColor:`matcapColor`,RimColor:`rimColor`,OutlineColor:`outlineColor`},Hi={_Color:Vi.Color,_EmissionColor:Vi.EmissionColor,_ShadeColor:Vi.ShadeColor,_RimColor:Vi.RimColor,_OutlineColor:Vi.OutlineColor},Ui=new n,Wi=class e{constructor({material:e,type:t,targetValue:n,targetAlpha:r}){this.material=e,this.type=t,this.targetValue=n,this.targetAlpha=r??1;let i=this._initColorBindState(),a=this._initAlphaBindState();this._state={color:i,alpha:a}}applyWeight(e){let{color:t,alpha:n}=this._state;if(t!=null){let{propertyName:n,deltaValue:r}=t,i=this.material[n];i?.add(Ui.copy(r).multiplyScalar(e))}if(n!=null){let{propertyName:t,deltaValue:r}=n,i=this.material[t];i!=null&&(this.material[t]+=r*e)}}clearAppliedWeight(){let{color:e,alpha:t}=this._state;if(e!=null){let{propertyName:t,initialValue:n}=e,r=this.material[t];r?.copy(n)}if(t!=null){let{propertyName:e,initialValue:n}=t,r=this.material[e];r!=null&&(this.material[e]=n)}}_initColorBindState(){var e,t,r;let{material:i,type:a,targetValue:o}=this,s=this._getPropertyNameMap(),c=(t=(e=s?.[a])?.[0])??null;if(c==null)return console.warn(`Tried to add a material color bind to the material ${(r=i.name)??`(no name)`}, the type ${a} but the material or the type is not supported.`),null;let l=i[c],u=l.clone(),d=new n(o.r-u.r,o.g-u.g,o.b-u.b);return{propertyName:c,initialValue:u,deltaValue:d}}_initAlphaBindState(){var e,t,n;let{material:r,type:i,targetAlpha:a}=this,o=this._getPropertyNameMap(),s=(t=(e=o?.[i])?.[1])??null;if(s==null&&a!==1)return console.warn(`Tried to add a material alpha bind to the material ${(n=r.name)??`(no name)`}, the type ${i} but the material or the type does not support alpha.`),null;if(s==null)return null;let c=r[s],l=a-c;return{propertyName:s,initialValue:c,deltaValue:l}}_getPropertyNameMap(){var t,n;return(n=(t=Object.entries(e._propertyNameMapMap).find(([e])=>this.material[e]===!0))?.[1])??null}};Wi._propertyNameMapMap={isMeshStandardMaterial:{color:[`color`,`opacity`],emissionColor:[`emissive`,null]},isMeshBasicMaterial:{color:[`color`,`opacity`]},isMToonMaterial:{color:[`color`,`opacity`],emissionColor:[`emissive`,null],outlineColor:[`outlineColorFactor`,null],matcapColor:[`matcapFactor`,null],rimColor:[`parametricRimColorFactor`,null],shadeColor:[`shadeColorFactor`,null]}};var Gi=Wi,Ki=class{constructor({primitives:e,index:t,weight:n}){this.primitives=e,this.index=t,this.weight=n}applyWeight(e){this.primitives.forEach(t=>{var n;(n=t.morphTargetInfluences)?.[this.index]!=null&&(t.morphTargetInfluences[this.index]+=this.weight*e)})}clearAppliedWeight(){this.primitives.forEach(e=>{var t;(t=e.morphTargetInfluences)?.[this.index]!=null&&(e.morphTargetInfluences[this.index]=0)})}},qi=new A,Ji=class e{constructor({material:t,scale:n,offset:r}){var i,a;this.material=t,this.scale=n,this.offset=r;let o=(i=Object.entries(e._propertyNamesMap).find(([e])=>t[e]===!0))?.[1];o==null?(console.warn(`Tried to add a texture transform bind to the material ${(a=t.name)??`(no name)`} but the material is not supported.`),this._properties=[]):(this._properties=[],o.forEach(e=>{var i;let a=(i=t[e])?.clone();if(!a)return null;t[e]=a;let o=a.offset.clone(),s=a.repeat.clone(),c=r.clone().sub(o),l=n.clone().sub(s);this._properties.push({name:e,initialOffset:o,deltaOffset:c,initialScale:s,deltaScale:l})}))}applyWeight(e){this._properties.forEach(t=>{let n=this.material[t.name];n!==void 0&&(n.offset.add(qi.copy(t.deltaOffset).multiplyScalar(e)),n.repeat.add(qi.copy(t.deltaScale).multiplyScalar(e)))})}clearAppliedWeight(){this._properties.forEach(e=>{let t=this.material[e.name];t!==void 0&&(t.offset.copy(e.initialOffset),t.repeat.copy(e.initialScale))})}};Ji._propertyNamesMap={isMeshStandardMaterial:[`map`,`emissiveMap`,`bumpMap`,`normalMap`,`displacementMap`,`roughnessMap`,`metalnessMap`,`alphaMap`],isMeshBasicMaterial:[`map`,`specularMap`,`alphaMap`],isMToonMaterial:[`map`,`normalMap`,`emissiveMap`,`shadeMultiplyTexture`,`rimMultiplyTexture`,`outlineWidthMultiplyTexture`,`uvAnimationMaskTexture`]};var Yi=Ji,Xi=new Set([`1.0`,`1.0-beta`]),Zi=class e{get name(){return`VRMExpressionLoaderPlugin`}constructor(e){this.parser=e}afterRoot(e){return K(this,null,function*(){e.userData.vrmExpressionManager=yield this._import(e)})}_import(e){return K(this,null,function*(){let t=yield this._v1Import(e);if(t)return t;let n=yield this._v0Import(e);return n||null})}_v1Import(e){return K(this,null,function*(){var t,r;let i=this.parser.json,a=(t=i.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!a)return null;let o=(r=i.extensions)?.VRMC_vrm;if(!o)return null;let s=o.specVersion;if(!Xi.has(s))return console.warn(`VRMExpressionLoaderPlugin: Unknown VRMC_vrm specVersion "${s}"`),null;let c=o.expressions;if(!c)return null;let l=new Set(Object.values(Ri)),u=new Map;c.preset!=null&&Object.entries(c.preset).forEach(([e,t])=>{if(t!=null){if(!l.has(e)){console.warn(`VRMExpressionLoaderPlugin: Unknown preset name "${e}" detected. Ignoring the expression`);return}u.set(e,t)}}),c.custom!=null&&Object.entries(c.custom).forEach(([e,t])=>{if(l.has(e)){console.warn(`VRMExpressionLoaderPlugin: Custom expression cannot have preset name "${e}". Ignoring the expression`);return}u.set(e,t)});let d=new Bi;return yield Promise.all(Array.from(u.entries()).map(t=>K(this,[t],function*([t,r]){var i,a,o,s,c,l,u;let f=new Fi(t);if(e.scene.add(f),f.isBinary=(i=r.isBinary)??!1,f.overrideBlink=(a=r.overrideBlink)??`none`,f.overrideLookAt=(o=r.overrideLookAt)??`none`,f.overrideMouth=(s=r.overrideMouth)??`none`,(c=r.morphTargetBinds)==null||c.forEach(t=>K(this,null,function*(){var n;if(t.node===void 0||t.index===void 0)return;let i=yield Li(e,t.node),a=t.index;if(!i.every(e=>Array.isArray(e.morphTargetInfluences)&&a{let n=e.material;n&&(Array.isArray(n)?t.push(...n):t.push(n))}),(l=r.materialColorBinds)==null||l.forEach(e=>K(this,null,function*(){let r=t.filter(t=>{var n;let r=(n=this.parser.associations.get(t))?.materials;return e.material===r});r.forEach(t=>{f.addBind(new Gi({material:t,type:e.type,targetValue:new n().fromArray(e.targetValue),targetAlpha:e.targetValue[3]}))})})),(u=r.textureTransformBinds)==null||u.forEach(e=>K(this,null,function*(){let n=t.filter(t=>{var n;let r=(n=this.parser.associations.get(t))?.materials;return e.material===r});n.forEach(t=>{var n,r;f.addBind(new Yi({material:t,offset:new A().fromArray((n=e.offset)??[0,0]),scale:new A().fromArray((r=e.scale)??[1,1])}))})}))}d.registerExpression(f)}))),d})}_v0Import(t){return K(this,null,function*(){var r;let i=this.parser.json,a=(r=i.extensions)?.VRM;if(!a)return null;let o=a.blendShapeMaster;if(!o)return null;let s=new Bi,c=o.blendShapeGroups;if(!c)return s;let l=new Set;return yield Promise.all(c.map(r=>K(this,null,function*(){var a;let o=r.presetName,c=o!=null&&e.v0v1PresetNameMap[o]||null,u=c??r.name;if(u==null){console.warn(`VRMExpressionLoaderPlugin: One of custom expressions has no name. Ignoring the expression`);return}if(l.has(u)){console.warn(`VRMExpressionLoaderPlugin: An expression preset ${o} has duplicated entries. Ignoring the expression`);return}l.add(u);let d=new Fi(u);t.scene.add(d),d.isBinary=(a=r.isBinary)??!1,r.binds&&r.binds.forEach(e=>K(this,null,function*(){var n;if(e.mesh===void 0||e.index===void 0)return;let a=[];(n=i.nodes)==null||n.forEach((t,n)=>{t.mesh===e.mesh&&a.push(n)});let o=e.index;yield Promise.all(a.map(n=>K(this,null,function*(){var i;let a=yield Li(t,n);if(!a.every(e=>Array.isArray(e.morphTargetInfluences)&&o{if(e.materialName===void 0||e.propertyName===void 0||e.targetValue===void 0)return;let r=[];t.scene.traverse(t=>{if(t.material){let n=t.material;Array.isArray(n)?r.push(...n.filter(t=>(t.name===e.materialName||t.name===e.materialName+` (Outline)`)&&r.indexOf(t)===-1)):n.name===e.materialName&&r.indexOf(n)===-1&&r.push(n)}});let i=e.propertyName;r.forEach(t=>{if(i===`_MainTex_ST`){let n=new A(e.targetValue[0],e.targetValue[1]),r=new A(e.targetValue[2],e.targetValue[3]);r.y=1-r.y-n.y,d.addBind(new Yi({material:t,scale:n,offset:r}));return}let r=Hi[i];if(r){d.addBind(new Gi({material:t,type:r,targetValue:new n().fromArray(e.targetValue),targetAlpha:e.targetValue[3]}));return}console.warn(i+` is not supported`)})}),s.registerExpression(d)}))),s})}};Zi.v0v1PresetNameMap={a:`aa`,e:`ee`,i:`ih`,o:`oh`,u:`ou`,blink:`blink`,joy:`happy`,angry:`angry`,sorrow:`sad`,fun:`relaxed`,lookup:`lookUp`,lookdown:`lookDown`,lookleft:`lookLeft`,lookright:`lookRight`,blink_l:`blinkLeft`,blink_r:`blinkRight`,neutral:`neutral`};var Qi=class e{constructor(t,n){this._firstPersonOnlyLayer=e.DEFAULT_FIRSTPERSON_ONLY_LAYER,this._thirdPersonOnlyLayer=e.DEFAULT_THIRDPERSON_ONLY_LAYER,this._initializedLayers=!1,this.humanoid=t,this.meshAnnotations=n}copy(e){if(this.humanoid!==e.humanoid)throw Error(`VRMFirstPerson: humanoid must be same in order to copy`);return this.meshAnnotations=e.meshAnnotations.map(e=>({meshes:e.meshes.concat(),type:e.type})),this}clone(){return new e(this.humanoid,this.meshAnnotations).copy(this)}get firstPersonOnlyLayer(){return this._firstPersonOnlyLayer}get thirdPersonOnlyLayer(){return this._thirdPersonOnlyLayer}setup({firstPersonOnlyLayer:t=e.DEFAULT_FIRSTPERSON_ONLY_LAYER,thirdPersonOnlyLayer:n=e.DEFAULT_THIRDPERSON_ONLY_LAYER}={}){this._initializedLayers||=(this._firstPersonOnlyLayer=t,this._thirdPersonOnlyLayer=n,this.meshAnnotations.forEach(e=>{e.meshes.forEach(t=>{e.type===`firstPersonOnly`?(t.layers.set(this._firstPersonOnlyLayer),t.traverse(e=>e.layers.set(this._firstPersonOnlyLayer))):e.type===`thirdPersonOnly`?(t.layers.set(this._thirdPersonOnlyLayer),t.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer))):e.type===`auto`&&this._createHeadlessModel(t)})}),!0)}_excludeTriangles(e,t,n,r){let i=0;if(t!=null&&t.length>0)for(let a=0;a0&&r.includes(u[0])||l[1]>0&&r.includes(u[1])||l[2]>0&&r.includes(u[2])||l[3]>0&&r.includes(u[3]))continue;let d=t[s],f=n[s];if(d[0]>0&&r.includes(f[0])||d[1]>0&&r.includes(f[1])||d[2]>0&&r.includes(f[2])||d[3]>0&&r.includes(f[3]))continue;let p=t[c],m=n[c];p[0]>0&&r.includes(m[0])||p[1]>0&&r.includes(m[1])||p[2]>0&&r.includes(m[2])||p[3]>0&&r.includes(m[3])||(e[i++]=o,e[i++]=s,e[i++]=c)}return i}_createErasedMesh(e,t){let n=new Le(e.geometry.clone(),e.material);n.name=`${e.name}(erase)`,n.frustumCulled=e.frustumCulled,n.layers.set(this._firstPersonOnlyLayer);let r=n.geometry,i=r.getAttribute(`skinIndex`),a=i instanceof u?[]:i.array,o=[];for(let e=0;e{this._isEraseTarget(e)&&n.push(t)}),!n.length){t.layers.enable(this._thirdPersonOnlyLayer),t.layers.enable(this._firstPersonOnlyLayer);return}t.layers.set(this._thirdPersonOnlyLayer);let r=this._createErasedMesh(t,n);e.add(r)}_createHeadlessModel(e){if(e.type===`Group`)if(e.layers.set(this._thirdPersonOnlyLayer),this._isEraseTarget(e))e.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer));else{let t=new d;t.name=`_headless_${e.name}`,t.layers.set(this._firstPersonOnlyLayer),e.parent.add(t),e.children.filter(e=>e.type===`SkinnedMesh`).forEach(e=>{let n=e;this._createHeadlessModelForSkinnedMesh(t,n)})}else if(e.type===`SkinnedMesh`){let t=e;this._createHeadlessModelForSkinnedMesh(e.parent,t)}else this._isEraseTarget(e)&&(e.layers.set(this._thirdPersonOnlyLayer),e.traverse(e=>e.layers.set(this._thirdPersonOnlyLayer)))}_isEraseTarget(e){return e===this.humanoid.getRawBoneNode(`head`)?!0:e.parent?this._isEraseTarget(e.parent):!1}};Qi.DEFAULT_FIRSTPERSON_ONLY_LAYER=9,Qi.DEFAULT_THIRDPERSON_ONLY_LAYER=10,new j,new j,new S;var $i={hips:null,spine:`hips`,chest:`spine`,upperChest:`chest`,neck:`upperChest`,head:`neck`,leftEye:`head`,rightEye:`head`,jaw:`head`,leftUpperLeg:`hips`,leftLowerLeg:`leftUpperLeg`,leftFoot:`leftLowerLeg`,leftToes:`leftFoot`,rightUpperLeg:`hips`,rightLowerLeg:`rightUpperLeg`,rightFoot:`rightLowerLeg`,rightToes:`rightFoot`,leftShoulder:`upperChest`,leftUpperArm:`leftShoulder`,leftLowerArm:`leftUpperArm`,leftHand:`leftLowerArm`,rightShoulder:`upperChest`,rightUpperArm:`rightShoulder`,rightLowerArm:`rightUpperArm`,rightHand:`rightLowerArm`,leftThumbMetacarpal:`leftHand`,leftThumbProximal:`leftThumbMetacarpal`,leftThumbDistal:`leftThumbProximal`,leftIndexProximal:`leftHand`,leftIndexIntermediate:`leftIndexProximal`,leftIndexDistal:`leftIndexIntermediate`,leftMiddleProximal:`leftHand`,leftMiddleIntermediate:`leftMiddleProximal`,leftMiddleDistal:`leftMiddleIntermediate`,leftRingProximal:`leftHand`,leftRingIntermediate:`leftRingProximal`,leftRingDistal:`leftRingIntermediate`,leftLittleProximal:`leftHand`,leftLittleIntermediate:`leftLittleProximal`,leftLittleDistal:`leftLittleIntermediate`,rightThumbMetacarpal:`rightHand`,rightThumbProximal:`rightThumbMetacarpal`,rightThumbDistal:`rightThumbProximal`,rightIndexProximal:`rightHand`,rightIndexIntermediate:`rightIndexProximal`,rightIndexDistal:`rightIndexIntermediate`,rightMiddleProximal:`rightHand`,rightMiddleIntermediate:`rightMiddleProximal`,rightMiddleDistal:`rightMiddleIntermediate`,rightRingProximal:`rightHand`,rightRingIntermediate:`rightRingProximal`,rightRingDistal:`rightRingIntermediate`,rightLittleProximal:`rightHand`,rightLittleIntermediate:`rightLittleProximal`,rightLittleDistal:`rightLittleIntermediate`};function ea(e){return e.invert?e.invert():e.inverse(),e}new j,new S,new j,new S,new j,new S,new S,new j,new j;var ta=Math.sqrt(2)/2;new S(0,0,-ta,ta),new j(0,1,0);var na=new j,ra=new j;function ia(e,t){return e.matrixWorld.decompose(na,t,ra),t}function aa(e){return[Math.atan2(-e.z,e.x),Math.atan2(e.y,Math.sqrt(e.x*e.x+e.z*e.z))]}function oa(e){let t=Math.round(e/2/Math.PI);return e-2*Math.PI*t}var sa=new j(0,0,1),ca=new j,la=new j,ua=new j,da=new S,fa=new S,pa=new S,ma=new S,ha=new s,ga=class e{constructor(e,t){this.offsetFromHeadBone=new j,this.autoUpdate=!0,this.faceFront=new j(0,0,1),this.humanoid=e,this.applier=t,this._yaw=0,this._pitch=0,this._needsUpdate=!0,this._restHeadWorldQuaternion=this.getLookAtWorldQuaternion(new S)}get yaw(){return this._yaw}set yaw(e){this._yaw=e,this._needsUpdate=!0}get pitch(){return this._pitch}set pitch(e){this._pitch=e,this._needsUpdate=!0}get euler(){return console.warn(`VRMLookAt: euler is deprecated. use getEuler() instead.`),this.getEuler(new s)}getEuler(e){return e.set(w.DEG2RAD*this._pitch,w.DEG2RAD*this._yaw,0,`YXZ`)}copy(e){if(this.humanoid!==e.humanoid)throw Error(`VRMLookAt: humanoid must be same in order to copy`);return this.offsetFromHeadBone.copy(e.offsetFromHeadBone),this.applier=e.applier,this.autoUpdate=e.autoUpdate,this.target=e.target,this.faceFront.copy(e.faceFront),this}clone(){return new e(this.humanoid,this.applier).copy(this)}reset(){this._yaw=0,this._pitch=0,this._needsUpdate=!0}getLookAtWorldPosition(e){let t=this.humanoid.getRawBoneNode(`head`);return e.copy(this.offsetFromHeadBone).applyMatrix4(t.matrixWorld)}getLookAtWorldQuaternion(e){let t=this.humanoid.getRawBoneNode(`head`);return ia(t,e)}getFaceFrontQuaternion(e){if(this.faceFront.distanceToSquared(sa)<.01)return e.copy(this._restHeadWorldQuaternion).invert();let[t,n]=aa(this.faceFront);return ha.set(0,.5*Math.PI+t,n,`YZX`),e.setFromEuler(ha).premultiply(ma.copy(this._restHeadWorldQuaternion).invert())}getLookAtWorldDirection(e){return this.getLookAtWorldQuaternion(fa),this.getFaceFrontQuaternion(pa),e.copy(sa).applyQuaternion(fa).applyQuaternion(pa).applyEuler(this.getEuler(ha))}lookAt(e){let t=da.copy(this._restHeadWorldQuaternion).multiply(ea(this.getLookAtWorldQuaternion(fa))),n=this.getLookAtWorldPosition(la),r=ua.copy(e).sub(n).applyQuaternion(t).normalize(),[i,a]=aa(this.faceFront),[o,s]=aa(r),c=oa(o-i),l=oa(a-s);this._yaw=w.RAD2DEG*c,this._pitch=w.RAD2DEG*l,this._needsUpdate=!0}update(e){this.target!=null&&this.autoUpdate&&this.lookAt(this.target.getWorldPosition(ca)),this._needsUpdate&&(this._needsUpdate=!1,this.applier.applyYawPitch(this._yaw,this._pitch))}};ga.EULER_ORDER=`YXZ`;var _a=ga,va=new j(0,0,1),q=new S,ya=new S,J=new s(0,0,0,`YXZ`),ba=class{constructor(e,t,n,r,i){this.humanoid=e,this.rangeMapHorizontalInner=t,this.rangeMapHorizontalOuter=n,this.rangeMapVerticalDown=r,this.rangeMapVerticalUp=i,this.faceFront=new j(0,0,1),this._restQuatLeftEye=new S,this._restQuatRightEye=new S,this._restLeftEyeParentWorldQuat=new S,this._restRightEyeParentWorldQuat=new S;let a=this.humanoid.getRawBoneNode(`leftEye`),o=this.humanoid.getRawBoneNode(`rightEye`);a&&(this._restQuatLeftEye.copy(a.quaternion),ia(a.parent,this._restLeftEyeParentWorldQuat)),o&&(this._restQuatRightEye.copy(o.quaternion),ia(o.parent,this._restRightEyeParentWorldQuat))}applyYawPitch(e,t){let n=this.humanoid.getRawBoneNode(`leftEye`),r=this.humanoid.getRawBoneNode(`rightEye`),i=this.humanoid.getNormalizedBoneNode(`leftEye`),a=this.humanoid.getNormalizedBoneNode(`rightEye`);n&&(t<0?J.x=-w.DEG2RAD*this.rangeMapVerticalDown.map(-t):J.x=w.DEG2RAD*this.rangeMapVerticalUp.map(t),e<0?J.y=-w.DEG2RAD*this.rangeMapHorizontalInner.map(-e):J.y=w.DEG2RAD*this.rangeMapHorizontalOuter.map(e),q.setFromEuler(J),this._getWorldFaceFrontQuat(ya),i.quaternion.copy(ya).multiply(q).multiply(ya.invert()),q.copy(this._restLeftEyeParentWorldQuat),n.quaternion.copy(i.quaternion).multiply(q).premultiply(q.invert()).multiply(this._restQuatLeftEye)),r&&(t<0?J.x=-w.DEG2RAD*this.rangeMapVerticalDown.map(-t):J.x=w.DEG2RAD*this.rangeMapVerticalUp.map(t),e<0?J.y=-w.DEG2RAD*this.rangeMapHorizontalOuter.map(-e):J.y=w.DEG2RAD*this.rangeMapHorizontalInner.map(e),q.setFromEuler(J),this._getWorldFaceFrontQuat(ya),a.quaternion.copy(ya).multiply(q).multiply(ya.invert()),q.copy(this._restRightEyeParentWorldQuat),r.quaternion.copy(a.quaternion).multiply(q).premultiply(q.invert()).multiply(this._restQuatRightEye))}lookAt(e){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let t=w.RAD2DEG*e.y,n=w.RAD2DEG*e.x;this.applyYawPitch(t,n)}_getWorldFaceFrontQuat(e){if(this.faceFront.distanceToSquared(va)<.01)return e.identity();let[t,n]=aa(this.faceFront);return J.set(0,.5*Math.PI+t,n,`YZX`),e.setFromEuler(J)}};ba.type=`bone`;var xa=class{constructor(e,t,n,r,i){this.expressions=e,this.rangeMapHorizontalInner=t,this.rangeMapHorizontalOuter=n,this.rangeMapVerticalDown=r,this.rangeMapVerticalUp=i}applyYawPitch(e,t){t<0?(this.expressions.setValue(`lookDown`,0),this.expressions.setValue(`lookUp`,this.rangeMapVerticalUp.map(-t))):(this.expressions.setValue(`lookUp`,0),this.expressions.setValue(`lookDown`,this.rangeMapVerticalDown.map(t))),e<0?(this.expressions.setValue(`lookLeft`,0),this.expressions.setValue(`lookRight`,this.rangeMapHorizontalOuter.map(-e))):(this.expressions.setValue(`lookRight`,0),this.expressions.setValue(`lookLeft`,this.rangeMapHorizontalOuter.map(e)))}lookAt(e){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let t=w.RAD2DEG*e.y,n=w.RAD2DEG*e.x;this.applyYawPitch(t,n)}};xa.type=`expression`;var Sa=180/Math.PI,Ca=new s,wa=class extends x{constructor(e){super(),this.vrmLookAt=e,this.type=`VRMLookAtQuaternionProxy`;let t=this.rotation._onChangeCallback;this.rotation._onChange(()=>{t(),this._applyToLookAt()});let n=this.quaternion._onChangeCallback;this.quaternion._onChange(()=>{n(),this._applyToLookAt()})}_applyToLookAt(){Ca.setFromQuaternion(this.quaternion,_a.EULER_ORDER),this.vrmLookAt.yaw=Sa*Ca.y,this.vrmLookAt.pitch=Sa*Ca.x}};function Ta(e,t,n){var r,i;let a=new Map,o=new Map;for(let[i,a]of e.humanoidTracks.rotation.entries()){let e=(r=t.getNormalizedBoneNode(i))?.name;if(e!=null){let t=new _e(`${e}.quaternion`,a.times,a.values.map((e,t)=>n===`0`&&t%2==0?-e:e));o.set(i,t)}}for(let[r,o]of e.humanoidTracks.translation.entries()){let s=(i=t.getNormalizedBoneNode(r))?.name;if(s!=null){let i=e.restHipsPosition.y,c=t.normalizedRestPose.hips.position[1],l=c/i,u=o.clone();u.values=u.values.map((e,t)=>(n===`0`&&t%3!=1?-e:e)*l),u.name=`${s}.position`,a.set(r,u)}}return{translation:a,rotation:o}}function Ea(e,t){let n=new Map,r=new Map;for(let[r,i]of e.expressionTracks.preset.entries()){let e=t.getExpressionTrackName(r);if(e!=null){let t=i.clone();t.name=e,n.set(r,t)}}for(let[n,i]of e.expressionTracks.custom.entries()){let e=t.getExpressionTrackName(n);if(e!=null){let t=i.clone();t.name=e,r.set(n,t)}}return{preset:n,custom:r}}function Da(e,t){if(e.lookAtTrack==null)return null;let n=e.lookAtTrack.clone();return n.name=t,n}function Oa(e,t){let n=[],r=Ta(e,t.humanoid,t.meta.metaVersion);if(n.push(...r.translation.values()),n.push(...r.rotation.values()),t.expressionManager!=null){let r=Ea(e,t.expressionManager);n.push(...r.preset.values()),n.push(...r.custom.values())}if(t.lookAt!=null){let r=t.scene.children.find(e=>e instanceof wa);r==null?(console.warn(`createVRMAnimationClip: VRMLookAtQuaternionProxy is not found. Creating a new one automatically. To suppress this warning, create a VRMLookAtQuaternionProxy manually`),r=new wa(t.lookAt),r.name=`VRMLookAtQuaternionProxy`,t.scene.add(r)):r.name===``&&(console.warn(`createVRMAnimationClip: VRMLookAtQuaternionProxy is found but its name is not set. Setting the name automatically. To suppress this warning, set the name manually`),r.name=`VRMLookAtQuaternionProxy`);let i=Da(e,`${r.name}.quaternion`);i!=null&&n.push(i)}return new p(`Clip`,e.duration,n)}var ka=class{constructor(){this.duration=0,this.restHipsPosition=new j,this.humanoidTracks={translation:new Map,rotation:new Map},this.expressionTracks={preset:new Map,custom:new Map},this.lookAtTrack=null}};function Aa(e,t){let n=e.length,r=[],i=[],a=0;for(let o=0;o{let n=i.animations[t],r=this._parseAnimation(e,n,c,l);return r.restHipsPosition=f,r});e.userData.vrmAnimations=m})}_createNodeMap(e){var t,n,r,i,a;let o=new Map,s=new Map,c=(t=e.humanoid)?.humanBones;c&&Object.entries(c).forEach(([e,t])=>{let n=t?.node;n!=null&&o.set(n,e)});let l=(n=e.expressions)?.preset;l&&Object.entries(l).forEach(([e,t])=>{let n=t?.node;n!=null&&s.set(n,e)});let u=(r=e.expressions)?.custom;u&&Object.entries(u).forEach(([e,t])=>{let{node:n}=t;s.set(n,e)});let d=(a=(i=e.lookAt)?.node)??null;return{humanoidIndexToName:o,expressionsIndexToName:s,lookAtIndex:d}}_createBoneWorldMatrixMap(e,t){return Pi(this,null,function*(){var n,r;e.scene.updateWorldMatrix(!1,!0);let i=yield e.parser.getDependencies(`node`),a=new Map;if(t.humanoid==null)return a;for(let[e,o]of Object.entries(t.humanoid.humanBones)){let t=o?.node;if(t!=null){let o=i[t];a.set(e,o.matrixWorld),e===`hips`&&a.set(`hipsParent`,(r=(n=o.parent)?.matrixWorld)??ja)}}return a})}_parseAnimation(e,t,n,r){let i=e.tracks,a=t.channels,o=new ka;return o.duration=e.duration,a.forEach((e,t)=>{let{node:a,path:s}=e.target,c=i[t];if(a==null)return;let l=n.humanoidIndexToName.get(a);if(l!=null){let e=$i[l];for(;e!=null&&r.get(e)==null;)e=$i[e];if(e??=`hipsParent`,s===`translation`)if(l!==`hips`)console.warn(`The loading animation contains a translation track for ${l}, which is not permitted in the VRMC_vrm_animation spec. ignoring the track`);else{let e=r.get(`hipsParent`),t=Aa(c.values,3).flatMap(t=>Ma.fromArray(t).applyMatrix4(e).toArray()),n=c.clone();n.values=new Float32Array(t),o.humanoidTracks.translation.set(l,n)}else if(s===`rotation`){let t=r.get(l),n=r.get(e);t.decompose(Ma,Na,Ma),Na.invert(),n.decompose(Ma,Pa,Ma);let i=Aa(c.values,4).flatMap(e=>Fa.fromArray(e).premultiply(Pa).multiply(Na).toArray()),a=c.clone();a.values=new Float32Array(i),o.humanoidTracks.rotation.set(l,a)}else throw Error(`Invalid path "${s}"`);return}let u=n.expressionsIndexToName.get(a);if(u!=null){if(s===`translation`){let e=c.times,t=new Float32Array(c.values.length/3);for(let e=0;e=2.0 are supported.`));return}let c=new jo(i,{path:t||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&o[t]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+t+`".`)}}c.setExtensions(a),c.setPlugins(o),c.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}};function Va(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}const Y={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`};var Ha=class{constructor(e){this.parser=e,this.name=Y.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return t.loadTextureImage(e,i.source,a)}},no=class{constructor(e){this.parser=e,this.name=Y.EXT_TEXTURE_WEBP}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},ro=class{constructor(e){this.parser=e,this.name=Y.EXT_TEXTURE_AVIF}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},io=class{constructor(e){this.name=Y.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){let e=n.extensions[this.name],r=this.parser.getDependency(`buffer`,e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t})})}else return null}},ao=class{constructor(e){this.name=Y.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;let r=t.meshes[n.mesh];for(let e of r.primitives)if(e.mode!==X.TRIANGLES&&e.mode!==X.TRIANGLE_STRIP&&e.mode!==X.TRIANGLE_FAN&&e.mode!==void 0)return null;let i=n.extensions[this.name],a=i.attributes,o=[],s={};for(let e in a)o.push(this.parser.getDependency(`accessor`,a[e]).then(t=>(s[e]=t,s[e])));return o.length<1?null:(o.push(this.parser.createNodeMesh(e)),Promise.all(o).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(let e of n){let t=new E,n=new j,a=new S,o=new j(1,1,1),c=new ne(e.geometry,e.material,r);for(let e=0;e0||e.search(/^data\:image\/jpeg/)===0?`image/jpeg`:e.search(/\.webp($|\?)/i)>0||e.search(/^data\:image\/webp/)===0?`image/webp`:e.search(/\.ktx2($|\?)/i)>0||e.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}const Ao=new E;var jo=class{constructor(t={},n={}){this.json=t,this.extensions={},this.plugins={},this.options=n,this.cache=new Va,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let r=!1,i=-1,a=!1,o=-1;if(typeof navigator<`u`){let e=navigator.userAgent;r=/^((?!chrome|android).)*safari/i.test(e)===!0;let t=e.match(/Version\/(\d+)/);i=r&&t?parseInt(t[1],10):-1,a=e.indexOf(`Firefox`)>-1,o=a?e.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>`u`||r&&i<17||a&&o<98?this.textureLoader=new Ve(this.options.manager):this.textureLoader=new e(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new c(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies(`scene`),n.getDependencies(`animation`),n.getDependencies(`camera`)])}).then(function(t){let a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return Q(i,a,r),$(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(let e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n{let n=this.associations.get(e);n!=null&&this.associations.set(t,n);for(let[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+=`_instance_`+ e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&p.setY(t,u[e*a+1]),a>=3&&p.setZ(t,u[e*a+2]),a>=4&&p.setW(t,u[e*a+3]),a>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}p.normalized=d}return p})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e],i=r.source,a=t.images[i],o=this.textureLoader;if(a.uri){let e=n.manager.getHandler(a.uri);e!==null&&(o=e)}return this.loadTextureImage(e,i,o)}loadTextureImage(e,t,n){let r=this,i=this.json,a=i.textures[e],o=i.images[t],s=(o.uri||o.bufferView)+`:`+a.sampler;if(this.textureCache[s])return this.textureCache[s];let c=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||o.name||``,t.name===``&&typeof o.uri==`string`&&o.uri.startsWith(`data:image/`)===!1&&(t.name=o.uri);let n=i.samplers||{},s=n[a.sampler]||{};return t.magFilter=_o[s.magFilter]||we,t.minFilter=_o[s.minFilter]||Te,t.wrapS=vo[s.wrapS]||ye,t.wrapT=vo[s.wrapT]||ye,t.generateMipmaps=!t.isCompressedTexture&&t.minFilter!==Ne&&t.minFilter!==we,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[s]=c,c}loadImageSource(e,t){let n=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(e=>e.clone());let a=r.images[e],o=self.URL||self.webkitURL,s=a.uri||``,c=!1;if(a.bufferView!==void 0)s=n.getDependency(`bufferView`,a.bufferView).then(function(e){c=!0;let t=new Blob([e],{type:a.mimeType});return s=o.createObjectURL(t),s});else if(a.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+e+` is missing URI and bufferView`);let l=Promise.resolve(s).then(function(e){return new Promise(function(n,r){let a=n;t.isImageBitmapLoader===!0&&(a=function(e){let t=new Be(e);t.needsUpdate=!0,n(t)}),t.load(Oe.resolveURL(e,i.path),a,void 0,r)})}).then(function(e){return c===!0&&o.revokeObjectURL(s),$(e,a),e.userData.mimeType=a.mimeType||ko(a.uri),e}).catch(function(e){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){let i=this;return this.getDependency(`texture`,n.index).then(function(a){if(!a)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),i.extensions[Y.KHR_TEXTURE_TRANSFORM]){let e=n.extensions===void 0?void 0:n.extensions[Y.KHR_TEXTURE_TRANSFORM];if(e){let t=i.associations.get(a);a=i.extensions[Y.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return r!==void 0&&(a.colorSpace=r),e[t]=a,a})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,a=t.attributes.normal===void 0;if(e.isPoints){let e=`PointsMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new he,ke.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e=`LineBasicMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new xe,ke.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e=`ClonedMaterial:`+n.uuid+`:`;r&&(e+=`derivative-tangents:`),i&&(e+=`vertex-colors:`),a&&(e+=`flat-shading:`);let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return je}loadMaterial(e){let t=this,r=this.json,i=this.extensions,o=r.materials[e],s,c={},l=o.extensions||{},u=[];if(l[Y.KHR_MATERIALS_UNLIT]){let e=i[Y.KHR_MATERIALS_UNLIT];s=e.getMaterialType(),u.push(e.extendParams(c,o,t))}else{let r=o.pbrMetallicRoughness||{};if(c.color=new n(1,1,1),c.opacity=1,Array.isArray(r.baseColorFactor)){let e=r.baseColorFactor;c.color.setRGB(e[0],e[1],e[2],C),c.opacity=e[3]}r.baseColorTexture!==void 0&&u.push(t.assignTexture(c,`map`,r.baseColorTexture,be)),c.metalness=r.metallicFactor===void 0?1:r.metallicFactor,c.roughness=r.roughnessFactor===void 0?1:r.roughnessFactor,r.metallicRoughnessTexture!==void 0&&(u.push(t.assignTexture(c,`metalnessMap`,r.metallicRoughnessTexture)),u.push(t.assignTexture(c,`roughnessMap`,r.metallicRoughnessTexture))),s=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,c)})))}o.doubleSided===!0&&(c.side=a);let d=o.alphaMode||So.OPAQUE;if(d===So.BLEND?(c.transparent=!0,c.depthWrite=!1):(c.transparent=!1,d===So.MASK&&(c.alphaTest=o.alphaCutoff===void 0?.5:o.alphaCutoff)),o.normalTexture!==void 0&&s!==D&&(u.push(t.assignTexture(c,`normalMap`,o.normalTexture)),c.normalScale=new A(1,1),o.normalTexture.scale!==void 0)){let e=o.normalTexture.scale;c.normalScale.set(e,e)}if(o.occlusionTexture!==void 0&&s!==D&&(u.push(t.assignTexture(c,`aoMap`,o.occlusionTexture)),o.occlusionTexture.strength!==void 0&&(c.aoMapIntensity=o.occlusionTexture.strength)),o.emissiveFactor!==void 0&&s!==D){let e=o.emissiveFactor;c.emissive=new n().setRGB(e[0],e[1],e[2],C)}return o.emissiveTexture!==void 0&&s!==D&&u.push(t.assignTexture(c,`emissiveMap`,o.emissiveTexture,be)),Promise.all(u).then(function(){let n=new s(c);return o.name&&(n.name=o.name),$(n,o),t.associations.set(n,{materials:e}),o.extensions&&Q(i,n,o),n})}createUniqueName(e){let t=ge.sanitizeNodeName(e||``);return t in this.nodeNamesUsed?t+`_`+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[Y.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return No(n,e,t)})}let a=[];for(let n=0,o=e.length;n0&&To(d,i),d.name=t.createUniqueName(i.name||`mesh_`+e),$(d,i),u.extensions&&Q(r,d,u),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n1?new d:t.length===1?t[0]:new x,o!==t[0])for(let e=0,n=t.length;e1){let e=r.associations.get(o);r.associations.set(o,{...e})}return r.associations.get(o).nodes=e,o}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,i=new d;n.name&&(i.name=r.createUniqueName(n.name)),$(i,n),n.extensions&&Q(t,i,n);let a=n.nodes||[],o=[];for(let e=0,t=a.length;e{let t=new Map;for(let[e,n]of r.associations)(e instanceof ke||e instanceof Be)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);n!=null&&t.set(e,n)}),t};return r.associations=t(i),i})}_createAnimationTracks(e,t,n,r,i){let a=[],o=e.name?e.name:e.uuid,s=[];Z[i.path]===Z.weights?e.traverse(function(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)}):s.push(o);let c;switch(Z[i.path]){case Z.weights:c=ue;break;case Z.rotation:c=_e;break;case Z.translation:case Z.scale:c=Ke;break;default:switch(n.itemSize){case 1:c=ue;break;case 2:case 3:default:c=Ke;break}break}let l=r.interpolation===void 0?se:xo[r.interpolation],u=this._getArrayFromAccessor(n);for(let e=0,n=s.length;enew pi(e)),Po.register(e=>new Ra(e)),Po)}async function Io(e){let t=Fo(),n=await t.loadAsync(e),r=n.userData;if(!r.vrmAnimations){console.warn(`No VRM animations found in the .vrma file`);return}if(r.vrmAnimations.length===0){console.warn(`No VRM animations found in the .vrma file`);return}return r.vrmAnimations[0]}async function Lo(e,t){if(!e){console.warn(`No VRM found`);return}if(t)return Oa(t,e)}function Ro(){let e=M(!1),t=M(0),n=M(0),r=M(Math.random()*5+1);function i(i,a){if(i?.expressionManager&&(n.value+=a,!e.value&&n.value>=r.value&&(e.value=!0,t.value=0),e.value)){t.value+=a/.2;let o=Math.sin(Math.PI*t.value);i.expressionManager.setValue(`blink`,o),t.value>=1&&(e.value=!1,n.value=0,i.expressionManager.setValue(`blink`,0),r.value=Math.random()*5+1)}}return{update:i}}function zo(){let e=-1,t=new j,n=0;function r(e){t.set(e.value.x+N(-.25,.25),e.value.y+N(-.25,.25),e.value.z)}function i(i,a,o){!i?.expressionManager||!i.lookAt||(n>=e?(r(a),n=0,e=Je()/1e3):t||r(a),i.lookAt.target||(i.lookAt.target=new x),i.lookAt.target.position.lerp(t,1),i.lookAt?.update(o),n+=o)}function a(e,n){t.set(n.x,n.y,n.z),!(!e?.expressionManager||!e.lookAt)&&(e.lookAt.target||(e.lookAt.target=new x),e.lookAt.target.position.lerp(t,1),e.lookAt?.update(.016))}return{update:i,instantUpdate:a}}async function Bo(e,t){let n=Fo(),r=await n.loadAsync(e,e=>t?.onProgress?.(e)),i=r.userData;if(!i.vrm)return;let a=i.vrm;if(G.removeUnnecessaryVertices(a.scene),G.combineSkeletons(a.scene),a.scene.traverse(e=>{e.frustumCulled=!1}),t?.lookAt&&a.lookAt){let e=new wa(a.lookAt);e.name=`lookAtQuaternionProxy`,a.scene.add(e)}let o=new d;o.add(a.scene),t?.scene&&t.scene.add(o);let s=new _().setFromObject(a.scene),c=new j,l=new j;s.getSize(c),s.getCenter(l),l.y+=c.y/5;let u=40/2*Math.PI/180,f=new j(c.x/16,c.y/6,-(c.y/3)/Math.tan(u));return{_vrm:a,_vrmGroup:o,modelCenter:l,modelSize:c,initialCameraOffset:f}}function Vo(e){let t=M(null),n=M(!1),r=M(0),i=M(new Map),a=M(new Map),o=M(),s=(e,t,n)=>e+(t-e)*n,c=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,l=new Map([[`happy`,{expression:[{name:`happy`,value:1,duration:.3},{name:`aa`,value:.3}],blendDuration:.3}],[`sad`,{expression:[{name:`sad`,value:1},{name:`oh`,value:.2}],blendDuration:.3}],[`angry`,{expression:[{name:`angry`,value:1},{name:`ee`,value:.4}],blendDuration:.2}],[`surprised`,{expression:[{name:`Surprised`,value:1},{name:`oh`,value:.6}],blendDuration:.1}],[`neutral`,{expression:[{name:`neutral`,value:1}],blendDuration:.5}]]),u=()=>{o.value&&=(clearTimeout(o.value),void 0)},d=o=>{if(u(),!l.has(o)){console.warn(`Emotion ${o} not found`);return}let s=l.get(o);if(t.value=o,n.value=!0,r.value=0,e.expressionManager){let t=Object.keys(e.expressionManager.expressionMap);for(let n of t)e.expressionManager.setValue(n,0)}i.value.clear(),a.value.clear();for(let t of s.expression||[]){let n=e.expressionManager?.getValue(t.name)||0;i.value.set(t.name,n),a.value.set(t.name,t.value)}},f=(e,t)=>{u(),d(e),o.value=setTimeout(()=>{d(`neutral`),o.value=void 0},t)},p=o=>{if(!n.value||!t.value)return;let u=l.get(t.value),d=u.blendDuration||.3;r.value+=o/d,r.value>=1&&(r.value=1,n.value=!1);for(let[t,n]of a.value){let a=i.value.get(t)||0,o=s(a,n,c(r.value));e.expressionManager?.setValue(t,o)}},m=(e,t)=>{l.set(e,t)},h=e=>{l.delete(e)},g=()=>{u()};return{currentEmotion:t,isTransitioning:n,setEmotion:d,setEmotionWithResetAfter:f,update:p,addEmotionState:m,removeEmotionState:h,dispose:g}}function Ho(e){return e===`skyBox`?`skyBox`:e===`hemisphere`?`hemisphere`:`off`}function Uo(e,t){if(!(!e?.uSHCoeffs||!e.uSHCoeffs.value||!Array.isArray(e.uSHCoeffs.value))&&t)for(let n=0;n<9;n++)e.uSHCoeffs.value[n]||=new j,e.uSHCoeffs.value[n].copy(t.coefficients[n])}function Wo(e){let t=e.customProgramCacheKey?.()??``;e.customProgramCacheKey=()=>`${t}|airi-diffuse-ibl`;let n=e.onBeforeCompile;e.onBeforeCompile=(t,r)=>{n?.(t,r),t.vertexShader.includes(`AIRI_DIFFUSE_VS_DECL`)||(t.vertexShader=` +#ifndef AIRI_DIFFUSE_VS_DECL +#define AIRI_DIFFUSE_VS_DECL +varying vec3 vWorldNormal; +#endif +\n${t.vertexShader}`),t.vertexShader.includes(`#include `)&&!t.vertexShader.includes(`AIRI_DIFFUSE_VS_APPLY`)&&(t.vertexShader=t.vertexShader.replace(`#include `,`#include + +#ifndef AIRI_DIFFUSE_VS_APPLY +#define AIRI_DIFFUSE_VS_APPLY +vWorldNormal = normalize( mat3( modelMatrix ) * objectNormal ); +#endif +`)),t.fragmentShader.includes(`AIRI_DIFFUSE_COMMON`)||(t.fragmentShader=t.fragmentShader.replace(`#include `,`#include + +#ifndef AIRI_DIFFUSE_COMMON +#define AIRI_DIFFUSE_COMMON +uniform int uNprEnvMode; // 0=off, 2=skybox +uniform float uEnvIntensity; +uniform vec3 uSHCoeffs[9]; +varying vec3 vWorldNormal; + +// 3rd-order SH constants +const float C0=0.2820947918; +const float C1=0.4886025119; +const float C2=1.0925484306; +const float C3=0.3153915653; +const float C4=0.5462742153; + +vec3 AIRI_evalIrradianceSH(vec3 n){ + n = normalize(n); + vec3 r = uSHCoeffs[0]*C0; + r += uSHCoeffs[1]*(-C1*n.y); + r += uSHCoeffs[2]*( C1*n.z); + r += uSHCoeffs[3]*(-C1*n.x); + r += uSHCoeffs[4]*( C2*n.x*n.y); + r += uSHCoeffs[5]*(-C2*n.y*n.z); + r += uSHCoeffs[6]*( C3*(3.0*n.z*n.z-1.0)); + r += uSHCoeffs[7]*(-C2*n.x*n.z); + r += uSHCoeffs[8]*( C4*(n.x*n.x-n.y*n.y)); + return r; +} +#endif +`)),t.fragmentShader.includes(`AIRI_DIFFUSE_APPLY`)||(t.fragmentShader=t.fragmentShader.replace(`#include `,` +#ifndef AIRI_DIFFUSE_APPLY +#define AIRI_DIFFUSE_APPLY +if (uNprEnvMode == 2) { + vec3 I = AIRI_evalIrradianceSH(normalize(vWorldNormal)); + gl_FragColor.rgb += (gl_FragColor.rgb / PI) * I * uEnvIntensity; +} +#endif + +#include `));let i=Array.from({length:9},()=>new j);t.uniforms.uNprEnvMode||={value:0},t.uniforms.uEnvIntensity||={value:0},t.uniforms.uSHCoeffs||={value:i},(e.userData||={}).__airiIbl=t.uniforms},`toneMapped`in e&&(e.toneMapped=!1),e.needsUpdate=!0}function Go(e,t){let n=t.mode===`skyBox`?2:0;e.traverse(e=>{let r=e,i=r.material,a=i?Array.isArray(i)?i:[i]:[];a.forEach(e=>{let r=e?.userData?.__airiIbl;r&&(r.uNprEnvMode.value=n,r.uEnvIntensity.value=t.intensity,Uo(r,t.sh??null))})})}function Ko(e){let t=new ce;t.name=`AIRI_IBL_Probe`,e.add(t);function n(e,n,r){t.intensity=e===`skyBox`?n:0,r&&t.sh.copy(r)}function r(){t.parent?.remove(t)}return{update:n,dispose:r}}export{Ko as b,Wo as c,Ho as d,Go as e,Vo as f,Bo as g,Lo as h,Io as i,Ro as j,zo as k,G as l,Ye as m,Je as n,qe as o,N as p}; \ No newline at end of file diff --git a/assets/icon-animation-B3otQp3y.js b/assets/icon-animation-CL2bLS_O.js similarity index 64% rename from assets/icon-animation-B3otQp3y.js rename to assets/icon-animation-CL2bLS_O.js index 4ee32fdb11383cdc3a11fef3bd96f6368fd2de16..8e440565e97c7acd4f30f0d30a67e726f9568896 100644 --- a/assets/icon-animation-B3otQp3y.js +++ b/assets/icon-animation-CL2bLS_O.js @@ -1 +1 @@ -import{c as e,eO as t,eP as n,ey as r,f1 as i}from"./index-DEhol03r.js";function a(a){let o=i(!1),s=i(!1),c=i(a),l=e(),u=r(()=>s.value&&!l.disableTransitions&&l.usePageSpecificTransitions);return t(()=>{s.value=!0,requestAnimationFrame(()=>{o.value=!0})}),n(()=>{o.value=!1,s.value=!1}),{iconAnimationStarted:o,showIconAnimation:u,animationIcon:c}}export{a as b}; \ No newline at end of file +import{c as e,eP as t,eQ as n,ez as r,f2 as i}from"./index-D3Bcbz9S.js";function a(a){let o=i(!1),s=i(!1),c=i(a),l=e(),u=r(()=>s.value&&!l.disableTransitions&&l.usePageSpecificTransitions);return t(()=>{s.value=!0,requestAnimationFrame(()=>{o.value=!0})}),n(()=>{o.value=!1,s.value=!1}),{iconAnimationStarted:o,showIconAnimation:u,animationIcon:c}}export{a as b}; \ No newline at end of file diff --git a/assets/image--p_SlIoG.js b/assets/image--p_SlIoG.js deleted file mode 100644 index 029fe3d088119cb34fca21e63f892c07d32fc423..0000000000000000000000000000000000000000 --- a/assets/image--p_SlIoG.js +++ /dev/null @@ -1,2 +0,0 @@ -import{aX as e,bT as t,eB as n,eC as r,eG as i,eQ as a,ez as o,f1 as s,f6 as c,fa as l}from"./index-DEhol03r.js";const u={bg:`neutral-100`,flex:`~ col`,"items-center":``,"justify-center":``,"rounded-lg":``,"px-4":``,"py-3":``},d={key:0},f=[`src`],p={bg:`neutral-100`,class:`text-wrap-any`,"max-h":`100`,"overflow-scroll":``,"rounded-lg":``,"text-wrap":``,"text-black":``,"font-mono":``};var m=i({__name:`image`,setup(e){let i=s(),m=s(``),{copy:h}=t({source:m});async function g(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=e=>{t(e.target?.result?.toString()||``)},r.onerror=e=>{n(e)},r.readAsDataURL(e)})}async function _(e){let t=e.target,n=t.files?.[0];if(n){i.value=n;let e=await g(n);m.value=e}}return(e,t)=>(a(),r(`div`,null,[o(`label`,u,[o(`input`,{type:`file`,accept:`image/*`,hidden:``,onChange:_},null,32),t[1]||=o(`span`,null,`Upload Image`,-1)]),m.value?(a(),r(`div`,d,[o(`img`,{src:m.value,alt:`Uploaded Image`,"w-100":``},null,8,f),o(`pre`,p,` `+l(m.value)+` - `,1),o(`button`,{bg:`primary-500`,text:`white`,"mt-4":``,"rounded-lg":``,"px-4":``,"py-2":``,onClick:t[0]||=()=>c(h)()},` Copy Data URL `)])):n(``,!0)]))}}),h=e(m,[[`__scopeId`,`data-v-7edd53e6`]]);export{h as default}; \ No newline at end of file diff --git a/assets/image-CD7wsU_e.js b/assets/image-CD7wsU_e.js new file mode 100644 index 0000000000000000000000000000000000000000..175087aec56f8bea8d5a7ae56055bcef12fe41ad --- /dev/null +++ b/assets/image-CD7wsU_e.js @@ -0,0 +1,2 @@ +import{aY as e,bU as t,eA as n,eC as r,eD as i,eH as a,eR as o,f2 as s,f7 as c,fb as l}from"./index-D3Bcbz9S.js";const u={bg:`neutral-100`,flex:`~ col`,"items-center":``,"justify-center":``,"rounded-lg":``,"px-4":``,"py-3":``},d={key:0},f=[`src`],p={bg:`neutral-100`,class:`text-wrap-any`,"max-h":`100`,"overflow-scroll":``,"rounded-lg":``,"text-wrap":``,"text-black":``,"font-mono":``};var m=a({__name:`image`,setup(e){let a=s(),m=s(``),{copy:h}=t({source:m});async function g(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=e=>{t(e.target?.result?.toString()||``)},r.onerror=e=>{n(e)},r.readAsDataURL(e)})}async function _(e){let t=e.target,n=t.files?.[0];if(n){a.value=n;let e=await g(n);m.value=e}}return(e,t)=>(o(),i(`div`,null,[n(`label`,u,[n(`input`,{type:`file`,accept:`image/*`,hidden:``,onChange:_},null,32),t[1]||=n(`span`,null,`Upload Image`,-1)]),m.value?(o(),i(`div`,d,[n(`img`,{src:m.value,alt:`Uploaded Image`,"w-100":``},null,8,f),n(`pre`,p,` `+l(m.value)+` + `,1),n(`button`,{bg:`primary-500`,text:`white`,"mt-4":``,"rounded-lg":``,"px-4":``,"py-2":``,onClick:t[0]||=()=>c(h)()},` Copy Data URL `)])):r(``,!0)]))}}),h=e(m,[[`__scopeId`,`data-v-7edd53e6`]]);export{h as default}; \ No newline at end of file diff --git a/assets/index-Bg8-TZ3F.css b/assets/index-C3z_mh4Z.css similarity index 99% rename from assets/index-Bg8-TZ3F.css rename to assets/index-C3z_mh4Z.css index 1fc593c4229485bbc592da35e3a37fe5cdaf834b..02f6ab41c61736f318ed6f0c7ed95c262ecfddeb 100644 --- a/assets/index-Bg8-TZ3F.css +++ b/assets/index-C3z_mh4Z.css @@ -1 +1 @@ -.form_input-range[data-v-3a236ac7]{--height:2em;min-height:var(--height);appearance:none;--thumb-width:4px;--thumb-height:var(--height);--thumb-box-shadow:0 0 0px #e6e6e6;--thumb-border:none;--thumb-border-radius:999px;--thumb-background:oklch(80% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0));--thumb-background-hover:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0));--thumb-background-active:oklch(70% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0));--track-height:calc(var(--height) - var(--track-value-padding)*2);--track-box-shadow:none;--track-border:solid 2px #eee;--track-border-radius:6px;--track-background:#eee9;--track-background-hover:#eee9;--track-background-active:#eee9;--track-value-background:#fff;--track-value-background-hover:#fff;--track-value-background-active:#fff;--track-value-padding:2px;background:0 0;border-radius:4px;transition:background-color .2s}.dark .form_input-range[data-v-3a236ac7]{--thumb-background:oklch(70% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0));--thumb-background-hover:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0));--thumb-background-active:oklch(80% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0));--track-border:solid 2px #2c2c2c;--track-background:#2c2c2cb3;--track-background-hover:#2c2c2cb3;--track-background-active:#2c2c2cb3;--track-value-background:#a4a4a4;--track-value-background-hover:#a4a4a4;--track-value-background-active:#a4a4a4}.form_input-range.slider-progress[data-v-3a236ac7]{--range:calc(var(--max) - var(--min));--ratio:calc((var(--value) - var(--min))/var(--range));--sx:calc(.5*0em + var(--ratio)*(100% - 0em))}.form_input-range[data-v-3a236ac7]:focus{outline:none}.form_input-range[data-v-3a236ac7]::-webkit-slider-thumb{appearance:none;width:var(--thumb-width);height:var(--thumb-height);border-radius:var(--thumb-border-radius);background:var(--thumb-background);border:var(--thumb-border);box-shadow:var(--thumb-box-shadow);margin-top:calc(var(--track-height)*.5 - var(--thumb-height)*.5 - 2px);margin-left:calc(0 - var(--track-value-padding));cursor:col-resize;transition:background .2s ease-in-out,box-shadow .2s ease-in-out,border-color .2s ease-in-out,transform .2s cubic-bezier(.165,.84,.44,1),width .2s cubic-bezier(.165,.84,.44,1)}.form_input-range[data-v-3a236ac7]::-webkit-slider-runnable-track{height:var(--track-height);border:var(--track-border);border-radius:var(--track-border-radius);background:var(--track-background);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:var(--track-box-shadow);cursor:col-resize;transition:box-shadow .2s ease-in-out,border-color .2s ease-in-out;position:relative}.form_input-range[data-v-3a236ac7]::-webkit-slider-thumb:hover{background:var(--thumb-background-hover);width:calc(var(--thumb-width)*1.6);transform:scaleY(1.2)}.form_input-range[data-v-3a236ac7]:hover::-webkit-slider-runnable-track{background:var(--track-background-hover)}.form_input-range[data-v-3a236ac7]::-webkit-slider-thumb:active{background:var(--thumb-background-active)}.form_input-range[data-v-3a236ac7]:active::-webkit-slider-runnable-track{background:var(--track-background-active)}.form_input-range.slider-progress[data-v-3a236ac7]::-webkit-slider-runnable-track{margin-right:calc(0 - var(--track-value-padding));background:linear-gradient(var(--track-value-background),var(--track-value-background))0/var(--sx)100% no-repeat,var(--track-background)}.form_input-range.slider-progress[data-v-3a236ac7]:hover::-webkit-slider-runnable-track{background:linear-gradient(var(--track-value-background-hover),var(--track-value-background-hover))0/var(--sx)100% no-repeat,var(--track-background-hover)}.form_input-range.slider-progress[data-v-3a236ac7]:active::-webkit-slider-runnable-track{background:linear-gradient(var(--track-value-background-active),var(--track-value-background-active))0/var(--sx)100% no-repeat,var(--track-background-active)}.form_input-range[data-v-3a236ac7]::-moz-range-thumb{width:var(--thumb-width);height:var(--thumb-height);border-radius:var(--thumb-border-radius);background:var(--thumb-background);box-shadow:var(--thumb-box-shadow);cursor:col-resize;margin-left:calc(0 - var(--track-value-padding));border:none;transition:background .2s ease-in-out,box-shadow .2s ease-in-out,border-color .2s ease-in-out,transform .2s cubic-bezier(.165,.84,.44,1),width .2s cubic-bezier(.165,.84,.44,1)}.form_input-range[data-v-3a236ac7]::-moz-range-track{height:var(--track-height);border:var(--track-border);border-radius:var(--track-border-radius);background:var(--track-background);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:var(--track-box-shadow);cursor:col-resize;width:calc(100% - var(--track-value-padding)*2)}.form_input-range[data-v-3a236ac7]::-moz-range-thumb:hover{background:var(--thumb-background-hover);width:calc(var(--thumb-width)*1.6);transform:scaleY(1.2)}.form_input-range[data-v-3a236ac7]:hover::-moz-range-track{background:var(--track-background-hover)}.form_input-range[data-v-3a236ac7]::-moz-range-thumb:active{background:var(--thumb-background-active)}.form_input-range[data-v-3a236ac7]:active::-moz-range-track{background:var(--track-background-active)}.form_input-range.slider-progress[data-v-3a236ac7]::-moz-range-track{background:linear-gradient(var(--track-value-background),var(--track-value-background))0/var(--sx)100% no-repeat,var(--track-background)}.form_input-range.slider-progress[data-v-3a236ac7]:hover::-moz-range-track{background:linear-gradient(var(--track-value-background-hover),var(--track-value-background-hover))0/var(--sx)100% no-repeat,var(--track-background-hover)}.form_input-range.slider-progress[data-v-3a236ac7]:active::-moz-range-track{background:linear-gradient(var(--track-value-background-active),var(--track-value-background-active))0/var(--sx)100% no-repeat,var(--track-background-active)}.form_input-range[data-v-3a236ac7]::-ms-fill-upper{background:0 0;border-color:#0000}.form_input-range[data-v-3a236ac7]::-ms-fill-lower{background:0 0;border-color:#0000}.form_input-range[data-v-3a236ac7]::-ms-thumb{width:var(--thumb-width);height:var(--thumb-height);border-radius:var(--thumb-border-radius);background:var(--thumb-background);border:var(--thumb-border);box-shadow:var(--thumb-box-shadow);margin-top:0;margin-left:calc(0 - var(--track-value-padding));box-sizing:border-box;cursor:col-resize;transition:background .2s ease-in-out,box-shadow .2s ease-in-out,border-color .2s ease-in-out,transform .2s cubic-bezier(.165,.84,.44,1),width .2s cubic-bezier(.165,.84,.44,1)}.form_input-range[data-v-3a236ac7]::-ms-track{height:var(--track-height);border-radius:var(--track-border-radius);background:var(--track-background);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:var(--track-border);box-shadow:var(--track-box-shadow);box-sizing:border-box;cursor:col-resize}.form_input-range[data-v-3a236ac7]::-ms-thumb:hover{background:var(--thumb-background-hover);width:calc(var(--thumb-width)*1.6);transform:scaleY(1.2)}.form_input-range[data-v-3a236ac7]:hover::-ms-track{background:var(--track-background-hover)}.form_input-range[data-v-3a236ac7]::-ms-thumb:active{background:var(--thumb-background-active)}.form_input-range[data-v-3a236ac7]:active::-ms-track{background:var(--track-background-active)}.form_input-range.slider-progress[data-v-3a236ac7]::-ms-fill-lower{height:var(--track-height);border-radius:var(--track-border-radius)0 0 var(--track-border-radius);background:var(--track-value-background);margin:0;margin-left:calc(var(--track-value-padding));margin-right:calc(0 - var(--track-value-padding));border:none;border-right-width:0}.form_input-range.slider-progress[data-v-3a236ac7]:hover::-ms-fill-lower{background:var(--track-value-background-hover)}.form_input-range.slider-progress[data-v-3a236ac7]:active::-ms-fill-lower{background:var(--track-value-background-active)}.color-hue-range[data-v-3d01d2fa]{appearance:none;background:linear-gradient(90deg,#ffb2cb,#ffba76,#bedf0d,#00efd2,#90d7ff,#d8bfff,#ffb2cb);background:linear-gradient(90deg,lab(80.0841% 65.3995 .860357),lab(81.7178% 42.879 86.4545),lab(84.2289% -27.648 80.2367),lab(85.1086% -71.1664 -.472653),lab(82.2823% -19.2763 -62.1951),lab(79.7314% 41.9269 -62.2558),lab(80.0841% 65.3994 .860381));border-radius:.5rem;height:2.5rem}.color-hue-range[data-v-3d01d2fa]::-webkit-slider-thumb{cursor:pointer;cursor:col-resize;appearance:none;--un-border-opacity:1;border-width:2px;border-color:rgb(115 115 115/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(82 82 82/var(--un-bg-opacity));background-color:rgb(38 38 38/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,#0000001a);width:.25rem;height:3rem;box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-radius:.375rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.color-hue-range[data-v-3d01d2fa]::-webkit-slider-thumb:hover{width:.5rem;height:3.25rem}.dark .color-hue-range[data-v-3d01d2fa]::-webkit-slider-thumb{cursor:pointer;cursor:col-resize;appearance:none;--un-border-opacity:1;border-width:2px;border-color:rgb(255 255 255/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity));background-color:rgb(212 212 212/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset)0 4px 6px -1px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 2px 4px -2px var(--un-shadow-color,#0000001a);width:.25rem;height:3rem;box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-radius:.375rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark .color-hue-range[data-v-3d01d2fa]::-webkit-slider-thumb:hover{width:.5rem;height:3.25rem}.color-hue-range[data-v-3d01d2fa]::-moz-range-thumb{cursor:pointer;cursor:col-resize;appearance:none;--un-border-opacity:1;border-width:2px;border-color:rgb(115 115 115/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(82 82 82/var(--un-bg-opacity));background-color:rgb(38 38 38/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,#0000001a);width:.25rem;height:3rem;box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-radius:.375rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.color-hue-range[data-v-3d01d2fa]::-moz-range-thumb:hover{width:.5rem;height:3.25rem}.dark .color-hue-range[data-v-3d01d2fa]::-moz-range-thumb{cursor:pointer;cursor:col-resize;appearance:none;--un-border-opacity:1;border-width:2px;border-color:rgb(255 255 255/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity));background-color:rgb(212 212 212/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset)0 4px 6px -1px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 2px 4px -2px var(--un-shadow-color,#0000001a);width:.25rem;height:3rem;box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-radius:.375rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark .color-hue-range[data-v-3d01d2fa]::-moz-range-thumb:hover{width:.5rem;height:3.25rem}.form_input-round-range[data-v-ac8cc218]{--height:2em;min-height:var(--height);appearance:none;--thumb-width:var(--height);--thumb-height:var(--height);--thumb-box-shadow:none;--thumb-border:none;--thumb-border-radius:0px;--thumb-background:transparent;--track-height:calc(var(--height) - var(--track-value-padding)*2);--track-box-shadow:0 0 12px -2px #00000038;--track-border:none;--track-border-radius:10px;--track-background:#0006;--track-value-background:#fff;--track-value-padding:0px;background:0 0;border-radius:4px;transition:background-color .2s}[data-direction=vertical].form_input-round-range[data-v-ac8cc218]{transform:rotate(180deg)}.dark .form_input-round-range[data-v-ac8cc218]{--thumb-background:#eee;--track-border:none;--track-background:#636363b3;--track-box-shadow:0 0 12px -2px #00000038;--track-value-background:#eee}.form_input-round-range.slider-progress[data-v-ac8cc218]{--range:calc(var(--max) - var(--min));--ratio:calc((var(--value) - var(--min))/var(--range));--sx:calc(.5*0em + var(--ratio)*(100% - 0em))}.form_input-round-range[data-v-ac8cc218]:focus{outline:none}.form_input-round-range[data-v-ac8cc218]::-webkit-slider-thumb{appearance:none;width:var(--thumb-width);height:var(--thumb-height);border-radius:var(--thumb-border-radius);background:var(--thumb-background);border:var(--thumb-border);box-shadow:var(--thumb-box-shadow);margin-top:0;margin-left:calc(0 - var(--track-value-padding));cursor:col-resize;transition:background .2s ease-in-out,box-shadow .2s ease-in-out,border-color .2s ease-in-out,transform .2s cubic-bezier(.165,.84,.44,1),width .2s cubic-bezier(.165,.84,.44,1)}[data-direction=vertical][data-v-ac8cc218]::-webkit-slider-thumb{cursor:ns-resize}.form_input-round-range[data-v-ac8cc218]::-webkit-slider-runnable-track{height:var(--track-height);border:var(--track-border);border-radius:var(--track-border-radius);background:var(--track-background);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:var(--track-box-shadow);cursor:col-resize;transition:box-shadow .2s ease-in-out,border-color .2s ease-in-out;position:relative;overflow:hidden}[data-direction=vertical][data-v-ac8cc218]::-webkit-slider-runnable-track{cursor:ns-resize}.form_input-round-range.slider-progress[data-v-ac8cc218]::-webkit-slider-runnable-track{background:linear-gradient(var(--track-value-background),var(--track-value-background))0/var(--sx)100% no-repeat,var(--track-background)}[data-direction=vertical].form_input-round-range.slider-progress[data-v-ac8cc218]::-webkit-slider-runnable-track{background:linear-gradient(var(--track-value-background)var(--sx),var(--track-background)var(--sx))no-repeat}.form_input-round-range[data-v-ac8cc218]::-moz-range-thumb{width:var(--thumb-width);height:var(--thumb-height);border-radius:var(--thumb-border-radius);background:var(--thumb-background);box-shadow:var(--thumb-box-shadow);cursor:col-resize;margin-left:calc(0 - var(--track-value-padding));border:none;transition:background .2s ease-in-out,box-shadow .2s ease-in-out,border-color .2s ease-in-out,transform .2s cubic-bezier(.165,.84,.44,1),width .2s cubic-bezier(.165,.84,.44,1)}[data-direction=vertical][data-v-ac8cc218]::-moz-range-thumb{cursor:ns-resize}.form_input-round-range[data-v-ac8cc218]::-moz-range-track{height:var(--track-height);border:var(--track-border);border-radius:var(--track-border-radius);background:var(--track-background);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:var(--track-box-shadow);cursor:col-resize;width:calc(100% - var(--track-value-padding)*2);overflow:hidden}[data-direction=vertical][data-v-ac8cc218]::-moz-range-track{cursor:ns-resize}.form_input-round-range.slider-progress[data-v-ac8cc218]::-moz-range-track{background:linear-gradient(var(--track-value-background),var(--track-value-background))0/var(--sx)100% no-repeat,var(--track-background)}[data-direction=vertical].form_input-round-range.slider-progress[data-v-ac8cc218]::-moz-range-track{background:linear-gradient(var(--track-value-background)var(--sx),var(--track-background)var(--sx))no-repeat}.form_input-round-range[data-v-ac8cc218]::-ms-fill-upper{background:0 0;border-color:#0000}.form_input-round-range[data-v-ac8cc218]::-ms-fill-lower{background:0 0;border-color:#0000}.form_input-round-range[data-v-ac8cc218]::-ms-thumb{width:var(--thumb-width);height:var(--thumb-height);border-radius:var(--thumb-border-radius);background:var(--thumb-background);border:var(--thumb-border);box-shadow:var(--thumb-box-shadow);box-sizing:border-box;cursor:col-resize;transition:background .2s ease-in-out,box-shadow .2s ease-in-out,border-color .2s ease-in-out,transform .2s cubic-bezier(.165,.84,.44,1),width .2s cubic-bezier(.165,.84,.44,1)}[data-direction=vertical][data-v-ac8cc218]::-ms-thumb{cursor:ns-resize}.form_input-round-range[data-v-ac8cc218]::-ms-track{height:var(--track-height);border-radius:var(--track-border-radius);background:var(--track-background);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:var(--track-border);box-shadow:var(--track-box-shadow);box-sizing:border-box;cursor:col-resize;overflow:hidden}[data-direction=vertical][data-v-ac8cc218]::-ms-track{cursor:ns-resize}.form_input-round-range.slider-progress[data-v-ac8cc218]::-ms-fill-lower{height:var(--track-height);border-radius:var(--track-border-radius)0 0 var(--track-border-radius);background:var(--track-value-background);border:none;border-right-width:0;margin:0}data-[data-reka-popper-content-wrapper=""][data-v-a21ce8c7]{z-index:20}:is(.hue-slider,.alpha-slider)::-webkit-slider-thumb{cursor:pointer;cursor:col-resize;appearance:none;--un-border-opacity:1;border-width:2px;border-color:rgb(115 115 115/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(82 82 82/var(--un-bg-opacity));background-color:rgb(38 38 38/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,#0000001a);width:.25rem;height:3rem;box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-radius:.375rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(.hue-slider,.alpha-slider)::-webkit-slider-thumb:hover{width:.5rem;height:3.25rem}.dark :is(.hue-slider,.alpha-slider)::-webkit-slider-thumb{cursor:pointer;cursor:col-resize;appearance:none;--un-border-opacity:1;border-width:2px;border-color:rgb(255 255 255/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity));background-color:rgb(212 212 212/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset)0 4px 6px -1px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 2px 4px -2px var(--un-shadow-color,#0000001a);width:.25rem;height:3rem;box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-radius:.375rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark :is(.hue-slider,.alpha-slider)::-webkit-slider-thumb:hover{width:.5rem;height:3.25rem}:is(.hue-slider,.alpha-slider)::-moz-range-thumb{cursor:pointer;cursor:col-resize;appearance:none;--un-border-opacity:1;border-width:2px;border-color:rgb(115 115 115/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(82 82 82/var(--un-bg-opacity));background-color:rgb(38 38 38/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,#0000001a);width:.25rem;height:3rem;box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-radius:.375rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(.hue-slider,.alpha-slider)::-moz-range-thumb:hover{width:.5rem;height:3.25rem}.dark :is(.hue-slider,.alpha-slider)::-moz-range-thumb{cursor:pointer;cursor:col-resize;appearance:none;--un-border-opacity:1;border-width:2px;border-color:rgb(255 255 255/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity));background-color:rgb(212 212 212/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset)0 4px 6px -1px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 2px 4px -2px var(--un-shadow-color,#0000001a);width:.25rem;height:3rem;box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-radius:.375rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark :is(.hue-slider,.alpha-slider)::-moz-range-thumb:hover{width:.5rem;height:3.25rem}.range-slider[data-v-c1b3c1a7]{--range:calc(var(--max) - var(--min));--ratio:calc((var(--value) - var(--min))/var(--range));--progress:calc(var(--ratio)*100%);--progress-color:#cccccc87;--track-color:#f5f5f5bf;transition:all .2s ease-in-out}.range-slider[data-v-c1b3c1a7]:hover{--progress-color:#5f5f5f87}.dark .range-slider[data-v-c1b3c1a7]{--progress-color:#979797cc;--track-color:#171717}.range-slider[data-v-c1b3c1a7]::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--progress-color)0%,var(--progress-color)var(--progress),var(--track-color)var(--progress),var(--track-color)100%);cursor:col-resize;border-radius:6px;height:100%;transition:all .2s ease-in-out}.range-slider[data-v-c1b3c1a7]::-webkit-slider-thumb{appearance:none;cursor:col-resize;background:0 0;border:none;width:2px;height:100%;transition:all .2s}.range-slider[data-v-c1b3c1a7]::-webkit-slider-thumb:hover{background:#fff0;width:6px}.range-slider[data-v-c1b3c1a7]::-moz-range-track{background:linear-gradient(to right,#c6c6c6 0%,#c6c6c6 var(--progress),#ececec var(--progress),#ececec 100%);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);cursor:col-resize;border:none;border-radius:6px;height:100%}.dark .range-slider[data-v-c1b3c1a7]::-moz-range-track{background:linear-gradient(to right,#979797cc 0%,#979797cc var(--progress),#171717 var(--progress),#171717 100%)}.range-slider[data-v-c1b3c1a7]::-moz-range-thumb{cursor:col-resize;background:0 0;border:none;border-radius:0;width:2px;height:100%;transition:all .2s}.range-slider[data-v-c1b3c1a7]::-moz-range-thumb:hover{background:#fff0;width:6px}.range-slider[data-v-c1b3c1a7]:disabled{opacity:.5;pointer-events:none}.volumed[data-v-d8ce56aa]{transform-style:preserve-3d;width:fit-content;height:fit-content}.test-dummy-flat[data-v-28f8c660]{display:inline-block;position:relative}.test-dummy-flat .marker[data-v-28f8c660]{background:conic-gradient(#ffeb3b 0deg 90deg,#000 90deg 180deg,#ffeb3b 180deg 270deg,#000 270deg 360deg);border-radius:50%;position:absolute;inset:0;box-shadow:0 4px 12px #b9b9b933}.dark .test-dummy-flat .marker[data-v-28f8c660]{box-shadow:0 4px 12px #0003}.fade-enter-active[data-v-6b4f300d],.fade-leave-active[data-v-6b4f300d]{transition:opacity .2s}.fade-enter-from[data-v-6b4f300d],.fade-leave-to[data-v-6b4f300d]{opacity:0}.fade-enter-to[data-v-6b4f300d],.fade-leave-from[data-v-6b4f300d]{opacity:1}.markdown-content[data-v-b8e3947c] pre{border-radius:6px;max-width:100%;margin:.5rem 0;padding:1rem;overflow-x:auto}.markdown-content[data-v-b8e3947c] code{font-family:Fira Code,Monaco,Consolas,monospace;font-size:.875em}.markdown-content[data-v-b8e3947c] pre code{width:fit-content;min-width:100%;display:block}.markdown-content[data-v-b8e3947c] pre.shiki{white-space:pre;overflow-x:auto}.markdown-content[data-v-b8e3947c] .shiki{border-radius:6px;margin:.5rem 0;padding:1rem}.markdown-content[data-v-b8e3947c] pre:not(.shiki){background:#f6f8fa;border:1px solid #d0d7de}.dark .markdown-content[data-v-b8e3947c] pre:not(.shiki){background:#161b22;border:1px solid #30363d}.menu-icon-item[data-v-d08788bb]{position:relative;overflow:hidden}.menu-icon-item[data-v-d08788bb]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to);--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));content:"";z-index:-1;opacity:0;width:25%;height:100%;transition:all .4s ease-in-out;position:absolute;inset:0;-webkit-mask-image:linear-gradient(120deg,#fff 30%,#0000 50%);mask-image:linear-gradient(120deg,#fff 30%,#0000 50%)}.dark .menu-icon-item[data-v-d08788bb]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.menu-icon-item[data-v-d08788bb]:hover:before,.menu-icon-item._hover[data-v-d08788bb]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%;--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));opacity:1;width:85%}.dark .menu-icon-item[data-v-d08788bb]:hover:before,.dark .menu-icon-item._hover[data-v-d08788bb]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%}.menu-icon-item[data-v-d08788bb]:after{background-image:radial-gradient(circle at 1px 1px,rgb(229 229 229/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.6;z-index:-2;content:"";background-size:10px 10px;width:100%;height:100%;transition:all .4s ease-in-out;position:absolute;inset:0;-webkit-mask-image:linear-gradient(165deg,#fff 30%,#0000 50%);mask-image:linear-gradient(165deg,#fff 30%,#0000 50%)}.menu-icon-item[data-v-d08788bb]:after:hover{background-image:radial-gradient(circle at 1px 1px,oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.dark .menu-icon-item[data-v-d08788bb]:after{background-image:radial-gradient(circle at 1px 1px,rgb(64 64 64/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.25}.dark .menu-icon-item[data-v-d08788bb]:after:hover{background-image:radial-gradient(circle at 1px 1px,oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.menu-icon-item-icon[data-v-d08788bb]{opacity:.5}.menu-icon-item:hover .menu-icon-item-title[data-v-d08788bb],.menu-icon-item._hover .menu-icon-item-title[data-v-d08788bb]{--un-text-opacity:1;color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.menu-icon-item:hover .menu-icon-item-description[data-v-d08788bb],.menu-icon-item._hover .menu-icon-item-description[data-v-d08788bb]{--un-text-opacity:1;color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity));opacity:.8}.menu-icon-item:hover .menu-icon-item-icon[data-v-d08788bb],.menu-icon-item._hover .menu-icon-item-icon[data-v-d08788bb]{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity));scale:1.2}.dark .menu-icon-item:hover .menu-icon-item-title[data-v-d08788bb],.dark .menu-icon-item._hover .menu-icon-item-title[data-v-d08788bb]{--un-text-opacity:1;color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .menu-icon-item:hover .menu-icon-item-description[data-v-d08788bb],.dark .menu-icon-item._hover .menu-icon-item-description[data-v-d08788bb]{--un-text-opacity:1;color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity));opacity:.8}.dark .menu-icon-item:hover .menu-icon-item-icon[data-v-d08788bb],.dark .menu-icon-item._hover .menu-icon-item-icon[data-v-d08788bb]{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.menu-icon-status-item[data-v-c70e1337]{position:relative;overflow:hidden}.menu-icon-status-item[data-v-c70e1337]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to);--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));content:"";z-index:0;opacity:0;width:25%;height:100%;transition:all .4s ease-in-out;position:absolute;inset:0;-webkit-mask-image:linear-gradient(120deg,#fff 100%);mask-image:linear-gradient(120deg,#fff 100%)}.dark .menu-icon-status-item[data-v-c70e1337]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.menu-icon-status-item[data-v-c70e1337]:hover:before,.menu-icon-status-item._hover[data-v-c70e1337]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%;--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));opacity:1;width:50%}.dark .menu-icon-status-item[data-v-c70e1337]:hover:before,.dark .menu-icon-status-item._hover[data-v-c70e1337]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%}.menu-icon-status-item-link[data-v-c70e1337]:after{background-image:radial-gradient(circle at 1px 1px,rgb(229 229 229/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.8;z-index:-2;content:"";background-size:10px 10px;width:100%;height:100%;transition:all .4s ease-in-out;position:absolute;inset:0;-webkit-mask-image:linear-gradient(165deg,#fff 30%,#0000 50%);mask-image:linear-gradient(165deg,#fff 30%,#0000 50%)}.menu-icon-status-item-link[data-v-c70e1337]:after:hover{background-image:radial-gradient(circle at 1px 1px,oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.dark .menu-icon-status-item-link[data-v-c70e1337]:after{background-image:radial-gradient(circle at 1px 1px,rgb(64 64 64/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.4}.dark .menu-icon-status-item-link[data-v-c70e1337]:after:hover{background-image:radial-gradient(circle at 1px 1px,oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.menu-icon-status-item-icon-color[data-v-c70e1337]{opacity:.5}.menu-icon-status-item:hover .menu-icon-status-item-title[data-v-c70e1337],.menu-icon-status-item._hover .menu-icon-status-item-title[data-v-c70e1337]{--un-text-opacity:1;color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.menu-icon-status-item:hover .menu-icon-status-item-description[data-v-c70e1337],.menu-icon-status-item._hover .menu-icon-status-item-description[data-v-c70e1337]{--un-text-opacity:1;color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity));opacity:.8}.menu-icon-status-item:hover .menu-icon-status-item-icon[data-v-c70e1337],.menu-icon-status-item._hover .menu-icon-status-item-icon[data-v-c70e1337],.menu-icon-status-item:hover .menu-icon-status-item-icon-color[data-v-c70e1337],.menu-icon-status-item._hover .menu-icon-status-item-icon-color[data-v-c70e1337]{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity));scale:1.2}.dark .menu-icon-status-item:hover .menu-icon-status-item-title[data-v-c70e1337],.dark .menu-icon-status-item._hover .menu-icon-status-item-title[data-v-c70e1337]{--un-text-opacity:1;color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .menu-icon-status-item:hover .menu-icon-status-item-description[data-v-c70e1337],.dark .menu-icon-status-item._hover .menu-icon-status-item-description[data-v-c70e1337]{--un-text-opacity:1;color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity));opacity:.8}.dark .menu-icon-status-item:hover .menu-icon-status-item-icon[data-v-c70e1337],.dark .menu-icon-status-item._hover .menu-icon-status-item-icon[data-v-c70e1337],.dark .menu-icon-status-item:hover .menu-icon-status-item-icon-color[data-v-c70e1337],.dark .menu-icon-status-item._hover .menu-icon-status-item-icon-color[data-v-c70e1337]{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.form_radio-card-detail[data-v-fb6236db]{position:relative;overflow:hidden}.form_radio-card-detail[data-v-fb6236db]:before{pointer-events:none;--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to);--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));content:"";z-index:0;opacity:0;width:25%;height:100%;transition:all .35s ease-in-out;position:absolute;inset:0;-webkit-mask-image:linear-gradient(120deg,#fff 100%);mask-image:linear-gradient(120deg,#fff 100%)}.dark .form_radio-card-detail[data-v-fb6236db]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.form_radio-card-detail[data-v-fb6236db]:hover:before,.form_radio-card-detail._hover[data-v-fb6236db]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%;--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));opacity:1;width:85%}.dark .form_radio-card-detail[data-v-fb6236db]:hover:before,.dark .form_radio-card-detail._hover[data-v-fb6236db]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%}.form_radio-card-detail-active[data-v-fb6236db]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%;--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));opacity:.5;width:85%}.dark .form_radio-card-detail-active[data-v-fb6236db]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%}input[type=search][data-v-5c1e25d6]::-webkit-search-cancel-button{display:none}.form_radio-card-simple[data-v-880ce73f]{position:relative;overflow:hidden}.form_radio-card-simple[data-v-880ce73f]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to);--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));content:"";z-index:0;opacity:0;width:25%;height:100%;transition:all .35s ease-in-out;position:absolute;inset:0;-webkit-mask-image:linear-gradient(120deg,#fff 100%);mask-image:linear-gradient(120deg,#fff 100%)}.dark .form_radio-card-simple[data-v-880ce73f]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.form_radio-card-simple[data-v-880ce73f]:hover:before,.form_radio-card-simple._hover[data-v-880ce73f]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%;--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));opacity:1;width:85%}.dark .form_radio-card-simple[data-v-880ce73f]:hover:before,.dark .form_radio-card-simple._hover[data-v-880ce73f]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%}.form_radio-card-simple-active[data-v-880ce73f]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%;--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));opacity:.5;width:85%}.dark .form_radio-card-simple-active[data-v-880ce73f]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%}.form_voice-card[data-v-fd4023c4]{flex-direction:column;display:flex;position:relative;overflow:hidden}.form_voice-card[data-v-fd4023c4]:before{pointer-events:none;--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to);--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));content:"";z-index:0;opacity:0;width:25%;height:100%;transition:all .35s ease-in-out;position:absolute;inset:0;-webkit-mask-image:linear-gradient(120deg,#fff 100%);mask-image:linear-gradient(120deg,#fff 100%)}.dark .form_voice-card[data-v-fd4023c4]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.form_voice-card[data-v-fd4023c4]:hover:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%;--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));opacity:1;width:85%}.dark .form_voice-card[data-v-fd4023c4]:hover:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%}input[type=search][data-v-43a4b028]::-webkit-search-cancel-button{display:none}.voice-card[data-v-43a4b028]{flex-direction:column;display:flex;position:relative;overflow:hidden}.voice-card[data-v-43a4b028]:before{pointer-events:none;--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to);--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));content:"";z-index:0;opacity:0;width:25%;height:100%;transition:all .35s ease-in-out;position:absolute;inset:0;-webkit-mask-image:linear-gradient(120deg,#fff 100%);mask-image:linear-gradient(120deg,#fff 100%)}.dark .voice-card[data-v-43a4b028]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.voice-card[data-v-43a4b028]:hover:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%;--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient));opacity:1;width:85%}.dark .voice-card[data-v-43a4b028]:hover:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to);--un-gradient-via-position:50%}.skeleton[data-v-fa4a54cc]{transition:all .2s ease-in-out;position:relative}.skeleton-pulse[data-v-fa4a54cc]{animation:2s ease-in-out .5s infinite skeleton-pulse-fa4a54cc}@keyframes skeleton-pulse-fa4a54cc{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.skeleton-wave[data-v-fa4a54cc]:after{content:"";border-radius:inherit;background:linear-gradient(90deg,#0000,#fff,#0000);animation:2s ease-in-out infinite skeleton-wave-fa4a54cc;position:absolute;inset:0;transform:translate(-100%)}.dark .skeleton-wave[data-v-fa4a54cc]:after{background:linear-gradient(90deg,#0000,#ffffff1a,#0000)}@keyframes skeleton-wave-fa4a54cc{0%{opacity:0;transform:translate(-100%)}60%{opacity:1;transform:translate(100%)}to{opacity:0;transform:translate(100%)}}.card-hover-effect[data-v-24a7a9d5]{transform-style:preserve-3d;transform-origin:50%;will-change:transform;transition:transform .3s cubic-bezier(.23,1,.32,1)}.card-hover-effect[data-v-24a7a9d5]:before,.card-hover-effect[data-v-24a7a9d5]:after{content:"";pointer-events:none;background-repeat:no-repeat;transition:all .33s;position:absolute;inset:0}.card-hover-effect[data-v-24a7a9d5]:before{background-position:var(--card-position-x)var(--card-position-y);background-size:300% 300%;background-image:linear-gradient(115deg,transparent 0%,rgba(var(--color-primary-500),calc(.3*var(--effect-intensity)))25%,transparent 47%,transparent 53%,rgba(var(--color-primary-600),calc(.3*var(--effect-intensity)))75%,transparent 100%);opacity:calc(.5*var(--effect-intensity));filter:brightness(.5)contrast();z-index:1;mix-blend-mode:color-dodge}.card-hover-effect[data-v-24a7a9d5]:after{background-position:var(--sparkle-position-x)var(--sparkle-position-y);background-size:160%;background-image:linear-gradient(125deg,rgba(var(--color-primary-500),calc(.3*var(--effect-intensity)))15%,rgba(var(--color-primary-400),calc(.25*var(--effect-intensity)))30%,rgba(var(--color-primary-300),calc(.2*var(--effect-intensity)))40%,rgba(var(--color-primary-200),calc(.1*var(--effect-intensity)))60%,rgba(var(--color-primary-400),calc(.25*var(--effect-intensity)))70%,rgba(var(--color-primary-500),calc(.3*var(--effect-intensity)))85%);background-blend-mode:overlay;opacity:calc(var(--sparkle-opacity)*var(--effect-intensity));filter:brightness()contrast();z-index:2;mix-blend-mode:color-dodge}.card-hover-effect[data-v-24a7a9d5]:hover:before{opacity:calc(.88*var(--effect-intensity));filter:brightness(.66)contrast(1.33)}.card-hover-effect[data-v-24a7a9d5]:hover:after{opacity:var(--effect-intensity);filter:brightness(1.1)contrast(1.2)}.slide-next-enter-active[data-v-338774a2],.slide-next-leave-active[data-v-338774a2]{transition:transform .2s ease-in-out,opacity .2s ease-in-out}.slide-next-enter-from[data-v-338774a2]{opacity:0;transform:translate(100%)}.slide-next-enter-to[data-v-338774a2],.slide-next-leave-from[data-v-338774a2]{opacity:1;transform:translate(0)}.slide-next-leave-to[data-v-338774a2]{opacity:0;transform:translate(-100%)}.slide-prev-enter-active[data-v-338774a2],.slide-prev-leave-active[data-v-338774a2]{transition:transform .2s ease-in-out,opacity .2s ease-in-out}.slide-prev-enter-from[data-v-338774a2]{opacity:0;transform:translate(-100%)}.slide-prev-enter-to[data-v-338774a2],.slide-prev-leave-from[data-v-338774a2]{opacity:1;transform:translate(0)}.slide-prev-leave-to[data-v-338774a2]{opacity:0;transform:translate(100%)}[data-sonner-toast=""] [data-content=""]{width:100%}.stage-transition-3[data-v-17464329]{--delay:0s;--sharpness:40%;position:fixed;inset:0;overflow:hidden}.stage-transition-3[data-v-17464329]:before,.stage-transition-3[data-v-17464329]:after{content:"";animation:1s cubic-bezier(.87,.05,.02,.97) both arrowIn-17464329,1s cubic-bezier(.87,.05,.02,.97) forwards arrowOut-17464329;position:absolute;inset:0}.stage-transition-3[data-v-17464329]:before{background-color:var(--stage-transition-3-overlay-color-2);animation-delay:calc(0s + var(--delay,0s)),calc(1.4s + var(--delay,0s))}.stage-transition-3[data-v-17464329]:after{background-color:var(--stage-transition-3-overlay-color-1);animation-delay:calc(.2s + var(--delay,0s)),calc(1.2s + var(--delay,0s))}@keyframes arrowIn-17464329{0%{clip-path:polygon(calc(var(--sharpness)*-1)0,calc(var(--sharpness)*-1)0,0 50%,calc(var(--sharpness)*-1)100%,calc(var(--sharpness)*-1)100%,0 50%)}to{clip-path:polygon(calc(var(--sharpness)*-1)0,100% 0,calc(100% + var(--sharpness))50%,100% 100%,calc(var(--sharpness)*-1)100%,0 50%)}}@keyframes arrowOut-17464329{0%{clip-path:polygon(calc(var(--sharpness)*-1)0,100% 0,calc(100% + var(--sharpness))50%,100% 100%,calc(var(--sharpness)*-1)100%,0 50%)}to{clip-path:polygon(100% 0,100% 0,calc(100% + var(--sharpness))50%,100% 100%,100% 100%,calc(100% + var(--sharpness))50%)}}.circle-expansion-transition[data-v-4624be9e]{pointer-events:none;width:150vmax;height:150vmax;position:fixed;top:calc(50% - 75vmax);left:calc(50% - 75vmax)}.circle-expansion-transition div[data-v-4624be9e]{border-radius:50%;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.circle-expansion-transition div[data-v-4624be9e]:first-child{background-color:var(--circle-expansion-color-1);animation:circleExpand-4624be9e var(--circle-expansion-duration)ease-in calc(var(--circle-expansion-delay) + 0s)forwards}.circle-expansion-transition div[data-v-4624be9e]:nth-child(2){background-color:var(--circle-expansion-color-2);animation:circleExpand-4624be9e var(--circle-expansion-duration)ease-in calc(var(--circle-expansion-delay) + .15s)forwards}.circle-expansion-transition div[data-v-4624be9e]:nth-child(3){background-color:var(--circle-expansion-color-3);animation:circleExpand-4624be9e var(--circle-expansion-duration)ease-in calc(var(--circle-expansion-delay) + .3s)forwards}.circle-expansion-transition div[data-v-4624be9e]:nth-child(4){background-color:var(--circle-expansion-color-4);animation:circleExpand-4624be9e var(--circle-expansion-duration)ease-in calc(var(--circle-expansion-delay) + .45s)forwards}@keyframes circleExpand-4624be9e{0%{transform:scale(0)}to{transform:scale(1)}}.fantasy-fall-transition[data-v-826171f5]{position:fixed;inset:0;overflow:hidden}.fantasy-fall-up[data-v-826171f5]:before{content:"";background-color:var(--fantasy-fall-color);border-bottom-left-radius:var(--fantasy-fall-radius-sm);border-bottom-right-radius:var(--fantasy-fall-radius-sm);width:100%;height:100%;animation:fantasy-fall-up var(--fantasy-fall-duration)ease-out var(--fantasy-fall-delay)forwards;display:block;position:absolute;top:0;left:0;transform:translateY(-100%)}.fantasy-fall-down[data-v-826171f5]:before{content:"";background-color:var(--fantasy-fall-color);border-top-left-radius:var(--fantasy-fall-radius-sm);border-top-right-radius:var(--fantasy-fall-radius-sm);width:100%;height:100%;animation:fantasy-fall-down var(--fantasy-fall-duration)ease-out var(--fantasy-fall-delay)forwards;display:block;position:absolute;top:0;left:0;transform:translateY(100%)}.fantasy-fall-left[data-v-826171f5]:before{content:"";background-color:var(--fantasy-fall-color);border-top-right-radius:var(--fantasy-fall-radius-sm);border-bottom-right-radius:var(--fantasy-fall-radius-sm);width:100%;height:100%;animation:fantasy-fall-left var(--fantasy-fall-duration)ease-out var(--fantasy-fall-delay)forwards;display:block;position:absolute;top:0;left:0;transform:translate(-100%)}.fantasy-fall-right[data-v-826171f5]:before{content:"";background-color:var(--fantasy-fall-color);border-top-left-radius:var(--fantasy-fall-radius-sm);border-bottom-left-radius:var(--fantasy-fall-radius-sm);width:100%;height:100%;animation:fantasy-fall-right var(--fantasy-fall-duration)ease-out var(--fantasy-fall-delay)forwards;display:block;position:absolute;top:0;left:0;transform:translate(100%)}@media (min-width:768px){.fantasy-fall-up[data-v-826171f5]:before{border-bottom-left-radius:var(--fantasy-fall-radius-md);border-bottom-right-radius:var(--fantasy-fall-radius-md)}.fantasy-fall-down[data-v-826171f5]:before{border-top-left-radius:var(--fantasy-fall-radius-md);border-top-right-radius:var(--fantasy-fall-radius-md)}.fantasy-fall-left[data-v-826171f5]:before{border-top-right-radius:var(--fantasy-fall-radius-md);border-bottom-right-radius:var(--fantasy-fall-radius-md)}.fantasy-fall-right[data-v-826171f5]:before{border-top-left-radius:var(--fantasy-fall-radius-md);border-bottom-left-radius:var(--fantasy-fall-radius-md)}}@media (min-width:1024px){.fantasy-fall-up[data-v-826171f5]:before{border-bottom-left-radius:var(--fantasy-fall-radius-lg);border-bottom-right-radius:var(--fantasy-fall-radius-lg)}.fantasy-fall-down[data-v-826171f5]:before{border-top-left-radius:var(--fantasy-fall-radius-lg);border-top-right-radius:var(--fantasy-fall-radius-lg)}.fantasy-fall-left[data-v-826171f5]:before{border-top-right-radius:var(--fantasy-fall-radius-lg);border-bottom-right-radius:var(--fantasy-fall-radius-lg)}.fantasy-fall-right[data-v-826171f5]:before{border-top-left-radius:var(--fantasy-fall-radius-lg);border-bottom-left-radius:var(--fantasy-fall-radius-lg)}}@keyframes fantasy-fall-up{0%{transform:translateY(-100%)}50%{transform:translateY(0%)}to{border-bottom-right-radius:0%;border-bottom-left-radius:0%;transform:translateY(0%)}}@keyframes fantasy-fall-down{0%{transform:translateY(100%)}50%{transform:translateY(0%)}to{border-top-left-radius:0%;border-top-right-radius:0%;transform:translateY(0%)}}@keyframes fantasy-fall-left{0%{transform:translate(-100%)}50%{transform:translate(0%)}to{border-top-right-radius:0%;border-bottom-right-radius:0%;transform:translate(0%)}}@keyframes fantasy-fall-right{0%{transform:translate(100%)}50%{transform:translate(0%)}to{border-top-left-radius:0%;border-bottom-left-radius:0%;transform:translate(0%)}}.stage-transition-4[data-v-4221f976]{--delay:0s;grid-template-rows:repeat(5,1fr);display:grid;position:fixed;inset:0;overflow:hidden}.stage-transition-4__block[data-v-4221f976]{width:100%;height:100%;position:relative}.stage-transition-4__block[data-v-4221f976]:before,.stage-transition-4__block[data-v-4221f976]:after{content:"";animation:.8s cubic-bezier(.87,.05,.02,.97) both slideIn-4221f976,.8s cubic-bezier(.87,.05,.02,.97) forwards slideOut-4221f976;position:absolute;inset:0}.stage-transition-4__block[data-v-4221f976]:before{background-color:var(--stage-transition-4-overlay-color-2);animation-delay:calc(0s + var(--d,0s) + var(--delay,0s)),calc(1.6s + var(--d,0s) + var(--delay,0s))}.stage-transition-4__block[data-v-4221f976]:after{background-color:var(--stage-transition-4-overlay-color-1);animation-delay:calc(.3s + var(--d,0s) + var(--delay,0s)),calc(1.3s + var(--d,0s) + var(--delay,0s))}.stage-transition-4__block[data-v-4221f976]:first-child{--d:.1s}.stage-transition-4__block[data-v-4221f976]:nth-child(2){--d:.3s}.stage-transition-4__block[data-v-4221f976]:nth-child(3){--d:0s}.stage-transition-4__block[data-v-4221f976]:nth-child(4){--d:.4s}.stage-transition-4__block[data-v-4221f976]:nth-child(5){--d:.2s}@keyframes slideIn-4221f976{0%{transform:translate(-101%)}to{transform:translate(0)}}@keyframes slideOut-4221f976{0%{transform:translate(0)}to{transform:translate(101%)}}.stage-transition-1[data-v-81c0af14]{--delay:0s;position:fixed;inset:0;overflow:hidden}.stage-transition-1[data-v-81c0af14]:before,.stage-transition-1[data-v-81c0af14]:after{content:"";animation:1s cubic-bezier(.87,.05,.02,.97) both slideIn-81c0af14,1s cubic-bezier(.87,.05,.02,.97) forwards slideOut-81c0af14;position:absolute;inset:0}.stage-transition-1[data-v-81c0af14]:before{background-color:var(--stage-transition-1-overlay-color-2);animation-delay:calc(0s + var(--delay,0s)),calc(1.4s + var(--delay,0s))}.stage-transition-1[data-v-81c0af14]:after{background-color:var(--stage-transition-1-overlay-color-1);animation-delay:calc(.2s + var(--delay,0s)),calc(1.2s + var(--delay,0s))}@keyframes slideIn-81c0af14{0%{transform:translate(-101%)}to{transform:translate(0)}}@keyframes slideOut-81c0af14{0%{transform:translate(0)}to{transform:translate(101%)}}.stage-transition-2[data-v-9e8b66c8]{--delay:0s;--skew-x:100%;position:fixed;inset:0;overflow:hidden}.stage-transition-2[data-v-9e8b66c8]:before,.stage-transition-2[data-v-9e8b66c8]:after{content:"";animation:1s cubic-bezier(.87,.05,.02,.97) both maskIn-9e8b66c8,1s cubic-bezier(.87,.05,.02,.97) forwards maskOut-9e8b66c8;position:absolute;inset:0}.stage-transition-2[data-v-9e8b66c8]:before{background-color:var(--stage-transition-2-overlay-color-2);animation-delay:calc(0s + var(--delay,0s)),calc(1.4s + var(--delay,0s))}.stage-transition-2[data-v-9e8b66c8]:after{background-color:var(--stage-transition-2-overlay-color-1);animation-delay:calc(.2s + var(--delay,0s)),calc(1.2s + var(--delay,0s))}@keyframes maskIn-9e8b66c8{0%{clip-path:polygon(0 0,0 0,calc(var(--skew-x,0)*-1)100%,calc(var(--skew-x,0)*-1)100%)}to{clip-path:polygon(0 0,calc(100% + var(--skew-x,0))0,100% 100%,calc(var(--skew-x,0)*-1)100%)}}@keyframes maskOut-9e8b66c8{0%{clip-path:polygon(0 0,calc(100% + var(--skew-x,0))0,100% 100%,calc(var(--skew-x,0)*-1)100%)}to{clip-path:polygon(calc(100% + var(--skew-x,0))0,calc(100% + var(--skew-x,0))0,100% 100%,100% 100%)}}.rectangle-rotate-transition[data-v-45ea2f7f]{position:fixed;inset:0;overflow:hidden}.rectangle[data-v-45ea2f7f]{width:100%;height:100%;position:absolute}.rectangle div[data-v-45ea2f7f]{width:100vmax;height:100vmax;position:absolute;transform:scale(0)}.rectangle-rotate-1 div[data-v-45ea2f7f]{background-color:var(--rectangle-rotate-1-color);animation:expand-rotate-45ea2f7f var(--rectangle-rotate-duration)ease calc(var(--rectangle-rotate-delay) + 0s)forwards;top:-50vmax;left:-50vmax}.rectangle-rotate-2 div[data-v-45ea2f7f]{background-color:var(--rectangle-rotate-2-color);animation:expand-rotate-45ea2f7f var(--rectangle-rotate-duration)ease calc(var(--rectangle-rotate-delay) + var(--rectangle-rotate-stagger))forwards;bottom:-50vmax;right:-50vmax}.rectangle-rotate-3 div[data-v-45ea2f7f]{background-color:var(--rectangle-rotate-3-color);animation:expand-rotate-45ea2f7f var(--rectangle-rotate-duration)ease calc(var(--rectangle-rotate-delay) + calc(var(--rectangle-rotate-stagger)*2))forwards;top:calc(50% - 50vmax);left:calc(50% - 50vmax)}@keyframes expand-rotate-45ea2f7f{0%{transform:scale(0)rotate(0)}to{transform:scale(1)rotate(var(--rectangle-rotate-rotation))}}html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%,-35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%,-35%)}[data-sonner-toaster]{width:var(--width);--gray1:#fcfcfc;--gray2:#f8f8f8;--gray3:#f3f3f3;--gray4:#ededed;--gray5:#e8e8e8;--gray6:#e2e2e2;--gray7:#dbdbdb;--gray8:#c7c7c7;--gray9:#8f8f8f;--gray10:#858585;--gray11:#6f6f6f;--gray12:#171717;--border-radius:8px;box-sizing:border-box;z-index:999999999;outline:none;margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;list-style:none;transition:transform .4s;position:fixed}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift)*var(--gap));z-index:var(--z-index);opacity:0;transform:var(--y);touch-action:none;box-sizing:border-box;overflow-wrap:anywhere;outline:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;position:absolute}[data-sonner-toast][data-styled=true]{background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);width:var(--width);align-items:center;gap:6px;padding:16px;font-size:13px;display:flex;box-shadow:0 4px 12px #0000001a}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{--y:translateY(-100%);--lift:1;--lift-amount:calc(1*var(--gap));top:0}[data-sonner-toast][data-y-position=bottom]{--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift)*var(--gap));bottom:0}[data-sonner-toast][data-styled=true] [data-description]{color:#3f3f3f;font-weight:400;line-height:1.4}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{color:inherit;font-weight:500;line-height:1.5}[data-sonner-toast][data-styled=true] [data-icon]{width:16px;height:16px;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end);flex-shrink:0;justify-content:flex-start;align-items:center;display:flex;position:relative}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform-origin:50%;animation:.3s forwards sonner-fade-in;transform:scale(.8)}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{flex-direction:column;gap:2px;display:flex}[data-sonner-toast][data-styled=true] [data-button]{height:24px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);cursor:pointer;border:none;border-radius:4px;outline:none;flex-shrink:0;align-items:center;padding-left:8px;padding-right:8px;font-size:12px;font-weight:500;transition:opacity .4s,box-shadow .2s;display:flex}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:#ffffff4d}[data-sonner-toast][data-styled=true] [data-close-button]{left:var(--toast-close-button-start);right:var(--toast-close-button-end);width:20px;height:20px;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);cursor:pointer;z-index:1;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:opacity .1s,background .2s,border-color .2s;display:flex;position:absolute;top:0}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";z-index:-1;height:100%;position:absolute;left:-100%;right:-100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3)translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3)translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]:after{content:"";height:calc(var(--gap) + 1px);width:100%;position:absolute;bottom:100%;left:0}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before)*.05 + 1;--y:translateY(calc(var(--lift-amount)*var(--toasts-before)))scale(calc(-1*var(--toasts-before)*.05 + 1));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift)*var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift)*-100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift)*var(--offset) + var(--lift)*-100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y)translateY(var(--swipe-amount-y,0px))translateX(var(--swipe-amount-x,0px));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y)translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y)translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y)translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y)translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y)translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y)translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y)translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y)translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%;position:fixed}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left)*-1)}[data-sonner-toaster] [data-sonner-toast]{width:calc(100% - var(--mobile-offset-left)*2);left:0;right:0}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:calc(var(--mobile-offset-bottom) + max(env(safe-area-inset-bottom),0px))}[data-sonner-toaster][data-y-position=top]{top:calc(var(--mobile-offset-top) + max(env(safe-area-inset-top),0px))}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:#ecfdf3;--success-border:#bffcd9;--success-text:#008a2e;--info-bg:#f0f8ff;--info-border:#dde7fd;--info-text:#0973dc;--warning-bg:#fffcf0;--warning-border:#fbeeb1;--warning-text:#dc7609;--error-bg:#fff0f0;--error-border:#ffe0e1;--error-text:#e60000}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:#333;--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:#1f1f1f;--normal-border:#333;--normal-border-hover:#404040;--normal-text:var(--gray1);--success-bg:#001f0f;--success-border:#003d1c;--success-text:#59f3a6;--info-bg:#000d1f;--info-border:#19233e;--info-text:#5896f3;--warning-bg:#1d1f00;--warning-border:#2e2e00;--warning-text:#f3cf58;--error-bg:#2d0607;--error-border:#4d0408;--error-text:#ff9ea1}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);z-index:10;position:absolute;inset:0}.sonner-loading-wrapper[data-visible=false]{transform-origin:50%;animation:.2s forwards sonner-fade-out}.sonner-spinner{height:var(--size);width:var(--size);position:relative;top:50%;left:50%}.sonner-loading-bar{background:var(--gray11);border-radius:6px;width:24%;height:8%;animation:1.2s linear infinite sonner-spin;position:absolute;top:-3.9%;left:-10%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg)translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg)translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg)translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg)translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg)translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg)translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg)translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg)translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg)translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg)translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg)translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg)translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{transform-origin:50%;transition:opacity .2s,transform .2s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8)translate(-50%,-50%)}@property --chromatic-hue{syntax:"";inherits:true;initial-value:0}@keyframes hue-anim{0%{--chromatic-hue:0}to{--chromatic-hue:360}}.dynamic-hue{animation:10s linear infinite hue-anim}@font-face{font-family:cjkfonts AllSeto;font-style:normal;font-display:swap;src:url(/assets/cjkFonts_allseto_v1.11-ByBdljxl.ttf)format("truetype")}@font-face{font-family:Xiaolai SC;font-style:normal;font-display:swap;src:url(/assets/XiaolaiSC-Regular-SNWuh554.ttf)format("truetype")}*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.slide-away-enter-active,.slide-away-leave-active{transition:transform .3s ease-in-out,opacity .3s ease-in-out}.slide-away-enter,.slide-away-leave-to{opacity:0;transform:translateY(-10px)}.slide-away-enter-from,.slide-away-leave{opacity:0;transform:translateY(10px)}.fade-slide-out-r-to-l-enter-active,.fade-slide-out-r-to-l-leave-active{transition:opacity .2s ease-in-out,transform .2s ease-in-out}.fade-slide-out-r-to-l-enter-from,.fade-slide-out-r-to-l-leave-to{opacity:0;transform:translate(10px)}.fade-slide-out-r-to-l-enter-to,.fade-slide-out-r-to-l-leave-from{opacity:1;transform:translate(0)}.fade-slide-out-l-to-r-enter-active,.fade-slide-out-l-to-r-leave-active{transition:opacity .2s ease-in-out,transform .2s ease-in-out}.fade-slide-out-l-to-r-enter-from,.fade-slide-out-l-to-r-leave-to{opacity:0;transform:translate(-10px)}.fade-slide-out-l-to-r-enter-to,.fade-slide-out-l-to-r-leave-from{opacity:1;transform:translate(0)}.fade-enter-active,.fade-leave-active{transition:opacity .2s ease-in-out}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-to,.fade-leave-from{opacity:1}:root{--bg-color-light:#fff;--bg-color-dark:#121212;--bg-color:var(--bg-color-light)}*{touch-action:manipulation}html,body,#app{overscroll-behavior:none;height:100%;margin:0;padding:0}html{background:var(--bg-color);transition:all .3s ease-in-out}html.dark{--bg-color:var(--bg-color-dark);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}#nprogress{pointer-events:none}#nprogress .bar{background:color-mix(in srgb,oklch(95% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + ${0}))70%,#636363);opacity:.75;z-index:1031;width:100%;height:2px;position:fixed;top:0;left:0}@supports (color:lab(0% 0 0)){#nprogress .bar{background:color-mix(in srgb,oklch(95% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + ${0}))70%,lab(42% 0 0))}}.dark #nprogress .bar{background:`color-mix(in srgb,oklch(95% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + ${0}))90%,#dedede)`}@supports (color:lab(0% 0 0)){.dark #nprogress .bar{background:`color-mix(in srgb,oklch(95% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + ${0}))90%,lab(88.4% 0 0))`}}@media (display-mode:standalone){#nprogress,#nprogress .bar{display:none}}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:100 1000;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-sans:vf@latest/latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:100 1000;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-sans:vf@latest/latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Serif Display;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-serif-display@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Serif Display;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-serif-display@latest/latin-ext-400-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-300-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-500-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-ext-300-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-ext-400-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-ext-500-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/japanese-300-normal.woff2)format("woff2")}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/japanese-400-normal.woff2)format("woff2")}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/japanese-500-normal.woff2)format("woff2")}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/latin-300-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/latin-500-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Sniglet;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/sniglet@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Sniglet;font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/sniglet@latest/latin-800-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Sniglet;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/sniglet@latest/latin-ext-400-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Sniglet;font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/sniglet@latest/latin-ext-800-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/cyrillic-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/greek-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/kayah-li-wght-normal.woff2)format("woff2-variations");unicode-range:U+200C-200D,U+2010,U+25CC,U+A900-A92F}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Gugi;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/gugi@latest/korean-400-normal.woff2)format("woff2")}@font-face{font-family:Gugi;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/gugi@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Quicksand;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/quicksand:vf@latest/latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Quicksand;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/quicksand:vf@latest/latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Quicksand;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/quicksand:vf@latest/vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Urbanist;font-style:normal;font-display:swap;font-weight:100 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/urbanist:vf@latest/latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Urbanist;font-style:normal;font-display:swap;font-weight:100 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/urbanist:vf@latest/latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Comfortaa;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/comfortaa:vf@latest/cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-100-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-300-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-400-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-500-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-700-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-800-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-900-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-100-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-300-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-400-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-500-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-700-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-800-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-900-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-100-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-300-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-400-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-500-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-700-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-800-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-900-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-100-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-300-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-400-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-500-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-700-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-800-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-900-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-100-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-300-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-400-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-500-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-700-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-800-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-900-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-100-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-300-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-400-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-500-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-700-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-800-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-900-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-100-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-300-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-500-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-700-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-800-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-900-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-100-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-300-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-400-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-500-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-700-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-800-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-900-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-100-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-300-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-400-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-500-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-700-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-800-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-900-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}*,:before,:after,::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:root{--chromatic-hue:220.44;--chromatic-chroma:calc(.18 + (cos(var(--chromatic-hue)*3.14159/180)*.04));--chromatic-chroma-50:calc(var(--chromatic-chroma)*.3);--chromatic-chroma-100:calc(var(--chromatic-chroma)*.5);--chromatic-chroma-200:calc(var(--chromatic-chroma)*.6);--chromatic-chroma-300:calc(var(--chromatic-chroma)*.75);--chromatic-chroma-400:calc(var(--chromatic-chroma)*.85);--chromatic-chroma-500:var(--chromatic-chroma);--chromatic-chroma-600:calc(var(--chromatic-chroma)*1.15);--chromatic-chroma-700:calc(var(--chromatic-chroma)*1.1);--chromatic-chroma-800:calc(var(--chromatic-chroma)*.85);--chromatic-chroma-900:calc(var(--chromatic-chroma)*.7);--chromatic-chroma-950:calc(var(--chromatic-chroma)*.5)}.i-eos-icons\:three-dots-loading,[i-eos-icons\:three-dots-loading=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='18' cy='12' r='0' fill='currentColor'%3E%3Canimate attributeName='r' begin='.67' calcMode='spline' dur='1.5s' keySplines='0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8' repeatCount='indefinite' values='0;2;0;0'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='0' fill='currentColor'%3E%3Canimate attributeName='r' begin='.33' calcMode='spline' dur='1.5s' keySplines='0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8' repeatCount='indefinite' values='0;2;0;0'/%3E%3C/circle%3E%3Ccircle cx='6' cy='12' r='0' fill='currentColor'%3E%3Canimate attributeName='r' begin='0' calcMode='spline' dur='1.5s' keySplines='0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8' repeatCount='indefinite' values='0;2;0;0'/%3E%3C/circle%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:alibabacloud{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M14.752 4.64h5.274C22.242 4.64 24 6.475 24 8.691V15.8a3.947 3.947 0 01-3.974 3.975h-5.274l1.299-1.835 3.822-1.222c.688-.23 1.146-.918 1.146-1.605v-5.81c0-.687-.458-1.375-1.146-1.605L16.05 6.475l-1.3-1.835zM2.98 15.111c0 .688.46 1.376 1.147 1.606l3.822 1.146 1.3 1.835H3.974A3.947 3.947 0 010 15.723V8.69c0-2.216 1.758-4.05 3.975-4.05h5.273L7.95 6.474 4.127 7.697c-.688.23-1.146.918-1.146 1.606v5.808z'/%3E%3Cpath d='M16.051 11.213H8.025v1.835h8.026v-1.835z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:anthropic{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:bilibiliindex{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M11.995 0c2.204-.001 3.701 2.07 4.497 3.874.374.849.672 1.728.892 2.638a.09.09 0 00.066.066c.885.209 1.728.486 2.529.83 1.17.504 2.236 1.17 3.076 2.13.195.224.386.52.574.89.78 1.539.27 3.194-.905 4.35-1.412 1.39-3.384 2.137-5.264 2.608a.058.058 0 00-.044.047c-.036.227-.184.734-.443 1.522-.71 2.16-2.34 5.044-4.966 5.045-2.625.001-4.258-2.88-4.97-5.04-.26-.788-.408-1.295-.446-1.522a.059.059 0 00-.043-.047c-1.88-.468-3.853-1.214-5.267-2.602-1.177-1.155-1.688-2.81-.909-4.35.188-.37.378-.666.573-.89.839-.962 1.905-1.628 3.074-2.133a15.26 15.26 0 012.529-.833.087.087 0 00.065-.066c.22-.91.516-1.79.89-2.639C8.296 2.072 9.791.001 11.994 0zm5.915 8.994l.176 1.29a.068.068 0 00.026.043c.415.318.687.68.815 1.083a1.996 1.996 0 01-1.846 2.596 2.001 2.001 0 01-2.058-2.282c.075-.52.359-.977.852-1.369a.052.052 0 00.02-.047c-.102-.978-.311-1.911-.559-2.993-.3-1.31-.727-2.529-1.45-3.705a3.868 3.868 0 00-.506-.665c-.48-.494-.997-.897-1.696-.728-.476.116-1.069.654-1.34 1.043a10.085 10.085 0 00-1.399 2.938.02.02 0 00.022.016l1.588-.074a.07.07 0 00.046-.02c.638-.632 1.57-.76 2.337-.308.318.187.569.478.754.873.456.977-.123 2.14-1.06 2.482-.879.321-1.8-.006-2.294-.809a.068.068 0 00-.061-.032 23.52 23.52 0 00-2.412.209c-.676.094-1.403.296-2.014.5-.692.228-1.347.52-1.965.876-.885.51-2.189 1.567-1.536 2.725.119.211.233.373.343.487.89.92 2 1.415 3.3 1.852a.022.022 0 00.029-.023l-.157-1.145a.068.068 0 00-.033-.05 2.08 2.08 0 01-.848-.96c-.415-.925-.03-1.983.792-2.49a2.004 2.004 0 012.415.239c.345.315.623.855.642 1.356.026.697-.253 1.239-.782 1.703a.057.057 0 00-.02.05c.165 1.255.485 2.545.787 3.705.262 1.004.69 2.098 1.296 3.041.315.49.697.92 1.135 1.189.526.323 1.05.312 1.57-.033.666-.442 1.045-1.034 1.47-1.822a9.514 9.514 0 00.77-1.89.017.017 0 00-.018-.014l-1.336.063a.06.06 0 00-.05.033 1.822 1.822 0 01-1.279 1.008 1.85 1.85 0 01-1.878-.665c-.558-.723-.557-1.598-.003-2.32a1.78 1.78 0 011.063-.668c.6-.133 1.164.016 1.693.447a.076.076 0 00.051.017c.83-.027 1.64-.098 2.431-.213.62-.09 1.364-.288 1.908-.442a11.537 11.537 0 002.236-.9c.732-.386 1.634-1.033 1.89-1.847.4-1.269-1.44-2.406-2.352-2.802-.637-.277-1.13-.467-1.479-.57a.02.02 0 00-.019.003.02.02 0 00-.006.009.022.022 0 000 .01z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:cloudflare{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M16.493 17.4c.135-.52.08-.983-.161-1.338-.215-.328-.592-.519-1.05-.519l-8.663-.109a.148.148 0 01-.135-.082c-.027-.054-.027-.109-.027-.163.027-.082.108-.164.189-.164l8.744-.11c1.05-.054 2.153-.9 2.556-1.937l.511-1.31c.027-.055.027-.11.027-.164C17.92 8.91 15.66 7 12.942 7c-2.503 0-4.628 1.638-5.381 3.903a2.432 2.432 0 00-1.803-.491c-1.21.109-2.153 1.092-2.287 2.32-.027.328 0 .628.054.9C1.56 13.688 0 15.326 0 17.319c0 .19.027.355.027.545 0 .082.08.137.161.137h15.983c.08 0 .188-.055.215-.164l.107-.437'/%3E%3Cpath d='M19.238 11.75h-.242c-.054 0-.108.054-.135.109l-.35 1.2c-.134.52-.08.983.162 1.338.215.328.592.518 1.05.518l1.855.11c.054 0 .108.027.135.082.027.054.027.109.027.163-.027.082-.108.164-.188.164l-1.91.11c-1.05.054-2.153.9-2.557 1.937l-.134.355c-.027.055.026.137.107.137h6.592c.081 0 .162-.055.162-.137.107-.41.188-.846.188-1.31-.027-2.62-2.153-4.777-4.762-4.777'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:deepseek{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:featherless-ai{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='1em' height='1em' %3E%3Cg fill='currentColor'%3E%3Cpath d='M40.0866 4.68482C38.2902 3.5825 35.863 3 33.0672 3C28.7842 3 24.0653 4.35865 19.8276 6.72206L19.7979 6.71083C19.7979 6.71083 19.7937 6.73344 19.7914 6.74423C18.5086 7.4617 17.2656 8.2629 16.0981 9.15731C9.22112 14.4248 7.29519 20.6748 8.92004 24.0156C7.14142 27.0728 6.0457 30.2332 6 33.9767C9.41949 27.421 11.4719 22.108 22.6146 13.1637C19.4309 13.8501 13.9281 17.1057 10.2271 22.0459C9.87793 19.156 12.1477 14.4895 17.2033 10.6174C17.8435 10.127 18.5092 9.66864 19.1886 9.23374C18.6577 10.8934 18.8269 10.4806 17.7254 12.8076C19.3543 11.2566 20.4268 10.2995 22.035 7.64145C24.123 6.60964 26.2948 5.83844 28.4482 5.37235C28.0919 6.56071 27.4137 8.57466 26.4955 10.1669C26.4955 10.1669 28.8258 9.66435 30.7518 9.77788C29.6995 10.9459 28.7527 12.2094 27.7926 13.5012C26.4777 15.2696 25.1184 17.0983 23.3778 18.8005C23.1683 19.0054 22.968 19.1912 22.7649 19.383C20.0902 19.1254 18.3235 20.1315 16.6683 21.9089C17.9737 21.2966 19.7273 20.7924 20.8266 21.0959C18.8008 22.7579 15.6106 24.9488 12.9893 24.7684C12.4922 25.5295 12.4608 25.5528 11.9144 26.4722C16.1664 27.537 21.507 23.1905 24.6498 20.1161C26.4926 18.3131 27.8964 16.4257 29.2534 14.6012C32.0481 10.8427 34.4616 7.5974 39.8153 6.3624L42 5.85877L40.0866 4.68482Z' class='logo-mark'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:fireworks{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath clip-rule='evenodd' d='M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:gemini{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:huggingface{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M16.781 3.277c2.997 1.704 4.844 4.851 4.844 8.258 0 .995-.155 1.955-.443 2.857a1.332 1.332 0 011.125.4 1.41 1.41 0 01.2 1.723c.204.165.352.385.428.632l.017.062c.06.222.12.69-.2 1.166.244.37.279.836.093 1.236-.255.57-.893 1.018-2.128 1.5l-.202.078-.131.048c-.478.173-.89.295-1.061.345l-.086.024c-.89.243-1.808.375-2.732.394-1.32 0-2.3-.36-2.923-1.067a9.852 9.852 0 01-3.18.018C9.778 21.647 8.802 22 7.494 22a11.249 11.249 0 01-2.541-.343l-.221-.06-.273-.08a16.574 16.574 0 01-1.175-.405c-1.237-.483-1.875-.93-2.13-1.501-.186-.4-.151-.867.093-1.236a1.42 1.42 0 01-.2-1.166c.069-.273.226-.516.447-.694a1.41 1.41 0 01.2-1.722c.233-.248.557-.391.917-.407l.078-.001a9.385 9.385 0 01-.44-2.85c0-3.407 1.847-6.554 4.844-8.258a9.822 9.822 0 019.687 0zM4.188 14.758c.125.687 2.357 2.35 2.14 2.707-.19.315-.796-.239-.948-.386l-.041-.04-.168-.147c-.561-.479-2.304-1.9-2.74-1.432-.43.46.119.859 1.055 1.42l.784.467.136.083c1.045.643 1.12.84.95 1.113-.188.295-3.07-2.1-3.34-1.083-.27 1.011 2.942 1.304 2.744 2.006-.2.7-2.265-1.324-2.685-.537-.425.79 2.913 1.718 2.94 1.725l.16.04.175.042c1.227.284 3.565.65 4.435-.604.673-.973.64-1.709-.248-2.61l-.057-.057c-.945-.928-1.495-2.288-1.495-2.288l-.017-.058-.025-.072c-.082-.22-.284-.639-.63-.584-.46.073-.798 1.21.12 1.933l.05.038c.977.721-.195 1.21-.573.534l-.058-.104-.143-.25c-.463-.799-1.282-2.111-1.739-2.397-.532-.332-.907-.148-.782.541zm14.842-.541c-.533.335-1.563 2.074-1.94 2.751a.613.613 0 01-.687.302.436.436 0 01-.176-.098.303.303 0 01-.049-.06l-.014-.028-.008-.02-.007-.019-.003-.013-.003-.017a.289.289 0 01-.004-.048c0-.12.071-.266.25-.427.026-.024.054-.047.084-.07l.047-.036c.022-.016.043-.032.063-.049.883-.71.573-1.81.131-1.917l-.031-.006-.056-.004a.368.368 0 00-.062.006l-.028.005-.042.014-.039.017-.028.015-.028.019-.036.027-.023.02c-.173.158-.273.428-.31.542l-.016.054s-.53 1.309-1.439 2.234l-.054.054c-.365.358-.596.69-.702 1.018-.143.437-.066.868.21 1.353.055.097.117.195.187.296.882 1.275 3.282.876 4.494.59l.286-.07.25-.074c.276-.084.736-.233 1.2-.42l.188-.077.065-.028.064-.028.124-.056.081-.038c.529-.252.964-.543.994-.827l.001-.036a.299.299 0 00-.037-.139c-.094-.176-.271-.212-.491-.168l-.045.01c-.044.01-.09.024-.136.04l-.097.035-.054.022c-.559.23-1.238.705-1.607.745h.006a.452.452 0 01-.05.003h-.024l-.024-.003-.023-.005c-.068-.016-.116-.06-.14-.142a.22.22 0 01-.005-.1c.062-.345.958-.595 1.713-.91l.066-.028c.528-.224.97-.483.985-.832v-.04a.47.47 0 00-.016-.098c-.048-.18-.175-.251-.36-.251-.785 0-2.55 1.36-2.92 1.36-.025 0-.048-.007-.058-.024a.6.6 0 01-.046-.088c-.1-.238.068-.462 1.06-1.066l.209-.126c.538-.32 1.01-.588 1.341-.831.29-.212.475-.406.503-.6l.003-.028c.008-.113-.038-.227-.147-.344a.266.266 0 00-.07-.054l-.034-.015-.013-.005a.403.403 0 00-.13-.02c-.162 0-.369.07-.595.18-.637.313-1.431.952-1.826 1.285l-.249.215-.033.033c-.08.078-.288.27-.493.386l-.071.037-.041.019a.535.535 0 01-.122.036h.005a.346.346 0 01-.031.003l.01-.001-.013.001c-.079.005-.145-.021-.19-.095a.113.113 0 01-.014-.065c.027-.465 2.034-1.991 2.152-2.642l.009-.048c.1-.65-.271-.817-.791-.493zM11.938 2.984c-4.798 0-8.688 3.829-8.688 8.55 0 .692.083 1.364.24 2.008l.008-.009c.252-.298.612-.46 1.017-.46.355.008.699.117.993.312.22.14.465.384.715.694.261-.372.69-.598 1.15-.605.852 0 1.367.728 1.562 1.383l.047.105.06.127c.192.396.595 1.139 1.143 1.68 1.06 1.04 1.324 2.115.8 3.266a8.865 8.865 0 002.024-.014c-.505-1.12-.26-2.17.74-3.186l.066-.066c.695-.684 1.157-1.69 1.252-1.912.195-.655.708-1.383 1.56-1.383.46.007.889.233 1.15.605.25-.31.495-.553.718-.694a1.87 1.87 0 01.99-.312c.357 0 .682.126.925.36.14-.61.215-1.245.215-1.898 0-4.722-3.89-8.55-8.687-8.55zm1.857 8.926l.439-.212c.553-.264.89-.383.89.152 0 1.093-.771 3.208-3.155 3.262h-.184c-2.325-.052-3.116-2.06-3.156-3.175l-.001-.087c0-1.107 1.452.586 3.25.586.716 0 1.379-.272 1.917-.526zm4.017-3.143c.45 0 .813.358.813.8 0 .441-.364.8-.813.8a.806.806 0 01-.812-.8c0-.442.364-.8.812-.8zm-11.624 0c.448 0 .812.358.812.8 0 .441-.364.8-.812.8a.806.806 0 01-.813-.8c0-.442.364-.8.813-.8zm7.79-.841c.32-.384.846-.54 1.33-.394.483.146.83.564.878 1.06.048.495-.212.97-.659 1.203-.322.168-.447-.477-.767-.585l.002-.003c-.287-.098-.772.362-.925.079a1.215 1.215 0 01.14-1.36zm-4.323 0c.322.384.377.92.14 1.36-.152.283-.64-.177-.925-.079l.003.003c-.108.036-.194.134-.273.24l-.118.165c-.11.15-.22.262-.377.18a1.226 1.226 0 01-.658-1.204c.048-.495.395-.913.878-1.059a1.262 1.262 0 011.33.394z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:lmstudio{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M2.84 2a1.273 1.273 0 100 2.547h14.107a1.273 1.273 0 100-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H22.04a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h14.106a1.274 1.274 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H15.38a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h14.106a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h9.698a1.273 1.273 0 100-2.547h-9.698z' fill-opacity='.3'/%3E%3Cpath d='M2.84 2a1.273 1.273 0 100 2.547h10.287a1.274 1.274 0 000-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H18.22a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H11.56a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h5.78a1.273 1.273 0 100-2.547h-5.78z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:microsoft{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M11.49 2H2v9.492h9.492V2h-.002z'/%3E%3Cpath d='M22 2h-9.492v9.492H22V2z'/%3E%3Cpath d='M11.49 12.508H2V22h9.492v-9.492h-.002z'/%3E%3Cpath d='M22 12.508h-9.492V22H22v-9.492z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:mistral{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath clip-rule='evenodd' d='M3.428 3.4h3.429v3.428h3.429v3.429h-.002 3.431V6.828h3.427V3.4h3.43v13.714H24v3.429H13.714v-3.428h-3.428v-3.429h-3.43v3.428h3.43v3.429H0v-3.429h3.428V3.4zm10.286 13.715h3.428v-3.429h-3.427v3.429z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:modelscope{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M2.667 5.3H8v2.667H5.333v2.666H2.667V8.467H.5v2.166h2.167V13.3H0V7.967h2.667V5.3zM2.667 13.3h2.666v2.667H8v2.666H2.667V13.3zM8 10.633h2.667V13.3H8v-2.667zM13.333 13.3v2.667h-2.666V13.3h2.666zM13.333 13.3v-2.667H16V13.3h-2.667z'/%3E%3Cpath clip-rule='evenodd' d='M21.333 13.3v-2.667h-2.666V7.967H16V5.3h5.333v2.667H24V13.3h-2.667zm0-2.667H23.5V8.467h-2.167v2.166z'/%3E%3Cpath d='M21.333 13.3v5.333H16v-2.666h2.667V13.3h2.666z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:moonshot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:novita{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath clip-rule='evenodd' d='M9.167 4.17v5.665L0 19.003h9.167v-5.666l5.666 5.666H24L9.167 4.17z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:ollama{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:openai{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:openrouter{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M16.804 1.957l7.22 4.105v.087L16.73 10.21l.017-2.117-.821-.03c-1.059-.028-1.611.002-2.268.11-1.064.175-2.038.577-3.147 1.352L8.345 11.03c-.284.195-.495.336-.68.455l-.515.322-.397.234.385.23.53.338c.476.314 1.17.796 2.701 1.866 1.11.775 2.083 1.177 3.147 1.352l.3.045c.694.091 1.375.094 2.825.033l.022-2.159 7.22 4.105v.087L16.589 22l.014-1.862-.635.022c-1.386.042-2.137.002-3.138-.162-1.694-.28-3.26-.926-4.881-2.059l-2.158-1.5a21.997 21.997 0 00-.755-.498l-.467-.28a55.927 55.927 0 00-.76-.43C2.908 14.73.563 14.116 0 14.116V9.888l.14.004c.564-.007 2.91-.622 3.809-1.124l1.016-.58.438-.274c.428-.28 1.072-.726 2.686-1.853 1.621-1.133 3.186-1.78 4.881-2.059 1.152-.19 1.974-.213 3.814-.138l.02-1.907z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:perplexity{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:player2{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M19.956 10.178C19.8934 10.7544 19.724 11.6784 19.1182 12.5274C18.3667 13.5817 17.3528 13.8824 16.9558 13.9746C16.6911 14.0049 16.3026 14.045 15.8323 14.0789C14.1804 14.2045 13.0525 14.1565 11.7041 14.131C10.81 14.1143 9.54304 14.1034 7.98548 14.131C7.97564 16.7493 7.96551 19.368 7.95508 21.987L5 22V15.8717C5.00358 14.6542 5.00983 12.9193 5.03397 10.7643C6.47441 10.7684 14.6905 10.7205 15.6696 10.7721C15.8672 10.7841 16.3621 10.8039 16.6764 10.4458C16.8842 10.2113 16.9696 9.83348 16.9763 9.26802C16.9835 8.82659 16.9902 8.38204 16.9763 7.94322C16.9459 6.90454 16.608 6.51472 15.7103 6.51107C12.8124 6.5069 9.91142 6.43915 7.01356 6.51107C6.60048 6.51888 5.90083 6.53087 5.02056 6.50325V3C5.43007 3.00782 6.13285 3.02397 7.00686 3.01563C11.1399 2.98436 12.7292 3.01199 15.5328 3.01563C18.3591 3.0198 19.994 4.94393 19.994 8.26009C19.9913 8.90059 20.0253 9.54944 19.956 10.178Z'/%3E%3Cpath d='M20 19H11V22H20V19Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:together{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M17.385 11.23a4.615 4.615 0 100-9.23 4.615 4.615 0 000 9.23zm0 10.77a4.615 4.615 0 100-9.23 4.615 4.615 0 000 9.23zm-10.77 0a4.615 4.615 0 100-9.23 4.615 4.615 0 000 9.23z' opacity='.2'/%3E%3Ccircle cx='6.615' cy='6.615' r='4.615'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:vllm{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M0 4.973h9.324V23L0 4.973z'/%3E%3Cpath d='M13.986 4.351L22.378 0l-6.216 23H9.324l4.662-18.649z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:volcengine{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M7.29 5.36L3.148 21.737a.215.215 0 00.203.261h8.29a.214.214 0 00.215-.261L7.7 5.359a.214.214 0 00-.41 0z' fill-opacity='.5'/%3E%3Cpath clip-rule='evenodd' d='M4.553 16.18l-1.406 5.558a.214.214 0 00.203.261h2.42-4.551a.214.214 0 01-.214-.26l2.275-8.961a.214.214 0 01.409 0l.864 3.402z'/%3E%3Cpath d='M14.44.15a.214.214 0 00-.41 0L8.366 21.739a.214.214 0 00.214.261H19.9a.214.214 0 00.215-.261L14.44.151z' fill-opacity='.5'/%3E%3Cpath clip-rule='evenodd' d='M16.694 22h3.207a.215.215 0 00.214-.262l-1.839-6.993 1.164-4.592a.214.214 0 01.411 0l2.951 11.586a.214.214 0 01-.214.261h-5.894z'/%3E%3Cpath d='M10.278 7.741L6.685 21.736a.214.214 0 00.214.264h7.17a.216.216 0 00.214-.166.216.216 0 000-.098L10.687 7.742a.214.214 0 00-.409 0z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:xai{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lucide\:ghost,[i-lucide\:ghost=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 10h.01M15 10h.01M12 2a8 8 0 0 0-8 8v12l3-3l2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lucide\:mic,[i-lucide\:mic=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 19v3m7-12v2a7 7 0 0 1-14 0v-2'/%3E%3Crect width='6' height='13' x='9' y='2' rx='3'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lucide\:music,[i-lucide\:music=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:discord{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20.317 4.37a19.8 19.8 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.3 18.3 0 0 0-5.487 0a13 13 0 0 0-.617-1.25a.08.08 0 0 0-.079-.037A19.7 19.7 0 0 0 3.677 4.37a.1.1 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.08.08 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.08.08 0 0 0 .084-.028a14 14 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13 13 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10 10 0 0 0 .372-.292a.07.07 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.07.07 0 0 1 .078.01q.181.149.373.292a.077.077 0 0 1-.006.127a12.3 12.3 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.08.08 0 0 0 .084.028a19.8 19.8 0 0 0 6.002-3.03a.08.08 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.06.06 0 0 0-.031-.03M8.02 15.33c-1.182 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418m7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:elevenlabs{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4.604 0v24h4.931V0zm9.86 0v24h4.933V0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:github,[i-simple-icons\:github=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:javascript{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M0 0h24v24H0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873c-.736-.345-1.554-.585-1.797-1.14c-.091-.33-.105-.51-.046-.705c.15-.646.915-.84 1.515-.66c.39.12.75.42.976.9c1.034-.676 1.034-.676 1.755-1.125c-.27-.42-.404-.601-.586-.78c-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005c-1.14 1.291-.811 3.541.569 4.471c1.365 1.02 3.361 1.244 3.616 2.205c.24 1.17-.87 1.545-1.966 1.41c-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109c1.74 1.756 6.09 1.666 6.871-1.004c.029-.09.24-.705.074-1.65zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805c0 1.232.063 2.363-.138 2.711c-.33.689-1.18.601-1.566.48c-.396-.196-.597-.466-.83-.855c-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517c.855.51 2.004.675 3.207.405c.783-.226 1.458-.691 1.811-1.411c.51-.93.402-2.07.397-3.346c.012-2.054 0-4.109 0-6.179z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:x{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584l-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar-check-circle-line-duotone,.i-solar\:check-circle-line-duotone,[i-solar-check-circle-line-duotone=""],[i-solar\:check-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10' opacity='.5'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m8.5 12.5l2 2l5-5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:add-circle-bold,[i-solar\:add-circle-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10m.75-13a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V15a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:add-circle-line-duotone,[i-solar\:add-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10' opacity='.5'/%3E%3Cpath stroke-linecap='round' d='M15 12h-3m0 0H9m3 0V9m0 3v3'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:add-square-line-duotone,[i-solar\:add-square-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z' opacity='.5'/%3E%3Cpath stroke-linecap='round' d='M15 12h-3m0 0H9m3 0V9m0 3v3'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:alt-arrow-down-linear,[i-solar\:alt-arrow-down-linear=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m19 9l-7 6l-7-6'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:alt-arrow-left-line-duotone,[i-solar\:alt-arrow-left-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m15 5l-6 7l6 7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:alt-arrow-right-outline,[i-solar\:alt-arrow-right-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M8.512 4.43a.75.75 0 0 1 1.057.082l6 7a.75.75 0 0 1 0 .976l-6 7a.75.75 0 0 1-1.138-.976L14.012 12L8.431 5.488a.75.75 0 0 1 .08-1.057' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:armchair-2-bold-duotone,[i-solar\:armchair-2-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.533 18H6.75v2a.75.75 0 1 1-1.5 0v-2.324c-.829-.362-1.49-1.005-1.808-1.817l-.039-.102L2.1 12.264C1.685 11.15 2.613 10 3.927 10c.81 0 1.534.453 1.81 1.134l1.098 2.706c.1.246.15.37.222.47a1.2 1.2 0 0 0 .74.463c.13.027.277.027.57.027h6.98c.569 0 .853 0 1.091-.098q.196-.082.349-.219c.184-.166.281-.405.475-.883l1.001-2.466c.276-.68 1-1.134 1.81-1.134c1.314 0 2.242 1.15 1.827 2.264l-1.12 3c-.195.524-.292.785-.421 1.008a3.43 3.43 0 0 1-1.609 1.404V20a.75.75 0 1 1-1.5 0v-2.005c-.187.005-.415.005-.717.005'/%3E%3Cpath fill='currentColor' d='M13.236 3.5h-2.472c-1.1 0-1.976 0-2.66.088c-.706.09-1.285.28-1.746.72c-.464.441-.669 1.003-.765 1.685c-.093.658-.093 1.495-.093 2.54v2.195q.147.186.237.406l1.098 2.706c.1.246.15.37.222.47a1.2 1.2 0 0 0 .74.463c.13.027.277.027.57.027h6.98c.569 0 .853 0 1.091-.098q.196-.082.349-.219c.184-.166.281-.405.475-.883l1.001-2.466q.09-.221.237-.406V8.533c0-1.045 0-1.882-.093-2.54c-.096-.682-.301-1.244-.765-1.686c-.46-.438-1.04-.629-1.745-.72c-.685-.087-1.56-.087-2.661-.087' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:arrow-right-line-duotone,[i-solar\:arrow-right-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Cpath fill='currentColor' d='M4 11.25a.75.75 0 0 0 0 1.5zm0 1.5h16v-1.5H4z' opacity='.5'/%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m14 6l6 6l-6 6'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:arrow-up-outline,[i-solar\:arrow-up-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11.47 3.47a.75.75 0 0 1 1.06 0l6 6a.75.75 0 1 1-1.06 1.06l-4.72-4.72V20a.75.75 0 0 1-1.5 0V5.81l-4.72 4.72a.75.75 0 1 1-1.06-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:book-bookmark-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 20.028V18H8v2.028c0 .277 0 .416.095.472s.224-.006.484-.13l1.242-.593c.088-.042.132-.063.179-.063s.091.02.179.063l1.242.593c.26.124.39.186.484.13c.095-.056.095-.195.095-.472' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8 18h-.574c-1.084 0-1.462.006-1.753.068c-.513.11-.96.347-1.285.667c-.11.108-.164.161-.291.505s-.107.489-.066.78l.022.15c.11.653.31.998.616 1.244c.307.246.737.407 1.55.494c.837.09 1.946.092 3.536.092h4.43c1.59 0 2.7-.001 3.536-.092c.813-.087 1.243-.248 1.55-.494s.506-.591.616-1.243c.091-.548.11-1.241.113-2.171h-8v2.028c0 .277 0 .416-.095.472s-.224-.006-.484-.13l-1.242-.593c-.088-.042-.132-.063-.179-.063s-.091.02-.179.063l-1.242.593c-.26.124-.39.186-.484.13C8 20.444 8 20.305 8 20.028z'/%3E%3Cpath fill='currentColor' d='M4.727 2.733c.306-.308.734-.508 1.544-.618C7.105 2.002 8.209 2 9.793 2h4.414c1.584 0 2.688.002 3.522.115c.81.11 1.238.31 1.544.618c.305.308.504.74.613 1.557c.112.84.114 1.955.114 3.552V18H7.426c-1.084 0-1.462.006-1.753.068c-.513.11-.96.347-1.285.667c-.11.108-.164.161-.291.505A1.3 1.3 0 0 0 4 19.7V7.842c0-1.597.002-2.711.114-3.552c.109-.816.308-1.249.613-1.557' opacity='.5'/%3E%3Cpath fill='currentColor' d='M7.25 7A.75.75 0 0 1 8 6.25h8a.75.75 0 0 1 0 1.5H8A.75.75 0 0 1 7.25 7M8 9.75a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:bookmark-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 11.098v4.993c0 3.096 0 4.645-.734 5.321c-.35.323-.792.526-1.263.58c-.987.113-2.14-.907-4.445-2.946c-1.02-.901-1.529-1.352-2.118-1.47a2.2 2.2 0 0 0-.88 0c-.59.118-1.099.569-2.118 1.47c-2.305 2.039-3.458 3.059-4.445 2.945a2.24 2.24 0 0 1-1.263-.579C3 20.736 3 19.188 3 16.091v-4.994C3 6.81 3 4.666 4.318 3.333S7.758 2 12 2s6.364 0 7.682 1.332S21 6.81 21 11.098' opacity='.5'/%3E%3Cpath fill='currentColor' d='M9 5.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:box-minimalistic-bold-duotone,[i-solar\:box-minimalistic-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8.422 20.618C10.178 21.54 11.056 22 12 22V12L2.638 7.073l-.04.067C2 8.154 2 9.417 2 11.942v.117c0 2.524 0 3.787.597 4.801c.598 1.015 1.674 1.58 3.825 2.709z'/%3E%3Cpath fill='currentColor' d='m17.577 4.432l-2-1.05C13.822 2.461 12.944 2 12 2c-.945 0-1.822.46-3.578 1.382l-2 1.05C4.318 5.536 3.242 6.1 2.638 7.072L12 12l9.362-4.927c-.606-.973-1.68-1.537-3.785-2.641' opacity='.7'/%3E%3Cpath fill='currentColor' d='m21.403 7.14l-.041-.067L12 12v10c.944 0 1.822-.46 3.578-1.382l2-1.05c2.151-1.129 3.227-1.693 3.825-2.708c.597-1.014.597-2.277.597-4.8v-.117c0-2.525 0-3.788-.597-4.802' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:card-search-broken,[i-solar\:card-search-broken=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' d='M14 4c3.771 0 5.657 0 6.828 1.172S22 8.229 22 12v1M10 4C6.229 4 4.343 4 3.172 5.172S2 8.229 2 12s0 5.657 1.172 6.828S6.229 20 10 20h3m-3-4H6'/%3E%3Ccircle cx='18' cy='17' r='3'/%3E%3Cpath stroke-linecap='round' d='m20.5 19.5l1 1M2 10h5m15 0H11'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:chat-round-line-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12c0 1.6.376 3.112 1.043 4.453c.178.356.237.763.134 1.148l-.595 2.226a1.3 1.3 0 0 0 1.591 1.592l2.226-.596a1.63 1.63 0 0 1 1.149.133A9.96 9.96 0 0 0 12 22' opacity='.5'/%3E%3Cpath fill='currentColor' d='M7.825 12.85a.825.825 0 0 0 0 1.65h6.05a.825.825 0 0 0 0-1.65zm0-3.85a.825.825 0 0 0 0 1.65h8.8a.825.825 0 0 0 0-1.65z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:chat-square-like-bold-duotone,[i-solar\:chat-square-like-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m13.629 20.472l-.542.916c-.483.816-1.69.816-2.174 0l-.542-.916c-.42-.71-.63-1.066-.968-1.262c-.338-.197-.763-.204-1.613-.219c-1.256-.021-2.043-.098-2.703-.372a5 5 0 0 1-2.706-2.706C2 14.995 2 13.83 2 11.5v-1c0-3.273 0-4.91.737-6.112a5 5 0 0 1 1.65-1.651C5.59 2 7.228 2 10.5 2h3c3.273 0 4.91 0 6.113.737a5 5 0 0 1 1.65 1.65C22 5.59 22 7.228 22 10.5v1c0 2.33 0 3.495-.38 4.413a5 5 0 0 1-2.707 2.706c-.66.274-1.447.35-2.703.372c-.85.015-1.275.022-1.613.219c-.338.196-.548.551-.968 1.262' opacity='.5'/%3E%3Cpath fill='currentColor' d='M10.99 14.308c-1.327-.978-3.49-2.84-3.49-4.593c0-2.677 2.475-3.677 4.5-1.609c2.025-2.068 4.5-1.068 4.5 1.609c0 1.752-2.163 3.615-3.49 4.593c-.454.335-.681.502-1.01.502s-.556-.167-1.01-.502'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:check-circle-bold-duotone,[i-solar\:check-circle-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M16.03 8.97a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47l2.235-2.235L14.97 8.97a.75.75 0 0 1 1.06 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:check-read-line-duotone,[i-solar\:check-read-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'%3E%3Cpath d='m4 12.9l3.143 3.6L15 7.5' opacity='.5'/%3E%3Cpath d='m20 7.563l-8.571 9L11 16'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:close-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8.97 8.97a.75.75 0 0 1 1.06 0L12 10.94l1.97-1.97a.75.75 0 1 1 1.06 1.06L13.06 12l1.97 1.97a.75.75 0 0 1-1.06 1.06L12 13.06l-1.97 1.97a.75.75 0 0 1-1.06-1.06L10.94 12l-1.97-1.97a.75.75 0 0 1 0-1.06'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:close-circle-line-duotone,[i-solar\:close-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10' opacity='.5'/%3E%3Cpath stroke-linecap='round' d='m14.5 9.5l-5 5m0-5l5 5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:code-bold-duotone,[i-solar\:code-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.443 7.328a.75.75 0 0 1 1.059-.056l1.737 1.564c.737.663 1.347 1.212 1.767 1.71c.44.525.754 1.088.754 1.784c0 .695-.313 1.258-.754 1.782c-.42.499-1.03 1.049-1.767 1.711l-1.737 1.564a.75.75 0 1 1-1.004-1.115l1.697-1.527c.788-.709 1.319-1.19 1.663-1.598c.33-.393.402-.622.402-.817c0-.196-.072-.425-.402-.818c-.344-.409-.875-.889-1.663-1.598l-1.697-1.527a.75.75 0 0 1-.056-1.06m-8.94 1.06a.75.75 0 0 0-1.004-1.115L4.761 8.836c-.737.663-1.347 1.212-1.767 1.71c-.44.525-.754 1.088-.754 1.784c0 .695.313 1.258.754 1.782c.42.499 1.03 1.049 1.767 1.711l1.737 1.564a.75.75 0 1 0 1.004-1.115l-1.697-1.527c-.788-.709-1.319-1.19-1.663-1.598c-.33-.393-.402-.622-.402-.817c0-.196.072-.425.402-.818c.344-.409.875-.889 1.663-1.598z'/%3E%3Cpath fill='currentColor' d='M14.182 4.276a.75.75 0 0 1 .53.918l-3.974 14.83a.75.75 0 1 1-1.449-.389l3.974-14.83a.75.75 0 0 1 .919-.53' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:danger-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10s10-4.477 10-10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 6.25a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:danger-triangle-bold-duotone,[i-solar\:danger-triangle-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 3c-2.31 0-3.77 2.587-6.688 7.762l-.364.644c-2.425 4.3-3.638 6.45-2.542 8.022S6.214 21 11.636 21h.728c5.422 0 8.134 0 9.23-1.572s-.117-3.722-2.542-8.022l-.364-.645C15.77 5.587 14.311 3 12 3' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 7.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:document-add-outline,[i-solar\:document-add-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.944 1.25h2.112c1.838 0 3.294 0 4.433.153c1.172.158 2.121.49 2.87 1.238a.75.75 0 0 1-1.06 1.06c-.424-.422-1.004-.676-2.01-.811c-1.027-.138-2.382-.14-4.289-.14h-2c-1.907 0-3.261.002-4.29.14c-1.005.135-1.585.389-2.008.812S4.025 4.705 3.89 5.71c-.138 1.029-.14 2.383-.14 4.29v4c0 1.907.002 3.262.14 4.29c.135 1.005.389 1.585.812 2.008s1.003.677 2.009.812c1.028.138 2.382.14 4.289.14h2c1.907 0 3.262-.002 4.29-.14c1.005-.135 1.585-.389 2.008-.812c.696-.696.907-1.777.943-4.309a.75.75 0 0 1 1.5.022c-.035 2.427-.192 4.158-1.382 5.348c-.749.748-1.698 1.08-2.87 1.238c-1.14.153-2.595.153-4.433.153h-2.112c-1.838 0-3.294 0-4.433-.153c-1.172-.158-2.121-.49-2.87-1.238c-.748-.749-1.08-1.698-1.238-2.87c-.153-1.14-.153-2.595-.153-4.433V9.944c0-1.838 0-3.294.153-4.433c.158-1.172.49-2.121 1.238-2.87c.749-.748 1.698-1.08 2.87-1.238c1.14-.153 2.595-.153 4.433-.153m7.17 5.796a2.716 2.716 0 1 1 3.84 3.84L17.2 15.643a7 7 0 0 1-.63.587q-.346.27-.744.46c-.224.107-.46.185-.806.3l-2.084.695a1.28 1.28 0 0 1-1.62-1.62l.681-2.04l.014-.043c.116-.347.194-.582.301-.806a4 4 0 0 1 .46-.744c.153-.196.328-.371.587-.63l.031-.031zm2.78 1.06a1.216 1.216 0 0 0-1.72 0l-.182.182l.034.107c.094.27.273.63.611.968a2.55 2.55 0 0 0 1.075.645l.182-.182a1.216 1.216 0 0 0 0-1.72m-1.328 3.048a4 4 0 0 1-.99-.73a4 4 0 0 1-.73-.99L14.45 12.83c-.301.301-.407.409-.496.523q-.17.218-.289.467c-.062.131-.111.274-.246.678l-.4 1.2l.283.283l1.2-.4c.404-.135.547-.184.678-.246q.248-.12.467-.289c.114-.089.222-.195.523-.496zM7.25 9A.75.75 0 0 1 8 8.25h6.5a.75.75 0 0 1 0 1.5H8A.75.75 0 0 1 7.25 9m0 4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1-.75-.75m0 4a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1-.75-.75' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:document-text-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M3 10c0-3.771 0-5.657 1.172-6.828S7.229 2 11 2h2c3.771 0 5.657 0 6.828 1.172S21 6.229 21 10v4c0 3.771 0 5.657-1.172 6.828S16.771 22 13 22h-2c-3.771 0-5.657 0-6.828-1.172S3 17.771 3 14z'/%3E%3Cpath stroke-linecap='round' d='M8 12h8M8 8h8m-8 8h5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:earth-outline,[i-solar\:earth-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.578 5.343a9.25 9.25 0 0 0 6.803 15.9c-.206-.912-.234-2.138.393-3.319c.652-1.229 2.002-1.762 2.995-2.006a9.2 9.2 0 0 1 1.898-.254h.043c1.673-.018 2.426-.562 2.826-1.08c.342-.444.47-.887.602-1.336l.05-.172A9.22 9.22 0 0 0 18.6 5.519l-.027.1c-.163.594-.425 1.202-.711 1.636c-.256.388-.752.78-1.164 1.076a10 10 0 0 1-.902.56c-.228.132-.433.25-.63.38c-.432.286-.766.593-.991 1.056a.67.67 0 0 0-.035.49c.075.272.126.578.126.889c.002.649-.328 1.176-.753 1.518a2.4 2.4 0 0 1-1.521.526c-2.455-.027-3.965-2.02-4.164-4.236c-.08-.881-.466-1.773-.954-2.552a8.8 8.8 0 0 0-1.296-1.62m1.167-.956a10.5 10.5 0 0 1 1.4 1.779c.558.89 1.069 2.012 1.177 3.214c.15 1.68 1.213 2.854 2.686 2.87a.9.9 0 0 0 .563-.194c.146-.117.196-.24.195-.346c0-.156-.026-.328-.072-.495a2.16 2.16 0 0 1 .131-1.542c.385-.794.956-1.285 1.514-1.653c.239-.158.487-.3.71-.43l.09-.05c.255-.148.48-.28.683-.427c.431-.31.704-.557.787-.684c.183-.276.388-.734.518-1.207c.103-.374.131-.662.122-.84A9.2 9.2 0 0 0 12 2.75a9.2 9.2 0 0 0-5.255 1.637M22.68 13.24q.07-.61.071-1.24c0-5.937-4.813-10.75-10.75-10.75S1.25 6.063 1.25 12S6.063 22.75 12 22.75c5.46 0 9.97-4.071 10.659-9.344a3 3 0 0 1 .048-.156zm-2.774 3.567c-.596.218-1.314.348-2.179.357h-.031l-.09.003a7.7 7.7 0 0 0-1.477.208c-.902.221-1.693.62-2.029 1.252c-.456.859-.39 1.793-.22 2.432a9.26 9.26 0 0 0 6.026-4.252' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:emoji-funny-square-bold-duotone,[i-solar\:emoji-funny-square-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M6.504 21.52c1.633.943 3.706.387 7.853-.724s6.22-1.666 7.163-3.3s.387-3.706-.724-7.853s-1.666-6.22-3.3-7.163s-3.706-.388-7.853.724c-4.147 1.11-6.22 1.666-7.163 3.3s-.388 3.706.724 7.853c1.11 4.147 1.666 6.22 3.3 7.163' opacity='.5'/%3E%3Cpath fill='currentColor' d='M14.898 11.224c.533-.143.792-.908.578-1.708s-.821-1.333-1.355-1.19c-.533.143-.792.907-.577 1.708c.214.8.82 1.333 1.354 1.19m-5.796 1.553c.534-.143.792-.908.578-1.708s-.82-1.333-1.354-1.19s-.792.907-.578 1.708s.82 1.333 1.354 1.19m-.917 2.974a.75.75 0 0 1 .91-.545c1.13.283 2.428.287 3.746-.066c1.318-.354 2.44-1.006 3.278-1.816a.75.75 0 1 1 1.043 1.078a8.4 8.4 0 0 1-1.15.928l.159.322a1.5 1.5 0 1 1-2.693 1.322l-.196-.4l-.053.014c-1.555.417-3.112.42-4.499.073a.75.75 0 0 1-.545-.91'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:eye-closed-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2.919 6.605a1 1 0 0 0-1.838.79l.002.003l.003.007l.01.021l.032.072q.04.09.12.25c.105.21.262.506.47.857c.41.687 1.027 1.6 1.872 2.52l-.797.797a1 1 0 1 0 1.414 1.414l.84-.84c.565.455 1.197.885 1.897 1.256l-.782 1.202a1 1 0 0 0 1.676 1.091l.985-1.514c.677.208 1.402.355 2.177.425V16.5a1 1 0 0 0 1 1V13c-2.748 0-4.819-1.199-6.304-2.59l-.024-.022a12 12 0 0 1-.564-.569a13.4 13.4 0 0 1-1.67-2.237a12 12 0 0 1-.516-.968zm-1.838.79L2 7c-.92.394-.919.395-.919.395' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M15.22 12.398A8.7 8.7 0 0 1 12 13v4.5a1 1 0 0 0 1-1v-1.544c.772-.07 1.497-.217 2.176-.425l.986 1.515a1 1 0 0 0 1.676-1.091l-.782-1.203c.701-.37 1.332-.8 1.897-1.256l.84.84a1 1 0 1 0 1.414-1.414l-.797-.798a15.4 15.4 0 0 0 2.302-3.296a10 10 0 0 0 .19-.395l.011-.026l.004-.008l.002-.005a1 1 0 1 0-1.838-.788l-.005.011a5 5 0 0 1-.146.302a13 13 0 0 1-2.614 3.48c-.841.79-1.87 1.517-3.095 2' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:eye-scan-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14 2.75c1.907 0 3.262.002 4.29.14c1.005.135 1.585.389 2.008.812c.487.487.7.865.817 1.538c.132.759.135 1.84.135 3.76a.75.75 0 0 0 1.5 0v-.096c0-1.8 0-3.018-.158-3.922c-.175-1.005-.549-1.656-1.233-2.34c-.749-.75-1.698-1.081-2.87-1.239c-1.14-.153-2.595-.153-4.433-.153H14a.75.75 0 0 0 0 1.5M2 14.25a.75.75 0 0 1 .75.75c0 1.92.003 3.001.135 3.76c.118.673.33 1.051.817 1.538c.423.423 1.003.677 2.009.812c1.028.138 2.382.14 4.289.14a.75.75 0 0 1 0 1.5h-.056c-1.838 0-3.294 0-4.433-.153c-1.172-.158-2.121-.49-2.87-1.238c-.684-.685-1.058-1.336-1.233-2.341c-.158-.904-.158-2.123-.158-3.922V15a.75.75 0 0 1 .75-.75m20 0a.75.75 0 0 1 .75.75v.096c0 1.8 0 3.018-.158 3.922c-.175 1.005-.549 1.656-1.233 2.34c-.749.75-1.698 1.081-2.87 1.239c-1.14.153-2.595.153-4.433.153H14a.75.75 0 0 1 0-1.5c1.907 0 3.262-.002 4.29-.14c1.005-.135 1.585-.389 2.008-.812c.487-.487.7-.865.817-1.538c.132-.759.135-1.84.135-3.76a.75.75 0 0 1 .75-.75m-12.056-13H10a.75.75 0 0 1 0 1.5c-1.907 0-3.261.002-4.29.14c-1.005.135-1.585.389-2.008.812c-.487.487-.7.865-.817 1.538c-.132.759-.135 1.84-.135 3.76a.75.75 0 1 1-1.5 0v-.096c0-1.8 0-3.018.158-3.922c.175-1.005.549-1.656 1.233-2.34c.749-.75 1.698-1.081 2.87-1.239c1.14-.153 2.595-.153 4.433-.153' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 10.75a1.25 1.25 0 1 0 0 2.5a1.25 1.25 0 0 0 0-2.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.892 14.06C5.297 13.37 5 13.025 5 12s.297-1.37.892-2.06C7.08 8.562 9.072 7 12 7s4.92 1.562 6.108 2.94c.595.69.892 1.035.892 2.06s-.297 1.37-.892 2.06C16.92 15.438 14.928 17 12 17s-4.92-1.562-6.108-2.94M9.25 12a2.75 2.75 0 1 1 5.5 0a2.75 2.75 0 0 1-5.5 0' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:face-scan-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.801 2.57a.71.71 0 0 1-.555.838a8.78 8.78 0 0 0-6.838 6.838a.71.71 0 1 1-1.394-.283a10.2 10.2 0 0 1 7.949-7.949a.71.71 0 0 1 .838.556M2.57 13.199a.71.71 0 0 1 .838.555a8.78 8.78 0 0 0 6.838 6.838a.71.71 0 1 1-.283 1.394a10.2 10.2 0 0 1-7.948-7.949a.71.71 0 0 1 .555-.838M13.199 2.57a.71.71 0 0 1 .838-.556a10.2 10.2 0 0 1 7.949 7.949a.711.711 0 0 1-1.394.283a8.78 8.78 0 0 0-6.838-6.838a.71.71 0 0 1-.555-.838m8.231 10.629a.71.71 0 0 1 .556.838a10.2 10.2 0 0 1-7.949 7.949a.711.711 0 0 1-.283-1.394a8.78 8.78 0 0 0 6.838-6.838a.71.71 0 0 1 .838-.555' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M12 19.583a7.583 7.583 0 1 0 0-15.166a7.583 7.583 0 0 0 0 15.166' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8.94 14.539a.71.71 0 0 1 .995-.148c.59.437 1.3.69 2.065.69a3.45 3.45 0 0 0 2.065-.69a.71.71 0 1 1 .847 1.142a4.87 4.87 0 0 1-2.912.97a4.87 4.87 0 0 1-2.911-.97a.71.71 0 0 1-.148-.994m5.547-2.895c.458 0 .83-.557.83-1.244s-.372-1.244-.83-1.244s-.83.557-.83 1.244s.372 1.244.83 1.244m-4.976 0c.458 0 .83-.557.83-1.244s-.372-1.244-.83-1.244s-.83.557-.83 1.244s.372 1.244.83 1.244'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:face-scan-circle-outline,[i-solar\:face-scan-circle-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 10.5c0 .829-.448 1.5-1 1.5c-.553 0-1-.671-1-1.5c0-.828.447-1.5 1-1.5s1 .672 1 1.5m-6 0c0 .829-.448 1.5-1 1.5s-1-.671-1-1.5C8 9.672 8.448 9 9 9s1 .672 1 1.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M13.265 2.051a.75.75 0 0 1 .884-.586a10.76 10.76 0 0 1 8.386 8.386a.75.75 0 0 1-1.47.298a9.26 9.26 0 0 0-7.214-7.214a.75.75 0 0 1-.586-.884m-2.53 0a.75.75 0 0 1-.586.884a9.26 9.26 0 0 0-7.214 7.215a.75.75 0 0 1-1.47-.299A10.76 10.76 0 0 1 9.85 1.465a.75.75 0 0 1 .884.586M2.051 13.265a.75.75 0 0 1 .884.586a9.26 9.26 0 0 0 7.214 7.214a.75.75 0 1 1-.298 1.47a10.76 10.76 0 0 1-8.386-8.385a.75.75 0 0 1 .586-.885m19.898 0a.75.75 0 0 1 .586.885a10.76 10.76 0 0 1-8.386 8.385a.75.75 0 0 1-.298-1.47a9.26 9.26 0 0 0 7.214-7.214a.75.75 0 0 1 .884-.586M8.397 15.554a.75.75 0 0 1 1.05-.156c.728.54 1.607.852 2.553.852s1.825-.312 2.553-.852a.75.75 0 1 1 .893 1.205A5.77 5.77 0 0 1 12 17.75a5.77 5.77 0 0 1-3.447-1.147a.75.75 0 0 1-.156-1.05' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:filters-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 8A6 6 0 1 1 6 8a6 6 0 0 1 12 0'/%3E%3Cpath fill='currentColor' d='M13.58 13.79a6 6 0 0 1-7.16-3.58a6 6 0 1 0 7.16 3.58' opacity='.7'/%3E%3Cpath fill='currentColor' d='M13.58 13.79c.271.684.42 1.43.42 2.21a6 6 0 0 1-2 4.472a6 6 0 1 0 5.58-10.262a6.01 6.01 0 0 1-4 3.58' opacity='.4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:forbidden-circle-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22c5.523 0 10-4.477 10-10a9.96 9.96 0 0 0-2.418-6.52L5.479 19.581A9.96 9.96 0 0 0 12 22m0-20C6.477 2 2 6.477 2 12a9.96 9.96 0 0 0 2.418 6.52L18.521 4.419A9.96 9.96 0 0 0 12 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:forbidden-circle-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' d='m18.5 5.5l-13 13'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:forward-linear,[i-solar\:forward-linear=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m19.5 12l-5-5m5 5l-5 5m5-5h-10c-1.667 0-5 1-5 5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:gallery-circle-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 9a2 2 0 1 1-4 0a2 2 0 0 1 4 0'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 1.25C6.063 1.25 1.25 6.063 1.25 12S6.063 22.75 12 22.75S22.75 17.937 22.75 12S17.937 1.25 12 1.25m-.818 14.112l-4.29-4.29a2.3 2.3 0 0 0-3.14-.104l-1.001.894a9.25 9.25 0 1 1 16.858 5.4l-1.833-1.663a3 3 0 0 0-3.731-.225l-.299.21a2 2 0 0 1-2.564-.222' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:gallery-circle-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='15' cy='9' r='2'/%3E%3Cpath stroke-linecap='round' d='m20 17.6l-2.223-2a3 3 0 0 0-3.732-.225l-.299.21a2 2 0 0 1-2.564-.222l-4.29-4.29a2.3 2.3 0 0 0-3.14-.104l-1.47 1.286'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:ghost-bold-duotone,[i-solar\:ghost-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 19.206V12c0-5.523-4.477-10-10-10S2 6.477 2 12v7.206a1.727 1.727 0 0 0 2.5 1.544a2.89 2.89 0 0 1 2.896.18a2.89 2.89 0 0 0 3.208 0l.353-.234a1.88 1.88 0 0 1 2.086 0l.353.235a2.89 2.89 0 0 0 3.208 0a2.89 2.89 0 0 1 2.897-.18A1.727 1.727 0 0 0 22 19.206' opacity='.5'/%3E%3Cpath fill='currentColor' d='M15 12c.552 0 1-.672 1-1.5S15.552 9 15 9s-1 .672-1 1.5s.448 1.5 1 1.5m-5-1.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5S8.448 9 9 9s1 .672 1 1.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:home-smile-outline,[i-solar\:home-smile-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.447 15.398a.75.75 0 1 0-.894 1.204A5.77 5.77 0 0 0 12 17.75a5.77 5.77 0 0 0 3.447-1.148a.75.75 0 1 0-.894-1.204A4.27 4.27 0 0 1 12 16.25a4.27 4.27 0 0 1-2.553-.852'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 1.25c-.708 0-1.351.203-2.05.542c-.674.328-1.454.812-2.427 1.416L5.456 4.491c-.92.572-1.659 1.03-2.227 1.465c-.589.45-1.041.91-1.368 1.507c-.326.595-.472 1.229-.543 1.978c-.068.725-.068 1.613-.068 2.726v1.613c0 1.904 0 3.407.153 4.582c.156 1.205.486 2.178 1.23 2.947c.747.773 1.697 1.119 2.875 1.282c1.14.159 2.598.159 4.434.159h4.116c1.836 0 3.294 0 4.434-.159c1.177-.163 2.128-.509 2.876-1.282c.743-.769 1.073-1.742 1.23-2.947c.152-1.175.152-2.678.152-4.582v-1.613c0-1.113 0-2-.068-2.726c-.07-.75-.217-1.383-.543-1.978c-.327-.597-.78-1.056-1.368-1.507c-.568-.436-1.306-.893-2.227-1.465l-2.067-1.283c-.973-.604-1.753-1.088-2.428-1.416c-.697-.34-1.34-.542-2.049-.542M8.28 4.504c1.015-.63 1.73-1.072 2.327-1.363c.581-.283.993-.391 1.393-.391s.812.108 1.393.391c.598.29 1.312.733 2.327 1.363l2 1.241c.961.597 1.636 1.016 2.14 1.402c.489.375.77.684.963 1.036c.193.353.306.766.365 1.398c.061.648.062 1.465.062 2.623v1.521c0 1.97-.002 3.376-.14 4.443c-.136 1.048-.393 1.656-.82 2.099c-.425.439-1.003.7-2.004.839c-1.026.142-2.379.144-4.286.144h-4c-1.908 0-3.26-.002-4.286-.144c-1.001-.14-1.579-.4-2.003-.84c-.428-.442-.685-1.05-.82-2.098c-.14-1.067-.141-2.472-.141-4.443v-1.521c0-1.158 0-1.975.062-2.623c.059-.632.172-1.045.365-1.398c.193-.352.474-.661.964-1.036c.503-.386 1.178-.805 2.139-1.402z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:info-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 17.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:info-circle-line-duotone,[i-solar\:info-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Ccircle cx='12' cy='12' r='10' stroke='currentColor' stroke-width='1.5' opacity='.5'/%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-width='1.5' d='M12 17v-6'/%3E%3Ccircle cx='1' cy='1' r='1' fill='currentColor' transform='matrix(1 0 0 -1 11 9)'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:info-circle-outline,[i-solar\:info-circle-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 17.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12S17.937 22.75 12 22.75S1.25 17.937 1.25 12M12 2.75a9.25 9.25 0 1 0 0 18.5a9.25 9.25 0 0 0 0-18.5' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:layers-bold-duotone,[i-solar\:layers-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4.979 9.685C2.993 8.891 2 8.494 2 8s.993-.89 2.979-1.685l2.808-1.123C9.773 4.397 10.767 4 12 4s2.227.397 4.213 1.192l2.808 1.123C21.007 7.109 22 7.506 22 8s-.993.89-2.979 1.685l-2.808 1.124C14.227 11.603 13.233 12 12 12s-2.227-.397-4.213-1.191z'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 8c0 .494.993.89 2.979 1.685l2.808 1.124C9.773 11.603 10.767 12 12 12s2.227-.397 4.213-1.191l2.808-1.124C21.007 8.891 22 8.494 22 8s-.993-.89-2.979-1.685l-2.808-1.123C14.227 4.397 13.233 4 12 4s-2.227.397-4.213 1.192L4.98 6.315C2.993 7.109 2 7.506 2 8' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='m5.766 10l-.787.315C2.993 11.109 2 11.507 2 12s.993.89 2.979 1.685l2.808 1.124C9.773 15.603 10.767 16 12 16s2.227-.397 4.213-1.191l2.808-1.124C21.007 12.891 22 12.493 22 12s-.993-.89-2.979-1.685L18.234 10l-2.021.809C14.227 11.603 13.233 12 12 12s-2.227-.397-4.213-1.191z' opacity='.7'/%3E%3Cpath fill='currentColor' d='m5.766 14l-.787.315C2.993 15.109 2 15.507 2 16s.993.89 2.979 1.685l2.808 1.124C9.773 19.603 10.767 20 12 20s2.227-.397 4.213-1.192l2.808-1.123C21.007 16.891 22 16.494 22 16c0-.493-.993-.89-2.979-1.685L18.234 14l-2.021.809C14.227 15.603 13.233 16 12 16s-2.227-.397-4.213-1.191z' opacity='.4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:leaf-bold-duotone,[i-solar\:leaf-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 22c-4.418 0-8-3.646-8-8.143c0-4.462 2.553-9.67 6.537-11.531A3.45 3.45 0 0 1 12 2z' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M13.463 2.326A3.45 3.45 0 0 0 12 2v7l4.432-4.432c-.863-.947-1.86-1.724-2.97-2.242' opacity='.3'/%3E%3Cpath fill='currentColor' d='M12 9v5.5l6.614-6.614c-.572-1.22-1.308-2.357-2.182-3.318z' opacity='.4'/%3E%3Cpath fill='currentColor' d='m12 19.5l7.811-7.811a15 15 0 0 0-1.197-3.803L12 14.5z' opacity='.6'/%3E%3Cpath fill='currentColor' d='M19.811 11.689L12 19.5V22c4.418 0 8-3.646 8-8.143c0-.71-.064-1.438-.189-2.168' opacity='.7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:magic-stick-2-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.714 2.127c-.836-.43-1.922.263-4.095 1.65l-.562.36c-.618.394-.927.591-1.273.648c-.347.056-.692-.034-1.382-.215l-.628-.164C6.345 3.769 5.13 3.45 4.436 4.13s-.412 1.908.157 4.363l.147.635c.161.697.242 1.046.177 1.393c-.066.346-.27.65-.68 1.26l-.372.555c-1.439 2.145-2.158 3.217-1.753 4.067c.406.85 1.668.915 4.192 1.045l.654.033c.717.037 1.076.056 1.382.213c.306.158.524.436.962.994l.398.507c1.539 1.962 2.309 2.943 3.255 2.788c.945-.154 1.441-1.342 2.433-3.717l.257-.614c.282-.675.422-1.012.677-1.261c.255-.25.595-.382 1.274-.647l.618-.24c2.39-.933 3.586-1.4 3.765-2.345s-.777-1.744-2.688-3.342l-.495-.413c-.543-.454-.815-.68-.963-.992s-.158-.672-.175-1.393l-.016-.657c-.062-2.538-.093-3.806-.928-4.236'/%3E%3Cpath fill='currentColor' d='M15.93 16.991c.127-.268.239-.45.392-.6c.172-.167.382-.282.71-.42l4.498 4.499a.75.75 0 0 1-1.06 1.06z' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:magic-stick-3-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3.845 3.845a2.883 2.883 0 0 0 0 4.077L5.432 9.51c.012-.014.555.503.568.49l4-4c.013-.013-.504-.556-.49-.568L7.922 3.845a2.883 2.883 0 0 0-4.077 0m1.288 11.462a.483.483 0 0 1 .9 0l.157.4a.48.48 0 0 0 .272.273l.398.157a.486.486 0 0 1 0 .903l-.398.158a.48.48 0 0 0-.272.273l-.157.4a.483.483 0 0 1-.9 0l-.157-.4a.48.48 0 0 0-.272-.273l-.398-.158a.486.486 0 0 1 0-.903l.398-.157a.48.48 0 0 0 .272-.274z' opacity='.5'/%3E%3Cpath fill='currentColor' d='M19.967 9.13a.483.483 0 0 1 .9 0l.156.399c.05.125.148.224.273.273l.398.158a.486.486 0 0 1 0 .902l-.398.158a.5.5 0 0 0-.273.273l-.156.4a.483.483 0 0 1-.9 0l-.157-.4a.5.5 0 0 0-.272-.273l-.398-.158a.486.486 0 0 1 0-.902l.398-.158a.5.5 0 0 0 .272-.273z' opacity='.2'/%3E%3Cpath fill='currentColor' d='M16.1 2.307a.483.483 0 0 1 .9 0l.43 1.095a.48.48 0 0 0 .272.274l1.091.432a.486.486 0 0 1 0 .903l-1.09.432a.5.5 0 0 0-.273.273L17 6.81a.483.483 0 0 1-.9 0l-.43-1.095a.5.5 0 0 0-.273-.273l-1.09-.432a.486.486 0 0 1 0-.903l1.09-.432a.5.5 0 0 0 .273-.274z' opacity='.7'/%3E%3Cpath fill='currentColor' d='M10.568 6.49c-.012.014-.555-.503-.568-.49l-4 4c-.013.013.504.556.49.568l9.588 9.587a2.883 2.883 0 1 0 4.078-4.077z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:magnifer-line-duotone,[i-solar\:magnifer-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3Cmask id='SVGcfiNQVot'%3E%3Cg fill='none' stroke-width='1.5'%3E%3Ccircle cx='11.5' cy='11.5' r='9.5' stroke='gray'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' d='M18.5 18.5L22 22'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Cpath fill='currentColor' d='M0 0h24v24H0z' mask='url(%23SVGcfiNQVot)'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:menu-dots-bold,[i-solar\:menu-dots-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 12a2 2 0 1 1-4 0a2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0a2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0a2 2 0 0 1 4 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:microphone-3-bold-duotone,[i-solar\:microphone-3-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M4 9a.75.75 0 0 1 .75.75v1a7.25 7.25 0 1 0 14.5 0v-1a.75.75 0 0 1 1.5 0v1a8.75 8.75 0 0 1-8 8.718v2.282a.75.75 0 0 1-1.5 0v-2.282a8.75 8.75 0 0 1-8-8.718v-1A.75.75 0 0 1 4 9' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 2a5.75 5.75 0 0 0-5.75 5.75v3a5.75 5.75 0 0 0 11.5 0v-3A5.75 5.75 0 0 0 12 2m2 9.5a.75.75 0 0 0 0-1.5h-4a.75.75 0 0 0 0 1.5zm-.25-3.75a.75.75 0 0 1-.75.75h-2A.75.75 0 0 1 11 7h2a.75.75 0 0 1 .75.75' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='M14 11.5a.75.75 0 0 0 0-1.5h-4a.75.75 0 0 0 0 1.5zm-1-3A.75.75 0 0 0 13 7h-2a.75.75 0 0 0 0 1.5z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:minus-circle-line-duotone,[i-solar\:minus-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10' opacity='.5'/%3E%3Cpath stroke-linecap='round' d='M15 12H9'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:moon-bold,[i-solar\:moon-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22c5.523 0 10-4.477 10-10c0-.463-.694-.54-.933-.143a6.5 6.5 0 1 1-8.924-8.924C12.54 2.693 12.463 2 12 2C6.477 2 2 6.477 2 12s4.477 10 10 10'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:moon-outline,[i-solar\:moon-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11.017 2.802a9.25 9.25 0 1 0 10.181 10.181A7.25 7.25 0 1 1 11.017 2.802M1.25 12C1.25 6.063 6.063 1.25 12 1.25c.717 0 1.075.571 1.137 1.026c.059.438-.103.995-.606 1.299a5.75 5.75 0 1 0 7.894 7.894c.304-.503.861-.665 1.299-.606c.455.062 1.026.42 1.026 1.137c0 5.937-4.813 10.75-10.75 10.75S1.25 17.937 1.25 12' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:notes-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='m20.312 12.647l.517-1.932c.604-2.255.907-3.382.68-4.358a4 4 0 0 0-1.162-2.011c-.731-.685-1.859-.987-4.114-1.591c-2.255-.605-3.383-.907-4.358-.68a4 4 0 0 0-2.011 1.162c-.587.626-.893 1.543-1.348 3.209l-.244.905l-.517 1.932c-.605 2.255-.907 3.382-.68 4.358a4 4 0 0 0 1.162 2.011c.731.685 1.859.987 4.114 1.592c2.032.544 3.149.843 4.064.73q.15-.019.294-.052a4 4 0 0 0 2.011-1.16c.685-.732.987-1.86 1.592-4.115Z'/%3E%3Cpath d='M16.415 17.974a4 4 0 0 1-1.068 1.678c-.731.685-1.859.987-4.114 1.591s-3.383.907-4.358.679a4 4 0 0 1-2.011-1.161c-.685-.731-.988-1.859-1.592-4.114l-.517-1.932c-.605-2.255-.907-3.383-.68-4.358a4 4 0 0 1 1.162-2.011c.731-.685 1.859-.987 4.114-1.592q.638-.172 1.165-.309'/%3E%3Cpath stroke-linecap='round' d='m11.777 10l4.83 1.294M11 12.898l2.898.776'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:pallete-2-bold-duotone,[i-solar\:pallete-2-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10.847 21.934C5.867 21.362 2 17.133 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10c0 5.157-3.283 4.733-6.086 4.37c-1.618-.209-3.075-.397-3.652.518c-.395.626.032 1.406.555 1.929a1.673 1.673 0 0 1 0 2.366c-.523.523-1.235.836-1.97.751' opacity='.5'/%3E%3Cpath fill='currentColor' d='M11.085 7a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0M6.5 13a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3m11 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3m-3-4.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:pause-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8.076 8.617C8 8.801 8 9.034 8 9.5v5c0 .466 0 .699.076.883a1 1 0 0 0 .541.54c.184.077.417.077.883.077s.699 0 .883-.076a1 1 0 0 0 .54-.541c.077-.184.077-.417.077-.883v-5c0-.466 0-.699-.076-.883a1 1 0 0 0-.541-.54C10.199 8 9.966 8 9.5 8s-.699 0-.883.076a1 1 0 0 0-.54.541m4.999 0C13 8.801 13 9.034 13 9.5v5c0 .466 0 .699.076.883a1 1 0 0 0 .541.54c.184.077.417.077.883.077s.699 0 .883-.076a1 1 0 0 0 .54-.541c.077-.184.077-.417.077-.883v-5c0-.466 0-.699-.076-.883a1 1 0 0 0-.541-.54C15.199 8 14.966 8 14.5 8s-.699 0-.883.076a1 1 0 0 0-.54.541'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:pen-2-line-duotone,[i-solar\:pen-2-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' d='M4 22h16' opacity='.5'/%3E%3Cpath d='m14.63 2.921l-.742.742l-6.817 6.817c-.462.462-.693.692-.891.947a5.2 5.2 0 0 0-.599.969c-.139.291-.242.601-.449 1.22l-.875 2.626l-.213.641a.848.848 0 0 0 1.073 1.073l.641-.213l2.625-.875c.62-.207.93-.31 1.221-.45q.518-.246.969-.598c.255-.199.485-.43.947-.891l6.817-6.817l.742-.742a3.146 3.146 0 0 0-4.45-4.449Z'/%3E%3Cpath d='M13.888 3.664S13.98 5.24 15.37 6.63s2.966 1.483 2.966 1.483m-12.579 9.63l-1.5-1.5' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:people-nearby-bold-duotone,[i-solar\:people-nearby-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19.717 20.362C21.143 19.585 22 18.587 22 17.5c0-1.152-.963-2.204-2.546-3C17.623 13.58 14.962 13 12 13s-5.623.58-7.454 1.5C2.963 15.296 2 16.348 2 17.5s.963 2.204 2.546 3C6.377 21.42 9.038 22 12 22c3.107 0 5.882-.637 7.717-1.638' opacity='.6'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M9.25 4a2.75 2.75 0 1 1 5.5 0a2.75 2.75 0 0 1-5.5 0' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='m8.223 11.574l-2.175-.725a1.532 1.532 0 0 1 .805-2.952l1.898.407l.21.044a15 15 0 0 0 6.288-.044l1.897-.407a1.532 1.532 0 0 1 .806 2.952l-2.175.725c-.263.088-.394.132-.493.193a1 1 0 0 0-.466.986c.016.115.066.244.165.503l1.247 3.242a1.473 1.473 0 0 1-2.654 1.26L12 15l-1.576 2.757a1.473 1.473 0 0 1-2.654-1.26l1.247-3.241c.1-.259.149-.388.165-.503a1 1 0 0 0-.466-.986c-.099-.061-.23-.105-.493-.193'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:play-circle-bold-duotone,[i-solar\:play-circle-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='m15.414 13.059l-4.72 2.787C9.934 16.294 9 15.71 9 14.786V9.214c0-.924.934-1.507 1.694-1.059l4.72 2.787c.781.462.781 1.656 0 2.118'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:play-circle-broken{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M13.888 9.935C14.963 10.812 15.5 11.25 15.5 12s-.537 1.188-1.612 2.065c-.297.242-.591.47-.862.66c-.237.167-.506.339-.784.508c-1.073.652-1.609.978-2.09.617c-.48-.36-.524-1.116-.612-2.628c-.024-.427-.04-.846-.04-1.222s.016-.795.04-1.222c.088-1.512.132-2.267.612-2.628c.481-.361 1.018-.035 2.09.617c.278.169.547.341.784.508c.27.19.565.418.862.66Z'/%3E%3Cpath stroke-linecap='round' d='M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:question-square-bold-duotone,[i-solar\:question-square-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22c-4.714 0-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12s0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 7.75c-.621 0-1.125.504-1.125 1.125a.75.75 0 0 1-1.5 0a2.625 2.625 0 1 1 4.508 1.829q-.138.142-.264.267a7 7 0 0 0-.571.617c-.22.282-.298.489-.298.662V13a.75.75 0 0 1-1.5 0v-.75c0-.655.305-1.186.614-1.583c.229-.294.516-.58.75-.814q.106-.105.193-.194A1.125 1.125 0 0 0 12 7.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:refresh-bold-duotone,[i-solar\:refresh-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12.079 2.25c-4.794 0-8.734 3.663-9.118 8.333H2a.75.75 0 0 0-.528 1.283l1.68 1.666a.75.75 0 0 0 1.056 0l1.68-1.666a.75.75 0 0 0-.528-1.283h-.893c.38-3.831 3.638-6.833 7.612-6.833a7.66 7.66 0 0 1 6.537 3.643a.75.75 0 1 0 1.277-.786A9.16 9.16 0 0 0 12.08 2.25'/%3E%3Cpath fill='currentColor' d='M20.841 10.467a.75.75 0 0 0-1.054 0L18.1 12.133a.75.75 0 0 0 .527 1.284h.899c-.381 3.83-3.651 6.833-7.644 6.833a7.7 7.7 0 0 1-6.565-3.644a.75.75 0 1 0-1.276.788a9.2 9.2 0 0 0 7.84 4.356c4.809 0 8.766-3.66 9.151-8.333H22a.75.75 0 0 0 .527-1.284z' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:round-double-alt-arrow-right-bold-duotone,[i-solar\:round-double-alt-arrow-right-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12' opacity='.5'/%3E%3Cpath fill='currentColor' d='M9.03 15.53a.75.75 0 0 1-1.06-1.06L10.44 12L7.97 9.53a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06z'/%3E%3Cpath fill='currentColor' d='M13.03 15.53a.75.75 0 1 1-1.06-1.06L14.44 12l-2.47-2.47a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:running-2-line-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Ccircle cx='18.5' cy='4.5' r='2.5' stroke='currentColor' stroke-width='1.5' opacity='.5'/%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-width='1.5' d='m9 17l-1 1.2c-.738.886-1.107 1.328-1.61 1.564S5.31 20 4.157 20H3'/%3E%3Cpath fill='currentColor' d='M13.65 22a.75.75 0 0 0 1.5 0zm-1.085-5.754l.453-.598zm1.184 1.015l.587-.466zm.557 1.12l.727-.186zm-.802-6.826a.75.75 0 0 0-1.009-1.11zm-2.652 1.61l.703.26zm.07 1.555l-.677.323zm2.728 5.219v2.06h1.5v-2.06zm-1.538-3.095c.663.502.887.679 1.05.884l1.174-.934c-.308-.387-.717-.69-1.319-1.146zm3.038 3.095c0-.755.006-1.264-.117-1.744l-1.453.373c.065.254.07.538.07 1.37zm-1.988-2.211c.197.247.339.534.417.84l1.454-.373a3.75 3.75 0 0 0-.697-1.4zm-.667-7.283c-.42.381-.945.836-1.354 1.224c-.21.198-.41.398-.573.586c-.149.172-.327.4-.42.649l1.407.521c-.007.021.014-.035.146-.187c.116-.134.276-.295.471-.48c.4-.38.865-.778 1.332-1.203zm.523 5.203c-.488-.37-.818-.62-1.056-.832c-.233-.208-.32-.33-.363-.418l-1.354.645c.167.35.423.63.72.894c.292.26.679.552 1.147.907zm-2.87-2.744a2.75 2.75 0 0 0 .097 2.139l1.354-.645a1.25 1.25 0 0 1-.044-.973z' opacity='.5'/%3E%3Cpath fill='currentColor' d='m5.436 8.82l-.37-.652zm-1.807.164a.75.75 0 1 0 .742 1.304zm9.778-1.627l-.286.693zm-2.96-.715l-.055-.748zM21 12.75a.75.75 0 1 0 0-1.5zm-5.232-3.213l-.67.335zM5.065 8.168l-1.436.816l.742 1.304l1.435-.816zm8.627-1.505c-1.344-.553-2.08-.857-3.3-.769l.11 1.496c.823-.06 1.255.099 2.62.66zm-7.886 2.81c2.502-1.422 3.552-2 4.695-2.083l-.109-1.496c-1.56.114-2.949.923-5.327 2.274zm13.949 3.276H21v-1.5h-1.245zm-4.658-2.878a5.21 5.21 0 0 0 4.658 2.878v-1.5A3.71 3.71 0 0 1 16.439 9.2zm1.342-.67a5.33 5.33 0 0 0-2.747-2.538l-.57 1.387c.86.354 1.564 1 1.975 1.821z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:scale-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12' opacity='.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M16.656 2.75a.75.75 0 0 1 0-1.5H22a.75.75 0 0 1 .75.75v5.344a.75.75 0 0 1-1.5 0V3.81l-7.44 7.439H16a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75V8a.75.75 0 0 1 1.5 0v2.19l7.44-7.44z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:settings-bold-duotone,[i-solar\:settings-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M14.279 2.152C13.909 2 13.439 2 12.5 2s-1.408 0-1.779.152a2 2 0 0 0-1.09 1.083c-.094.223-.13.484-.145.863a1.62 1.62 0 0 1-.796 1.353a1.64 1.64 0 0 1-1.579.008c-.338-.178-.583-.276-.825-.308a2.03 2.03 0 0 0-1.49.396c-.318.242-.553.646-1.022 1.453c-.47.807-.704 1.21-.757 1.605c-.07.526.074 1.058.4 1.479c.148.192.357.353.68.555c.477.297.783.803.783 1.361s-.306 1.064-.782 1.36c-.324.203-.533.364-.682.556a2 2 0 0 0-.399 1.479c.053.394.287.798.757 1.605s.704 1.21 1.022 1.453c.424.323.96.465 1.49.396c.242-.032.487-.13.825-.308a1.64 1.64 0 0 1 1.58.008c.486.28.774.795.795 1.353c.015.38.051.64.145.863c.204.49.596.88 1.09 1.083c.37.152.84.152 1.779.152s1.409 0 1.779-.152a2 2 0 0 0 1.09-1.083c.094-.223.13-.483.145-.863c.02-.558.309-1.074.796-1.353a1.64 1.64 0 0 1 1.579-.008c.338.178.583.276.825.308c.53.07 1.066-.073 1.49-.396c.318-.242.553-.646 1.022-1.453c.47-.807.704-1.21.757-1.605a2 2 0 0 0-.4-1.479c-.148-.192-.357-.353-.68-.555c-.477-.297-.783-.803-.783-1.361s.306-1.064.782-1.36c.324-.203.533-.364.682-.556a2 2 0 0 0 .399-1.479c-.053-.394-.287-.798-.757-1.605s-.704-1.21-1.022-1.453a2.03 2.03 0 0 0-1.49-.396c-.242.032-.487.13-.825.308a1.64 1.64 0 0 1-1.58-.008a1.62 1.62 0 0 1-.795-1.353c-.015-.38-.051-.64-.145-.863a2 2 0 0 0-1.09-1.083' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='M15.523 12c0 1.657-1.354 3-3.023 3s-3.023-1.343-3.023-3S10.83 9 12.5 9s3.023 1.343 3.023 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:settings-minimalistic-bold-duotone,[i-solar\:settings-minimalistic-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.428 2c-1.114 0-2.129.6-4.157 1.802l-.686.406C5.555 5.41 4.542 6.011 3.985 7c-.557.99-.557 2.19-.557 4.594v.812c0 2.403 0 3.605.557 4.594s1.57 1.59 3.6 2.791l.686.407C10.299 21.399 11.314 22 12.428 22s2.128-.6 4.157-1.802l.686-.407c2.028-1.2 3.043-1.802 3.6-2.791c.557-.99.557-2.19.557-4.594v-.812c0-2.403 0-3.605-.557-4.594s-1.572-1.59-3.6-2.792l-.686-.406C14.555 2.601 13.542 2 12.428 2' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12.428 8.25a3.75 3.75 0 1 0 0 7.5a3.75 3.75 0 0 0 0-7.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:settings-outline,[i-solar\:settings-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor' fill-rule='evenodd' clip-rule='evenodd'%3E%3Cpath d='M12 8.25a3.75 3.75 0 1 0 0 7.5a3.75 3.75 0 0 0 0-7.5M9.75 12a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0'/%3E%3Cpath d='M11.975 1.25c-.445 0-.816 0-1.12.02a2.8 2.8 0 0 0-.907.19a2.75 2.75 0 0 0-1.489 1.488c-.145.35-.184.72-.2 1.122a.87.87 0 0 1-.415.731a.87.87 0 0 1-.841-.005c-.356-.188-.696-.339-1.072-.389a2.75 2.75 0 0 0-2.033.545a2.8 2.8 0 0 0-.617.691c-.17.254-.356.575-.578.96l-.025.044c-.223.385-.408.706-.542.98c-.14.286-.25.568-.29.88a2.75 2.75 0 0 0 .544 2.033c.231.301.532.52.872.734a.87.87 0 0 1 .426.726a.87.87 0 0 1-.426.726c-.34.214-.64.433-.872.734a2.75 2.75 0 0 0-.545 2.033c.041.312.15.594.29.88c.135.274.32.595.543.98l.025.044c.222.385.408.706.578.96c.177.263.367.5.617.69a2.75 2.75 0 0 0 2.033.546c.376-.05.716-.2 1.072-.389a.87.87 0 0 1 .84-.005a.86.86 0 0 1 .417.731c.015.402.054.772.2 1.122a2.75 2.75 0 0 0 1.488 1.489c.29.12.59.167.907.188c.304.021.675.021 1.12.021h.05c.445 0 .816 0 1.12-.02c.318-.022.617-.069.907-.19a2.75 2.75 0 0 0 1.489-1.488c.145-.35.184-.72.2-1.122a.87.87 0 0 1 .415-.732a.87.87 0 0 1 .841.006c.356.188.696.339 1.072.388a2.75 2.75 0 0 0 2.033-.544c.25-.192.44-.428.617-.691c.17-.254.356-.575.578-.96l.025-.044c.223-.385.408-.706.542-.98c.14-.286.25-.569.29-.88a2.75 2.75 0 0 0-.544-2.033c-.231-.301-.532-.52-.872-.734a.87.87 0 0 1-.426-.726c0-.278.152-.554.426-.726c.34-.214.64-.433.872-.734a2.75 2.75 0 0 0 .545-2.033a2.8 2.8 0 0 0-.29-.88a18 18 0 0 0-.543-.98l-.025-.044a18 18 0 0 0-.578-.96a2.8 2.8 0 0 0-.617-.69a2.75 2.75 0 0 0-2.033-.546c-.376.05-.716.2-1.072.389a.87.87 0 0 1-.84.005a.87.87 0 0 1-.417-.731c-.015-.402-.054-.772-.2-1.122a2.75 2.75 0 0 0-1.488-1.489c-.29-.12-.59-.167-.907-.188c-.304-.021-.675-.021-1.12-.021zm-1.453 1.595c.077-.032.194-.061.435-.078c.247-.017.567-.017 1.043-.017s.796 0 1.043.017c.241.017.358.046.435.078c.307.127.55.37.677.677c.04.096.073.247.086.604c.03.792.439 1.555 1.165 1.974s1.591.392 2.292.022c.316-.167.463-.214.567-.227a1.25 1.25 0 0 1 .924.247c.066.051.15.138.285.338c.139.206.299.483.537.895s.397.69.506.912c.107.217.14.333.15.416a1.25 1.25 0 0 1-.247.924c-.064.083-.178.187-.48.377c-.672.422-1.128 1.158-1.128 1.996s.456 1.574 1.128 1.996c.302.19.416.294.48.377c.202.263.29.595.247.924c-.01.083-.044.2-.15.416c-.109.223-.268.5-.506.912s-.399.689-.537.895c-.135.2-.219.287-.285.338a1.25 1.25 0 0 1-.924.247c-.104-.013-.25-.06-.567-.227c-.7-.37-1.566-.398-2.292.021s-1.135 1.183-1.165 1.975c-.013.357-.046.508-.086.604a1.25 1.25 0 0 1-.677.677c-.077.032-.194.061-.435.078c-.247.017-.567.017-1.043.017s-.796 0-1.043-.017c-.241-.017-.358-.046-.435-.078a1.25 1.25 0 0 1-.677-.677c-.04-.096-.073-.247-.086-.604c-.03-.792-.439-1.555-1.165-1.974s-1.591-.392-2.292-.022c-.316.167-.463.214-.567.227a1.25 1.25 0 0 1-.924-.247c-.066-.051-.15-.138-.285-.338a17 17 0 0 1-.537-.895c-.238-.412-.397-.69-.506-.912c-.107-.217-.14-.333-.15-.416a1.25 1.25 0 0 1 .247-.924c.064-.083.178-.187.48-.377c.672-.422 1.128-1.158 1.128-1.996s-.456-1.574-1.128-1.996c-.302-.19-.416-.294-.48-.377a1.25 1.25 0 0 1-.247-.924c.01-.083.044-.2.15-.416c.109-.223.268-.5.506-.912s.399-.689.537-.895c.135-.2.219-.287.285-.338a1.25 1.25 0 0 1 .924-.247c.104.013.25.06.567.227c.7.37 1.566.398 2.292-.022c.726-.419 1.135-1.182 1.165-1.974c.013-.357.046-.508.086-.604c.127-.307.37-.55.677-.677'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:sledgehammer-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7.604 4.604C9.34 2.868 10.208 2 11.286 2c1.079 0 1.947.868 3.682 2.604l4.42 4.419c1.735 1.735 2.603 2.603 2.603 3.682s-.868 1.946-2.604 3.682s-2.604 2.604-3.682 2.604c-1.079 0-1.947-.868-3.682-2.604l-4.42-4.419C5.869 10.233 5 9.365 5 8.286s.868-1.946 2.604-3.682'/%3E%3Cpath fill='currentColor' d='m8.345 12.71l-5.52 5.518c-.342.343-.513.514-.616.692a1.56 1.56 0 0 0 0 1.562c.103.178.274.35.617.692s.513.514.692.617a1.56 1.56 0 0 0 1.562 0c.178-.103.35-.275.692-.617l5.518-5.519zm10.31-4.42l.373-.372c.342-.343.514-.514.617-.692a1.56 1.56 0 0 0 0-1.562c-.103-.179-.275-.35-.617-.692c-.342-.343-.514-.514-.692-.617a1.56 1.56 0 0 0-1.562 0c-.178.103-.35.274-.692.617l-.373.373z' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:stop-circle-bold-duotone,[i-solar\:stop-circle-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8.586 8.586C8 9.172 8 10.114 8 12s0 2.828.586 3.414S10.114 16 12 16s2.828 0 3.414-.586S16 13.886 16 12s0-2.828-.586-3.414S13.886 8 12 8s-2.828 0-3.414.586'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:sun-2-bold,[i-solar\:sun-2-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 12a5 5 0 1 1-10 0a5 5 0 0 1 10 0'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 1.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V2a.75.75 0 0 1 .75-.75M3.669 3.716a.75.75 0 0 1 1.06-.047L6.95 5.7a.75.75 0 1 1-1.012 1.107L3.716 4.776a.75.75 0 0 1-.047-1.06m16.662 0a.75.75 0 0 1-.047 1.06l-2.222 2.031A.75.75 0 0 1 17.05 5.7l2.222-2.031a.75.75 0 0 1 1.06.047M1.25 12a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75m18 0a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75m-2.224 5.025a.75.75 0 0 1 1.06 0l2.222 2.223a.75.75 0 0 1-1.06 1.06l-2.222-2.222a.75.75 0 0 1 0-1.06m-10.051 0a.75.75 0 0 1 0 1.061l-2.223 2.222a.75.75 0 0 1-1.06-1.06l2.222-2.223a.75.75 0 0 1 1.06 0M12 19.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:sun-2-outline,[i-solar\:sun-2-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 1.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V2a.75.75 0 0 1 .75-.75M3.669 3.716a.75.75 0 0 1 1.06-.047L6.95 5.7a.75.75 0 1 1-1.012 1.107L3.716 4.776a.75.75 0 0 1-.047-1.06m16.662 0a.75.75 0 0 1-.047 1.06l-2.222 2.031A.75.75 0 0 1 17.05 5.7l2.222-2.031a.75.75 0 0 1 1.06.047M12 7.75a4.25 4.25 0 1 0 0 8.5a4.25 4.25 0 0 0 0-8.5M6.25 12a5.75 5.75 0 1 1 11.5 0a5.75 5.75 0 0 1-11.5 0m-5 0a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75m18 0a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75m-2.224 5.025a.75.75 0 0 1 1.06 0l2.222 2.223a.75.75 0 0 1-1.06 1.06l-2.222-2.222a.75.75 0 0 1 0-1.06m-10.051 0a.75.75 0 0 1 0 1.061l-2.223 2.222a.75.75 0 0 1-1.06-1.06l2.222-2.223a.75.75 0 0 1 1.06 0M12 19.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:tag-horizontal-bold,[i-solar\:tag-horizontal-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.858 20h-2.637c-3.875 0-5.813 0-7.017-1.172S2 15.771 2 12s0-5.657 1.204-6.828S6.346 4 10.22 4h2.637c2.227 0 3.341 0 4.27.501c.93.502 1.52 1.42 2.701 3.259l.681 1.06C21.503 10.366 22 11.14 22 12s-.497 1.634-1.49 3.18l-.68 1.06c-1.181 1.838-1.771 2.757-2.701 3.259S15.085 20 12.858 20M7 7.054c.414 0 .75.316.75.706v8.475c0 .39-.336.706-.75.706s-.75-.316-.75-.706V7.76c0-.39.336-.706.75-.706' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:trash-bin-2-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2.75 6.167c0-.46.345-.834.771-.834h2.665c.529-.015.996-.378 1.176-.916l.03-.095l.115-.372c.07-.228.131-.427.217-.605c.338-.702.964-1.189 1.687-1.314c.184-.031.377-.031.6-.031h3.478c.223 0 .417 0 .6.031c.723.125 1.35.612 1.687 1.314c.086.178.147.377.217.605l.115.372l.03.095c.18.538.74.902 1.27.916h2.57c.427 0 .772.373.772.834S20.405 7 19.979 7H3.52c-.426 0-.771-.373-.771-.833'/%3E%3Cpath fill='currentColor' d='M11.607 22h.787c2.707 0 4.06 0 4.941-.863c.88-.864.97-2.28 1.15-5.111l.26-4.081c.098-1.537.147-2.305-.295-2.792s-1.187-.487-2.679-.487H8.23c-1.491 0-2.237 0-2.679.487s-.392 1.255-.295 2.792l.26 4.08c.18 2.833.27 4.248 1.15 5.112S8.9 22 11.607 22' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:trash-bin-minimalistic-bold-duotone,[i-solar\:trash-bin-minimalistic-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 6.524c0-.395.327-.714.73-.714h4.788c.006-.842.098-1.995.932-2.793A3.68 3.68 0 0 1 12 2a3.68 3.68 0 0 1 2.55 1.017c.834.798.926 1.951.932 2.793h4.788c.403 0 .73.32.73.714a.72.72 0 0 1-.73.714H3.73A.72.72 0 0 1 3 6.524'/%3E%3Cpath fill='currentColor' d='M11.596 22h.808c2.783 0 4.174 0 5.08-.886c.904-.886.996-2.339 1.181-5.245l.267-4.188c.1-1.577.15-2.366-.303-2.865c-.454-.5-1.22-.5-2.753-.5H8.124c-1.533 0-2.3 0-2.753.5s-.404 1.288-.303 2.865l.267 4.188c.185 2.906.277 4.36 1.182 5.245c.905.886 2.296.886 5.079.886' opacity='.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M9.425 11.482c.413-.044.78.273.821.707l.5 5.263c.041.433-.26.82-.671.864c-.412.043-.78-.273-.821-.707l-.5-5.263c-.041-.434.26-.821.671-.864m5.15 0c.412.043.713.43.671.864l-.5 5.263c-.04.434-.408.75-.82.707c-.413-.044-.713-.43-.672-.864l.5-5.264c.041-.433.409-.75.82-.707' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:trash-bin-trash-linear,[i-solar\:trash-bin-trash-linear=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' d='M20.5 6h-17m15.333 2.5l-.46 6.9c-.177 2.654-.265 3.981-1.13 4.79s-2.196.81-4.856.81h-.774c-2.66 0-3.991 0-4.856-.81c-.865-.809-.954-2.136-1.13-4.79l-.46-6.9M9.5 11l.5 5m4.5-5l-.5 5'/%3E%3Cpath d='M6.5 6h.11a2 2 0 0 0 1.83-1.32l.034-.103l.097-.291c.083-.249.125-.373.18-.479a1.5 1.5 0 0 1 1.094-.788C9.962 3 10.093 3 10.355 3h3.29c.262 0 .393 0 .51.019a1.5 1.5 0 0 1 1.094.788c.055.106.097.23.18.479l.097.291A2 2 0 0 0 17.5 6'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:tuning-outline,[i-solar\:tuning-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.959 9.75a.75.75 0 0 1-.75-.75V2a.75.75 0 0 1 1.5 0v7a.75.75 0 0 1-.75.75'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M7 5.75a3.75 3.75 0 1 1 0 7.5a3.75 3.75 0 0 1 0-7.5M9.25 9.5a2.25 2.25 0 1 0-4.5 0a2.25 2.25 0 0 0 4.5 0M17 18.25a3.75 3.75 0 1 0 0-7.5a3.75 3.75 0 0 0 0 7.5m2.25-3.75a2.25 2.25 0 1 1-4.5 0a2.25 2.25 0 0 1 4.5 0' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M6.209 15a.75.75 0 0 1 1.5 0v7a.75.75 0 0 1-1.5 0zm10.75 7.75a.75.75 0 0 1-.75-.75v-2a.75.75 0 0 1 1.5 0v2a.75.75 0 0 1-.75.75M6.209 2a.75.75 0 0 1 1.5 0v2a.75.75 0 0 1-1.5 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:tuning-square-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z'/%3E%3Ccircle cx='8' cy='10' r='2'/%3E%3Ccircle cx='2' cy='2' r='2' transform='matrix(1 0 0 -1 14 16)'/%3E%3Cpath stroke-linecap='round' d='M8 14v5m8-9V5M8 5v1m8 13v-1'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:undo-left-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M7.53 3.47a.75.75 0 0 1 0 1.06L5.06 7l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='m5.06 7l.75-.75h9.226c.904 0 1.633 0 2.222.053c.606.055 1.136.172 1.617.45a3.75 3.75 0 0 1 1.372 1.372c.278.481.395 1.011.45 1.617c.053.589.053 1.318.053 2.222v.072c0 .904 0 1.633-.053 2.222c-.055.606-.172 1.136-.45 1.617a3.75 3.75 0 0 1-1.372 1.373c-.481.277-1.011.394-1.617.449c-.589.053-1.318.053-2.222.053H8a.75.75 0 0 1 0-1.5h7c.948 0 1.61 0 2.122-.047c.502-.046.788-.13 1.003-.254a2.25 2.25 0 0 0 .823-.824c.125-.215.21-.5.255-1.003c.046-.512.047-1.174.047-2.122s0-1.61-.047-2.122c-.046-.503-.13-.788-.255-1.003a2.25 2.25 0 0 0-.823-.824c-.215-.124-.5-.208-1.003-.254c-.512-.046-1.174-.047-2.122-.047H5.81z' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:upload-minimalistic-bold,[i-solar\:upload-minimalistic-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12.554 2.494a.75.75 0 0 0-1.107 0l-4 4.375A.75.75 0 0 0 8.553 7.88l2.696-2.95V16a.75.75 0 0 0 1.5 0V4.932l2.697 2.95a.75.75 0 1 0 1.107-1.013z'/%3E%3Cpath fill='currentColor' d='M3.75 15a.75.75 0 0 0-1.5 0v.055c0 1.367 0 2.47.117 3.337c.12.9.38 1.658.981 2.26c.602.602 1.36.86 2.26.982c.867.116 1.97.116 3.337.116h6.11c1.367 0 2.47 0 3.337-.116c.9-.122 1.658-.38 2.26-.982s.86-1.36.982-2.26c.116-.867.116-1.97.116-3.337V15a.75.75 0 0 0-1.5 0c0 1.435-.002 2.436-.103 3.192c-.099.734-.28 1.122-.556 1.399c-.277.277-.665.457-1.4.556c-.755.101-1.756.103-3.191.103H9c-1.435 0-2.437-.002-3.192-.103c-.734-.099-1.122-.28-1.399-.556c-.277-.277-.457-.665-.556-1.4c-.101-.755-.103-1.756-.103-3.191'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:upload-square-line-duotone,[i-solar\:upload-square-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 17v-7m0 0l3 3m-3-3l-3 3'/%3E%3Cpath stroke-linecap='round' d='M16 7H8'/%3E%3Cpath d='M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:user-rounded-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='6' r='4'/%3E%3Cellipse cx='12' cy='17' rx='7' ry='4'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:user-speak-rounded-bold-duotone,[i-solar\:user-speak-rounded-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='10' cy='6.75' r='4' fill='currentColor'/%3E%3Cellipse cx='10' cy='17.75' fill='currentColor' opacity='.5' rx='7' ry='4'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M18.357 2.364a.75.75 0 0 1 1.029-.257L19 2.75l.386-.643h.001l.002.002l.004.002l.01.006l.113.076c.07.049.166.12.277.212c.222.185.512.462.802.838c.582.758 1.155 1.914 1.155 3.507s-.573 2.75-1.155 3.507c-.29.376-.58.653-.802.838a4 4 0 0 1-.363.27l-.028.018l-.01.006l-.003.002l-.002.001s-.001.001-.387-.642l.386.643a.75.75 0 0 1-.776-1.283l.005-.004l.041-.027q.06-.042.177-.136c.152-.128.362-.326.573-.6c.417-.542.844-1.386.844-2.593s-.427-2.05-.844-2.593a3.8 3.8 0 0 0-.573-.6a3 3 0 0 0-.218-.163l-.005-.003a.75.75 0 0 1-.253-1.027' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M16.33 4.415a.75.75 0 0 1 1.006-.336L17 4.75l.336-.67h.001l.002.001l.004.002l.008.004l.022.012a2 2 0 0 1 .233.153c.136.102.31.254.48.467c.349.436.664 1.099.664 2.031s-.316 1.595-.664 2.031a2.7 2.7 0 0 1-.654.586l-.06.034l-.02.012l-.01.004l-.003.002l-.002.001l-.33-.657l.329.658a.75.75 0 0 1-.685-1.335l.003-.001l.052-.036c.052-.04.13-.106.209-.205c.15-.189.335-.526.335-1.094s-.184-.905-.335-1.094a1.2 1.2 0 0 0-.261-.24l-.003-.002a.75.75 0 0 1-.322-1' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-svg-spinners\:3-dots-fade{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='4' cy='12' r='3' fill='currentColor'%3E%3Canimate id='SVG7x14Dcom' fill='freeze' attributeName='opacity' begin='0;SVGqSjG0dUp.end-0.25s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='3' fill='currentColor' opacity='.4'%3E%3Canimate fill='freeze' attributeName='opacity' begin='SVG7x14Dcom.begin+0.15s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3Ccircle cx='20' cy='12' r='3' fill='currentColor' opacity='.3'%3E%3Canimate id='SVGqSjG0dUp' fill='freeze' attributeName='opacity' begin='SVG7x14Dcom.begin+0.3s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-svg-spinners\:ring-resize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg stroke='currentColor'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-linecap='round' stroke-width='3'%3E%3Canimate attributeName='stroke-dasharray' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0 150;42 150;42 150;42 150'/%3E%3Canimate attributeName='stroke-dashoffset' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0;-16;-59;-59'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='2s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-vscode-icons\:file-type-minecraft{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%2352a535' d='M30 2H2v28h28z'/%3E%3Cpath fill='%2386d562' d='M24.4 13.2h-5.6v.47h5.6zm-5.6 8.4h-5.6v.47h5.6zm2.8 2.8h-2.8v.47h2.8zm-8.4 0h-2.8v.47h2.8zm0-11.2H7.6v.47h5.6z'/%3E%3Cpath d='M24.4 13.2V7.6h-5.6v5.6h-5.6V16h-2.8v8.4h2.8v-2.8h5.6v2.8h2.8V16h-2.8v-2.8zM13.2 7.6H7.6v5.6h5.6z'/%3E%3Cpath fill='%232a641c' d='M24.4 7.6h-5.6v.47h5.6zm-5.6 5.6h-5.6v.47h5.6zm-5.6-5.6H7.6v.47h5.6zm0 8.4h-2.8v.47h2.8zm8.4 0h-2.8v.47h2.8z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1.2em;height:1.2em}.prose{color:var(--un-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-bullets);font-weight:400}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--un-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--un-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){content:open-quote;content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-kbd);box-shadow:0 0 0 1px rgb(var(--un-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--un-prose-kbd-shadows)/10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-code);font-size:.875em;font-weight:600}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){content:"`";content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-pre-code);background-color:var(--un-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){content:none;content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--un-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose{--un-prose-body:#374151;--un-prose-invert-body:#d1d5db;--un-prose-headings:#111827;--un-prose-invert-headings:white;--un-prose-lead:#4b5563;--un-prose-invert-lead:#9ca3af;--un-prose-links:#111827;--un-prose-invert-links:white;--un-prose-bold:#111827;--un-prose-invert-bold:white;--un-prose-counters:#6b7280;--un-prose-invert-counters:#9ca3af;--un-prose-bullets:#d1d5db;--un-prose-invert-bullets:#4b5563;--un-prose-hr:#e5e7eb;--un-prose-invert-hr:#374151;--un-prose-quotes:#111827;--un-prose-invert-quotes:#f3f4f6;--un-prose-quote-borders:#e5e7eb;--un-prose-invert-quote-borders:#374151;--un-prose-captions:#6b7280;--un-prose-invert-captions:#9ca3af;--un-prose-kbd:#111827;--un-prose-invert-kbd:white;--un-prose-kbd-shadows:#111827;--un-prose-invert-kbd-shadows:white;--un-prose-code:#111827;--un-prose-invert-code:white;--un-prose-pre-code:#e5e7eb;--un-prose-invert-pre-code:#d1d5db;--un-prose-pre-bg:#1f2937;--un-prose-invert-pre-bg:#00000080;--un-prose-th-borders:#d1d5db;--un-prose-invert-th-borders:#4b5563;--un-prose-td-borders:#e5e7eb;--un-prose-invert-td-borders:#374151}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.container,[container=""]{width:100%}.scrollbar-none,[scrollbar-none=""]{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}[scrollbar-none=""]::-webkit-scrollbar{display:none}@media (min-width:640px){.container,[container=""]{max-width:640px}}@media (min-width:768px){.container,[container=""]{max-width:768px}}@media (min-width:1024px){.container,[container=""]{max-width:1024px}}@media (min-width:1280px){.container,[container=""]{max-width:1280px}}@media (min-width:1536px){.container,[container=""]{max-width:1536px}}.\[input\:checked\~\&\]{input:checked~&}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.data-\[disabled\]\:pointer-events-none[data-disabled],.pointer-events-none,[pointer-events-none=""]{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.sticky,[sticky=""]{position:sticky}.before-position-absolute:before,[before~=absolute]:before,.after\:absolute:after,[after~=absolute]:after{position:absolute}.inset-0,[inset-0=""],[before~=inset-0]:before,[after~=inset-0]:after{inset:0}.inset-x-0,[inset-x-0=""]{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom--8,[bottom--8=""]{bottom:-2rem}.bottom-0,[bottom-0=""]{bottom:0}.bottom-2{bottom:.5rem}.left-0,[left-0=""]{left:0}.left-1\/2{left:50%}.left-10,[left-10=""]{left:2.5rem}.left-2{left:.5rem}.left-3,[left-3=""]{left:.75rem}.right--10,[right--10=""]{right:-2.5rem}.right--15,[right--15=""]{right:-3.75rem}.right--5,[right--5=""]{right:-1.25rem}.right-0,[right-0=""]{right:0}.right-2,[right-2=""]{right:.5rem}.right-4,[right-4=""]{right:1rem}.top--20,[top--20=""]{top:-5rem}.top-\[-32px\]{top:-32px}.top-0,[top-0=""],[top~="0"]{top:0}.top-1\/2,[top~="50%"]{top:50%}.top-2,[top-2=""]{top:.5rem}.top-4,[top-4=""]{top:1rem}[top~="[65dvh]"]{top:65dvh}[top~="[calc(100dvh-12rem)]"]{top:calc(100dvh - 12rem)}[top~="[calc(100dvh-15rem)]"]{top:calc(100dvh - 15rem)}.before\:left-2:before{left:.5rem}.before\:right-0:before{right:0}.before\:top-50\%:before{top:50%}.after\:left-\[2px\]:after{left:2px}.after\:top-\[2px\]:after{top:2px}.line-clamp-1,[line-clamp-1=""]{-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3,[line-clamp-3=""]{-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.z--1,[z--1=""]{z-index:-1}.z--2{z-index:-2}.z-\[9999\]{z-index:9999}.z-0{z-index:0}.z-1,[z-1=""]{z-index:1}.z-10,[z-10=""]{z-index:10}.z-100,[z-100=""]{z-index:100}.z-1000{z-index:1000}.z-10000{z-index:10000}.z-15,[z-15=""]{z-index:15}.z-2,[z-2=""]{z-index:2}.z-20{z-index:20}.z-3,[z-3=""]{z-index:3}.z-4,[z-4=""]{z-index:4}.z-5,[z-5=""]{z-index:5}.z-99,[z-99=""]{z-index:99}[before~=z-0]:before{z-index:0}[after~=z--2]:after{z-index:-2}.\[\&\>div\]\:grid>div,.grid,[grid=""],[grid~=\~]{display:grid}.col-span-1,.grid-col-span-1,[grid-col-span-1=""]{grid-column:span 1/span 1}.col-span-2,.grid-col-span-2,[grid-col-span-2=""]{grid-column:span 2/span 2}.col-span-full{grid-column:1/-1}.grid-col-span-3{grid-column:span 3/span 3}.row-span-1{grid-row:span 1/span 1}.row-span-2{grid-row:span 2/span 2}.col-start-3{grid-column-start:3}.col-start-4{grid-column-start:4}.col-start-5{grid-column-start:5}.auto-cols-\[350px\]{grid-auto-columns:350px}.auto-cols-auto{grid-auto-columns:auto}.grid-auto-rows-\[minmax\(min-content\,max-content\)\]{grid-auto-rows:minmax(min-content,max-content)}.grid-auto-flow-dense{grid-auto-flow:dense}.grid-flow-col{grid-auto-flow:column}.grid-flow-row{grid-auto-flow:row}.\[\&\>div\]\:grid-cols-\[4fr_2fr\]>div{grid-template-columns:4fr 2fr}.cols-\[150px_1fr\],[grid~="cols-[150px_1fr]"]{grid-template-columns:150px 1fr}.cols-\[70px_1fr\],[grid~="cols-[70px_1fr]"]{grid-template-columns:70px 1fr}.grid-cols-\[repeat\(auto-fill\,minmax\(280px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.cols-1,.grid-cols-1,[grid~=cols-1]{grid-template-columns:repeat(1,minmax(0,1fr))}.cols-5,[grid~=cols-5]{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-2,[grid-cols-2=""]{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}[grid-cols-3~=placeholder\:]::placeholder{grid-template-columns:repeat(3,minmax(0,1fr))}.m-0,[m0=""]{margin:0}.\[\&\:\:-webkit-inner-spin-button\]\:m-0::-webkit-inner-spin-button{margin:0}.m-\[5px\]{margin:5px}.m-1{margin:.25rem}.m-auto{margin:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-5,[mx-5=""]{margin-left:1.25rem;margin-right:1.25rem}.mx-auto,[mx-auto=""]{margin-left:auto;margin-right:auto}.my,.my-4{margin-top:1rem;margin-bottom:1rem}.my-0,[my-0=""]{margin-top:0;margin-bottom:0}.my-10,[my-10=""]{margin-top:2.5rem;margin-bottom:2.5rem}.my-5,[my-5=""]{margin-top:1.25rem;margin-bottom:1.25rem}.my-auto,[my-auto=""]{margin-top:auto;margin-bottom:auto}[m~=y-1]{margin-top:.25rem;margin-bottom:.25rem}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1,[mb-1=""]{margin-bottom:.25rem}.mb-14,[mb-14=""]{margin-bottom:3.5rem}.mb-2,[mb-2=""]{margin-bottom:.5rem}.mb-3,[mb-3=""]{margin-bottom:.75rem}.mb-4,[mb-4=""]{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml{margin-left:1rem}.ml-0\.5,[ml-0\.5=""]{margin-left:.125rem}.ml-1,[ml-1=""]{margin-left:.25rem}.ml-auto{margin-left:auto}.mr{margin-right:1rem}.mr-0\!{margin-right:0!important}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-auto{margin-right:auto}.ms{margin-inline-start:1rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1,[mt-1=""]{margin-top:.25rem}.mt-2,[mt-2=""]{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4,[mt-4=""]{margin-top:1rem}.mt-auto{margin-top:auto}[ml~="12"]{margin-left:3rem}[mr~="12"]{margin-right:3rem}[box~=border]{box-sizing:border-box}.inline,[inline=""]{display:inline}.block,[block=""]{display:block}.inline-block,[inline-block=""]{display:inline-block}.contents{display:contents}.aspect-square,[aspect-square=""]{aspect-ratio:1}[aspect~="12/16"]{aspect-ratio:12/16}.size-16,[size-16=""]{width:4rem;height:4rem}.size-2{width:.5rem;height:.5rem}.size-20,[size-20=""]{width:5rem;height:5rem}.size-24,[size-24=""],[size~="24"]{width:6rem;height:6rem}.size-3{width:.75rem;height:.75rem}.size-4,[size-4=""]{width:1rem;height:1rem}.size-5,[size-5=""]{width:1.25rem;height:1.25rem}.size-6,[size-6=""],[size~="6"]{width:1.5rem;height:1.5rem}.size-60,[size-60=""]{width:15rem;height:15rem}.size-8,[size-8=""]{width:2rem;height:2rem}[size~="1"]{width:.25rem;height:.25rem}[size~=sm]{width:24rem;height:24rem}.h-\[1px\]{height:1px}.h-\[calc\(\(1lh\+1rem\+1rem\)\*2\)\]{height:calc(2lh + 4rem)}.h-\[calc\(100\%-40px\)\]{height:calc(100% - 40px)}.h-0,[h~="0"]{height:0}.h-0\.5,[h-0\.5=""]{height:.125rem}.h-0\.5lh{height:.5lh}.h-1\.5,[h-1\.5=""]{height:.375rem}.h-10{height:2.5rem}.h-100dvh,[h-100dvh=""],[h~="100dvh"]{height:100dvh}.h-12{height:3rem}.h-14,[h-14=""]{height:3.5rem}.h-15{height:3.75rem}.h-16{height:4rem}.h-1lh{height:1lh}.h-2,.h2,[h-2=""]{height:.5rem}.h-24,[h-24=""]{height:6rem}.h-30,[h-30=""]{height:7.5rem}.h-38{height:9.5rem}.h-4,[h-4=""]{height:1rem}.h-48,[h-48=""]{height:12rem}.h-5,[h-5=""],[h~="5"]{height:1.25rem}.h-6{height:1.5rem}.h-60,[h-60=""]{height:15rem}.h-7,[h-7=""]{height:1.75rem}.h-8,[h-8=""]{height:2rem}.h-auto,[h-auto=""],[h~=auto]{height:auto}.h-fit,[h-fit=""]{height:fit-content}.h-full,[h-full=""],[h~="100%"]{height:100%}.h1{height:.25rem}.h3{height:.75rem}.max-h-\[10lh\],[max-h~="[10lh]"]{max-height:10lh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[96\%\]{max-height:96%}.max-h-\[calc\(100dvh-100px-56px\)\]{max-height:calc(100dvh - 156px)}.max-h-\[calc\(100dvh-17rem\)\]{max-height:calc(100dvh - 17rem)}.max-h-\[calc\(100dvh-28rem\)\]{max-height:calc(100dvh - 28rem)}.max-h-\[calc\(100dvh-7lh\)\]{max-height:calc(100dvh - 7lh)}.max-h-100dvh,[max-h-100dvh=""],[max-h~="100dvh"]{max-height:100dvh}.max-h-50dvh{max-height:50dvh}.max-h-60,[max-h-60=""]{max-height:15rem}.max-h-full{max-height:100%}.max-h-none,[max-h-none=""]{max-height:none}.max-w-100dvw,[max-w-100dvw=""]{max-width:100dvw}.max-w-2xl{max-width:42rem}.max-w-45{max-width:11.25rem}.max-w-4lh,[max-w-4lh=""]{max-width:4lh}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-full,[max-w-full=""]{max-width:100%}.max-w-md{max-width:28rem}.min-h-\[120px\],.min-h-120px,[min-h-120px=""]{min-height:120px}.min-h-\[1lh\]{min-height:1lh}.min-h-1\.5em{min-height:1.5em}.min-h-16,[min-h-16=""]{min-height:4rem}.min-h-40px,[min-h-40px=""]{min-height:40px}.min-h-5,[min-h-5=""]{min-height:1.25rem}.min-h-70dvh,[min-h-70dvh=""]{min-height:70dvh}.min-w-\[150px\]{min-width:150px}.min-w-\[160px\]{min-width:160px}.min-w-\[200px\]{min-width:200px}.min-w-0,[min-w-0=""]{min-width:0}.min-w-12,[min-w-12=""]{min-width:3rem}.min-w-2,[min-w-2=""]{min-width:.5rem}.min-w-20,[min-w-20=""]{min-width:5rem}.min-w-20px{min-width:20px}.min-w-50,[min-w-50=""]{min-width:12.5rem}.min-w-60{min-width:15rem}.w-\[25px\]{width:25px}.w-\[92dvw\]{width:92dvw}.w-\[92vw\]{width:92vw}.w-\[calc\(100\%-8px-1rem\)\]{width:calc(100% - 8px - 1rem)}.w-\[calc\(100\%-8px\)\]{width:calc(100% - 8px)}.w-\[calc\(100\%-8px\)\]\!{width:calc(100% - 8px)!important}.w-0{width:0}.w-0\!{width:0!important}.w-1,[w-1=""]{width:.25rem}.w-1\.5,[w-1\.5=""]{width:.375rem}.w-1\/2,[w~="[50%]"]{width:50%}.w-10\%{width:10%}.w-100,[w-100=""]{width:25rem}.w-100\%,.w-full,[w-full=""],[w~="100%"],[w~=full]{width:100%}.w-100vw,[w-100vw=""]{width:100vw}.w-11{width:2.75rem}.w-12{width:3rem}.w-15{width:3.75rem}.w-16{width:4rem}.w-1lh{width:1lh}.w-2,[w-2=""]{width:.5rem}.w-25\%{width:25%}.w-30,[w-30=""]{width:7.5rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-5,[w-5=""]{width:1.25rem}.w-7,[w-7=""]{width:1.75rem}.w-8,[w-8=""]{width:2rem}.w-90\%{width:90%}.w-95\%{width:95%}.w-auto,[w-auto=""]{width:auto}.w-fit,[w-fit=""]{width:fit-content}[h~="[calc(100%-56px)]"]{height:calc(100% - 56px)}[h~="[calc(100dvh-40px)]"]{height:calc(100dvh - 40px)}[h~="[calc(1lh+4px+4px)]"]{height:calc(1lh + 8px)}[h~="100"]{height:25rem}[h~="300"]{height:75rem}[h~="50%"]{height:50%}[h~="85dvh"]{height:85dvh}[h~=unset]{height:unset}[max-h~="[300px]"]{max-height:300px}[max-h~="[4.5rem]"]{max-height:4.5rem}[max-h~="[85vh]"]{max-height:85vh}[max-h~="100"]{max-height:25rem}[max-h~="35dvh"]{max-height:35dvh}[max-h~="50"]{max-height:12.5rem}[max-w~="[calc(100%-3.5rem)]"]{max-width:calc(100% - 3.5rem)}[max-w~="500px"]{max-width:500px}[min-h~="[100px]"]{min-height:100px}[min-h~="[calc(1lh+4px+4px)]"]{min-height:calc(1lh + 8px)}[min-h~="100"]{min-height:25rem}[min-h~="120"]{min-height:30rem}[min-w~="1/2"],[min-w~="50%"]{min-width:50%}[min-w~="30%"]{min-width:30%}[w~="[calc(1lh+4px+4px)]"]{width:calc(1lh + 8px)}[w~="100dvw"]{width:100dvw}[w~="12.5"]{width:3.125rem}[w~="70%"]{width:70%}.hover\:h-13:hover{height:3.25rem}.hover\:w-2:hover{width:.5rem}[hover\:h-13=""]:hover{height:3.25rem}[hover\:w-2=""]:hover{width:.5rem}.before\:h-\[calc\(100\%-1rem\)\]:before{height:calc(100% - 1rem)}.before\:w-1:before{width:.25rem}[before~=h-full]:before{height:100%}[before~=w-25\%]:before{width:25%}.after\:h-5:after{height:1.25rem}.after\:w-5:after{width:1.25rem}[after~=h-full]:after{height:100%}[after~=w-full]:after{width:100%}.flex,[flex=""],[flex~=\~]{display:flex}.inline-flex,[inline-flex=""],[inline-flex~=\~]{display:inline-flex}.flex-1,[flex-1=""],[flex~="1"]{flex:1}.flex-shrink-0,.shrink-0,[flex-shrink-0=""],[shrink-0=""]{flex-shrink:0}.flex-row,[flex-row=""],[flex~=row]{flex-direction:row}[flex~=row-reverse]{flex-direction:row-reverse}.flex-col,[flex-col=""],[flex~=col]{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap,[flex-wrap=""]{flex-wrap:wrap}.origin-left,[origin-left=""]{transform-origin:0}[perspective~="800"]{perspective:800px}.-translate-x-1\/2,.translate-x-\[-50\%\]{--un-translate-x:-50%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.-translate-y-1\/2,[translate-y~="[-50%]"]{--un-translate-y:-50%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-x--7,[translate-x--7=""]{--un-translate-x:-1.75rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-x-0,[translate-x-0=""]{--un-translate-x:0;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-x-7,[translate-x-7=""]{--un-translate-x:1.75rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y--0,[translate-y--0=""]{--un-translate-y:0;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y--2,[translate-y--2=""]{--un-translate-y:-.5rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-\[0\.25lh\]{--un-translate-y:.25lh;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-\[50\%\]{--un-translate-y:50%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-1,[translate-y-1=""]{--un-translate-y:.25rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-2,[translate-y-2=""]{--un-translate-y:.5rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-4,[translate-y-4=""]{--un-translate-y:1rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-x~="0.5"]{--un-translate-x:.125rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-x~="data-[state=checked]:full"][data-state=checked]{--un-translate-x:100%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-y~="[-100%]"]{--un-translate-y:-100%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-y~="[-80%]"]{--un-translate-y:-80%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-y~="[2px]"]{--un-translate-y:2px;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-y~="100%"]{--un-translate-y:100%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.peer:checked~.peer-checked\:after\:translate-x-full:after{--un-translate-x:100%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.\[\&_\.card-cover_img\]\:hover\:translate-y-2:hover .card-cover img,[hover\:translate-y-2=""]:hover{--un-translate-y:.5rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.before\:translate-y--50\%:before{--un-translate-y:-50%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.rotate-180{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:180deg;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.rotate-45,[rotate-45=""]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:45deg;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.scale-100{--un-scale-x:1;--un-scale-y:1;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.scale-120{--un-scale-x:1.2;--un-scale-y:1.2;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.scale-125{--un-scale-x:1.25;--un-scale-y:1.25;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.scale-250,[scale-250=""]{--un-scale-x:2.5;--un-scale-y:2.5;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.\[\&_\.card-cover_img\]\:hover\:scale-102:hover .card-cover img{--un-scale-x:1.02;--un-scale-y:1.02;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.hover\:scale-110:hover{--un-scale-x:1.1;--un-scale-y:1.1;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[hover~=scale-100]:hover{--un-scale-x:1;--un-scale-y:1;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.active\:scale-95:active,[active\:scale-95=""]:active{--un-scale-x:.95;--un-scale-y:.95;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.transform-scale-x--100,[transform-scale-x--100=""]{--un-scale-x:-1;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.preserve-3d{transform-style:preserve-3d}.transform,[transform=""]{transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}@keyframes contentHide{}@keyframes contentShow{}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes slideDownAndFade{0%{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}@keyframes slideLeftAndFade{0%{opacity:0;transform:translate(2px)}to{opacity:1;transform:translate(0)}}@keyframes slideRightAndFade{0%{opacity:0;transform:translate(-2px)}to{opacity:1;transform:translate(0)}}@keyframes slideUpAndFade{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-pulse,[animate-pulse=""]{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-spin{animation:1s linear infinite spin}.data-\[side\=bottom\]\:animate-slideUpAndFade[data-side=bottom]{animation:.4s cubic-bezier(.16,1,.3,1) slideUpAndFade}.data-\[side\=left\]\:animate-slideRightAndFade[data-side=left]{animation:.4s cubic-bezier(.16,1,.3,1) slideRightAndFade}.data-\[side\=right\]\:animate-slideLeftAndFade[data-side=right]{animation:.4s cubic-bezier(.16,1,.3,1) slideLeftAndFade}.data-\[side\=top\]\:animate-slideDownAndFade[data-side=top]{animation:.4s cubic-bezier(.16,1,.3,1) slideDownAndFade}.data-\[state\=closed\]\:animate-contentHide[data-state=closed]{animation:.15s cubic-bezier(.16,1,.3,1) contentHide}.data-\[state\=closed\]\:animate-fadeOut[data-state=closed]{animation:.2s ease-in-out fadeOut}.data-\[state\=open\]\:animate-contentShow[data-state=open]{animation:.15s cubic-bezier(.16,1,.3,1) contentShow}.data-\[state\=open\]\:animate-fadeIn[data-state=open]{animation:.2s ease-in-out fadeIn}.cursor-pointer,[cursor-pointer=""],[cursor~=pointer]{cursor:pointer}.cursor-crosshair{cursor:crosshair}.cursor-not-allowed,.disabled\:cursor-not-allowed:disabled,[cursor~=disabled\:not-allowed]:disabled,[disabled\:cursor-not-allowed=""]:disabled{cursor:not-allowed}.cursor-col-resize,[cursor-col-resize=""]{cursor:col-resize}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize-none,[resize-none=""]{resize:none}.appearance-none,[appearance-none=""]{appearance:none}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button{appearance:none}.items-start,[flex~=items-start],[items-start=""]{align-items:flex-start}.items-end,[items-end=""]{align-items:flex-end}.items-center,[flex~=items-center],[items-center=""]{align-items:center}.self-start,[self-start=""]{align-self:flex-start}.self-end,[self-end=""]{align-self:flex-end}.justify-start{justify-content:flex-start}.justify-end,[justify-end=""]{justify-content:flex-end}.justify-center,[flex~=justify-center],[justify-center=""]{justify-content:center}.justify-between,[justify-between=""]{justify-content:space-between}.justify-self-end,[justify-self-end=""]{justify-self:end}.gap-\[5px\]{gap:5px}.gap-0,[gap-0=""]{gap:0}.gap-0\.5,[gap-0\.5=""]{gap:.125rem}.gap-1,[flex~=gap-1],[gap-1=""],[gap~="1"],[grid~=gap-1]{gap:.25rem}.gap-1\.5,[gap-1\.5=""]{gap:.375rem}.gap-2,[flex~=gap-2],[gap-2=""]{gap:.5rem}.gap-3,[flex~=gap-3],[gap-3=""]{gap:.75rem}.gap-4,[flex~=gap-4],[gap-4=""],[gap~="4"],[grid~=gap-4]{gap:1rem}.gap-5,[gap-5=""]{gap:1.25rem}.gap-6,[flex~=gap-6]{gap:1.5rem}.gap-8{gap:2rem}.gap-x-2,[flex~=gap-x-2]{column-gap:.5rem}.gap-y-0,[flex~=gap-y-0]{row-gap:0}.space-x-1>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(.25rem*calc(1 - var(--un-space-x-reverse)));margin-right:calc(.25rem*var(--un-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]),[space-x-2=""]>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(.5rem*calc(1 - var(--un-space-x-reverse)));margin-right:calc(.5rem*var(--un-space-x-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(.25rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(.25rem*var(--un-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(.5rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(.5rem*var(--un-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(.75rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(.75rem*var(--un-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]),[space-y-4=""]>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(1rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(1rem*var(--un-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(1.5rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(1.5rem*var(--un-space-y-reverse))}.of-hidden,.overflow-hidden,[of-hidden=""],[overflow-hidden=""],[overflow~=hidden]{overflow:hidden}.overflow-auto,[overflow-auto=""]{overflow:auto}.overflow-scroll,[overflow-scroll=""]{overflow:scroll}.of-x-scroll,[of-x-scroll=""]{overflow-x:scroll}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden,[overflow-x-hidden=""]{overflow-x:hidden}.overflow-y-auto,[overflow-y-auto=""]{overflow-y:auto}.overflow-y-scroll,[overflow-y-scroll=""]{overflow-y:scroll}.scroll-smooth,[scroll-smooth=""]{scroll-behavior:smooth}.truncate,[truncate=""]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.text-ellipsis,[text-ellipsis=""]{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line,[whitespace-pre-line=""]{white-space:pre-line}.whitespace-pre-wrap,[whitespace-pre-wrap=""]{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.b,.border,[b=""],[b~=\~],[border=""],[border~=\~],[border~="1"]{border-width:1px}.border-2,[border-2=""],[border~="2"],[border~="2px"]{border-width:2px}[b~="0"]{border-width:0}[b~="100"]{border-width:100px}[border~="4"]{border-width:4px}[b~=placeholder\:]::placeholder{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.\[\&\:checked\+div\]\:border-primary-500:checked+div,.border-primary-500{--un-border-opacity:1;border-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.b-green{--un-border-opacity:1;border-color:rgb(74 222 128/var(--un-border-opacity))}.b-orange{--un-border-opacity:1;border-color:rgb(251 146 60/var(--un-border-opacity))}.b-purple{--un-border-opacity:1;border-color:rgb(192 132 252/var(--un-border-opacity))}.b-red{--un-border-opacity:1;border-color:rgb(248 113 113/var(--un-border-opacity))}.border-amber-200{--un-border-opacity:1;border-color:rgb(253 230 138/var(--un-border-opacity))}.border-blue-200{--un-border-opacity:1;border-color:rgb(191 219 254/var(--un-border-opacity))}.border-gray-300{--un-border-opacity:1;border-color:rgb(209 213 219/var(--un-border-opacity))}.border-green-200{--un-border-opacity:1;border-color:rgb(187 247 208/var(--un-border-opacity))}.border-neutral-100,[border~=neutral-100]{--un-border-opacity:1;border-color:rgb(245 245 245/var(--un-border-opacity))}.border-neutral-100\/60,[border~=neutral-100\/60]{border-color:#f5f5f599}.border-neutral-200,.dark [border~=dark\:neutral-200],[border-neutral-200=""],[border~=neutral-200]{--un-border-opacity:1;border-color:rgb(229 229 229/var(--un-border-opacity))}.border-neutral-300,[border-neutral-300=""],[border~="data-[state=unchecked]:neutral-300"][data-state=unchecked],[border~=neutral-300]{--un-border-opacity:1;border-color:rgb(212 212 212/var(--un-border-opacity))}.border-neutral-300\/30{border-color:#d4d4d44d}.border-neutral-400{--un-border-opacity:1;border-color:rgb(163 163 163/var(--un-border-opacity))}.border-neutral-500{--un-border-opacity:1;border-color:rgb(115 115 115/var(--un-border-opacity))}.border-primary-100{--un-border-opacity:1;border-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))80%,oklch(100% 0 360/var(--un-border-opacity)))}.border-primary-200,[border~="data-[state=checked]:primary-200"][data-state=checked],[border~=primary-200]{--un-border-opacity:1;border-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.border-primary-400,.dark .dark\:\[\&\:checked\+div\]\:border-primary-400:checked+div,.dark .dark\:border-primary-400{--un-border-opacity:1;border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.border-primary-500\/5{border-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.05)}.border-red-200{--un-border-opacity:1;border-color:rgb(254 202 202/var(--un-border-opacity))}.border-red-200\/30{border-color:#fecaca4d}.border-white,.dark [border~=dark\:white]{--un-border-opacity:1;border-color:rgb(255 255 255/var(--un-border-opacity))}.dark .dark\:border-amber-800{--un-border-opacity:1;border-color:rgb(146 64 14/var(--un-border-opacity))}.dark .dark\:border-amber-800\/30{border-color:#92400e4d}.dark .dark\:border-blue-800\/30{border-color:#1e40af4d}.dark .dark\:border-gray-900{--un-border-opacity:1;border-color:rgb(17 24 39/var(--un-border-opacity))}.dark .dark\:border-green-800\/30{border-color:#1665344d}.dark .dark\:border-neutral-600,.dark [border~=dark\:neutral-600]{--un-border-opacity:1;border-color:rgb(82 82 82/var(--un-border-opacity))}.dark .dark\:border-neutral-700,.dark [border~=dark\:neutral-700],.dark [dark\:border-neutral-700=""]{--un-border-opacity:1;border-color:rgb(64 64 64/var(--un-border-opacity))}.dark .dark\:border-neutral-700\/30,.dark [border~="dark:neutral-700/30"]{border-color:#4040404d}.dark .dark\:border-neutral-800,.dark [border~=dark\:neutral-800],.dark [dark\:border-neutral-800=""],[border~=neutral-800]{--un-border-opacity:1;border-color:rgb(38 38 38/var(--un-border-opacity))}.dark .dark\:border-neutral-800\/25,.dark [border~="dark:neutral-800/25"]{border-color:#26262640}.dark .dark\:border-neutral-800\/30,.dark [border~="dark:neutral-800/30"]{border-color:#2626264d}.dark .dark\:border-neutral-900,.dark [border~=dark\:neutral-900]{--un-border-opacity:1;border-color:rgb(23 23 23/var(--un-border-opacity))}.dark .dark\:border-primary-600{--un-border-opacity:1;border-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark .dark\:border-primary-800,.dark [border~=dark\:primary-800]{--un-border-opacity:1;border-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark .dark\:border-primary-900{--un-border-opacity:1;border-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark .dark\:border-primary-900\/40{border-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.4)}.dark .dark\:border-red-800\/30{border-color:#991b1b4d}.dark .dark\:border-red-900\/30{border-color:#7f1d1d4d}.dark [border~="dark:cyan-500/50"]{border-color:#06b6d480}.dark [border~="dark:neutral-700/60"]{border-color:#40404099}.dark [border~="dark:primary-400/20"]{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)}.dark [border~="dark:primary-500/50"]{border-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.5)}.dark [border~="dark:violet-500/50"]{border-color:#8b5cf680}[border~=black]{--un-border-opacity:1;border-color:rgb(0 0 0/var(--un-border-opacity))}[border~=cyan-200\/50]{border-color:#a5f3fc80}[border~=neutral-200\/50]{border-color:#e5e5e580}[border~=neutral-200\/60]{border-color:#e5e5e599}[border~=primary-200\/20]{border-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.2)}[border~=primary-200\/50]{border-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.5)}[border~=primary-300]{--un-border-opacity:1;border-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}[border~=violet-200\/50]{border-color:#ddd6fe80}.peer:checked~.peer-checked\:after\:border-white:after{--un-border-opacity:1;border-color:rgb(255 255 255/var(--un-border-opacity))}[border~=focus-within\:neutral-800]:focus-within{--un-border-opacity:1;border-color:rgb(38 38 38/var(--un-border-opacity))}.dark .dark\:hover\:border-primary-400\/30:hover{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.3)}.dark .dark\:hover\:border-primary-700:hover{--un-border-opacity:1;border-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark [border~="dark:hover:primary-400/30"]:hover{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.3)}.hover\:border-primary-300:hover{--un-border-opacity:1;border-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.hover\:border-primary-500\/30:hover,[border~="hover:primary-500/30"]:hover{border-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.3)}.dark .dark\:focus\:border-neutral-600:focus{--un-border-opacity:1;border-color:rgb(82 82 82/var(--un-border-opacity))}.dark .dark\:focus\:border-primary-400\/50:focus{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.5)}.dark [border~="dark:focus:neutral-700"]:focus{--un-border-opacity:1;border-color:rgb(64 64 64/var(--un-border-opacity))}.dark [border~="dark:focus:primary-400/50"]:focus{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.5)}.focus\:border-neutral-300:focus{--un-border-opacity:1;border-color:rgb(212 212 212/var(--un-border-opacity))}.focus\:border-primary-300:focus{--un-border-opacity:1;border-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}[border~=focus\:neutral-200]:focus{--un-border-opacity:1;border-color:rgb(229 229 229/var(--un-border-opacity))}[border~=focus\:primary-100]:focus{--un-border-opacity:1;border-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))80%,oklch(100% 0 360/var(--un-border-opacity)))}[border~=focus\:primary-300]:focus{--un-border-opacity:1;border-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark [dark\:border-neutral-700~=placeholder\:]::placeholder{--un-border-opacity:1;border-color:rgb(64 64 64/var(--un-border-opacity))}.rounded,[rounded=""]{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-lg,[b~=rounded-lg],[rounded-lg=""],[rounded~=lg]{border-radius:.5rem}.rounded-md,[rounded-md=""]{border-radius:.375rem}.rounded-sm,[rounded-sm=""]{border-radius:.125rem}.rounded-xl,[rounded-xl=""]{border-radius:.75rem}[rounded~="[1lh]"]{border-radius:1lh}.before\:rounded-full:before,.after\:rounded-full:after{border-radius:9999px}.rounded-l-xl,[rounded-l-xl=""]{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl,[rounded-r-xl=""]{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-xl,[rounded-t-xl=""]{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-solid,[border-solid=""],[border~=solid]{border-style:solid}[b~=dashed],[border~=dashed]{border-style:dashed}.\!bg-transparent{background-color:#0000!important}.bg-amber-50{--un-bg-opacity:1;background-color:rgb(255 251 235/var(--un-bg-opacity))}.bg-black,[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.bg-black\/50,[bg~=black\/50]{background-color:#00000080}.bg-blue-100\/50{background-color:#dbeafe80}.bg-blue-50{--un-bg-opacity:1;background-color:rgb(239 246 255/var(--un-bg-opacity))}.bg-gray-600{--un-bg-opacity:1;background-color:rgb(75 85 99/var(--un-bg-opacity))}.bg-green-100\/50{background-color:#dcfce780}.bg-green-50{--un-bg-opacity:1;background-color:rgb(240 253 244/var(--un-bg-opacity))}.bg-green-500,[bg-green-500=""],[bg~=green-500]{--un-bg-opacity:1;background-color:rgb(34 197 94/var(--un-bg-opacity))}.bg-lime-50\/60{background-color:#f7fee799}.bg-lime-50\/80{background-color:#f7fee7cc}.bg-neutral-100,.data-\[highlighted\]\:bg-neutral-100[data-highlighted],[bg~=neutral-100]{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.bg-neutral-100\/55{background-color:#f5f5f58c}.bg-neutral-200,[bg-neutral-200=""],[bg~=neutral-200]{--un-bg-opacity:1;background-color:rgb(229 229 229/var(--un-bg-opacity))}.bg-neutral-200\/45{background-color:#e5e5e573}.bg-neutral-300,.dark [bg~=dark\:neutral-300],[bg~="data-[state=unchecked]:neutral-300"][data-state=unchecked]{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}.bg-neutral-400{--un-bg-opacity:1;background-color:rgb(163 163 163/var(--un-bg-opacity))}.bg-neutral-50,[bg-neutral-50=""],[bg~=neutral-50]{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.bg-neutral-50\/70,[bg~=neutral-50\/70]{background-color:#fafafab3}.bg-neutral-600,.dark .dark\:bg-neutral-600{--un-bg-opacity:1;background-color:rgb(82 82 82/var(--un-bg-opacity))}.bg-neutral-800,.dark .dark\:bg-neutral-800,.dark .dark\:data-\[highlighted\]\:bg-neutral-800[data-highlighted],.dark [bg~="dark:data-[state=unchecked]:neutral-800"][data-state=unchecked],.dark [bg~=dark\:neutral-800],.dark [dark\:bg-neutral-800=""]{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.bg-orange-100\/60{background-color:#ffedd599}.bg-orange-50\/70{background-color:#fff7edb3}.bg-primary{--un-bg-opacity:1;background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-100,[bg-primary-100=""],[bg~=primary-100]{--un-bg-opacity:1;background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))80%,oklch(100% 0 360/var(--un-bg-opacity)))}.bg-primary-100\/10{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.1)80%,#ffffff1a)}@supports (color:lab(0% 0 0)){.bg-primary-100\/10{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.1)80%,lab(100% 0 0/.1))}}.bg-primary-100\/100{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/1)80%,#fff)}@supports (color:lab(0% 0 0)){.bg-primary-100\/100{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/1)80%,lab(100% 0 0))}}.bg-primary-100\/20,.data-\[highlighted\]\:bg-primary-100\/20[data-highlighted]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.2)80%,#fff3)}@supports (color:lab(0% 0 0)){.bg-primary-100\/20,.data-\[highlighted\]\:bg-primary-100\/20[data-highlighted]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.2)80%,lab(100% 0 0/.2))}}.bg-primary-100\/30{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.3)80%,#ffffff4d)}@supports (color:lab(0% 0 0)){.bg-primary-100\/30{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.3)80%,lab(100% 0 0/.3))}}.bg-primary-100\/40{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.4)80%,#fff6)}@supports (color:lab(0% 0 0)){.bg-primary-100\/40{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.4)80%,lab(100% 0 0/.4))}}.bg-primary-100\/5{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.05)80%,#ffffff0d)}@supports (color:lab(0% 0 0)){.bg-primary-100\/5{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.05)80%,lab(100% 0 0/.05))}}.bg-primary-100\/50{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.5)80%,#ffffff80)}@supports (color:lab(0% 0 0)){.bg-primary-100\/50{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.5)80%,lab(100% 0 0/.5))}}.bg-primary-100\/60{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.6)80%,#fff9)}@supports (color:lab(0% 0 0)){.bg-primary-100\/60{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.6)80%,lab(100% 0 0/.6))}}.bg-primary-100\/70{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.7)80%,#ffffffb3)}@supports (color:lab(0% 0 0)){.bg-primary-100\/70{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.7)80%,lab(100% 0 0/.7))}}.bg-primary-100\/80{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.8)80%,#fffc)}@supports (color:lab(0% 0 0)){.bg-primary-100\/80{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.8)80%,lab(100% 0 0/.8))}}.bg-primary-100\/90{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.9)80%,#ffffffe6)}@supports (color:lab(0% 0 0)){.bg-primary-100\/90{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.9)80%,lab(100% 0 0/.9))}}.bg-primary-200,[bg-primary-200=""]{--un-bg-opacity:1;background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-200\/10{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-200\/100{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-200\/20,[bg~=primary-200\/20]{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-200\/30{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-200\/40{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-200\/5{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-200\/50{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-200\/60{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-200\/70{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-200\/80{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-200\/90{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-300,[bg-primary-300=""]{--un-bg-opacity:1;background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-300\/10{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-300\/100{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-300\/20{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-300\/30{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-300\/40{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-300\/5{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-300\/50,.dark .dark\:bg-primary-300\/50{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-300\/60{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-300\/70{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-300\/80{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-300\/90{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-400,.dark .dark\:bg-primary-400,.dark [bg~=dark\:primary-400],[bg-primary-400=""],[bg~="data-[state=checked]:primary-400"][data-state=checked],[bg~=primary-400]{--un-bg-opacity:1;background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-400\/10{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-400\/100{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-400\/20,.dark [bg~="dark:primary-400/20"]{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-400\/30{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-400\/40{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-400\/5{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-400\/50{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-400\/60{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-400\/70{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-400\/80,.dark [bg~="data-[state=checked]:dark:primary-400/80"][data-state=checked]{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-400\/90{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-50,[bg-primary-50=""],[bg~=primary-50]{--un-bg-opacity:1;background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))30%,oklch(100% 0 360/var(--un-bg-opacity)))}.bg-primary-50\/10{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.1)30%,#ffffff1a)}@supports (color:lab(0% 0 0)){.bg-primary-50\/10{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.1)30%,lab(100% 0 0/.1))}}.bg-primary-50\/100{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/1)30%,#fff)}@supports (color:lab(0% 0 0)){.bg-primary-50\/100{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/1)30%,lab(100% 0 0))}}.bg-primary-50\/20{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.2)30%,#fff3)}@supports (color:lab(0% 0 0)){.bg-primary-50\/20{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.2)30%,lab(100% 0 0/.2))}}.bg-primary-50\/30{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.3)30%,#ffffff4d)}@supports (color:lab(0% 0 0)){.bg-primary-50\/30{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.3)30%,lab(100% 0 0/.3))}}.bg-primary-50\/40{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.4)30%,#fff6)}@supports (color:lab(0% 0 0)){.bg-primary-50\/40{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.4)30%,lab(100% 0 0/.4))}}.bg-primary-50\/5{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.05)30%,#ffffff0d)}@supports (color:lab(0% 0 0)){.bg-primary-50\/5{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.05)30%,lab(100% 0 0/.05))}}.bg-primary-50\/50,[bg~=primary-50\/50]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.5)30%,#ffffff80)}@supports (color:lab(0% 0 0)){.bg-primary-50\/50,[bg~=primary-50\/50]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.5)30%,lab(100% 0 0/.5))}}.bg-primary-50\/60{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.6)30%,#fff9)}@supports (color:lab(0% 0 0)){.bg-primary-50\/60{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.6)30%,lab(100% 0 0/.6))}}.bg-primary-50\/70{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.7)30%,#ffffffb3)}@supports (color:lab(0% 0 0)){.bg-primary-50\/70{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.7)30%,lab(100% 0 0/.7))}}.bg-primary-50\/80,[bg~=primary-50\/80]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.8)30%,#fffc)}@supports (color:lab(0% 0 0)){.bg-primary-50\/80,[bg~=primary-50\/80]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.8)30%,lab(100% 0 0/.8))}}.bg-primary-50\/90{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.9)30%,#ffffffe6)}@supports (color:lab(0% 0 0)){.bg-primary-50\/90{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.9)30%,lab(100% 0 0/.9))}}.bg-primary-500,.dark [bg~=dark\:primary-500],[bg-primary-500=""],[bg~=primary-500],.peer:checked~.peer-checked\:bg-primary-500{--un-bg-opacity:1;background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-500\/10,[bg~=primary-500\/10]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-500\/100{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-500\/15{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.15)}.bg-primary-500\/20,[bg~=primary-500\/20]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-500\/30,[bg~=primary-500\/30]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-500\/40,[bg~=primary-500\/40]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-500\/5,[bg~=primary-500\/5]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-500\/50,[bg~=primary-500\/50]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-500\/60,[bg~=primary-500\/60]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-500\/70,[bg~=primary-500\/70]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-500\/80,[bg~=primary-500\/80]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-500\/90,[bg~=primary-500\/90]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-600,.dark .dark\:bg-primary-600,[bg-primary-600=""]{--un-bg-opacity:1;background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-600\/10{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-600\/100{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-600\/20{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-600\/30{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-600\/40{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-600\/5{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-600\/50{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-600\/60{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-600\/70{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-600\/80{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-600\/90{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-700,.dark .dark\:bg-primary-700,.dark [dark\:bg-primary-700=""],[bg-primary-700=""]{--un-bg-opacity:1;background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-700\/10{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-700\/100{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-700\/20{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-700\/30,.dark .dark\:bg-primary-700\/30{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-700\/40{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-700\/5{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-700\/50{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-700\/60{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-700\/70{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-700\/80{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-700\/90{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-800,.dark [bg~=dark\:primary-800],[bg-primary-800=""]{--un-bg-opacity:1;background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-800\/10{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-800\/100{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-800\/20{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-800\/30{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-800\/40{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-800\/5{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-800\/50{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-800\/60{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-800\/70{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-800\/80{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-800\/90{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-900,.dark .dark\:bg-primary-900,[bg-primary-900=""]{--un-bg-opacity:1;background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-900\/10{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-900\/100{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-900\/20,.dark .dark\:bg-primary-900\/20{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-900\/30,.dark .dark\:bg-primary-900\/30{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-900\/40,.dark .dark\:bg-primary-900\/40,.dark [bg~="dark:primary-900/40"]{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-900\/5,.dark .dark\:bg-primary-900\/5{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-900\/50,.dark .dark\:bg-primary-900\/50{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-900\/60{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-900\/70{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-900\/80{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-900\/90{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-950,[bg-primary-950=""]{--un-bg-opacity:1;background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-950\/10{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-950\/100{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-950\/20{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-950\/30{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-950\/40{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-950\/5{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-950\/50{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-950\/60{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-950\/70,.dark [bg~="dark:primary-950/70"]{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-950\/80{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-950\/90{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary\/10{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary\/100{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/1)}.bg-primary\/20{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary\/30{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary\/40{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary\/5{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary\/50{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary\/60{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary\/70{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary\/80{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary\/90{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.9)}.bg-red-100\/50{background-color:#fee2e280}.bg-red-50{--un-bg-opacity:1;background-color:rgb(254 242 242/var(--un-bg-opacity))}.bg-red-500{--un-bg-opacity:1;background-color:rgb(239 68 68/var(--un-bg-opacity))}.bg-red-500\/15{background-color:#ef444426}.bg-red900{--un-bg-opacity:1;background-color:rgb(127 29 29/var(--un-bg-opacity))}.bg-transparent,.dark [bg~=dark\:transparent],[bg-transparent=""],[bg~=transparent]{background-color:#0000}.bg-violet-50\/60{background-color:#f5f3ff99}.bg-violet-50\/80{background-color:#f5f3ffcc}.bg-white,.dark [bg~=dark\:white],[bg-white=""],[bg~=white]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.bg-white\/60,[bg~=white\/60]{background-color:#fff9}.bg-white\/80{background-color:#fffc}.bg-white\/90,[bg~=white\/90]{background-color:#ffffffe6}.bg-yellow-500{--un-bg-opacity:1;background-color:rgb(234 179 8/var(--un-bg-opacity))}.dark .dark\:bg-amber-900\/20{background-color:#78350f33}.dark .dark\:bg-black\/30,.dark [bg~="dark:black/30"]{background-color:#0000004d}.dark .dark\:bg-black\/40{background-color:#0006}.dark .dark\:bg-black\/75{background-color:#000000bf}.dark .dark\:bg-blue-900\/30{background-color:#1e3a8a4d}.dark .dark\:bg-blue-900\/50{background-color:#1e3a8a80}.dark .dark\:bg-gray-400{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.dark .dark\:bg-green-900\/30{background-color:#14532d4d}.dark .dark\:bg-green-900\/50{background-color:#14532d80}.dark .dark\:bg-lime-900\/25{background-color:#36531440}.dark .dark\:bg-lime-900\/50{background-color:#36531480}.dark .dark\:bg-neutral-500\/70{background-color:#737373b3}.dark .dark\:bg-neutral-700,.dark [bg~=dark\:neutral-700],.dark [dark\:bg-neutral-700=""],[bg~=neutral-700]{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark .dark\:bg-neutral-700\/50,.dark [bg~="dark:neutral-700/50"],[bg~=neutral-700\/50]{background-color:#40404080}.dark .dark\:bg-neutral-700\/60{background-color:#40404099}.dark .dark\:bg-neutral-800\/50,.dark [bg~="dark:neutral-800/50"]{background-color:#26262680}.dark .dark\:bg-neutral-800\/70,.dark [bg~="dark:neutral-800/70"]{background-color:#262626b3}.dark .dark\:bg-neutral-900,.dark [bg~=dark\:neutral-900]{--un-bg-opacity:1;background-color:rgb(23 23 23/var(--un-bg-opacity))}.dark .dark\:bg-neutral-900\/20,[bg~=neutral-900\/20]{background-color:#17171733}.dark .dark\:bg-neutral-900\/95{background-color:#171717f2}.dark .dark\:bg-orange-900\/25{background-color:#7c2d1240}.dark .dark\:bg-orange-900\/50{background-color:#7c2d1280}.dark .dark\:bg-primary-800\/25{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.25)}.dark .dark\:bg-primary-900\/25{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.25)}.dark .dark\:bg-red-700\/30{background-color:#b91c1c4d}.dark .dark\:bg-red-900\/20{background-color:#7f1d1d33}.dark .dark\:bg-red-900\/50{background-color:#7f1d1d80}.dark .dark\:bg-violet-900\/25{background-color:#4c1d9540}.dark .dark\:bg-violet-900\/50{background-color:#4c1d9580}.dark [bg~="dark:[rgba(0,0,0,0.3)]"]{--un-bg-opacity:.3;background-color:rgba(0,0,0,var(--un-bg-opacity))}.dark [bg~="dark:black/10"]{background-color:#0000001a}.dark [bg~=dark\:blue-900]{--un-bg-opacity:1;background-color:rgb(30 58 138/var(--un-bg-opacity))}.dark [bg~="dark:neutral-100/80"],[bg~=neutral-100\/80]{background-color:#f5f5f5cc}.dark [bg~="dark:neutral-900/50"]{background-color:#17171780}.dark [bg~="dark:neutral-900/70"]{background-color:#171717b3}.dark [bg~="dark:neutral-900/90"]{background-color:#171717e6}.dark [bg~=dark\:neutral-950]{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.dark [bg~="dark:neutral-950/50"]{background-color:#0a0a0a80}.dark [bg~="dark:neutral-950/80"]{background-color:#0a0a0acc}.dark [bg~="dark:orange-900/20"]{background-color:#7c2d1233}.dark [bg~=dark\:violet-800]{--un-bg-opacity:1;background-color:rgb(91 33 182/var(--un-bg-opacity))}.data-\[highlighted\]\:bg-red-100\/20[data-highlighted]{background-color:#fee2e233}[bg~=\$bg-color]{background-color:var(--bg-color)}[bg~=black\/0]{background-color:#0000}[bg~=black\/4]{background-color:#0000000a}[bg~=blue-100]{--un-bg-opacity:1;background-color:rgb(219 234 254/var(--un-bg-opacity))}[bg~=emerald-500]{--un-bg-opacity:1;background-color:rgb(16 185 129/var(--un-bg-opacity))}[bg~=gray-200\/30]{background-color:#e5e7eb4d}[bg~=inherit]{background-color:inherit }[bg~=neutral-100\/50]{background-color:#f5f5f580}[bg~=neutral-200\/50]{background-color:#e5e5e580}[bg~=neutral-400\/20]{background-color:#a3a3a333}[bg~=neutral-50\/50]{background-color:#fafafa80}[bg~=orange-50]{--un-bg-opacity:1;background-color:rgb(255 247 237/var(--un-bg-opacity))}[bg~=violet-100]{--un-bg-opacity:1;background-color:rgb(237 233 254/var(--un-bg-opacity))}[bg~=white\/70]{background-color:#ffffffb3}.dark .dark\:hover\:bg-black\/40:hover{background-color:#0006}.dark .dark\:hover\:bg-neutral-600:hover{--un-bg-opacity:1;background-color:rgb(82 82 82/var(--un-bg-opacity))}.dark .dark\:hover\:bg-neutral-700:hover{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark .dark\:hover\:bg-neutral-700\/80:hover{background-color:#404040cc}.dark .dark\:hover\:bg-neutral-800:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.dark .dark\:hover\:bg-primary-700\/40:hover{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.4)}.dark .dark\:hover\:bg-red-700\/40:hover{background-color:#b91c1c66}.dark .dark\:hover\:bg-white\/10:hover{background-color:#ffffff1a}.dark .hover\:dark\:bg-neutral-800\/50:hover{background-color:#26262680}.dark [bg~="dark:hover:neutral-800"]:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.dark [bg~="dark:hover:white/30"]:hover{background-color:#ffffff4d}.dark [bg~="hover:dark:neutral-700/65"]:hover{background-color:#404040a6}.dark [bg~="hover:dark:neutral-900/65"]:hover{background-color:#171717a6}.dark [hover~="dark:bg-black/40"]:hover{background-color:#0006}.dark [hover~=dark\:bg-neutral-700]:hover{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark [hover~="dark:bg-neutral-700/50"]:hover{background-color:#40404080}.group:hover [bg~="group-hover:black/20"]{background-color:#0003}.hover\:bg-neutral-100:hover{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.hover\:bg-neutral-300:hover{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}.hover\:bg-neutral-400:hover{--un-bg-opacity:1;background-color:rgb(163 163 163/var(--un-bg-opacity))}.hover\:bg-neutral-400\/20:hover{background-color:#a3a3a333}.hover\:bg-neutral-50:hover{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.hover\:bg-neutral-50\/50:hover{background-color:#fafafa80}.hover\:bg-neutral-800:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.hover\:bg-primary-500\/20:hover{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)}.hover\:bg-primary-600:hover{--un-bg-opacity:1;background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.hover\:bg-red-500\/20:hover{background-color:#ef444433}.hover\:bg-white\/70:hover{background-color:#ffffffb3}.hover\:bg-white\/80:hover{background-color:#fffc}[bg~=hover\:emerald-600]:hover{--un-bg-opacity:1;background-color:rgb(5 150 105/var(--un-bg-opacity))}[bg~=hover\:neutral-200]:hover{--un-bg-opacity:1;background-color:rgb(229 229 229/var(--un-bg-opacity))}[bg~="hover:neutral-400/45"]:hover{background-color:#a3a3a373}[bg~=hover\:neutral-50]:hover{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}[bg~="hover:neutral-900/45"]:hover{background-color:#17171773}[hover\:bg-neutral-300=""]:hover{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}[hover\:bg-primary-600=""]:hover{--un-bg-opacity:1;background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}[hover~=bg-neutral-200]:hover{--un-bg-opacity:1;background-color:rgb(229 229 229/var(--un-bg-opacity))}[hover~=bg-white\/80]:hover{background-color:#fffc}.dark [bg~="dark:focus:neutral-900"]:focus{--un-bg-opacity:1;background-color:rgb(23 23 23/var(--un-bg-opacity))}[bg~=focus\:neutral-50]:focus{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.active\:bg-neutral-400\/30:active{background-color:#a3a3a34d}.active\:bg-neutral-50\/90:active{background-color:#fafafae6}.active\:bg-primary-500\/30:active{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.3)}.active\:bg-red-500\/30:active{background-color:#ef44444d}.dark .active\:dark\:bg-neutral-800\/90:active{background-color:#262626e6}.dark .dark\:active\:bg-neutral-700\/60:active{background-color:#40404099}.dark .dark\:active\:bg-primary-700\/30:active{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.3)}.dark .dark\:active\:bg-red-700\/30:active{background-color:#b91c1c4d}.dark [bg~="active:dark:neutral-700/90"]:active{background-color:#404040e6}.dark [bg~="active:dark:neutral-900/90"]:active{background-color:#171717e6}.dark [bg~="dark:active:neutral-50"]:active{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.dark [bg~="dark:active:neutral-700"]:active{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}[bg~=active\:neutral-300]:active{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}[bg~="active:neutral-400/60"]:active{background-color:#a3a3a399}[bg~="active:neutral-900/60"]:active{background-color:#17171799}[bg~=active\:neutral-950]:active{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.dark .dark\:disabled\:bg-neutral-900:disabled{--un-bg-opacity:1;background-color:rgb(23 23 23/var(--un-bg-opacity))}.disabled\:bg-neutral-100:disabled{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.before\:bg-lime-500\/30:before{background-color:#84cc164d}.before\:bg-orange-500\/30:before{background-color:#f973164d}.before\:bg-primary-500\/30:before{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.3)}.before\:bg-violet-500\/30:before{background-color:#8b5cf64d}.dark .before\:dark\:bg-lime-200\/20:before{background-color:#d9f99d33}.dark .before\:dark\:bg-orange-200\/20:before{background-color:#fed7aa33}.dark .before\:dark\:bg-primary-200\/20:before{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.2)}.dark .before\:dark\:bg-violet-200\/20:before{background-color:#ddd6fe33}.after\:bg-white:after{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.bg-opacity-10,.dark .dark\:bg-opacity-10{--un-bg-opacity:.1}.bg-opacity-15{--un-bg-opacity:.15}.bg-opacity-30{--un-bg-opacity:.3}.dark .dark\:from-neutral-800,.dark [dark\:from-neutral-800=""]{--un-gradient-from-position:0%;--un-gradient-from:rgb(38 38 38/var(--un-from-opacity,1))var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:#26262600 var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark .dark\:from-primary-400\/0{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark .dark\:from-primary-400\/20{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.from-neutral-50,[from-neutral-50=""]{--un-gradient-from-position:0%;--un-gradient-from:rgb(250 250 250/var(--un-from-opacity,1))var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:#fafafa00 var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.from-primary-500{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-from-opacity,1))var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.from-primary-500\/0{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.from-primary-500\/20,.before\:from-primary-500\/20:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark .before\:dark\:from-primary-400\/20:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark [before~="dark:from-primary-400/0"]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark [hover~="before:dark:from-primary-400/20"]:hover:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}[before~=from-primary-500\/0]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}[hover~="before:from-primary-500/20"]:hover:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark .dark\:via-primary-400\/10{--un-gradient-via-position:50%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to)}.via-primary-500\/10,.before\:via-primary-500\/10:before{--un-gradient-via-position:50%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to)}.dark .before\:dark\:via-primary-400\/10:before,.dark [hover~="before:dark:via-primary-400/10"]:hover:before{--un-gradient-via-position:50%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to)}[hover~="before:via-primary-500/10"]:hover:before{--un-gradient-via-position:50%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to)}.dark .dark\:to-neutral-900{--un-gradient-to-position:100%;--un-gradient-to:rgb(23 23 23/var(--un-to-opacity,1))var(--un-gradient-to-position)}.dark .dark\:to-primary-400\/0{--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position)}.dark .dark\:to-transparent,.to-transparent{--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position)}.to-neutral-100,[to-neutral-100=""]{--un-gradient-to-position:100%;--un-gradient-to:rgb(245 245 245/var(--un-to-opacity,1))var(--un-gradient-to-position)}.to-primary-400{--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-to-opacity,1))var(--un-gradient-to-position)}.to-primary-500\/0{--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position)}.before\:to-transparent:before,.dark .before\:dark\:to-transparent:before{--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position)}.dark [before~="dark:to-primary-400/0"]:before{--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position)}.dark [hover~="before:dark:to-transparent"]:hover:before{--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position)}[before~=to-primary-500\/0]:before{--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position)}[hover~=before\:to-transparent]:hover:before{--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position)}.bg-gradient-to-b,[bg-gradient-to-b=""]{--un-gradient-shape:to bottom in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient))}.bg-gradient-to-r,.before\:bg-gradient-to-r:before,[before~=bg-gradient-to-r]:before,[hover~=before\:bg-gradient-to-r]:hover:before{--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient))}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.dark .dark\:fill-neutral-800,.dark [dark\:fill-neutral-800=""]{--un-fill-opacity:1;fill:rgb(38 38 38/var(--un-fill-opacity))}.fill-white,[fill-white=""]{--un-fill-opacity:1;fill:rgb(255 255 255/var(--un-fill-opacity))}[stroke-width~="0.5"]{stroke-width:.5px}[stroke-width~="1.5"]{stroke-width:1.5px}[stroke-width~="2"]{stroke-width:2px}[stroke~="163"]{stroke-width:163px}[stroke~="175"]{stroke-width:175px}.object-cover,[object-cover=""]{object-fit:cover}.object-contain,[object-contain=""]{object-fit:contain}.p-\[2px\]{padding:2px}.p-0\.5{padding:.125rem}.p-1,[p-1=""],[p~="1"]{padding:.25rem}.p-1\.5,[p-1\.5=""]{padding:.375rem}.p-2,[p-2=""],[p~="2"]{padding:.5rem}.p-2\.5{padding:.625rem}.p-3,[p-3=""]{padding:.75rem}.p-4,[p-4=""]{padding:1rem}.p-5,[p-5=""]{padding:1.25rem}.p-6{padding:1.5rem}.p-8,[p-8=""]{padding:2rem}.px,.px-4,[px-4=""],[px=""]{padding-left:1rem;padding-right:1rem}.px-\[25px\]{padding-left:25px;padding-right:25px}.px-0{padding-left:0;padding-right:0}.px-1,[px-1=""]{padding-left:.25rem;padding-right:.25rem}.px-1\.5,[px~="1.5"]{padding-left:.375rem;padding-right:.375rem}.px-2,.px2,[px-2=""],[px~="2"],[px2=""]{padding-left:.5rem;padding-right:.5rem}.px-3,[px-3=""]{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py,.py-4,[py-4=""],[py~="4"]{padding-top:1rem;padding-bottom:1rem}.py-\.5,.py-0\.5,[py-\.5=""],[py-0\.5=""],[py~="0.5"]{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.py-1,.py1,[py-1=""],[py1=""]{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5,[py-1\.5=""]{padding-top:.375rem;padding-bottom:.375rem}.py-2,[py-2=""]{padding-top:.5rem;padding-bottom:.5rem}.py-3,[py-3=""]{padding-top:.75rem;padding-bottom:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}[py~="2.5"]{padding-top:.625rem;padding-bottom:.625rem}.pb-0{padding-bottom:0}.pb-12,[pb-12=""]{padding-bottom:3rem}.pb-2,[pb-2=""]{padding-bottom:.5rem}.pb-3,[pb-3=""]{padding-bottom:.75rem}.pb-4,[pb-4=""]{padding-bottom:1rem}.pb-6,[pb-6=""]{padding-bottom:1.5rem}.pl,.pl-4,[pl-4=""]{padding-left:1rem}.pl-\[1\.5rem\]{padding-left:1.5rem}.pl-10{padding-left:2.5rem}.pl-3,[pl-3=""]{padding-left:.75rem}.pl-5,[pl-5=""],[pl~="5"]{padding-left:1.25rem}.pr-\[0\.5rem\]{padding-right:.5rem}.pr-\[20px\]{padding-right:20px}.pr-1,[pr-1=""]{padding-right:.25rem}.pr-3,[pr-3=""]{padding-right:.75rem}.pr-4,[pr-4=""]{padding-right:1rem}.pt,.pt-4,[pt-4=""],[pt~="4"]{padding-top:1rem}.pt-0{padding-top:0}.pt-1,[pt-1=""]{padding-top:.25rem}.pt-10,[pt-10=""]{padding-top:2.5rem}.pt-14,[pt-14=""]{padding-top:3.5rem}.pt-2,[pt-2=""]{padding-top:.5rem}.pt-3{padding-top:.75rem}.text-center,[text-center=""],[text~=center]{text-align:center}.text-left,[text-left=""]{text-align:left}.text-right,[text-right=""],[text~=right]{text-align:right}.text-wrap,[text-wrap=""]{text-wrap:wrap}.text-nowrap,[text-nowrap=""]{text-wrap:nowrap}[align~=end]{vertical-align:bottom}[align~=start],[v~=start]{vertical-align:top}.text-\[10px\],[text~="[10px]"]{font-size:10px}.text-2xl,[text-2xl=""]{font-size:1.5rem;line-height:2rem}.text-3xl,[text-3xl=""]{font-size:1.875rem;line-height:2.25rem}.text-4xl,[text-4xl=""],[text~="4xl"]{font-size:2.25rem;line-height:2.5rem}.text-5xl,[text-5xl=""]{font-size:3rem;line-height:1}.text-6xl,[text-6xl=""]{font-size:3.75rem;line-height:1}.text-base,[text-base=""],[text~=base]{font-size:1rem;line-height:1.5rem}.text-lg,[text-lg=""],[text~=lg]{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""],[text~=sm]{font-size:.875rem;line-height:1.25rem}.text-xl,[text-xl=""]{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""],[text~=xs]{font-size:.75rem;line-height:1rem}[text~="[12px]"]{font-size:12px}[text~="60"]{font-size:15rem}[default-text~="2"]:default{font-size:.5rem}.dark .dark\:data-\[disabled\]\:text-neutral-600[data-disabled],.dark .dark\:text-neutral-600,.dark [text~=dark\:neutral-600],.text-neutral-600,[text~=neutral-600]{--un-text-opacity:1;color:rgb(82 82 82/var(--un-text-opacity))}.dark .dark\:text-amber-300{--un-text-opacity:1;color:rgb(252 211 77/var(--un-text-opacity))}.dark .dark\:text-amber-400{--un-text-opacity:1;color:rgb(251 191 36/var(--un-text-opacity))}.dark .dark\:text-black,.text-black,[text-black=""]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.dark .dark\:text-blue-300{--un-text-opacity:1;color:rgb(147 197 253/var(--un-text-opacity))}.dark .dark\:text-blue-400{--un-text-opacity:1;color:rgb(96 165 250/var(--un-text-opacity))}.dark .dark\:text-green-300{--un-text-opacity:1;color:rgb(134 239 172/var(--un-text-opacity))}.dark .dark\:text-green-400,.text-green{--un-text-opacity:1;color:rgb(74 222 128/var(--un-text-opacity))}.dark .dark\:text-lime-200{--un-text-opacity:1;color:rgb(217 249 157/var(--un-text-opacity))}.dark .dark\:text-lime-400{--un-text-opacity:1;color:rgb(163 230 53/var(--un-text-opacity))}.dark .dark\:text-neutral-100,.dark [text~=dark\:neutral-100],[text~=neutral-100]{--un-text-opacity:1;color:rgb(245 245 245/var(--un-text-opacity))}.dark .dark\:text-neutral-100\/80{color:#f5f5f5cc}.dark .dark\:text-neutral-200,.dark [dark\:text-neutral-200=""],.data-\[placeholder\]\:text-neutral-200[data-placeholder]{--un-text-opacity:1;color:rgb(229 229 229/var(--un-text-opacity))}.dark .dark\:text-neutral-300,.dark [dark\:text-neutral-300=""],.dark [text~=dark\:neutral-300],[text~=neutral-300]{--un-text-opacity:1;color:rgb(212 212 212/var(--un-text-opacity))}.dark .dark\:text-neutral-300\/80{color:#d4d4d4cc}.dark .dark\:text-neutral-400,.dark [dark\:text-neutral-400=""],.dark [text~=dark\:neutral-400],.data-\[disabled\]\:text-neutral-400[data-disabled],.text-neutral-400,[text-neutral-400=""],[text~=neutral-400]{--un-text-opacity:1;color:rgb(163 163 163/var(--un-text-opacity))}.dark .dark\:text-neutral-500,.dark [text~=dark\:neutral-500],.text-neutral-500,[text-neutral-500=""],[text~=neutral-500]{--un-text-opacity:1;color:rgb(115 115 115/var(--un-text-opacity))}.dark .dark\:text-neutral-600\/20,.dark [text~="dark:neutral-600/20"]{color:#52525233}.dark .dark\:text-orange-200{--un-text-opacity:1;color:rgb(254 215 170/var(--un-text-opacity))}.dark .dark\:text-orange-400,.text-orange{--un-text-opacity:1;color:rgb(251 146 60/var(--un-text-opacity))}.dark .dark\:color-primary-100,.dark .dark\:text-primary-100,.dark [dark\:color-primary-100=""]{--un-text-opacity:1;color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))80%,oklch(100% 0 360/var(--un-text-opacity)))}.dark .dark\:text-primary-200,.data-\[highlighted\]\:text-primary-200[data-highlighted]{--un-text-opacity:1;color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .dark\:text-primary-300,.dark [text~=dark\:primary-300],.text-primary-300{--un-text-opacity:1;color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .dark\:text-primary-300\/80{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.8)}.color-primary-400,.dark .dark\:text-primary-400,.dark [text~=dark\:primary-400],.text-primary-400,[color-primary-400=""],[text~=primary-400]{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .dark\:text-primary-600,.text-primary-600,[text~=primary-600]{--un-text-opacity:1;color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .dark\:text-red-100{--un-text-opacity:1;color:rgb(254 226 226/var(--un-text-opacity))}.dark .dark\:text-red-400,.text-red{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity))}.dark .dark\:text-slate-100{--un-text-opacity:1;color:rgb(241 245 249/var(--un-text-opacity))}.dark .dark\:text-violet-200{--un-text-opacity:1;color:rgb(221 214 254/var(--un-text-opacity))}.dark .dark\:text-violet-400{--un-text-opacity:1;color:rgb(167 139 250/var(--un-text-opacity))}.dark .dark\:text-white,.text-white,[text-white=""],[text~=white]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.dark [text~="dark:cyan-600/90"]{color:#0891b2e6}.dark [text~=dark\:gray-200]{--un-text-opacity:1;color:rgb(229 231 235/var(--un-text-opacity))}.dark [text~="dark:neutral-100/65"]{color:#f5f5f5a6}.dark [text~="dark:neutral-600/50"]{color:#52525280}.dark [text~=dark\:neutral-900]{--un-text-opacity:1;color:rgb(23 23 23/var(--un-text-opacity))}.dark [text~=dark\:orange-500],.text-orange-500{--un-text-opacity:1;color:rgb(249 115 22/var(--un-text-opacity))}.dark [text~="dark:pink-300/90"]{color:#f9a8d4e6}.dark [text~="dark:primary-300/50"]{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.5)}.dark [text~="dark:primary-600/90"]{color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.9)}.dark [text~="dark:violet-600/90"]{color:#7c3aede6}.data-\[highlighted\]\:text-red-200[data-highlighted]{--un-text-opacity:1;color:rgb(254 202 202/var(--un-text-opacity))}.text-amber-500{--un-text-opacity:1;color:rgb(245 158 11/var(--un-text-opacity))}.text-amber-600{--un-text-opacity:1;color:rgb(217 119 6/var(--un-text-opacity))}.text-amber-700{--un-text-opacity:1;color:rgb(180 83 9/var(--un-text-opacity))}.text-blue-500,[text-blue-500=""]{--un-text-opacity:1;color:rgb(59 130 246/var(--un-text-opacity))}.text-blue-700{--un-text-opacity:1;color:rgb(29 78 216/var(--un-text-opacity))}.text-green-500,[text-green-500=""]{--un-text-opacity:1;color:rgb(34 197 94/var(--un-text-opacity))}.text-green-600{--un-text-opacity:1;color:rgb(22 163 74/var(--un-text-opacity))}.text-green-700{--un-text-opacity:1;color:rgb(21 128 61/var(--un-text-opacity))}.text-lime-500{--un-text-opacity:1;color:rgb(132 204 22/var(--un-text-opacity))}.text-neutral-200\/50,[text~=neutral-200\/50]{color:#e5e5e580}.text-neutral-400\/50,[text~=neutral-400\/50]{color:#a3a3a380}.text-neutral-500\/50,[text~=neutral-500\/50]{color:#73737380}.text-neutral-700,[text-neutral-700=""]{--un-text-opacity:1;color:rgb(64 64 64/var(--un-text-opacity))}.text-neutral-700\/80{color:#404040cc}.text-neutral-800{--un-text-opacity:1;color:rgb(38 38 38/var(--un-text-opacity))}.text-neutral-900\/80{color:#171717cc}.text-neutral-950{--un-text-opacity:1;color:rgb(10 10 10/var(--un-text-opacity))}.text-primary{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-primary-500,[text~=primary-500]{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-primary-600\/80{color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.8)}.text-primary-700{--un-text-opacity:1;color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-primary-800{--un-text-opacity:1;color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-primary-950{--un-text-opacity:1;color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-purple{--un-text-opacity:1;color:rgb(192 132 252/var(--un-text-opacity))}.text-red-500,[text-red-500=""]{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity))}.text-red-950{--un-text-opacity:1;color:rgb(69 10 10/var(--un-text-opacity))}.text-slate-700{--un-text-opacity:1;color:rgb(51 65 85/var(--un-text-opacity))}.text-transparent{color:#0000}.text-violet-500,[text-violet-500=""]{--un-text-opacity:1;color:rgb(139 92 246/var(--un-text-opacity))}[text~=cyan-400\/90]{color:#22d3eee6}[text~=gray-700]{--un-text-opacity:1;color:rgb(55 65 81/var(--un-text-opacity))}[text~=orange-700]{--un-text-opacity:1;color:rgb(194 65 12/var(--un-text-opacity))}[text~=pink-400]{--un-text-opacity:1;color:rgb(244 114 182/var(--un-text-opacity))}[text~=primary-400\/90]{color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.9)}[text~=violet-400\/90]{color:#a78bfae6}.dark .dark\:hover\:text-neutral-300:hover{--un-text-opacity:1;color:rgb(212 212 212/var(--un-text-opacity))}.dark [hover\:text~=dark\:red-400]:hover{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity))}.dark [hover~="dark:text-primary-300/80"]:hover{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.8)}.dark [text~="dark:hover:neutral-200"]:hover{--un-text-opacity:1;color:rgb(229 229 229/var(--un-text-opacity))}.dark [text~="dark:hover:neutral-800"]:hover{--un-text-opacity:1;color:rgb(38 38 38/var(--un-text-opacity))}.dark [text~="dark:hover:primary-500"]:hover{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.hover\:text-neutral-700:hover{--un-text-opacity:1;color:rgb(64 64 64/var(--un-text-opacity))}[hover\:text~=red-500]:hover{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity))}[hover~=text-primary-600\/80]:hover{color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.8)}[text~=hover\:neutral-600]:hover{--un-text-opacity:1;color:rgb(82 82 82/var(--un-text-opacity))}[text~=hover\:primary-600]:hover{--un-text-opacity:1;color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark [text~="dark:disabled:neutral-600"]:disabled{--un-text-opacity:1;color:rgb(82 82 82/var(--un-text-opacity))}[text~=disabled\:neutral-400]:disabled{--un-text-opacity:1;color:rgb(163 163 163/var(--un-text-opacity))}.dark .dark\:placeholder\:text-neutral-600::placeholder{--un-text-opacity:1;color:rgb(82 82 82/var(--un-text-opacity))}.dark [text~="placeholder:dark:hover:neutral-400"]:hover::placeholder{--un-text-opacity:1;color:rgb(163 163 163/var(--un-text-opacity))}.dark [text~="placeholder:dark:hover:primary-500"]:hover::placeholder{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark [text~="placeholder:dark:neutral-300"]::placeholder{--un-text-opacity:1;color:rgb(212 212 212/var(--un-text-opacity))}.dark [text~="placeholder:dark:primary-300/50"]::placeholder{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.5)}.placeholder\:text-neutral-700::placeholder{--un-text-opacity:1;color:rgb(64 64 64/var(--un-text-opacity))}[text~="placeholder:hover:neutral-500"]:hover::placeholder{--un-text-opacity:1;color:rgb(115 115 115/var(--un-text-opacity))}[text~="placeholder:hover:primary-500"]:hover::placeholder{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}[text~=placeholder\:neutral-400]::placeholder{--un-text-opacity:1;color:rgb(163 163 163/var(--un-text-opacity))}[text~=placeholder\:primary-400]::placeholder{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.font-bold,[font-bold=""]{font-weight:700}.font-medium,[font-medium=""]{font-weight:500}.font-normal,[font-normal=""]{font-weight:400}.font-semibold,[font-semibold=""]{font-weight:600}.leading-\[25px\]{line-height:25px}.leading-10,.lh-10{line-height:2.5rem}.leading-none,[leading~="[1]"]{line-height:1}[leading~="[0.75]"]{line-height:.75}.font-cute,[font-cute=""]{font-family:Sniglet,Kiwi Maru,Comfortaa,xiaolai,DM Sans Variant,DM Sans,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-jura,[font-jura=""]{font-family:Jura}.font-mono,[font-mono=""]{font-family:DM Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-quicksand,[font-quicksand=""]{font-family:Quicksand}.font-sans,[font-sans=""]{font-family:DM Sans,DM Sans Variant,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-sans-rounded,[font-sans-rounded=""]{font-family:Comfortaa Variable,Comfortaa,DM Sans,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-italic,.italic,[font-italic=""]{font-style:italic}.decoration-underline,.underline,[decoration-underline=""],[underline=""]{text-decoration-line:underline}.decoration-dotted,[decoration-dotted=""]{text-decoration-style:dotted}.decoration-dashed,[decoration-dashed=""]{text-decoration-style:dashed}.tab{tab-size:4}.text-stroke-1,[text-stroke-1=""]{-webkit-text-stroke-width:1px}.text-shadow{--un-text-shadow:0 0 1px var(--un-text-shadow-color,#0003),0 0 1px var(--un-text-shadow-color,#0100051a);text-shadow:var(--un-text-shadow)}.write-vertical-left,[write-vertical-left=""]{writing-mode:vertical-lr}.\[\&\:checked\+div_\.radio-dot\]\:opacity-100:checked+div .radio-dot,.opacity-100,.group:hover .group-hover\:opacity-100,.group:hover [group-hover\:opacity-100=""]{opacity:1}.op-0,.opacity-0,[op-0=""],[opacity-0=""]{opacity:0}.op50,.opacity-50,[op50=""],[opacity-50=""]{opacity:.5}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-5,[opacity-5=""]{opacity:.05}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75,[opacity-75=""]{opacity:.75}.opacity-95,[opacity-95=""]{opacity:.95}.\[\&_\.round-range-tooltip\]\:hover\:opacity-100:hover .round-range-tooltip,[hover~=opacity-100]:hover{opacity:1}.disabled\:opacity-50:disabled,[disabled\:opacity-50=""]:disabled{opacity:.5}.before\:opacity-100:before{opacity:1}[before~=opacity-0]:before{opacity:0}[hover~=before\:opacity-100]:hover:before{opacity:1}.mix-blend-screen,[mix-blend-screen=""]{mix-blend-mode:screen}.dark .dark\:shadow-lg,.shadow-lg,[shadow-lg=""],[shadow~=lg]{--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.dark [shadow~=dark\:none]{--un-shadow:0 0 var(--un-shadow-color,#0000);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow{--un-shadow:var(--un-shadow-inset)0 1px 3px 0 var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-green-500\/50{--un-shadow-color:#22c55e80 }.shadow-md,[shadow-md=""],[shadow~=md]{--un-shadow:var(--un-shadow-inset)0 4px 6px -1px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 2px 4px -2px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-sm,[shadow-sm=""],[shadow~=sm]{--un-shadow:var(--un-shadow-inset)0 1px 2px 0 var(--un-shadow-color,#0000000d);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl,[shadow-xl=""]{--un-shadow:var(--un-shadow-inset)0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-yellow-500\/30{--un-shadow-color:#eab3084d }[shadow~=cyan-200\/20]{--un-shadow-color:#a5f3fc33 }[shadow~=cyan-200\/50]{--un-shadow-color:#a5f3fc80 }[shadow~=primary-200\/20]{--un-shadow-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.2)}[shadow~=primary-200\/50]{--un-shadow-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.5)}[shadow~=violet-200\/20]{--un-shadow-color:#ddd6fe33 }[shadow~=violet-200\/50]{--un-shadow-color:#ddd6fe80 }.focus-within\:shadow-neutral-800:focus-within{--un-shadow-opacity:1;--un-shadow-color:rgb(38 38 38/var(--un-shadow-opacity))}[shadow~="focus-within:[0_0_0_1px]"]:focus-within{--un-shadow:0 0 0 1px var(--un-shadow-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.dark [hover~=dark\:shadow-lg]:hover{--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}[hover~=shadow-md]:hover{--un-shadow:var(--un-shadow-inset)0 4px 6px -1px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 2px 4px -2px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:shadow-\[0_0_0_2px\]:focus{--un-shadow:0 0 0 2px var(--un-shadow-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:shadow-black:focus{--un-shadow-opacity:1;--un-shadow-color:rgb(0 0 0/var(--un-shadow-opacity))}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-primary-200:focus-visible{--un-outline-color-opacity:1;outline-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-outline-color-opacity))}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.outline,.focus-visible\:outline-solid:focus-visible{outline-style:solid}.data-\[highlighted\]\:outline-none[data-highlighted],.outline-none,[outline-none=""],[outline~=focus-within\:none]:focus-within,.focus\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.ring-0{--un-ring-width:0px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-1{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-2{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-3{--un-ring-width:3px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-2:focus{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.dark .dark\:ring-neutral-600\/30{--un-ring-color:#5252524d }.dark .dark\:ring-neutral-600\/60{--un-ring-color:#52525299 }.dark .dark\:ring-white\/10{--un-ring-color:#ffffff1a }.ring-black\/5{--un-ring-color:#0000000d }.ring-neutral-300\/30{--un-ring-color:#d4d4d44d }.ring-primary-400{--un-ring-opacity:1;--un-ring-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-ring-opacity))}.ring-primary-500{--un-ring-opacity:1;--un-ring-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-ring-opacity))}.ring-transparent{--un-ring-color:transparent }.dark .dark\:focus\:ring-neutral-600\/30:focus{--un-ring-color:#5252524d }.dark .dark\:focus\:ring-neutral-600\/60:focus{--un-ring-color:#52525299 }.dark .dark\:focus\:ring-primary-600\/30:focus{--un-ring-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.3)}.dark .dark\:focus\:ring-red-600\/30:focus{--un-ring-color:#dc26264d }.dark .dark\:focus\:ring-red-600\/60:focus{--un-ring-color:#dc262699 }.focus\:ring-neutral-300\/30:focus{--un-ring-color:#d4d4d44d }.focus\:ring-primary-300\/60:focus{--un-ring-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.6)}.focus\:ring-red-300\/30:focus{--un-ring-color:#fca5a54d }.backdrop-blur-lg{--un-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.backdrop-blur-md,[backdrop-blur-md=""]{--un-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.backdrop-blur-sm,[backdrop-blur-sm=""]{--un-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.backdrop-blur-xl,[backdrop-blur-xl=""]{--un-backdrop-blur:blur(24px);-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.blur{--un-blur:blur(8px);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.drop-shadow{--un-drop-shadow:drop-shadow(0 1px 2px var(--un-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--un-drop-shadow-color,#0000000f));filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.drop-shadow-sm,[drop-shadow-sm=""]{--un-drop-shadow:drop-shadow(0 1px 1px var(--un-drop-shadow-color,#0000000d));filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}[drop-shadow~=none],.dark [drop-shadow~="dark:hover:none"]:hover{--un-drop-shadow:drop-shadow(0 0 var(--un-drop-shadow-color,#0000));filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}[drop-shadow~="hover:[0px_4px_4px_rgba(220,220,220,0.4)]"]:hover{--un-drop-shadow:drop-shadow(0px 4px 4px #dcdcdc66);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}[drop-shadow~="active:[0px_0px_0px_rgba(220,220,220,0.25)]"]:active{--un-drop-shadow:drop-shadow(0px 0px 0px #dcdcdc40);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.\[\&_\.provider-icon\]\:grayscale-100 .provider-icon,.grayscale-100,[grayscale-100=""]{--un-grayscale:grayscale(1);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.\[\&_\.provider-icon\]\:hover\:grayscale-0:hover .provider-icon{--un-grayscale:grayscale(0);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.filter{filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[width\,margin\]{transition-property:width,margin;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-100,[transition~="100"]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all,[transition-all=""],[transition~=all]{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors,[transition-colors=""],[transition~=colors]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors\,transform\,width\,height{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity,[transition-opacity=""]{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform,[transition-transform=""],[transition~=transform]{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition~=border]{transition-property:border;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition~=colors\,transform]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition~=width]{transition-property:width;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition~=placeholder\:all]::placeholder,[before~=transition-all]:before,.after\:transition-all:after,[after~=transition-all]:after{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,[duration-150=""]{transition-duration:.15s}.duration-200,[duration-200=""],[transition~=duration-200]{transition-duration:.2s}.duration-250,[duration-250=""],[duration~="250"],[transition~=duration-250]{transition-duration:.25s}.duration-300,[transition~=duration-300]{transition-duration:.3s}.duration-400,[transition~=duration-400]{transition-duration:.4s}.duration-500,[duration-500=""],[duration~="500"],[transition~=duration-500]{transition-duration:.5s}.duration-75{transition-duration:75ms}[duration~="10"]{transition-duration:10ms}[duration~="1000"]{transition-duration:1s}.placeholder\:duration-250::placeholder,[placeholder\:duration-250=""]::placeholder,[transition~=placeholder\:duration-250]::placeholder{transition-duration:.25s}[before~=duration-400]:before,[after~=duration-400]:after{transition-duration:.4s}[delay~="1"]{transition-delay:1ms}[delay~="10"]{transition-delay:10ms}[delay~="100"]{transition-delay:.1s}[delay~="11"]{transition-delay:11ms}[delay~="2"]{transition-delay:2ms}[delay~="200"]{transition-delay:.2s}[delay~="3"]{transition-delay:3ms}[delay~="4"]{transition-delay:4ms}[delay~="5"]{transition-delay:5ms}[delay~="50"]{transition-delay:50ms}[delay~="6"]{transition-delay:6ms}[delay~="7"]{transition-delay:7ms}[delay~="8"]{transition-delay:8ms}[delay~="9"]{transition-delay:9ms}.ease,.ease-in-out,[ease-in-out=""],[transition~=ease-in-out]{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-linear,[ease-linear=""]{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\:ease-in-out::placeholder,[transition~=placeholder\:ease-in-out]::placeholder,[before~=ease-in-out]:before,[after~=ease-in-out]:after{transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-background-color,[will-change-background-color=""]{will-change:background-color}.will-change-color,[will-change-color=""]{will-change:color}.will-change-transform,[will-change-transform=""]{will-change:transform}.will-change-width,[will-change-width=""]{will-change:width}.before\:content-\[\'\'\]:before,.after\:content-\[\'\'\]:after,.content-empty,[before~=content-empty]:before,[after~=content-empty]:after{content:""}.placeholder-stone-400::placeholder{--un-placeholder-opacity:1;color:rgb(168 162 158/var(--un-placeholder-opacity))}.hidden,[hidden=""]{display:none}.bg-dotted-\[neutral-200\/60\]{background-image:radial-gradient(circle at 1px 1px,rgb(229 229 229/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.6}.bg-dotted-\[neutral-200\/80\]{background-image:radial-gradient(circle at 1px 1px,rgb(229 229 229/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.8}.dark .dark\:bg-dotted-\[neutral-700\/25\]{background-image:radial-gradient(circle at 1px 1px,rgb(64 64 64/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.25}.dark .dark\:bg-dotted-\[neutral-700\/40\]{background-image:radial-gradient(circle at 1px 1px,rgb(64 64 64/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.4}.dark .dark\:hover\:bg-dotted-\[primary-200\/20\]:hover{background-image:radial-gradient(circle at 1px 1px,oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.hover\:bg-dotted-\[primary-300\/50\]:hover,.after\:bg-dotted-\[primary-300\/50\]:after{background-image:radial-gradient(circle at 1px 1px,oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.dark .dark\:after\:bg-dotted-\[primary-200\/20\]:after,.dark [hover~="dark:after:bg-dotted-[primary-200/20]"]:hover:after{background-image:radial-gradient(circle at 1px 1px,oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}[after~="bg-dotted-[neutral-200/80]"]:after{background-image:radial-gradient(circle at 1px 1px,rgb(229 229 229/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.8}[hover~="after:bg-dotted-[primary-300/50]"]:hover:after{background-image:radial-gradient(circle at 1px 1px,oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.transition-colors-none,.placeholder\:transition-colors-none::placeholder{transition-property:color,background-color,border-color,text-color;transition-duration:0s}@media (max-width:1023.9px){[min-w~="svg{opacity:0;transform-origin:50%;animation:.3s forwards sonner-fade-in;transform:scale(.8)}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{flex-direction:column;gap:2px;display:flex}[data-sonner-toast][data-styled=true] [data-button]{height:24px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);cursor:pointer;border:none;border-radius:4px;outline:none;flex-shrink:0;align-items:center;padding-left:8px;padding-right:8px;font-size:12px;font-weight:500;transition:opacity .4s,box-shadow .2s;display:flex}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:#ffffff4d}[data-sonner-toast][data-styled=true] [data-close-button]{left:var(--toast-close-button-start);right:var(--toast-close-button-end);width:20px;height:20px;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);cursor:pointer;z-index:1;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:opacity .1s,background .2s,border-color .2s;display:flex;position:absolute;top:0}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";z-index:-1;height:100%;position:absolute;left:-100%;right:-100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3)translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3)translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]:after{content:"";height:calc(var(--gap) + 1px);width:100%;position:absolute;bottom:100%;left:0}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before)*.05 + 1;--y:translateY(calc(var(--lift-amount)*var(--toasts-before)))scale(calc(-1*var(--toasts-before)*.05 + 1));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift)*var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift)*-100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift)*var(--offset) + var(--lift)*-100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y)translateY(var(--swipe-amount-y,0px))translateX(var(--swipe-amount-x,0px));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y)translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y)translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y)translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y)translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y)translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y)translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y)translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y)translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%;position:fixed}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left)*-1)}[data-sonner-toaster] [data-sonner-toast]{width:calc(100% - var(--mobile-offset-left)*2);left:0;right:0}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:calc(var(--mobile-offset-bottom) + max(env(safe-area-inset-bottom),0px))}[data-sonner-toaster][data-y-position=top]{top:calc(var(--mobile-offset-top) + max(env(safe-area-inset-top),0px))}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:#ecfdf3;--success-border:#bffcd9;--success-text:#008a2e;--info-bg:#f0f8ff;--info-border:#dde7fd;--info-text:#0973dc;--warning-bg:#fffcf0;--warning-border:#fbeeb1;--warning-text:#dc7609;--error-bg:#fff0f0;--error-border:#ffe0e1;--error-text:#e60000}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:#333;--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:#1f1f1f;--normal-border:#333;--normal-border-hover:#404040;--normal-text:var(--gray1);--success-bg:#001f0f;--success-border:#003d1c;--success-text:#59f3a6;--info-bg:#000d1f;--info-border:#19233e;--info-text:#5896f3;--warning-bg:#1d1f00;--warning-border:#2e2e00;--warning-text:#f3cf58;--error-bg:#2d0607;--error-border:#4d0408;--error-text:#ff9ea1}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);z-index:10;position:absolute;inset:0}.sonner-loading-wrapper[data-visible=false]{transform-origin:50%;animation:.2s forwards sonner-fade-out}.sonner-spinner{height:var(--size);width:var(--size);position:relative;top:50%;left:50%}.sonner-loading-bar{background:var(--gray11);border-radius:6px;width:24%;height:8%;animation:1.2s linear infinite sonner-spin;position:absolute;top:-3.9%;left:-10%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg)translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg)translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg)translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg)translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg)translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg)translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg)translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg)translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg)translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg)translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg)translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg)translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{transform-origin:50%;transition:opacity .2s,transform .2s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8)translate(-50%,-50%)}@property --chromatic-hue{syntax:"";inherits:true;initial-value:0}@keyframes hue-anim{0%{--chromatic-hue:0}to{--chromatic-hue:360}}.dynamic-hue{animation:10s linear infinite hue-anim}@font-face{font-family:cjkfonts AllSeto;font-style:normal;font-display:swap;src:url(/assets/cjkFonts_allseto_v1.11-ByBdljxl.ttf)format("truetype")}@font-face{font-family:Xiaolai SC;font-style:normal;font-display:swap;src:url(/assets/XiaolaiSC-Regular-SNWuh554.ttf)format("truetype")}*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.slide-away-enter-active,.slide-away-leave-active{transition:transform .3s ease-in-out,opacity .3s ease-in-out}.slide-away-enter,.slide-away-leave-to{opacity:0;transform:translateY(-10px)}.slide-away-enter-from,.slide-away-leave{opacity:0;transform:translateY(10px)}.fade-slide-out-r-to-l-enter-active,.fade-slide-out-r-to-l-leave-active{transition:opacity .2s ease-in-out,transform .2s ease-in-out}.fade-slide-out-r-to-l-enter-from,.fade-slide-out-r-to-l-leave-to{opacity:0;transform:translate(10px)}.fade-slide-out-r-to-l-enter-to,.fade-slide-out-r-to-l-leave-from{opacity:1;transform:translate(0)}.fade-slide-out-l-to-r-enter-active,.fade-slide-out-l-to-r-leave-active{transition:opacity .2s ease-in-out,transform .2s ease-in-out}.fade-slide-out-l-to-r-enter-from,.fade-slide-out-l-to-r-leave-to{opacity:0;transform:translate(-10px)}.fade-slide-out-l-to-r-enter-to,.fade-slide-out-l-to-r-leave-from{opacity:1;transform:translate(0)}.fade-enter-active,.fade-leave-active{transition:opacity .2s ease-in-out}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-to,.fade-leave-from{opacity:1}:root{--bg-color-light:#fff;--bg-color-dark:#121212;--bg-color:var(--bg-color-light)}*{touch-action:manipulation}html,body,#app{overscroll-behavior:none;height:100%;margin:0;padding:0}html{background:var(--bg-color);transition:all .3s ease-in-out}html.dark{--bg-color:var(--bg-color-dark);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}#nprogress{pointer-events:none}#nprogress .bar{background:color-mix(in srgb,oklch(95% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + ${0}))70%,#636363);opacity:.75;z-index:1031;width:100%;height:2px;position:fixed;top:0;left:0}@supports (color:lab(0% 0 0)){#nprogress .bar{background:color-mix(in srgb,oklch(95% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + ${0}))70%,lab(42% 0 0))}}.dark #nprogress .bar{background:`color-mix(in srgb,oklch(95% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + ${0}))90%,#dedede)`}@supports (color:lab(0% 0 0)){.dark #nprogress .bar{background:`color-mix(in srgb,oklch(95% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + ${0}))90%,lab(88.4% 0 0))`}}@media (display-mode:standalone){#nprogress,#nprogress .bar{display:none}}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:100 1000;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-sans:vf@latest/latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:100 1000;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-sans:vf@latest/latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Serif Display;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-serif-display@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Serif Display;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-serif-display@latest/latin-ext-400-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-300-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-500-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-ext-300-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-ext-400-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-ext-500-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/japanese-300-normal.woff2)format("woff2")}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/japanese-400-normal.woff2)format("woff2")}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/japanese-500-normal.woff2)format("woff2")}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/latin-300-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Kiwi Maru;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/kiwi-maru@latest/latin-500-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Sniglet;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/sniglet@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Sniglet;font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/sniglet@latest/latin-800-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Sniglet;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/sniglet@latest/latin-ext-400-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Sniglet;font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/sniglet@latest/latin-ext-800-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/cyrillic-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/greek-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/kayah-li-wght-normal.woff2)format("woff2-variations");unicode-range:U+200C-200D,U+2010,U+25CC,U+A900-A92F}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jura;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/jura:vf@latest/vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Gugi;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/gugi@latest/korean-400-normal.woff2)format("woff2")}@font-face{font-family:Gugi;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/gugi@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Quicksand;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/quicksand:vf@latest/latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Quicksand;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/quicksand:vf@latest/latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Quicksand;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/quicksand:vf@latest/vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Urbanist;font-style:normal;font-display:swap;font-weight:100 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/urbanist:vf@latest/latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Urbanist;font-style:normal;font-display:swap;font-weight:100 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/urbanist:vf@latest/latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Comfortaa;font-style:normal;font-display:swap;font-weight:300 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/comfortaa:vf@latest/cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-100-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-300-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-400-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-500-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-700-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-800-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-900-normal.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-100-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-300-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-400-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-500-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-700-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-800-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/cyrillic-ext-900-normal.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-100-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-300-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-400-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-500-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-700-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-800-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-900-normal.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-100-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-300-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-400-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-500-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-700-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-800-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/greek-ext-900-normal.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-100-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-300-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-400-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-500-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-700-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-800-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/hebrew-900-normal.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-100-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-300-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-400-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-500-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-700-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-800-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/japanese-900-normal.woff2)format("woff2")}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-100-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-300-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-500-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-700-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-800-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-900-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-100-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-300-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-400-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-500-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-700-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-800-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/latin-ext-900-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:100;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-100-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:300;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-300-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-400-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-500-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-700-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:800;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-800-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-display:swap;font-weight:900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/m-plus-rounded-1c@latest/vietnamese-900-normal.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}*,:before,:after,::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:root{--chromatic-hue:220.44;--chromatic-chroma:calc(.18 + (cos(var(--chromatic-hue)*3.14159/180)*.04));--chromatic-chroma-50:calc(var(--chromatic-chroma)*.3);--chromatic-chroma-100:calc(var(--chromatic-chroma)*.5);--chromatic-chroma-200:calc(var(--chromatic-chroma)*.6);--chromatic-chroma-300:calc(var(--chromatic-chroma)*.75);--chromatic-chroma-400:calc(var(--chromatic-chroma)*.85);--chromatic-chroma-500:var(--chromatic-chroma);--chromatic-chroma-600:calc(var(--chromatic-chroma)*1.15);--chromatic-chroma-700:calc(var(--chromatic-chroma)*1.1);--chromatic-chroma-800:calc(var(--chromatic-chroma)*.85);--chromatic-chroma-900:calc(var(--chromatic-chroma)*.7);--chromatic-chroma-950:calc(var(--chromatic-chroma)*.5)}.i-eos-icons\:three-dots-loading,[i-eos-icons\:three-dots-loading=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='18' cy='12' r='0' fill='currentColor'%3E%3Canimate attributeName='r' begin='.67' calcMode='spline' dur='1.5s' keySplines='0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8' repeatCount='indefinite' values='0;2;0;0'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='0' fill='currentColor'%3E%3Canimate attributeName='r' begin='.33' calcMode='spline' dur='1.5s' keySplines='0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8' repeatCount='indefinite' values='0;2;0;0'/%3E%3C/circle%3E%3Ccircle cx='6' cy='12' r='0' fill='currentColor'%3E%3Canimate attributeName='r' begin='0' calcMode='spline' dur='1.5s' keySplines='0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8' repeatCount='indefinite' values='0;2;0;0'/%3E%3C/circle%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:alibabacloud{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M14.752 4.64h5.274C22.242 4.64 24 6.475 24 8.691V15.8a3.947 3.947 0 01-3.974 3.975h-5.274l1.299-1.835 3.822-1.222c.688-.23 1.146-.918 1.146-1.605v-5.81c0-.687-.458-1.375-1.146-1.605L16.05 6.475l-1.3-1.835zM2.98 15.111c0 .688.46 1.376 1.147 1.606l3.822 1.146 1.3 1.835H3.974A3.947 3.947 0 010 15.723V8.69c0-2.216 1.758-4.05 3.975-4.05h5.273L7.95 6.474 4.127 7.697c-.688.23-1.146.918-1.146 1.606v5.808z'/%3E%3Cpath d='M16.051 11.213H8.025v1.835h8.026v-1.835z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:anthropic{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:bilibiliindex{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M11.995 0c2.204-.001 3.701 2.07 4.497 3.874.374.849.672 1.728.892 2.638a.09.09 0 00.066.066c.885.209 1.728.486 2.529.83 1.17.504 2.236 1.17 3.076 2.13.195.224.386.52.574.89.78 1.539.27 3.194-.905 4.35-1.412 1.39-3.384 2.137-5.264 2.608a.058.058 0 00-.044.047c-.036.227-.184.734-.443 1.522-.71 2.16-2.34 5.044-4.966 5.045-2.625.001-4.258-2.88-4.97-5.04-.26-.788-.408-1.295-.446-1.522a.059.059 0 00-.043-.047c-1.88-.468-3.853-1.214-5.267-2.602-1.177-1.155-1.688-2.81-.909-4.35.188-.37.378-.666.573-.89.839-.962 1.905-1.628 3.074-2.133a15.26 15.26 0 012.529-.833.087.087 0 00.065-.066c.22-.91.516-1.79.89-2.639C8.296 2.072 9.791.001 11.994 0zm5.915 8.994l.176 1.29a.068.068 0 00.026.043c.415.318.687.68.815 1.083a1.996 1.996 0 01-1.846 2.596 2.001 2.001 0 01-2.058-2.282c.075-.52.359-.977.852-1.369a.052.052 0 00.02-.047c-.102-.978-.311-1.911-.559-2.993-.3-1.31-.727-2.529-1.45-3.705a3.868 3.868 0 00-.506-.665c-.48-.494-.997-.897-1.696-.728-.476.116-1.069.654-1.34 1.043a10.085 10.085 0 00-1.399 2.938.02.02 0 00.022.016l1.588-.074a.07.07 0 00.046-.02c.638-.632 1.57-.76 2.337-.308.318.187.569.478.754.873.456.977-.123 2.14-1.06 2.482-.879.321-1.8-.006-2.294-.809a.068.068 0 00-.061-.032 23.52 23.52 0 00-2.412.209c-.676.094-1.403.296-2.014.5-.692.228-1.347.52-1.965.876-.885.51-2.189 1.567-1.536 2.725.119.211.233.373.343.487.89.92 2 1.415 3.3 1.852a.022.022 0 00.029-.023l-.157-1.145a.068.068 0 00-.033-.05 2.08 2.08 0 01-.848-.96c-.415-.925-.03-1.983.792-2.49a2.004 2.004 0 012.415.239c.345.315.623.855.642 1.356.026.697-.253 1.239-.782 1.703a.057.057 0 00-.02.05c.165 1.255.485 2.545.787 3.705.262 1.004.69 2.098 1.296 3.041.315.49.697.92 1.135 1.189.526.323 1.05.312 1.57-.033.666-.442 1.045-1.034 1.47-1.822a9.514 9.514 0 00.77-1.89.017.017 0 00-.018-.014l-1.336.063a.06.06 0 00-.05.033 1.822 1.822 0 01-1.279 1.008 1.85 1.85 0 01-1.878-.665c-.558-.723-.557-1.598-.003-2.32a1.78 1.78 0 011.063-.668c.6-.133 1.164.016 1.693.447a.076.076 0 00.051.017c.83-.027 1.64-.098 2.431-.213.62-.09 1.364-.288 1.908-.442a11.537 11.537 0 002.236-.9c.732-.386 1.634-1.033 1.89-1.847.4-1.269-1.44-2.406-2.352-2.802-.637-.277-1.13-.467-1.479-.57a.02.02 0 00-.019.003.02.02 0 00-.006.009.022.022 0 000 .01z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:cloudflare{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M16.493 17.4c.135-.52.08-.983-.161-1.338-.215-.328-.592-.519-1.05-.519l-8.663-.109a.148.148 0 01-.135-.082c-.027-.054-.027-.109-.027-.163.027-.082.108-.164.189-.164l8.744-.11c1.05-.054 2.153-.9 2.556-1.937l.511-1.31c.027-.055.027-.11.027-.164C17.92 8.91 15.66 7 12.942 7c-2.503 0-4.628 1.638-5.381 3.903a2.432 2.432 0 00-1.803-.491c-1.21.109-2.153 1.092-2.287 2.32-.027.328 0 .628.054.9C1.56 13.688 0 15.326 0 17.319c0 .19.027.355.027.545 0 .082.08.137.161.137h15.983c.08 0 .188-.055.215-.164l.107-.437'/%3E%3Cpath d='M19.238 11.75h-.242c-.054 0-.108.054-.135.109l-.35 1.2c-.134.52-.08.983.162 1.338.215.328.592.518 1.05.518l1.855.11c.054 0 .108.027.135.082.027.054.027.109.027.163-.027.082-.108.164-.188.164l-1.91.11c-1.05.054-2.153.9-2.557 1.937l-.134.355c-.027.055.026.137.107.137h6.592c.081 0 .162-.055.162-.137.107-.41.188-.846.188-1.31-.027-2.62-2.153-4.777-4.762-4.777'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:deepseek{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:featherless-ai{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='1em' height='1em' %3E%3Cg fill='currentColor'%3E%3Cpath d='M40.0866 4.68482C38.2902 3.5825 35.863 3 33.0672 3C28.7842 3 24.0653 4.35865 19.8276 6.72206L19.7979 6.71083C19.7979 6.71083 19.7937 6.73344 19.7914 6.74423C18.5086 7.4617 17.2656 8.2629 16.0981 9.15731C9.22112 14.4248 7.29519 20.6748 8.92004 24.0156C7.14142 27.0728 6.0457 30.2332 6 33.9767C9.41949 27.421 11.4719 22.108 22.6146 13.1637C19.4309 13.8501 13.9281 17.1057 10.2271 22.0459C9.87793 19.156 12.1477 14.4895 17.2033 10.6174C17.8435 10.127 18.5092 9.66864 19.1886 9.23374C18.6577 10.8934 18.8269 10.4806 17.7254 12.8076C19.3543 11.2566 20.4268 10.2995 22.035 7.64145C24.123 6.60964 26.2948 5.83844 28.4482 5.37235C28.0919 6.56071 27.4137 8.57466 26.4955 10.1669C26.4955 10.1669 28.8258 9.66435 30.7518 9.77788C29.6995 10.9459 28.7527 12.2094 27.7926 13.5012C26.4777 15.2696 25.1184 17.0983 23.3778 18.8005C23.1683 19.0054 22.968 19.1912 22.7649 19.383C20.0902 19.1254 18.3235 20.1315 16.6683 21.9089C17.9737 21.2966 19.7273 20.7924 20.8266 21.0959C18.8008 22.7579 15.6106 24.9488 12.9893 24.7684C12.4922 25.5295 12.4608 25.5528 11.9144 26.4722C16.1664 27.537 21.507 23.1905 24.6498 20.1161C26.4926 18.3131 27.8964 16.4257 29.2534 14.6012C32.0481 10.8427 34.4616 7.5974 39.8153 6.3624L42 5.85877L40.0866 4.68482Z' class='logo-mark'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:fireworks{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath clip-rule='evenodd' d='M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:gemini{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:huggingface{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M16.781 3.277c2.997 1.704 4.844 4.851 4.844 8.258 0 .995-.155 1.955-.443 2.857a1.332 1.332 0 011.125.4 1.41 1.41 0 01.2 1.723c.204.165.352.385.428.632l.017.062c.06.222.12.69-.2 1.166.244.37.279.836.093 1.236-.255.57-.893 1.018-2.128 1.5l-.202.078-.131.048c-.478.173-.89.295-1.061.345l-.086.024c-.89.243-1.808.375-2.732.394-1.32 0-2.3-.36-2.923-1.067a9.852 9.852 0 01-3.18.018C9.778 21.647 8.802 22 7.494 22a11.249 11.249 0 01-2.541-.343l-.221-.06-.273-.08a16.574 16.574 0 01-1.175-.405c-1.237-.483-1.875-.93-2.13-1.501-.186-.4-.151-.867.093-1.236a1.42 1.42 0 01-.2-1.166c.069-.273.226-.516.447-.694a1.41 1.41 0 01.2-1.722c.233-.248.557-.391.917-.407l.078-.001a9.385 9.385 0 01-.44-2.85c0-3.407 1.847-6.554 4.844-8.258a9.822 9.822 0 019.687 0zM4.188 14.758c.125.687 2.357 2.35 2.14 2.707-.19.315-.796-.239-.948-.386l-.041-.04-.168-.147c-.561-.479-2.304-1.9-2.74-1.432-.43.46.119.859 1.055 1.42l.784.467.136.083c1.045.643 1.12.84.95 1.113-.188.295-3.07-2.1-3.34-1.083-.27 1.011 2.942 1.304 2.744 2.006-.2.7-2.265-1.324-2.685-.537-.425.79 2.913 1.718 2.94 1.725l.16.04.175.042c1.227.284 3.565.65 4.435-.604.673-.973.64-1.709-.248-2.61l-.057-.057c-.945-.928-1.495-2.288-1.495-2.288l-.017-.058-.025-.072c-.082-.22-.284-.639-.63-.584-.46.073-.798 1.21.12 1.933l.05.038c.977.721-.195 1.21-.573.534l-.058-.104-.143-.25c-.463-.799-1.282-2.111-1.739-2.397-.532-.332-.907-.148-.782.541zm14.842-.541c-.533.335-1.563 2.074-1.94 2.751a.613.613 0 01-.687.302.436.436 0 01-.176-.098.303.303 0 01-.049-.06l-.014-.028-.008-.02-.007-.019-.003-.013-.003-.017a.289.289 0 01-.004-.048c0-.12.071-.266.25-.427.026-.024.054-.047.084-.07l.047-.036c.022-.016.043-.032.063-.049.883-.71.573-1.81.131-1.917l-.031-.006-.056-.004a.368.368 0 00-.062.006l-.028.005-.042.014-.039.017-.028.015-.028.019-.036.027-.023.02c-.173.158-.273.428-.31.542l-.016.054s-.53 1.309-1.439 2.234l-.054.054c-.365.358-.596.69-.702 1.018-.143.437-.066.868.21 1.353.055.097.117.195.187.296.882 1.275 3.282.876 4.494.59l.286-.07.25-.074c.276-.084.736-.233 1.2-.42l.188-.077.065-.028.064-.028.124-.056.081-.038c.529-.252.964-.543.994-.827l.001-.036a.299.299 0 00-.037-.139c-.094-.176-.271-.212-.491-.168l-.045.01c-.044.01-.09.024-.136.04l-.097.035-.054.022c-.559.23-1.238.705-1.607.745h.006a.452.452 0 01-.05.003h-.024l-.024-.003-.023-.005c-.068-.016-.116-.06-.14-.142a.22.22 0 01-.005-.1c.062-.345.958-.595 1.713-.91l.066-.028c.528-.224.97-.483.985-.832v-.04a.47.47 0 00-.016-.098c-.048-.18-.175-.251-.36-.251-.785 0-2.55 1.36-2.92 1.36-.025 0-.048-.007-.058-.024a.6.6 0 01-.046-.088c-.1-.238.068-.462 1.06-1.066l.209-.126c.538-.32 1.01-.588 1.341-.831.29-.212.475-.406.503-.6l.003-.028c.008-.113-.038-.227-.147-.344a.266.266 0 00-.07-.054l-.034-.015-.013-.005a.403.403 0 00-.13-.02c-.162 0-.369.07-.595.18-.637.313-1.431.952-1.826 1.285l-.249.215-.033.033c-.08.078-.288.27-.493.386l-.071.037-.041.019a.535.535 0 01-.122.036h.005a.346.346 0 01-.031.003l.01-.001-.013.001c-.079.005-.145-.021-.19-.095a.113.113 0 01-.014-.065c.027-.465 2.034-1.991 2.152-2.642l.009-.048c.1-.65-.271-.817-.791-.493zM11.938 2.984c-4.798 0-8.688 3.829-8.688 8.55 0 .692.083 1.364.24 2.008l.008-.009c.252-.298.612-.46 1.017-.46.355.008.699.117.993.312.22.14.465.384.715.694.261-.372.69-.598 1.15-.605.852 0 1.367.728 1.562 1.383l.047.105.06.127c.192.396.595 1.139 1.143 1.68 1.06 1.04 1.324 2.115.8 3.266a8.865 8.865 0 002.024-.014c-.505-1.12-.26-2.17.74-3.186l.066-.066c.695-.684 1.157-1.69 1.252-1.912.195-.655.708-1.383 1.56-1.383.46.007.889.233 1.15.605.25-.31.495-.553.718-.694a1.87 1.87 0 01.99-.312c.357 0 .682.126.925.36.14-.61.215-1.245.215-1.898 0-4.722-3.89-8.55-8.687-8.55zm1.857 8.926l.439-.212c.553-.264.89-.383.89.152 0 1.093-.771 3.208-3.155 3.262h-.184c-2.325-.052-3.116-2.06-3.156-3.175l-.001-.087c0-1.107 1.452.586 3.25.586.716 0 1.379-.272 1.917-.526zm4.017-3.143c.45 0 .813.358.813.8 0 .441-.364.8-.813.8a.806.806 0 01-.812-.8c0-.442.364-.8.812-.8zm-11.624 0c.448 0 .812.358.812.8 0 .441-.364.8-.812.8a.806.806 0 01-.813-.8c0-.442.364-.8.813-.8zm7.79-.841c.32-.384.846-.54 1.33-.394.483.146.83.564.878 1.06.048.495-.212.97-.659 1.203-.322.168-.447-.477-.767-.585l.002-.003c-.287-.098-.772.362-.925.079a1.215 1.215 0 01.14-1.36zm-4.323 0c.322.384.377.92.14 1.36-.152.283-.64-.177-.925-.079l.003.003c-.108.036-.194.134-.273.24l-.118.165c-.11.15-.22.262-.377.18a1.226 1.226 0 01-.658-1.204c.048-.495.395-.913.878-1.059a1.262 1.262 0 011.33.394z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:lmstudio{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M2.84 2a1.273 1.273 0 100 2.547h14.107a1.273 1.273 0 100-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H22.04a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h14.106a1.274 1.274 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H15.38a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h14.106a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h9.698a1.273 1.273 0 100-2.547h-9.698z' fill-opacity='.3'/%3E%3Cpath d='M2.84 2a1.273 1.273 0 100 2.547h10.287a1.274 1.274 0 000-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H18.22a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H11.56a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h5.78a1.273 1.273 0 100-2.547h-5.78z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:microsoft{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M11.49 2H2v9.492h9.492V2h-.002z'/%3E%3Cpath d='M22 2h-9.492v9.492H22V2z'/%3E%3Cpath d='M11.49 12.508H2V22h9.492v-9.492h-.002z'/%3E%3Cpath d='M22 12.508h-9.492V22H22v-9.492z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:mistral{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath clip-rule='evenodd' d='M3.428 3.4h3.429v3.428h3.429v3.429h-.002 3.431V6.828h3.427V3.4h3.43v13.714H24v3.429H13.714v-3.428h-3.428v-3.429h-3.43v3.428h3.43v3.429H0v-3.429h3.428V3.4zm10.286 13.715h3.428v-3.429h-3.427v3.429z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:modelscope{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M2.667 5.3H8v2.667H5.333v2.666H2.667V8.467H.5v2.166h2.167V13.3H0V7.967h2.667V5.3zM2.667 13.3h2.666v2.667H8v2.666H2.667V13.3zM8 10.633h2.667V13.3H8v-2.667zM13.333 13.3v2.667h-2.666V13.3h2.666zM13.333 13.3v-2.667H16V13.3h-2.667z'/%3E%3Cpath clip-rule='evenodd' d='M21.333 13.3v-2.667h-2.666V7.967H16V5.3h5.333v2.667H24V13.3h-2.667zm0-2.667H23.5V8.467h-2.167v2.166z'/%3E%3Cpath d='M21.333 13.3v5.333H16v-2.666h2.667V13.3h2.666z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:moonshot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:novita{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath clip-rule='evenodd' d='M9.167 4.17v5.665L0 19.003h9.167v-5.666l5.666 5.666H24L9.167 4.17z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:ollama{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:openai{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:openrouter{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M16.804 1.957l7.22 4.105v.087L16.73 10.21l.017-2.117-.821-.03c-1.059-.028-1.611.002-2.268.11-1.064.175-2.038.577-3.147 1.352L8.345 11.03c-.284.195-.495.336-.68.455l-.515.322-.397.234.385.23.53.338c.476.314 1.17.796 2.701 1.866 1.11.775 2.083 1.177 3.147 1.352l.3.045c.694.091 1.375.094 2.825.033l.022-2.159 7.22 4.105v.087L16.589 22l.014-1.862-.635.022c-1.386.042-2.137.002-3.138-.162-1.694-.28-3.26-.926-4.881-2.059l-2.158-1.5a21.997 21.997 0 00-.755-.498l-.467-.28a55.927 55.927 0 00-.76-.43C2.908 14.73.563 14.116 0 14.116V9.888l.14.004c.564-.007 2.91-.622 3.809-1.124l1.016-.58.438-.274c.428-.28 1.072-.726 2.686-1.853 1.621-1.133 3.186-1.78 4.881-2.059 1.152-.19 1.974-.213 3.814-.138l.02-1.907z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:perplexity{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:player2{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M19.956 10.178C19.8934 10.7544 19.724 11.6784 19.1182 12.5274C18.3667 13.5817 17.3528 13.8824 16.9558 13.9746C16.6911 14.0049 16.3026 14.045 15.8323 14.0789C14.1804 14.2045 13.0525 14.1565 11.7041 14.131C10.81 14.1143 9.54304 14.1034 7.98548 14.131C7.97564 16.7493 7.96551 19.368 7.95508 21.987L5 22V15.8717C5.00358 14.6542 5.00983 12.9193 5.03397 10.7643C6.47441 10.7684 14.6905 10.7205 15.6696 10.7721C15.8672 10.7841 16.3621 10.8039 16.6764 10.4458C16.8842 10.2113 16.9696 9.83348 16.9763 9.26802C16.9835 8.82659 16.9902 8.38204 16.9763 7.94322C16.9459 6.90454 16.608 6.51472 15.7103 6.51107C12.8124 6.5069 9.91142 6.43915 7.01356 6.51107C6.60048 6.51888 5.90083 6.53087 5.02056 6.50325V3C5.43007 3.00782 6.13285 3.02397 7.00686 3.01563C11.1399 2.98436 12.7292 3.01199 15.5328 3.01563C18.3591 3.0198 19.994 4.94393 19.994 8.26009C19.9913 8.90059 20.0253 9.54944 19.956 10.178Z'/%3E%3Cpath d='M20 19H11V22H20V19Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:together{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M17.385 11.23a4.615 4.615 0 100-9.23 4.615 4.615 0 000 9.23zm0 10.77a4.615 4.615 0 100-9.23 4.615 4.615 0 000 9.23zm-10.77 0a4.615 4.615 0 100-9.23 4.615 4.615 0 000 9.23z' opacity='.2'/%3E%3Ccircle cx='6.615' cy='6.615' r='4.615'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:vllm{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M0 4.973h9.324V23L0 4.973z'/%3E%3Cpath d='M13.986 4.351L22.378 0l-6.216 23H9.324l4.662-18.649z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:volcengine{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M7.29 5.36L3.148 21.737a.215.215 0 00.203.261h8.29a.214.214 0 00.215-.261L7.7 5.359a.214.214 0 00-.41 0z' fill-opacity='.5'/%3E%3Cpath clip-rule='evenodd' d='M4.553 16.18l-1.406 5.558a.214.214 0 00.203.261h2.42-4.551a.214.214 0 01-.214-.26l2.275-8.961a.214.214 0 01.409 0l.864 3.402z'/%3E%3Cpath d='M14.44.15a.214.214 0 00-.41 0L8.366 21.739a.214.214 0 00.214.261H19.9a.214.214 0 00.215-.261L14.44.151z' fill-opacity='.5'/%3E%3Cpath clip-rule='evenodd' d='M16.694 22h3.207a.215.215 0 00.214-.262l-1.839-6.993 1.164-4.592a.214.214 0 01.411 0l2.951 11.586a.214.214 0 01-.214.261h-5.894z'/%3E%3Cpath d='M10.278 7.741L6.685 21.736a.214.214 0 00.214.264h7.17a.216.216 0 00.214-.166.216.216 0 000-.098L10.687 7.742a.214.214 0 00-.409 0z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lobe-icons\:xai{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='1em' height='1em' %3E%3Cg fill='currentColor' fill-rule='evenodd'%3E%3Cpath d='M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lucide\:ghost,[i-lucide\:ghost=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 10h.01M15 10h.01M12 2a8 8 0 0 0-8 8v12l3-3l2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lucide\:mic,[i-lucide\:mic=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 19v3m7-12v2a7 7 0 0 1-14 0v-2'/%3E%3Crect width='6' height='13' x='9' y='2' rx='3'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-lucide\:music,[i-lucide\:music=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:discord{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20.317 4.37a19.8 19.8 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.3 18.3 0 0 0-5.487 0a13 13 0 0 0-.617-1.25a.08.08 0 0 0-.079-.037A19.7 19.7 0 0 0 3.677 4.37a.1.1 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.08.08 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.08.08 0 0 0 .084-.028a14 14 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13 13 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10 10 0 0 0 .372-.292a.07.07 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.07.07 0 0 1 .078.01q.181.149.373.292a.077.077 0 0 1-.006.127a12.3 12.3 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.08.08 0 0 0 .084.028a19.8 19.8 0 0 0 6.002-3.03a.08.08 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.06.06 0 0 0-.031-.03M8.02 15.33c-1.182 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418m7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:elevenlabs{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4.604 0v24h4.931V0zm9.86 0v24h4.933V0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:github,[i-simple-icons\:github=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:javascript{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M0 0h24v24H0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873c-.736-.345-1.554-.585-1.797-1.14c-.091-.33-.105-.51-.046-.705c.15-.646.915-.84 1.515-.66c.39.12.75.42.976.9c1.034-.676 1.034-.676 1.755-1.125c-.27-.42-.404-.601-.586-.78c-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005c-1.14 1.291-.811 3.541.569 4.471c1.365 1.02 3.361 1.244 3.616 2.205c.24 1.17-.87 1.545-1.966 1.41c-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109c1.74 1.756 6.09 1.666 6.871-1.004c.029-.09.24-.705.074-1.65zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805c0 1.232.063 2.363-.138 2.711c-.33.689-1.18.601-1.566.48c-.396-.196-.597-.466-.83-.855c-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517c.855.51 2.004.675 3.207.405c.783-.226 1.458-.691 1.811-1.411c.51-.93.402-2.07.397-3.346c.012-2.054 0-4.109 0-6.179z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-simple-icons\:x{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584l-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar-check-circle-line-duotone,.i-solar\:check-circle-line-duotone,[i-solar-check-circle-line-duotone=""],[i-solar\:check-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10' opacity='.5'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m8.5 12.5l2 2l5-5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:add-circle-bold,[i-solar\:add-circle-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10m.75-13a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V15a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:add-circle-line-duotone,[i-solar\:add-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10' opacity='.5'/%3E%3Cpath stroke-linecap='round' d='M15 12h-3m0 0H9m3 0V9m0 3v3'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:add-square-line-duotone,[i-solar\:add-square-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z' opacity='.5'/%3E%3Cpath stroke-linecap='round' d='M15 12h-3m0 0H9m3 0V9m0 3v3'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:alt-arrow-down-linear,[i-solar\:alt-arrow-down-linear=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m19 9l-7 6l-7-6'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:alt-arrow-left-line-duotone,[i-solar\:alt-arrow-left-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m15 5l-6 7l6 7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:alt-arrow-right-outline,[i-solar\:alt-arrow-right-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M8.512 4.43a.75.75 0 0 1 1.057.082l6 7a.75.75 0 0 1 0 .976l-6 7a.75.75 0 0 1-1.138-.976L14.012 12L8.431 5.488a.75.75 0 0 1 .08-1.057' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:armchair-2-bold-duotone,[i-solar\:armchair-2-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.533 18H6.75v2a.75.75 0 1 1-1.5 0v-2.324c-.829-.362-1.49-1.005-1.808-1.817l-.039-.102L2.1 12.264C1.685 11.15 2.613 10 3.927 10c.81 0 1.534.453 1.81 1.134l1.098 2.706c.1.246.15.37.222.47a1.2 1.2 0 0 0 .74.463c.13.027.277.027.57.027h6.98c.569 0 .853 0 1.091-.098q.196-.082.349-.219c.184-.166.281-.405.475-.883l1.001-2.466c.276-.68 1-1.134 1.81-1.134c1.314 0 2.242 1.15 1.827 2.264l-1.12 3c-.195.524-.292.785-.421 1.008a3.43 3.43 0 0 1-1.609 1.404V20a.75.75 0 1 1-1.5 0v-2.005c-.187.005-.415.005-.717.005'/%3E%3Cpath fill='currentColor' d='M13.236 3.5h-2.472c-1.1 0-1.976 0-2.66.088c-.706.09-1.285.28-1.746.72c-.464.441-.669 1.003-.765 1.685c-.093.658-.093 1.495-.093 2.54v2.195q.147.186.237.406l1.098 2.706c.1.246.15.37.222.47a1.2 1.2 0 0 0 .74.463c.13.027.277.027.57.027h6.98c.569 0 .853 0 1.091-.098q.196-.082.349-.219c.184-.166.281-.405.475-.883l1.001-2.466q.09-.221.237-.406V8.533c0-1.045 0-1.882-.093-2.54c-.096-.682-.301-1.244-.765-1.686c-.46-.438-1.04-.629-1.745-.72c-.685-.087-1.56-.087-2.661-.087' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:arrow-right-line-duotone,[i-solar\:arrow-right-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Cpath fill='currentColor' d='M4 11.25a.75.75 0 0 0 0 1.5zm0 1.5h16v-1.5H4z' opacity='.5'/%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m14 6l6 6l-6 6'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:arrow-up-outline,[i-solar\:arrow-up-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11.47 3.47a.75.75 0 0 1 1.06 0l6 6a.75.75 0 1 1-1.06 1.06l-4.72-4.72V20a.75.75 0 0 1-1.5 0V5.81l-4.72 4.72a.75.75 0 1 1-1.06-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:book-bookmark-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 20.028V18H8v2.028c0 .277 0 .416.095.472s.224-.006.484-.13l1.242-.593c.088-.042.132-.063.179-.063s.091.02.179.063l1.242.593c.26.124.39.186.484.13c.095-.056.095-.195.095-.472' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8 18h-.574c-1.084 0-1.462.006-1.753.068c-.513.11-.96.347-1.285.667c-.11.108-.164.161-.291.505s-.107.489-.066.78l.022.15c.11.653.31.998.616 1.244c.307.246.737.407 1.55.494c.837.09 1.946.092 3.536.092h4.43c1.59 0 2.7-.001 3.536-.092c.813-.087 1.243-.248 1.55-.494s.506-.591.616-1.243c.091-.548.11-1.241.113-2.171h-8v2.028c0 .277 0 .416-.095.472s-.224-.006-.484-.13l-1.242-.593c-.088-.042-.132-.063-.179-.063s-.091.02-.179.063l-1.242.593c-.26.124-.39.186-.484.13C8 20.444 8 20.305 8 20.028z'/%3E%3Cpath fill='currentColor' d='M4.727 2.733c.306-.308.734-.508 1.544-.618C7.105 2.002 8.209 2 9.793 2h4.414c1.584 0 2.688.002 3.522.115c.81.11 1.238.31 1.544.618c.305.308.504.74.613 1.557c.112.84.114 1.955.114 3.552V18H7.426c-1.084 0-1.462.006-1.753.068c-.513.11-.96.347-1.285.667c-.11.108-.164.161-.291.505A1.3 1.3 0 0 0 4 19.7V7.842c0-1.597.002-2.711.114-3.552c.109-.816.308-1.249.613-1.557' opacity='.5'/%3E%3Cpath fill='currentColor' d='M7.25 7A.75.75 0 0 1 8 6.25h8a.75.75 0 0 1 0 1.5H8A.75.75 0 0 1 7.25 7M8 9.75a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:bookmark-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 11.098v4.993c0 3.096 0 4.645-.734 5.321c-.35.323-.792.526-1.263.58c-.987.113-2.14-.907-4.445-2.946c-1.02-.901-1.529-1.352-2.118-1.47a2.2 2.2 0 0 0-.88 0c-.59.118-1.099.569-2.118 1.47c-2.305 2.039-3.458 3.059-4.445 2.945a2.24 2.24 0 0 1-1.263-.579C3 20.736 3 19.188 3 16.091v-4.994C3 6.81 3 4.666 4.318 3.333S7.758 2 12 2s6.364 0 7.682 1.332S21 6.81 21 11.098' opacity='.5'/%3E%3Cpath fill='currentColor' d='M9 5.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:box-minimalistic-bold-duotone,[i-solar\:box-minimalistic-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8.422 20.618C10.178 21.54 11.056 22 12 22V12L2.638 7.073l-.04.067C2 8.154 2 9.417 2 11.942v.117c0 2.524 0 3.787.597 4.801c.598 1.015 1.674 1.58 3.825 2.709z'/%3E%3Cpath fill='currentColor' d='m17.577 4.432l-2-1.05C13.822 2.461 12.944 2 12 2c-.945 0-1.822.46-3.578 1.382l-2 1.05C4.318 5.536 3.242 6.1 2.638 7.072L12 12l9.362-4.927c-.606-.973-1.68-1.537-3.785-2.641' opacity='.7'/%3E%3Cpath fill='currentColor' d='m21.403 7.14l-.041-.067L12 12v10c.944 0 1.822-.46 3.578-1.382l2-1.05c2.151-1.129 3.227-1.693 3.825-2.708c.597-1.014.597-2.277.597-4.8v-.117c0-2.525 0-3.788-.597-4.802' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:card-search-broken,[i-solar\:card-search-broken=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' d='M14 4c3.771 0 5.657 0 6.828 1.172S22 8.229 22 12v1M10 4C6.229 4 4.343 4 3.172 5.172S2 8.229 2 12s0 5.657 1.172 6.828S6.229 20 10 20h3m-3-4H6'/%3E%3Ccircle cx='18' cy='17' r='3'/%3E%3Cpath stroke-linecap='round' d='m20.5 19.5l1 1M2 10h5m15 0H11'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:chat-round-line-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12c0 1.6.376 3.112 1.043 4.453c.178.356.237.763.134 1.148l-.595 2.226a1.3 1.3 0 0 0 1.591 1.592l2.226-.596a1.63 1.63 0 0 1 1.149.133A9.96 9.96 0 0 0 12 22' opacity='.5'/%3E%3Cpath fill='currentColor' d='M7.825 12.85a.825.825 0 0 0 0 1.65h6.05a.825.825 0 0 0 0-1.65zm0-3.85a.825.825 0 0 0 0 1.65h8.8a.825.825 0 0 0 0-1.65z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:chat-square-like-bold-duotone,[i-solar\:chat-square-like-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m13.629 20.472l-.542.916c-.483.816-1.69.816-2.174 0l-.542-.916c-.42-.71-.63-1.066-.968-1.262c-.338-.197-.763-.204-1.613-.219c-1.256-.021-2.043-.098-2.703-.372a5 5 0 0 1-2.706-2.706C2 14.995 2 13.83 2 11.5v-1c0-3.273 0-4.91.737-6.112a5 5 0 0 1 1.65-1.651C5.59 2 7.228 2 10.5 2h3c3.273 0 4.91 0 6.113.737a5 5 0 0 1 1.65 1.65C22 5.59 22 7.228 22 10.5v1c0 2.33 0 3.495-.38 4.413a5 5 0 0 1-2.707 2.706c-.66.274-1.447.35-2.703.372c-.85.015-1.275.022-1.613.219c-.338.196-.548.551-.968 1.262' opacity='.5'/%3E%3Cpath fill='currentColor' d='M10.99 14.308c-1.327-.978-3.49-2.84-3.49-4.593c0-2.677 2.475-3.677 4.5-1.609c2.025-2.068 4.5-1.068 4.5 1.609c0 1.752-2.163 3.615-3.49 4.593c-.454.335-.681.502-1.01.502s-.556-.167-1.01-.502'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:check-circle-bold-duotone,[i-solar\:check-circle-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M16.03 8.97a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47l2.235-2.235L14.97 8.97a.75.75 0 0 1 1.06 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:check-read-line-duotone,[i-solar\:check-read-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'%3E%3Cpath d='m4 12.9l3.143 3.6L15 7.5' opacity='.5'/%3E%3Cpath d='m20 7.563l-8.571 9L11 16'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:close-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8.97 8.97a.75.75 0 0 1 1.06 0L12 10.94l1.97-1.97a.75.75 0 1 1 1.06 1.06L13.06 12l1.97 1.97a.75.75 0 0 1-1.06 1.06L12 13.06l-1.97 1.97a.75.75 0 0 1-1.06-1.06L10.94 12l-1.97-1.97a.75.75 0 0 1 0-1.06'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:close-circle-line-duotone,[i-solar\:close-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10' opacity='.5'/%3E%3Cpath stroke-linecap='round' d='m14.5 9.5l-5 5m0-5l5 5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:code-bold-duotone,[i-solar\:code-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.443 7.328a.75.75 0 0 1 1.059-.056l1.737 1.564c.737.663 1.347 1.212 1.767 1.71c.44.525.754 1.088.754 1.784c0 .695-.313 1.258-.754 1.782c-.42.499-1.03 1.049-1.767 1.711l-1.737 1.564a.75.75 0 1 1-1.004-1.115l1.697-1.527c.788-.709 1.319-1.19 1.663-1.598c.33-.393.402-.622.402-.817c0-.196-.072-.425-.402-.818c-.344-.409-.875-.889-1.663-1.598l-1.697-1.527a.75.75 0 0 1-.056-1.06m-8.94 1.06a.75.75 0 0 0-1.004-1.115L4.761 8.836c-.737.663-1.347 1.212-1.767 1.71c-.44.525-.754 1.088-.754 1.784c0 .695.313 1.258.754 1.782c.42.499 1.03 1.049 1.767 1.711l1.737 1.564a.75.75 0 1 0 1.004-1.115l-1.697-1.527c-.788-.709-1.319-1.19-1.663-1.598c-.33-.393-.402-.622-.402-.817c0-.196.072-.425.402-.818c.344-.409.875-.889 1.663-1.598z'/%3E%3Cpath fill='currentColor' d='M14.182 4.276a.75.75 0 0 1 .53.918l-3.974 14.83a.75.75 0 1 1-1.449-.389l3.974-14.83a.75.75 0 0 1 .919-.53' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:danger-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10s10-4.477 10-10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 6.25a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:danger-triangle-bold-duotone,[i-solar\:danger-triangle-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 3c-2.31 0-3.77 2.587-6.688 7.762l-.364.644c-2.425 4.3-3.638 6.45-2.542 8.022S6.214 21 11.636 21h.728c5.422 0 8.134 0 9.23-1.572s-.117-3.722-2.542-8.022l-.364-.645C15.77 5.587 14.311 3 12 3' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 7.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:document-add-outline,[i-solar\:document-add-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.944 1.25h2.112c1.838 0 3.294 0 4.433.153c1.172.158 2.121.49 2.87 1.238a.75.75 0 0 1-1.06 1.06c-.424-.422-1.004-.676-2.01-.811c-1.027-.138-2.382-.14-4.289-.14h-2c-1.907 0-3.261.002-4.29.14c-1.005.135-1.585.389-2.008.812S4.025 4.705 3.89 5.71c-.138 1.029-.14 2.383-.14 4.29v4c0 1.907.002 3.262.14 4.29c.135 1.005.389 1.585.812 2.008s1.003.677 2.009.812c1.028.138 2.382.14 4.289.14h2c1.907 0 3.262-.002 4.29-.14c1.005-.135 1.585-.389 2.008-.812c.696-.696.907-1.777.943-4.309a.75.75 0 0 1 1.5.022c-.035 2.427-.192 4.158-1.382 5.348c-.749.748-1.698 1.08-2.87 1.238c-1.14.153-2.595.153-4.433.153h-2.112c-1.838 0-3.294 0-4.433-.153c-1.172-.158-2.121-.49-2.87-1.238c-.748-.749-1.08-1.698-1.238-2.87c-.153-1.14-.153-2.595-.153-4.433V9.944c0-1.838 0-3.294.153-4.433c.158-1.172.49-2.121 1.238-2.87c.749-.748 1.698-1.08 2.87-1.238c1.14-.153 2.595-.153 4.433-.153m7.17 5.796a2.716 2.716 0 1 1 3.84 3.84L17.2 15.643a7 7 0 0 1-.63.587q-.346.27-.744.46c-.224.107-.46.185-.806.3l-2.084.695a1.28 1.28 0 0 1-1.62-1.62l.681-2.04l.014-.043c.116-.347.194-.582.301-.806a4 4 0 0 1 .46-.744c.153-.196.328-.371.587-.63l.031-.031zm2.78 1.06a1.216 1.216 0 0 0-1.72 0l-.182.182l.034.107c.094.27.273.63.611.968a2.55 2.55 0 0 0 1.075.645l.182-.182a1.216 1.216 0 0 0 0-1.72m-1.328 3.048a4 4 0 0 1-.99-.73a4 4 0 0 1-.73-.99L14.45 12.83c-.301.301-.407.409-.496.523q-.17.218-.289.467c-.062.131-.111.274-.246.678l-.4 1.2l.283.283l1.2-.4c.404-.135.547-.184.678-.246q.248-.12.467-.289c.114-.089.222-.195.523-.496zM7.25 9A.75.75 0 0 1 8 8.25h6.5a.75.75 0 0 1 0 1.5H8A.75.75 0 0 1 7.25 9m0 4a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1-.75-.75m0 4a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1-.75-.75' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:document-text-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M3 10c0-3.771 0-5.657 1.172-6.828S7.229 2 11 2h2c3.771 0 5.657 0 6.828 1.172S21 6.229 21 10v4c0 3.771 0 5.657-1.172 6.828S16.771 22 13 22h-2c-3.771 0-5.657 0-6.828-1.172S3 17.771 3 14z'/%3E%3Cpath stroke-linecap='round' d='M8 12h8M8 8h8m-8 8h5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:earth-outline,[i-solar\:earth-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.578 5.343a9.25 9.25 0 0 0 6.803 15.9c-.206-.912-.234-2.138.393-3.319c.652-1.229 2.002-1.762 2.995-2.006a9.2 9.2 0 0 1 1.898-.254h.043c1.673-.018 2.426-.562 2.826-1.08c.342-.444.47-.887.602-1.336l.05-.172A9.22 9.22 0 0 0 18.6 5.519l-.027.1c-.163.594-.425 1.202-.711 1.636c-.256.388-.752.78-1.164 1.076a10 10 0 0 1-.902.56c-.228.132-.433.25-.63.38c-.432.286-.766.593-.991 1.056a.67.67 0 0 0-.035.49c.075.272.126.578.126.889c.002.649-.328 1.176-.753 1.518a2.4 2.4 0 0 1-1.521.526c-2.455-.027-3.965-2.02-4.164-4.236c-.08-.881-.466-1.773-.954-2.552a8.8 8.8 0 0 0-1.296-1.62m1.167-.956a10.5 10.5 0 0 1 1.4 1.779c.558.89 1.069 2.012 1.177 3.214c.15 1.68 1.213 2.854 2.686 2.87a.9.9 0 0 0 .563-.194c.146-.117.196-.24.195-.346c0-.156-.026-.328-.072-.495a2.16 2.16 0 0 1 .131-1.542c.385-.794.956-1.285 1.514-1.653c.239-.158.487-.3.71-.43l.09-.05c.255-.148.48-.28.683-.427c.431-.31.704-.557.787-.684c.183-.276.388-.734.518-1.207c.103-.374.131-.662.122-.84A9.2 9.2 0 0 0 12 2.75a9.2 9.2 0 0 0-5.255 1.637M22.68 13.24q.07-.61.071-1.24c0-5.937-4.813-10.75-10.75-10.75S1.25 6.063 1.25 12S6.063 22.75 12 22.75c5.46 0 9.97-4.071 10.659-9.344a3 3 0 0 1 .048-.156zm-2.774 3.567c-.596.218-1.314.348-2.179.357h-.031l-.09.003a7.7 7.7 0 0 0-1.477.208c-.902.221-1.693.62-2.029 1.252c-.456.859-.39 1.793-.22 2.432a9.26 9.26 0 0 0 6.026-4.252' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:emoji-funny-square-bold-duotone,[i-solar\:emoji-funny-square-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M6.504 21.52c1.633.943 3.706.387 7.853-.724s6.22-1.666 7.163-3.3s.387-3.706-.724-7.853s-1.666-6.22-3.3-7.163s-3.706-.388-7.853.724c-4.147 1.11-6.22 1.666-7.163 3.3s-.388 3.706.724 7.853c1.11 4.147 1.666 6.22 3.3 7.163' opacity='.5'/%3E%3Cpath fill='currentColor' d='M14.898 11.224c.533-.143.792-.908.578-1.708s-.821-1.333-1.355-1.19c-.533.143-.792.907-.577 1.708c.214.8.82 1.333 1.354 1.19m-5.796 1.553c.534-.143.792-.908.578-1.708s-.82-1.333-1.354-1.19s-.792.907-.578 1.708s.82 1.333 1.354 1.19m-.917 2.974a.75.75 0 0 1 .91-.545c1.13.283 2.428.287 3.746-.066c1.318-.354 2.44-1.006 3.278-1.816a.75.75 0 1 1 1.043 1.078a8.4 8.4 0 0 1-1.15.928l.159.322a1.5 1.5 0 1 1-2.693 1.322l-.196-.4l-.053.014c-1.555.417-3.112.42-4.499.073a.75.75 0 0 1-.545-.91'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:eye-closed-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2.919 6.605a1 1 0 0 0-1.838.79l.002.003l.003.007l.01.021l.032.072q.04.09.12.25c.105.21.262.506.47.857c.41.687 1.027 1.6 1.872 2.52l-.797.797a1 1 0 1 0 1.414 1.414l.84-.84c.565.455 1.197.885 1.897 1.256l-.782 1.202a1 1 0 0 0 1.676 1.091l.985-1.514c.677.208 1.402.355 2.177.425V16.5a1 1 0 0 0 1 1V13c-2.748 0-4.819-1.199-6.304-2.59l-.024-.022a12 12 0 0 1-.564-.569a13.4 13.4 0 0 1-1.67-2.237a12 12 0 0 1-.516-.968zm-1.838.79L2 7c-.92.394-.919.395-.919.395' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M15.22 12.398A8.7 8.7 0 0 1 12 13v4.5a1 1 0 0 0 1-1v-1.544c.772-.07 1.497-.217 2.176-.425l.986 1.515a1 1 0 0 0 1.676-1.091l-.782-1.203c.701-.37 1.332-.8 1.897-1.256l.84.84a1 1 0 1 0 1.414-1.414l-.797-.798a15.4 15.4 0 0 0 2.302-3.296a10 10 0 0 0 .19-.395l.011-.026l.004-.008l.002-.005a1 1 0 1 0-1.838-.788l-.005.011a5 5 0 0 1-.146.302a13 13 0 0 1-2.614 3.48c-.841.79-1.87 1.517-3.095 2' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:eye-scan-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14 2.75c1.907 0 3.262.002 4.29.14c1.005.135 1.585.389 2.008.812c.487.487.7.865.817 1.538c.132.759.135 1.84.135 3.76a.75.75 0 0 0 1.5 0v-.096c0-1.8 0-3.018-.158-3.922c-.175-1.005-.549-1.656-1.233-2.34c-.749-.75-1.698-1.081-2.87-1.239c-1.14-.153-2.595-.153-4.433-.153H14a.75.75 0 0 0 0 1.5M2 14.25a.75.75 0 0 1 .75.75c0 1.92.003 3.001.135 3.76c.118.673.33 1.051.817 1.538c.423.423 1.003.677 2.009.812c1.028.138 2.382.14 4.289.14a.75.75 0 0 1 0 1.5h-.056c-1.838 0-3.294 0-4.433-.153c-1.172-.158-2.121-.49-2.87-1.238c-.684-.685-1.058-1.336-1.233-2.341c-.158-.904-.158-2.123-.158-3.922V15a.75.75 0 0 1 .75-.75m20 0a.75.75 0 0 1 .75.75v.096c0 1.8 0 3.018-.158 3.922c-.175 1.005-.549 1.656-1.233 2.34c-.749.75-1.698 1.081-2.87 1.239c-1.14.153-2.595.153-4.433.153H14a.75.75 0 0 1 0-1.5c1.907 0 3.262-.002 4.29-.14c1.005-.135 1.585-.389 2.008-.812c.487-.487.7-.865.817-1.538c.132-.759.135-1.84.135-3.76a.75.75 0 0 1 .75-.75m-12.056-13H10a.75.75 0 0 1 0 1.5c-1.907 0-3.261.002-4.29.14c-1.005.135-1.585.389-2.008.812c-.487.487-.7.865-.817 1.538c-.132.759-.135 1.84-.135 3.76a.75.75 0 1 1-1.5 0v-.096c0-1.8 0-3.018.158-3.922c.175-1.005.549-1.656 1.233-2.34c.749-.75 1.698-1.081 2.87-1.239c1.14-.153 2.595-.153 4.433-.153' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 10.75a1.25 1.25 0 1 0 0 2.5a1.25 1.25 0 0 0 0-2.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.892 14.06C5.297 13.37 5 13.025 5 12s.297-1.37.892-2.06C7.08 8.562 9.072 7 12 7s4.92 1.562 6.108 2.94c.595.69.892 1.035.892 2.06s-.297 1.37-.892 2.06C16.92 15.438 14.928 17 12 17s-4.92-1.562-6.108-2.94M9.25 12a2.75 2.75 0 1 1 5.5 0a2.75 2.75 0 0 1-5.5 0' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:face-scan-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.801 2.57a.71.71 0 0 1-.555.838a8.78 8.78 0 0 0-6.838 6.838a.71.71 0 1 1-1.394-.283a10.2 10.2 0 0 1 7.949-7.949a.71.71 0 0 1 .838.556M2.57 13.199a.71.71 0 0 1 .838.555a8.78 8.78 0 0 0 6.838 6.838a.71.71 0 1 1-.283 1.394a10.2 10.2 0 0 1-7.948-7.949a.71.71 0 0 1 .555-.838M13.199 2.57a.71.71 0 0 1 .838-.556a10.2 10.2 0 0 1 7.949 7.949a.711.711 0 0 1-1.394.283a8.78 8.78 0 0 0-6.838-6.838a.71.71 0 0 1-.555-.838m8.231 10.629a.71.71 0 0 1 .556.838a10.2 10.2 0 0 1-7.949 7.949a.711.711 0 0 1-.283-1.394a8.78 8.78 0 0 0 6.838-6.838a.71.71 0 0 1 .838-.555' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M12 19.583a7.583 7.583 0 1 0 0-15.166a7.583 7.583 0 0 0 0 15.166' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8.94 14.539a.71.71 0 0 1 .995-.148c.59.437 1.3.69 2.065.69a3.45 3.45 0 0 0 2.065-.69a.71.71 0 1 1 .847 1.142a4.87 4.87 0 0 1-2.912.97a4.87 4.87 0 0 1-2.911-.97a.71.71 0 0 1-.148-.994m5.547-2.895c.458 0 .83-.557.83-1.244s-.372-1.244-.83-1.244s-.83.557-.83 1.244s.372 1.244.83 1.244m-4.976 0c.458 0 .83-.557.83-1.244s-.372-1.244-.83-1.244s-.83.557-.83 1.244s.372 1.244.83 1.244'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:face-scan-circle-outline,[i-solar\:face-scan-circle-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 10.5c0 .829-.448 1.5-1 1.5c-.553 0-1-.671-1-1.5c0-.828.447-1.5 1-1.5s1 .672 1 1.5m-6 0c0 .829-.448 1.5-1 1.5s-1-.671-1-1.5C8 9.672 8.448 9 9 9s1 .672 1 1.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M13.265 2.051a.75.75 0 0 1 .884-.586a10.76 10.76 0 0 1 8.386 8.386a.75.75 0 0 1-1.47.298a9.26 9.26 0 0 0-7.214-7.214a.75.75 0 0 1-.586-.884m-2.53 0a.75.75 0 0 1-.586.884a9.26 9.26 0 0 0-7.214 7.215a.75.75 0 0 1-1.47-.299A10.76 10.76 0 0 1 9.85 1.465a.75.75 0 0 1 .884.586M2.051 13.265a.75.75 0 0 1 .884.586a9.26 9.26 0 0 0 7.214 7.214a.75.75 0 1 1-.298 1.47a10.76 10.76 0 0 1-8.386-8.385a.75.75 0 0 1 .586-.885m19.898 0a.75.75 0 0 1 .586.885a10.76 10.76 0 0 1-8.386 8.385a.75.75 0 0 1-.298-1.47a9.26 9.26 0 0 0 7.214-7.214a.75.75 0 0 1 .884-.586M8.397 15.554a.75.75 0 0 1 1.05-.156c.728.54 1.607.852 2.553.852s1.825-.312 2.553-.852a.75.75 0 1 1 .893 1.205A5.77 5.77 0 0 1 12 17.75a5.77 5.77 0 0 1-3.447-1.147a.75.75 0 0 1-.156-1.05' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:filters-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 8A6 6 0 1 1 6 8a6 6 0 0 1 12 0'/%3E%3Cpath fill='currentColor' d='M13.58 13.79a6 6 0 0 1-7.16-3.58a6 6 0 1 0 7.16 3.58' opacity='.7'/%3E%3Cpath fill='currentColor' d='M13.58 13.79c.271.684.42 1.43.42 2.21a6 6 0 0 1-2 4.472a6 6 0 1 0 5.58-10.262a6.01 6.01 0 0 1-4 3.58' opacity='.4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:forbidden-circle-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22c5.523 0 10-4.477 10-10a9.96 9.96 0 0 0-2.418-6.52L5.479 19.581A9.96 9.96 0 0 0 12 22m0-20C6.477 2 2 6.477 2 12a9.96 9.96 0 0 0 2.418 6.52L18.521 4.419A9.96 9.96 0 0 0 12 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:forbidden-circle-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' d='m18.5 5.5l-13 13'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:forward-linear,[i-solar\:forward-linear=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m19.5 12l-5-5m5 5l-5 5m5-5h-10c-1.667 0-5 1-5 5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:gallery-circle-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 9a2 2 0 1 1-4 0a2 2 0 0 1 4 0'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 1.25C6.063 1.25 1.25 6.063 1.25 12S6.063 22.75 12 22.75S22.75 17.937 22.75 12S17.937 1.25 12 1.25m-.818 14.112l-4.29-4.29a2.3 2.3 0 0 0-3.14-.104l-1.001.894a9.25 9.25 0 1 1 16.858 5.4l-1.833-1.663a3 3 0 0 0-3.731-.225l-.299.21a2 2 0 0 1-2.564-.222' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:gallery-circle-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='15' cy='9' r='2'/%3E%3Cpath stroke-linecap='round' d='m20 17.6l-2.223-2a3 3 0 0 0-3.732-.225l-.299.21a2 2 0 0 1-2.564-.222l-4.29-4.29a2.3 2.3 0 0 0-3.14-.104l-1.47 1.286'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:ghost-bold-duotone,[i-solar\:ghost-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 19.206V12c0-5.523-4.477-10-10-10S2 6.477 2 12v7.206a1.727 1.727 0 0 0 2.5 1.544a2.89 2.89 0 0 1 2.896.18a2.89 2.89 0 0 0 3.208 0l.353-.234a1.88 1.88 0 0 1 2.086 0l.353.235a2.89 2.89 0 0 0 3.208 0a2.89 2.89 0 0 1 2.897-.18A1.727 1.727 0 0 0 22 19.206' opacity='.5'/%3E%3Cpath fill='currentColor' d='M15 12c.552 0 1-.672 1-1.5S15.552 9 15 9s-1 .672-1 1.5s.448 1.5 1 1.5m-5-1.5c0 .828-.448 1.5-1 1.5s-1-.672-1-1.5S8.448 9 9 9s1 .672 1 1.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:home-smile-outline,[i-solar\:home-smile-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.447 15.398a.75.75 0 1 0-.894 1.204A5.77 5.77 0 0 0 12 17.75a5.77 5.77 0 0 0 3.447-1.148a.75.75 0 1 0-.894-1.204A4.27 4.27 0 0 1 12 16.25a4.27 4.27 0 0 1-2.553-.852'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 1.25c-.708 0-1.351.203-2.05.542c-.674.328-1.454.812-2.427 1.416L5.456 4.491c-.92.572-1.659 1.03-2.227 1.465c-.589.45-1.041.91-1.368 1.507c-.326.595-.472 1.229-.543 1.978c-.068.725-.068 1.613-.068 2.726v1.613c0 1.904 0 3.407.153 4.582c.156 1.205.486 2.178 1.23 2.947c.747.773 1.697 1.119 2.875 1.282c1.14.159 2.598.159 4.434.159h4.116c1.836 0 3.294 0 4.434-.159c1.177-.163 2.128-.509 2.876-1.282c.743-.769 1.073-1.742 1.23-2.947c.152-1.175.152-2.678.152-4.582v-1.613c0-1.113 0-2-.068-2.726c-.07-.75-.217-1.383-.543-1.978c-.327-.597-.78-1.056-1.368-1.507c-.568-.436-1.306-.893-2.227-1.465l-2.067-1.283c-.973-.604-1.753-1.088-2.428-1.416c-.697-.34-1.34-.542-2.049-.542M8.28 4.504c1.015-.63 1.73-1.072 2.327-1.363c.581-.283.993-.391 1.393-.391s.812.108 1.393.391c.598.29 1.312.733 2.327 1.363l2 1.241c.961.597 1.636 1.016 2.14 1.402c.489.375.77.684.963 1.036c.193.353.306.766.365 1.398c.061.648.062 1.465.062 2.623v1.521c0 1.97-.002 3.376-.14 4.443c-.136 1.048-.393 1.656-.82 2.099c-.425.439-1.003.7-2.004.839c-1.026.142-2.379.144-4.286.144h-4c-1.908 0-3.26-.002-4.286-.144c-1.001-.14-1.579-.4-2.003-.84c-.428-.442-.685-1.05-.82-2.098c-.14-1.067-.141-2.472-.141-4.443v-1.521c0-1.158 0-1.975.062-2.623c.059-.632.172-1.045.365-1.398c.193-.352.474-.661.964-1.036c.503-.386 1.178-.805 2.139-1.402z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:info-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 17.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:info-circle-line-duotone,[i-solar\:info-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Ccircle cx='12' cy='12' r='10' stroke='currentColor' stroke-width='1.5' opacity='.5'/%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-width='1.5' d='M12 17v-6'/%3E%3Ccircle cx='1' cy='1' r='1' fill='currentColor' transform='matrix(1 0 0 -1 11 9)'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:info-circle-outline,[i-solar\:info-circle-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 17.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12S17.937 22.75 12 22.75S1.25 17.937 1.25 12M12 2.75a9.25 9.25 0 1 0 0 18.5a9.25 9.25 0 0 0 0-18.5' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:layers-bold-duotone,[i-solar\:layers-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4.979 9.685C2.993 8.891 2 8.494 2 8s.993-.89 2.979-1.685l2.808-1.123C9.773 4.397 10.767 4 12 4s2.227.397 4.213 1.192l2.808 1.123C21.007 7.109 22 7.506 22 8s-.993.89-2.979 1.685l-2.808 1.124C14.227 11.603 13.233 12 12 12s-2.227-.397-4.213-1.191z'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 8c0 .494.993.89 2.979 1.685l2.808 1.124C9.773 11.603 10.767 12 12 12s2.227-.397 4.213-1.191l2.808-1.124C21.007 8.891 22 8.494 22 8s-.993-.89-2.979-1.685l-2.808-1.123C14.227 4.397 13.233 4 12 4s-2.227.397-4.213 1.192L4.98 6.315C2.993 7.109 2 7.506 2 8' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='m5.766 10l-.787.315C2.993 11.109 2 11.507 2 12s.993.89 2.979 1.685l2.808 1.124C9.773 15.603 10.767 16 12 16s2.227-.397 4.213-1.191l2.808-1.124C21.007 12.891 22 12.493 22 12s-.993-.89-2.979-1.685L18.234 10l-2.021.809C14.227 11.603 13.233 12 12 12s-2.227-.397-4.213-1.191z' opacity='.7'/%3E%3Cpath fill='currentColor' d='m5.766 14l-.787.315C2.993 15.109 2 15.507 2 16s.993.89 2.979 1.685l2.808 1.124C9.773 19.603 10.767 20 12 20s2.227-.397 4.213-1.192l2.808-1.123C21.007 16.891 22 16.494 22 16c0-.493-.993-.89-2.979-1.685L18.234 14l-2.021.809C14.227 15.603 13.233 16 12 16s-2.227-.397-4.213-1.191z' opacity='.4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:leaf-bold-duotone,[i-solar\:leaf-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 22c-4.418 0-8-3.646-8-8.143c0-4.462 2.553-9.67 6.537-11.531A3.45 3.45 0 0 1 12 2z' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M13.463 2.326A3.45 3.45 0 0 0 12 2v7l4.432-4.432c-.863-.947-1.86-1.724-2.97-2.242' opacity='.3'/%3E%3Cpath fill='currentColor' d='M12 9v5.5l6.614-6.614c-.572-1.22-1.308-2.357-2.182-3.318z' opacity='.4'/%3E%3Cpath fill='currentColor' d='m12 19.5l7.811-7.811a15 15 0 0 0-1.197-3.803L12 14.5z' opacity='.6'/%3E%3Cpath fill='currentColor' d='M19.811 11.689L12 19.5V22c4.418 0 8-3.646 8-8.143c0-.71-.064-1.438-.189-2.168' opacity='.7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:magic-stick-2-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.714 2.127c-.836-.43-1.922.263-4.095 1.65l-.562.36c-.618.394-.927.591-1.273.648c-.347.056-.692-.034-1.382-.215l-.628-.164C6.345 3.769 5.13 3.45 4.436 4.13s-.412 1.908.157 4.363l.147.635c.161.697.242 1.046.177 1.393c-.066.346-.27.65-.68 1.26l-.372.555c-1.439 2.145-2.158 3.217-1.753 4.067c.406.85 1.668.915 4.192 1.045l.654.033c.717.037 1.076.056 1.382.213c.306.158.524.436.962.994l.398.507c1.539 1.962 2.309 2.943 3.255 2.788c.945-.154 1.441-1.342 2.433-3.717l.257-.614c.282-.675.422-1.012.677-1.261c.255-.25.595-.382 1.274-.647l.618-.24c2.39-.933 3.586-1.4 3.765-2.345s-.777-1.744-2.688-3.342l-.495-.413c-.543-.454-.815-.68-.963-.992s-.158-.672-.175-1.393l-.016-.657c-.062-2.538-.093-3.806-.928-4.236'/%3E%3Cpath fill='currentColor' d='M15.93 16.991c.127-.268.239-.45.392-.6c.172-.167.382-.282.71-.42l4.498 4.499a.75.75 0 0 1-1.06 1.06z' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:magic-stick-3-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3.845 3.845a2.883 2.883 0 0 0 0 4.077L5.432 9.51c.012-.014.555.503.568.49l4-4c.013-.013-.504-.556-.49-.568L7.922 3.845a2.883 2.883 0 0 0-4.077 0m1.288 11.462a.483.483 0 0 1 .9 0l.157.4a.48.48 0 0 0 .272.273l.398.157a.486.486 0 0 1 0 .903l-.398.158a.48.48 0 0 0-.272.273l-.157.4a.483.483 0 0 1-.9 0l-.157-.4a.48.48 0 0 0-.272-.273l-.398-.158a.486.486 0 0 1 0-.903l.398-.157a.48.48 0 0 0 .272-.274z' opacity='.5'/%3E%3Cpath fill='currentColor' d='M19.967 9.13a.483.483 0 0 1 .9 0l.156.399c.05.125.148.224.273.273l.398.158a.486.486 0 0 1 0 .902l-.398.158a.5.5 0 0 0-.273.273l-.156.4a.483.483 0 0 1-.9 0l-.157-.4a.5.5 0 0 0-.272-.273l-.398-.158a.486.486 0 0 1 0-.902l.398-.158a.5.5 0 0 0 .272-.273z' opacity='.2'/%3E%3Cpath fill='currentColor' d='M16.1 2.307a.483.483 0 0 1 .9 0l.43 1.095a.48.48 0 0 0 .272.274l1.091.432a.486.486 0 0 1 0 .903l-1.09.432a.5.5 0 0 0-.273.273L17 6.81a.483.483 0 0 1-.9 0l-.43-1.095a.5.5 0 0 0-.273-.273l-1.09-.432a.486.486 0 0 1 0-.903l1.09-.432a.5.5 0 0 0 .273-.274z' opacity='.7'/%3E%3Cpath fill='currentColor' d='M10.568 6.49c-.012.014-.555-.503-.568-.49l-4 4c-.013.013.504.556.49.568l9.588 9.587a2.883 2.883 0 1 0 4.078-4.077z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:magnifer-line-duotone,[i-solar\:magnifer-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cdefs%3E%3Cmask id='SVGcfiNQVot'%3E%3Cg fill='none' stroke-width='1.5'%3E%3Ccircle cx='11.5' cy='11.5' r='9.5' stroke='gray'/%3E%3Cpath stroke='%23fff' stroke-linecap='round' d='M18.5 18.5L22 22'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Cpath fill='currentColor' d='M0 0h24v24H0z' mask='url(%23SVGcfiNQVot)'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:menu-dots-bold,[i-solar\:menu-dots-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 12a2 2 0 1 1-4 0a2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0a2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0a2 2 0 0 1 4 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:microphone-3-bold-duotone,[i-solar\:microphone-3-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M4 9a.75.75 0 0 1 .75.75v1a7.25 7.25 0 1 0 14.5 0v-1a.75.75 0 0 1 1.5 0v1a8.75 8.75 0 0 1-8 8.718v2.282a.75.75 0 0 1-1.5 0v-2.282a8.75 8.75 0 0 1-8-8.718v-1A.75.75 0 0 1 4 9' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 2a5.75 5.75 0 0 0-5.75 5.75v3a5.75 5.75 0 0 0 11.5 0v-3A5.75 5.75 0 0 0 12 2m2 9.5a.75.75 0 0 0 0-1.5h-4a.75.75 0 0 0 0 1.5zm-.25-3.75a.75.75 0 0 1-.75.75h-2A.75.75 0 0 1 11 7h2a.75.75 0 0 1 .75.75' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='M14 11.5a.75.75 0 0 0 0-1.5h-4a.75.75 0 0 0 0 1.5zm-1-3A.75.75 0 0 0 13 7h-2a.75.75 0 0 0 0 1.5z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:minus-circle-line-duotone,[i-solar\:minus-circle-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10' opacity='.5'/%3E%3Cpath stroke-linecap='round' d='M15 12H9'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:moon-bold,[i-solar\:moon-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22c5.523 0 10-4.477 10-10c0-.463-.694-.54-.933-.143a6.5 6.5 0 1 1-8.924-8.924C12.54 2.693 12.463 2 12 2C6.477 2 2 6.477 2 12s4.477 10 10 10'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:moon-outline,[i-solar\:moon-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11.017 2.802a9.25 9.25 0 1 0 10.181 10.181A7.25 7.25 0 1 1 11.017 2.802M1.25 12C1.25 6.063 6.063 1.25 12 1.25c.717 0 1.075.571 1.137 1.026c.059.438-.103.995-.606 1.299a5.75 5.75 0 1 0 7.894 7.894c.304-.503.861-.665 1.299-.606c.455.062 1.026.42 1.026 1.137c0 5.937-4.813 10.75-10.75 10.75S1.25 17.937 1.25 12' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:notes-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='m20.312 12.647l.517-1.932c.604-2.255.907-3.382.68-4.358a4 4 0 0 0-1.162-2.011c-.731-.685-1.859-.987-4.114-1.591c-2.255-.605-3.383-.907-4.358-.68a4 4 0 0 0-2.011 1.162c-.587.626-.893 1.543-1.348 3.209l-.244.905l-.517 1.932c-.605 2.255-.907 3.382-.68 4.358a4 4 0 0 0 1.162 2.011c.731.685 1.859.987 4.114 1.592c2.032.544 3.149.843 4.064.73q.15-.019.294-.052a4 4 0 0 0 2.011-1.16c.685-.732.987-1.86 1.592-4.115Z'/%3E%3Cpath d='M16.415 17.974a4 4 0 0 1-1.068 1.678c-.731.685-1.859.987-4.114 1.591s-3.383.907-4.358.679a4 4 0 0 1-2.011-1.161c-.685-.731-.988-1.859-1.592-4.114l-.517-1.932c-.605-2.255-.907-3.383-.68-4.358a4 4 0 0 1 1.162-2.011c.731-.685 1.859-.987 4.114-1.592q.638-.172 1.165-.309'/%3E%3Cpath stroke-linecap='round' d='m11.777 10l4.83 1.294M11 12.898l2.898.776'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:pallete-2-bold-duotone,[i-solar\:pallete-2-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10.847 21.934C5.867 21.362 2 17.133 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10c0 5.157-3.283 4.733-6.086 4.37c-1.618-.209-3.075-.397-3.652.518c-.395.626.032 1.406.555 1.929a1.673 1.673 0 0 1 0 2.366c-.523.523-1.235.836-1.97.751' opacity='.5'/%3E%3Cpath fill='currentColor' d='M11.085 7a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0M6.5 13a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3m11 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3m-3-4.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:pause-circle-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8.076 8.617C8 8.801 8 9.034 8 9.5v5c0 .466 0 .699.076.883a1 1 0 0 0 .541.54c.184.077.417.077.883.077s.699 0 .883-.076a1 1 0 0 0 .54-.541c.077-.184.077-.417.077-.883v-5c0-.466 0-.699-.076-.883a1 1 0 0 0-.541-.54C10.199 8 9.966 8 9.5 8s-.699 0-.883.076a1 1 0 0 0-.54.541m4.999 0C13 8.801 13 9.034 13 9.5v5c0 .466 0 .699.076.883a1 1 0 0 0 .541.54c.184.077.417.077.883.077s.699 0 .883-.076a1 1 0 0 0 .54-.541c.077-.184.077-.417.077-.883v-5c0-.466 0-.699-.076-.883a1 1 0 0 0-.541-.54C15.199 8 14.966 8 14.5 8s-.699 0-.883.076a1 1 0 0 0-.54.541'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:pen-2-line-duotone,[i-solar\:pen-2-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' d='M4 22h16' opacity='.5'/%3E%3Cpath d='m14.63 2.921l-.742.742l-6.817 6.817c-.462.462-.693.692-.891.947a5.2 5.2 0 0 0-.599.969c-.139.291-.242.601-.449 1.22l-.875 2.626l-.213.641a.848.848 0 0 0 1.073 1.073l.641-.213l2.625-.875c.62-.207.93-.31 1.221-.45q.518-.246.969-.598c.255-.199.485-.43.947-.891l6.817-6.817l.742-.742a3.146 3.146 0 0 0-4.45-4.449Z'/%3E%3Cpath d='M13.888 3.664S13.98 5.24 15.37 6.63s2.966 1.483 2.966 1.483m-12.579 9.63l-1.5-1.5' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:people-nearby-bold-duotone,[i-solar\:people-nearby-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19.717 20.362C21.143 19.585 22 18.587 22 17.5c0-1.152-.963-2.204-2.546-3C17.623 13.58 14.962 13 12 13s-5.623.58-7.454 1.5C2.963 15.296 2 16.348 2 17.5s.963 2.204 2.546 3C6.377 21.42 9.038 22 12 22c3.107 0 5.882-.637 7.717-1.638' opacity='.6'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M9.25 4a2.75 2.75 0 1 1 5.5 0a2.75 2.75 0 0 1-5.5 0' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='m8.223 11.574l-2.175-.725a1.532 1.532 0 0 1 .805-2.952l1.898.407l.21.044a15 15 0 0 0 6.288-.044l1.897-.407a1.532 1.532 0 0 1 .806 2.952l-2.175.725c-.263.088-.394.132-.493.193a1 1 0 0 0-.466.986c.016.115.066.244.165.503l1.247 3.242a1.473 1.473 0 0 1-2.654 1.26L12 15l-1.576 2.757a1.473 1.473 0 0 1-2.654-1.26l1.247-3.241c.1-.259.149-.388.165-.503a1 1 0 0 0-.466-.986c-.099-.061-.23-.105-.493-.193'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:play-circle-bold-duotone,[i-solar\:play-circle-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='m15.414 13.059l-4.72 2.787C9.934 16.294 9 15.71 9 14.786V9.214c0-.924.934-1.507 1.694-1.059l4.72 2.787c.781.462.781 1.656 0 2.118'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:play-circle-broken{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M13.888 9.935C14.963 10.812 15.5 11.25 15.5 12s-.537 1.188-1.612 2.065c-.297.242-.591.47-.862.66c-.237.167-.506.339-.784.508c-1.073.652-1.609.978-2.09.617c-.48-.36-.524-1.116-.612-2.628c-.024-.427-.04-.846-.04-1.222s.016-.795.04-1.222c.088-1.512.132-2.267.612-2.628c.481-.361 1.018-.035 2.09.617c.278.169.547.341.784.508c.27.19.565.418.862.66Z'/%3E%3Cpath stroke-linecap='round' d='M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:question-square-bold-duotone,[i-solar\:question-square-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 22c-4.714 0-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12s0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12 7.75c-.621 0-1.125.504-1.125 1.125a.75.75 0 0 1-1.5 0a2.625 2.625 0 1 1 4.508 1.829q-.138.142-.264.267a7 7 0 0 0-.571.617c-.22.282-.298.489-.298.662V13a.75.75 0 0 1-1.5 0v-.75c0-.655.305-1.186.614-1.583c.229-.294.516-.58.75-.814q.106-.105.193-.194A1.125 1.125 0 0 0 12 7.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:refresh-bold-duotone,[i-solar\:refresh-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12.079 2.25c-4.794 0-8.734 3.663-9.118 8.333H2a.75.75 0 0 0-.528 1.283l1.68 1.666a.75.75 0 0 0 1.056 0l1.68-1.666a.75.75 0 0 0-.528-1.283h-.893c.38-3.831 3.638-6.833 7.612-6.833a7.66 7.66 0 0 1 6.537 3.643a.75.75 0 1 0 1.277-.786A9.16 9.16 0 0 0 12.08 2.25'/%3E%3Cpath fill='currentColor' d='M20.841 10.467a.75.75 0 0 0-1.054 0L18.1 12.133a.75.75 0 0 0 .527 1.284h.899c-.381 3.83-3.651 6.833-7.644 6.833a7.7 7.7 0 0 1-6.565-3.644a.75.75 0 1 0-1.276.788a9.2 9.2 0 0 0 7.84 4.356c4.809 0 8.766-3.66 9.151-8.333H22a.75.75 0 0 0 .527-1.284z' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:round-double-alt-arrow-right-bold-duotone,[i-solar\:round-double-alt-arrow-right-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12' opacity='.5'/%3E%3Cpath fill='currentColor' d='M9.03 15.53a.75.75 0 0 1-1.06-1.06L10.44 12L7.97 9.53a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06z'/%3E%3Cpath fill='currentColor' d='M13.03 15.53a.75.75 0 1 1-1.06-1.06L14.44 12l-2.47-2.47a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:running-2-line-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none'%3E%3Ccircle cx='18.5' cy='4.5' r='2.5' stroke='currentColor' stroke-width='1.5' opacity='.5'/%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-width='1.5' d='m9 17l-1 1.2c-.738.886-1.107 1.328-1.61 1.564S5.31 20 4.157 20H3'/%3E%3Cpath fill='currentColor' d='M13.65 22a.75.75 0 0 0 1.5 0zm-1.085-5.754l.453-.598zm1.184 1.015l.587-.466zm.557 1.12l.727-.186zm-.802-6.826a.75.75 0 0 0-1.009-1.11zm-2.652 1.61l.703.26zm.07 1.555l-.677.323zm2.728 5.219v2.06h1.5v-2.06zm-1.538-3.095c.663.502.887.679 1.05.884l1.174-.934c-.308-.387-.717-.69-1.319-1.146zm3.038 3.095c0-.755.006-1.264-.117-1.744l-1.453.373c.065.254.07.538.07 1.37zm-1.988-2.211c.197.247.339.534.417.84l1.454-.373a3.75 3.75 0 0 0-.697-1.4zm-.667-7.283c-.42.381-.945.836-1.354 1.224c-.21.198-.41.398-.573.586c-.149.172-.327.4-.42.649l1.407.521c-.007.021.014-.035.146-.187c.116-.134.276-.295.471-.48c.4-.38.865-.778 1.332-1.203zm.523 5.203c-.488-.37-.818-.62-1.056-.832c-.233-.208-.32-.33-.363-.418l-1.354.645c.167.35.423.63.72.894c.292.26.679.552 1.147.907zm-2.87-2.744a2.75 2.75 0 0 0 .097 2.139l1.354-.645a1.25 1.25 0 0 1-.044-.973z' opacity='.5'/%3E%3Cpath fill='currentColor' d='m5.436 8.82l-.37-.652zm-1.807.164a.75.75 0 1 0 .742 1.304zm9.778-1.627l-.286.693zm-2.96-.715l-.055-.748zM21 12.75a.75.75 0 1 0 0-1.5zm-5.232-3.213l-.67.335zM5.065 8.168l-1.436.816l.742 1.304l1.435-.816zm8.627-1.505c-1.344-.553-2.08-.857-3.3-.769l.11 1.496c.823-.06 1.255.099 2.62.66zm-7.886 2.81c2.502-1.422 3.552-2 4.695-2.083l-.109-1.496c-1.56.114-2.949.923-5.327 2.274zm13.949 3.276H21v-1.5h-1.245zm-4.658-2.878a5.21 5.21 0 0 0 4.658 2.878v-1.5A3.71 3.71 0 0 1 16.439 9.2zm1.342-.67a5.33 5.33 0 0 0-2.747-2.538l-.57 1.387c.86.354 1.564 1 1.975 1.821z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:scale-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12' opacity='.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M16.656 2.75a.75.75 0 0 1 0-1.5H22a.75.75 0 0 1 .75.75v5.344a.75.75 0 0 1-1.5 0V3.81l-7.44 7.439H16a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75V8a.75.75 0 0 1 1.5 0v2.19l7.44-7.44z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:settings-bold-duotone,[i-solar\:settings-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M14.279 2.152C13.909 2 13.439 2 12.5 2s-1.408 0-1.779.152a2 2 0 0 0-1.09 1.083c-.094.223-.13.484-.145.863a1.62 1.62 0 0 1-.796 1.353a1.64 1.64 0 0 1-1.579.008c-.338-.178-.583-.276-.825-.308a2.03 2.03 0 0 0-1.49.396c-.318.242-.553.646-1.022 1.453c-.47.807-.704 1.21-.757 1.605c-.07.526.074 1.058.4 1.479c.148.192.357.353.68.555c.477.297.783.803.783 1.361s-.306 1.064-.782 1.36c-.324.203-.533.364-.682.556a2 2 0 0 0-.399 1.479c.053.394.287.798.757 1.605s.704 1.21 1.022 1.453c.424.323.96.465 1.49.396c.242-.032.487-.13.825-.308a1.64 1.64 0 0 1 1.58.008c.486.28.774.795.795 1.353c.015.38.051.64.145.863c.204.49.596.88 1.09 1.083c.37.152.84.152 1.779.152s1.409 0 1.779-.152a2 2 0 0 0 1.09-1.083c.094-.223.13-.483.145-.863c.02-.558.309-1.074.796-1.353a1.64 1.64 0 0 1 1.579-.008c.338.178.583.276.825.308c.53.07 1.066-.073 1.49-.396c.318-.242.553-.646 1.022-1.453c.47-.807.704-1.21.757-1.605a2 2 0 0 0-.4-1.479c-.148-.192-.357-.353-.68-.555c-.477-.297-.783-.803-.783-1.361s.306-1.064.782-1.36c.324-.203.533-.364.682-.556a2 2 0 0 0 .399-1.479c-.053-.394-.287-.798-.757-1.605s-.704-1.21-1.022-1.453a2.03 2.03 0 0 0-1.49-.396c-.242.032-.487.13-.825.308a1.64 1.64 0 0 1-1.58-.008a1.62 1.62 0 0 1-.795-1.353c-.015-.38-.051-.64-.145-.863a2 2 0 0 0-1.09-1.083' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='M15.523 12c0 1.657-1.354 3-3.023 3s-3.023-1.343-3.023-3S10.83 9 12.5 9s3.023 1.343 3.023 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:settings-minimalistic-bold-duotone,[i-solar\:settings-minimalistic-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.428 2c-1.114 0-2.129.6-4.157 1.802l-.686.406C5.555 5.41 4.542 6.011 3.985 7c-.557.99-.557 2.19-.557 4.594v.812c0 2.403 0 3.605.557 4.594s1.57 1.59 3.6 2.791l.686.407C10.299 21.399 11.314 22 12.428 22s2.128-.6 4.157-1.802l.686-.407c2.028-1.2 3.043-1.802 3.6-2.791c.557-.99.557-2.19.557-4.594v-.812c0-2.403 0-3.605-.557-4.594s-1.572-1.59-3.6-2.792l-.686-.406C14.555 2.601 13.542 2 12.428 2' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12.428 8.25a3.75 3.75 0 1 0 0 7.5a3.75 3.75 0 0 0 0-7.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:settings-outline,[i-solar\:settings-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor' fill-rule='evenodd' clip-rule='evenodd'%3E%3Cpath d='M12 8.25a3.75 3.75 0 1 0 0 7.5a3.75 3.75 0 0 0 0-7.5M9.75 12a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0'/%3E%3Cpath d='M11.975 1.25c-.445 0-.816 0-1.12.02a2.8 2.8 0 0 0-.907.19a2.75 2.75 0 0 0-1.489 1.488c-.145.35-.184.72-.2 1.122a.87.87 0 0 1-.415.731a.87.87 0 0 1-.841-.005c-.356-.188-.696-.339-1.072-.389a2.75 2.75 0 0 0-2.033.545a2.8 2.8 0 0 0-.617.691c-.17.254-.356.575-.578.96l-.025.044c-.223.385-.408.706-.542.98c-.14.286-.25.568-.29.88a2.75 2.75 0 0 0 .544 2.033c.231.301.532.52.872.734a.87.87 0 0 1 .426.726a.87.87 0 0 1-.426.726c-.34.214-.64.433-.872.734a2.75 2.75 0 0 0-.545 2.033c.041.312.15.594.29.88c.135.274.32.595.543.98l.025.044c.222.385.408.706.578.96c.177.263.367.5.617.69a2.75 2.75 0 0 0 2.033.546c.376-.05.716-.2 1.072-.389a.87.87 0 0 1 .84-.005a.86.86 0 0 1 .417.731c.015.402.054.772.2 1.122a2.75 2.75 0 0 0 1.488 1.489c.29.12.59.167.907.188c.304.021.675.021 1.12.021h.05c.445 0 .816 0 1.12-.02c.318-.022.617-.069.907-.19a2.75 2.75 0 0 0 1.489-1.488c.145-.35.184-.72.2-1.122a.87.87 0 0 1 .415-.732a.87.87 0 0 1 .841.006c.356.188.696.339 1.072.388a2.75 2.75 0 0 0 2.033-.544c.25-.192.44-.428.617-.691c.17-.254.356-.575.578-.96l.025-.044c.223-.385.408-.706.542-.98c.14-.286.25-.569.29-.88a2.75 2.75 0 0 0-.544-2.033c-.231-.301-.532-.52-.872-.734a.87.87 0 0 1-.426-.726c0-.278.152-.554.426-.726c.34-.214.64-.433.872-.734a2.75 2.75 0 0 0 .545-2.033a2.8 2.8 0 0 0-.29-.88a18 18 0 0 0-.543-.98l-.025-.044a18 18 0 0 0-.578-.96a2.8 2.8 0 0 0-.617-.69a2.75 2.75 0 0 0-2.033-.546c-.376.05-.716.2-1.072.389a.87.87 0 0 1-.84.005a.87.87 0 0 1-.417-.731c-.015-.402-.054-.772-.2-1.122a2.75 2.75 0 0 0-1.488-1.489c-.29-.12-.59-.167-.907-.188c-.304-.021-.675-.021-1.12-.021zm-1.453 1.595c.077-.032.194-.061.435-.078c.247-.017.567-.017 1.043-.017s.796 0 1.043.017c.241.017.358.046.435.078c.307.127.55.37.677.677c.04.096.073.247.086.604c.03.792.439 1.555 1.165 1.974s1.591.392 2.292.022c.316-.167.463-.214.567-.227a1.25 1.25 0 0 1 .924.247c.066.051.15.138.285.338c.139.206.299.483.537.895s.397.69.506.912c.107.217.14.333.15.416a1.25 1.25 0 0 1-.247.924c-.064.083-.178.187-.48.377c-.672.422-1.128 1.158-1.128 1.996s.456 1.574 1.128 1.996c.302.19.416.294.48.377c.202.263.29.595.247.924c-.01.083-.044.2-.15.416c-.109.223-.268.5-.506.912s-.399.689-.537.895c-.135.2-.219.287-.285.338a1.25 1.25 0 0 1-.924.247c-.104-.013-.25-.06-.567-.227c-.7-.37-1.566-.398-2.292.021s-1.135 1.183-1.165 1.975c-.013.357-.046.508-.086.604a1.25 1.25 0 0 1-.677.677c-.077.032-.194.061-.435.078c-.247.017-.567.017-1.043.017s-.796 0-1.043-.017c-.241-.017-.358-.046-.435-.078a1.25 1.25 0 0 1-.677-.677c-.04-.096-.073-.247-.086-.604c-.03-.792-.439-1.555-1.165-1.974s-1.591-.392-2.292-.022c-.316.167-.463.214-.567.227a1.25 1.25 0 0 1-.924-.247c-.066-.051-.15-.138-.285-.338a17 17 0 0 1-.537-.895c-.238-.412-.397-.69-.506-.912c-.107-.217-.14-.333-.15-.416a1.25 1.25 0 0 1 .247-.924c.064-.083.178-.187.48-.377c.672-.422 1.128-1.158 1.128-1.996s-.456-1.574-1.128-1.996c-.302-.19-.416-.294-.48-.377a1.25 1.25 0 0 1-.247-.924c.01-.083.044-.2.15-.416c.109-.223.268-.5.506-.912s.399-.689.537-.895c.135-.2.219-.287.285-.338a1.25 1.25 0 0 1 .924-.247c.104.013.25.06.567.227c.7.37 1.566.398 2.292-.022c.726-.419 1.135-1.182 1.165-1.974c.013-.357.046-.508.086-.604c.127-.307.37-.55.677-.677'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:sledgehammer-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7.604 4.604C9.34 2.868 10.208 2 11.286 2c1.079 0 1.947.868 3.682 2.604l4.42 4.419c1.735 1.735 2.603 2.603 2.603 3.682s-.868 1.946-2.604 3.682s-2.604 2.604-3.682 2.604c-1.079 0-1.947-.868-3.682-2.604l-4.42-4.419C5.869 10.233 5 9.365 5 8.286s.868-1.946 2.604-3.682'/%3E%3Cpath fill='currentColor' d='m8.345 12.71l-5.52 5.518c-.342.343-.513.514-.616.692a1.56 1.56 0 0 0 0 1.562c.103.178.274.35.617.692s.513.514.692.617a1.56 1.56 0 0 0 1.562 0c.178-.103.35-.275.692-.617l5.518-5.519zm10.31-4.42l.373-.372c.342-.343.514-.514.617-.692a1.56 1.56 0 0 0 0-1.562c-.103-.179-.275-.35-.617-.692c-.342-.343-.514-.514-.692-.617a1.56 1.56 0 0 0-1.562 0c-.178.103-.35.274-.692.617l-.373.373z' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:stop-circle-bold-duotone,[i-solar\:stop-circle-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10' opacity='.5'/%3E%3Cpath fill='currentColor' d='M8.586 8.586C8 9.172 8 10.114 8 12s0 2.828.586 3.414S10.114 16 12 16s2.828 0 3.414-.586S16 13.886 16 12s0-2.828-.586-3.414S13.886 8 12 8s-2.828 0-3.414.586'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:sun-2-bold,[i-solar\:sun-2-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 12a5 5 0 1 1-10 0a5 5 0 0 1 10 0'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 1.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V2a.75.75 0 0 1 .75-.75M3.669 3.716a.75.75 0 0 1 1.06-.047L6.95 5.7a.75.75 0 1 1-1.012 1.107L3.716 4.776a.75.75 0 0 1-.047-1.06m16.662 0a.75.75 0 0 1-.047 1.06l-2.222 2.031A.75.75 0 0 1 17.05 5.7l2.222-2.031a.75.75 0 0 1 1.06.047M1.25 12a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75m18 0a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75m-2.224 5.025a.75.75 0 0 1 1.06 0l2.222 2.223a.75.75 0 0 1-1.06 1.06l-2.222-2.222a.75.75 0 0 1 0-1.06m-10.051 0a.75.75 0 0 1 0 1.061l-2.223 2.222a.75.75 0 0 1-1.06-1.06l2.222-2.223a.75.75 0 0 1 1.06 0M12 19.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:sun-2-outline,[i-solar\:sun-2-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 1.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V2a.75.75 0 0 1 .75-.75M3.669 3.716a.75.75 0 0 1 1.06-.047L6.95 5.7a.75.75 0 1 1-1.012 1.107L3.716 4.776a.75.75 0 0 1-.047-1.06m16.662 0a.75.75 0 0 1-.047 1.06l-2.222 2.031A.75.75 0 0 1 17.05 5.7l2.222-2.031a.75.75 0 0 1 1.06.047M12 7.75a4.25 4.25 0 1 0 0 8.5a4.25 4.25 0 0 0 0-8.5M6.25 12a5.75 5.75 0 1 1 11.5 0a5.75 5.75 0 0 1-11.5 0m-5 0a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75m18 0a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75m-2.224 5.025a.75.75 0 0 1 1.06 0l2.222 2.223a.75.75 0 0 1-1.06 1.06l-2.222-2.222a.75.75 0 0 1 0-1.06m-10.051 0a.75.75 0 0 1 0 1.061l-2.223 2.222a.75.75 0 0 1-1.06-1.06l2.222-2.223a.75.75 0 0 1 1.06 0M12 19.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:tag-horizontal-bold,[i-solar\:tag-horizontal-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.858 20h-2.637c-3.875 0-5.813 0-7.017-1.172S2 15.771 2 12s0-5.657 1.204-6.828S6.346 4 10.22 4h2.637c2.227 0 3.341 0 4.27.501c.93.502 1.52 1.42 2.701 3.259l.681 1.06C21.503 10.366 22 11.14 22 12s-.497 1.634-1.49 3.18l-.68 1.06c-1.181 1.838-1.771 2.757-2.701 3.259S15.085 20 12.858 20M7 7.054c.414 0 .75.316.75.706v8.475c0 .39-.336.706-.75.706s-.75-.316-.75-.706V7.76c0-.39.336-.706.75-.706' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:trash-bin-2-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2.75 6.167c0-.46.345-.834.771-.834h2.665c.529-.015.996-.378 1.176-.916l.03-.095l.115-.372c.07-.228.131-.427.217-.605c.338-.702.964-1.189 1.687-1.314c.184-.031.377-.031.6-.031h3.478c.223 0 .417 0 .6.031c.723.125 1.35.612 1.687 1.314c.086.178.147.377.217.605l.115.372l.03.095c.18.538.74.902 1.27.916h2.57c.427 0 .772.373.772.834S20.405 7 19.979 7H3.52c-.426 0-.771-.373-.771-.833'/%3E%3Cpath fill='currentColor' d='M11.607 22h.787c2.707 0 4.06 0 4.941-.863c.88-.864.97-2.28 1.15-5.111l.26-4.081c.098-1.537.147-2.305-.295-2.792s-1.187-.487-2.679-.487H8.23c-1.491 0-2.237 0-2.679.487s-.392 1.255-.295 2.792l.26 4.08c.18 2.833.27 4.248 1.15 5.112S8.9 22 11.607 22' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:trash-bin-minimalistic-bold-duotone,[i-solar\:trash-bin-minimalistic-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 6.524c0-.395.327-.714.73-.714h4.788c.006-.842.098-1.995.932-2.793A3.68 3.68 0 0 1 12 2a3.68 3.68 0 0 1 2.55 1.017c.834.798.926 1.951.932 2.793h4.788c.403 0 .73.32.73.714a.72.72 0 0 1-.73.714H3.73A.72.72 0 0 1 3 6.524'/%3E%3Cpath fill='currentColor' d='M11.596 22h.808c2.783 0 4.174 0 5.08-.886c.904-.886.996-2.339 1.181-5.245l.267-4.188c.1-1.577.15-2.366-.303-2.865c-.454-.5-1.22-.5-2.753-.5H8.124c-1.533 0-2.3 0-2.753.5s-.404 1.288-.303 2.865l.267 4.188c.185 2.906.277 4.36 1.182 5.245c.905.886 2.296.886 5.079.886' opacity='.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M9.425 11.482c.413-.044.78.273.821.707l.5 5.263c.041.433-.26.82-.671.864c-.412.043-.78-.273-.821-.707l-.5-5.263c-.041-.434.26-.821.671-.864m5.15 0c.412.043.713.43.671.864l-.5 5.263c-.04.434-.408.75-.82.707c-.413-.044-.713-.43-.672-.864l.5-5.264c.041-.433.409-.75.82-.707' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:trash-bin-trash-linear,[i-solar\:trash-bin-trash-linear=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' d='M20.5 6h-17m15.333 2.5l-.46 6.9c-.177 2.654-.265 3.981-1.13 4.79s-2.196.81-4.856.81h-.774c-2.66 0-3.991 0-4.856-.81c-.865-.809-.954-2.136-1.13-4.79l-.46-6.9M9.5 11l.5 5m4.5-5l-.5 5'/%3E%3Cpath d='M6.5 6h.11a2 2 0 0 0 1.83-1.32l.034-.103l.097-.291c.083-.249.125-.373.18-.479a1.5 1.5 0 0 1 1.094-.788C9.962 3 10.093 3 10.355 3h3.29c.262 0 .393 0 .51.019a1.5 1.5 0 0 1 1.094.788c.055.106.097.23.18.479l.097.291A2 2 0 0 0 17.5 6'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:tuning-outline,[i-solar\:tuning-outline=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16.959 9.75a.75.75 0 0 1-.75-.75V2a.75.75 0 0 1 1.5 0v7a.75.75 0 0 1-.75.75'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M7 5.75a3.75 3.75 0 1 1 0 7.5a3.75 3.75 0 0 1 0-7.5M9.25 9.5a2.25 2.25 0 1 0-4.5 0a2.25 2.25 0 0 0 4.5 0M17 18.25a3.75 3.75 0 1 0 0-7.5a3.75 3.75 0 0 0 0 7.5m2.25-3.75a2.25 2.25 0 1 1-4.5 0a2.25 2.25 0 0 1 4.5 0' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M6.209 15a.75.75 0 0 1 1.5 0v7a.75.75 0 0 1-1.5 0zm10.75 7.75a.75.75 0 0 1-.75-.75v-2a.75.75 0 0 1 1.5 0v2a.75.75 0 0 1-.75.75M6.209 2a.75.75 0 0 1 1.5 0v2a.75.75 0 0 1-1.5 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:tuning-square-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath d='M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z'/%3E%3Ccircle cx='8' cy='10' r='2'/%3E%3Ccircle cx='2' cy='2' r='2' transform='matrix(1 0 0 -1 14 16)'/%3E%3Cpath stroke-linecap='round' d='M8 14v5m8-9V5M8 5v1m8 13v-1'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:undo-left-bold-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M7.53 3.47a.75.75 0 0 1 0 1.06L5.06 7l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='m5.06 7l.75-.75h9.226c.904 0 1.633 0 2.222.053c.606.055 1.136.172 1.617.45a3.75 3.75 0 0 1 1.372 1.372c.278.481.395 1.011.45 1.617c.053.589.053 1.318.053 2.222v.072c0 .904 0 1.633-.053 2.222c-.055.606-.172 1.136-.45 1.617a3.75 3.75 0 0 1-1.372 1.373c-.481.277-1.011.394-1.617.449c-.589.053-1.318.053-2.222.053H8a.75.75 0 0 1 0-1.5h7c.948 0 1.61 0 2.122-.047c.502-.046.788-.13 1.003-.254a2.25 2.25 0 0 0 .823-.824c.125-.215.21-.5.255-1.003c.046-.512.047-1.174.047-2.122s0-1.61-.047-2.122c-.046-.503-.13-.788-.255-1.003a2.25 2.25 0 0 0-.823-.824c-.215-.124-.5-.208-1.003-.254c-.512-.046-1.174-.047-2.122-.047H5.81z' opacity='.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:upload-minimalistic-bold,[i-solar\:upload-minimalistic-bold=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12.554 2.494a.75.75 0 0 0-1.107 0l-4 4.375A.75.75 0 0 0 8.553 7.88l2.696-2.95V16a.75.75 0 0 0 1.5 0V4.932l2.697 2.95a.75.75 0 1 0 1.107-1.013z'/%3E%3Cpath fill='currentColor' d='M3.75 15a.75.75 0 0 0-1.5 0v.055c0 1.367 0 2.47.117 3.337c.12.9.38 1.658.981 2.26c.602.602 1.36.86 2.26.982c.867.116 1.97.116 3.337.116h6.11c1.367 0 2.47 0 3.337-.116c.9-.122 1.658-.38 2.26-.982s.86-1.36.982-2.26c.116-.867.116-1.97.116-3.337V15a.75.75 0 0 0-1.5 0c0 1.435-.002 2.436-.103 3.192c-.099.734-.28 1.122-.556 1.399c-.277.277-.665.457-1.4.556c-.755.101-1.756.103-3.191.103H9c-1.435 0-2.437-.002-3.192-.103c-.734-.099-1.122-.28-1.399-.556c-.277-.277-.457-.665-.556-1.4c-.101-.755-.103-1.756-.103-3.191'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:upload-square-line-duotone,[i-solar\:upload-square-line-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 17v-7m0 0l3 3m-3-3l-3 3'/%3E%3Cpath stroke-linecap='round' d='M16 7H8'/%3E%3Cpath d='M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:user-rounded-linear{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Ccircle cx='12' cy='6' r='4'/%3E%3Cellipse cx='12' cy='17' rx='7' ry='4'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-solar\:user-speak-rounded-bold-duotone,[i-solar\:user-speak-rounded-bold-duotone=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='10' cy='6.75' r='4' fill='currentColor'/%3E%3Cellipse cx='10' cy='17.75' fill='currentColor' opacity='.5' rx='7' ry='4'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M18.357 2.364a.75.75 0 0 1 1.029-.257L19 2.75l.386-.643h.001l.002.002l.004.002l.01.006l.113.076c.07.049.166.12.277.212c.222.185.512.462.802.838c.582.758 1.155 1.914 1.155 3.507s-.573 2.75-1.155 3.507c-.29.376-.58.653-.802.838a4 4 0 0 1-.363.27l-.028.018l-.01.006l-.003.002l-.002.001s-.001.001-.387-.642l.386.643a.75.75 0 0 1-.776-1.283l.005-.004l.041-.027q.06-.042.177-.136c.152-.128.362-.326.573-.6c.417-.542.844-1.386.844-2.593s-.427-2.05-.844-2.593a3.8 3.8 0 0 0-.573-.6a3 3 0 0 0-.218-.163l-.005-.003a.75.75 0 0 1-.253-1.027' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M16.33 4.415a.75.75 0 0 1 1.006-.336L17 4.75l.336-.67h.001l.002.001l.004.002l.008.004l.022.012a2 2 0 0 1 .233.153c.136.102.31.254.48.467c.349.436.664 1.099.664 2.031s-.316 1.595-.664 2.031a2.7 2.7 0 0 1-.654.586l-.06.034l-.02.012l-.01.004l-.003.002l-.002.001l-.33-.657l.329.658a.75.75 0 0 1-.685-1.335l.003-.001l.052-.036c.052-.04.13-.106.209-.205c.15-.189.335-.526.335-1.094s-.184-.905-.335-1.094a1.2 1.2 0 0 0-.261-.24l-.003-.002a.75.75 0 0 1-.322-1' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-svg-spinners\:3-dots-fade{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='4' cy='12' r='3' fill='currentColor'%3E%3Canimate id='SVG7x14Dcom' fill='freeze' attributeName='opacity' begin='0;SVGqSjG0dUp.end-0.25s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='3' fill='currentColor' opacity='.4'%3E%3Canimate fill='freeze' attributeName='opacity' begin='SVG7x14Dcom.begin+0.15s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3Ccircle cx='20' cy='12' r='3' fill='currentColor' opacity='.3'%3E%3Canimate id='SVGqSjG0dUp' fill='freeze' attributeName='opacity' begin='SVG7x14Dcom.begin+0.3s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-svg-spinners\:ring-resize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg stroke='currentColor'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-linecap='round' stroke-width='3'%3E%3Canimate attributeName='stroke-dasharray' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0 150;42 150;42 150;42 150'/%3E%3Canimate attributeName='stroke-dashoffset' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0;-16;-59;-59'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='2s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1.2em;height:1.2em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-vscode-icons\:file-type-minecraft{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%2352a535' d='M30 2H2v28h28z'/%3E%3Cpath fill='%2386d562' d='M24.4 13.2h-5.6v.47h5.6zm-5.6 8.4h-5.6v.47h5.6zm2.8 2.8h-2.8v.47h2.8zm-8.4 0h-2.8v.47h2.8zm0-11.2H7.6v.47h5.6z'/%3E%3Cpath d='M24.4 13.2V7.6h-5.6v5.6h-5.6V16h-2.8v8.4h2.8v-2.8h5.6v2.8h2.8V16h-2.8v-2.8zM13.2 7.6H7.6v5.6h5.6z'/%3E%3Cpath fill='%232a641c' d='M24.4 7.6h-5.6v.47h5.6zm-5.6 5.6h-5.6v.47h5.6zm-5.6-5.6H7.6v.47h5.6zm0 8.4h-2.8v.47h2.8zm8.4 0h-2.8v.47h2.8z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;width:1.2em;height:1.2em}.prose{color:var(--un-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-bullets);font-weight:400}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--un-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--un-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){content:open-quote;content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-kbd);box-shadow:0 0 0 1px rgb(var(--un-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--un-prose-kbd-shadows)/10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-code);font-size:.875em;font-weight:600}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){content:"`";content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-pre-code);background-color:var(--un-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){content:none;content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--un-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose{--un-prose-body:#374151;--un-prose-invert-body:#d1d5db;--un-prose-headings:#111827;--un-prose-invert-headings:white;--un-prose-lead:#4b5563;--un-prose-invert-lead:#9ca3af;--un-prose-links:#111827;--un-prose-invert-links:white;--un-prose-bold:#111827;--un-prose-invert-bold:white;--un-prose-counters:#6b7280;--un-prose-invert-counters:#9ca3af;--un-prose-bullets:#d1d5db;--un-prose-invert-bullets:#4b5563;--un-prose-hr:#e5e7eb;--un-prose-invert-hr:#374151;--un-prose-quotes:#111827;--un-prose-invert-quotes:#f3f4f6;--un-prose-quote-borders:#e5e7eb;--un-prose-invert-quote-borders:#374151;--un-prose-captions:#6b7280;--un-prose-invert-captions:#9ca3af;--un-prose-kbd:#111827;--un-prose-invert-kbd:white;--un-prose-kbd-shadows:#111827;--un-prose-invert-kbd-shadows:white;--un-prose-code:#111827;--un-prose-invert-code:white;--un-prose-pre-code:#e5e7eb;--un-prose-invert-pre-code:#d1d5db;--un-prose-pre-bg:#1f2937;--un-prose-invert-pre-bg:#00000080;--un-prose-th-borders:#d1d5db;--un-prose-invert-th-borders:#4b5563;--un-prose-td-borders:#e5e7eb;--un-prose-invert-td-borders:#374151}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.container,[container=""]{width:100%}.scrollbar-none,[scrollbar-none=""]{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}[scrollbar-none=""]::-webkit-scrollbar{display:none}@media (min-width:640px){.container,[container=""]{max-width:640px}}@media (min-width:768px){.container,[container=""]{max-width:768px}}@media (min-width:1024px){.container,[container=""]{max-width:1024px}}@media (min-width:1280px){.container,[container=""]{max-width:1280px}}@media (min-width:1536px){.container,[container=""]{max-width:1536px}}.\[input\:checked\~\&\]{input:checked~&}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.data-\[disabled\]\:pointer-events-none[data-disabled],.pointer-events-none,[pointer-events-none=""]{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.sticky,[sticky=""]{position:sticky}.before-position-absolute:before,[before~=absolute]:before,.after\:absolute:after,[after~=absolute]:after{position:absolute}.inset-0,[inset-0=""],[before~=inset-0]:before,[after~=inset-0]:after{inset:0}.inset-x-0,[inset-x-0=""]{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom--8,[bottom--8=""]{bottom:-2rem}.bottom-0,[bottom-0=""]{bottom:0}.bottom-2{bottom:.5rem}.left-0,[left-0=""]{left:0}.left-1\/2{left:50%}.left-10,[left-10=""]{left:2.5rem}.left-2{left:.5rem}.left-3,[left-3=""]{left:.75rem}.right--10,[right--10=""]{right:-2.5rem}.right--15,[right--15=""]{right:-3.75rem}.right--5,[right--5=""]{right:-1.25rem}.right-0,[right-0=""]{right:0}.right-2,[right-2=""]{right:.5rem}.right-4,[right-4=""]{right:1rem}.top--20,[top--20=""]{top:-5rem}.top-\[-32px\]{top:-32px}.top-0,[top-0=""],[top~="0"]{top:0}.top-1\/2,[top~="50%"]{top:50%}.top-2,[top-2=""]{top:.5rem}.top-4,[top-4=""]{top:1rem}[top~="[65dvh]"]{top:65dvh}[top~="[calc(100dvh-12rem)]"]{top:calc(100dvh - 12rem)}[top~="[calc(100dvh-15rem)]"]{top:calc(100dvh - 15rem)}.before\:left-2:before{left:.5rem}.before\:right-0:before{right:0}.before\:top-50\%:before{top:50%}.after\:left-\[2px\]:after{left:2px}.after\:top-\[2px\]:after{top:2px}.line-clamp-1,[line-clamp-1=""]{-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3,[line-clamp-3=""]{-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.z--1,[z--1=""]{z-index:-1}.z--2{z-index:-2}.z-\[9999\]{z-index:9999}.z-0{z-index:0}.z-1,[z-1=""]{z-index:1}.z-10,[z-10=""]{z-index:10}.z-100,[z-100=""]{z-index:100}.z-1000{z-index:1000}.z-10000{z-index:10000}.z-15,[z-15=""]{z-index:15}.z-2,[z-2=""]{z-index:2}.z-20{z-index:20}.z-3,[z-3=""]{z-index:3}.z-4,[z-4=""]{z-index:4}.z-5,[z-5=""]{z-index:5}.z-99,[z-99=""]{z-index:99}[before~=z-0]:before{z-index:0}[after~=z--2]:after{z-index:-2}.\[\&\>div\]\:grid>div,.grid,[grid=""],[grid~=\~]{display:grid}.col-span-1,.grid-col-span-1,[grid-col-span-1=""]{grid-column:span 1/span 1}.col-span-2,.grid-col-span-2,[grid-col-span-2=""]{grid-column:span 2/span 2}.col-span-full{grid-column:1/-1}.grid-col-span-3{grid-column:span 3/span 3}.row-span-1{grid-row:span 1/span 1}.row-span-2{grid-row:span 2/span 2}.col-start-3{grid-column-start:3}.col-start-4{grid-column-start:4}.col-start-5{grid-column-start:5}.auto-cols-\[350px\]{grid-auto-columns:350px}.auto-cols-auto{grid-auto-columns:auto}.grid-auto-rows-\[minmax\(min-content\,max-content\)\]{grid-auto-rows:minmax(min-content,max-content)}.grid-auto-flow-dense{grid-auto-flow:dense}.grid-flow-col{grid-auto-flow:column}.grid-flow-row{grid-auto-flow:row}.\[\&\>div\]\:grid-cols-\[4fr_2fr\]>div{grid-template-columns:4fr 2fr}.cols-\[150px_1fr\],[grid~="cols-[150px_1fr]"]{grid-template-columns:150px 1fr}.cols-\[70px_1fr\],[grid~="cols-[70px_1fr]"]{grid-template-columns:70px 1fr}.grid-cols-\[repeat\(auto-fill\,minmax\(280px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.cols-1,.grid-cols-1,[grid~=cols-1]{grid-template-columns:repeat(1,minmax(0,1fr))}.cols-5,[grid~=cols-5]{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-2,[grid-cols-2=""]{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}[grid-cols-3~=placeholder\:]::placeholder{grid-template-columns:repeat(3,minmax(0,1fr))}.m-0,[m0=""]{margin:0}.\[\&\:\:-webkit-inner-spin-button\]\:m-0::-webkit-inner-spin-button{margin:0}.m-\[5px\]{margin:5px}.m-1{margin:.25rem}.m-auto{margin:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-5,[mx-5=""]{margin-left:1.25rem;margin-right:1.25rem}.mx-auto,[mx-auto=""]{margin-left:auto;margin-right:auto}.my,.my-4{margin-top:1rem;margin-bottom:1rem}.my-0,[my-0=""]{margin-top:0;margin-bottom:0}.my-10,[my-10=""]{margin-top:2.5rem;margin-bottom:2.5rem}.my-5,[my-5=""]{margin-top:1.25rem;margin-bottom:1.25rem}.my-auto,[my-auto=""]{margin-top:auto;margin-bottom:auto}[m~=y-1]{margin-top:.25rem;margin-bottom:.25rem}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1,[mb-1=""]{margin-bottom:.25rem}.mb-14,[mb-14=""]{margin-bottom:3.5rem}.mb-2,[mb-2=""]{margin-bottom:.5rem}.mb-3,[mb-3=""]{margin-bottom:.75rem}.mb-4,[mb-4=""]{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml{margin-left:1rem}.ml-0\.5,[ml-0\.5=""]{margin-left:.125rem}.ml-1,[ml-1=""]{margin-left:.25rem}.ml-auto{margin-left:auto}.mr{margin-right:1rem}.mr-0\!{margin-right:0!important}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-auto{margin-right:auto}.ms{margin-inline-start:1rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1,[mt-1=""]{margin-top:.25rem}.mt-2,[mt-2=""]{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4,[mt-4=""]{margin-top:1rem}.mt-auto{margin-top:auto}[ml~="12"]{margin-left:3rem}[mr~="12"]{margin-right:3rem}[box~=border]{box-sizing:border-box}.inline,[inline=""]{display:inline}.block,[block=""]{display:block}.inline-block,[inline-block=""]{display:inline-block}.contents{display:contents}.aspect-square,[aspect-square=""]{aspect-ratio:1}[aspect~="12/16"]{aspect-ratio:12/16}.size-16,[size-16=""]{width:4rem;height:4rem}.size-2{width:.5rem;height:.5rem}.size-20,[size-20=""]{width:5rem;height:5rem}.size-24,[size-24=""],[size~="24"]{width:6rem;height:6rem}.size-3{width:.75rem;height:.75rem}.size-4,[size-4=""]{width:1rem;height:1rem}.size-5,[size-5=""]{width:1.25rem;height:1.25rem}.size-6,[size-6=""],[size~="6"]{width:1.5rem;height:1.5rem}.size-60,[size-60=""]{width:15rem;height:15rem}.size-8,[size-8=""]{width:2rem;height:2rem}[size~="1"]{width:.25rem;height:.25rem}[size~=sm]{width:24rem;height:24rem}.h-\[1px\]{height:1px}.h-\[calc\(\(1lh\+1rem\+1rem\)\*2\)\]{height:calc(2lh + 4rem)}.h-\[calc\(100\%-40px\)\]{height:calc(100% - 40px)}.h-0,[h~="0"]{height:0}.h-0\.5,[h-0\.5=""]{height:.125rem}.h-0\.5lh{height:.5lh}.h-1\.5,[h-1\.5=""]{height:.375rem}.h-10{height:2.5rem}.h-100dvh,[h-100dvh=""],[h~="100dvh"]{height:100dvh}.h-12{height:3rem}.h-14,[h-14=""]{height:3.5rem}.h-15{height:3.75rem}.h-16{height:4rem}.h-1lh{height:1lh}.h-2,.h2,[h-2=""]{height:.5rem}.h-24,[h-24=""]{height:6rem}.h-30,[h-30=""]{height:7.5rem}.h-38{height:9.5rem}.h-4,[h-4=""]{height:1rem}.h-48,[h-48=""]{height:12rem}.h-5,[h-5=""],[h~="5"]{height:1.25rem}.h-6{height:1.5rem}.h-60,[h-60=""]{height:15rem}.h-7,[h-7=""]{height:1.75rem}.h-8,[h-8=""]{height:2rem}.h-auto,[h-auto=""],[h~=auto]{height:auto}.h-fit,[h-fit=""]{height:fit-content}.h-full,[h-full=""],[h~="100%"]{height:100%}.h1{height:.25rem}.h3{height:.75rem}.max-h-\[10lh\],[max-h~="[10lh]"]{max-height:10lh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[96\%\]{max-height:96%}.max-h-\[calc\(100dvh-100px-56px\)\]{max-height:calc(100dvh - 156px)}.max-h-\[calc\(100dvh-17rem\)\]{max-height:calc(100dvh - 17rem)}.max-h-\[calc\(100dvh-28rem\)\]{max-height:calc(100dvh - 28rem)}.max-h-\[calc\(100dvh-7lh\)\]{max-height:calc(100dvh - 7lh)}.max-h-100dvh,[max-h-100dvh=""],[max-h~="100dvh"]{max-height:100dvh}.max-h-50dvh{max-height:50dvh}.max-h-60,[max-h-60=""]{max-height:15rem}.max-h-full{max-height:100%}.max-h-none,[max-h-none=""]{max-height:none}.max-w-100dvw,[max-w-100dvw=""]{max-width:100dvw}.max-w-2xl{max-width:42rem}.max-w-45{max-width:11.25rem}.max-w-4lh,[max-w-4lh=""]{max-width:4lh}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-full,[max-w-full=""]{max-width:100%}.max-w-md{max-width:28rem}.min-h-\[120px\],.min-h-120px,[min-h-120px=""]{min-height:120px}.min-h-\[1lh\]{min-height:1lh}.min-h-1\.5em{min-height:1.5em}.min-h-16,[min-h-16=""]{min-height:4rem}.min-h-40px,[min-h-40px=""]{min-height:40px}.min-h-5,[min-h-5=""]{min-height:1.25rem}.min-h-70dvh,[min-h-70dvh=""]{min-height:70dvh}.min-w-\[150px\]{min-width:150px}.min-w-\[160px\]{min-width:160px}.min-w-\[200px\]{min-width:200px}.min-w-0,[min-w-0=""]{min-width:0}.min-w-12,[min-w-12=""]{min-width:3rem}.min-w-2,[min-w-2=""]{min-width:.5rem}.min-w-20,[min-w-20=""]{min-width:5rem}.min-w-20px{min-width:20px}.min-w-50,[min-w-50=""]{min-width:12.5rem}.min-w-60{min-width:15rem}.w-\[25px\]{width:25px}.w-\[92dvw\]{width:92dvw}.w-\[92vw\]{width:92vw}.w-\[calc\(100\%-8px-1rem\)\]{width:calc(100% - 8px - 1rem)}.w-\[calc\(100\%-8px\)\]{width:calc(100% - 8px)}.w-\[calc\(100\%-8px\)\]\!{width:calc(100% - 8px)!important}.w-0{width:0}.w-0\!{width:0!important}.w-1,[w-1=""]{width:.25rem}.w-1\.5,[w-1\.5=""]{width:.375rem}.w-1\/2,[w~="[50%]"]{width:50%}.w-10\%{width:10%}.w-100,[w-100=""]{width:25rem}.w-100\%,.w-full,[w-full=""],[w~="100%"],[w~=full]{width:100%}.w-100vw,[w-100vw=""]{width:100vw}.w-11{width:2.75rem}.w-12{width:3rem}.w-15{width:3.75rem}.w-16{width:4rem}.w-1lh{width:1lh}.w-2,[w-2=""]{width:.5rem}.w-25\%{width:25%}.w-30,[w-30=""]{width:7.5rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-5,[w-5=""]{width:1.25rem}.w-7,[w-7=""]{width:1.75rem}.w-8,[w-8=""]{width:2rem}.w-90\%{width:90%}.w-95\%{width:95%}.w-auto,[w-auto=""]{width:auto}.w-fit,[w-fit=""]{width:fit-content}[h~="[calc(100%-56px)]"]{height:calc(100% - 56px)}[h~="[calc(100dvh-40px)]"]{height:calc(100dvh - 40px)}[h~="[calc(1lh+4px+4px)]"]{height:calc(1lh + 8px)}[h~="100"]{height:25rem}[h~="300"]{height:75rem}[h~="50%"]{height:50%}[h~="85dvh"]{height:85dvh}[h~=unset]{height:unset}[max-h~="[300px]"]{max-height:300px}[max-h~="[4.5rem]"]{max-height:4.5rem}[max-h~="[85vh]"]{max-height:85vh}[max-h~="100"]{max-height:25rem}[max-h~="35dvh"]{max-height:35dvh}[max-h~="50"]{max-height:12.5rem}[max-w~="[calc(100%-3.5rem)]"]{max-width:calc(100% - 3.5rem)}[max-w~="500px"]{max-width:500px}[min-h~="[100px]"]{min-height:100px}[min-h~="[calc(1lh+4px+4px)]"]{min-height:calc(1lh + 8px)}[min-h~="100"]{min-height:25rem}[min-h~="120"]{min-height:30rem}[min-w~="1/2"],[min-w~="50%"]{min-width:50%}[min-w~="30%"]{min-width:30%}[w~="[calc(1lh+4px+4px)]"]{width:calc(1lh + 8px)}[w~="100dvw"]{width:100dvw}[w~="12.5"]{width:3.125rem}[w~="70%"]{width:70%}.hover\:h-13:hover{height:3.25rem}.hover\:w-2:hover{width:.5rem}[hover\:h-13=""]:hover{height:3.25rem}[hover\:w-2=""]:hover{width:.5rem}.before\:h-\[calc\(100\%-1rem\)\]:before{height:calc(100% - 1rem)}.before\:w-1:before{width:.25rem}[before~=h-full]:before{height:100%}[before~=w-25\%]:before{width:25%}.after\:h-5:after{height:1.25rem}.after\:w-5:after{width:1.25rem}[after~=h-full]:after{height:100%}[after~=w-full]:after{width:100%}.flex,[flex=""],[flex~=\~]{display:flex}.inline-flex,[inline-flex=""],[inline-flex~=\~]{display:inline-flex}.flex-1,[flex-1=""],[flex~="1"]{flex:1}.flex-shrink-0,.shrink-0,[flex-shrink-0=""],[shrink-0=""]{flex-shrink:0}.flex-row,[flex-row=""],[flex~=row]{flex-direction:row}[flex~=row-reverse]{flex-direction:row-reverse}.flex-col,[flex-col=""],[flex~=col]{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap,[flex-wrap=""]{flex-wrap:wrap}.origin-left,[origin-left=""]{transform-origin:0}[perspective~="800"]{perspective:800px}.-translate-x-1\/2,.translate-x-\[-50\%\]{--un-translate-x:-50%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.-translate-y-1\/2,[translate-y~="[-50%]"]{--un-translate-y:-50%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-x--7,[translate-x--7=""]{--un-translate-x:-1.75rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-x-0,[translate-x-0=""]{--un-translate-x:0;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-x-7,[translate-x-7=""]{--un-translate-x:1.75rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y--0,[translate-y--0=""]{--un-translate-y:0;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y--2,[translate-y--2=""]{--un-translate-y:-.5rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-\[0\.25lh\]{--un-translate-y:.25lh;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-\[50\%\]{--un-translate-y:50%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-1,[translate-y-1=""]{--un-translate-y:.25rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-2,[translate-y-2=""]{--un-translate-y:.5rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.translate-y-4,[translate-y-4=""]{--un-translate-y:1rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-x~="0.5"]{--un-translate-x:.125rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-x~="data-[state=checked]:full"][data-state=checked]{--un-translate-x:100%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-y~="[-100%]"]{--un-translate-y:-100%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-y~="[-80%]"]{--un-translate-y:-80%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-y~="[2px]"]{--un-translate-y:2px;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[translate-y~="100%"]{--un-translate-y:100%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.peer:checked~.peer-checked\:after\:translate-x-full:after{--un-translate-x:100%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.\[\&_\.card-cover_img\]\:hover\:translate-y-2:hover .card-cover img,[hover\:translate-y-2=""]:hover{--un-translate-y:.5rem;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.before\:translate-y--50\%:before{--un-translate-y:-50%;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.rotate-180{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:180deg;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.rotate-45,[rotate-45=""]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:45deg;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.scale-100{--un-scale-x:1;--un-scale-y:1;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.scale-120{--un-scale-x:1.2;--un-scale-y:1.2;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.scale-125{--un-scale-x:1.25;--un-scale-y:1.25;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.scale-250,[scale-250=""]{--un-scale-x:2.5;--un-scale-y:2.5;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.\[\&_\.card-cover_img\]\:hover\:scale-102:hover .card-cover img{--un-scale-x:1.02;--un-scale-y:1.02;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.hover\:scale-110:hover{--un-scale-x:1.1;--un-scale-y:1.1;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}[hover~=scale-100]:hover{--un-scale-x:1;--un-scale-y:1;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.active\:scale-95:active,[active\:scale-95=""]:active{--un-scale-x:.95;--un-scale-y:.95;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.transform-scale-x--100,[transform-scale-x--100=""]{--un-scale-x:-1;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.preserve-3d{transform-style:preserve-3d}.transform,[transform=""]{transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}@keyframes contentHide{}@keyframes contentShow{}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes slideDownAndFade{0%{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}@keyframes slideLeftAndFade{0%{opacity:0;transform:translate(2px)}to{opacity:1;transform:translate(0)}}@keyframes slideRightAndFade{0%{opacity:0;transform:translate(-2px)}to{opacity:1;transform:translate(0)}}@keyframes slideUpAndFade{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-pulse,[animate-pulse=""]{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-spin{animation:1s linear infinite spin}.data-\[side\=bottom\]\:animate-slideUpAndFade[data-side=bottom]{animation:.4s cubic-bezier(.16,1,.3,1) slideUpAndFade}.data-\[side\=left\]\:animate-slideRightAndFade[data-side=left]{animation:.4s cubic-bezier(.16,1,.3,1) slideRightAndFade}.data-\[side\=right\]\:animate-slideLeftAndFade[data-side=right]{animation:.4s cubic-bezier(.16,1,.3,1) slideLeftAndFade}.data-\[side\=top\]\:animate-slideDownAndFade[data-side=top]{animation:.4s cubic-bezier(.16,1,.3,1) slideDownAndFade}.data-\[state\=closed\]\:animate-contentHide[data-state=closed]{animation:.15s cubic-bezier(.16,1,.3,1) contentHide}.data-\[state\=closed\]\:animate-fadeOut[data-state=closed]{animation:.2s ease-in-out fadeOut}.data-\[state\=open\]\:animate-contentShow[data-state=open]{animation:.15s cubic-bezier(.16,1,.3,1) contentShow}.data-\[state\=open\]\:animate-fadeIn[data-state=open]{animation:.2s ease-in-out fadeIn}.cursor-pointer,[cursor-pointer=""],[cursor~=pointer]{cursor:pointer}.cursor-crosshair{cursor:crosshair}.cursor-not-allowed,.disabled\:cursor-not-allowed:disabled,[cursor~=disabled\:not-allowed]:disabled,[disabled\:cursor-not-allowed=""]:disabled{cursor:not-allowed}.cursor-col-resize,[cursor-col-resize=""]{cursor:col-resize}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize-none,[resize-none=""]{resize:none}.appearance-none,[appearance-none=""]{appearance:none}.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button{appearance:none}.items-start,[flex~=items-start],[items-start=""]{align-items:flex-start}.items-end,[items-end=""]{align-items:flex-end}.items-center,[flex~=items-center],[items-center=""]{align-items:center}.self-start,[self-start=""]{align-self:flex-start}.self-end,[self-end=""]{align-self:flex-end}.justify-start{justify-content:flex-start}.justify-end,[justify-end=""]{justify-content:flex-end}.justify-center,[flex~=justify-center],[justify-center=""]{justify-content:center}.justify-between,[justify-between=""]{justify-content:space-between}.justify-self-end,[justify-self-end=""]{justify-self:end}.gap-\[5px\]{gap:5px}.gap-0,[gap-0=""]{gap:0}.gap-0\.5,[gap-0\.5=""]{gap:.125rem}.gap-1,[flex~=gap-1],[gap-1=""],[gap~="1"],[grid~=gap-1]{gap:.25rem}.gap-1\.5,[gap-1\.5=""]{gap:.375rem}.gap-2,[flex~=gap-2],[gap-2=""]{gap:.5rem}.gap-3,[flex~=gap-3],[gap-3=""]{gap:.75rem}.gap-4,[flex~=gap-4],[gap-4=""],[gap~="4"],[grid~=gap-4]{gap:1rem}.gap-5,[gap-5=""]{gap:1.25rem}.gap-6,[flex~=gap-6]{gap:1.5rem}.gap-8{gap:2rem}.gap-x-2,[flex~=gap-x-2]{column-gap:.5rem}.gap-y-0,[flex~=gap-y-0]{row-gap:0}.space-x-1>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(.25rem*calc(1 - var(--un-space-x-reverse)));margin-right:calc(.25rem*var(--un-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]),[space-x-2=""]>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(.5rem*calc(1 - var(--un-space-x-reverse)));margin-right:calc(.5rem*var(--un-space-x-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(.25rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(.25rem*var(--un-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(.5rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(.5rem*var(--un-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(.75rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(.75rem*var(--un-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]),[space-y-4=""]>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(1rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(1rem*var(--un-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(1.5rem*calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(1.5rem*var(--un-space-y-reverse))}.of-hidden,.overflow-hidden,[of-hidden=""],[overflow-hidden=""],[overflow~=hidden]{overflow:hidden}.overflow-auto,[overflow-auto=""]{overflow:auto}.overflow-scroll,[overflow-scroll=""]{overflow:scroll}.of-x-scroll,[of-x-scroll=""]{overflow-x:scroll}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden,[overflow-x-hidden=""]{overflow-x:hidden}.overflow-y-auto,[overflow-y-auto=""]{overflow-y:auto}.overflow-y-scroll,[overflow-y-scroll=""]{overflow-y:scroll}.scroll-smooth,[scroll-smooth=""]{scroll-behavior:smooth}.truncate,[truncate=""]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.text-ellipsis,[text-ellipsis=""]{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line,[whitespace-pre-line=""]{white-space:pre-line}.whitespace-pre-wrap,[whitespace-pre-wrap=""]{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.b,.border,[b=""],[b~=\~],[border=""],[border~=\~],[border~="1"]{border-width:1px}.border-2,[border-2=""],[border~="2"],[border~="2px"]{border-width:2px}[b~="0"]{border-width:0}[b~="100"]{border-width:100px}[border~="4"]{border-width:4px}[b~=placeholder\:]::placeholder{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.\[\&\:checked\+div\]\:border-primary-500:checked+div,.border-primary-500{--un-border-opacity:1;border-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.b-green{--un-border-opacity:1;border-color:rgb(74 222 128/var(--un-border-opacity))}.b-orange{--un-border-opacity:1;border-color:rgb(251 146 60/var(--un-border-opacity))}.b-purple{--un-border-opacity:1;border-color:rgb(192 132 252/var(--un-border-opacity))}.b-red{--un-border-opacity:1;border-color:rgb(248 113 113/var(--un-border-opacity))}.border-amber-200{--un-border-opacity:1;border-color:rgb(253 230 138/var(--un-border-opacity))}.border-blue-200{--un-border-opacity:1;border-color:rgb(191 219 254/var(--un-border-opacity))}.border-gray-300{--un-border-opacity:1;border-color:rgb(209 213 219/var(--un-border-opacity))}.border-green-200{--un-border-opacity:1;border-color:rgb(187 247 208/var(--un-border-opacity))}.border-neutral-100,[border~=neutral-100]{--un-border-opacity:1;border-color:rgb(245 245 245/var(--un-border-opacity))}.border-neutral-100\/60,[border~=neutral-100\/60]{border-color:#f5f5f599}.border-neutral-200,.dark [border~=dark\:neutral-200],[border-neutral-200=""],[border~=neutral-200]{--un-border-opacity:1;border-color:rgb(229 229 229/var(--un-border-opacity))}.border-neutral-300,[border-neutral-300=""],[border~="data-[state=unchecked]:neutral-300"][data-state=unchecked],[border~=neutral-300]{--un-border-opacity:1;border-color:rgb(212 212 212/var(--un-border-opacity))}.border-neutral-300\/30{border-color:#d4d4d44d}.border-neutral-400{--un-border-opacity:1;border-color:rgb(163 163 163/var(--un-border-opacity))}.border-neutral-500{--un-border-opacity:1;border-color:rgb(115 115 115/var(--un-border-opacity))}.border-primary-100{--un-border-opacity:1;border-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))80%,oklch(100% 0 360/var(--un-border-opacity)))}.border-primary-200,[border~="data-[state=checked]:primary-200"][data-state=checked],[border~=primary-200]{--un-border-opacity:1;border-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.border-primary-400,.dark .dark\:\[\&\:checked\+div\]\:border-primary-400:checked+div,.dark .dark\:border-primary-400{--un-border-opacity:1;border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.border-primary-500\/5{border-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.05)}.border-red-200{--un-border-opacity:1;border-color:rgb(254 202 202/var(--un-border-opacity))}.border-red-200\/30{border-color:#fecaca4d}.border-white,.dark [border~=dark\:white]{--un-border-opacity:1;border-color:rgb(255 255 255/var(--un-border-opacity))}.dark .dark\:border-amber-800{--un-border-opacity:1;border-color:rgb(146 64 14/var(--un-border-opacity))}.dark .dark\:border-amber-800\/30{border-color:#92400e4d}.dark .dark\:border-blue-800\/30{border-color:#1e40af4d}.dark .dark\:border-gray-900{--un-border-opacity:1;border-color:rgb(17 24 39/var(--un-border-opacity))}.dark .dark\:border-green-800\/30{border-color:#1665344d}.dark .dark\:border-neutral-600,.dark [border~=dark\:neutral-600]{--un-border-opacity:1;border-color:rgb(82 82 82/var(--un-border-opacity))}.dark .dark\:border-neutral-700,.dark [border~=dark\:neutral-700],.dark [dark\:border-neutral-700=""]{--un-border-opacity:1;border-color:rgb(64 64 64/var(--un-border-opacity))}.dark .dark\:border-neutral-700\/30,.dark [border~="dark:neutral-700/30"]{border-color:#4040404d}.dark .dark\:border-neutral-800,.dark [border~=dark\:neutral-800],.dark [dark\:border-neutral-800=""],[border~=neutral-800]{--un-border-opacity:1;border-color:rgb(38 38 38/var(--un-border-opacity))}.dark .dark\:border-neutral-800\/25,.dark [border~="dark:neutral-800/25"]{border-color:#26262640}.dark .dark\:border-neutral-800\/30,.dark [border~="dark:neutral-800/30"]{border-color:#2626264d}.dark .dark\:border-neutral-900,.dark [border~=dark\:neutral-900]{--un-border-opacity:1;border-color:rgb(23 23 23/var(--un-border-opacity))}.dark .dark\:border-primary-600{--un-border-opacity:1;border-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark .dark\:border-primary-800,.dark [border~=dark\:primary-800]{--un-border-opacity:1;border-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark .dark\:border-primary-900{--un-border-opacity:1;border-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark .dark\:border-primary-900\/40{border-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.4)}.dark .dark\:border-red-800\/30{border-color:#991b1b4d}.dark .dark\:border-red-900\/30{border-color:#7f1d1d4d}.dark [border~="dark:cyan-500/50"]{border-color:#06b6d480}.dark [border~="dark:neutral-700/60"]{border-color:#40404099}.dark [border~="dark:primary-400/20"]{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)}.dark [border~="dark:primary-500/50"]{border-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.5)}.dark [border~="dark:violet-500/50"]{border-color:#8b5cf680}[border~=black]{--un-border-opacity:1;border-color:rgb(0 0 0/var(--un-border-opacity))}[border~=cyan-200\/50]{border-color:#a5f3fc80}[border~=neutral-200\/50]{border-color:#e5e5e580}[border~=neutral-200\/60]{border-color:#e5e5e599}[border~=primary-200\/20]{border-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.2)}[border~=primary-200\/50]{border-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.5)}[border~=primary-300]{--un-border-opacity:1;border-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}[border~=violet-200\/50]{border-color:#ddd6fe80}.peer:checked~.peer-checked\:after\:border-white:after{--un-border-opacity:1;border-color:rgb(255 255 255/var(--un-border-opacity))}[border~=focus-within\:neutral-800]:focus-within{--un-border-opacity:1;border-color:rgb(38 38 38/var(--un-border-opacity))}.dark .dark\:hover\:border-primary-400\/30:hover{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.3)}.dark .dark\:hover\:border-primary-700:hover{--un-border-opacity:1;border-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark [border~="dark:hover:primary-400/30"]:hover{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.3)}.hover\:border-primary-300:hover{--un-border-opacity:1;border-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.hover\:border-primary-500\/30:hover,[border~="hover:primary-500/30"]:hover{border-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.3)}.dark .dark\:focus\:border-neutral-600:focus{--un-border-opacity:1;border-color:rgb(82 82 82/var(--un-border-opacity))}.dark .dark\:focus\:border-primary-400\/50:focus{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.5)}.dark [border~="dark:focus:neutral-700"]:focus{--un-border-opacity:1;border-color:rgb(64 64 64/var(--un-border-opacity))}.dark [border~="dark:focus:primary-400/50"]:focus{border-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.5)}.focus\:border-neutral-300:focus{--un-border-opacity:1;border-color:rgb(212 212 212/var(--un-border-opacity))}.focus\:border-primary-300:focus{--un-border-opacity:1;border-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}[border~=focus\:neutral-200]:focus{--un-border-opacity:1;border-color:rgb(229 229 229/var(--un-border-opacity))}[border~=focus\:primary-100]:focus{--un-border-opacity:1;border-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))80%,oklch(100% 0 360/var(--un-border-opacity)))}[border~=focus\:primary-300]:focus{--un-border-opacity:1;border-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))}.dark [dark\:border-neutral-700~=placeholder\:]::placeholder{--un-border-opacity:1;border-color:rgb(64 64 64/var(--un-border-opacity))}.rounded,[rounded=""]{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-lg,[b~=rounded-lg],[rounded-lg=""],[rounded~=lg]{border-radius:.5rem}.rounded-md,[rounded-md=""]{border-radius:.375rem}.rounded-sm,[rounded-sm=""]{border-radius:.125rem}.rounded-xl,[rounded-xl=""]{border-radius:.75rem}[rounded~="[1lh]"]{border-radius:1lh}.before\:rounded-full:before,.after\:rounded-full:after{border-radius:9999px}.rounded-l-xl,[rounded-l-xl=""]{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl,[rounded-r-xl=""]{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-xl,[rounded-t-xl=""]{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-solid,[border-solid=""],[border~=solid]{border-style:solid}[b~=dashed],[border~=dashed]{border-style:dashed}.\!bg-transparent{background-color:#0000!important}.bg-amber-50{--un-bg-opacity:1;background-color:rgb(255 251 235/var(--un-bg-opacity))}.bg-black,[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.bg-black\/50,[bg~=black\/50]{background-color:#00000080}.bg-blue-100\/50{background-color:#dbeafe80}.bg-blue-50{--un-bg-opacity:1;background-color:rgb(239 246 255/var(--un-bg-opacity))}.bg-gray-600{--un-bg-opacity:1;background-color:rgb(75 85 99/var(--un-bg-opacity))}.bg-green-100\/50{background-color:#dcfce780}.bg-green-50{--un-bg-opacity:1;background-color:rgb(240 253 244/var(--un-bg-opacity))}.bg-green-500,[bg-green-500=""],[bg~=green-500]{--un-bg-opacity:1;background-color:rgb(34 197 94/var(--un-bg-opacity))}.bg-lime-50\/60{background-color:#f7fee799}.bg-lime-50\/80{background-color:#f7fee7cc}.bg-neutral-100,.data-\[highlighted\]\:bg-neutral-100[data-highlighted],[bg~=neutral-100]{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.bg-neutral-100\/55{background-color:#f5f5f58c}.bg-neutral-200,[bg-neutral-200=""],[bg~=neutral-200]{--un-bg-opacity:1;background-color:rgb(229 229 229/var(--un-bg-opacity))}.bg-neutral-200\/45{background-color:#e5e5e573}.bg-neutral-300,.dark [bg~=dark\:neutral-300],[bg~="data-[state=unchecked]:neutral-300"][data-state=unchecked]{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}.bg-neutral-400{--un-bg-opacity:1;background-color:rgb(163 163 163/var(--un-bg-opacity))}.bg-neutral-50,[bg-neutral-50=""],[bg~=neutral-50]{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.bg-neutral-50\/70,[bg~=neutral-50\/70]{background-color:#fafafab3}.bg-neutral-600,.dark .dark\:bg-neutral-600{--un-bg-opacity:1;background-color:rgb(82 82 82/var(--un-bg-opacity))}.bg-neutral-800,.dark .dark\:bg-neutral-800,.dark .dark\:data-\[highlighted\]\:bg-neutral-800[data-highlighted],.dark [bg~="dark:data-[state=unchecked]:neutral-800"][data-state=unchecked],.dark [bg~=dark\:neutral-800],.dark [dark\:bg-neutral-800=""]{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.bg-orange-100\/60{background-color:#ffedd599}.bg-orange-50\/70{background-color:#fff7edb3}.bg-primary{--un-bg-opacity:1;background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-100,[bg-primary-100=""],[bg~=primary-100]{--un-bg-opacity:1;background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))80%,oklch(100% 0 360/var(--un-bg-opacity)))}.bg-primary-100\/10{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.1)80%,#ffffff1a)}@supports (color:lab(0% 0 0)){.bg-primary-100\/10{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.1)80%,lab(100% 0 0/.1))}}.bg-primary-100\/100{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/1)80%,#fff)}@supports (color:lab(0% 0 0)){.bg-primary-100\/100{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/1)80%,lab(100% 0 0))}}.bg-primary-100\/20,.data-\[highlighted\]\:bg-primary-100\/20[data-highlighted]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.2)80%,#fff3)}@supports (color:lab(0% 0 0)){.bg-primary-100\/20,.data-\[highlighted\]\:bg-primary-100\/20[data-highlighted]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.2)80%,lab(100% 0 0/.2))}}.bg-primary-100\/30{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.3)80%,#ffffff4d)}@supports (color:lab(0% 0 0)){.bg-primary-100\/30{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.3)80%,lab(100% 0 0/.3))}}.bg-primary-100\/40{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.4)80%,#fff6)}@supports (color:lab(0% 0 0)){.bg-primary-100\/40{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.4)80%,lab(100% 0 0/.4))}}.bg-primary-100\/5{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.05)80%,#ffffff0d)}@supports (color:lab(0% 0 0)){.bg-primary-100\/5{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.05)80%,lab(100% 0 0/.05))}}.bg-primary-100\/50{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.5)80%,#ffffff80)}@supports (color:lab(0% 0 0)){.bg-primary-100\/50{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.5)80%,lab(100% 0 0/.5))}}.bg-primary-100\/60{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.6)80%,#fff9)}@supports (color:lab(0% 0 0)){.bg-primary-100\/60{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.6)80%,lab(100% 0 0/.6))}}.bg-primary-100\/70{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.7)80%,#ffffffb3)}@supports (color:lab(0% 0 0)){.bg-primary-100\/70{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.7)80%,lab(100% 0 0/.7))}}.bg-primary-100\/80{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.8)80%,#fffc)}@supports (color:lab(0% 0 0)){.bg-primary-100\/80{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.8)80%,lab(100% 0 0/.8))}}.bg-primary-100\/90{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.9)80%,#ffffffe6)}@supports (color:lab(0% 0 0)){.bg-primary-100\/90{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.9)80%,lab(100% 0 0/.9))}}.bg-primary-200,[bg-primary-200=""]{--un-bg-opacity:1;background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-200\/10{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-200\/100{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-200\/20,[bg~=primary-200\/20]{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-200\/30{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-200\/40{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-200\/5{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-200\/50{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-200\/60{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-200\/70{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-200\/80{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-200\/90{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-300,[bg-primary-300=""]{--un-bg-opacity:1;background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-300\/10{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-300\/100{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-300\/20{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-300\/30{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-300\/40{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-300\/5{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-300\/50,.dark .dark\:bg-primary-300\/50{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-300\/60{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-300\/70{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-300\/80{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-300\/90{background-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-400,.dark .dark\:bg-primary-400,.dark [bg~=dark\:primary-400],[bg-primary-400=""],[bg~="data-[state=checked]:primary-400"][data-state=checked],[bg~=primary-400]{--un-bg-opacity:1;background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-400\/10{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-400\/100{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-400\/20,.dark [bg~="dark:primary-400/20"]{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-400\/30{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-400\/40{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-400\/5{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-400\/50{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-400\/60{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-400\/70{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-400\/80,.dark [bg~="data-[state=checked]:dark:primary-400/80"][data-state=checked]{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-400\/90{background-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-50,[bg-primary-50=""],[bg~=primary-50]{--un-bg-opacity:1;background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))30%,oklch(100% 0 360/var(--un-bg-opacity)))}.bg-primary-50\/10{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.1)30%,#ffffff1a)}@supports (color:lab(0% 0 0)){.bg-primary-50\/10{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.1)30%,lab(100% 0 0/.1))}}.bg-primary-50\/100{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/1)30%,#fff)}@supports (color:lab(0% 0 0)){.bg-primary-50\/100{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/1)30%,lab(100% 0 0))}}.bg-primary-50\/20{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.2)30%,#fff3)}@supports (color:lab(0% 0 0)){.bg-primary-50\/20{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.2)30%,lab(100% 0 0/.2))}}.bg-primary-50\/30{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.3)30%,#ffffff4d)}@supports (color:lab(0% 0 0)){.bg-primary-50\/30{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.3)30%,lab(100% 0 0/.3))}}.bg-primary-50\/40{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.4)30%,#fff6)}@supports (color:lab(0% 0 0)){.bg-primary-50\/40{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.4)30%,lab(100% 0 0/.4))}}.bg-primary-50\/5{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.05)30%,#ffffff0d)}@supports (color:lab(0% 0 0)){.bg-primary-50\/5{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.05)30%,lab(100% 0 0/.05))}}.bg-primary-50\/50,[bg~=primary-50\/50]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.5)30%,#ffffff80)}@supports (color:lab(0% 0 0)){.bg-primary-50\/50,[bg~=primary-50\/50]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.5)30%,lab(100% 0 0/.5))}}.bg-primary-50\/60{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.6)30%,#fff9)}@supports (color:lab(0% 0 0)){.bg-primary-50\/60{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.6)30%,lab(100% 0 0/.6))}}.bg-primary-50\/70{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.7)30%,#ffffffb3)}@supports (color:lab(0% 0 0)){.bg-primary-50\/70{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.7)30%,lab(100% 0 0/.7))}}.bg-primary-50\/80,[bg~=primary-50\/80]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.8)30%,#fffc)}@supports (color:lab(0% 0 0)){.bg-primary-50\/80,[bg~=primary-50\/80]{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.8)30%,lab(100% 0 0/.8))}}.bg-primary-50\/90{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.9)30%,#ffffffe6)}@supports (color:lab(0% 0 0)){.bg-primary-50\/90{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.9)30%,lab(100% 0 0/.9))}}.bg-primary-500,.dark [bg~=dark\:primary-500],[bg-primary-500=""],[bg~=primary-500],.peer:checked~.peer-checked\:bg-primary-500{--un-bg-opacity:1;background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-500\/10,[bg~=primary-500\/10]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-500\/100{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-500\/15{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.15)}.bg-primary-500\/20,[bg~=primary-500\/20]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-500\/30,[bg~=primary-500\/30]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-500\/40,[bg~=primary-500\/40]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-500\/5,[bg~=primary-500\/5]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-500\/50,[bg~=primary-500\/50]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-500\/60,[bg~=primary-500\/60]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-500\/70,[bg~=primary-500\/70]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-500\/80,[bg~=primary-500\/80]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-500\/90,[bg~=primary-500\/90]{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-600,.dark .dark\:bg-primary-600,[bg-primary-600=""]{--un-bg-opacity:1;background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-600\/10{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-600\/100{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-600\/20{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-600\/30{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-600\/40{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-600\/5{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-600\/50{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-600\/60{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-600\/70{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-600\/80{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-600\/90{background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-700,.dark .dark\:bg-primary-700,.dark [dark\:bg-primary-700=""],[bg-primary-700=""]{--un-bg-opacity:1;background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-700\/10{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-700\/100{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-700\/20{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-700\/30,.dark .dark\:bg-primary-700\/30{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-700\/40{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-700\/5{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-700\/50{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-700\/60{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-700\/70{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-700\/80{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-700\/90{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-800,.dark [bg~=dark\:primary-800],[bg-primary-800=""]{--un-bg-opacity:1;background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-800\/10{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-800\/100{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-800\/20{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-800\/30{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-800\/40{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-800\/5{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-800\/50{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-800\/60{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-800\/70{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-800\/80{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-800\/90{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-900,.dark .dark\:bg-primary-900,[bg-primary-900=""]{--un-bg-opacity:1;background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-900\/10{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-900\/100{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-900\/20,.dark .dark\:bg-primary-900\/20{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-900\/30,.dark .dark\:bg-primary-900\/30{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-900\/40,.dark .dark\:bg-primary-900\/40,.dark [bg~="dark:primary-900/40"]{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-900\/5,.dark .dark\:bg-primary-900\/5{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-900\/50,.dark .dark\:bg-primary-900\/50{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-900\/60{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-900\/70{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-900\/80{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-900\/90{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary-950,[bg-primary-950=""]{--un-bg-opacity:1;background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.bg-primary-950\/10{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary-950\/100{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/1)}.bg-primary-950\/20{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary-950\/30{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary-950\/40{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary-950\/5{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary-950\/50{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary-950\/60{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary-950\/70,.dark [bg~="dark:primary-950/70"]{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary-950\/80{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary-950\/90{background-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.9)}.bg-primary\/10{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.1)}.bg-primary\/100{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/1)}.bg-primary\/20{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.2)}.bg-primary\/30{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.3)}.bg-primary\/40{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.4)}.bg-primary\/5{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.05)}.bg-primary\/50{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.5)}.bg-primary\/60{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.6)}.bg-primary\/70{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.7)}.bg-primary\/80{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.8)}.bg-primary\/90{background-color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/.9)}.bg-red-100\/50{background-color:#fee2e280}.bg-red-50{--un-bg-opacity:1;background-color:rgb(254 242 242/var(--un-bg-opacity))}.bg-red-500{--un-bg-opacity:1;background-color:rgb(239 68 68/var(--un-bg-opacity))}.bg-red-500\/15{background-color:#ef444426}.bg-red900{--un-bg-opacity:1;background-color:rgb(127 29 29/var(--un-bg-opacity))}.bg-transparent,.dark [bg~=dark\:transparent],[bg-transparent=""],[bg~=transparent]{background-color:#0000}.bg-violet-50\/60{background-color:#f5f3ff99}.bg-violet-50\/80{background-color:#f5f3ffcc}.bg-white,.dark [bg~=dark\:white],[bg-white=""],[bg~=white]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.bg-white\/60,[bg~=white\/60]{background-color:#fff9}.bg-white\/80{background-color:#fffc}.bg-white\/90,[bg~=white\/90]{background-color:#ffffffe6}.bg-yellow-500{--un-bg-opacity:1;background-color:rgb(234 179 8/var(--un-bg-opacity))}.dark .dark\:bg-amber-900\/20{background-color:#78350f33}.dark .dark\:bg-black\/30,.dark [bg~="dark:black/30"]{background-color:#0000004d}.dark .dark\:bg-black\/40{background-color:#0006}.dark .dark\:bg-black\/75{background-color:#000000bf}.dark .dark\:bg-blue-900\/30{background-color:#1e3a8a4d}.dark .dark\:bg-blue-900\/50{background-color:#1e3a8a80}.dark .dark\:bg-gray-400{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.dark .dark\:bg-green-900\/30{background-color:#14532d4d}.dark .dark\:bg-green-900\/50{background-color:#14532d80}.dark .dark\:bg-lime-900\/25{background-color:#36531440}.dark .dark\:bg-lime-900\/50{background-color:#36531480}.dark .dark\:bg-neutral-500\/70{background-color:#737373b3}.dark .dark\:bg-neutral-700,.dark [bg~=dark\:neutral-700],.dark [dark\:bg-neutral-700=""],[bg~=neutral-700]{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark .dark\:bg-neutral-700\/50,.dark [bg~="dark:neutral-700/50"],[bg~=neutral-700\/50]{background-color:#40404080}.dark .dark\:bg-neutral-700\/60{background-color:#40404099}.dark .dark\:bg-neutral-800\/50,.dark [bg~="dark:neutral-800/50"]{background-color:#26262680}.dark .dark\:bg-neutral-800\/70,.dark [bg~="dark:neutral-800/70"]{background-color:#262626b3}.dark .dark\:bg-neutral-900,.dark [bg~=dark\:neutral-900]{--un-bg-opacity:1;background-color:rgb(23 23 23/var(--un-bg-opacity))}.dark .dark\:bg-neutral-900\/20,[bg~=neutral-900\/20]{background-color:#17171733}.dark .dark\:bg-neutral-900\/95{background-color:#171717f2}.dark .dark\:bg-orange-900\/25{background-color:#7c2d1240}.dark .dark\:bg-orange-900\/50{background-color:#7c2d1280}.dark .dark\:bg-primary-800\/25{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.25)}.dark .dark\:bg-primary-900\/25{background-color:oklch(37% var(--chromatic-chroma-900)calc(var(--chromatic-hue) + 0)/.25)}.dark .dark\:bg-red-700\/30{background-color:#b91c1c4d}.dark .dark\:bg-red-900\/20{background-color:#7f1d1d33}.dark .dark\:bg-red-900\/50{background-color:#7f1d1d80}.dark .dark\:bg-violet-900\/25{background-color:#4c1d9540}.dark .dark\:bg-violet-900\/50{background-color:#4c1d9580}.dark [bg~="dark:[rgba(0,0,0,0.3)]"]{--un-bg-opacity:.3;background-color:rgba(0,0,0,var(--un-bg-opacity))}.dark [bg~="dark:black/10"]{background-color:#0000001a}.dark [bg~=dark\:blue-900]{--un-bg-opacity:1;background-color:rgb(30 58 138/var(--un-bg-opacity))}.dark [bg~="dark:neutral-100/80"],[bg~=neutral-100\/80]{background-color:#f5f5f5cc}.dark [bg~="dark:neutral-900/50"]{background-color:#17171780}.dark [bg~="dark:neutral-900/70"]{background-color:#171717b3}.dark [bg~="dark:neutral-900/90"]{background-color:#171717e6}.dark [bg~=dark\:neutral-950]{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.dark [bg~="dark:neutral-950/50"]{background-color:#0a0a0a80}.dark [bg~="dark:neutral-950/80"]{background-color:#0a0a0acc}.dark [bg~="dark:orange-900/20"]{background-color:#7c2d1233}.dark [bg~=dark\:violet-800]{--un-bg-opacity:1;background-color:rgb(91 33 182/var(--un-bg-opacity))}.data-\[highlighted\]\:bg-red-100\/20[data-highlighted]{background-color:#fee2e233}[bg~=\$bg-color]{background-color:var(--bg-color)}[bg~=black\/0]{background-color:#0000}[bg~=black\/4]{background-color:#0000000a}[bg~=blue-100]{--un-bg-opacity:1;background-color:rgb(219 234 254/var(--un-bg-opacity))}[bg~=emerald-500]{--un-bg-opacity:1;background-color:rgb(16 185 129/var(--un-bg-opacity))}[bg~=gray-200\/30]{background-color:#e5e7eb4d}[bg~=inherit]{background-color:inherit }[bg~=neutral-100\/50]{background-color:#f5f5f580}[bg~=neutral-200\/50]{background-color:#e5e5e580}[bg~=neutral-400\/20]{background-color:#a3a3a333}[bg~=neutral-50\/50]{background-color:#fafafa80}[bg~=orange-50]{--un-bg-opacity:1;background-color:rgb(255 247 237/var(--un-bg-opacity))}[bg~=violet-100]{--un-bg-opacity:1;background-color:rgb(237 233 254/var(--un-bg-opacity))}[bg~=white\/70]{background-color:#ffffffb3}.dark .dark\:hover\:bg-black\/40:hover{background-color:#0006}.dark .dark\:hover\:bg-neutral-600:hover{--un-bg-opacity:1;background-color:rgb(82 82 82/var(--un-bg-opacity))}.dark .dark\:hover\:bg-neutral-700:hover{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark .dark\:hover\:bg-neutral-700\/80:hover{background-color:#404040cc}.dark .dark\:hover\:bg-neutral-800:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.dark .dark\:hover\:bg-primary-700\/40:hover{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.4)}.dark .dark\:hover\:bg-red-700\/40:hover{background-color:#b91c1c66}.dark .dark\:hover\:bg-white\/10:hover{background-color:#ffffff1a}.dark .hover\:dark\:bg-neutral-800\/50:hover{background-color:#26262680}.dark [bg~="dark:hover:neutral-800"]:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.dark [bg~="dark:hover:white/30"]:hover{background-color:#ffffff4d}.dark [bg~="hover:dark:neutral-700/65"]:hover{background-color:#404040a6}.dark [bg~="hover:dark:neutral-900/65"]:hover{background-color:#171717a6}.dark [hover~="dark:bg-black/40"]:hover{background-color:#0006}.dark [hover~=dark\:bg-neutral-700]:hover{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark [hover~="dark:bg-neutral-700/50"]:hover{background-color:#40404080}.group:hover [bg~="group-hover:black/20"]{background-color:#0003}.hover\:bg-neutral-100:hover{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.hover\:bg-neutral-300:hover{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}.hover\:bg-neutral-400:hover{--un-bg-opacity:1;background-color:rgb(163 163 163/var(--un-bg-opacity))}.hover\:bg-neutral-400\/20:hover{background-color:#a3a3a333}.hover\:bg-neutral-50:hover{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.hover\:bg-neutral-50\/50:hover{background-color:#fafafa80}.hover\:bg-neutral-800:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.hover\:bg-primary-500\/20:hover{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)}.hover\:bg-primary-600:hover{--un-bg-opacity:1;background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.hover\:bg-red-500\/20:hover{background-color:#ef444433}.hover\:bg-white\/70:hover{background-color:#ffffffb3}.hover\:bg-white\/80:hover{background-color:#fffc}[bg~=hover\:emerald-600]:hover{--un-bg-opacity:1;background-color:rgb(5 150 105/var(--un-bg-opacity))}[bg~=hover\:neutral-200]:hover{--un-bg-opacity:1;background-color:rgb(229 229 229/var(--un-bg-opacity))}[bg~="hover:neutral-400/45"]:hover{background-color:#a3a3a373}[bg~=hover\:neutral-50]:hover{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}[bg~="hover:neutral-900/45"]:hover{background-color:#17171773}[hover\:bg-neutral-300=""]:hover{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}[hover\:bg-primary-600=""]:hover{--un-bg-opacity:1;background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}[hover~=bg-neutral-200]:hover{--un-bg-opacity:1;background-color:rgb(229 229 229/var(--un-bg-opacity))}[hover~=bg-white\/80]:hover{background-color:#fffc}.dark [bg~="dark:focus:neutral-900"]:focus{--un-bg-opacity:1;background-color:rgb(23 23 23/var(--un-bg-opacity))}[bg~=focus\:neutral-50]:focus{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.active\:bg-neutral-400\/30:active{background-color:#a3a3a34d}.active\:bg-neutral-50\/90:active{background-color:#fafafae6}.active\:bg-primary-500\/30:active{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.3)}.active\:bg-red-500\/30:active{background-color:#ef44444d}.dark .active\:dark\:bg-neutral-800\/90:active{background-color:#262626e6}.dark .dark\:active\:bg-neutral-700\/60:active{background-color:#40404099}.dark .dark\:active\:bg-primary-700\/30:active{background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/.3)}.dark .dark\:active\:bg-red-700\/30:active{background-color:#b91c1c4d}.dark [bg~="active:dark:neutral-700/90"]:active{background-color:#404040e6}.dark [bg~="active:dark:neutral-900/90"]:active{background-color:#171717e6}.dark [bg~="dark:active:neutral-50"]:active{--un-bg-opacity:1;background-color:rgb(250 250 250/var(--un-bg-opacity))}.dark [bg~="dark:active:neutral-700"]:active{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}[bg~=active\:neutral-300]:active{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}[bg~="active:neutral-400/60"]:active{background-color:#a3a3a399}[bg~="active:neutral-900/60"]:active{background-color:#17171799}[bg~=active\:neutral-950]:active{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.dark .dark\:disabled\:bg-neutral-900:disabled{--un-bg-opacity:1;background-color:rgb(23 23 23/var(--un-bg-opacity))}.disabled\:bg-neutral-100:disabled{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.before\:bg-lime-500\/30:before{background-color:#84cc164d}.before\:bg-orange-500\/30:before{background-color:#f973164d}.before\:bg-primary-500\/30:before{background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.3)}.before\:bg-violet-500\/30:before{background-color:#8b5cf64d}.dark .before\:dark\:bg-lime-200\/20:before{background-color:#d9f99d33}.dark .before\:dark\:bg-orange-200\/20:before{background-color:#fed7aa33}.dark .before\:dark\:bg-primary-200\/20:before{background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.2)}.dark .before\:dark\:bg-violet-200\/20:before{background-color:#ddd6fe33}.after\:bg-white:after{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.bg-opacity-10,.dark .dark\:bg-opacity-10{--un-bg-opacity:.1}.bg-opacity-15{--un-bg-opacity:.15}.bg-opacity-30{--un-bg-opacity:.3}.dark .dark\:from-neutral-800,.dark [dark\:from-neutral-800=""]{--un-gradient-from-position:0%;--un-gradient-from:rgb(38 38 38/var(--un-from-opacity,1))var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:#26262600 var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark .dark\:from-primary-400\/0{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark .dark\:from-primary-400\/20{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.from-neutral-50,[from-neutral-50=""]{--un-gradient-from-position:0%;--un-gradient-from:rgb(250 250 250/var(--un-from-opacity,1))var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:#fafafa00 var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.from-primary-500{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-from-opacity,1))var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.from-primary-500\/0{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.from-primary-500\/20,.before\:from-primary-500\/20:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark .before\:dark\:from-primary-400\/20:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark [before~="dark:from-primary-400/0"]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark [hover~="before:dark:from-primary-400/20"]:hover:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}[before~=from-primary-500\/0]:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}[hover~="before:from-primary-500/20"]:hover:before{--un-gradient-from-position:0%;--un-gradient-from:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.2)var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from),var(--un-gradient-to)}.dark .dark\:via-primary-400\/10{--un-gradient-via-position:50%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to)}.via-primary-500\/10,.before\:via-primary-500\/10:before{--un-gradient-via-position:50%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to)}.dark .before\:dark\:via-primary-400\/10:before,.dark [hover~="before:dark:via-primary-400/10"]:hover:before{--un-gradient-via-position:50%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0);--un-gradient-stops:var(--un-gradient-from),oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to)}[hover~="before:via-primary-500/10"]:hover:before{--un-gradient-via-position:50%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0);--un-gradient-stops:var(--un-gradient-from),oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/.1)var(--un-gradient-via-position),var(--un-gradient-to)}.dark .dark\:to-neutral-900{--un-gradient-to-position:100%;--un-gradient-to:rgb(23 23 23/var(--un-to-opacity,1))var(--un-gradient-to-position)}.dark .dark\:to-primary-400\/0{--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position)}.dark .dark\:to-transparent,.to-transparent{--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position)}.to-neutral-100,[to-neutral-100=""]{--un-gradient-to-position:100%;--un-gradient-to:rgb(245 245 245/var(--un-to-opacity,1))var(--un-gradient-to-position)}.to-primary-400{--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-to-opacity,1))var(--un-gradient-to-position)}.to-primary-500\/0{--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position)}.before\:to-transparent:before,.dark .before\:dark\:to-transparent:before{--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position)}.dark [before~="dark:to-primary-400/0"]:before{--un-gradient-to-position:100%;--un-gradient-to:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position)}.dark [hover~="before:dark:to-transparent"]:hover:before{--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position)}[before~=to-primary-500\/0]:before{--un-gradient-to-position:100%;--un-gradient-to:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/0)var(--un-gradient-to-position)}[hover~=before\:to-transparent]:hover:before{--un-gradient-to-position:100%;--un-gradient-to:transparent var(--un-gradient-to-position)}.bg-gradient-to-b,[bg-gradient-to-b=""]{--un-gradient-shape:to bottom in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient))}.bg-gradient-to-r,.before\:bg-gradient-to-r:before,[before~=bg-gradient-to-r]:before,[hover~=before\:bg-gradient-to-r]:hover:before{--un-gradient-shape:to right in oklch;--un-gradient:var(--un-gradient-shape),var(--un-gradient-stops);background-image:linear-gradient(var(--un-gradient))}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.dark .dark\:fill-neutral-800,.dark [dark\:fill-neutral-800=""]{--un-fill-opacity:1;fill:rgb(38 38 38/var(--un-fill-opacity))}.fill-white,[fill-white=""]{--un-fill-opacity:1;fill:rgb(255 255 255/var(--un-fill-opacity))}[stroke-width~="0.5"]{stroke-width:.5px}[stroke-width~="1.5"]{stroke-width:1.5px}[stroke-width~="2"]{stroke-width:2px}[stroke~="163"]{stroke-width:163px}[stroke~="175"]{stroke-width:175px}.object-cover,[object-cover=""]{object-fit:cover}.object-contain,[object-contain=""]{object-fit:contain}.p-\[2px\]{padding:2px}.p-0\.5{padding:.125rem}.p-1,[p-1=""],[p~="1"]{padding:.25rem}.p-1\.5,[p-1\.5=""]{padding:.375rem}.p-2,[p-2=""],[p~="2"]{padding:.5rem}.p-2\.5{padding:.625rem}.p-3,[p-3=""]{padding:.75rem}.p-4,[p-4=""]{padding:1rem}.p-5,[p-5=""]{padding:1.25rem}.p-6{padding:1.5rem}.p-8,[p-8=""]{padding:2rem}.px,.px-4,[px-4=""],[px=""]{padding-left:1rem;padding-right:1rem}.px-\[25px\]{padding-left:25px;padding-right:25px}.px-0{padding-left:0;padding-right:0}.px-1,[px-1=""]{padding-left:.25rem;padding-right:.25rem}.px-1\.5,[px~="1.5"]{padding-left:.375rem;padding-right:.375rem}.px-2,.px2,[px-2=""],[px~="2"],[px2=""]{padding-left:.5rem;padding-right:.5rem}.px-3,[px-3=""]{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py,.py-4,[py-4=""],[py~="4"]{padding-top:1rem;padding-bottom:1rem}.py-\.5,.py-0\.5,[py-\.5=""],[py-0\.5=""],[py~="0.5"]{padding-top:.125rem;padding-bottom:.125rem}.py-0{padding-top:0;padding-bottom:0}.py-1,.py1,[py-1=""],[py1=""]{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5,[py-1\.5=""]{padding-top:.375rem;padding-bottom:.375rem}.py-2,[py-2=""]{padding-top:.5rem;padding-bottom:.5rem}.py-3,[py-3=""]{padding-top:.75rem;padding-bottom:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}[py~="2.5"]{padding-top:.625rem;padding-bottom:.625rem}.pb-0{padding-bottom:0}.pb-12,[pb-12=""]{padding-bottom:3rem}.pb-2,[pb-2=""]{padding-bottom:.5rem}.pb-3,[pb-3=""]{padding-bottom:.75rem}.pb-4,[pb-4=""]{padding-bottom:1rem}.pb-6,[pb-6=""]{padding-bottom:1.5rem}.pl,.pl-4,[pl-4=""]{padding-left:1rem}.pl-\[1\.5rem\]{padding-left:1.5rem}.pl-10{padding-left:2.5rem}.pl-3,[pl-3=""]{padding-left:.75rem}.pl-5,[pl-5=""],[pl~="5"]{padding-left:1.25rem}.pr-\[0\.5rem\]{padding-right:.5rem}.pr-\[20px\]{padding-right:20px}.pr-1,[pr-1=""]{padding-right:.25rem}.pr-3,[pr-3=""]{padding-right:.75rem}.pr-4,[pr-4=""]{padding-right:1rem}.pt,.pt-4,[pt-4=""],[pt~="4"]{padding-top:1rem}.pt-0{padding-top:0}.pt-1,[pt-1=""]{padding-top:.25rem}.pt-10,[pt-10=""]{padding-top:2.5rem}.pt-14,[pt-14=""]{padding-top:3.5rem}.pt-2,[pt-2=""]{padding-top:.5rem}.pt-3{padding-top:.75rem}.text-center,[text-center=""],[text~=center]{text-align:center}.text-left,[text-left=""]{text-align:left}.text-right,[text-right=""],[text~=right]{text-align:right}.text-wrap,[text-wrap=""]{text-wrap:wrap}.text-nowrap,[text-nowrap=""]{text-wrap:nowrap}[align~=end]{vertical-align:bottom}[align~=start],[v~=start]{vertical-align:top}.text-\[10px\],[text~="[10px]"]{font-size:10px}.text-2xl,[text-2xl=""]{font-size:1.5rem;line-height:2rem}.text-3xl,[text-3xl=""]{font-size:1.875rem;line-height:2.25rem}.text-4xl,[text-4xl=""],[text~="4xl"]{font-size:2.25rem;line-height:2.5rem}.text-5xl,[text-5xl=""]{font-size:3rem;line-height:1}.text-6xl,[text-6xl=""]{font-size:3.75rem;line-height:1}.text-base,[text-base=""],[text~=base]{font-size:1rem;line-height:1.5rem}.text-lg,[text-lg=""],[text~=lg]{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""],[text~=sm]{font-size:.875rem;line-height:1.25rem}.text-xl,[text-xl=""]{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""],[text~=xs]{font-size:.75rem;line-height:1rem}[text~="[12px]"]{font-size:12px}[text~="60"]{font-size:15rem}[default-text~="2"]:default{font-size:.5rem}.dark .dark\:data-\[disabled\]\:text-neutral-600[data-disabled],.dark .dark\:text-neutral-600,.dark [text~=dark\:neutral-600],.text-neutral-600,[text~=neutral-600]{--un-text-opacity:1;color:rgb(82 82 82/var(--un-text-opacity))}.dark .dark\:text-amber-300{--un-text-opacity:1;color:rgb(252 211 77/var(--un-text-opacity))}.dark .dark\:text-amber-400{--un-text-opacity:1;color:rgb(251 191 36/var(--un-text-opacity))}.dark .dark\:text-black,.text-black,[text-black=""]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.dark .dark\:text-blue-300{--un-text-opacity:1;color:rgb(147 197 253/var(--un-text-opacity))}.dark .dark\:text-blue-400{--un-text-opacity:1;color:rgb(96 165 250/var(--un-text-opacity))}.dark .dark\:text-green-300{--un-text-opacity:1;color:rgb(134 239 172/var(--un-text-opacity))}.dark .dark\:text-green-400,.text-green{--un-text-opacity:1;color:rgb(74 222 128/var(--un-text-opacity))}.dark .dark\:text-lime-200{--un-text-opacity:1;color:rgb(217 249 157/var(--un-text-opacity))}.dark .dark\:text-lime-400{--un-text-opacity:1;color:rgb(163 230 53/var(--un-text-opacity))}.dark .dark\:text-neutral-100,.dark [text~=dark\:neutral-100],[text~=neutral-100]{--un-text-opacity:1;color:rgb(245 245 245/var(--un-text-opacity))}.dark .dark\:text-neutral-100\/80{color:#f5f5f5cc}.dark .dark\:text-neutral-200,.dark [dark\:text-neutral-200=""],.data-\[placeholder\]\:text-neutral-200[data-placeholder]{--un-text-opacity:1;color:rgb(229 229 229/var(--un-text-opacity))}.dark .dark\:text-neutral-300,.dark [dark\:text-neutral-300=""],.dark [text~=dark\:neutral-300],[text~=neutral-300]{--un-text-opacity:1;color:rgb(212 212 212/var(--un-text-opacity))}.dark .dark\:text-neutral-300\/80{color:#d4d4d4cc}.dark .dark\:text-neutral-400,.dark [dark\:text-neutral-400=""],.dark [text~=dark\:neutral-400],.data-\[disabled\]\:text-neutral-400[data-disabled],.text-neutral-400,[text-neutral-400=""],[text~=neutral-400]{--un-text-opacity:1;color:rgb(163 163 163/var(--un-text-opacity))}.dark .dark\:text-neutral-500,.dark [text~=dark\:neutral-500],.text-neutral-500,[text-neutral-500=""],[text~=neutral-500]{--un-text-opacity:1;color:rgb(115 115 115/var(--un-text-opacity))}.dark .dark\:text-neutral-600\/20,.dark [text~="dark:neutral-600/20"]{color:#52525233}.dark .dark\:text-orange-200{--un-text-opacity:1;color:rgb(254 215 170/var(--un-text-opacity))}.dark .dark\:text-orange-400,.text-orange{--un-text-opacity:1;color:rgb(251 146 60/var(--un-text-opacity))}.dark .dark\:color-primary-100,.dark .dark\:text-primary-100,.dark [dark\:color-primary-100=""]{--un-text-opacity:1;color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))80%,oklch(100% 0 360/var(--un-text-opacity)))}.dark .dark\:text-primary-200,.data-\[highlighted\]\:text-primary-200[data-highlighted]{--un-text-opacity:1;color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .dark\:text-primary-300,.dark [text~=dark\:primary-300],.text-primary-300{--un-text-opacity:1;color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .dark\:text-primary-300\/80{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.8)}.color-primary-400,.dark .dark\:text-primary-400,.dark [text~=dark\:primary-400],.text-primary-400,[color-primary-400=""],[text~=primary-400]{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .dark\:text-primary-600,.text-primary-600,[text~=primary-600]{--un-text-opacity:1;color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark .dark\:text-red-100{--un-text-opacity:1;color:rgb(254 226 226/var(--un-text-opacity))}.dark .dark\:text-red-400,.text-red{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity))}.dark .dark\:text-slate-100{--un-text-opacity:1;color:rgb(241 245 249/var(--un-text-opacity))}.dark .dark\:text-violet-200{--un-text-opacity:1;color:rgb(221 214 254/var(--un-text-opacity))}.dark .dark\:text-violet-400{--un-text-opacity:1;color:rgb(167 139 250/var(--un-text-opacity))}.dark .dark\:text-white,.text-white,[text-white=""],[text~=white]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.dark [text~="dark:cyan-600/90"]{color:#0891b2e6}.dark [text~=dark\:gray-200]{--un-text-opacity:1;color:rgb(229 231 235/var(--un-text-opacity))}.dark [text~="dark:neutral-100/65"]{color:#f5f5f5a6}.dark [text~="dark:neutral-600/50"]{color:#52525280}.dark [text~=dark\:neutral-900]{--un-text-opacity:1;color:rgb(23 23 23/var(--un-text-opacity))}.dark [text~=dark\:orange-500],.text-orange-500{--un-text-opacity:1;color:rgb(249 115 22/var(--un-text-opacity))}.dark [text~="dark:pink-300/90"]{color:#f9a8d4e6}.dark [text~="dark:primary-300/50"]{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.5)}.dark [text~="dark:primary-600/90"]{color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.9)}.dark [text~="dark:violet-600/90"]{color:#7c3aede6}.data-\[highlighted\]\:text-red-200[data-highlighted]{--un-text-opacity:1;color:rgb(254 202 202/var(--un-text-opacity))}.text-amber-500{--un-text-opacity:1;color:rgb(245 158 11/var(--un-text-opacity))}.text-amber-600{--un-text-opacity:1;color:rgb(217 119 6/var(--un-text-opacity))}.text-amber-700{--un-text-opacity:1;color:rgb(180 83 9/var(--un-text-opacity))}.text-blue-500,[text-blue-500=""]{--un-text-opacity:1;color:rgb(59 130 246/var(--un-text-opacity))}.text-blue-700{--un-text-opacity:1;color:rgb(29 78 216/var(--un-text-opacity))}.text-green-500,[text-green-500=""]{--un-text-opacity:1;color:rgb(34 197 94/var(--un-text-opacity))}.text-green-600{--un-text-opacity:1;color:rgb(22 163 74/var(--un-text-opacity))}.text-green-700{--un-text-opacity:1;color:rgb(21 128 61/var(--un-text-opacity))}.text-lime-500{--un-text-opacity:1;color:rgb(132 204 22/var(--un-text-opacity))}.text-neutral-200\/50,[text~=neutral-200\/50]{color:#e5e5e580}.text-neutral-400\/50,[text~=neutral-400\/50]{color:#a3a3a380}.text-neutral-500\/50,[text~=neutral-500\/50]{color:#73737380}.text-neutral-700,[text-neutral-700=""]{--un-text-opacity:1;color:rgb(64 64 64/var(--un-text-opacity))}.text-neutral-700\/80{color:#404040cc}.text-neutral-800{--un-text-opacity:1;color:rgb(38 38 38/var(--un-text-opacity))}.text-neutral-900\/80{color:#171717cc}.text-neutral-950{--un-text-opacity:1;color:rgb(10 10 10/var(--un-text-opacity))}.text-primary{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-primary-500,[text~=primary-500]{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-primary-600\/80{color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.8)}.text-primary-700{--un-text-opacity:1;color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-primary-800{--un-text-opacity:1;color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-primary-950{--un-text-opacity:1;color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.text-purple{--un-text-opacity:1;color:rgb(192 132 252/var(--un-text-opacity))}.text-red-500,[text-red-500=""]{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity))}.text-red-950{--un-text-opacity:1;color:rgb(69 10 10/var(--un-text-opacity))}.text-slate-700{--un-text-opacity:1;color:rgb(51 65 85/var(--un-text-opacity))}.text-transparent{color:#0000}.text-violet-500,[text-violet-500=""]{--un-text-opacity:1;color:rgb(139 92 246/var(--un-text-opacity))}[text~=cyan-400\/90]{color:#22d3eee6}[text~=gray-700]{--un-text-opacity:1;color:rgb(55 65 81/var(--un-text-opacity))}[text~=orange-700]{--un-text-opacity:1;color:rgb(194 65 12/var(--un-text-opacity))}[text~=pink-400]{--un-text-opacity:1;color:rgb(244 114 182/var(--un-text-opacity))}[text~=primary-400\/90]{color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/.9)}[text~=violet-400\/90]{color:#a78bfae6}.dark .dark\:hover\:text-neutral-300:hover{--un-text-opacity:1;color:rgb(212 212 212/var(--un-text-opacity))}.dark [hover\:text~=dark\:red-400]:hover{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity))}.dark [hover~="dark:text-primary-300/80"]:hover{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.8)}.dark [text~="dark:hover:neutral-200"]:hover{--un-text-opacity:1;color:rgb(229 229 229/var(--un-text-opacity))}.dark [text~="dark:hover:neutral-800"]:hover{--un-text-opacity:1;color:rgb(38 38 38/var(--un-text-opacity))}.dark [text~="dark:hover:primary-500"]:hover{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.hover\:text-neutral-700:hover{--un-text-opacity:1;color:rgb(64 64 64/var(--un-text-opacity))}[hover\:text~=red-500]:hover{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity))}[hover~=text-primary-600\/80]:hover{color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.8)}[text~=hover\:neutral-600]:hover{--un-text-opacity:1;color:rgb(82 82 82/var(--un-text-opacity))}[text~=hover\:primary-600]:hover{--un-text-opacity:1;color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark [text~="dark:disabled:neutral-600"]:disabled{--un-text-opacity:1;color:rgb(82 82 82/var(--un-text-opacity))}[text~=disabled\:neutral-400]:disabled{--un-text-opacity:1;color:rgb(163 163 163/var(--un-text-opacity))}.dark .dark\:placeholder\:text-neutral-600::placeholder{--un-text-opacity:1;color:rgb(82 82 82/var(--un-text-opacity))}.dark [text~="placeholder:dark:hover:neutral-400"]:hover::placeholder{--un-text-opacity:1;color:rgb(163 163 163/var(--un-text-opacity))}.dark [text~="placeholder:dark:hover:primary-500"]:hover::placeholder{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.dark [text~="placeholder:dark:neutral-300"]::placeholder{--un-text-opacity:1;color:rgb(212 212 212/var(--un-text-opacity))}.dark [text~="placeholder:dark:primary-300/50"]::placeholder{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.5)}.placeholder\:text-neutral-700::placeholder{--un-text-opacity:1;color:rgb(64 64 64/var(--un-text-opacity))}[text~="placeholder:hover:neutral-500"]:hover::placeholder{--un-text-opacity:1;color:rgb(115 115 115/var(--un-text-opacity))}[text~="placeholder:hover:primary-500"]:hover::placeholder{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}[text~=placeholder\:neutral-400]::placeholder{--un-text-opacity:1;color:rgb(163 163 163/var(--un-text-opacity))}[text~=placeholder\:primary-400]::placeholder{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-text-opacity))}.font-bold,[font-bold=""]{font-weight:700}.font-medium,[font-medium=""]{font-weight:500}.font-normal,[font-normal=""]{font-weight:400}.font-semibold,[font-semibold=""]{font-weight:600}.leading-\[25px\]{line-height:25px}.leading-10,.lh-10{line-height:2.5rem}.leading-none,[leading~="[1]"]{line-height:1}[leading~="[0.75]"]{line-height:.75}.font-cute,[font-cute=""]{font-family:Sniglet,Kiwi Maru,Comfortaa,xiaolai,DM Sans Variant,DM Sans,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-jura,[font-jura=""]{font-family:Jura}.font-mono,[font-mono=""]{font-family:DM Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-quicksand,[font-quicksand=""]{font-family:Quicksand}.font-sans,[font-sans=""]{font-family:DM Sans,DM Sans Variant,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-sans-rounded,[font-sans-rounded=""]{font-family:Comfortaa Variable,Comfortaa,DM Sans,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-italic,.italic,[font-italic=""]{font-style:italic}.decoration-underline,.underline,[decoration-underline=""],[underline=""]{text-decoration-line:underline}.decoration-dotted,[decoration-dotted=""]{text-decoration-style:dotted}.decoration-dashed,[decoration-dashed=""]{text-decoration-style:dashed}.tab{tab-size:4}.text-stroke-1,[text-stroke-1=""]{-webkit-text-stroke-width:1px}.text-shadow{--un-text-shadow:0 0 1px var(--un-text-shadow-color,#0003),0 0 1px var(--un-text-shadow-color,#0100051a);text-shadow:var(--un-text-shadow)}.write-vertical-left,[write-vertical-left=""]{writing-mode:vertical-lr}.\[\&\:checked\+div_\.radio-dot\]\:opacity-100:checked+div .radio-dot,.opacity-100,.group:hover .group-hover\:opacity-100,.group:hover [group-hover\:opacity-100=""]{opacity:1}.op-0,.opacity-0,[op-0=""],[opacity-0=""]{opacity:0}.op50,.opacity-50,[op50=""],[opacity-50=""]{opacity:.5}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-5,[opacity-5=""]{opacity:.05}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75,[opacity-75=""]{opacity:.75}.opacity-95,[opacity-95=""]{opacity:.95}.\[\&_\.round-range-tooltip\]\:hover\:opacity-100:hover .round-range-tooltip,[hover~=opacity-100]:hover{opacity:1}.disabled\:opacity-50:disabled,[disabled\:opacity-50=""]:disabled{opacity:.5}.before\:opacity-100:before{opacity:1}[before~=opacity-0]:before{opacity:0}[hover~=before\:opacity-100]:hover:before{opacity:1}.mix-blend-screen,[mix-blend-screen=""]{mix-blend-mode:screen}.dark .dark\:shadow-lg,.shadow-lg,[shadow-lg=""],[shadow~=lg]{--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.dark [shadow~=dark\:none]{--un-shadow:0 0 var(--un-shadow-color,#0000);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow{--un-shadow:var(--un-shadow-inset)0 1px 3px 0 var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-green-500\/50{--un-shadow-color:#22c55e80 }.shadow-md,[shadow-md=""],[shadow~=md]{--un-shadow:var(--un-shadow-inset)0 4px 6px -1px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 2px 4px -2px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-sm,[shadow-sm=""],[shadow~=sm]{--un-shadow:var(--un-shadow-inset)0 1px 2px 0 var(--un-shadow-color,#0000000d);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl,[shadow-xl=""]{--un-shadow:var(--un-shadow-inset)0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-yellow-500\/30{--un-shadow-color:#eab3084d }[shadow~=cyan-200\/20]{--un-shadow-color:#a5f3fc33 }[shadow~=cyan-200\/50]{--un-shadow-color:#a5f3fc80 }[shadow~=primary-200\/20]{--un-shadow-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.2)}[shadow~=primary-200\/50]{--un-shadow-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/.5)}[shadow~=violet-200\/20]{--un-shadow-color:#ddd6fe33 }[shadow~=violet-200\/50]{--un-shadow-color:#ddd6fe80 }.focus-within\:shadow-neutral-800:focus-within{--un-shadow-opacity:1;--un-shadow-color:rgb(38 38 38/var(--un-shadow-opacity))}[shadow~="focus-within:[0_0_0_1px]"]:focus-within{--un-shadow:0 0 0 1px var(--un-shadow-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.dark [hover~=dark\:shadow-lg]:hover{--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}[hover~=shadow-md]:hover{--un-shadow:var(--un-shadow-inset)0 4px 6px -1px var(--un-shadow-color,#0000001a),var(--un-shadow-inset)0 2px 4px -2px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:shadow-\[0_0_0_2px\]:focus{--un-shadow:0 0 0 2px var(--un-shadow-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:shadow-black:focus{--un-shadow-opacity:1;--un-shadow-color:rgb(0 0 0/var(--un-shadow-opacity))}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-primary-200:focus-visible{--un-outline-color-opacity:1;outline-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-outline-color-opacity))}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.outline,.focus-visible\:outline-solid:focus-visible{outline-style:solid}.data-\[highlighted\]\:outline-none[data-highlighted],.outline-none,[outline-none=""],[outline~=focus-within\:none]:focus-within,.focus\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.ring-0{--un-ring-width:0px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-1{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-2{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-3{--un-ring-width:3px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-2:focus{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.dark .dark\:ring-neutral-600\/30{--un-ring-color:#5252524d }.dark .dark\:ring-neutral-600\/60{--un-ring-color:#52525299 }.dark .dark\:ring-white\/10{--un-ring-color:#ffffff1a }.ring-black\/5{--un-ring-color:#0000000d }.ring-neutral-300\/30{--un-ring-color:#d4d4d44d }.ring-primary-400{--un-ring-opacity:1;--un-ring-color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/var(--un-ring-opacity))}.ring-primary-500{--un-ring-opacity:1;--un-ring-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-ring-opacity))}.ring-transparent{--un-ring-color:transparent }.dark .dark\:focus\:ring-neutral-600\/30:focus{--un-ring-color:#5252524d }.dark .dark\:focus\:ring-neutral-600\/60:focus{--un-ring-color:#52525299 }.dark .dark\:focus\:ring-primary-600\/30:focus{--un-ring-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.3)}.dark .dark\:focus\:ring-red-600\/30:focus{--un-ring-color:#dc26264d }.dark .dark\:focus\:ring-red-600\/60:focus{--un-ring-color:#dc262699 }.focus\:ring-neutral-300\/30:focus{--un-ring-color:#d4d4d44d }.focus\:ring-primary-300\/60:focus{--un-ring-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.6)}.focus\:ring-red-300\/30:focus{--un-ring-color:#fca5a54d }.backdrop-blur-lg{--un-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.backdrop-blur-md,[backdrop-blur-md=""]{--un-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.backdrop-blur-sm,[backdrop-blur-sm=""]{--un-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.backdrop-blur-xl,[backdrop-blur-xl=""]{--un-backdrop-blur:blur(24px);-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.blur{--un-blur:blur(8px);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.drop-shadow{--un-drop-shadow:drop-shadow(0 1px 2px var(--un-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--un-drop-shadow-color,#0000000f));filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.drop-shadow-sm,[drop-shadow-sm=""]{--un-drop-shadow:drop-shadow(0 1px 1px var(--un-drop-shadow-color,#0000000d));filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}[drop-shadow~=none],.dark [drop-shadow~="dark:hover:none"]:hover{--un-drop-shadow:drop-shadow(0 0 var(--un-drop-shadow-color,#0000));filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}[drop-shadow~="hover:[0px_4px_4px_rgba(220,220,220,0.4)]"]:hover{--un-drop-shadow:drop-shadow(0px 4px 4px #dcdcdc66);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}[drop-shadow~="active:[0px_0px_0px_rgba(220,220,220,0.25)]"]:active{--un-drop-shadow:drop-shadow(0px 0px 0px #dcdcdc40);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.\[\&_\.provider-icon\]\:grayscale-100 .provider-icon,.grayscale-100,[grayscale-100=""]{--un-grayscale:grayscale(1);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.\[\&_\.provider-icon\]\:hover\:grayscale-0:hover .provider-icon{--un-grayscale:grayscale(0);filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.filter{filter:var(--un-blur)var(--un-brightness)var(--un-contrast)var(--un-drop-shadow)var(--un-grayscale)var(--un-hue-rotate)var(--un-invert)var(--un-saturate)var(--un-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[width\,margin\]{transition-property:width,margin;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-100,[transition~="100"]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all,[transition-all=""],[transition~=all]{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors,[transition-colors=""],[transition~=colors]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors\,transform\,width\,height{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform,width,height;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity,[transition-opacity=""]{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform,[transition-transform=""],[transition~=transform]{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition~=border]{transition-property:border;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition~=colors\,transform]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition~=width]{transition-property:width;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition~=placeholder\:all]::placeholder,[before~=transition-all]:before,.after\:transition-all:after,[after~=transition-all]:after{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,[duration-150=""]{transition-duration:.15s}.duration-200,[duration-200=""],[transition~=duration-200]{transition-duration:.2s}.duration-250,[duration-250=""],[duration~="250"],[transition~=duration-250]{transition-duration:.25s}.duration-300,[transition~=duration-300]{transition-duration:.3s}.duration-400,[transition~=duration-400]{transition-duration:.4s}.duration-500,[duration-500=""],[duration~="500"],[transition~=duration-500]{transition-duration:.5s}.duration-75{transition-duration:75ms}[duration~="10"]{transition-duration:10ms}[duration~="1000"]{transition-duration:1s}.placeholder\:duration-250::placeholder,[placeholder\:duration-250=""]::placeholder,[transition~=placeholder\:duration-250]::placeholder{transition-duration:.25s}[before~=duration-400]:before,[after~=duration-400]:after{transition-duration:.4s}[delay~="1"]{transition-delay:1ms}[delay~="10"]{transition-delay:10ms}[delay~="100"]{transition-delay:.1s}[delay~="11"]{transition-delay:11ms}[delay~="2"]{transition-delay:2ms}[delay~="200"]{transition-delay:.2s}[delay~="3"]{transition-delay:3ms}[delay~="4"]{transition-delay:4ms}[delay~="5"]{transition-delay:5ms}[delay~="50"]{transition-delay:50ms}[delay~="6"]{transition-delay:6ms}[delay~="7"]{transition-delay:7ms}[delay~="8"]{transition-delay:8ms}[delay~="9"]{transition-delay:9ms}.ease,.ease-in-out,[ease-in-out=""],[transition~=ease-in-out]{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-linear,[ease-linear=""]{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\:ease-in-out::placeholder,[transition~=placeholder\:ease-in-out]::placeholder,[before~=ease-in-out]:before,[after~=ease-in-out]:after{transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-background-color,[will-change-background-color=""]{will-change:background-color}.will-change-color,[will-change-color=""]{will-change:color}.will-change-transform,[will-change-transform=""]{will-change:transform}.will-change-width,[will-change-width=""]{will-change:width}.before\:content-\[\'\'\]:before,.after\:content-\[\'\'\]:after,.content-empty,[before~=content-empty]:before,[after~=content-empty]:after{content:""}.placeholder-stone-400::placeholder{--un-placeholder-opacity:1;color:rgb(168 162 158/var(--un-placeholder-opacity))}.hidden,[hidden=""]{display:none}.bg-dotted-\[neutral-200\/60\]{background-image:radial-gradient(circle at 1px 1px,rgb(229 229 229/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.6}.bg-dotted-\[neutral-200\/80\]{background-image:radial-gradient(circle at 1px 1px,rgb(229 229 229/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.8}.dark .dark\:bg-dotted-\[neutral-700\/25\]{background-image:radial-gradient(circle at 1px 1px,rgb(64 64 64/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.25}.dark .dark\:bg-dotted-\[neutral-700\/40\]{background-image:radial-gradient(circle at 1px 1px,rgb(64 64 64/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.4}.dark .dark\:hover\:bg-dotted-\[primary-200\/20\]:hover{background-image:radial-gradient(circle at 1px 1px,oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.hover\:bg-dotted-\[primary-300\/50\]:hover,.after\:bg-dotted-\[primary-300\/50\]:after{background-image:radial-gradient(circle at 1px 1px,oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.dark .dark\:after\:bg-dotted-\[primary-200\/20\]:after,.dark [hover~="dark:after:bg-dotted-[primary-200/20]"]:hover:after{background-image:radial-gradient(circle at 1px 1px,oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}[after~="bg-dotted-[neutral-200/80]"]:after{background-image:radial-gradient(circle at 1px 1px,rgb(229 229 229/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:.8}[hover~="after:bg-dotted-[primary-300/50]"]:hover:after{background-image:radial-gradient(circle at 1px 1px,oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/var(--un-background-opacity))1px,transparent 0);--un-background-opacity:%alpha}.transition-colors-none,.placeholder\:transition-colors-none::placeholder{transition-property:color,background-color,border-color,text-color;transition-duration:0s}@media (max-width:1023.9px){[min-w~="i.map(i=>d[i]); -import{bN as e}from"./index-DEhol03r.js";const t=e=>({...e,additionalProperties:!1,properties:e.properties==null?e.properties:Object.fromEntries(Object.entries(e.properties).map(([e,n])=>[e,typeof n==`object`&&n&&`type`in n&&n.type===`object`?t(n):n]))}),n=`https://xsai.js.org/docs/packages-top/xsschema#missing-dependencies`,r=async(e,t)=>{try{return await e}catch{throw Error(`xsschema: Missing dependencies "${t}". see ${n}`)}},i=async t=>{switch(t){case`arktype`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./arktype-C-GObzDh-BpxT6cs8.js`);return{getToJsonSchemaFn:e}},[]).then(async({getToJsonSchemaFn:e})=>e());case`effect`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./effect--zg3C1LQ-vwsYjMdd.js`);return{getToJsonSchemaFn:e}},__vite__mapDeps([0,1,2])).then(async({getToJsonSchemaFn:e})=>e());case`sury`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./sury-s6Akl-oc-BVkg7-7i.js`);return{getToJsonSchemaFn:e}},__vite__mapDeps([3,1,2])).then(async({getToJsonSchemaFn:e})=>e());case`valibot`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./valibot-DBCeetIe-C4FF_AvC.js`);return{getToJsonSchemaFn:e}},__vite__mapDeps([4,1,2])).then(async({getToJsonSchemaFn:e})=>e());case`zod`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./zod-Bw_60DVU-6ISn8BHm.js`);return{getToJsonSchemaFn:e}},__vite__mapDeps([5,1,2])).then(async({getToJsonSchemaFn:e})=>e());default:throw Error(`xsschema: Unsupported schema vendor "${t}". see https://xsai.js.org/docs/packages-top/xsschema#unsupported-schema-vendor`)}},a=async e=>i(e[`~standard`].vendor).then(async t=>t(e));export{n as b,t as c,a as d,r as e}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/effect--zg3C1LQ-D98JZhsZ.js","assets/index-D3Bcbz9S.js","assets/index-C3z_mh4Z.css","assets/sury-s6Akl-oc-BAZidK0W.js","assets/valibot-DBCeetIe-Ds1XEwxb.js","assets/zod-Bw_60DVU-BH3WFVfz.js"])))=>i.map(i=>d[i]); +import{bO as e}from"./index-D3Bcbz9S.js";const t=e=>({...e,additionalProperties:!1,properties:e.properties==null?e.properties:Object.fromEntries(Object.entries(e.properties).map(([e,n])=>[e,typeof n==`object`&&n&&`type`in n&&n.type===`object`?t(n):n]))}),n=`https://xsai.js.org/docs/packages-top/xsschema#missing-dependencies`,r=async(e,t)=>{try{return await e}catch{throw Error(`xsschema: Missing dependencies "${t}". see ${n}`)}},i=async t=>{switch(t){case`arktype`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./arktype-C-GObzDh-BpxT6cs8.js`);return{getToJsonSchemaFn:e}},[]).then(async({getToJsonSchemaFn:e})=>e());case`effect`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./effect--zg3C1LQ-D98JZhsZ.js`);return{getToJsonSchemaFn:e}},__vite__mapDeps([0,1,2])).then(async({getToJsonSchemaFn:e})=>e());case`sury`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./sury-s6Akl-oc-BAZidK0W.js`);return{getToJsonSchemaFn:e}},__vite__mapDeps([3,1,2])).then(async({getToJsonSchemaFn:e})=>e());case`valibot`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./valibot-DBCeetIe-Ds1XEwxb.js`);return{getToJsonSchemaFn:e}},__vite__mapDeps([4,1,2])).then(async({getToJsonSchemaFn:e})=>e());case`zod`:return e(async()=>{let{getToJsonSchemaFn:e}=await import(`./zod-Bw_60DVU-BH3WFVfz.js`);return{getToJsonSchemaFn:e}},__vite__mapDeps([5,1,2])).then(async({getToJsonSchemaFn:e})=>e());default:throw Error(`xsschema: Unsupported schema vendor "${t}". see https://xsai.js.org/docs/packages-top/xsschema#unsupported-schema-vendor`)}},a=async e=>i(e[`~standard`].vendor).then(async t=>t(e));export{n as b,t as c,a as d,r as e}; \ No newline at end of file diff --git a/assets/index-DEhol03r.js b/assets/index-D3Bcbz9S.js similarity index 65% rename from assets/index-DEhol03r.js rename to assets/index-D3Bcbz9S.js index 644697b313821dbd9092d922ca1946b57d6085aa..fe318bd70c8e8d1c50d7802960dc1b17fd1a3bab 100644 --- a/assets/index-DEhol03r.js +++ b/assets/index-D3Bcbz9S.js @@ -1,16 +1,16 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-DOtQQCA0.js","assets/HeaderLink-CwKWoudF.js","assets/HeaderLink-4n3ShASi.css","assets/settings-B2H4CbgS.js","assets/theme-color-D2aK6AFb.js","assets/merge-D5ueGMzg.js","assets/pages-B0nDC2KO.js","assets/AnimatedWave-CTK2lmxN.js","assets/Scenes-0TJqCS-r.js","assets/import-url-browser-CQxpIBxI.js","assets/duckdb-mvp-DkPAVKN8.js","assets/ibl-CbBD07sa.js","assets/dist-ByFcnk3K.js","assets/index-CAcLDIRJ-zzf_MFDO.js","assets/core-C5TqIlxQ.js","assets/airi-card-7HyqBFjt.js","assets/composables-C5AKp2DU.js","assets/Basic-D33XBiPI.js","assets/AnimatedWave-CVjfEg-M.css","assets/route-block-Dc_s4AGN.js","assets/hearing-EgcjzOdT.js","assets/background-gradient-blending-DjcTayq6.js","assets/browser-DlzSerl9.js","assets/BasicInputFile-DJjm73Ud.js","assets/background-gradient-blending-B88qVe8m.css","assets/background-removal-BsOGJCJr.js","assets/transformers.web-0yVxjCoi.js","assets/InputFile-BfCG4dBd.js","assets/chat-Dh3koUdS.js","assets/gesture-circle-BQ-DUzun.js","assets/image--p_SlIoG.js","assets/image-BhuwcwI9.css","assets/polaroid-D8Y-SKEd.js","assets/vibrant-C0NqPUU1.js","assets/settings-BAOMmq-8.js","assets/IconAnimation-C0TBccB2.js","assets/airi-card-DBOtd0Wi.js","assets/CardCreate-CjMUomRq.js","assets/CardCreationDialog-tosLd0cj.js","assets/CardCreationDialog-D2SzAqFy.css","assets/CardDetailDialog-CVyfYPDH.js","assets/DeleteCardDialog-BzH_7FHZ.js","assets/CardListItem-C9OC2Kwb.js","assets/CardCreate-PvY8y_OB.js","assets/CardCreationDialog-D08nGLG1.js","assets/CardDetailDialog-C8TrFwnS.js","assets/CardListItem-CqFaImDZ.js","assets/DeleteCardDialog-DZqTqZyu.js","assets/memory-BFWaJKIi.js","assets/models-B-HwYTDm.js","assets/icon-animation-B3otQp3y.js","assets/modules-C3qcmhYO.js","assets/consciousness-C62d2AXR.js","assets/hearing-pH404Jfn.js","assets/memory-long-term-B3xB1Aa2.js","assets/memory-short-term-Bfu17Wi_.js","assets/speech-CUBOmkDj.js","assets/Textarea-B_NArpfq.js","assets/providers-hE0BXvIH.js","assets/alibaba-cloud-model-studio-LoIwjmsd.js","assets/anthropic-FxqJ0IEb.js","assets/azure-ai-foundry-DnvAoQYB.js","assets/cloudflare-workers-ai-UXTCTqVp.js","assets/deepseek-Clmy1xD5.js","assets/elevenlabs-By1-etWk.js","assets/featherless-ai-EUoqRwKj.js","assets/fireworks-ai-uNnJ5PQ2.js","assets/google-generative-ai-Dm_xZ9XG.js","assets/index-tts-vllm-DiOOxY2G.js","assets/lm-studio-BlGolAfa.js","assets/microsoft-speech-B96W7j45.js","assets/mistral-ai-7pN66eWP.js","assets/modelscope-B_MqBJUD.js","assets/moonshot-ai-MEHmQzUr.js","assets/novita-ai-Dy87Q0Fq.js","assets/ollama-B6ruE_gL.js","assets/openai-V9v0fYc-.js","assets/openai-audio-speech-CkVCP_hU.js","assets/openai-audio-transcription-Cf4-ZOqB.js","assets/openai-compatible-CFTIqNWo.js","assets/openai-compatible-audio-speech-MBU1m6DU.js","assets/openai-compatible-audio-transcription-DM5ex1XJ.js","assets/openrouter-ai-BV_8ZWp-.js","assets/player2-4aZfBz8x.js","assets/player2-speech-dVoWj_im.js","assets/together-ai-buYw6IAc.js","assets/volcengine-CeC_f95I.js","assets/xai-V5fT9RBo.js","assets/scene-LwMjiDcr.js","assets/system-CqsiZkZC.js","assets/color-scheme-CNUaazxA.js","assets/color-scheme-xEXZhvva.css","assets/developer-MrKBC0bX.js","assets/general-CKI4PH85.js","assets/stage-B7OEWfD5.js","assets/filter-message-Bsrrp0SL.js","assets/delays-CxQxu-mq.js","assets/emotions-CfSs7BF-.js","assets/messages-BAsmsxLz.js","assets/angular-html-RKLz1hEo.js","assets/angular-html-CyJSR_gn.js","assets/html-ClvIGx7Q.js","assets/css-CUmk-8yG.js","assets/javascript-BHV0xWwZ.js","assets/angular-ts-BI4FB_fP.js","assets/scss-DWKy_Vxy.js","assets/apl-C6UhYxwp.js","assets/java-DGaayzZX.js","assets/json-Bl0PyjOe.js","assets/xml-C--Xrksk.js","assets/astro-BDo1Nf1q.js","assets/postcss-B4kqGpKO.js","assets/tsx-COMncpjM.js","assets/typescript-Ca-c9hkl.js","assets/blade-MM1ivGYS.js","assets/html-derivative-B47xzc0X.js","assets/sql-Bpxe3xlr.js","assets/bsl-_9kqzR--.js","assets/sdbl-ykict4uj.js","assets/c-1Hxpehpy.js","assets/c-CC57zn34.js","assets/cairo-Bl9HOvxV.js","assets/python-DnEQF7uk.js","assets/cmake-yU80Of_C.js","assets/cmake-BN_txmqT.js","assets/cobol-CYoQMlYW.js","assets/coffee-KjboF6NF.js","assets/cpp-6uhgRkJM.js","assets/cpp-CaNeIk_V.js","assets/glsl-DmtRAr4x.js","assets/regexp-CsWoiU4Y.js","assets/crystal-DJHo638b.js","assets/shellscript-QmjC9N2f.js","assets/csharp-CMLbDB-w.js","assets/csharp-DgwtqtHY.js","assets/css-CXhRAQ2n.js","assets/diff-NHAsyJhv.js","assets/diff-Cy9g3Rky.js","assets/edge-p-ARpia1.js","assets/elixir-CJLMrTRs.js","assets/elm-BMVz0nRN.js","assets/erb-BbmM0IYl.js","assets/graphql-CEQ_sM75.js","assets/jsx-BX69MavX.js","assets/haml-xkiyVEW7.js","assets/lua-BgW16NFn.js","assets/ruby-HnI1a5UD.js","assets/yaml-C_c7RV0m.js","assets/erlang-B14SbhrR.js","assets/markdown-DZLiWcN8.js","assets/fortran-fixed-form-bw89GeE4.js","assets/fortran-free-form-BdnWo7aQ.js","assets/fortran-free-form-CBlLX79G.js","assets/fsharp-Hgh5PYQA.js","assets/gdresource-CUzI-cUQ.js","assets/gdscript-Bc_8ex5_.js","assets/gdshader-sYAq8WNl.js","assets/gdscript-F11G2579.js","assets/gdshader-DY7pnO4l.js","assets/git-commit-BpZ9iDq0.js","assets/git-rebase-B7h1d5d5.js","assets/glimmer-js-Bu85AOc8.js","assets/glimmer-ts-C-Kl47e9.js","assets/glsl-DYKkOYZW.js","assets/go-C__IfQT1.js","assets/go-Dd-p9qS6.js","assets/graphql-Dqagbjjq.js","assets/hack-Bu92NL2m.js","assets/haml-DYU5Mqin.js","assets/handlebars-DKMgiIbq.js","assets/haxe-CKt-jgKz.js","assets/haxe-ZR_PTdzp.js","assets/hlsl-B3snUh6r.js","assets/hlsl-BlKseEMV.js","assets/html-BZoqaXf0.js","assets/html-derivative-DKc8xbJR.js","assets/http-MSHrrwRY.js","assets/hxml-Dh5DeIFj.js","assets/java-Z7KQ3nEV.js","assets/javascript-CoFC1LC_.js","assets/jinja-DExrtk5M.js","assets/jison-QYFXoTsf.js","assets/json-BECfSVJ5.js","assets/jsx-Ke7R2tcQ.js","assets/julia-CFG6gbIc.js","assets/r-Cfjf0OZu.js","assets/latex-JBMJRhlk.js","assets/tex-BuVSzSIb.js","assets/less-BDKf7FXw.js","assets/less-a0nnQRrN.js","assets/liquid-BffiuKJa.js","assets/lua-DceDs3NN.js","assets/markdown-YcIGwGaY.js","assets/marko-BuqmDWiT.js","assets/mdc-XZ5XS5G8.js","assets/nginx-B9yym_4p.js","assets/nim-DwEagdh2.js","assets/perl-C2GmwEkq.js","assets/php-DwWkh3Qy.js","assets/php-DoTdIXPE.js","assets/postcss-DpZPffaJ.js","assets/pug-R8zhNC2_.js","assets/python-ij4LvnkA.js","assets/qml-BVEv2gLp.js","assets/r-CI_8QuDg.js","assets/razor-BXrpcGrf.js","assets/regexp-CEd_PNob.js","assets/rst-BbMmENyw.js","assets/ruby-DnW9M3dC.js","assets/sas-Bbqf5T6B.js","assets/scss-Dj-dd4pv.js","assets/sdbl-DiSKCflq.js","assets/shaderlab-niXJj9LB.js","assets/shellscript-CTDFJZE_.js","assets/shellsession-BMRZY_iB.js","assets/soy-oogrYg0r.js","assets/sparql-CZdnCkl8.js","assets/turtle-CrbhJFON.js","assets/sql-YT8d_55s.js","assets/stata-DKoKZwk6.js","assets/stylus-BfFgcVOV.js","assets/stylus-C1TiPOGE.js","assets/svelte-BCyo1H28.js","assets/templ-UHustcM7.js","assets/tex-CtKYC-ji.js","assets/ts-tags-BtFLKwfC.js","assets/tsx-5zUN_IgM.js","assets/turtle-1Y15hDNk.js","assets/twig-CpPqtXbv.js","assets/typescript-BOZhZjjY.js","assets/vue-C_Xq0ko2.js","assets/vue-DCM-hQ7D.js","assets/vue-html-DKDWA0fy.js","assets/vue-vine-Doq9x-V7.js","assets/xml-wHYwXszZ.js","assets/xsl-7XpO9mGM.js","assets/yaml-Bsm5rW0k.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-Dt3jyffF.js","assets/HeaderLink-CWxXVf7j.js","assets/HeaderLink-4n3ShASi.css","assets/settings-DYXa79d5.js","assets/theme-color-CqKmMBmH.js","assets/merge-D5ueGMzg.js","assets/pages-BO69Owbc.js","assets/AnimatedWave-D3VizsVF.js","assets/Scenes-CKSNtwSU.js","assets/import-url-browser-CQxpIBxI.js","assets/duckdb-mvp-DkPAVKN8.js","assets/ibl-CoXg6NDS.js","assets/dist-DInrA4pj.js","assets/index-CAcLDIRJ-D76TFz33.js","assets/core-C5TqIlxQ.js","assets/airi-card-CObXZhjH.js","assets/composables-Tp0cITw9.js","assets/Basic-IbpirTdD.js","assets/AnimatedWave-CVjfEg-M.css","assets/route-block-Dc_s4AGN.js","assets/hearing-BXMZCHIN.js","assets/background-gradient-blending-COcEL_ul.js","assets/browser-DlzSerl9.js","assets/BasicInputFile-DP8wr1m6.js","assets/background-gradient-blending-B88qVe8m.css","assets/background-removal-B9nXYjVG.js","assets/transformers.web-Dd3aeuYz.js","assets/InputFile-Bx1X59Ey.js","assets/chat-Cp9xu-SE.js","assets/gesture-circle-DW4NEEG3.js","assets/image-CD7wsU_e.js","assets/image-BhuwcwI9.css","assets/polaroid-CKTdBCLi.js","assets/vibrant-CCIMjOyP.js","assets/settings-Cvdoq90V.js","assets/IconAnimation-CpQ8Hyb3.js","assets/airi-card-BjmJX0Df.js","assets/CardCreate-kEgCBYa3.js","assets/CardCreationDialog-K2uIVETx.js","assets/CardCreationDialog-D2SzAqFy.css","assets/CardDetailDialog-Bhvhe9Mf.js","assets/DeleteCardDialog-DnHrNX0U.js","assets/CardListItem-qNOu7TJN.js","assets/CardCreate-Dr2_R_p4.js","assets/CardCreationDialog-nXxRyLy1.js","assets/CardDetailDialog-Do3bK3_b.js","assets/CardListItem-CLD9xvv2.js","assets/DeleteCardDialog-Dhf89jrW.js","assets/memory-DUTQ1GLj.js","assets/models-D7u6cTwR.js","assets/icon-animation-CL2bLS_O.js","assets/modules-HikmL5Bk.js","assets/consciousness-mFeV5_YA.js","assets/hearing-YvgT5AIO.js","assets/memory-long-term-Yt8aawSw.js","assets/memory-short-term-DS04Epul.js","assets/speech-CE8U5AXR.js","assets/Textarea-CCCcUNHl.js","assets/providers-Du_G6qMf.js","assets/alibaba-cloud-model-studio-ey2Rpach.js","assets/anthropic-BA1O0Jc0.js","assets/azure-ai-foundry-C1o9ptFu.js","assets/cloudflare-workers-ai-CdzoiEHd.js","assets/deepseek-CbhRF9iO.js","assets/elevenlabs-CaYC4yGw.js","assets/featherless-ai-DDuh-ALV.js","assets/fireworks-ai-XKOYd2IG.js","assets/google-generative-ai-Cnho5aZ0.js","assets/index-tts-vllm-BRY6l5rd.js","assets/lm-studio-CvN0s9DC.js","assets/microsoft-speech-BC5TiMaI.js","assets/mistral-ai-0-WzsJ4f.js","assets/modelscope-eu2EjaoV.js","assets/moonshot-ai-DLcorUbp.js","assets/novita-ai-CVdLD9kp.js","assets/ollama-BX8me0Bl.js","assets/openai-BeGAAHfp.js","assets/openai-audio-speech-pkWXUv1i.js","assets/openai-audio-transcription-DLiqCuDl.js","assets/openai-compatible-BZeCaJly.js","assets/openai-compatible-audio-speech-CwdFGeuQ.js","assets/openai-compatible-audio-transcription-BZNHTpx2.js","assets/openrouter-ai-C0dlS-yl.js","assets/player2-BlBuUwzi.js","assets/player2-speech-D_d58W6a.js","assets/together-ai-awCy7DTa.js","assets/volcengine-o5fMggyS.js","assets/xai-CyydJLWz.js","assets/scene-BBXD28Rs.js","assets/system-Cj_-kLDI.js","assets/color-scheme-BElIJRed.js","assets/color-scheme-xEXZhvva.css","assets/developer-lge657PF.js","assets/general-xS0QHfzZ.js","assets/stage-BKK7k1fe.js","assets/filter-message-oB4BRm9w.js","assets/delays-R-jzJk-u.js","assets/emotions-Jhx86Tb2.js","assets/messages-Bu-Aploe.js","assets/angular-html-RKLz1hEo.js","assets/angular-html-CyJSR_gn.js","assets/html-ClvIGx7Q.js","assets/css-CUmk-8yG.js","assets/javascript-BHV0xWwZ.js","assets/angular-ts-BI4FB_fP.js","assets/scss-DWKy_Vxy.js","assets/apl-C6UhYxwp.js","assets/java-DGaayzZX.js","assets/json-Bl0PyjOe.js","assets/xml-C--Xrksk.js","assets/astro-BDo1Nf1q.js","assets/postcss-B4kqGpKO.js","assets/tsx-COMncpjM.js","assets/typescript-Ca-c9hkl.js","assets/blade-MM1ivGYS.js","assets/html-derivative-B47xzc0X.js","assets/sql-Bpxe3xlr.js","assets/bsl-_9kqzR--.js","assets/sdbl-ykict4uj.js","assets/c-1Hxpehpy.js","assets/c-CC57zn34.js","assets/cairo-Bl9HOvxV.js","assets/python-DnEQF7uk.js","assets/cmake-yU80Of_C.js","assets/cmake-BN_txmqT.js","assets/cobol-CYoQMlYW.js","assets/coffee-KjboF6NF.js","assets/cpp-6uhgRkJM.js","assets/cpp-CaNeIk_V.js","assets/glsl-DmtRAr4x.js","assets/regexp-CsWoiU4Y.js","assets/crystal-DJHo638b.js","assets/shellscript-QmjC9N2f.js","assets/csharp-CMLbDB-w.js","assets/csharp-DgwtqtHY.js","assets/css-CXhRAQ2n.js","assets/diff-NHAsyJhv.js","assets/diff-Cy9g3Rky.js","assets/edge-p-ARpia1.js","assets/elixir-CJLMrTRs.js","assets/elm-BMVz0nRN.js","assets/erb-BbmM0IYl.js","assets/graphql-CEQ_sM75.js","assets/jsx-BX69MavX.js","assets/haml-xkiyVEW7.js","assets/lua-BgW16NFn.js","assets/ruby-HnI1a5UD.js","assets/yaml-C_c7RV0m.js","assets/erlang-B14SbhrR.js","assets/markdown-DZLiWcN8.js","assets/fortran-fixed-form-bw89GeE4.js","assets/fortran-free-form-BdnWo7aQ.js","assets/fortran-free-form-CBlLX79G.js","assets/fsharp-Hgh5PYQA.js","assets/gdresource-CUzI-cUQ.js","assets/gdscript-Bc_8ex5_.js","assets/gdshader-sYAq8WNl.js","assets/gdscript-F11G2579.js","assets/gdshader-DY7pnO4l.js","assets/git-commit-BpZ9iDq0.js","assets/git-rebase-B7h1d5d5.js","assets/glimmer-js-Bu85AOc8.js","assets/glimmer-ts-C-Kl47e9.js","assets/glsl-DYKkOYZW.js","assets/go-C__IfQT1.js","assets/go-Dd-p9qS6.js","assets/graphql-Dqagbjjq.js","assets/hack-Bu92NL2m.js","assets/haml-DYU5Mqin.js","assets/handlebars-DKMgiIbq.js","assets/haxe-CKt-jgKz.js","assets/haxe-ZR_PTdzp.js","assets/hlsl-B3snUh6r.js","assets/hlsl-BlKseEMV.js","assets/html-BZoqaXf0.js","assets/html-derivative-DKc8xbJR.js","assets/http-MSHrrwRY.js","assets/hxml-Dh5DeIFj.js","assets/java-Z7KQ3nEV.js","assets/javascript-CoFC1LC_.js","assets/jinja-DExrtk5M.js","assets/jison-QYFXoTsf.js","assets/json-BECfSVJ5.js","assets/jsx-Ke7R2tcQ.js","assets/julia-CFG6gbIc.js","assets/r-Cfjf0OZu.js","assets/latex-JBMJRhlk.js","assets/tex-BuVSzSIb.js","assets/less-BDKf7FXw.js","assets/less-a0nnQRrN.js","assets/liquid-BffiuKJa.js","assets/lua-DceDs3NN.js","assets/markdown-YcIGwGaY.js","assets/marko-BuqmDWiT.js","assets/mdc-XZ5XS5G8.js","assets/nginx-B9yym_4p.js","assets/nim-DwEagdh2.js","assets/perl-C2GmwEkq.js","assets/php-DwWkh3Qy.js","assets/php-DoTdIXPE.js","assets/postcss-DpZPffaJ.js","assets/pug-R8zhNC2_.js","assets/python-ij4LvnkA.js","assets/qml-BVEv2gLp.js","assets/r-CI_8QuDg.js","assets/razor-BXrpcGrf.js","assets/regexp-CEd_PNob.js","assets/rst-BbMmENyw.js","assets/ruby-DnW9M3dC.js","assets/sas-Bbqf5T6B.js","assets/scss-Dj-dd4pv.js","assets/sdbl-DiSKCflq.js","assets/shaderlab-niXJj9LB.js","assets/shellscript-CTDFJZE_.js","assets/shellsession-BMRZY_iB.js","assets/soy-oogrYg0r.js","assets/sparql-CZdnCkl8.js","assets/turtle-CrbhJFON.js","assets/sql-YT8d_55s.js","assets/stata-DKoKZwk6.js","assets/stylus-BfFgcVOV.js","assets/stylus-C1TiPOGE.js","assets/svelte-BCyo1H28.js","assets/templ-UHustcM7.js","assets/tex-CtKYC-ji.js","assets/ts-tags-BtFLKwfC.js","assets/tsx-5zUN_IgM.js","assets/turtle-1Y15hDNk.js","assets/twig-CpPqtXbv.js","assets/typescript-BOZhZjjY.js","assets/vue-C_Xq0ko2.js","assets/vue-DCM-hQ7D.js","assets/vue-html-DKDWA0fy.js","assets/vue-vine-Doq9x-V7.js","assets/xml-wHYwXszZ.js","assets/xsl-7XpO9mGM.js","assets/yaml-Bsm5rW0k.js"])))=>i.map(i=>d[i]); var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>l(t({},`__esModule`,{value:!0}),e),f=e=>t=>u(t.default,e),p=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e){if(t.type!==`childList`)continue;for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(); /** * @vue/shared v3.5.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ -function m(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}const h={},g=[],_=()=>{},v=()=>!1,y=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),b=e=>e.startsWith(`onUpdate:`),x=Object.assign,S=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},C=Object.prototype.hasOwnProperty,w=(e,t)=>C.call(e,t),T=Array.isArray,E=e=>ne(e)===`[object Map]`,D=e=>ne(e)===`[object Set]`,O=e=>ne(e)===`[object Date]`,k=e=>ne(e)===`[object RegExp]`,A=e=>typeof e==`function`,j=e=>typeof e==`string`,M=e=>typeof e==`symbol`,ee=e=>typeof e==`object`&&!!e,te=e=>(ee(e)||A(e))&&A(e.then)&&A(e.catch),N=Object.prototype.toString,ne=e=>N.call(e),re=e=>ne(e).slice(8,-1),ie=e=>ne(e)===`[object Object]`,ae=e=>j(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,oe=m(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),se=e=>{let t=Object.create(null);return(n=>{let r=t[n];return r||(t[n]=e(n))})},ce=/-\w/g,le=se(e=>e.replace(ce,e=>e.slice(1).toUpperCase())),ue=/\B([A-Z])/g,de=se(e=>e.replace(ue,`-$1`).toLowerCase()),fe=se(e=>e.charAt(0).toUpperCase()+e.slice(1)),pe=se(e=>{let t=e?`on${fe(e)}`:``;return t}),P=(e,t)=>!Object.is(e,t),me=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ge=e=>{let t=parseFloat(e);return isNaN(t)?e:t},_e=e=>{let t=j(e)?Number(e):NaN;return isNaN(t)?e:t},ve=()=>typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},ye=m(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function be(e){if(T(e)){let t={};for(let n=0;n{if(e){let n=e.split(Se);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Te(e){let t=``;if(j(e))t=e;else if(T(e))for(let n=0;nje(e,t))}const Ne=e=>!!(e&&e.__v_isRef===!0),Pe=e=>j(e)?e:e==null?``:T(e)||ee(e)&&(e.toString===N||!A(e.toString))?Ne(e)?Pe(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Ne(t)?Fe(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:M(t)?Ie(t):ee(t)&&!T(t)&&!ie(t)?String(t):t,Ie=(e,t=``)=>{var n;return M(e)?`Symbol(${(n=e.description)??t})`:e};function Le(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}let Re;var ze=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Re,!e&&Re&&(this.index=(Re.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0&&(Re=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(Je){let e=Je;for(Je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;qe;){let t=qe;for(qe=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Qe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $e(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),nt(r),rt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function et(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(tt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function tt(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===dt)||(e.globalVersion=dt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!et(e))))return;e.flags|=2;let t=e.dep,n=Ue,r=ot;Ue=e,ot=!0;try{Qe(e);let n=e.fn(e._value);(t.version===0||P(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Ue=n,ot=r,$e(e),e.flags&=-3}}function nt(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)nt(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function rt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function it(e,t){e.effect instanceof Ge&&(e=e.effect.fn);let n=new Ge(e);t&&x(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function at(e){e.effect.stop()}let ot=!0;const st=[];function ct(){st.push(ot),ot=!1}function lt(){let e=st.pop();ot=e===void 0?!0:e}function ut(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Ue;Ue=void 0;try{t()}finally{Ue=e}}}let dt=0;var ft=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},pt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ue||!ot||Ue===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ue)t=this.activeLink=new ft(Ue,this),Ue.deps?(t.prevDep=Ue.depsTail,Ue.depsTail.nextDep=t,Ue.depsTail=t):Ue.deps=Ue.depsTail=t,mt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ue.depsTail,t.nextDep=void 0,Ue.depsTail.nextDep=t,Ue.depsTail=t,Ue.deps===t&&(Ue.deps=e)}return t}trigger(e){this.version++,dt++,this.notify(e)}notify(e){Xe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ze()}}};function mt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)mt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ht=new WeakMap,gt=Symbol(``),_t=Symbol(``),vt=Symbol(``);function yt(e,t,n){if(ot&&Ue){let t=ht.get(e);t||ht.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new pt),r.map=t,r.key=n),r.track()}}function bt(e,t,n,r,i,a){let o=ht.get(e);if(!o){dt++;return}let s=e=>{e&&e.trigger()};if(Xe(),t===`clear`)o.forEach(s);else{let i=T(e),a=i&&ae(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===vt||!M(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(vt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(gt)),E(e)&&s(o.get(_t)));break;case`delete`:i||(s(o.get(gt)),E(e)&&s(o.get(_t)));break;case`set`:E(e)&&s(o.get(gt));break}}Ze()}function xt(e,t){let n=ht.get(e);return n&&n.get(t)}function St(e){let t=sn(e);return t===e?t:(yt(t,`iterate`,vt),an(e)?t:t.map(ln))}function Ct(e){return yt(e=sn(e),`iterate`,vt),e}const wt={__proto__:null,[Symbol.iterator](){return Tt(this,Symbol.iterator,ln)},concat(...e){return St(this).concat(...e.map(e=>T(e)?St(e):e))},entries(){return Tt(this,`entries`,e=>(e[1]=ln(e[1]),e))},every(e,t){return Dt(this,`every`,e,t,void 0,arguments)},filter(e,t){return Dt(this,`filter`,e,t,e=>e.map(ln),arguments)},find(e,t){return Dt(this,`find`,e,t,ln,arguments)},findIndex(e,t){return Dt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Dt(this,`findLast`,e,t,ln,arguments)},findLastIndex(e,t){return Dt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Dt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return kt(this,`includes`,e)},indexOf(...e){return kt(this,`indexOf`,e)},join(e){return St(this).join(e)},lastIndexOf(...e){return kt(this,`lastIndexOf`,e)},map(e,t){return Dt(this,`map`,e,t,void 0,arguments)},pop(){return At(this,`pop`)},push(...e){return At(this,`push`,e)},reduce(e,...t){return Ot(this,`reduce`,e,t)},reduceRight(e,...t){return Ot(this,`reduceRight`,e,t)},shift(){return At(this,`shift`)},some(e,t){return Dt(this,`some`,e,t,void 0,arguments)},splice(...e){return At(this,`splice`,e)},toReversed(){return St(this).toReversed()},toSorted(e){return St(this).toSorted(e)},toSpliced(...e){return St(this).toSpliced(...e)},unshift(...e){return At(this,`unshift`,e)},values(){return Tt(this,`values`,ln)}};function Tt(e,t,n){let r=Ct(e),i=r[t]();return r!==e&&!an(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.value&&=n(e.value),e}),i}const Et=Array.prototype;function Dt(e,t,n,r,i,a){let o=Ct(e),s=o!==e&&!an(e),c=o[t];if(c!==Et[t]){let t=c.apply(e,a);return s?ln(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ln(t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Ot(e,t,n,r){let i=Ct(e),a=n;return i!==e&&(an(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,ln(r),i,e)}),i[t](a,...r)}function kt(e,t,n){let r=sn(e);yt(r,`iterate`,vt);let i=r[t](...n);return(i===-1||i===!1)&&on(n[0])?(n[0]=sn(n[0]),r[t](...n)):i}function At(e,t,n=[]){ct(),Xe();let r=sn(e)[t].apply(e,n);return Ze(),lt(),r}const jt=m(`__proto__,__v_isRef,__isVue`),Mt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(M));function Nt(e){M(e)||(e=String(e));let t=sn(this);return yt(t,`has`,e),t.hasOwnProperty(e)}var Pt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Jt:qt:i?Kt:Gt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=T(e);if(!r){let e;if(a&&(e=wt[t]))return e;if(t===`hasOwnProperty`)return Nt}let o=Reflect.get(e,t,dn(e)?e:n);return(M(t)?Mt.has(t):jt(t))||(r||yt(e,`get`,t),i)?o:dn(o)?a&&ae(t)?o:o.value:ee(o)?r?$t(o):Zt(o):o}},Ft=class extends Pt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){let t=rn(i);if(!an(n)&&!rn(n)&&(i=sn(i),n=sn(n)),!T(e)&&dn(i)&&!dn(n))return t||(i.value=n),!0}let a=T(e)&&ae(t)?Number(t)e,Vt=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n){return function(...r){let i=this.__v_raw,a=sn(i),o=E(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Bt:t?un:ln;return!t&&yt(a,`iterate`,c?_t:gt),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ut(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function tee(e,t){let n={get(n){let r=this.__v_raw,i=sn(r),a=sn(n);e||(P(n,a)&&yt(i,`get`,n),yt(i,`get`,a));let{has:o}=Vt(i),s=t?Bt:e?un:ln;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&yt(sn(t),`iterate`,gt),t.size},has(t){let n=this.__v_raw,r=sn(n),i=sn(t);return e||(P(t,i)&&yt(r,`has`,t),yt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=sn(a),s=t?Bt:e?un:ln;return!e&&yt(o,`iterate`,gt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};x(n,e?{add:Ut(`add`),set:Ut(`set`),delete:Ut(`delete`),clear:Ut(`clear`)}:{add(e){!t&&!an(e)&&!rn(e)&&(e=sn(e));let n=sn(this),r=Vt(n),i=r.has.call(n,e);return i||(n.add(e),bt(n,`add`,e,e)),this},set(e,n){!t&&!an(n)&&!rn(n)&&(n=sn(n));let r=sn(this),{has:i,get:a}=Vt(r),o=i.call(r,e);o||=(e=sn(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?P(n,s)&&bt(r,`set`,e,n,s):bt(r,`add`,e,n),this},delete(e){let t=sn(this),{has:n,get:r}=Vt(t),i=n.call(t,e);i||=(e=sn(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&bt(t,`delete`,e,void 0,a),o},clear(){let e=sn(this),t=e.size!==0,n=e.clear();return t&&bt(e,`clear`,void 0,void 0,void 0),n}});let r=[`keys`,`values`,`entries`,Symbol.iterator];return r.forEach(r=>{n[r]=Ht(r,e,t)}),n}function Wt(e,t){let n=tee(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(w(n,r)&&r in t?n:t,r,i)}const nee={get:Wt(!1,!1)},ree={get:Wt(!1,!0)},iee={get:Wt(!0,!1)},aee={get:Wt(!0,!0)},Gt=new WeakMap,Kt=new WeakMap,qt=new WeakMap,Jt=new WeakMap;function Yt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Xt(e){return e.__v_skip||!Object.isExtensible(e)?0:Yt(re(e))}function Zt(e){return rn(e)?e:tn(e,!1,Lt,nee,Gt)}function Qt(e){return tn(e,!1,Rt,ree,Kt)}function $t(e){return tn(e,!0,eee,iee,qt)}function en(e){return tn(e,!0,zt,aee,Jt)}function tn(e,t,n,r,i){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Xt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function nn(e){return rn(e)?nn(e.__v_raw):!!(e&&e.__v_isReactive)}function rn(e){return!!(e&&e.__v_isReadonly)}function an(e){return!!(e&&e.__v_isShallow)}function on(e){return e?!!e.__v_raw:!1}function sn(e){let t=e&&e.__v_raw;return t?sn(t):e}function cn(e){return!w(e,`__v_skip`)&&Object.isExtensible(e)&&he(e,`__v_skip`,!0),e}const ln=e=>ee(e)?Zt(e):e,un=e=>ee(e)?$t(e):e;function dn(e){return e?e.__v_isRef===!0:!1}function F(e){return pn(e,!1)}function fn(e){return pn(e,!0)}function pn(e,t){return dn(e)?e:new oee(e,t)}var oee=class{constructor(e,t){this.dep=new pt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:sn(e),this._value=t?e:ln(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||an(e)||rn(e);e=n?e:sn(e),P(e,t)&&(this._rawValue=e,this._value=n?e:ln(e),this.dep.trigger())}};function see(e){e.dep&&e.dep.trigger()}function I(e){return dn(e)?e.value:e}function mn(e){return A(e)?e():I(e)}const cee={get:(e,t,n)=>t===`__v_raw`?e:I(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return dn(i)&&!dn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function hn(e){return nn(e)?e:new Proxy(e,cee)}var lee=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new pt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function gn(e){return new lee(e)}function _n(e){let t=T(e)?Array(e.length):{};for(let n in e)t[n]=yn(e,n);return t}var uee=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return xt(sn(this._object),this._key)}},dee=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function vn(e,t,n){return dn(e)?e:A(e)?new dee(e):ee(e)&&arguments.length>1?yn(e,t,n):F(e)}function yn(e,t,n){let r=e[t];return dn(r)?r:new uee(e,t,n)}var bn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new pt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=dt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return Ye(this,!0),!0}get value(){let e=this.dep.track();return tt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function xn(e,t,n=!1){let r,i;A(e)?r=e:(r=e.get,i=e.set);let a=new bn(r,i,n);return a}const Sn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Cn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},wn={},Tn=new WeakMap;let En;function Dn(){return En}function On(e,t=!1,n=En){if(n){let t=Tn.get(n);t||Tn.set(n,t=[]),t.push(e)}}function kn(e,t,n=h){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:an(e)||i===!1||i===0?An(e,1):An(e),u,d,f,p,m=!1,g=!1;if(dn(e)?(d=()=>e.value,m=an(e)):nn(e)?(d=()=>l(e),m=!0):T(e)?(g=!0,m=e.some(e=>nn(e)||an(e)),d=()=>e.map(e=>{if(dn(e))return e.value;if(nn(e))return l(e);if(A(e))return c?c(e,2):e()})):d=A(e)?t?c?()=>c(e,2):e:()=>{if(f){ct();try{f()}finally{lt()}}let t=En;En=u;try{return c?c(e,3,[p]):e(p)}finally{En=t}}:_,t&&i){let e=d,t=i===!0?1/0:i;d=()=>An(e(),t)}let v=Ve(),y=()=>{u.stop(),v&&v.active&&S(v.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),y()}}let b=g?Array(e.length).fill(wn):wn,x=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||m||(g?e.some((e,t)=>P(e,b[t])):P(e,b))){f&&f();let n=En;En=u;try{let n=[e,b===wn?void 0:g&&b[0]===wn?[]:b,p];b=e,c?c(t,3,n):t(...n)}finally{En=n}}}else u.run()};return s&&s(x),u=new Ge(d),u.scheduler=o?()=>o(x,!1):x,p=e=>On(e,!1,u),f=u.onStop=()=>{let e=Tn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();Tn.delete(u)}},t?r?x(!0):b=u.run():o?o(x.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function An(e,t=1/0,n){if(t<=0||!ee(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,dn(e))An(e.value,t,n);else if(T(e))for(let r=0;r{An(e,t,n)});else if(ie(e)){for(let r in e)An(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&An(e[r],t,n)}return e}const jn=[];function Mn(e){jn.push(e)}function Nn(){jn.pop()}function Pn(e,t){}const fee={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},pee={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function Fn(e,t,n,r){try{return r?e(...r):e()}catch(e){Ln(e,t,n)}}function In(e,t,n,r){if(A(e)){let i=Fn(e,t,n,r);return i&&te(i)&&i.catch(e=>{Ln(e,t,n)}),i}if(T(e)){let i=[];for(let a=0;a>>1,i=Rn[r],a=Zn(i);a=Zn(n)?Rn.push(e):Rn.splice(hee(t),0,e),e.flags|=1,qn()}}function qn(){Wn||=Un.then(Qn)}function Jn(e){T(e)?Bn.push(...e):Vn&&e.id===-1?Vn.splice(Hn+1,0,e):e.flags&1||(Bn.push(e),e.flags|=1),qn()}function Yn(e,t,n=zn+1){for(;nZn(e)-Zn(t));if(Bn.length=0,Vn){Vn.push(...e);return}for(Vn=e,Hn=0;Hne.id==null?e.flags&2?-1:1/0:e.id;function Qn(e){try{for(zn=0;zn$n.emit(e,...t)),er=[];else if(typeof window<`u`&&window.HTMLElement&&!(r=(n=window.navigator)?.userAgent)?.includes(`jsdom`)){let e=t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[];e.push(e=>{tr(e,t)}),setTimeout(()=>{$n||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,er=[])},3e3)}else er=[]}let nr=null,rr=null;function ir(e){let t=nr;return nr=e,rr=e&&e.type.__scopeId||null,t}function ar(e){rr=e}function or(){rr=null}const sr=e=>L;function L(e,t=nr,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Eo(-1);let i=ir(t),a;try{a=e(...n)}finally{ir(i),r._d&&Eo(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function cr(e,t){if(nr===null)return e;let n=ls(nr),r=e.dirs||=[];for(let e=0;ee.__isTeleport,fr=e=>e&&(e.disabled||e.disabled===``),pr=e=>e&&(e.defer||e.defer===``),mr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,hr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,gr=(e,t)=>{let n=e&&e.to;if(j(n))if(t){let e=t(n);return e}else return null;else return n},_r={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g}}=l,_=fr(t.props),{shapeFlag:v,children:y,dynamicChildren:b}=t;if(e==null){let e=t.el=h(``),l=t.anchor=h(``);p(e,n,r),p(l,n,r);let d=(e,t)=>{v&16&&(i&&i.isCE&&(i.ce._teleportTarget=e),u(y,e,t,i,a,o,s,c))},f=()=>{let e=t.target=gr(t.props,m),n=xr(e,t,h,p);e&&(o!==`svg`&&mr(e)?o=`svg`:o!==`mathml`&&hr(e)&&(o=`mathml`),_||(d(e,n),br(t,!1)))};_&&(d(n,l),br(t,!0)),pr(t.props)?(t.el.__isMounted=!1,wa(()=>{f(),delete t.el.__isMounted},a)):f()}else{if(pr(t.props)&&e.el.__isMounted===!1){wa(()=>{_r.process(e,t,n,r,i,a,o,s,c,l)},a);return}t.el=e.el,t.targetStart=e.targetStart;let u=t.anchor=e.anchor,p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=fr(e.props),v=g?n:p,y=g?u:h;if(o===`svg`||mr(p)?o=`svg`:(o===`mathml`||hr(p))&&(o=`mathml`),b?(f(e.dynamicChildren,b,v,i,a,o,s),ja(e,t,!0)):c||d(e,t,v,y,i,a,o,s,!1),_)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vr(t,n,u,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=gr(t.props,m);e&&vr(t,e,null,l,0)}else g&&vr(t,p,h,l,1);br(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e;if(d&&(i(l),i(u)),a&&i(c),o&16){let e=a||!fr(f);for(let i=0;i{e.isMounted=!0}),mi(()=>{e.isUnmounting=!0}),e}const Tr=[Function,Array],Er={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tr,onEnter:Tr,onAfterEnter:Tr,onEnterCancelled:Tr,onBeforeLeave:Tr,onLeave:Tr,onAfterLeave:Tr,onLeaveCancelled:Tr,onBeforeAppear:Tr,onAppear:Tr,onAfterAppear:Tr,onAppearCancelled:Tr},Dr=e=>{let t=e.subTree;return t.component?Dr(t.component):t},_ee={name:`BaseTransition`,props:Er,setup(e,{slots:t}){let n=Go(),r=wr();return()=>{let i=t.default&&Fr(t.default(),!0);if(!i||!i.length)return;let a=Or(i),o=sn(e),{mode:s}=o;if(r.isLeaving)return Mr(a);let c=Nr(a);if(!c)return Mr(a);let l=jr(c,o,r,n,e=>l=e);c.type!==bo&&Pr(c,l);let u=n.subTree&&Nr(n.subTree);if(u&&u.type!==bo&&!Ao(u,c)&&Dr(n).type!==bo){let e=jr(u,o,r,n);if(Pr(u,e),s===`out-in`&&c.type!==bo)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Mr(a);s===`in-out`&&c.type!==bo?e.delayLeave=(e,t,n)=>{let i=Ar(r,u);i[String(u.key)]=u,e[Sr]=()=>{t(),e[Sr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Or(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==bo){t=n;break}}return t}const kr=_ee;function Ar(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function jr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=Ar(n,e),S=(e,t)=>{e&&In(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),T(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[Sr]&&t[Sr](!0);let i=x[b];i&&Ao(e,i)&&i.el[Sr]&&i.el[Sr](),S(r,[t])},enter(e){let t=l,r=u,i=d;if(!n.isMounted)if(a)t=_||l,r=v||u,i=y||d;else return;let o=!1,s=e[Cr]=t=>{o||(o=!0,S(t?i:r,[e]),w.delayedLeave&&w.delayedLeave(),e[Cr]=void 0)};t?C(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[Cr]&&t[Cr](!0),n.isUnmounting)return r();S(f,[t]);let a=!1,o=t[Sr]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[Sr]=void 0,x[i]===e&&delete x[i])};x[i]=e,p?C(p,[t,o]):o()},clone(e){let a=jr(e,t,n,r,i);return i&&i(a),a}};return w}function Mr(e){if(ei(e))return e=Po(e),e.children=null,e}function Nr(e){if(!ei(e))return dr(e.type)&&e.children?Or(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&A(n.default))return n.default()}}function Pr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Pr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;ex({name:e.name},t,{setup:e}))():e}function Ir(){let e=Go();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function Lr(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Rr(e){let t=Go(),n=fn(null);if(t){let r=t.refs===h?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}let r=n;return r}const zr=new WeakMap;function Br(e,t,n,r,i=!1){if(T(e)){e.forEach((e,a)=>Br(e,t&&(T(t)?t[a]:t),n,r,i));return}if(Qr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Br(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?ls(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===h?s.refs={}:s.refs,d=s.setupState,f=sn(d),p=d===h?v:e=>w(f,e),m=e=>!0;if(l!=null&&l!==c){if(Vr(t),j(l))u[l]=null,p(l)&&(d[l]=null);else if(dn(l)){m(l)&&(l.value=null);let e=t;e.k&&(u[e.k]=null)}}if(A(c))Fn(c,s,12,[o,u]);else{let t=j(c),r=dn(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:m(c)||!e.k?c.value:u[e.k];if(i)T(n)&&S(n,a);else if(T(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];m(c)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(m(c)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),zr.delete(e)};t.id=-1,zr.set(e,t),wa(t,n)}else Vr(e),s()}}}function Vr(e){let t=zr.get(e);t&&(t.flags|=8,zr.delete(e))}const Hr=()=>{console.error(`Hydration completed but contains mismatches.`)},Ur=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Wr=e=>e.namespaceURI.includes(`MathML`),Gr=e=>{if(e.nodeType===1){if(Ur(e))return`svg`;if(Wr(e))return`mathml`}},Kr=e=>e.nodeType===8;function qr(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:c,createComment:l}}=e,u=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),Xn(),t._vnode=e;return}d(t.firstChild,e,null,null,null),Xn(),t._vnode=e},d=(n,r,s,l,u,y=!1)=>{y||=!!r.dynamicChildren;let b=Kr(n)&&n.data===`[`,x=()=>h(n,r,s,l,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(y=!1,r.dynamicChildren=null);let D=null;switch(S){case yo:E===3?(n.data!==r.children&&(Hr(),n.data=r.children),D=a(n)):r.children===``?(c(r.el=i(``),o(n),n),D=n):D=x();break;case bo:v(n)?(D=a(n),_(r.el=n.content.firstChild,n,s)):D=E!==8||b?x():a(n);break;case xo:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t{o||=!!t.dynamicChildren;let{type:c,props:l,patchFlag:u,shapeFlag:d,dirs:f,transition:m}=t,h=c===`input`||c===`option`;if(h||u!==-1){f&&lr(t,null,n,`created`);let c=!1;if(v(e)){c=Aa(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(c){let e=r.getAttribute(`class`);e&&(r.$cls=e),m.beforeEnter(r)}_(r,e,n),t.el=e=r}if(d&16&&!(l&&(l.innerHTML||l.textContent))){let r=p(e.firstChild,t,e,n,i,a,o);for(;r;){Xr(e,1)||Hr();let t=r;r=r.nextSibling,s(t)}}else if(d&8){let n=t.children;n[0]===` -`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1)),e.textContent!==n&&(Xr(e,0)||Hr(),e.textContent=t.children)}if(l){if(h||!o||u&48){let t=e.tagName.includes(`-`);for(let i in l)(h&&(i.endsWith(`value`)||i===`indeterminate`)||y(i)&&!oe(i)||i[0]===`.`||t)&&r(e,i,null,l[i],void 0,n)}else if(l.onClick)r(e,`onClick`,null,l.onClick,void 0,n);else if(u&4&&nn(l.style))for(let e in l.style)l.style[e]}let g;(g=l&&l.onVnodeBeforeMount)&&Ho(g,n,t),f&&lr(t,null,n,`beforeMount`),((g=l&&l.onVnodeMounted)||f||c)&&ho(()=>{g&&Ho(g,n,t),c&&m.enter(e),f&&lr(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,o,s,l,u)=>{u||=!!t.dynamicChildren;let f=t.children,p=f.length;for(let t=0;t{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&Kr(f)&&f.data===`]`?a(t.anchor=f):(Hr(),c(t.anchor=l(`]`),d,f),f)},h=(e,t,r,i,c,l)=>{if(Xr(e.parentElement,1)||Hr(),t.el=null,l){let t=g(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,Gr(d),c),r&&(r.vnode.el=t.el,no(r,t.el)),u},g=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&Kr(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},_=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},v=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[u,d]}const Jr=`data-allow-mismatch`,Yr={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Xr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Jr);)e=e.parentElement;let n=e&&e.getAttribute(Jr);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(Yr[t])}}const Zr=ve().requestIdleCallback||(e=>setTimeout(e,1)),vee=ve().cancelIdleCallback||(e=>clearTimeout(e)),yee=(e=1e4)=>t=>{let n=Zr(t,{timeout:e});return()=>vee(n)};function bee(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e){if(!n.isIntersecting)continue;r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(bee(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},See=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Cee=(e=[])=>(t,n)=>{j(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function wee(e,t){if(Kr(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){let e=t(r);if(e===!1)break}else if(Kr(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}const Qr=e=>!!e.type.__asyncLoader;function Tee(e){A(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{let r=()=>t(f()),i=()=>n(e);c(e,r,i,d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return R({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>wee(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=Wo;if(Lr(e),u)return()=>$r(u,e);let t=t=>{l=null,Ln(t,e,13,!r)};if(s&&e.suspense||Zo)return p().then(t=>()=>$r(t,e)).catch(e=>(t(e),()=>r?H(r,{error:e}):null));let a=F(!1),c=F(),d=F(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&ei(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return $r(u,e);if(c.value&&r)return H(r,{error:c.value});if(n&&!d.value)return H(n)}}})}function $r(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=H(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}const ei=e=>e.type.__isKeepAlive,Eee={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Go(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),wa(()=>{a.isDeactivated=!1,a.a&&me(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Ho(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Pa(t.m),Pa(t.a),l(e,f,null,1,s),wa(()=>{t.da&&me(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Ho(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){oi(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=us(t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Ao(t,o))?p(t):o&&oi(o),i.delete(e),a.delete(e)}Ba(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>ni(e,t)),t&&m(e=>!ni(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(ro(n.subTree.type)?wa(()=>{i.set(g,si(n.subTree))},n.subTree.suspense):i.set(g,si(n.subTree)))};return di(_),pi(_),mi(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=si(t);if(e.type===i.type&&e.key===i.key){oi(i);let e=i.component.da;e&&wa(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!ko(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=si(r);if(s.type===bo)return o=null,s;let c=s.type,l=us(Qr(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!ni(u,l))||d&&l&&ni(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Po(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&Pr(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,ro(r.type)?r:s}}},ti=Eee;function ni(e,t){return T(e)?e.some(e=>ni(e,t)):j(e)?e.split(`,`).includes(t):k(e)?(e.lastIndex=0,e.test(t)):!1}function ri(e,t){ai(e,`a`,t)}function ii(e,t){ai(e,`da`,t)}function ai(e,t,n=Wo){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ci(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ei(e.parent.vnode)&&Dee(r,t,n,e),e=e.parent}}function Dee(e,t,n,r){let i=ci(t,e,r,!0);hi(()=>{S(r[t],i)},n)}function oi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function si(e){return e.shapeFlag&128?e.ssContent:e}function ci(e,t,n=Wo,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ct();let i=Jo(n),a=In(t,n,e,r);return i(),lt(),a};return r?i.unshift(a):i.push(a),a}}const li=e=>(t,n=Wo)=>{(!Zo||e===`sp`)&&ci(e,(...e)=>t(...e),n)},ui=li(`bm`),di=li(`m`),fi=li(`bu`),pi=li(`u`),mi=li(`bum`),hi=li(`um`),gi=li(`sp`),_i=li(`rtg`),vi=li(`rtc`);function yi(e,t=Wo){ci(`ec`,e,t)}const bi=`components`;function xi(e,t){return Ti(bi,e,!0,t)||e}const Si=Symbol.for(`v-ndc`);function Ci(e){return j(e)?Ti(bi,e,!1)||e:e||Si}function wi(e){return Ti(`directives`,e)}function Ti(e,t,n=!0,r=!1){let i=nr||Wo;if(i){let n=i.type;if(e===bi){let e=us(n,!1);if(e&&(e===t||e===le(t)||e===fe(le(t))))return n}let a=Ei(i[e]||n[e],t)||Ei(i.appContext[e],t);return!a&&r?n:a}}function Ei(e,t){return e&&(e[t]||e[le(t)]||e[fe(le(t))])}function Di(e,t,n,r){let i,a=n&&n[r],o=T(e);if(o||j(e)){let n=o&&nn(e),r=!1,s=!1;n&&(r=!an(e),s=rn(e),e=Ct(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function ki(e,t,n={},r,i){if(nr.ce||nr.parent&&Qr(nr.parent)&&nr.parent.ce)return t!==`default`&&(n.name=t),z(),Oo(vo,null,[H(`slot`,n,r&&r())],64);let a=e[t];a&&a._c&&(a._d=!1),z();let o=a&&Ai(a(n)),s=n.key||o&&o.key,c=Oo(vo,{key:(s&&!M(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function Ai(e){return e.some(e=>ko(e)?!(e.type===bo||e.type===vo&&!Ai(e.children)):!0)?e:null}function ji(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:pe(r)]=e[r];return n}const Mi=e=>e?Xo(e)?ls(e):Mi(e.parent):null,Ni=x(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mi(e.parent),$root:e=>Mi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>$i(e),$forceUpdate:e=>e.f||=()=>{Kn(e.update)},$nextTick:e=>e.n||=Gn.bind(e.proxy),$watch:e=>Ha.bind(e)}),Pi=(e,t)=>e!==h&&!e.__isScriptSetup&&w(e,t),Fi={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e,l;if(t[0]!==`$`){let s=o[t];if(s!==void 0)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(Pi(r,t))return o[t]=1,r[t];else if(i!==h&&w(i,t))return o[t]=2,i[t];else if((l=e.propsOptions[0])&&w(l,t))return o[t]=3,a[t];else if(n!==h&&w(n,t))return o[t]=4,n[t];else Xi&&(o[t]=0)}let u=Ni[t],d,f;if(u)return t===`$attrs`&&yt(e.attrs,`get`,``),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==h&&w(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,w(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return Pi(i,t)?(i[t]=n,!0):r!==h&&w(r,t)?(r[t]=n,!0):w(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a,type:o}},s){let c,l;return!!(n[s]||e!==h&&s[0]!==`$`&&w(e,s)||Pi(t,s)||(c=a[0])&&w(c,s)||w(r,s)||w(Ni,s)||w(i.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},defineProperty(e,t,n){return n.get==null?w(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},Ii=x({},Fi,{get(e,t){if(t!==Symbol.unscopables)return Fi.get(e,t,e)},has(e,t){let n=t[0]!==`_`&&!ye(t);return n}});function Li(){return null}function Ri(){return null}function zi(e){}function Bi(e){}function Vi(){return null}function Hi(){}function Ui(e,t){return null}function Wi(){return Ki(`useSlots`).slots}function Gi(){return Ki(`useAttrs`).attrs}function Ki(e){let t=Go();return t.setupContext||=cs(t)}function qi(e){return T(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ji(e,t){let n=qi(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?T(r)||A(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Yi(e,t){return!e||!t?e||t:T(e)&&T(t)?e.concat(t):x({},qi(e),qi(t))}function Oee(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function kee(e){let t=Go(),n=e();return Yo(),te(n)&&(n=n.catch(e=>{throw Jo(t),e})),[n,()=>Jo(t)]}let Xi=!0;function Aee(e){let t=$i(e),n=e.proxy,r=e.ctx;Xi=!1,t.beforeCreate&&Zi(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:g,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:x,render:S,renderTracked:C,renderTriggered:w,errorCaptured:E,serverPrefetch:D,expose:O,inheritAttrs:k,components:j,directives:M,filters:te}=t;if(l&&jee(l,r,null),o)for(let e in o){let t=o[e];A(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);ee(t)&&(e.data=Zt(t))}if(Xi=!0,a)for(let e in a){let t=a[e],i=A(t)?t.bind(n,n):A(t.get)?t.get.bind(n,n):_,o=!A(t)&&A(t.set)?t.set.bind(n):_,s=U({get:i,set:o});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(let e in s)Qi(s[e],r,n,e);if(c){let e=A(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{ca(t,e[t])})}u&&Zi(u,e,`c`);function N(e,t){T(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(N(ui,d),N(di,f),N(fi,p),N(pi,m),N(ri,h),N(ii,g),N(yi,E),N(vi,C),N(_i,w),N(mi,y),N(hi,x),N(gi,D),T(O))if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};S&&e.render===_&&(e.render=S),k!=null&&(e.inheritAttrs=k),j&&(e.components=j),M&&(e.directives=M),D&&Lr(e)}function jee(e,t,n=_){for(let n in T(e)&&(e=na(e)),e){let r=e[n],i;i=ee(r)?`default`in r?la(r.from||n,r.default,!0):la(r.from||n):la(r),dn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Zi(e,t,n){In(T(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Qi(e,t,n,r){let i=r.includes(`.`)?Ua(n,r):()=>n[r];if(j(e)){let n=t[e];A(n)&&Ba(i,n)}else if(A(e))Ba(i,e.bind(n));else if(ee(e))if(T(e))e.forEach(e=>Qi(e,t,n,r));else{let r=A(e.handler)?e.handler.bind(n):t[e.handler];A(r)&&Ba(i,r,e)}}function $i(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>ea(c,e,o,!0)),ea(c,t,o)),ee(t)&&a.set(t,c),c}function ea(e,t,n,r=!1){let{mixins:i,extends:a}=t;for(let o in a&&ea(e,a,n,!0),i&&i.forEach(t=>ea(e,t,n,!0)),t)if(!(r&&o===`expose`)){let r=Mee[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Mee={data:ta,props:aa,emits:aa,methods:ia,computed:ia,beforeCreate:ra,created:ra,beforeMount:ra,mounted:ra,beforeUpdate:ra,updated:ra,beforeDestroy:ra,beforeUnmount:ra,destroyed:ra,unmounted:ra,activated:ra,deactivated:ra,errorCaptured:ra,serverPrefetch:ra,components:ia,directives:ia,watch:Pee,provide:ta,inject:Nee};function ta(e,t){return t?e?function(){return x(A(e)?e.call(this,this):e,A(t)?t.call(this,this):t)}:t:e}function Nee(e,t){return ia(na(e),na(t))}function na(e){if(T(e)){let t={};for(let n=0;n1)return n&&A(t)?t.call(r&&r.proxy):t}}function ua(){return!!(Go()||sa)}const da={},fa=()=>Object.create(da),pa=e=>Object.getPrototypeOf(e)===da;function Lee(e,t,n,r=!1){let i={},a=fa();for(let n in e.propsDefaults=Object.create(null),ma(e,t,i,a),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:Qt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Ree(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=sn(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{c=!0;let[n,r]=ga(e,t,!0);x(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return ee(e)&&r.set(e,g),g;if(T(a))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,ya=e=>T(e)?e.map(Ro):[Ro(e)],Bee=(e,t,n)=>{if(t._n)return t;let r=L((...e)=>ya(t(...e)),n);return r._c=!1,r},ba=(e,t,n)=>{let r=e._ctx;for(let n in e){if(va(n))continue;let i=e[n];if(A(i))t[n]=Bee(n,i,r);else if(i!=null){let e=ya(i);t[n]=()=>e}}},xa=(e,t)=>{let n=ya(t);e.slots.default=()=>n},Sa=(e,t,n)=>{for(let r in t)(n||!va(r))&&(e[r]=t[r])},Vee=(e,t,n)=>{let r=e.slots=fa();if(e.vnode.shapeFlag&32){let e=t._;e?(Sa(r,t,n),n&&he(r,`_`,e,!0)):ba(t,r)}else t&&xa(e,t)},Ca=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=h;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:Sa(i,t,n):(a=!t.$stable,ba(t,i)),o=t}else t&&(xa(e,t),o={default:1});if(a)for(let e in i)!va(e)&&o[e]==null&&delete i[e]},wa=ho;function Ta(e){return Da(e)}function Ea(e){return Da(e,qr)}function Da(e,t){let n=ve();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=_,insertStaticContent:m}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ao(e,t)&&(r=pe(e),ce(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case yo:y(e,t,n,r);break;case bo:b(e,t,n,r);break;case xo:e??x(t,n,r,o);break;case vo:j(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?M(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,he)}u!=null&&i?Br(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Br(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null?T(t,n,r,i,a,o,s,c):O(e,t,i,a,o,s,c)},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,Oa(e,c),l,d),_&&lr(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!oe(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Ho(p,i,e)}_&&lr(e,null,i,`beforeMount`);let v=Aa(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&wa(()=>{p&&Ho(p,i,e),v&&g.enter(f),_&&lr(e,null,i,`mounted`)},s)},E=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t{for(let l=c;l{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||h,m=t.props||h,g;if(n&&ka(n,!1),(g=m.onVnodeBeforeUpdate)&&Ho(g,n,t,e),f&&lr(t,e,n,`beforeUpdate`),n&&ka(n,!0),(p.innerHTML&&m.innerHTML==null||p.textContent&&m.textContent==null)&&u(c,``),d?k(e.dynamicChildren,d,c,n,r,Oa(t,i),o):s||re(e,t,c,null,n,r,Oa(t,i),o,!1),l>0){if(l&16)A(c,p,m,n,i);else if(l&2&&p.class!==m.class&&a(c,`class`,null,m.class,i),l&4&&a(c,`style`,p.style,m.style,i),l&8){let e=t.dynamicProps;for(let t=0;t{g&&Ho(g,n,t,e),f&&lr(t,e,n,`updated`)},r)},k=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==n){if(t!==h)for(let o in t)!oe(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(oe(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},j=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren?(k(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&ja(e,t,!0)):re(e,t,n,f,a,o,c,l,u)},M=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ee(t,n,r,i,a,o,c):te(e,t,c)},ee=(e,t,n,r,i,a,o)=>{let s=e.component=Uo(e,r,i);if(ei(e)&&(s.ctx.renderer=he),Qo(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,N,o),!e.el){let r=s.subTree=H(bo);b(null,r,t,n),e.placeholder=r.el}}else N(s,e,t,n,i,a,o)},te=(e,t,n)=>{let r=t.component=e.component;if(eo(e,t,n))if(r.asyncDep&&!r.asyncResolved){ne(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},N=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:c,vnode:l}=e;{let n=Na(e);if(n){t&&(t.el=l.el,ne(e,t,o)),n.asyncDep.then(()=>{e.isUnmounted||s()});return}}let u=t,f;ka(e,!1),t?(t.el=l.el,ne(e,t,o)):t=l,n&&me(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&Ho(f,c,t,l),ka(e,!0);let p=Xa(e),m=e.subTree;e.subTree=p,v(m,p,d(m.el),pe(m),e,i,a),t.el=p.el,u===null&&no(e,p.el),r&&wa(r,i),(f=t.props&&t.props.onVnodeUpdated)&&wa(()=>Ho(f,c,t,l),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Qr(t);if(ka(e,!1),l&&me(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ho(o,d,t),ka(e,!0),s&&_e){let t=()=>{e.subTree=Xa(e),_e(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._def.shadowRoot!==!1&&f.ce._injectChildStyle(p);let o=e.subTree=Xa(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&wa(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;wa(()=>Ho(o,d,e),i)}(t.shapeFlag&256||d&&Qr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&wa(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ge(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Kn(u),ka(e,!0),l()},ne=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ree(e,t.props,r,n),Ca(e,t.children,n),ct(),Yn(e),lt()},re=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){ae(l,f,n,r,i,a,o,s,c);return}else if(p&256){ie(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&fe(l,i,a),f!==l&&u(n,f)):d&16?m&16?ae(l,f,n,r,i,a,o,s,c):fe(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},ie=(e,t,n,r,i,a,o,s,c)=>{e||=g,t||=g;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;fu?fe(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},ae=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?zo(t[l]):Ro(t[l]);if(Ao(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?zo(t[f]):Ro(t[f]);if(Ao(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=ef)for(;l<=d;)ce(e[l],i,a,!0),l++;else{let p=l,m=l,h=new Map;for(l=m;l<=f;l++){let e=t[l]=c?zo(t[l]):Ro(t[l]);e.key!=null&&h.set(e.key,l)}let _,y=0,b=f-m+1,x=!1,S=0,C=Array(b);for(l=0;l=b){ce(r,i,a,!0);continue}let u;if(r.key!=null)u=h.get(r.key);else for(_=m;_<=f;_++)if(C[_-m]===0&&Ao(r,t[_])){u=_;break}u===void 0?ce(r,i,a,!0):(C[u-m]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?Ma(C):g;for(_=w.length-1,l=b-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){se(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,he);return}if(c===vo){r(s,t,n);for(let e=0;el.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[Sr](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},ce=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&(ct(),Br(s,null,n,e,!0),lt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!Qr(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&Ho(g,t,e),u&6)de(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&lr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,he,r):l&&!l.hasOnce&&(a!==vo||d>0&&d&64)?fe(l,t,n,!1,!0):(a===vo&&d&384||!i&&u&16)&&fe(c,t,n),r&&le(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&wa(()=>{g&&Ho(g,t,e),m&&lr(e,null,t,`unmounted`)},n)},le=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===vo){ue(n,r);return}if(t===xo){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},ue=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},de=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Pa(c),Pa(l),r&&me(r),i.stop(),a&&(a.flags|=8,ce(o,e,t,n)),s&&wa(s,t),wa(()=>{e.isUnmounted=!0},t)},fe=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return pe(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[ur];return n?f(n):t},P=(e,t,n)=>{e==null?t._vnode&&ce(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Yn(),Xn()},he={p:v,um:ce,m:se,r:le,mt:ee,mc:D,pc:re,pbc:k,n:pe,o:e},ge,_e;return t&&([ge,_e]=t(he)),{render:P,hydrate:ge,createApp:Iee(P,ge)}}function Oa({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ka({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Aa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ja(e,t,n=!1){let r=e.children,i=t.children;if(T(r)&&T(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Na(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Na(t)}function Pa(e){if(e)for(let t=0;t{{let e=la(Fa);return e}};function La(e,t){return Va(e,null,t)}function Ra(e,t){return Va(e,null,{flush:`post`})}function za(e,t){return Va(e,null,{flush:`sync`})}function Ba(e,t,n){return Va(e,t,n)}function Va(e,t,n=h){let{immediate:r,deep:i,flush:a,once:o}=n,s=x({},n),c=t&&r||!t&&a!==`post`,l;if(Zo){if(a===`sync`){let e=Ia();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=_,e.resume=_,e.pause=_,e}}let u=Wo;s.call=(e,t,n)=>In(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{wa(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():Kn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=kn(e,t,s);return Zo&&(l?l.push(f):c&&f()),f}function Ha(e,t,n){let r=this.proxy,i=j(e)?e.includes(`.`)?Ua(r,e):()=>r[e]:e.bind(r,r),a;A(t)?a=t:(a=t.handler,n=t);let o=Jo(this),s=Va(i,a.bind(r),n);return o(),s}function Ua(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e{let c,l=h,u;return za(()=>{let t=e[i];P(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!P(o,c)&&!(l!==h&&P(e,l)))return;let d=r.vnode.props;d&&(t in d||i in d||a in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${a}`in d)||(c=e,s()),r.emit(`update:${t}`,o),P(e,o)&&P(e,l)&&!P(o,u)&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||h:s,done:!1}:{done:!0}}}},s}const Ga=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${le(t)}Modifiers`]||e[`${de(t)}Modifiers`];function Ka(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||h,i=n,a=t.startsWith(`update:`),o=a&&Ga(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>j(e)?e.trim():e)),o.number&&(i=n.map(ge)));let s,c=r[s=pe(t)]||r[s=pe(le(t))];!c&&a&&(c=r[s=pe(de(t))]),c&&In(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,In(l,e,6,i)}}const qa=new WeakMap;function Ja(e,t,n=!1){let r=n?qa:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!A(e)){let r=e=>{let n=Ja(e,t,!0);n&&(s=!0,x(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(ee(e)&&r.set(e,null),null):(T(a)?a.forEach(e=>o[e]=null):x(o,a),ee(e)&&r.set(e,o),o)}function Ya(e,t){return!e||!y(t)?!1:(t=t.slice(2).replace(/Once$/,``),w(e,t[0].toLowerCase()+t.slice(1))||w(e,de(t))||w(e,t))}function Xa(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=ir(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=Ro(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=Ro(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:Qa(s)}}catch(t){So.length=0,Ln(t,e,1),_=H(bo)}let y=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(b)&&(v=$a(v,a)),y=Po(y,v,!1,!0))}return n.dirs&&(y=Po(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Pr(y,n.transition),_=y,ir(g),_}function Za(e,t=!0){let n;for(let t=0;t{let t;for(let n in e)(n===`class`||n===`style`||y(n))&&((t||={})[n]=e[n]);return t},$a=(e,t)=>{let n={};for(let r in e)(!b(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function eo(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?to(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;te.__isSuspense;let io=0;const ao={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)co(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}lo(e,t,n,r,i,o,s,c,l)}},hydrate:fo,normalize:po},oo=ao;function so(e,t){let n=e.props&&e.props[t];A(n)&&n()}function co(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=uo(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(so(e,`onPending`),so(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),go(f,e.ssFallback)):f.resolve(!1,!0)}function lo(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Ao(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),go(d,p)))):(d.pendingId=io++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),go(d,p))):m&&Ao(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Ao(m,f))c(m,f,n,r,i,d,a,o,s),go(d,f);else if(so(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=io++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function uo(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=_o(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?_e(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:io++,timeout:typeof y==`number`?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u}=x,d=!1;x.isHydrating?x.isHydrating=!1:e||(d=i&&o.transition&&o.transition.mode===`out-in`,d&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b?m(i):a,0),Jn(c))}),i&&(h(i.el)===u&&(a=m(i)),p(i,l,x,!0)),d||f(o,u,a,0)),go(x,o),x.pendingBranch=null,x.isInFallback=!1;let g=x.parent,y=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),y=!0;break}g=g.parent}!y&&!d&&Jn(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),so(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;so(t,`onFallback`);let o=m(n),l=()=>{x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),go(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Ln(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:s}=e;$o(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&g(c),no(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function fo(e,t,n,r,i,a,o,s,c){let l=t.suspense=uo(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function po(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=mo(r?n.default:n),e.ssFallback=r?mo(n.fallback):H(bo)}function mo(e){let t;if(A(e)){let n=To&&e._c;n&&(e._d=!1,z()),e=e(),n&&(e._d=!0,t=Co,wo())}if(T(e)){let t=Za(e);e=t}return e=Ro(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ho(e,t){t&&t.pendingBranch?T(e)?t.effects.push(...e):t.effects.push(e):Jn(e)}function go(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,no(r,i))}function _o(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const vo=Symbol.for(`v-fgt`),yo=Symbol.for(`v-txt`),bo=Symbol.for(`v-cmt`),xo=Symbol.for(`v-stc`),So=[];let Co=null;function z(e=!1){So.push(Co=e?null:[])}function wo(){So.pop(),Co=So[So.length-1]||null}let To=1;function Eo(e,t=!1){To+=e,e<0&&Co&&t&&(Co.hasOnce=!0)}function Do(e){return e.dynamicChildren=To>0?Co||g:null,wo(),To>0&&Co&&Co.push(e),e}function B(e,t,n,r,i,a){return Do(V(e,t,n,r,i,a,!0))}function Oo(e,t,n,r,i){return Do(H(e,t,n,r,i,!0))}function ko(e){return e?e.__v_isVNode===!0:!1}function Ao(e,t){return e.type===t.type&&e.key===t.key}function Hee(e){}const jo=({key:e})=>e??null,Mo=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:j(e)||dn(e)||A(e)?{i:nr,r:e,k:t,f:!!n}:e);function V(e,t=null,n=null,r=0,i=null,a=e===vo?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jo(t),ref:t&&Mo(t),scopeId:rr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:nr};return s?(Bo(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=j(n)?8:16),To>0&&!o&&Co&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Co.push(c),c}const H=Uee;function Uee(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Si)&&(e=bo),ko(e)){let r=Po(e,t,!0);return n&&Bo(r,n),To>0&&!a&&Co&&(r.shapeFlag&6?Co[Co.indexOf(e)]=r:Co.push(r)),r.patchFlag=-2,r}if(ds(e)&&(e=e.__vccOpts),t){t=No(t);let{class:e,style:n}=t;e&&!j(e)&&(t.class=Te(e)),ee(n)&&(on(n)&&!T(n)&&(n=x({},n)),t.style=be(n))}let o=j(e)?1:ro(e)?128:dr(e)?64:ee(e)?4:A(e)?2:0;return V(e,t,n,r,i,o,a,!0)}function No(e){return e?on(e)||pa(e)?x({},e):e:null}function Po(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Vo(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&jo(l),ref:t&&t.ref?n&&a?T(a)?a.concat(Mo(t)):[a,Mo(t)]:Mo(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==vo?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Po(e.ssContent),ssFallback:e.ssFallback&&Po(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Pr(u,c.clone(u)),u}function Fo(e=` `,t=0){return H(yo,null,e,t)}function Io(e,t){let n=H(xo,null,e);return n.staticCount=t,n}function Lo(e=``,t=!1){return t?(z(),Oo(bo,null,e)):H(bo,null,e)}function Ro(e){return e==null||typeof e==`boolean`?H(bo):T(e)?H(vo,null,e.slice()):ko(e)?zo(e):H(yo,null,String(e))}function zo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Po(e)}function Bo(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(T(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Bo(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!pa(t)?t._ctx=nr:r===3&&nr&&(nr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else A(t)?(t={default:t,_ctx:nr},n=32):(t=String(t),r&64?(n=16,t=[Fo(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vo(...e){let t={};for(let n=0;nWo||nr;let Ko,qo;{let e=ve(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Ko=t(`__VUE_INSTANCE_SETTERS__`,e=>Wo=e),qo=t(`__VUE_SSR_SETTERS__`,e=>Zo=e)}const Jo=e=>{let t=Wo;return Ko(e),e.scope.on(),()=>{e.scope.off(),Ko(t)}},Yo=()=>{Wo&&Wo.scope.off(),Ko(null)};function Xo(e){return e.vnode.shapeFlag&4}let Zo=!1;function Qo(e,t=!1,n=!1){t&&qo(t);let{props:r,children:i}=e.vnode,a=Xo(e);Lee(e,r,a,t),Vee(e,i,n||t);let o=a?Kee(e,t):void 0;return t&&qo(!1),o}function Kee(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fi);let{setup:r}=n;if(r){ct();let n=e.setupContext=r.length>1?cs(e):null,i=Jo(e),a=Fn(r,e,0,[e.props,n]),o=te(a);if(lt(),i(),(o||e.sp)&&!Qr(e)&&Lr(e),o){if(a.then(Yo,Yo),t)return a.then(n=>{$o(e,n,t)}).catch(t=>{Ln(t,e,0)});e.asyncDep=a}else $o(e,a,t)}else os(e,t)}function $o(e,t,n){A(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=hn(t)),os(e,n)}let es,ts;function ns(e){es=e,ts=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ii))}}const rs=()=>!es;function os(e,t,n){let r=e.type;if(!e.render){if(!t&&es&&!r.render){let t=r.template||$i(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=x(x({isCustomElement:n,delimiters:a},i),o);r.render=es(t,s)}}e.render=r.render||_,ts&&ts(e)}{let t=Jo(e);ct();try{Aee(e)}finally{lt(),t()}}}const ss={get(e,t){return yt(e,`get`,``),e[t]}};function cs(e){let t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,ss),slots:e.slots,emit:e.emit,expose:t}}function ls(e){return e.exposed?e.exposeProxy||=new Proxy(hn(cn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ni)return Ni[n](e)},has(e,t){return t in e||t in Ni}}):e.proxy}function us(e,t=!0){return A(e)?e.displayName||e.name:e.name||t&&e.__name}function ds(e){return A(e)&&`__vccOpts`in e}const U=(e,t)=>{let n=xn(e,t,Zo);return n};function fs(e,t,n){let r=(e,t,n)=>{Eo(-1);try{return H(e,t,n)}finally{Eo(1)}},i=arguments.length;return i===2?ee(t)&&!T(t)?ko(t)?r(e,null,[t]):r(e,t):r(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&ko(n)&&(n=[n]),r(e,t,n))}function ps(){return;function e(t,n,r){let i=t[r];if(T(i)&&i.includes(n)||ee(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function ms(e,t,n,r){let i=n[r];if(i&&hs(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function hs(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Co&&Co.push(e),!0}const gs=`3.5.21`,_s=_,vs=pee,ys=$n,bs=tr,xs={createComponentInstance:Uo,setupComponent:Qo,renderComponentRoot:Xa,setCurrentRenderingInstance:ir,isVNode:ko,normalizeVNode:Ro,getComponentPublicInstance:ls,ensureValidVNode:Ai,pushWarningContext:Mn,popWarningContext:Nn},Ss=xs;let Cs;const ws=typeof window<`u`&&window.trustedTypes;if(ws)try{Cs=ws.createPolicy(`vue`,{createHTML:e=>e})}catch{}const Ts=Cs?e=>Cs.createHTML(e):e=>e,Es=typeof document<`u`?document:null,Ds=Es&&Es.createElement(`template`),Os={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Es.createElementNS(`http://www.w3.org/2000/svg`,e):t===`mathml`?Es.createElementNS(`http://www.w3.org/1998/Math/MathML`,e):n?Es.createElement(e,{is:n}):Es.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Es.createTextNode(e),createComment:e=>Es.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Es.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Ds.innerHTML=Ts(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=Ds.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ks=`transition`,As=`animation`,js=Symbol(`_vtc`),Ms={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ns=x({},Er,Ms),Ps=e=>(e.displayName=`Transition`,e.props=Ns,e),Fs=Ps((e,{slots:t})=>fs(kr,Rs(e),t)),Is=(e,t=[])=>{T(e)?e.forEach(e=>e(...t)):e&&e(...t)},Ls=e=>e?T(e)?e.some(e=>e.length>1):e.length>1:!1;function Rs(e){let t={};for(let n in e)n in Ms||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=zs(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:S,onBeforeAppear:C=_,onAppear:w=v,onAppearCancelled:T=y}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Hs(e,t?u:s),Hs(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Hs(e,d),Hs(e,p),Hs(e,f),t&&t()},O=e=>(t,n)=>{let i=e?w:v,o=()=>E(t,e,n);Is(i,[t,o]),Us(()=>{Hs(t,e?c:a),Vs(t,e?u:s),Ls(i)||Gs(t,r,h,o)})};return x(t,{onBeforeEnter(e){Is(_,[e]),Vs(e,a),Vs(e,o)},onBeforeAppear(e){Is(C,[e]),Vs(e,c),Vs(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Vs(e,d),e._enterCancelled?(Vs(e,f),Ys()):(Ys(),Vs(e,f)),Us(()=>{e._isLeaving&&(Hs(e,d),Vs(e,p),Ls(b)||Gs(e,r,g,n))}),Is(b,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),Is(y,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),Is(T,[e])},onLeaveCancelled(e){D(e),Is(S,[e])}})}function zs(e){if(e==null)return null;if(ee(e))return[Bs(e.enter),Bs(e.leave)];{let t=Bs(e);return[t,t]}}function Bs(e){let t=_e(e);return t}function Vs(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[js]||(e[js]=new Set)).add(t)}function Hs(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[js];n&&(n.delete(t),n.size||(e[js]=void 0))}function Us(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ws=0;function Gs(e,t,n,r){let i=e._endId=++Ws,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ks(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${ks}Delay`),a=r(`${ks}Duration`),o=qs(i,a),s=r(`${As}Delay`),c=r(`${As}Duration`),l=qs(s,c),u=null,d=0,f=0;t===ks?o>0&&(u=ks,d=o,f=a.length):t===As?l>0&&(u=As,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?ks:As:null,f=u?u===ks?a.length:c.length:0);let p=u===ks&&/\b(?:transform|all)(?:,|$)/.test(r(`${ks}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function qs(e,t){for(;e.lengthJs(t)+Js(e[n])))}function Js(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Ys(){return document.body.offsetHeight}function Xs(e,t,n){let r=e[js];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}const Zs=Symbol(`_vod`),Qs=Symbol(`_vsh`),$s={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Zs]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):ec(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ec(e,!0),r.enter(e)):r.leave(e,()=>{ec(e,!1)}):ec(e,t))},beforeUnmount(e,{value:t}){ec(e,t)}};function ec(e,t){e.style.display=t?e[Zs]:`none`,e[Qs]=!t}function tc(){$s.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}const nc=Symbol(``);function rc(e){let t=Go();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>ac(e,n))},r=()=>{let r=e(t.proxy);t.ce?ac(t.ce,r):ic(t.subTree,r),n(r)};fi(()=>{Jn(r)}),di(()=>{Ba(r,_,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),hi(()=>e.disconnect())})}function ic(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ic(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ac(e.el,t);else if(e.type===vo)e.children.forEach(e=>ic(e,t));else if(e.type===xo){let{el:n,anchor:r}=e;for(;n&&(ac(n,t),n!==r);)n=n.nextSibling}}function ac(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Le(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[nc]=r}}const oc=/(?:^|;)\s*display\s*:/;function sc(e,t,n){let r=e.style,i=j(n),a=!1;if(n&&!i){if(t)if(j(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??lc(r,t,``)}else for(let e in t)n[e]??lc(r,e,``);for(let e in n)e===`display`&&(a=!0),lc(r,e,n[e])}else if(i){if(t!==n){let e=r[nc];e&&(n+=`;`+e),r.cssText=n,a=oc.test(n)}}else t&&e.removeAttribute(`style`);Zs in e&&(e[Zs]=a?r.display:``,e[Qs]&&(r.display=`none`))}const cc=/\s*!important$/;function lc(e,t,n){if(T(n))n.forEach(n=>lc(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=fc(e,t);cc.test(n)?e.setProperty(de(r),n.replace(cc,``),`important`):e[r]=n}}const uc=[`Webkit`,`Moz`,`ms`],dc={};function fc(e,t){let n=dc[t];if(n)return n;let r=le(t);if(r!==`filter`&&r in e)return dc[t]=r;r=fe(r);for(let n=0;n(Jee.then(()=>0),Date.now());function Xee(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;In(Zee(e,n.value),t,5,[e])};return n.value=e,n.attached=Yee(),n}function Zee(e,t){if(T(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}const xc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qee=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Xs(e,r,o):t===`style`?sc(e,n,r):y(t)?b(t)||yc(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):$ee(e,t,r,o))?(hc(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&mc(e,t,r,o,a,t!==`value`)):e._isVueCE&&(/[A-Z]/.test(t)||!j(r))?hc(e,le(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),mc(e,t,r,o))};function $ee(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&xc(t)&&A(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return xc(t)&&j(n)?!1:t in e}const Sc={};function Cc(e,t,n){let r=R(e,t);ie(r)&&(r=x({},r,t));class i extends wc{constructor(e){super(r,e,n)}}return i.def=r,i}const ete=((e,t)=>Cc(e,t,$c)),tte=typeof HTMLElement<`u`?HTMLElement:class{};var wc=class e extends tte{constructor(e,t={},n=Qc){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==Qc?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow({mode:`open`}),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Gn(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{for(let t of e)this._setAttr(t.attributeName)}),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!T(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=_e(this._props[e])),(i||=Object.create(null))[le(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)w(this,e)||Object.defineProperty(this,e,{get:()=>I(t[e])})}_resolveProps(e){let{props:t}=e,n=T(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(le))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!0)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Sc,r=le(e);t&&this._numberProps&&this._numberProps[r]&&(n=_e(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(t===Sc?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&n.disconnect(),t===!0?this.setAttribute(de(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(de(e),t+``):t||this.removeAttribute(de(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Zc(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=H(this._def,x(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,ie(t[0])?x({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),de(e)!==e&&t(de(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let n=this._nonce;for(let t=e.length-1;t>=0;t--){let r=document.createElement(`style`);n&&r.setAttribute(`nonce`,n),r.textContent=e[t],this.shadowRoot.prepend(r)}}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=(this._teleportTarget||this).querySelectorAll(`slot`),t=this._instance.type.__scopeId;for(let n=0;n(delete e.props.mode,e),ate=ite({name:`TransitionGroup`,props:x({},Ns,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Go(),r=wr(),i,a;return pi(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!ute(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(ste),i.forEach(cte);let r=i.filter(lte);Ys(),r.forEach(e=>{let n=e.el,r=n.style;Vs(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Oc]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Oc]=null,Hs(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=sn(e),s=Rs(o),c=o.tag||vo;if(i=[],a)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Ks(r);return a.removeChild(r),o}const Ac=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return T(t)?e=>me(t,e):t};function dte(e){e.target.composing=!0}function jc(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}const Mc=Symbol(`_assign`),Nc={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Mc]=Ac(i);let a=r||i.props&&i.props.type===`number`;gc(e,t?`change`:`input`,t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=ge(r)),e[Mc](r)}),n&&gc(e,`change`,()=>{e.value=e.value.trim()}),t||(gc(e,`compositionstart`,dte),gc(e,`compositionend`,jc),gc(e,`change`,jc))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Mc]=Ac(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ge(e.value):e.value,c=t??``;s!==c&&(document.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c))}},Pc={deep:!0,created(e,t,n){e[Mc]=Ac(n),gc(e,`change`,()=>{let t=e._modelValue,n=zc(e),r=e.checked,i=e[Mc];if(T(t)){let e=Me(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(D(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Bc(e,r))})},mounted:Fc,beforeUpdate(e,t,n){e[Mc]=Ac(n),Fc(e,t,n)}};function Fc(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(T(t))i=Me(t,r.props.value)>-1;else if(D(t))i=t.has(r.props.value);else{if(t===n)return;i=je(t,Bc(e,!0))}e.checked!==i&&(e.checked=i)}const Ic={created(e,{value:t},n){e.checked=je(t,n.props.value),e[Mc]=Ac(n),gc(e,`change`,()=>{e[Mc](zc(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Mc]=Ac(r),t!==n&&(e.checked=je(t,r.props.value))}},Lc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=D(t);gc(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ge(zc(e)):zc(e));e[Mc](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Gn(()=>{e._assigning=!1})}),e[Mc]=Ac(r)},mounted(e,{value:t}){Rc(e,t)},beforeUpdate(e,t,n){e[Mc]=Ac(n)},updated(e,{value:t}){e._assigning||Rc(e,t)}};function Rc(e,t){let n=e.multiple,r=T(t);if(!(n&&!r&&!D(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):a.selected=Me(t,o)>-1}else a.selected=t.has(o);else if(je(zc(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zc(e){return`_value`in e?e._value:e.value}function Bc(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}const Vc={created(e,t,n){Uc(e,t,n,null,`created`)},mounted(e,t,n){Uc(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Uc(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Uc(e,t,n,r,`updated`)}};function Hc(e,t){switch(e){case`SELECT`:return Lc;case`TEXTAREA`:return Nc;default:switch(t){case`checkbox`:return Pc;case`radio`:return Ic;default:return Nc}}}function Uc(e,t,n,r,i){let a=Hc(e.tagName,n.props&&n.props.type),o=a[i];o&&o(e,t,n,r)}function fte(){Nc.getSSRProps=({value:e})=>({value:e}),Ic.getSSRProps=({value:e},t)=>{if(t.props&&je(t.props.value,e))return{checked:!0}},Pc.getSSRProps=({value:e},t)=>{if(T(e)){if(t.props&&Me(e,t.props.value)>-1)return{checked:!0}}else if(D(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Vc.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Hc(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const pte=[`ctrl`,`shift`,`alt`,`meta`],mte={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>pte.some(n=>e[`${n}Key`]&&!t.includes(n))},Wc=(e,t)=>{let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=de(n.key);if(t.some(e=>e===r||hte[e]===r))return e(n)}))},Kc=x({patchProp:Qee},Os);let qc,Jc=!1;function Yc(){return qc||=Ta(Kc)}function Xc(){return qc=Jc?qc:Ea(Kc),Jc=!0,qc}const Zc=((...e)=>{Yc().render(...e)}),gte=((...e)=>{Xc().hydrate(...e)}),Qc=((...e)=>{let t=Yc().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=tl(e);if(!r)return;let i=t._component;!A(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,el(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),$c=((...e)=>{let t=Xc().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=tl(e);if(t)return n(t,!0,el(t))},t});function el(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function tl(e){if(j(e)){let t=document.querySelector(e);return t}return e}let nl=!1;const _te=()=>{nl||(nl=!0,fte(),tc())};var rl={};c(rl,{BaseTransition:()=>kr,BaseTransitionPropsValidators:()=>Er,Comment:()=>bo,DeprecationTypes:()=>null,EffectScope:()=>ze,ErrorCodes:()=>fee,ErrorTypeStrings:()=>vs,Fragment:()=>vo,KeepAlive:()=>ti,ReactiveEffect:()=>Ge,Static:()=>xo,Suspense:()=>oo,Teleport:()=>yr,Text:()=>yo,TrackOpTypes:()=>Sn,Transition:()=>Fs,TransitionGroup:()=>ote,TriggerOpTypes:()=>Cn,VueElement:()=>wc,assertNumber:()=>Pn,callWithAsyncErrorHandling:()=>In,callWithErrorHandling:()=>Fn,camelize:()=>le,capitalize:()=>fe,cloneVNode:()=>Po,compatUtils:()=>null,compile:()=>vte,computed:()=>U,createApp:()=>Qc,createBlock:()=>Oo,createCommentVNode:()=>Lo,createElementBlock:()=>B,createElementVNode:()=>V,createHydrationRenderer:()=>Ea,createPropsRestProxy:()=>Oee,createRenderer:()=>Ta,createSSRApp:()=>$c,createSlots:()=>Oi,createStaticVNode:()=>Io,createTextVNode:()=>Fo,createVNode:()=>H,customRef:()=>gn,defineAsyncComponent:()=>Tee,defineComponent:()=>R,defineCustomElement:()=>Cc,defineEmits:()=>Ri,defineExpose:()=>zi,defineModel:()=>Hi,defineOptions:()=>Bi,defineProps:()=>Li,defineSSRCustomElement:()=>ete,defineSlots:()=>Vi,devtools:()=>ys,effect:()=>it,effectScope:()=>Be,getCurrentInstance:()=>Go,getCurrentScope:()=>Ve,getCurrentWatcher:()=>Dn,getTransitionRawChildren:()=>Fr,guardReactiveProps:()=>No,h:()=>fs,handleError:()=>Ln,hasInjectionContext:()=>ua,hydrate:()=>gte,hydrateOnIdle:()=>yee,hydrateOnInteraction:()=>Cee,hydrateOnMediaQuery:()=>See,hydrateOnVisible:()=>xee,initCustomFormatter:()=>ps,initDirectivesForSSR:()=>_te,inject:()=>la,isMemoSame:()=>hs,isProxy:()=>on,isReactive:()=>nn,isReadonly:()=>rn,isRef:()=>dn,isRuntimeOnly:()=>rs,isShallow:()=>an,isVNode:()=>ko,markRaw:()=>cn,mergeDefaults:()=>Ji,mergeModels:()=>Yi,mergeProps:()=>Vo,nextTick:()=>Gn,normalizeClass:()=>Te,normalizeProps:()=>Ee,normalizeStyle:()=>be,onActivated:()=>ri,onBeforeMount:()=>ui,onBeforeUnmount:()=>mi,onBeforeUpdate:()=>fi,onDeactivated:()=>ii,onErrorCaptured:()=>yi,onMounted:()=>di,onRenderTracked:()=>vi,onRenderTriggered:()=>_i,onScopeDispose:()=>He,onServerPrefetch:()=>gi,onUnmounted:()=>hi,onUpdated:()=>pi,onWatcherCleanup:()=>On,openBlock:()=>z,popScopeId:()=>or,provide:()=>ca,proxyRefs:()=>hn,pushScopeId:()=>ar,queuePostFlushCb:()=>Jn,reactive:()=>Zt,readonly:()=>$t,ref:()=>F,registerRuntimeCompiler:()=>ns,render:()=>Zc,renderList:()=>Di,renderSlot:()=>ki,resolveComponent:()=>xi,resolveDirective:()=>wi,resolveDynamicComponent:()=>Ci,resolveFilter:()=>null,resolveTransitionHooks:()=>jr,setBlockTracking:()=>Eo,setDevtoolsHook:()=>bs,setTransitionHooks:()=>Pr,shallowReactive:()=>Qt,shallowReadonly:()=>en,shallowRef:()=>fn,ssrContextKey:()=>Fa,ssrUtils:()=>Ss,stop:()=>at,toDisplayString:()=>Pe,toHandlerKey:()=>pe,toHandlers:()=>ji,toRaw:()=>sn,toRef:()=>vn,toRefs:()=>_n,toValue:()=>mn,transformVNodeArgs:()=>Hee,triggerRef:()=>see,unref:()=>I,useAttrs:()=>Gi,useCssModule:()=>rte,useCssVars:()=>rc,useHost:()=>Tc,useId:()=>Ir,useModel:()=>Wa,useSSRContext:()=>Ia,useShadowRoot:()=>nte,useSlots:()=>Wi,useTemplateRef:()=>Rr,useTransitionState:()=>wr,vModelCheckbox:()=>Pc,vModelDynamic:()=>Vc,vModelRadio:()=>Ic,vModelSelect:()=>Lc,vModelText:()=>Nc,vShow:()=>$s,version:()=>gs,warn:()=>_s,watch:()=>Ba,watchEffect:()=>La,watchPostEffect:()=>Ra,watchSyncEffect:()=>za,withAsyncContext:()=>kee,withCtx:()=>L,withDefaults:()=>Ui,withDirectives:()=>cr,withKeys:()=>Gc,withMemo:()=>ms,withModifiers:()=>Wc,withScopeId:()=>sr});const vte=()=>{},yte=`179`,il={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},al={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},bte=0,xte=1,Ste=2,Cte=0,wte=2,Tte=1,Ete=2,Dte=3,Ote=4,kte=5,Ate=6,jte=7,ol=`attached`,sl=`detached`,Mte=303,cl=1e3,ll=1001,ul=1002,dl=1003,fl=1004,pl=1005,ml=1006,hl=1007,gl=1008,_l=1009,vl=1010,yl=1011,bl=1012,xl=1013,Sl=1014,Cl=1015,wl=1016,Tl=1017,El=1018,Dl=1020,Ol=35902,kl=1021,Al=1022,jl=1023,Ml=1026,Nl=1027,Pl=1028,Fl=1029,Il=1030,Ll=1031,Rl=1033,zl=33776,Bl=33777,Vl=33778,Hl=33779,Ul=35840,Wl=35841,Gl=35842,Kl=35843,ql=36196,Jl=37492,Yl=37496,Xl=37808,Zl=37809,Ql=37810,$l=37811,eu=37812,tu=37813,nu=37814,ru=37815,iu=37816,au=37817,ou=37818,su=37819,cu=37820,lu=37821,uu=36492,du=36494,fu=36495,pu=36283,mu=36284,hu=36285,gu=36286,_u=2200,vu=2201,yu=2202,bu=2300,xu=2301,Su=2302,Cu=2400,wu=2401,Tu=2402,Eu=2500,Du=2501,Ou=0,ku=1,Au=2,ju=3200,Mu=3201,Nu=0,Nte=``,Pu=`srgb`,Fu=`srgb-linear`,Iu=`linear`,Lu=`srgb`,Ru=7680,zu=35044,Bu=35048,Vu=`300 es`,Hu=2e3,Uu=2001,Pte={COMPUTE:`compute`,RENDER:`render`},Fte={PERSPECTIVE:`perspective`,LINEAR:`linear`,FLAT:`flat`},Ite={NORMAL:`normal`,CENTROID:`centroid`,SAMPLE:`sample`,FIRST:`first`,EITHER:`either`};var Wu=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+Gu[e>>16&255]+Gu[e>>24&255]+`-`+Gu[t&255]+Gu[t>>8&255]+`-`+Gu[t>>16&15|64]+Gu[t>>24&255]+`-`+Gu[n&63|128]+Gu[n>>8&255]+`-`+Gu[n>>16&255]+Gu[n>>24&255]+Gu[r&255]+Gu[r>>8&255]+Gu[r>>16&255]+Gu[r>>24&255];return i.toLowerCase()}function Xu(e,t,n){return Math.max(t,Math.min(n,e))}function Zu(e,t){return(e%t+t)%t}function Lte(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function Rte(e,t,n){return e===t?0:(n-e)/(t-e)}function Qu(e,t,n){return(1-n)*e+n*t}function zte(e,t,n,r){return Qu(e,t,1-Math.exp(-n*r))}function Bte(e,t=1){return t-Math.abs(Zu(e,t*2)-t)}function Vte(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function Hte(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function Ute(e,t){return e+Math.floor(Math.random()*(t-e+1))}function Wte(e,t){return e+Math.random()*(t-e)}function Gte(e){return e*(.5-Math.random())}function Kte(e){e!==void 0&&(Ku=e);let t=Ku+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function qte(e){return e*qu}function Jte(e){return e*Ju}function Yte(e){return(e&e-1)==0&&e!==0}function Xte(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function Zte(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function Qte(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:console.warn(`THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function $u(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`Invalid component type.`)}}function ed(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`Invalid component type.`)}}const td={DEG2RAD:qu,RAD2DEG:Ju,generateUUID:Yu,clamp:Xu,euclideanModulo:Zu,mapLinear:Lte,inverseLerp:Rte,lerp:Qu,damp:zte,pingpong:Bte,smoothstep:Vte,smootherstep:Hte,randInt:Ute,randFloat:Wte,randFloatSpread:Gte,seededRandom:Kte,degToRad:qte,radToDeg:Jte,isPowerOfTwo:Yte,ceilPowerOfTwo:Xte,floorPowerOfTwo:Zte,setQuaternionFromProperEuler:Qte,normalize:ed,denormalize:$u};var nd=class e{constructor(t=0,n=0){e.prototype.isVector2=!0,this.x=t,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Xu(this.x,e.x,t.x),this.y=Xu(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=Xu(this.x,e,t),this.y=Xu(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Xu(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){let e=Math.atan2(-this.y,-this.x)+Math.PI;return e}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Xu(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},rd=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(o===0){e[t+0]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u;return}if(o===1){e[t+0]=d,e[t+1]=f,e[t+2]=p,e[t+3]=m;return}if(u!==m||s!==d||c!==f||l!==p){let e=1-o,t=s*d+c*f+l*p+u*m,n=t>=0?1:-1,r=1-t*t;if(r>2**-52){let i=Math.sqrt(r),a=Math.atan2(i,t*n);e=Math.sin(e*a)/i,o=Math.sin(o*a)/i}let i=o*n;if(s=s*e+d*i,c=c*e+f*i,l=l*e+p*i,u=u*e+m*i,e===1-o){let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:console.warn(`THREE.Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Xu(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);let n=this._x,r=this._y,i=this._z,a=this._w,o=a*e._w+n*e._x+r*e._y+i*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;let s=1-o*o;if(s<=2**-52){let e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this}let c=Math.sqrt(s),l=Math.atan2(c,o),u=Math.sin((1-t)*l)/c,d=Math.sin(t*l)/c;return this._w=a*u+this._w*d,this._x=n*u+this._x*d,this._y=r*u+this._y*d,this._z=i*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},W=class e{constructor(t=0,n=0,r=0){e.prototype.isVector3=!0,this.x=t,this.y=n,this.z=r}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(ad.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(ad.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Xu(this.x,e.x,t.x),this.y=Xu(this.y,e.y,t.y),this.z=Xu(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=Xu(this.x,e,t),this.y=Xu(this.y,e,t),this.z=Xu(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Xu(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return id.copy(this).projectOnVector(e),this.sub(id)}reflect(e){return this.sub(id.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Xu(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}};const id=new W,ad=new rd;var od=class e{constructor(t,n,r,i,a,o,s,c,l){e.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,n,r,i,a,o,s,c,l)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(sd.makeScale(e,t)),this}rotate(e){return this.premultiply(sd.makeRotation(-e)),this}translate(e,t){return this.premultiply(sd.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}};const sd=new od;function cd(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}const $te={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function ld(e,t){return new $te[e](t)}function ud(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function dd(){let e=ud(`canvas`);return e.style.display=`block`,e}const fd={};function pd(e){e in fd||(fd[e]=!0,console.warn(e))}function ene(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}const md=new od().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),hd=new od().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function tne(){let e={enabled:!0,workingColorSpace:Fu,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===Lu&&(e.r=_d(e.r),e.g=_d(e.g),e.b=_d(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===Lu&&(e.r=vd(e.r),e.g=vd(e.g),e.b=vd(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?Iu:this.spaces[e].transfer},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return pd(`THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return pd(`THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[Fu]:{primaries:t,whitePoint:r,transfer:Iu,toXYZ:md,fromXYZ:hd,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:Pu},outputColorSpaceConfig:{drawingBufferColorSpace:Pu}},[Pu]:{primaries:t,whitePoint:r,transfer:Lu,toXYZ:md,fromXYZ:hd,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:Pu}}}),e}const gd=tne();function _d(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function vd(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}let yd;var bd=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{yd===void 0&&(yd=ud(`canvas`)),yd.width=e.width,yd.height=e.height;let t=yd.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=yd}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=ud(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0}get width(){return this.source.getSize(Cd).x}get height(){return this.source.getSize(Cd).y}get depth(){return this.source.getSize(Cd).z}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){console.warn(`THREE.Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){console.warn(`THREE.Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case cl:e.x-=Math.floor(e.x);break;case ll:e.x=e.x<0?0:1;break;case ul:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case cl:e.y-=Math.floor(e.y);break;case ll:e.y=e.y<0?0:1;break;case ul:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};wd.DEFAULT_IMAGE=null,wd.DEFAULT_MAPPING=300,wd.DEFAULT_ANISOTROPY=1;var Td=class e{constructor(t=0,n=0,r=0,i=1){e.prototype.isVector4=!0,this.x=t,this.y=n,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Md),Md.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Bd),Vd.subVectors(this.max,Bd),Pd.subVectors(e.a,Bd),Fd.subVectors(e.b,Bd),Id.subVectors(e.c,Bd),Ld.subVectors(Fd,Pd),Rd.subVectors(Id,Fd),zd.subVectors(Pd,Id);let t=[0,-Ld.z,Ld.y,0,-Rd.z,Rd.y,0,-zd.z,zd.y,Ld.z,0,-Ld.x,Rd.z,0,-Rd.x,zd.z,0,-zd.x,-Ld.y,Ld.x,0,-Rd.y,Rd.x,0,-zd.y,zd.x,0];return!Wd(t,Pd,Fd,Id,Vd)||(t=[1,0,0,0,1,0,0,0,1],!Wd(t,Pd,Fd,Id,Vd))?!1:(Hd.crossVectors(Ld,Rd),t=[Hd.x,Hd.y,Hd.z],Wd(t,Pd,Fd,Id,Vd))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Md).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Md).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(jd[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),jd[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),jd[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),jd[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),jd[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),jd[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),jd[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),jd[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(jd),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}};const jd=[new W,new W,new W,new W,new W,new W,new W,new W],Md=new W,Nd=new Ad,Pd=new W,Fd=new W,Id=new W,Ld=new W,Rd=new W,zd=new W,Bd=new W,Vd=new W,Hd=new W,Ud=new W;function Wd(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Ud.fromArray(e,a);let o=i.x*Math.abs(Ud.x)+i.y*Math.abs(Ud.y)+i.z*Math.abs(Ud.z),s=t.dot(Ud),c=n.dot(Ud),l=r.dot(Ud);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}const one=new Ad,Gd=new W,Kd=new W;var qd=class{constructor(e=new W,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let n=this.center;t===void 0?one.setFromPoints(e).getCenter(n):n.copy(t);let r=0;for(let t=0,i=e.length;tthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Gd.subVectors(e,this.center);let t=Gd.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Gd,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Kd.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Gd.copy(e.center).add(Kd)),this.expandByPoint(Gd.copy(e.center).sub(Kd))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}};const Jd=new W,Yd=new W,Xd=new W,Zd=new W,Qd=new W,$d=new W,ef=new W;var tf=class{constructor(e=new W,t=new W(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Jd)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=Jd.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Jd.copy(this.origin).addScaledVector(this.direction,t),Jd.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Yd.copy(e).add(t).multiplyScalar(.5),Xd.copy(t).sub(e).normalize(),Zd.copy(this.origin).sub(Yd);let i=e.distanceTo(t)*.5,a=-this.direction.dot(Xd),o=Zd.dot(this.direction),s=-Zd.dot(Xd),c=Zd.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0)if(u=a*s-o,d=a*o-s,p=i*l,u>=0)if(d>=-p)if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c);else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(Yd).addScaledVector(Xd,d),f}intersectSphere(e,t){Jd.subVectors(e.center,this.origin);let n=Jd.dot(this.direction),r=Jd.dot(Jd)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);if(t===0)return!0;let n=e.normal.dot(this.direction);return n*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,Jd)!==null}intersectTriangle(e,t,n,r,i){Qd.subVectors(t,e),$d.subVectors(n,e),ef.crossVectors(Qd,$d);let a=this.direction.dot(ef),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;Zd.subVectors(this.origin,e);let s=o*this.direction.dot($d.crossVectors(Zd,$d));if(s<0)return null;let c=o*this.direction.dot(Qd.cross(Zd));if(c<0||s+c>a)return null;let l=-o*Zd.dot(ef);return l<0?null:this.at(l/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},nf=class e{constructor(t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g){e.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g)}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=a,g[9]=o,g[13]=s,g[2]=c,g[6]=l,g[10]=u,g[14]=d,g[3]=f,g[7]=p,g[11]=m,g[15]=h,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new e().fromArray(this.elements)}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){let t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){let t=this.elements,n=e.elements,r=1/rf.setFromMatrixColumn(e,0).length(),i=1/rf.setFromMatrixColumn(e,1).length(),a=1/rf.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if(e.order===`XYZ`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=-s*u,t[8]=c,t[1]=n+r*c,t[5]=e-i*c,t[9]=-o*s,t[2]=i-e*c,t[6]=r+n*c,t[10]=a*s}else if(e.order===`YXZ`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e+i*o,t[4]=r*o-n,t[8]=a*c,t[1]=a*u,t[5]=a*l,t[9]=-o,t[2]=n*o-r,t[6]=i+e*o,t[10]=a*s}else if(e.order===`ZXY`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e-i*o,t[4]=-a*u,t[8]=r+n*o,t[1]=n+r*o,t[5]=a*l,t[9]=i-e*o,t[2]=-a*c,t[6]=o,t[10]=a*s}else if(e.order===`ZYX`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=r*c-n,t[8]=e*c+i,t[1]=s*u,t[5]=i*c+e,t[9]=n*c-r,t[2]=-c,t[6]=o*s,t[10]=a*s}else if(e.order===`YZX`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*l,t[9]=-o*l,t[2]=-c*l,t[6]=n*u+r,t[10]=e-i*u}else if(e.order===`XZY`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=-u,t[8]=c*l,t[1]=e*u+i,t[5]=a*l,t[9]=n*u-r,t[2]=r*u-n,t[6]=o*l,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(sne,e,cne)}lookAt(e,t,n){let r=this.elements;return lf.subVectors(e,t),lf.lengthSq()===0&&(lf.z=1),lf.normalize(),sf.crossVectors(n,lf),sf.lengthSq()===0&&(Math.abs(n.z)===1?lf.x+=1e-4:lf.z+=1e-4,lf.normalize(),sf.crossVectors(n,lf)),sf.normalize(),cf.crossVectors(lf,sf),r[0]=sf.x,r[4]=cf.x,r[8]=lf.x,r[1]=sf.y,r[5]=cf.y,r[9]=lf.y,r[2]=sf.z,r[6]=cf.z,r[10]=lf.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],c=n[12],l=n[1],u=n[5],d=n[9],f=n[13],p=n[2],m=n[6],h=n[10],g=n[14],_=n[3],v=n[7],y=n[11],b=n[15],x=r[0],S=r[4],C=r[8],w=r[12],T=r[1],E=r[5],D=r[9],O=r[13],k=r[2],A=r[6],j=r[10],M=r[14],ee=r[3],te=r[7],N=r[11],ne=r[15];return i[0]=a*x+o*T+s*k+c*ee,i[4]=a*S+o*E+s*A+c*te,i[8]=a*C+o*D+s*j+c*N,i[12]=a*w+o*O+s*M+c*ne,i[1]=l*x+u*T+d*k+f*ee,i[5]=l*S+u*E+d*A+f*te,i[9]=l*C+u*D+d*j+f*N,i[13]=l*w+u*O+d*M+f*ne,i[2]=p*x+m*T+h*k+g*ee,i[6]=p*S+m*E+h*A+g*te,i[10]=p*C+m*D+h*j+g*N,i[14]=p*w+m*O+h*M+g*ne,i[3]=_*x+v*T+y*k+b*ee,i[7]=_*S+v*E+y*A+b*te,i[11]=_*C+v*D+y*j+b*N,i[15]=_*w+v*O+y*M+b*ne,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],c=e[13],l=e[2],u=e[6],d=e[10],f=e[14],p=e[3],m=e[7],h=e[11],g=e[15];return p*(+i*s*u-r*c*u-i*o*d+n*c*d+r*o*f-n*s*f)+m*(+t*s*f-t*c*d+i*a*d-r*a*f+r*c*l-i*s*l)+h*(+t*c*u-t*o*f-i*a*u+n*a*f+i*o*l-n*c*l)+g*(-r*o*l-t*s*u+t*o*d+r*a*u-n*a*d+n*s*l)}transpose(){let e=this.elements,t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){let r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=e[9],d=e[10],f=e[11],p=e[12],m=e[13],h=e[14],g=e[15],_=u*h*c-m*d*c+m*s*f-o*h*f-u*s*g+o*d*g,v=p*d*c-l*h*c-p*s*f+a*h*f+l*s*g-a*d*g,y=l*m*c-p*u*c+p*o*f-a*m*f-l*o*g+a*u*g,b=p*u*s-l*m*s-p*o*d+a*m*d+l*o*h-a*u*h,x=t*_+n*v+r*y+i*b;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let S=1/x;return e[0]=_*S,e[1]=(m*d*i-u*h*i-m*r*f+n*h*f+u*r*g-n*d*g)*S,e[2]=(o*h*i-m*s*i+m*r*c-n*h*c-o*r*g+n*s*g)*S,e[3]=(u*s*i-o*d*i-u*r*c+n*d*c+o*r*f-n*s*f)*S,e[4]=v*S,e[5]=(l*h*i-p*d*i+p*r*f-t*h*f-l*r*g+t*d*g)*S,e[6]=(p*s*i-a*h*i-p*r*c+t*h*c+a*r*g-t*s*g)*S,e[7]=(a*d*i-l*s*i+l*r*c-t*d*c-a*r*f+t*s*f)*S,e[8]=y*S,e[9]=(p*u*i-l*m*i-p*n*f+t*m*f+l*n*g-t*u*g)*S,e[10]=(a*m*i-p*o*i+p*n*c-t*m*c-a*n*g+t*o*g)*S,e[11]=(l*o*i-a*u*i-l*n*c+t*u*c+a*n*f-t*o*f)*S,e[12]=b*S,e[13]=(l*m*r-p*u*r+p*n*d-t*m*d-l*n*h+t*u*h)*S,e[14]=(p*o*r-a*m*r-p*n*s+t*m*s+a*n*h-t*o*h)*S,e[15]=(a*u*r-l*o*r+l*n*s-t*u*s-a*n*d+t*o*d)*S,this}scale(e){let t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){let e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,c=i*a,l=i*o;return this.set(c*a+n,c*o-r*s,c*s+r*o,0,c*o+r*s,l*o+n,l*s-r*a,0,c*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){let r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,c=i+i,l=a+a,u=o+o,d=i*c,f=i*l,p=i*u,m=a*l,h=a*u,g=o*u,_=s*c,v=s*l,y=s*u,b=n.x,x=n.y,S=n.z;return r[0]=(1-(m+g))*b,r[1]=(f+y)*b,r[2]=(p-v)*b,r[3]=0,r[4]=(f-y)*x,r[5]=(1-(d+g))*x,r[6]=(h+_)*x,r[7]=0,r[8]=(p+v)*S,r[9]=(h-_)*S,r[10]=(1-(d+m))*S,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){let r=this.elements,i=rf.set(r[0],r[1],r[2]).length(),a=rf.set(r[4],r[5],r[6]).length(),o=rf.set(r[8],r[9],r[10]).length(),s=this.determinant();s<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],af.copy(this);let c=1/i,l=1/a,u=1/o;return af.elements[0]*=c,af.elements[1]*=c,af.elements[2]*=c,af.elements[4]*=l,af.elements[5]*=l,af.elements[6]*=l,af.elements[8]*=u,af.elements[9]*=u,af.elements[10]*=u,t.setFromRotationMatrix(af),n.x=i,n.y=a,n.z=o,this}makePerspective(e,t,n,r,i,a,o=Hu,s=!1){let c=this.elements,l=2*i/(t-e),u=2*i/(n-r),d=(t+e)/(t-e),f=(n+r)/(n-r),p,m;if(s)p=i/(a-i),m=a*i/(a-i);else if(o===Hu)p=-(a+i)/(a-i),m=-2*a*i/(a-i);else if(o===Uu)p=-a/(a-i),m=-a*i/(a-i);else throw Error(`THREE.Matrix4.makePerspective(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=d,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,n,r,i,a,o=Hu,s=!1){let c=this.elements,l=2/(t-e),u=2/(n-r),d=-(t+e)/(t-e),f=-(n+r)/(n-r),p,m;if(s)p=1/(a-i),m=a/(a-i);else if(o===Hu)p=-2/(a-i),m=-(a+i)/(a-i);else if(o===Uu)p=-1/(a-i),m=-i/(a-i);else throw Error(`THREE.Matrix4.makeOrthographic(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=0,c[12]=d,c[1]=0,c[5]=u,c[9]=0,c[13]=f,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}};const rf=new W,af=new nf,sne=new W(0,0,0),cne=new W(1,1,1),sf=new W,cf=new W,lf=new W,uf=new nf,df=new rd;var ff=class e{constructor(t=0,n=0,r=0,i=e.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){let r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],c=r[5],l=r[9],u=r[2],d=r[6],f=r[10];switch(t){case`XYZ`:this._y=Math.asin(Xu(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(d,c),this._z=0);break;case`YXZ`:this._x=Math.asin(-Xu(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,f),this._z=Math.atan2(s,c)):(this._y=Math.atan2(-u,i),this._z=0);break;case`ZXY`:this._x=Math.asin(Xu(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(s,i));break;case`ZYX`:this._y=Math.asin(-Xu(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,c));break;case`YZX`:this._z=Math.asin(Xu(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(o,f));break;case`XZY`:this._z=Math.asin(-Xu(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,f),this._y=0);break;default:console.warn(`THREE.Euler: .setFromRotationMatrix() encountered an unknown order: `+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return uf.makeRotationFromQuaternion(e),this.setFromRotationMatrix(uf,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return df.setFromEuler(this),this.setFromQuaternion(df,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};ff.DEFAULT_ORDER=`XYZ`;var pf=class{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Af.subVectors(r,t),jf.subVectors(n,t),Mf.subVectors(e,t);let a=Af.dot(Af),o=Af.dot(jf),s=Af.dot(Mf),c=jf.dot(jf),l=jf.dot(Mf),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,Nf)===null?!1:Nf.x>=0&&Nf.y>=0&&Nf.x+Nf.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,Nf)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,Nf.x),s.addScaledVector(a,Nf.y),s.addScaledVector(o,Nf.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return Bf.setScalar(0),Vf.setScalar(0),Hf.setScalar(0),Bf.fromBufferAttribute(e,t),Vf.fromBufferAttribute(e,n),Hf.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(Bf,i.x),a.addScaledVector(Vf,i.y),a.addScaledVector(Hf,i.z),a}static isFrontFacing(e,t,n,r){return Af.subVectors(n,t),jf.subVectors(e,t),Af.cross(jf).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Af.subVectors(this.c,this.b),jf.subVectors(this.a,this.b),Af.cross(jf).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;Pf.subVectors(r,n),Ff.subVectors(i,n),Lf.subVectors(e,n);let s=Pf.dot(Lf),c=Ff.dot(Lf);if(s<=0&&c<=0)return t.copy(n);Rf.subVectors(e,r);let l=Pf.dot(Rf),u=Ff.dot(Rf);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(Pf,a);zf.subVectors(e,i);let f=Pf.dot(zf),p=Ff.dot(zf);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(Ff,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return If.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(If,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(Pf,a).addScaledVector(Ff,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}};const Wf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Gf={h:0,s:0,l:0},Kf={h:0,s:0,l:0};function qf(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var Jf=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Pu){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,gd.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=gd.workingColorSpace){return this.r=e,this.g=t,this.b=n,gd.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=gd.workingColorSpace){if(e=Zu(e,1),t=Xu(t,0,1),n=Xu(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=qf(i,r,e+1/3),this.g=qf(i,r,e),this.b=qf(i,r,e-1/3)}return gd.colorSpaceToWorking(this,r),this}setStyle(e,t=Pu){function n(t){t!==void 0&&parseFloat(t)<1&&console.warn(`THREE.Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:console.warn(`THREE.Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);console.warn(`THREE.Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Pu){let n=Wf[e.toLowerCase()];return n===void 0?console.warn(`THREE.Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=_d(e.r),this.g=_d(e.g),this.b=_d(e.b),this}copyLinearToSRGB(e){return this.r=vd(e.r),this.g=vd(e.g),this.b=vd(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Pu){return gd.workingToColorSpace(Yf.copy(this),e),Math.round(Xu(Yf.r*255,0,255))*65536+Math.round(Xu(Yf.g*255,0,255))*256+Math.round(Xu(Yf.b*255,0,255))}getHexString(e=Pu){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=gd.workingColorSpace){gd.workingToColorSpace(Yf.copy(this),t);let n=Yf.r,r=Yf.g,i=Yf.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,this.name!==``&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.side!==0&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==204&&(n.blendSrc=this.blendSrc),this.blendDst!==205&&(n.blendDst=this.blendDst),this.blendEquation!==100&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==3&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==519&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ru&&(n.stencilFail=this.stencilFail),this.stencilZFail!==Ru&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==Ru&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},Qf=class extends Zf{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new Jf(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ff,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}};const $f=ep();function ep(){let e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),i=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-27?(r[e]=0,r[e|256]=32768,i[e]=24,i[e|256]=24):t<-14?(r[e]=1024>>-t-14,r[e|256]=1024>>-t-14|32768,i[e]=-t-1,i[e|256]=-t-1):t<=15?(r[e]=t+15<<10,r[e|256]=t+15<<10|32768,i[e]=13,i[e|256]=13):t<128?(r[e]=31744,r[e|256]=64512,i[e]=24,i[e|256]=24):(r[e]=31744,r[e|256]=64512,i[e]=13,i[e|256]=13)}let a=new Uint32Array(2048),o=new Uint32Array(64),s=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;!(t&8388608);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,a[e]=t|n}for(let e=1024;e<2048;++e)a[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)o[e]=e<<23;o[31]=1199570944,o[32]=2147483648;for(let e=33;e<63;++e)o[e]=2147483648+(e-32<<23);o[63]=3347054592;for(let e=1;e<64;++e)e!==32&&(s[e]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:o,offsetTable:s}}function tp(e){Math.abs(e)>65504&&console.warn(`THREE.DataUtils.toHalfFloat(): Value out of range.`),e=Xu(e,-65504,65504),$f.floatView[0]=e;let t=$f.uint32View[0],n=t>>23&511;return $f.baseTable[n]+((t&8388607)>>$f.shiftTable[n])}function np(e){let t=e>>10;return $f.uint32View[0]=$f.mantissaTable[$f.offsetTable[t]+(e&1023)]+$f.exponentTable[t],$f.floatView[0]}var rp=class{static toHalfFloat(e){return tp(e)}static fromHalfFloat(e){return np(e)}};const ip=new W,ap=new nd;let op=0;var sp=class{constructor(e,t,n=!1){if(Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,`id`,{value:op++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=zu,this.updateRanges=[],this.gpuType=Cl,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rt.count&&console.warn(`THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Ad);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error(`THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new W(-1/0,-1/0,-1/0),new W(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e0){let e=t[n[0]];if(e!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t(e.far-e.near)**2))&&(Tp.copy(i).invert(),Ep.copy(e.ray).applyMatrix4(Tp),!(n.boundingBox!==null&&Ep.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,Ep)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null)if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Fp.clone(),object:e}}function Rp(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,kp),e.getVertexPosition(c,Ap),e.getVertexPosition(l,jp);let u=Lp(e,t,n,r,kp,Ap,jp,Pp);if(u){let e=new W;Uf.getBarycoord(Pp,kp,Ap,jp,e),i&&(u.uv=Uf.getInterpolatedAttribute(i,s,c,l,e,new nd)),a&&(u.uv1=Uf.getInterpolatedAttribute(a,s,c,l,e,new nd)),o&&(u.normal=Uf.getInterpolatedAttribute(o,s,c,l,e,new W),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new W,materialIndex:0};Uf.getNormal(kp,Ap,jp,t.normal),u.face=t,u.barycoord=e}return u}var zp=class e extends wp{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new gp(c,3)),this.setAttribute(`normal`,new gp(l,3)),this.setAttribute(`uv`,new gp(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new W;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}}for(let e=0;ee in t}const h={},g=[],_=()=>{},v=()=>!1,y=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),b=e=>e.startsWith(`onUpdate:`),x=Object.assign,S=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},C=Object.prototype.hasOwnProperty,w=(e,t)=>C.call(e,t),T=Array.isArray,E=e=>ne(e)===`[object Map]`,D=e=>ne(e)===`[object Set]`,O=e=>ne(e)===`[object Date]`,k=e=>ne(e)===`[object RegExp]`,A=e=>typeof e==`function`,j=e=>typeof e==`string`,M=e=>typeof e==`symbol`,ee=e=>typeof e==`object`&&!!e,te=e=>(ee(e)||A(e))&&A(e.then)&&A(e.catch),N=Object.prototype.toString,ne=e=>N.call(e),re=e=>ne(e).slice(8,-1),ie=e=>ne(e)===`[object Object]`,ae=e=>j(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,oe=m(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),se=e=>{let t=Object.create(null);return(n=>{let r=t[n];return r||(t[n]=e(n))})},ce=/-\w/g,le=se(e=>e.replace(ce,e=>e.slice(1).toUpperCase())),ue=/\B([A-Z])/g,de=se(e=>e.replace(ue,`-$1`).toLowerCase()),fe=se(e=>e.charAt(0).toUpperCase()+e.slice(1)),pe=se(e=>{let t=e?`on${fe(e)}`:``;return t}),P=(e,t)=>!Object.is(e,t),me=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ge=e=>{let t=parseFloat(e);return isNaN(t)?e:t},_e=e=>{let t=j(e)?Number(e):NaN;return isNaN(t)?e:t},ve=()=>typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},ye=m(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function be(e){if(T(e)){let t={};for(let n=0;n{if(e){let n=e.split(Se);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Te(e){let t=``;if(j(e))t=e;else if(T(e))for(let n=0;nje(e,t))}const Ne=e=>!!(e&&e.__v_isRef===!0),Pe=e=>j(e)?e:e==null?``:T(e)||ee(e)&&(e.toString===N||!A(e.toString))?Ne(e)?Pe(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Ne(t)?Fe(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:D(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:M(t)?Ie(t):ee(t)&&!T(t)&&!ie(t)?String(t):t,Ie=(e,t=``)=>{var n;return M(e)?`Symbol(${(n=e.description)??t})`:e};function Le(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}let Re;var ze=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Re,!e&&Re&&(this.index=(Re.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0&&(Re=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(Je){let e=Je;for(Je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;qe;){let t=qe;for(qe=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Qe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $e(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),nt(r),rt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function et(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(tt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function tt(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===dt)||(e.globalVersion=dt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!et(e))))return;e.flags|=2;let t=e.dep,n=Ue,r=ot;Ue=e,ot=!0;try{Qe(e);let n=e.fn(e._value);(t.version===0||P(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Ue=n,ot=r,$e(e),e.flags&=-3}}function nt(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)nt(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function rt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function it(e,t){e.effect instanceof Ge&&(e=e.effect.fn);let n=new Ge(e);t&&x(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function at(e){e.effect.stop()}let ot=!0;const st=[];function ct(){st.push(ot),ot=!1}function lt(){let e=st.pop();ot=e===void 0?!0:e}function ut(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Ue;Ue=void 0;try{t()}finally{Ue=e}}}let dt=0;var ft=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},pt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ue||!ot||Ue===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ue)t=this.activeLink=new ft(Ue,this),Ue.deps?(t.prevDep=Ue.depsTail,Ue.depsTail.nextDep=t,Ue.depsTail=t):Ue.deps=Ue.depsTail=t,mt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ue.depsTail,t.nextDep=void 0,Ue.depsTail.nextDep=t,Ue.depsTail=t,Ue.deps===t&&(Ue.deps=e)}return t}trigger(e){this.version++,dt++,this.notify(e)}notify(e){Xe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ze()}}};function mt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)mt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ht=new WeakMap,gt=Symbol(``),_t=Symbol(``),vt=Symbol(``);function yt(e,t,n){if(ot&&Ue){let t=ht.get(e);t||ht.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new pt),r.map=t,r.key=n),r.track()}}function bt(e,t,n,r,i,a){let o=ht.get(e);if(!o){dt++;return}let s=e=>{e&&e.trigger()};if(Xe(),t===`clear`)o.forEach(s);else{let i=T(e),a=i&&ae(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===vt||!M(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(vt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(gt)),E(e)&&s(o.get(_t)));break;case`delete`:i||(s(o.get(gt)),E(e)&&s(o.get(_t)));break;case`set`:E(e)&&s(o.get(gt));break}}Ze()}function xt(e,t){let n=ht.get(e);return n&&n.get(t)}function St(e){let t=sn(e);return t===e?t:(yt(t,`iterate`,vt),an(e)?t:t.map(ln))}function Ct(e){return yt(e=sn(e),`iterate`,vt),e}const wt={__proto__:null,[Symbol.iterator](){return Tt(this,Symbol.iterator,ln)},concat(...e){return St(this).concat(...e.map(e=>T(e)?St(e):e))},entries(){return Tt(this,`entries`,e=>(e[1]=ln(e[1]),e))},every(e,t){return Dt(this,`every`,e,t,void 0,arguments)},filter(e,t){return Dt(this,`filter`,e,t,e=>e.map(ln),arguments)},find(e,t){return Dt(this,`find`,e,t,ln,arguments)},findIndex(e,t){return Dt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Dt(this,`findLast`,e,t,ln,arguments)},findLastIndex(e,t){return Dt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Dt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return kt(this,`includes`,e)},indexOf(...e){return kt(this,`indexOf`,e)},join(e){return St(this).join(e)},lastIndexOf(...e){return kt(this,`lastIndexOf`,e)},map(e,t){return Dt(this,`map`,e,t,void 0,arguments)},pop(){return At(this,`pop`)},push(...e){return At(this,`push`,e)},reduce(e,...t){return Ot(this,`reduce`,e,t)},reduceRight(e,...t){return Ot(this,`reduceRight`,e,t)},shift(){return At(this,`shift`)},some(e,t){return Dt(this,`some`,e,t,void 0,arguments)},splice(...e){return At(this,`splice`,e)},toReversed(){return St(this).toReversed()},toSorted(e){return St(this).toSorted(e)},toSpliced(...e){return St(this).toSpliced(...e)},unshift(...e){return At(this,`unshift`,e)},values(){return Tt(this,`values`,ln)}};function Tt(e,t,n){let r=Ct(e),i=r[t]();return r!==e&&!an(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.value&&=n(e.value),e}),i}const Et=Array.prototype;function Dt(e,t,n,r,i,a){let o=Ct(e),s=o!==e&&!an(e),c=o[t];if(c!==Et[t]){let t=c.apply(e,a);return s?ln(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ln(t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Ot(e,t,n,r){let i=Ct(e),a=n;return i!==e&&(an(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,ln(r),i,e)}),i[t](a,...r)}function kt(e,t,n){let r=sn(e);yt(r,`iterate`,vt);let i=r[t](...n);return(i===-1||i===!1)&&on(n[0])?(n[0]=sn(n[0]),r[t](...n)):i}function At(e,t,n=[]){ct(),Xe();let r=sn(e)[t].apply(e,n);return Ze(),lt(),r}const jt=m(`__proto__,__v_isRef,__isVue`),Mt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(M));function Nt(e){M(e)||(e=String(e));let t=sn(this);return yt(t,`has`,e),t.hasOwnProperty(e)}var Pt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Jt:qt:i?Kt:Gt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=T(e);if(!r){let e;if(a&&(e=wt[t]))return e;if(t===`hasOwnProperty`)return Nt}let o=Reflect.get(e,t,dn(e)?e:n);return(M(t)?Mt.has(t):jt(t))||(r||yt(e,`get`,t),i)?o:dn(o)?a&&ae(t)?o:o.value:ee(o)?r?$t(o):Zt(o):o}},Ft=class extends Pt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){let t=rn(i);if(!an(n)&&!rn(n)&&(i=sn(i),n=sn(n)),!T(e)&&dn(i)&&!dn(n))return t||(i.value=n),!0}let a=T(e)&&ae(t)?Number(t)e,Vt=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n){return function(...r){let i=this.__v_raw,a=sn(i),o=E(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Bt:t?un:ln;return!t&&yt(a,`iterate`,c?_t:gt),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ut(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function tee(e,t){let n={get(n){let r=this.__v_raw,i=sn(r),a=sn(n);e||(P(n,a)&&yt(i,`get`,n),yt(i,`get`,a));let{has:o}=Vt(i),s=t?Bt:e?un:ln;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&yt(sn(t),`iterate`,gt),t.size},has(t){let n=this.__v_raw,r=sn(n),i=sn(t);return e||(P(t,i)&&yt(r,`has`,t),yt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=sn(a),s=t?Bt:e?un:ln;return!e&&yt(o,`iterate`,gt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};x(n,e?{add:Ut(`add`),set:Ut(`set`),delete:Ut(`delete`),clear:Ut(`clear`)}:{add(e){!t&&!an(e)&&!rn(e)&&(e=sn(e));let n=sn(this),r=Vt(n),i=r.has.call(n,e);return i||(n.add(e),bt(n,`add`,e,e)),this},set(e,n){!t&&!an(n)&&!rn(n)&&(n=sn(n));let r=sn(this),{has:i,get:a}=Vt(r),o=i.call(r,e);o||=(e=sn(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?P(n,s)&&bt(r,`set`,e,n,s):bt(r,`add`,e,n),this},delete(e){let t=sn(this),{has:n,get:r}=Vt(t),i=n.call(t,e);i||=(e=sn(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&bt(t,`delete`,e,void 0,a),o},clear(){let e=sn(this),t=e.size!==0,n=e.clear();return t&&bt(e,`clear`,void 0,void 0,void 0),n}});let r=[`keys`,`values`,`entries`,Symbol.iterator];return r.forEach(r=>{n[r]=Ht(r,e,t)}),n}function Wt(e,t){let n=tee(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(w(n,r)&&r in t?n:t,r,i)}const nee={get:Wt(!1,!1)},ree={get:Wt(!1,!0)},iee={get:Wt(!0,!1)},aee={get:Wt(!0,!0)},Gt=new WeakMap,Kt=new WeakMap,qt=new WeakMap,Jt=new WeakMap;function Yt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Xt(e){return e.__v_skip||!Object.isExtensible(e)?0:Yt(re(e))}function Zt(e){return rn(e)?e:tn(e,!1,Lt,nee,Gt)}function Qt(e){return tn(e,!1,Rt,ree,Kt)}function $t(e){return tn(e,!0,eee,iee,qt)}function en(e){return tn(e,!0,zt,aee,Jt)}function tn(e,t,n,r,i){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Xt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function nn(e){return rn(e)?nn(e.__v_raw):!!(e&&e.__v_isReactive)}function rn(e){return!!(e&&e.__v_isReadonly)}function an(e){return!!(e&&e.__v_isShallow)}function on(e){return e?!!e.__v_raw:!1}function sn(e){let t=e&&e.__v_raw;return t?sn(t):e}function cn(e){return!w(e,`__v_skip`)&&Object.isExtensible(e)&&he(e,`__v_skip`,!0),e}const ln=e=>ee(e)?Zt(e):e,un=e=>ee(e)?$t(e):e;function dn(e){return e?e.__v_isRef===!0:!1}function F(e){return pn(e,!1)}function fn(e){return pn(e,!0)}function pn(e,t){return dn(e)?e:new oee(e,t)}var oee=class{constructor(e,t){this.dep=new pt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:sn(e),this._value=t?e:ln(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||an(e)||rn(e);e=n?e:sn(e),P(e,t)&&(this._rawValue=e,this._value=n?e:ln(e),this.dep.trigger())}};function see(e){e.dep&&e.dep.trigger()}function I(e){return dn(e)?e.value:e}function mn(e){return A(e)?e():I(e)}const cee={get:(e,t,n)=>t===`__v_raw`?e:I(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return dn(i)&&!dn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function hn(e){return nn(e)?e:new Proxy(e,cee)}var lee=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new pt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function gn(e){return new lee(e)}function _n(e){let t=T(e)?Array(e.length):{};for(let n in e)t[n]=yn(e,n);return t}var uee=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return xt(sn(this._object),this._key)}},dee=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function vn(e,t,n){return dn(e)?e:A(e)?new dee(e):ee(e)&&arguments.length>1?yn(e,t,n):F(e)}function yn(e,t,n){let r=e[t];return dn(r)?r:new uee(e,t,n)}var bn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new pt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=dt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return Ye(this,!0),!0}get value(){let e=this.dep.track();return tt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function xn(e,t,n=!1){let r,i;A(e)?r=e:(r=e.get,i=e.set);let a=new bn(r,i,n);return a}const Sn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Cn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},wn={},Tn=new WeakMap;let En;function Dn(){return En}function On(e,t=!1,n=En){if(n){let t=Tn.get(n);t||Tn.set(n,t=[]),t.push(e)}}function kn(e,t,n=h){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:an(e)||i===!1||i===0?An(e,1):An(e),u,d,f,p,m=!1,g=!1;if(dn(e)?(d=()=>e.value,m=an(e)):nn(e)?(d=()=>l(e),m=!0):T(e)?(g=!0,m=e.some(e=>nn(e)||an(e)),d=()=>e.map(e=>{if(dn(e))return e.value;if(nn(e))return l(e);if(A(e))return c?c(e,2):e()})):d=A(e)?t?c?()=>c(e,2):e:()=>{if(f){ct();try{f()}finally{lt()}}let t=En;En=u;try{return c?c(e,3,[p]):e(p)}finally{En=t}}:_,t&&i){let e=d,t=i===!0?1/0:i;d=()=>An(e(),t)}let v=Ve(),y=()=>{u.stop(),v&&v.active&&S(v.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),y()}}let b=g?Array(e.length).fill(wn):wn,x=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||m||(g?e.some((e,t)=>P(e,b[t])):P(e,b))){f&&f();let n=En;En=u;try{let n=[e,b===wn?void 0:g&&b[0]===wn?[]:b,p];b=e,c?c(t,3,n):t(...n)}finally{En=n}}}else u.run()};return s&&s(x),u=new Ge(d),u.scheduler=o?()=>o(x,!1):x,p=e=>On(e,!1,u),f=u.onStop=()=>{let e=Tn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();Tn.delete(u)}},t?r?x(!0):b=u.run():o?o(x.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function An(e,t=1/0,n){if(t<=0||!ee(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,dn(e))An(e.value,t,n);else if(T(e))for(let r=0;r{An(e,t,n)});else if(ie(e)){for(let r in e)An(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&An(e[r],t,n)}return e}const jn=[];function Mn(e){jn.push(e)}function Nn(){jn.pop()}function Pn(e,t){}const fee={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},pee={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function Fn(e,t,n,r){try{return r?e(...r):e()}catch(e){Ln(e,t,n)}}function In(e,t,n,r){if(A(e)){let i=Fn(e,t,n,r);return i&&te(i)&&i.catch(e=>{Ln(e,t,n)}),i}if(T(e)){let i=[];for(let a=0;a>>1,i=Rn[r],a=Zn(i);a=Zn(n)?Rn.push(e):Rn.splice(hee(t),0,e),e.flags|=1,qn()}}function qn(){Wn||=Un.then(Qn)}function Jn(e){T(e)?Bn.push(...e):Vn&&e.id===-1?Vn.splice(Hn+1,0,e):e.flags&1||(Bn.push(e),e.flags|=1),qn()}function Yn(e,t,n=zn+1){for(;nZn(e)-Zn(t));if(Bn.length=0,Vn){Vn.push(...e);return}for(Vn=e,Hn=0;Hne.id==null?e.flags&2?-1:1/0:e.id;function Qn(e){try{for(zn=0;zn$n.emit(e,...t)),er=[];else if(typeof window<`u`&&window.HTMLElement&&!(r=(n=window.navigator)?.userAgent)?.includes(`jsdom`)){let e=t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[];e.push(e=>{tr(e,t)}),setTimeout(()=>{$n||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,er=[])},3e3)}else er=[]}let nr=null,rr=null;function ir(e){let t=nr;return nr=e,rr=e&&e.type.__scopeId||null,t}function ar(e){rr=e}function or(){rr=null}const sr=e=>L;function L(e,t=nr,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Oo(-1);let i=ir(t),a;try{a=e(...n)}finally{ir(i),r._d&&Oo(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function cr(e,t){if(nr===null)return e;let n=ls(nr),r=e.dirs||=[];for(let e=0;ee.__isTeleport,fr=e=>e&&(e.disabled||e.disabled===``),pr=e=>e&&(e.defer||e.defer===``),mr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,hr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,gr=(e,t)=>{let n=e&&e.to;if(j(n))if(t){let e=t(n);return e}else return null;else return n},_r={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g}}=l,_=fr(t.props),{shapeFlag:v,children:y,dynamicChildren:b}=t;if(e==null){let e=t.el=h(``),l=t.anchor=h(``);p(e,n,r),p(l,n,r);let d=(e,t)=>{v&16&&(i&&i.isCE&&(i.ce._teleportTarget=e),u(y,e,t,i,a,o,s,c))},f=()=>{let e=t.target=gr(t.props,m),n=xr(e,t,h,p);e&&(o!==`svg`&&mr(e)?o=`svg`:o!==`mathml`&&hr(e)&&(o=`mathml`),_||(d(e,n),br(t,!1)))};_&&(d(n,l),br(t,!0)),pr(t.props)?(t.el.__isMounted=!1,Ea(()=>{f(),delete t.el.__isMounted},a)):f()}else{if(pr(t.props)&&e.el.__isMounted===!1){Ea(()=>{_r.process(e,t,n,r,i,a,o,s,c,l)},a);return}t.el=e.el,t.targetStart=e.targetStart;let u=t.anchor=e.anchor,p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=fr(e.props),v=g?n:p,y=g?u:h;if(o===`svg`||mr(p)?o=`svg`:(o===`mathml`||hr(p))&&(o=`mathml`),b?(f(e.dynamicChildren,b,v,i,a,o,s),Na(e,t,!0)):c||d(e,t,v,y,i,a,o,s,!1),_)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vr(t,n,u,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=gr(t.props,m);e&&vr(t,e,null,l,0)}else g&&vr(t,p,h,l,1);br(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e;if(d&&(i(l),i(u)),a&&i(c),o&16){let e=a||!fr(f);for(let i=0;i{e.isMounted=!0}),hi(()=>{e.isUnmounting=!0}),e}const Tr=[Function,Array],Er={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tr,onEnter:Tr,onAfterEnter:Tr,onEnterCancelled:Tr,onBeforeLeave:Tr,onLeave:Tr,onAfterLeave:Tr,onLeaveCancelled:Tr,onBeforeAppear:Tr,onAppear:Tr,onAfterAppear:Tr,onAppearCancelled:Tr},Dr=e=>{let t=e.subTree;return t.component?Dr(t.component):t},_ee={name:`BaseTransition`,props:Er,setup(e,{slots:t}){let n=qo(),r=wr();return()=>{let i=t.default&&Fr(t.default(),!0);if(!i||!i.length)return;let a=Or(i),o=sn(e),{mode:s}=o;if(r.isLeaving)return Mr(a);let c=Nr(a);if(!c)return Mr(a);let l=jr(c,o,r,n,e=>l=e);c.type!==So&&Pr(c,l);let u=n.subTree&&Nr(n.subTree);if(u&&u.type!==So&&!Mo(u,c)&&Dr(n).type!==So){let e=jr(u,o,r,n);if(Pr(u,e),s===`out-in`&&c.type!==So)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Mr(a);s===`in-out`&&c.type!==So?e.delayLeave=(e,t,n)=>{let i=Ar(r,u);i[String(u.key)]=u,e[Sr]=()=>{t(),e[Sr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Or(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==So){t=n;break}}return t}const kr=_ee;function Ar(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function jr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=Ar(n,e),S=(e,t)=>{e&&In(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),T(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[Sr]&&t[Sr](!0);let i=x[b];i&&Mo(e,i)&&i.el[Sr]&&i.el[Sr](),S(r,[t])},enter(e){let t=l,r=u,i=d;if(!n.isMounted)if(a)t=_||l,r=v||u,i=y||d;else return;let o=!1,s=e[Cr]=t=>{o||(o=!0,S(t?i:r,[e]),w.delayedLeave&&w.delayedLeave(),e[Cr]=void 0)};t?C(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[Cr]&&t[Cr](!0),n.isUnmounting)return r();S(f,[t]);let a=!1,o=t[Sr]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[Sr]=void 0,x[i]===e&&delete x[i])};x[i]=e,p?C(p,[t,o]):o()},clone(e){let a=jr(e,t,n,r,i);return i&&i(a),a}};return w}function Mr(e){if(ti(e))return e=Io(e),e.children=null,e}function Nr(e){if(!ti(e))return dr(e.type)&&e.children?Or(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&A(n.default))return n.default()}}function Pr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Pr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;ex({name:e.name},t,{setup:e}))():e}function Ir(){let e=qo();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function Lr(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function Rr(e){let t=qo(),n=fn(null);if(t){let r=t.refs===h?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}let r=n;return r}const zr=new WeakMap;function Br(e,t,n,r,i=!1){if(T(e)){e.forEach((e,a)=>Br(e,t&&(T(t)?t[a]:t),n,r,i));return}if($r(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Br(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?ls(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===h?s.refs={}:s.refs,d=s.setupState,f=sn(d),p=d===h?v:e=>w(f,e),m=e=>!0;if(l!=null&&l!==c){if(Vr(t),j(l))u[l]=null,p(l)&&(d[l]=null);else if(dn(l)){m(l)&&(l.value=null);let e=t;e.k&&(u[e.k]=null)}}if(A(c))Fn(c,s,12,[o,u]);else{let t=j(c),r=dn(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:m(c)||!e.k?c.value:u[e.k];if(i)T(n)&&S(n,a);else if(T(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];m(c)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(m(c)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),zr.delete(e)};t.id=-1,zr.set(e,t),Ea(t,n)}else Vr(e),s()}}}function Vr(e){let t=zr.get(e);t&&(t.flags|=8,zr.delete(e))}const Hr=()=>{console.error(`Hydration completed but contains mismatches.`)},Ur=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Wr=e=>e.namespaceURI.includes(`MathML`),Gr=e=>{if(e.nodeType===1){if(Ur(e))return`svg`;if(Wr(e))return`mathml`}},Kr=e=>e.nodeType===8;function qr(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:c,createComment:l}}=e,u=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),Xn(),t._vnode=e;return}d(t.firstChild,e,null,null,null),Xn(),t._vnode=e},d=(n,r,s,l,u,y=!1)=>{y||=!!r.dynamicChildren;let b=Kr(n)&&n.data===`[`,x=()=>h(n,r,s,l,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(y=!1,r.dynamicChildren=null);let D=null;switch(S){case xo:E===3?(n.data!==r.children&&(Hr(),n.data=r.children),D=a(n)):r.children===``?(c(r.el=i(``),o(n),n),D=n):D=x();break;case So:v(n)?(D=a(n),_(r.el=n.content.firstChild,n,s)):D=E!==8||b?x():a(n);break;case Co:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t{o||=!!t.dynamicChildren;let{type:c,props:l,patchFlag:u,shapeFlag:d,dirs:f,transition:m}=t,h=c===`input`||c===`option`;if(h||u!==-1){f&&lr(t,null,n,`created`);let c=!1;if(v(e)){c=Ma(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(c){let e=r.getAttribute(`class`);e&&(r.$cls=e),m.beforeEnter(r)}_(r,e,n),t.el=e=r}if(d&16&&!(l&&(l.innerHTML||l.textContent))){let r=p(e.firstChild,t,e,n,i,a,o);for(;r;){Xr(e,1)||Hr();let t=r;r=r.nextSibling,s(t)}}else if(d&8){let n=t.children;n[0]===` +`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1)),e.textContent!==n&&(Xr(e,0)||Hr(),e.textContent=t.children)}if(l){if(h||!o||u&48){let t=e.tagName.includes(`-`);for(let i in l)(h&&(i.endsWith(`value`)||i===`indeterminate`)||y(i)&&!oe(i)||i[0]===`.`||t)&&r(e,i,null,l[i],void 0,n)}else if(l.onClick)r(e,`onClick`,null,l.onClick,void 0,n);else if(u&4&&nn(l.style))for(let e in l.style)l.style[e]}let g;(g=l&&l.onVnodeBeforeMount)&&Wo(g,n,t),f&&lr(t,null,n,`beforeMount`),((g=l&&l.onVnodeMounted)||f||c)&&_o(()=>{g&&Wo(g,n,t),c&&m.enter(e),f&&lr(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,o,s,l,u)=>{u||=!!t.dynamicChildren;let f=t.children,p=f.length;for(let t=0;t{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&Kr(f)&&f.data===`]`?a(t.anchor=f):(Hr(),c(t.anchor=l(`]`),d,f),f)},h=(e,t,r,i,c,l)=>{if(Xr(e.parentElement,1)||Hr(),t.el=null,l){let t=g(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,Gr(d),c),r&&(r.vnode.el=t.el,io(r,t.el)),u},g=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&Kr(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},_=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},v=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[u,d]}const Jr=`data-allow-mismatch`,Yr={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Xr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Jr);)e=e.parentElement;let n=e&&e.getAttribute(Jr);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(Yr[t])}}const Zr=ve().requestIdleCallback||(e=>setTimeout(e,1)),Qr=ve().cancelIdleCallback||(e=>clearTimeout(e)),vee=(e=1e4)=>t=>{let n=Zr(t,{timeout:e});return()=>Qr(n)};function yee(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e){if(!n.isIntersecting)continue;r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(yee(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},xee=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},See=(e=[])=>(t,n)=>{j(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Cee(e,t){if(Kr(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){let e=t(r);if(e===!1)break}else if(Kr(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}const $r=e=>!!e.type.__asyncLoader;function wee(e){A(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{let r=()=>t(f()),i=()=>n(e);c(e,r,i,d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return R({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>Cee(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=Ko;if(Lr(e),u)return()=>ei(u,e);let t=t=>{l=null,Ln(t,e,13,!r)};if(s&&e.suspense||$o)return p().then(t=>()=>ei(t,e)).catch(e=>(t(e),()=>r?H(r,{error:e}):null));let a=F(!1),c=F(),d=F(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&ti(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return ei(u,e);if(c.value&&r)return H(r,{error:c.value});if(n&&!d.value)return H(n)}}})}function ei(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=H(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}const ti=e=>e.type.__isKeepAlive,Tee={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=qo(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),Ea(()=>{a.isDeactivated=!1,a.a&&me(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Wo(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Ia(t.m),Ia(t.a),l(e,f,null,1,s),Ea(()=>{t.da&&me(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Wo(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){si(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=us(t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Mo(t,o))?p(t):o&&si(o),i.delete(e),a.delete(e)}Ha(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>ri(e,t)),t&&m(e=>!ri(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(ao(n.subTree.type)?Ea(()=>{i.set(g,ci(n.subTree))},n.subTree.suspense):i.set(g,ci(n.subTree)))};return fi(_),mi(_),hi(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ci(t);if(e.type===i.type&&e.key===i.key){si(i);let e=i.component.da;e&&Ea(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!jo(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=ci(r);if(s.type===So)return o=null,s;let c=s.type,l=us($r(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!ri(u,l))||d&&l&&ri(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Io(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&Pr(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,ao(r.type)?r:s}}},ni=Tee;function ri(e,t){return T(e)?e.some(e=>ri(e,t)):j(e)?e.split(`,`).includes(t):k(e)?(e.lastIndex=0,e.test(t)):!1}function ii(e,t){oi(e,`a`,t)}function ai(e,t){oi(e,`da`,t)}function oi(e,t,n=Ko){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(li(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ti(e.parent.vnode)&&Eee(r,t,n,e),e=e.parent}}function Eee(e,t,n,r){let i=li(t,e,r,!0);gi(()=>{S(r[t],i)},n)}function si(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ci(e){return e.shapeFlag&128?e.ssContent:e}function li(e,t,n=Ko,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ct();let i=Xo(n),a=In(t,n,e,r);return i(),lt(),a};return r?i.unshift(a):i.push(a),a}}const ui=e=>(t,n=Ko)=>{(!$o||e===`sp`)&&li(e,(...e)=>t(...e),n)},di=ui(`bm`),fi=ui(`m`),pi=ui(`bu`),mi=ui(`u`),hi=ui(`bum`),gi=ui(`um`),_i=ui(`sp`),vi=ui(`rtg`),yi=ui(`rtc`);function bi(e,t=Ko){li(`ec`,e,t)}const xi=`components`;function Si(e,t){return Ei(xi,e,!0,t)||e}const Ci=Symbol.for(`v-ndc`);function wi(e){return j(e)?Ei(xi,e,!1)||e:e||Ci}function Ti(e){return Ei(`directives`,e)}function Ei(e,t,n=!0,r=!1){let i=nr||Ko;if(i){let n=i.type;if(e===xi){let e=us(n,!1);if(e&&(e===t||e===le(t)||e===fe(le(t))))return n}let a=Di(i[e]||n[e],t)||Di(i.appContext[e],t);return!a&&r?n:a}}function Di(e,t){return e&&(e[t]||e[le(t)]||e[fe(le(t))])}function Oi(e,t,n,r){let i,a=n&&n[r],o=T(e);if(o||j(e)){let n=o&&nn(e),r=!1,s=!1;n&&(r=!an(e),s=rn(e),e=Ct(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ai(e,t,n={},r,i){if(nr.ce||nr.parent&&$r(nr.parent)&&nr.parent.ce)return t!==`default`&&(n.name=t),z(),Ao(bo,null,[H(`slot`,n,r&&r())],64);let a=e[t];a&&a._c&&(a._d=!1),z();let o=a&&ji(a(n)),s=n.key||o&&o.key,c=Ao(bo,{key:(s&&!M(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function ji(e){return e.some(e=>jo(e)?!(e.type===So||e.type===bo&&!ji(e.children)):!0)?e:null}function Mi(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:pe(r)]=e[r];return n}const Ni=e=>e?Qo(e)?ls(e):Ni(e.parent):null,Pi=x(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ni(e.parent),$root:e=>Ni(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ta(e),$forceUpdate:e=>e.f||=()=>{Kn(e.update)},$nextTick:e=>e.n||=Gn.bind(e.proxy),$watch:e=>Wa.bind(e)}),Fi=(e,t)=>e!==h&&!e.__isScriptSetup&&w(e,t),Ii={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e,l;if(t[0]!==`$`){let s=o[t];if(s!==void 0)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(Fi(r,t))return o[t]=1,r[t];else if(i!==h&&w(i,t))return o[t]=2,i[t];else if((l=e.propsOptions[0])&&w(l,t))return o[t]=3,a[t];else if(n!==h&&w(n,t))return o[t]=4,n[t];else Qi&&(o[t]=0)}let u=Pi[t],d,f;if(u)return t===`$attrs`&&yt(e.attrs,`get`,``),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==h&&w(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,w(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return Fi(i,t)?(i[t]=n,!0):r!==h&&w(r,t)?(r[t]=n,!0):w(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a,type:o}},s){let c,l;return!!(n[s]||e!==h&&s[0]!==`$`&&w(e,s)||Fi(t,s)||(c=a[0])&&w(c,s)||w(r,s)||w(Pi,s)||w(i.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},defineProperty(e,t,n){return n.get==null?w(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},Li=x({},Ii,{get(e,t){if(t!==Symbol.unscopables)return Ii.get(e,t,e)},has(e,t){let n=t[0]!==`_`&&!ye(t);return n}});function Ri(){return null}function zi(){return null}function Bi(e){}function Vi(e){}function Hi(){return null}function Ui(){}function Wi(e,t){return null}function Gi(){return qi(`useSlots`).slots}function Ki(){return qi(`useAttrs`).attrs}function qi(e){let t=qo();return t.setupContext||=cs(t)}function Ji(e){return T(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Yi(e,t){let n=Ji(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?T(r)||A(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Xi(e,t){return!e||!t?e||t:T(e)&&T(t)?e.concat(t):x({},Ji(e),Ji(t))}function Zi(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Dee(e){let t=qo(),n=e();return Zo(),te(n)&&(n=n.catch(e=>{throw Xo(t),e})),[n,()=>Xo(t)]}let Qi=!0;function Oee(e){let t=ta(e),n=e.proxy,r=e.ctx;Qi=!1,t.beforeCreate&&$i(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:g,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:x,render:S,renderTracked:C,renderTriggered:w,errorCaptured:E,serverPrefetch:D,expose:O,inheritAttrs:k,components:j,directives:M,filters:te}=t;if(l&&kee(l,r,null),o)for(let e in o){let t=o[e];A(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);ee(t)&&(e.data=Zt(t))}if(Qi=!0,a)for(let e in a){let t=a[e],i=A(t)?t.bind(n,n):A(t.get)?t.get.bind(n,n):_,o=!A(t)&&A(t.set)?t.set.bind(n):_,s=U({get:i,set:o});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(let e in s)ea(s[e],r,n,e);if(c){let e=A(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{ua(t,e[t])})}u&&$i(u,e,`c`);function N(e,t){T(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(N(di,d),N(fi,f),N(pi,p),N(mi,m),N(ii,h),N(ai,g),N(bi,E),N(yi,C),N(vi,w),N(hi,y),N(gi,x),N(_i,D),T(O))if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};S&&e.render===_&&(e.render=S),k!=null&&(e.inheritAttrs=k),j&&(e.components=j),M&&(e.directives=M),D&&Lr(e)}function kee(e,t,n=_){for(let n in T(e)&&(e=ia(e)),e){let r=e[n],i;i=ee(r)?`default`in r?da(r.from||n,r.default,!0):da(r.from||n):da(r),dn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function $i(e,t,n){In(T(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ea(e,t,n,r){let i=r.includes(`.`)?Ga(n,r):()=>n[r];if(j(e)){let n=t[e];A(n)&&Ha(i,n)}else if(A(e))Ha(i,e.bind(n));else if(ee(e))if(T(e))e.forEach(e=>ea(e,t,n,r));else{let r=A(e.handler)?e.handler.bind(n):t[e.handler];A(r)&&Ha(i,r,e)}}function ta(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>na(c,e,o,!0)),na(c,t,o)),ee(t)&&a.set(t,c),c}function na(e,t,n,r=!1){let{mixins:i,extends:a}=t;for(let o in a&&na(e,a,n,!0),i&&i.forEach(t=>na(e,t,n,!0)),t)if(!(r&&o===`expose`)){let r=Aee[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Aee={data:ra,props:sa,emits:sa,methods:oa,computed:oa,beforeCreate:aa,created:aa,beforeMount:aa,mounted:aa,beforeUpdate:aa,updated:aa,beforeDestroy:aa,beforeUnmount:aa,destroyed:aa,unmounted:aa,activated:aa,deactivated:aa,errorCaptured:aa,serverPrefetch:aa,components:oa,directives:oa,watch:Mee,provide:ra,inject:jee};function ra(e,t){return t?e?function(){return x(A(e)?e.call(this,this):e,A(t)?t.call(this,this):t)}:t:e}function jee(e,t){return oa(ia(e),ia(t))}function ia(e){if(T(e)){let t={};for(let n=0;n1)return n&&A(t)?t.call(r&&r.proxy):t}}function fa(){return!!(qo()||la)}const pa={},ma=()=>Object.create(pa),ha=e=>Object.getPrototypeOf(e)===pa;function Fee(e,t,n,r=!1){let i={},a=ma();for(let n in e.propsDefaults=Object.create(null),ga(e,t,i,a),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:Qt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Iee(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=sn(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{c=!0;let[n,r]=va(e,t,!0);x(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return ee(e)&&r.set(e,g),g;if(T(a))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,xa=e=>T(e)?e.map(Bo):[Bo(e)],Ree=(e,t,n)=>{if(t._n)return t;let r=L((...e)=>xa(t(...e)),n);return r._c=!1,r},Sa=(e,t,n)=>{let r=e._ctx;for(let n in e){if(ba(n))continue;let i=e[n];if(A(i))t[n]=Ree(n,i,r);else if(i!=null){let e=xa(i);t[n]=()=>e}}},Ca=(e,t)=>{let n=xa(t);e.slots.default=()=>n},wa=(e,t,n)=>{for(let r in t)(n||!ba(r))&&(e[r]=t[r])},zee=(e,t,n)=>{let r=e.slots=ma();if(e.vnode.shapeFlag&32){let e=t._;e?(wa(r,t,n),n&&he(r,`_`,e,!0)):Sa(t,r)}else t&&Ca(e,t)},Ta=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=h;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:wa(i,t,n):(a=!t.$stable,Sa(t,i)),o=t}else t&&(Ca(e,t),o={default:1});if(a)for(let e in i)!ba(e)&&o[e]==null&&delete i[e]},Ea=_o;function Da(e){return ka(e)}function Oa(e){return ka(e,qr)}function ka(e,t){let n=ve();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=_,insertStaticContent:m}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Mo(e,t)&&(r=pe(e),ce(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case xo:y(e,t,n,r);break;case So:b(e,t,n,r);break;case Co:e??x(t,n,r,o);break;case bo:j(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?M(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,he)}u!=null&&i?Br(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Br(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null?T(t,n,r,i,a,o,s,c):O(e,t,i,a,o,s,c)},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,Aa(e,c),l,d),_&&lr(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!oe(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Wo(p,i,e)}_&&lr(e,null,i,`beforeMount`);let v=Ma(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&Ea(()=>{p&&Wo(p,i,e),v&&g.enter(f),_&&lr(e,null,i,`mounted`)},s)},E=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t{for(let l=c;l{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||h,m=t.props||h,g;if(n&&ja(n,!1),(g=m.onVnodeBeforeUpdate)&&Wo(g,n,t,e),f&&lr(t,e,n,`beforeUpdate`),n&&ja(n,!0),(p.innerHTML&&m.innerHTML==null||p.textContent&&m.textContent==null)&&u(c,``),d?k(e.dynamicChildren,d,c,n,r,Aa(t,i),o):s||re(e,t,c,null,n,r,Aa(t,i),o,!1),l>0){if(l&16)A(c,p,m,n,i);else if(l&2&&p.class!==m.class&&a(c,`class`,null,m.class,i),l&4&&a(c,`style`,p.style,m.style,i),l&8){let e=t.dynamicProps;for(let t=0;t{g&&Wo(g,n,t,e),f&&lr(t,e,n,`updated`)},r)},k=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==n){if(t!==h)for(let o in t)!oe(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(oe(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},j=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren?(k(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&Na(e,t,!0)):re(e,t,n,f,a,o,c,l,u)},M=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ee(t,n,r,i,a,o,c):te(e,t,c)},ee=(e,t,n,r,i,a,o)=>{let s=e.component=Go(e,r,i);if(ti(e)&&(s.ctx.renderer=he),es(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,N,o),!e.el){let r=s.subTree=H(So);b(null,r,t,n),e.placeholder=r.el}}else N(s,e,t,n,i,a,o)},te=(e,t,n)=>{let r=t.component=e.component;if(no(e,t,n))if(r.asyncDep&&!r.asyncResolved){ne(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},N=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:c,vnode:l}=e;{let n=Fa(e);if(n){t&&(t.el=l.el,ne(e,t,o)),n.asyncDep.then(()=>{e.isUnmounted||s()});return}}let u=t,f;ja(e,!1),t?(t.el=l.el,ne(e,t,o)):t=l,n&&me(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&Wo(f,c,t,l),ja(e,!0);let p=Qa(e),m=e.subTree;e.subTree=p,v(m,p,d(m.el),pe(m),e,i,a),t.el=p.el,u===null&&io(e,p.el),r&&Ea(r,i),(f=t.props&&t.props.onVnodeUpdated)&&Ea(()=>Wo(f,c,t,l),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=$r(t);if(ja(e,!1),l&&me(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Wo(o,d,t),ja(e,!0),s&&_e){let t=()=>{e.subTree=Qa(e),_e(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._def.shadowRoot!==!1&&f.ce._injectChildStyle(p);let o=e.subTree=Qa(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Ea(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Ea(()=>Wo(o,d,e),i)}(t.shapeFlag&256||d&&$r(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Ea(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ge(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Kn(u),ja(e,!0),l()},ne=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Iee(e,t.props,r,n),Ta(e,t.children,n),ct(),Yn(e),lt()},re=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){ae(l,f,n,r,i,a,o,s,c);return}else if(p&256){ie(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&fe(l,i,a),f!==l&&u(n,f)):d&16?m&16?ae(l,f,n,r,i,a,o,s,c):fe(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},ie=(e,t,n,r,i,a,o,s,c)=>{e||=g,t||=g;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;fu?fe(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},ae=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?Vo(t[l]):Bo(t[l]);if(Mo(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?Vo(t[f]):Bo(t[f]);if(Mo(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=ef)for(;l<=d;)ce(e[l],i,a,!0),l++;else{let p=l,m=l,h=new Map;for(l=m;l<=f;l++){let e=t[l]=c?Vo(t[l]):Bo(t[l]);e.key!=null&&h.set(e.key,l)}let _,y=0,b=f-m+1,x=!1,S=0,C=Array(b);for(l=0;l=b){ce(r,i,a,!0);continue}let u;if(r.key!=null)u=h.get(r.key);else for(_=m;_<=f;_++)if(C[_-m]===0&&Mo(r,t[_])){u=_;break}u===void 0?ce(r,i,a,!0):(C[u-m]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?Pa(C):g;for(_=w.length-1,l=b-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){se(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,he);return}if(c===bo){r(s,t,n);for(let e=0;el.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[Sr](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},ce=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&(ct(),Br(s,null,n,e,!0),lt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!$r(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&Wo(g,t,e),u&6)de(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&lr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,he,r):l&&!l.hasOnce&&(a!==bo||d>0&&d&64)?fe(l,t,n,!1,!0):(a===bo&&d&384||!i&&u&16)&&fe(c,t,n),r&&le(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&Ea(()=>{g&&Wo(g,t,e),m&&lr(e,null,t,`unmounted`)},n)},le=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===bo){ue(n,r);return}if(t===Co){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},ue=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},de=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ia(c),Ia(l),r&&me(r),i.stop(),a&&(a.flags|=8,ce(o,e,t,n)),s&&Ea(s,t),Ea(()=>{e.isUnmounted=!0},t)},fe=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return pe(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[ur];return n?f(n):t},P=(e,t,n)=>{e==null?t._vnode&&ce(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Yn(),Xn()},he={p:v,um:ce,m:se,r:le,mt:ee,mc:D,pc:re,pbc:k,n:pe,o:e},ge,_e;return t&&([ge,_e]=t(he)),{render:P,hydrate:ge,createApp:Pee(P,ge)}}function Aa({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ja({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ma(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Na(e,t,n=!1){let r=e.children,i=t.children;if(T(r)&&T(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Fa(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fa(t)}function Ia(e){if(e)for(let t=0;t{{let e=da(La);return e}};function za(e,t){return Ua(e,null,t)}function Ba(e,t){return Ua(e,null,{flush:`post`})}function Va(e,t){return Ua(e,null,{flush:`sync`})}function Ha(e,t,n){return Ua(e,t,n)}function Ua(e,t,n=h){let{immediate:r,deep:i,flush:a,once:o}=n,s=x({},n),c=t&&r||!t&&a!==`post`,l;if($o){if(a===`sync`){let e=Ra();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=_,e.resume=_,e.pause=_,e}}let u=Ko;s.call=(e,t,n)=>In(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{Ea(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():Kn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=kn(e,t,s);return $o&&(l?l.push(f):c&&f()),f}function Wa(e,t,n){let r=this.proxy,i=j(e)?e.includes(`.`)?Ga(r,e):()=>r[e]:e.bind(r,r),a;A(t)?a=t:(a=t.handler,n=t);let o=Xo(this),s=Ua(i,a.bind(r),n);return o(),s}function Ga(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e{let c,l=h,u;return Va(()=>{let t=e[i];P(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!P(o,c)&&!(l!==h&&P(e,l)))return;let d=r.vnode.props;d&&(t in d||i in d||a in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${a}`in d)||(c=e,s()),r.emit(`update:${t}`,o),P(e,o)&&P(e,l)&&!P(o,u)&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||h:s,done:!1}:{done:!0}}}},s}const qa=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${le(t)}Modifiers`]||e[`${de(t)}Modifiers`];function Ja(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||h,i=n,a=t.startsWith(`update:`),o=a&&qa(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>j(e)?e.trim():e)),o.number&&(i=n.map(ge)));let s,c=r[s=pe(t)]||r[s=pe(le(t))];!c&&a&&(c=r[s=pe(de(t))]),c&&In(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,In(l,e,6,i)}}const Ya=new WeakMap;function Xa(e,t,n=!1){let r=n?Ya:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!A(e)){let r=e=>{let n=Xa(e,t,!0);n&&(s=!0,x(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(ee(e)&&r.set(e,null),null):(T(a)?a.forEach(e=>o[e]=null):x(o,a),ee(e)&&r.set(e,o),o)}function Za(e,t){return!e||!y(t)?!1:(t=t.slice(2).replace(/Once$/,``),w(e,t[0].toLowerCase()+t.slice(1))||w(e,de(t))||w(e,t))}function Qa(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=ir(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=Bo(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=Bo(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:eo(s)}}catch(t){wo.length=0,Ln(t,e,1),_=H(So)}let y=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(b)&&(v=to(v,a)),y=Io(y,v,!1,!0))}return n.dirs&&(y=Io(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Pr(y,n.transition),_=y,ir(g),_}function $a(e,t=!0){let n;for(let t=0;t{let t;for(let n in e)(n===`class`||n===`style`||y(n))&&((t||={})[n]=e[n]);return t},to=(e,t)=>{let n={};for(let r in e)(!b(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function no(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ro(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;te.__isSuspense;let oo=0;const so={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)uo(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}fo(e,t,n,r,i,o,s,c,l)}},hydrate:mo,normalize:ho},co=so;function lo(e,t){let n=e.props&&e.props[t];A(n)&&n()}function uo(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=po(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(lo(e,`onPending`),lo(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),vo(f,e.ssFallback)):f.resolve(!1,!0)}function fo(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Mo(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),vo(d,p)))):(d.pendingId=oo++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),vo(d,p))):m&&Mo(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Mo(m,f))c(m,f,n,r,i,d,a,o,s),vo(d,f);else if(lo(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=oo++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function po(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=yo(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?_e(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:oo++,timeout:typeof y==`number`?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u}=x,d=!1;x.isHydrating?x.isHydrating=!1:e||(d=i&&o.transition&&o.transition.mode===`out-in`,d&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b?m(i):a,0),Jn(c))}),i&&(h(i.el)===u&&(a=m(i)),p(i,l,x,!0)),d||f(o,u,a,0)),vo(x,o),x.pendingBranch=null,x.isInFallback=!1;let g=x.parent,y=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),y=!0;break}g=g.parent}!y&&!d&&Jn(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),lo(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;lo(t,`onFallback`);let o=m(n),l=()=>{x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),vo(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Ln(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:s}=e;ts(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&g(c),io(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function mo(e,t,n,r,i,a,o,s,c){let l=t.suspense=po(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function ho(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=go(r?n.default:n),e.ssFallback=r?go(n.fallback):H(So)}function go(e){let t;if(A(e)){let n=Do&&e._c;n&&(e._d=!1,z()),e=e(),n&&(e._d=!0,t=To,Eo())}if(T(e)){let t=$a(e);e=t}return e=Bo(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function _o(e,t){t&&t.pendingBranch?T(e)?t.effects.push(...e):t.effects.push(e):Jn(e)}function vo(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,io(r,i))}function yo(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const bo=Symbol.for(`v-fgt`),xo=Symbol.for(`v-txt`),So=Symbol.for(`v-cmt`),Co=Symbol.for(`v-stc`),wo=[];let To=null;function z(e=!1){wo.push(To=e?null:[])}function Eo(){wo.pop(),To=wo[wo.length-1]||null}let Do=1;function Oo(e,t=!1){Do+=e,e<0&&To&&t&&(To.hasOnce=!0)}function ko(e){return e.dynamicChildren=Do>0?To||g:null,Eo(),Do>0&&To&&To.push(e),e}function B(e,t,n,r,i,a){return ko(V(e,t,n,r,i,a,!0))}function Ao(e,t,n,r,i){return ko(H(e,t,n,r,i,!0))}function jo(e){return e?e.__v_isVNode===!0:!1}function Mo(e,t){return e.type===t.type&&e.key===t.key}function Bee(e){}const No=({key:e})=>e??null,Po=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:j(e)||dn(e)||A(e)?{i:nr,r:e,k:t,f:!!n}:e);function V(e,t=null,n=null,r=0,i=null,a=e===bo?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&No(t),ref:t&&Po(t),scopeId:rr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:nr};return s?(Ho(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=j(n)?8:16),Do>0&&!o&&To&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&To.push(c),c}const H=Vee;function Vee(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Ci)&&(e=So),jo(e)){let r=Io(e,t,!0);return n&&Ho(r,n),Do>0&&!a&&To&&(r.shapeFlag&6?To[To.indexOf(e)]=r:To.push(r)),r.patchFlag=-2,r}if(ds(e)&&(e=e.__vccOpts),t){t=Fo(t);let{class:e,style:n}=t;e&&!j(e)&&(t.class=Te(e)),ee(n)&&(on(n)&&!T(n)&&(n=x({},n)),t.style=be(n))}let o=j(e)?1:ao(e)?128:dr(e)?64:ee(e)?4:A(e)?2:0;return V(e,t,n,r,i,o,a,!0)}function Fo(e){return e?on(e)||ha(e)?x({},e):e:null}function Io(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Uo(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&No(l),ref:t&&t.ref?n&&a?T(a)?a.concat(Po(t)):[a,Po(t)]:Po(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==bo?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Io(e.ssContent),ssFallback:e.ssFallback&&Io(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Pr(u,c.clone(u)),u}function Lo(e=` `,t=0){return H(xo,null,e,t)}function Ro(e,t){let n=H(Co,null,e);return n.staticCount=t,n}function zo(e=``,t=!1){return t?(z(),Ao(So,null,e)):H(So,null,e)}function Bo(e){return e==null||typeof e==`boolean`?H(So):T(e)?H(bo,null,e.slice()):jo(e)?Vo(e):H(xo,null,String(e))}function Vo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Io(e)}function Ho(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(T(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ho(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!ha(t)?t._ctx=nr:r===3&&nr&&(nr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else A(t)?(t={default:t,_ctx:nr},n=32):(t=String(t),r&64?(n=16,t=[Lo(t)]):n=8);e.children=t,e.shapeFlag|=n}function Uo(...e){let t={};for(let n=0;nKo||nr;let Jo,Yo;{let e=ve(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Jo=t(`__VUE_INSTANCE_SETTERS__`,e=>Ko=e),Yo=t(`__VUE_SSR_SETTERS__`,e=>$o=e)}const Xo=e=>{let t=Ko;return Jo(e),e.scope.on(),()=>{e.scope.off(),Jo(t)}},Zo=()=>{Ko&&Ko.scope.off(),Jo(null)};function Qo(e){return e.vnode.shapeFlag&4}let $o=!1;function es(e,t=!1,n=!1){t&&Yo(t);let{props:r,children:i}=e.vnode,a=Qo(e);Fee(e,r,a,t),zee(e,i,n||t);let o=a?Wee(e,t):void 0;return t&&Yo(!1),o}function Wee(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ii);let{setup:r}=n;if(r){ct();let n=e.setupContext=r.length>1?cs(e):null,i=Xo(e),a=Fn(r,e,0,[e.props,n]),o=te(a);if(lt(),i(),(o||e.sp)&&!$r(e)&&Lr(e),o){if(a.then(Zo,Zo),t)return a.then(n=>{ts(e,n,t)}).catch(t=>{Ln(t,e,0)});e.asyncDep=a}else ts(e,a,t)}else os(e,t)}function ts(e,t,n){A(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=hn(t)),os(e,n)}let ns,rs;function Gee(e){ns=e,rs=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Li))}}const Kee=()=>!ns;function os(e,t,n){let r=e.type;if(!e.render){if(!t&&ns&&!r.render){let t=r.template||ta(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=x(x({isCustomElement:n,delimiters:a},i),o);r.render=ns(t,s)}}e.render=r.render||_,rs&&rs(e)}{let t=Xo(e);ct();try{Oee(e)}finally{lt(),t()}}}const ss={get(e,t){return yt(e,`get`,``),e[t]}};function cs(e){let t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,ss),slots:e.slots,emit:e.emit,expose:t}}function ls(e){return e.exposed?e.exposeProxy||=new Proxy(hn(cn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pi)return Pi[n](e)},has(e,t){return t in e||t in Pi}}):e.proxy}function us(e,t=!0){return A(e)?e.displayName||e.name:e.name||t&&e.__name}function ds(e){return A(e)&&`__vccOpts`in e}const U=(e,t)=>{let n=xn(e,t,$o);return n};function fs(e,t,n){let r=(e,t,n)=>{Oo(-1);try{return H(e,t,n)}finally{Oo(1)}},i=arguments.length;return i===2?ee(t)&&!T(t)?jo(t)?r(e,null,[t]):r(e,t):r(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&jo(n)&&(n=[n]),r(e,t,n))}function ps(){return;function e(t,n,r){let i=t[r];if(T(i)&&i.includes(n)||ee(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function ms(e,t,n,r){let i=n[r];if(i&&hs(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function hs(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&To&&To.push(e),!0}const gs=`3.5.21`,_s=_,vs=pee,ys=$n,bs=tr,xs={createComponentInstance:Go,setupComponent:es,renderComponentRoot:Qa,setCurrentRenderingInstance:ir,isVNode:jo,normalizeVNode:Bo,getComponentPublicInstance:ls,ensureValidVNode:ji,pushWarningContext:Mn,popWarningContext:Nn},Ss=xs;let Cs;const ws=typeof window<`u`&&window.trustedTypes;if(ws)try{Cs=ws.createPolicy(`vue`,{createHTML:e=>e})}catch{}const Ts=Cs?e=>Cs.createHTML(e):e=>e,Es=typeof document<`u`?document:null,Ds=Es&&Es.createElement(`template`),Os={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Es.createElementNS(`http://www.w3.org/2000/svg`,e):t===`mathml`?Es.createElementNS(`http://www.w3.org/1998/Math/MathML`,e):n?Es.createElement(e,{is:n}):Es.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Es.createTextNode(e),createComment:e=>Es.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Es.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Ds.innerHTML=Ts(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=Ds.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ks=`transition`,As=`animation`,js=Symbol(`_vtc`),Ms={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ns=x({},Er,Ms),Ps=e=>(e.displayName=`Transition`,e.props=Ns,e),Fs=Ps((e,{slots:t})=>fs(kr,Rs(e),t)),Is=(e,t=[])=>{T(e)?e.forEach(e=>e(...t)):e&&e(...t)},Ls=e=>e?T(e)?e.some(e=>e.length>1):e.length>1:!1;function Rs(e){let t={};for(let n in e)n in Ms||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=zs(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:S,onBeforeAppear:C=_,onAppear:w=v,onAppearCancelled:T=y}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Hs(e,t?u:s),Hs(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Hs(e,d),Hs(e,p),Hs(e,f),t&&t()},O=e=>(t,n)=>{let i=e?w:v,o=()=>E(t,e,n);Is(i,[t,o]),Us(()=>{Hs(t,e?c:a),Vs(t,e?u:s),Ls(i)||Gs(t,r,h,o)})};return x(t,{onBeforeEnter(e){Is(_,[e]),Vs(e,a),Vs(e,o)},onBeforeAppear(e){Is(C,[e]),Vs(e,c),Vs(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Vs(e,d),e._enterCancelled?(Vs(e,f),Ys()):(Ys(),Vs(e,f)),Us(()=>{e._isLeaving&&(Hs(e,d),Vs(e,p),Ls(b)||Gs(e,r,g,n))}),Is(b,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),Is(y,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),Is(T,[e])},onLeaveCancelled(e){D(e),Is(S,[e])}})}function zs(e){if(e==null)return null;if(ee(e))return[Bs(e.enter),Bs(e.leave)];{let t=Bs(e);return[t,t]}}function Bs(e){let t=_e(e);return t}function Vs(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[js]||(e[js]=new Set)).add(t)}function Hs(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[js];n&&(n.delete(t),n.size||(e[js]=void 0))}function Us(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ws=0;function Gs(e,t,n,r){let i=e._endId=++Ws,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ks(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${ks}Delay`),a=r(`${ks}Duration`),o=qs(i,a),s=r(`${As}Delay`),c=r(`${As}Duration`),l=qs(s,c),u=null,d=0,f=0;t===ks?o>0&&(u=ks,d=o,f=a.length):t===As?l>0&&(u=As,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?ks:As:null,f=u?u===ks?a.length:c.length:0);let p=u===ks&&/\b(?:transform|all)(?:,|$)/.test(r(`${ks}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function qs(e,t){for(;e.lengthJs(t)+Js(e[n])))}function Js(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Ys(){return document.body.offsetHeight}function Xs(e,t,n){let r=e[js];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}const Zs=Symbol(`_vod`),Qs=Symbol(`_vsh`),$s={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Zs]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):ec(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ec(e,!0),r.enter(e)):r.leave(e,()=>{ec(e,!1)}):ec(e,t))},beforeUnmount(e,{value:t}){ec(e,t)}};function ec(e,t){e.style.display=t?e[Zs]:`none`,e[Qs]=!t}function tc(){$s.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}const nc=Symbol(``);function rc(e){let t=qo();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>ac(e,n))},r=()=>{let r=e(t.proxy);t.ce?ac(t.ce,r):ic(t.subTree,r),n(r)};pi(()=>{Jn(r)}),fi(()=>{Ha(r,_,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),gi(()=>e.disconnect())})}function ic(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ic(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ac(e.el,t);else if(e.type===bo)e.children.forEach(e=>ic(e,t));else if(e.type===Co){let{el:n,anchor:r}=e;for(;n&&(ac(n,t),n!==r);)n=n.nextSibling}}function ac(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Le(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[nc]=r}}const oc=/(?:^|;)\s*display\s*:/;function sc(e,t,n){let r=e.style,i=j(n),a=!1;if(n&&!i){if(t)if(j(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??lc(r,t,``)}else for(let e in t)n[e]??lc(r,e,``);for(let e in n)e===`display`&&(a=!0),lc(r,e,n[e])}else if(i){if(t!==n){let e=r[nc];e&&(n+=`;`+e),r.cssText=n,a=oc.test(n)}}else t&&e.removeAttribute(`style`);Zs in e&&(e[Zs]=a?r.display:``,e[Qs]&&(r.display=`none`))}const cc=/\s*!important$/;function lc(e,t,n){if(T(n))n.forEach(n=>lc(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=fc(e,t);cc.test(n)?e.setProperty(de(r),n.replace(cc,``),`important`):e[r]=n}}const uc=[`Webkit`,`Moz`,`ms`],dc={};function fc(e,t){let n=dc[t];if(n)return n;let r=le(t);if(r!==`filter`&&r in e)return dc[t]=r;r=fe(r);for(let n=0;n(Sc.then(()=>0),Date.now());function wc(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;In(Tc(e,n.value),t,5,[e])};return n.value=e,n.attached=Cc(),n}function Tc(e,t){if(T(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}const Ec=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qee=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Xs(e,r,o):t===`style`?sc(e,n,r):y(t)?b(t)||yc(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Jee(e,t,r,o))?(hc(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&mc(e,t,r,o,a,t!==`value`)):e._isVueCE&&(/[A-Z]/.test(t)||!j(r))?hc(e,le(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),mc(e,t,r,o))};function Jee(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Ec(t)&&A(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Ec(t)&&j(n)?!1:t in e}const Dc={};function Oc(e,t,n){let r=R(e,t);ie(r)&&(r=x({},r,t));class i extends kc{constructor(e){super(r,e,n)}}return i.def=r,i}const Yee=((e,t)=>Oc(e,t,il)),Xee=typeof HTMLElement<`u`?HTMLElement:class{};var kc=class e extends Xee{constructor(e,t={},n=rl){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==rl?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow({mode:`open`}),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Gn(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e{for(let t of e)this._setAttr(t.attributeName)}),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!T(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=_e(this._props[e])),(i||=Object.create(null))[le(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)w(this,e)||Object.defineProperty(this,e,{get:()=>I(t[e])})}_resolveProps(e){let{props:t}=e,n=T(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(le))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!0)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Dc,r=le(e);t&&this._numberProps&&this._numberProps[r]&&(n=_e(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(t===Dc?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&n.disconnect(),t===!0?this.setAttribute(de(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(de(e),t+``):t||this.removeAttribute(de(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),nl(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=H(this._def,x(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,ie(t[0])?x({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),de(e)!==e&&t(de(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let n=this._nonce;for(let t=e.length-1;t>=0;t--){let r=document.createElement(`style`);n&&r.setAttribute(`nonce`,n),r.textContent=e[t],this.shadowRoot.prepend(r)}}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=(this._teleportTarget||this).querySelectorAll(`slot`),t=this._instance.type.__scopeId;for(let n=0;n(delete e.props.mode,e),ete=$ee({name:`TransitionGroup`,props:x({},Ns,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=qo(),r=wr(),i,a;return mi(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!ate(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(nte),i.forEach(rte);let r=i.filter(ite);Ys(),r.forEach(e=>{let n=e.el,r=n.style;Vs(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Nc]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Nc]=null,Hs(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=sn(e),s=Rs(o),c=o.tag||bo;if(i=[],a)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Ks(r);return a.removeChild(r),o}const Fc=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return T(t)?e=>me(t,e):t};function ote(e){e.target.composing=!0}function Ic(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}const Lc=Symbol(`_assign`),Rc={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Lc]=Fc(i);let a=r||i.props&&i.props.type===`number`;gc(e,t?`change`:`input`,t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=ge(r)),e[Lc](r)}),n&&gc(e,`change`,()=>{e.value=e.value.trim()}),t||(gc(e,`compositionstart`,ote),gc(e,`compositionend`,Ic),gc(e,`change`,Ic))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Lc]=Fc(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ge(e.value):e.value,c=t??``;s!==c&&(document.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c))}},zc={deep:!0,created(e,t,n){e[Lc]=Fc(n),gc(e,`change`,()=>{let t=e._modelValue,n=Wc(e),r=e.checked,i=e[Lc];if(T(t)){let e=Me(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(D(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Gc(e,r))})},mounted:Bc,beforeUpdate(e,t,n){e[Lc]=Fc(n),Bc(e,t,n)}};function Bc(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(T(t))i=Me(t,r.props.value)>-1;else if(D(t))i=t.has(r.props.value);else{if(t===n)return;i=je(t,Gc(e,!0))}e.checked!==i&&(e.checked=i)}const Vc={created(e,{value:t},n){e.checked=je(t,n.props.value),e[Lc]=Fc(n),gc(e,`change`,()=>{e[Lc](Wc(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Lc]=Fc(r),t!==n&&(e.checked=je(t,r.props.value))}},Hc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=D(t);gc(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ge(Wc(e)):Wc(e));e[Lc](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Gn(()=>{e._assigning=!1})}),e[Lc]=Fc(r)},mounted(e,{value:t}){Uc(e,t)},beforeUpdate(e,t,n){e[Lc]=Fc(n)},updated(e,{value:t}){e._assigning||Uc(e,t)}};function Uc(e,t){let n=e.multiple,r=T(t);if(!(n&&!r&&!D(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):a.selected=Me(t,o)>-1}else a.selected=t.has(o);else if(je(Wc(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wc(e){return`_value`in e?e._value:e.value}function Gc(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}const Kc={created(e,t,n){Jc(e,t,n,null,`created`)},mounted(e,t,n){Jc(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Jc(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Jc(e,t,n,r,`updated`)}};function qc(e,t){switch(e){case`SELECT`:return Hc;case`TEXTAREA`:return Rc;default:switch(t){case`checkbox`:return zc;case`radio`:return Vc;default:return Rc}}}function Jc(e,t,n,r,i){let a=qc(e.tagName,n.props&&n.props.type),o=a[i];o&&o(e,t,n,r)}function ste(){Rc.getSSRProps=({value:e})=>({value:e}),Vc.getSSRProps=({value:e},t)=>{if(t.props&&je(t.props.value,e))return{checked:!0}},zc.getSSRProps=({value:e},t)=>{if(T(e)){if(t.props&&Me(e,t.props.value)>-1)return{checked:!0}}else if(D(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Kc.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=qc(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const cte=[`ctrl`,`shift`,`alt`,`meta`],lte={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>cte.some(n=>e[`${n}Key`]&&!t.includes(n))},Yc=(e,t)=>{let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=de(n.key);if(t.some(e=>e===r||ute[e]===r))return e(n)}))},Zc=x({patchProp:qee},Os);let Qc,$c=!1;function el(){return Qc||=Da(Zc)}function tl(){return Qc=$c?Qc:Oa(Zc),$c=!0,Qc}const nl=((...e)=>{el().render(...e)}),dte=((...e)=>{tl().hydrate(...e)}),rl=((...e)=>{let t=el().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=ol(e);if(!r)return;let i=t._component;!A(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,al(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),il=((...e)=>{let t=tl().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=ol(e);if(t)return n(t,!0,al(t))},t});function al(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function ol(e){if(j(e)){let t=document.querySelector(e);return t}return e}let sl=!1;const fte=()=>{sl||(sl=!0,ste(),tc())};var cl={};c(cl,{BaseTransition:()=>kr,BaseTransitionPropsValidators:()=>Er,Comment:()=>So,DeprecationTypes:()=>null,EffectScope:()=>ze,ErrorCodes:()=>fee,ErrorTypeStrings:()=>vs,Fragment:()=>bo,KeepAlive:()=>ni,ReactiveEffect:()=>Ge,Static:()=>Co,Suspense:()=>co,Teleport:()=>yr,Text:()=>xo,TrackOpTypes:()=>Sn,Transition:()=>Fs,TransitionGroup:()=>tte,TriggerOpTypes:()=>Cn,VueElement:()=>kc,assertNumber:()=>Pn,callWithAsyncErrorHandling:()=>In,callWithErrorHandling:()=>Fn,camelize:()=>le,capitalize:()=>fe,cloneVNode:()=>Io,compatUtils:()=>null,compile:()=>pte,computed:()=>U,createApp:()=>rl,createBlock:()=>Ao,createCommentVNode:()=>zo,createElementBlock:()=>B,createElementVNode:()=>V,createHydrationRenderer:()=>Oa,createPropsRestProxy:()=>Zi,createRenderer:()=>Da,createSSRApp:()=>il,createSlots:()=>ki,createStaticVNode:()=>Ro,createTextVNode:()=>Lo,createVNode:()=>H,customRef:()=>gn,defineAsyncComponent:()=>wee,defineComponent:()=>R,defineCustomElement:()=>Oc,defineEmits:()=>zi,defineExpose:()=>Bi,defineModel:()=>Ui,defineOptions:()=>Vi,defineProps:()=>Ri,defineSSRCustomElement:()=>Yee,defineSlots:()=>Hi,devtools:()=>ys,effect:()=>it,effectScope:()=>Be,getCurrentInstance:()=>qo,getCurrentScope:()=>Ve,getCurrentWatcher:()=>Dn,getTransitionRawChildren:()=>Fr,guardReactiveProps:()=>Fo,h:()=>fs,handleError:()=>Ln,hasInjectionContext:()=>fa,hydrate:()=>dte,hydrateOnIdle:()=>vee,hydrateOnInteraction:()=>See,hydrateOnMediaQuery:()=>xee,hydrateOnVisible:()=>bee,initCustomFormatter:()=>ps,initDirectivesForSSR:()=>fte,inject:()=>da,isMemoSame:()=>hs,isProxy:()=>on,isReactive:()=>nn,isReadonly:()=>rn,isRef:()=>dn,isRuntimeOnly:()=>Kee,isShallow:()=>an,isVNode:()=>jo,markRaw:()=>cn,mergeDefaults:()=>Yi,mergeModels:()=>Xi,mergeProps:()=>Uo,nextTick:()=>Gn,normalizeClass:()=>Te,normalizeProps:()=>Ee,normalizeStyle:()=>be,onActivated:()=>ii,onBeforeMount:()=>di,onBeforeUnmount:()=>hi,onBeforeUpdate:()=>pi,onDeactivated:()=>ai,onErrorCaptured:()=>bi,onMounted:()=>fi,onRenderTracked:()=>yi,onRenderTriggered:()=>vi,onScopeDispose:()=>He,onServerPrefetch:()=>_i,onUnmounted:()=>gi,onUpdated:()=>mi,onWatcherCleanup:()=>On,openBlock:()=>z,popScopeId:()=>or,provide:()=>ua,proxyRefs:()=>hn,pushScopeId:()=>ar,queuePostFlushCb:()=>Jn,reactive:()=>Zt,readonly:()=>$t,ref:()=>F,registerRuntimeCompiler:()=>Gee,render:()=>nl,renderList:()=>Oi,renderSlot:()=>Ai,resolveComponent:()=>Si,resolveDirective:()=>Ti,resolveDynamicComponent:()=>wi,resolveFilter:()=>null,resolveTransitionHooks:()=>jr,setBlockTracking:()=>Oo,setDevtoolsHook:()=>bs,setTransitionHooks:()=>Pr,shallowReactive:()=>Qt,shallowReadonly:()=>en,shallowRef:()=>fn,ssrContextKey:()=>La,ssrUtils:()=>Ss,stop:()=>at,toDisplayString:()=>Pe,toHandlerKey:()=>pe,toHandlers:()=>Mi,toRaw:()=>sn,toRef:()=>vn,toRefs:()=>_n,toValue:()=>mn,transformVNodeArgs:()=>Bee,triggerRef:()=>see,unref:()=>I,useAttrs:()=>Ki,useCssModule:()=>Qee,useCssVars:()=>rc,useHost:()=>Ac,useId:()=>Ir,useModel:()=>Ka,useSSRContext:()=>Ra,useShadowRoot:()=>Zee,useSlots:()=>Gi,useTemplateRef:()=>Rr,useTransitionState:()=>wr,vModelCheckbox:()=>zc,vModelDynamic:()=>Kc,vModelRadio:()=>Vc,vModelSelect:()=>Hc,vModelText:()=>Rc,vShow:()=>$s,version:()=>gs,warn:()=>_s,watch:()=>Ha,watchEffect:()=>za,watchPostEffect:()=>Ba,watchSyncEffect:()=>Va,withAsyncContext:()=>Dee,withCtx:()=>L,withDefaults:()=>Wi,withDirectives:()=>cr,withKeys:()=>Xc,withMemo:()=>ms,withModifiers:()=>Yc,withScopeId:()=>sr});const pte=()=>{},mte=`179`,ll={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},ul={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},hte=0,gte=1,_te=2,vte=0,yte=2,bte=1,xte=2,Ste=3,Cte=4,wte=5,Tte=6,Ete=7,dl=`attached`,fl=`detached`,Dte=303,pl=1e3,ml=1001,hl=1002,gl=1003,_l=1004,vl=1005,yl=1006,bl=1007,xl=1008,Sl=1009,Cl=1010,wl=1011,Tl=1012,El=1013,Dl=1014,Ol=1015,kl=1016,Al=1017,jl=1018,Ml=1020,Nl=35902,Pl=1021,Fl=1022,Il=1023,Ll=1026,Rl=1027,zl=1028,Bl=1029,Vl=1030,Hl=1031,Ul=1033,Wl=33776,Gl=33777,Kl=33778,ql=33779,Jl=35840,Yl=35841,Xl=35842,Zl=35843,Ql=36196,$l=37492,eu=37496,tu=37808,nu=37809,ru=37810,iu=37811,au=37812,ou=37813,su=37814,cu=37815,lu=37816,uu=37817,du=37818,fu=37819,pu=37820,mu=37821,hu=36492,gu=36494,_u=36495,vu=36283,yu=36284,bu=36285,xu=36286,Su=2200,Cu=2201,wu=2202,Tu=2300,Eu=2301,Du=2302,Ou=2400,ku=2401,Au=2402,ju=2500,Mu=2501,Nu=0,Pu=1,Fu=2,Iu=3200,Lu=3201,Ru=0,zu=``,Bu=`srgb`,Vu=`srgb-linear`,Hu=`linear`,Uu=`srgb`,Wu=7680,Gu=35044,Ku=35048,qu=`300 es`,Ju=2e3,Yu=2001,Ote={COMPUTE:`compute`,RENDER:`render`},kte={PERSPECTIVE:`perspective`,LINEAR:`linear`,FLAT:`flat`},Ate={NORMAL:`normal`,CENTROID:`centroid`,SAMPLE:`sample`,FIRST:`first`,EITHER:`either`};var Xu=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+Zu[e>>16&255]+Zu[e>>24&255]+`-`+Zu[t&255]+Zu[t>>8&255]+`-`+Zu[t>>16&15|64]+Zu[t>>24&255]+`-`+Zu[n&63|128]+Zu[n>>8&255]+`-`+Zu[n>>16&255]+Zu[n>>24&255]+Zu[r&255]+Zu[r>>8&255]+Zu[r>>16&255]+Zu[r>>24&255];return i.toLowerCase()}function nd(e,t,n){return Math.max(t,Math.min(n,e))}function rd(e,t){return(e%t+t)%t}function jte(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function Mte(e,t,n){return e===t?0:(n-e)/(t-e)}function id(e,t,n){return(1-n)*e+n*t}function Nte(e,t,n,r){return id(e,t,1-Math.exp(-n*r))}function Pte(e,t=1){return t-Math.abs(rd(e,t*2)-t)}function Fte(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function Ite(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function Lte(e,t){return e+Math.floor(Math.random()*(t-e+1))}function Rte(e,t){return e+Math.random()*(t-e)}function zte(e){return e*(.5-Math.random())}function Bte(e){e!==void 0&&(Qu=e);let t=Qu+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function Vte(e){return e*$u}function Hte(e){return e*ed}function Ute(e){return(e&e-1)==0&&e!==0}function Wte(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function Gte(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function Kte(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:console.warn(`THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function ad(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`Invalid component type.`)}}function od(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`Invalid component type.`)}}const sd={DEG2RAD:$u,RAD2DEG:ed,generateUUID:td,clamp:nd,euclideanModulo:rd,mapLinear:jte,inverseLerp:Mte,lerp:id,damp:Nte,pingpong:Pte,smoothstep:Fte,smootherstep:Ite,randInt:Lte,randFloat:Rte,randFloatSpread:zte,seededRandom:Bte,degToRad:Vte,radToDeg:Hte,isPowerOfTwo:Ute,ceilPowerOfTwo:Wte,floorPowerOfTwo:Gte,setQuaternionFromProperEuler:Kte,normalize:od,denormalize:ad};var cd=class e{constructor(t=0,n=0){e.prototype.isVector2=!0,this.x=t,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=nd(this.x,e.x,t.x),this.y=nd(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=nd(this.x,e,t),this.y=nd(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(nd(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){let e=Math.atan2(-this.y,-this.x)+Math.PI;return e}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(nd(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},ld=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(o===0){e[t+0]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u;return}if(o===1){e[t+0]=d,e[t+1]=f,e[t+2]=p,e[t+3]=m;return}if(u!==m||s!==d||c!==f||l!==p){let e=1-o,t=s*d+c*f+l*p+u*m,n=t>=0?1:-1,r=1-t*t;if(r>2**-52){let i=Math.sqrt(r),a=Math.atan2(i,t*n);e=Math.sin(e*a)/i,o=Math.sin(o*a)/i}let i=o*n;if(s=s*e+d*i,c=c*e+f*i,l=l*e+p*i,u=u*e+m*i,e===1-o){let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:console.warn(`THREE.Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(nd(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);let n=this._x,r=this._y,i=this._z,a=this._w,o=a*e._w+n*e._x+r*e._y+i*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;let s=1-o*o;if(s<=2**-52){let e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this}let c=Math.sqrt(s),l=Math.atan2(c,o),u=Math.sin((1-t)*l)/c,d=Math.sin(t*l)/c;return this._w=a*u+this._w*d,this._x=n*u+this._x*d,this._y=r*u+this._y*d,this._z=i*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},W=class e{constructor(t=0,n=0,r=0){e.prototype.isVector3=!0,this.x=t,this.y=n,this.z=r}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(dd.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(dd.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=nd(this.x,e.x,t.x),this.y=nd(this.y,e.y,t.y),this.z=nd(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=nd(this.x,e,t),this.y=nd(this.y,e,t),this.z=nd(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(nd(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return ud.copy(this).projectOnVector(e),this.sub(ud)}reflect(e){return this.sub(ud.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(nd(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}};const ud=new W,dd=new ld;var fd=class e{constructor(t,n,r,i,a,o,s,c,l){e.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,n,r,i,a,o,s,c,l)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(pd.makeScale(e,t)),this}rotate(e){return this.premultiply(pd.makeRotation(-e)),this}translate(e,t){return this.premultiply(pd.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}};const pd=new fd;function md(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}const qte={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function hd(e,t){return new qte[e](t)}function gd(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function _d(){let e=gd(`canvas`);return e.style.display=`block`,e}const vd={};function yd(e){e in vd||(vd[e]=!0,console.warn(e))}function Jte(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}const bd=new fd().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),xd=new fd().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Yte(){let e={enabled:!0,workingColorSpace:Vu,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===Uu&&(e.r=Cd(e.r),e.g=Cd(e.g),e.b=Cd(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===Uu&&(e.r=wd(e.r),e.g=wd(e.g),e.b=wd(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?Hu:this.spaces[e].transfer},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return yd(`THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return yd(`THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[Vu]:{primaries:t,whitePoint:r,transfer:Hu,toXYZ:bd,fromXYZ:xd,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:Bu},outputColorSpaceConfig:{drawingBufferColorSpace:Bu}},[Bu]:{primaries:t,whitePoint:r,transfer:Uu,toXYZ:bd,fromXYZ:xd,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:Bu}}}),e}const Sd=Yte();function Cd(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function wd(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}let Td;var Ed=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Td===void 0&&(Td=gd(`canvas`)),Td.width=e.width,Td.height=e.height;let t=Td.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=Td}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=gd(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0}get width(){return this.source.getSize(kd).x}get height(){return this.source.getSize(kd).y}get depth(){return this.source.getSize(kd).z}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){console.warn(`THREE.Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){console.warn(`THREE.Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case pl:e.x-=Math.floor(e.x);break;case ml:e.x=e.x<0?0:1;break;case hl:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case pl:e.y-=Math.floor(e.y);break;case ml:e.y=e.y<0?0:1;break;case hl:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};Ad.DEFAULT_IMAGE=null,Ad.DEFAULT_MAPPING=300,Ad.DEFAULT_ANISOTROPY=1;var jd=class e{constructor(t=0,n=0,r=0,i=1){e.prototype.isVector4=!0,this.x=t,this.y=n,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Rd),Rd.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Kd),qd.subVectors(this.max,Kd),Bd.subVectors(e.a,Kd),Vd.subVectors(e.b,Kd),Hd.subVectors(e.c,Kd),Ud.subVectors(Vd,Bd),Wd.subVectors(Hd,Vd),Gd.subVectors(Bd,Hd);let t=[0,-Ud.z,Ud.y,0,-Wd.z,Wd.y,0,-Gd.z,Gd.y,Ud.z,0,-Ud.x,Wd.z,0,-Wd.x,Gd.z,0,-Gd.x,-Ud.y,Ud.x,0,-Wd.y,Wd.x,0,-Gd.y,Gd.x,0];return!Xd(t,Bd,Vd,Hd,qd)||(t=[1,0,0,0,1,0,0,0,1],!Xd(t,Bd,Vd,Hd,qd))?!1:(Jd.crossVectors(Ud,Wd),t=[Jd.x,Jd.y,Jd.z],Xd(t,Bd,Vd,Hd,qd))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Rd).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Rd).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Ld[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Ld[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Ld[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Ld[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Ld[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Ld[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Ld[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Ld[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Ld),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}};const Ld=[new W,new W,new W,new W,new W,new W,new W,new W],Rd=new W,zd=new Id,Bd=new W,Vd=new W,Hd=new W,Ud=new W,Wd=new W,Gd=new W,Kd=new W,qd=new W,Jd=new W,Yd=new W;function Xd(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Yd.fromArray(e,a);let o=i.x*Math.abs(Yd.x)+i.y*Math.abs(Yd.y)+i.z*Math.abs(Yd.z),s=t.dot(Yd),c=n.dot(Yd),l=r.dot(Yd);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}const ene=new Id,Zd=new W,Qd=new W;var $d=class{constructor(e=new W,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let n=this.center;t===void 0?ene.setFromPoints(e).getCenter(n):n.copy(t);let r=0;for(let t=0,i=e.length;tthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Zd.subVectors(e,this.center);let t=Zd.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Zd,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Qd.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Zd.copy(e.center).add(Qd)),this.expandByPoint(Zd.copy(e.center).sub(Qd))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}};const ef=new W,tf=new W,nf=new W,rf=new W,af=new W,sf=new W,cf=new W;var lf=class{constructor(e=new W,t=new W(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ef)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=ef.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ef.copy(this.origin).addScaledVector(this.direction,t),ef.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){tf.copy(e).add(t).multiplyScalar(.5),nf.copy(t).sub(e).normalize(),rf.copy(this.origin).sub(tf);let i=e.distanceTo(t)*.5,a=-this.direction.dot(nf),o=rf.dot(this.direction),s=-rf.dot(nf),c=rf.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0)if(u=a*s-o,d=a*o-s,p=i*l,u>=0)if(d>=-p)if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c);else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(tf).addScaledVector(nf,d),f}intersectSphere(e,t){ef.subVectors(e.center,this.origin);let n=ef.dot(this.direction),r=ef.dot(ef)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);if(t===0)return!0;let n=e.normal.dot(this.direction);return n*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,ef)!==null}intersectTriangle(e,t,n,r,i){af.subVectors(t,e),sf.subVectors(n,e),cf.crossVectors(af,sf);let a=this.direction.dot(cf),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;rf.subVectors(this.origin,e);let s=o*this.direction.dot(sf.crossVectors(rf,sf));if(s<0)return null;let c=o*this.direction.dot(af.cross(rf));if(c<0||s+c>a)return null;let l=-o*rf.dot(cf);return l<0?null:this.at(l/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},uf=class e{constructor(t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g){e.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g)}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=a,g[9]=o,g[13]=s,g[2]=c,g[6]=l,g[10]=u,g[14]=d,g[3]=f,g[7]=p,g[11]=m,g[15]=h,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new e().fromArray(this.elements)}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){let t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){let t=this.elements,n=e.elements,r=1/df.setFromMatrixColumn(e,0).length(),i=1/df.setFromMatrixColumn(e,1).length(),a=1/df.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if(e.order===`XYZ`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=-s*u,t[8]=c,t[1]=n+r*c,t[5]=e-i*c,t[9]=-o*s,t[2]=i-e*c,t[6]=r+n*c,t[10]=a*s}else if(e.order===`YXZ`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e+i*o,t[4]=r*o-n,t[8]=a*c,t[1]=a*u,t[5]=a*l,t[9]=-o,t[2]=n*o-r,t[6]=i+e*o,t[10]=a*s}else if(e.order===`ZXY`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e-i*o,t[4]=-a*u,t[8]=r+n*o,t[1]=n+r*o,t[5]=a*l,t[9]=i-e*o,t[2]=-a*c,t[6]=o,t[10]=a*s}else if(e.order===`ZYX`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=r*c-n,t[8]=e*c+i,t[1]=s*u,t[5]=i*c+e,t[9]=n*c-r,t[2]=-c,t[6]=o*s,t[10]=a*s}else if(e.order===`YZX`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*l,t[9]=-o*l,t[2]=-c*l,t[6]=n*u+r,t[10]=e-i*u}else if(e.order===`XZY`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=-u,t[8]=c*l,t[1]=e*u+i,t[5]=a*l,t[9]=n*u-r,t[2]=r*u-n,t[6]=o*l,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(tne,e,nne)}lookAt(e,t,n){let r=this.elements;return hf.subVectors(e,t),hf.lengthSq()===0&&(hf.z=1),hf.normalize(),pf.crossVectors(n,hf),pf.lengthSq()===0&&(Math.abs(n.z)===1?hf.x+=1e-4:hf.z+=1e-4,hf.normalize(),pf.crossVectors(n,hf)),pf.normalize(),mf.crossVectors(hf,pf),r[0]=pf.x,r[4]=mf.x,r[8]=hf.x,r[1]=pf.y,r[5]=mf.y,r[9]=hf.y,r[2]=pf.z,r[6]=mf.z,r[10]=hf.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],c=n[12],l=n[1],u=n[5],d=n[9],f=n[13],p=n[2],m=n[6],h=n[10],g=n[14],_=n[3],v=n[7],y=n[11],b=n[15],x=r[0],S=r[4],C=r[8],w=r[12],T=r[1],E=r[5],D=r[9],O=r[13],k=r[2],A=r[6],j=r[10],M=r[14],ee=r[3],te=r[7],N=r[11],ne=r[15];return i[0]=a*x+o*T+s*k+c*ee,i[4]=a*S+o*E+s*A+c*te,i[8]=a*C+o*D+s*j+c*N,i[12]=a*w+o*O+s*M+c*ne,i[1]=l*x+u*T+d*k+f*ee,i[5]=l*S+u*E+d*A+f*te,i[9]=l*C+u*D+d*j+f*N,i[13]=l*w+u*O+d*M+f*ne,i[2]=p*x+m*T+h*k+g*ee,i[6]=p*S+m*E+h*A+g*te,i[10]=p*C+m*D+h*j+g*N,i[14]=p*w+m*O+h*M+g*ne,i[3]=_*x+v*T+y*k+b*ee,i[7]=_*S+v*E+y*A+b*te,i[11]=_*C+v*D+y*j+b*N,i[15]=_*w+v*O+y*M+b*ne,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],c=e[13],l=e[2],u=e[6],d=e[10],f=e[14],p=e[3],m=e[7],h=e[11],g=e[15];return p*(+i*s*u-r*c*u-i*o*d+n*c*d+r*o*f-n*s*f)+m*(+t*s*f-t*c*d+i*a*d-r*a*f+r*c*l-i*s*l)+h*(+t*c*u-t*o*f-i*a*u+n*a*f+i*o*l-n*c*l)+g*(-r*o*l-t*s*u+t*o*d+r*a*u-n*a*d+n*s*l)}transpose(){let e=this.elements,t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){let r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=e[9],d=e[10],f=e[11],p=e[12],m=e[13],h=e[14],g=e[15],_=u*h*c-m*d*c+m*s*f-o*h*f-u*s*g+o*d*g,v=p*d*c-l*h*c-p*s*f+a*h*f+l*s*g-a*d*g,y=l*m*c-p*u*c+p*o*f-a*m*f-l*o*g+a*u*g,b=p*u*s-l*m*s-p*o*d+a*m*d+l*o*h-a*u*h,x=t*_+n*v+r*y+i*b;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let S=1/x;return e[0]=_*S,e[1]=(m*d*i-u*h*i-m*r*f+n*h*f+u*r*g-n*d*g)*S,e[2]=(o*h*i-m*s*i+m*r*c-n*h*c-o*r*g+n*s*g)*S,e[3]=(u*s*i-o*d*i-u*r*c+n*d*c+o*r*f-n*s*f)*S,e[4]=v*S,e[5]=(l*h*i-p*d*i+p*r*f-t*h*f-l*r*g+t*d*g)*S,e[6]=(p*s*i-a*h*i-p*r*c+t*h*c+a*r*g-t*s*g)*S,e[7]=(a*d*i-l*s*i+l*r*c-t*d*c-a*r*f+t*s*f)*S,e[8]=y*S,e[9]=(p*u*i-l*m*i-p*n*f+t*m*f+l*n*g-t*u*g)*S,e[10]=(a*m*i-p*o*i+p*n*c-t*m*c-a*n*g+t*o*g)*S,e[11]=(l*o*i-a*u*i-l*n*c+t*u*c+a*n*f-t*o*f)*S,e[12]=b*S,e[13]=(l*m*r-p*u*r+p*n*d-t*m*d-l*n*h+t*u*h)*S,e[14]=(p*o*r-a*m*r-p*n*s+t*m*s+a*n*h-t*o*h)*S,e[15]=(a*u*r-l*o*r+l*n*s-t*u*s-a*n*d+t*o*d)*S,this}scale(e){let t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){let e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,c=i*a,l=i*o;return this.set(c*a+n,c*o-r*s,c*s+r*o,0,c*o+r*s,l*o+n,l*s-r*a,0,c*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){let r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,c=i+i,l=a+a,u=o+o,d=i*c,f=i*l,p=i*u,m=a*l,h=a*u,g=o*u,_=s*c,v=s*l,y=s*u,b=n.x,x=n.y,S=n.z;return r[0]=(1-(m+g))*b,r[1]=(f+y)*b,r[2]=(p-v)*b,r[3]=0,r[4]=(f-y)*x,r[5]=(1-(d+g))*x,r[6]=(h+_)*x,r[7]=0,r[8]=(p+v)*S,r[9]=(h-_)*S,r[10]=(1-(d+m))*S,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){let r=this.elements,i=df.set(r[0],r[1],r[2]).length(),a=df.set(r[4],r[5],r[6]).length(),o=df.set(r[8],r[9],r[10]).length(),s=this.determinant();s<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],ff.copy(this);let c=1/i,l=1/a,u=1/o;return ff.elements[0]*=c,ff.elements[1]*=c,ff.elements[2]*=c,ff.elements[4]*=l,ff.elements[5]*=l,ff.elements[6]*=l,ff.elements[8]*=u,ff.elements[9]*=u,ff.elements[10]*=u,t.setFromRotationMatrix(ff),n.x=i,n.y=a,n.z=o,this}makePerspective(e,t,n,r,i,a,o=Ju,s=!1){let c=this.elements,l=2*i/(t-e),u=2*i/(n-r),d=(t+e)/(t-e),f=(n+r)/(n-r),p,m;if(s)p=i/(a-i),m=a*i/(a-i);else if(o===Ju)p=-(a+i)/(a-i),m=-2*a*i/(a-i);else if(o===Yu)p=-a/(a-i),m=-a*i/(a-i);else throw Error(`THREE.Matrix4.makePerspective(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=d,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,n,r,i,a,o=Ju,s=!1){let c=this.elements,l=2/(t-e),u=2/(n-r),d=-(t+e)/(t-e),f=-(n+r)/(n-r),p,m;if(s)p=1/(a-i),m=a/(a-i);else if(o===Ju)p=-2/(a-i),m=-(a+i)/(a-i);else if(o===Yu)p=-1/(a-i),m=-i/(a-i);else throw Error(`THREE.Matrix4.makeOrthographic(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=0,c[12]=d,c[1]=0,c[5]=u,c[9]=0,c[13]=f,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}};const df=new W,ff=new uf,tne=new W(0,0,0),nne=new W(1,1,1),pf=new W,mf=new W,hf=new W,gf=new uf,_f=new ld;var vf=class e{constructor(t=0,n=0,r=0,i=e.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){let r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],c=r[5],l=r[9],u=r[2],d=r[6],f=r[10];switch(t){case`XYZ`:this._y=Math.asin(nd(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(d,c),this._z=0);break;case`YXZ`:this._x=Math.asin(-nd(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,f),this._z=Math.atan2(s,c)):(this._y=Math.atan2(-u,i),this._z=0);break;case`ZXY`:this._x=Math.asin(nd(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(s,i));break;case`ZYX`:this._y=Math.asin(-nd(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,c));break;case`YZX`:this._z=Math.asin(nd(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(o,f));break;case`XZY`:this._z=Math.asin(-nd(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,f),this._y=0);break;default:console.warn(`THREE.Euler: .setFromRotationMatrix() encountered an unknown order: `+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return gf.makeRotationFromQuaternion(e),this.setFromRotationMatrix(gf,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return _f.setFromEuler(this),this.setFromQuaternion(_f,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};vf.DEFAULT_ORDER=`XYZ`;var yf=class{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Ff.subVectors(r,t),If.subVectors(n,t),Lf.subVectors(e,t);let a=Ff.dot(Ff),o=Ff.dot(If),s=Ff.dot(Lf),c=If.dot(If),l=If.dot(Lf),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,Rf)===null?!1:Rf.x>=0&&Rf.y>=0&&Rf.x+Rf.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,Rf)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,Rf.x),s.addScaledVector(a,Rf.y),s.addScaledVector(o,Rf.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return Gf.setScalar(0),Kf.setScalar(0),qf.setScalar(0),Gf.fromBufferAttribute(e,t),Kf.fromBufferAttribute(e,n),qf.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(Gf,i.x),a.addScaledVector(Kf,i.y),a.addScaledVector(qf,i.z),a}static isFrontFacing(e,t,n,r){return Ff.subVectors(n,t),If.subVectors(e,t),Ff.cross(If).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ff.subVectors(this.c,this.b),If.subVectors(this.a,this.b),Ff.cross(If).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;zf.subVectors(r,n),Bf.subVectors(i,n),Hf.subVectors(e,n);let s=zf.dot(Hf),c=Bf.dot(Hf);if(s<=0&&c<=0)return t.copy(n);Uf.subVectors(e,r);let l=zf.dot(Uf),u=Bf.dot(Uf);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(zf,a);Wf.subVectors(e,i);let f=zf.dot(Wf),p=Bf.dot(Wf);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(Bf,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return Vf.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(Vf,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(zf,a).addScaledVector(Bf,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}};const Yf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Xf={h:0,s:0,l:0},Zf={h:0,s:0,l:0};function Qf(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var $f=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Bu){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Sd.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=Sd.workingColorSpace){return this.r=e,this.g=t,this.b=n,Sd.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=Sd.workingColorSpace){if(e=rd(e,1),t=nd(t,0,1),n=nd(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Qf(i,r,e+1/3),this.g=Qf(i,r,e),this.b=Qf(i,r,e-1/3)}return Sd.colorSpaceToWorking(this,r),this}setStyle(e,t=Bu){function n(t){t!==void 0&&parseFloat(t)<1&&console.warn(`THREE.Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:console.warn(`THREE.Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);console.warn(`THREE.Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Bu){let n=Yf[e.toLowerCase()];return n===void 0?console.warn(`THREE.Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Cd(e.r),this.g=Cd(e.g),this.b=Cd(e.b),this}copyLinearToSRGB(e){return this.r=wd(e.r),this.g=wd(e.g),this.b=wd(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Bu){return Sd.workingToColorSpace(ep.copy(this),e),Math.round(nd(ep.r*255,0,255))*65536+Math.round(nd(ep.g*255,0,255))*256+Math.round(nd(ep.b*255,0,255))}getHexString(e=Bu){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Sd.workingColorSpace){Sd.workingToColorSpace(ep.copy(this),t);let n=ep.r,r=ep.g,i=ep.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,this.name!==``&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.side!==0&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==204&&(n.blendSrc=this.blendSrc),this.blendDst!==205&&(n.blendDst=this.blendDst),this.blendEquation!==100&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==3&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==519&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Wu&&(n.stencilFail=this.stencilFail),this.stencilZFail!==Wu&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==Wu&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},rp=class extends np{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new $f(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new vf,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}};const ip=ap();function ap(){let e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),i=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-27?(r[e]=0,r[e|256]=32768,i[e]=24,i[e|256]=24):t<-14?(r[e]=1024>>-t-14,r[e|256]=1024>>-t-14|32768,i[e]=-t-1,i[e|256]=-t-1):t<=15?(r[e]=t+15<<10,r[e|256]=t+15<<10|32768,i[e]=13,i[e|256]=13):t<128?(r[e]=31744,r[e|256]=64512,i[e]=24,i[e|256]=24):(r[e]=31744,r[e|256]=64512,i[e]=13,i[e|256]=13)}let a=new Uint32Array(2048),o=new Uint32Array(64),s=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;!(t&8388608);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,a[e]=t|n}for(let e=1024;e<2048;++e)a[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)o[e]=e<<23;o[31]=1199570944,o[32]=2147483648;for(let e=33;e<63;++e)o[e]=2147483648+(e-32<<23);o[63]=3347054592;for(let e=1;e<64;++e)e!==32&&(s[e]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:o,offsetTable:s}}function op(e){Math.abs(e)>65504&&console.warn(`THREE.DataUtils.toHalfFloat(): Value out of range.`),e=nd(e,-65504,65504),ip.floatView[0]=e;let t=ip.uint32View[0],n=t>>23&511;return ip.baseTable[n]+((t&8388607)>>ip.shiftTable[n])}function sp(e){let t=e>>10;return ip.uint32View[0]=ip.mantissaTable[ip.offsetTable[t]+(e&1023)]+ip.exponentTable[t],ip.floatView[0]}var cp=class{static toHalfFloat(e){return op(e)}static fromHalfFloat(e){return sp(e)}};const lp=new W,up=new cd;let dp=0;var fp=class{constructor(e,t,n=!1){if(Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,`id`,{value:dp++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=Gu,this.updateRanges=[],this.gpuType=Ol,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rt.count&&console.warn(`THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Id);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error(`THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new W(-1/0,-1/0,-1/0),new W(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e0){let e=t[n[0]];if(e!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t(e.far-e.near)**2))&&(Ap.copy(i).invert(),jp.copy(e.ray).applyMatrix4(Ap),!(n.boundingBox!==null&&jp.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,jp)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null)if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Bp.clone(),object:e}}function Up(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,Pp),e.getVertexPosition(c,Fp),e.getVertexPosition(l,Ip);let u=Hp(e,t,n,r,Pp,Fp,Ip,zp);if(u){let e=new W;Jf.getBarycoord(zp,Pp,Fp,Ip,e),i&&(u.uv=Jf.getInterpolatedAttribute(i,s,c,l,e,new cd)),a&&(u.uv1=Jf.getInterpolatedAttribute(a,s,c,l,e,new cd)),o&&(u.normal=Jf.getInterpolatedAttribute(o,s,c,l,e,new W),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new W,materialIndex:0};Jf.getNormal(Pp,Fp,Ip,t.normal),u.face=t,u.barycoord=e}return u}var Wp=class e extends kp{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new xp(c,3)),this.setAttribute(`normal`,new xp(l,3)),this.setAttribute(`uv`,new xp(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new W;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}}for(let e=0;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}},Jp=class extends kf{constructor(){super(),this.isCamera=!0,this.type=`Camera`,this.matrixWorldInverse=new nf,this.projectionMatrix=new nf,this.projectionMatrixInverse=new nf,this.coordinateSystem=Hu,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}};const Yp=new W,Xp=new nd,Zp=new nd;var Qp=class extends Jp{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type=`PerspectiveCamera`,this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){let t=.5*this.getFilmHeight()/e;this.fov=Ju*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){let e=Math.tan(qu*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Ju*2*Math.atan(Math.tan(qu*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){Yp.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(Yp.x,Yp.y).multiplyScalar(-e/Yp.z),Yp.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Yp.x,Yp.y).multiplyScalar(-e/Yp.z)}getViewSize(e,t){return this.getViewBounds(e,Xp,Zp),t.subVectors(Zp,Xp)}setViewOffset(e,t,n,r,i,a){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=this.near,t=e*Math.tan(qu*.5*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r,a=this.view;if(this.view!==null&&this.view.enabled){let e=a.fullWidth,o=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/o,r*=a.width/e,n*=a.height/o}let o=this.filmOffset;o!==0&&(i+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}},$p=class extends kf{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new Qp(-90,1,e,t);r.layers=this.layers,this.add(r);let i=new Qp(-90,1,e,t);i.layers=this.layers,this.add(i);let a=new Qp(-90,1,e,t);a.layers=this.layers,this.add(a);let o=new Qp(-90,1,e,t);o.layers=this.layers,this.add(o);let s=new Qp(-90,1,e,t);s.layers=this.layers,this.add(s);let c=new Qp(-90,1,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);if(e===Hu)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===Uu)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,r),e.render(t,i),e.setRenderTarget(n,1,r),e.render(t,a),e.setRenderTarget(n,2,r),e.render(t,o),e.setRenderTarget(n,3,r),e.render(t,s),e.setRenderTarget(n,4,r),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,r),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},em=class extends wd{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},tm=class extends Dd{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new em(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` +}`,Qp=class extends np{constructor(e){super(),this.isShaderMaterial=!0,this.type=`ShaderMaterial`,this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=Xp,this.fragmentShader=Zp,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Gp(e.uniforms),this.uniformsGroups=qp(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){let t=super.toJSON(e);for(let n in t.glslVersion=this.glslVersion,t.uniforms={},this.uniforms){let r=this.uniforms[n],i=r.value;i&&i.isTexture?t.uniforms[n]={type:`t`,value:i.toJSON(e).uuid}:i&&i.isColor?t.uniforms[n]={type:`c`,value:i.getHex()}:i&&i.isVector2?t.uniforms[n]={type:`v2`,value:i.toArray()}:i&&i.isVector3?t.uniforms[n]={type:`v3`,value:i.toArray()}:i&&i.isVector4?t.uniforms[n]={type:`v4`,value:i.toArray()}:i&&i.isMatrix3?t.uniforms[n]={type:`m3`,value:i.toArray()}:i&&i.isMatrix4?t.uniforms[n]={type:`m4`,value:i.toArray()}:t.uniforms[n]={value:i}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}},$p=class extends Pf{constructor(){super(),this.isCamera=!0,this.type=`Camera`,this.matrixWorldInverse=new uf,this.projectionMatrix=new uf,this.projectionMatrixInverse=new uf,this.coordinateSystem=Ju,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}};const em=new W,tm=new cd,nm=new cd;var rm=class extends $p{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type=`PerspectiveCamera`,this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){let t=.5*this.getFilmHeight()/e;this.fov=ed*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){let e=Math.tan($u*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return ed*2*Math.atan(Math.tan($u*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){em.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(em.x,em.y).multiplyScalar(-e/em.z),em.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(em.x,em.y).multiplyScalar(-e/em.z)}getViewSize(e,t){return this.getViewBounds(e,tm,nm),t.subVectors(nm,tm)}setViewOffset(e,t,n,r,i,a){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=this.near,t=e*Math.tan($u*.5*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r,a=this.view;if(this.view!==null&&this.view.enabled){let e=a.fullWidth,o=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/o,r*=a.width/e,n*=a.height/o}let o=this.filmOffset;o!==0&&(i+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}},im=class extends Pf{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new rm(-90,1,e,t);r.layers=this.layers,this.add(r);let i=new rm(-90,1,e,t);i.layers=this.layers,this.add(i);let a=new rm(-90,1,e,t);a.layers=this.layers,this.add(a);let o=new rm(-90,1,e,t);o.layers=this.layers,this.add(o);let s=new rm(-90,1,e,t);s.layers=this.layers,this.add(s);let c=new rm(-90,1,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);if(e===Ju)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===Yu)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,r),e.render(t,i),e.setRenderTarget(n,1,r),e.render(t,a),e.setRenderTarget(n,2,r),e.render(t,o),e.setRenderTarget(n,3,r),e.render(t,s),e.setRenderTarget(n,4,r),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,r),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},am=class extends Ad{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},om=class extends Nd{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new am(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -45,9 +45,9 @@ function m(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},r=new zp(5,5,5),i=new qp({name:`CubemapFromEquirect`,uniforms:Bp(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new Ip(r,i),o=t.minFilter;t.minFilter===gl&&(t.minFilter=ml);let s=new $p(1,10,this);return s.update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}},nm=class extends kf{constructor(){super(),this.isGroup=!0,this.type=`Group`}};const lne={type:`move`};var rm=class{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new nm,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new nm,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new W,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new W),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new nm,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new W,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new W),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){let t=this._hand;if(t)for(let n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:`connected`,data:e}),this}disconnect(e){return this.dispatchEvent({type:`disconnected`,data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let r=null,i=null,a=null,o=this._targetRay,s=this._grip,c=this._hand;if(e&&t.session.visibilityState!==`visible-blurred`){if(c&&e.hand){a=!0;for(let r of e.hand.values()){let e=t.getJointPose(r,n),i=this._getHandJoint(c,r);e!==null&&(i.matrix.fromArray(e.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.matrixWorldNeedsUpdate=!0,i.jointRadius=e.radius),i.visible=e!==null}let r=c.joints[`index-finger-tip`],i=c.joints[`thumb-tip`],o=r.position.distanceTo(i.position),s=.02,l=.005;c.inputState.pinching&&o>s+l?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=s-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(lne)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new nm;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},im=class e{constructor(e,t=25e-5){this.isFogExp2=!0,this.name=``,this.color=new Jf(e),this.density=t}clone(){return new e(this.color,this.density)}toJSON(){return{type:`FogExp2`,name:this.name,color:this.color.getHex(),density:this.density}}},am=class e{constructor(e,t=1,n=1e3){this.isFog=!0,this.name=``,this.color=new Jf(e),this.near=t,this.far=n}clone(){return new e(this.color,this.near,this.far)}toJSON(){return{type:`Fog`,name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}},om=class extends kf{constructor(){super(),this.isScene=!0,this.type=`Scene`,this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new ff,this.environmentIntensity=1,this.environmentRotation=new ff,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){let t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}},sm=class{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e===void 0?0:e.length/t,this.usage=zu,this.updateRanges=[],this.version=0,this.uuid=Yu()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;re.far||t.push({distance:s,point:fm.clone(),uv:Uf.getInterpolation(fm,vm,ym,bm,xm,Sm,Cm,new nd),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}};function Tm(e,t,n,r,i,a){hm.subVectors(e,n).addScalar(.5).multiply(r),i===void 0?gm.copy(hm):(gm.x=a*hm.x-i*hm.y,gm.y=i*hm.x+a*hm.y),e.copy(t),e.x+=gm.x,e.y+=gm.y,e.applyMatrix4(_m)}const Em=new W,Dm=new W;var Om=class extends kf{constructor(){super(),this.isLOD=!0,this._currentLevel=0,this.type=`LOD`,Object.defineProperties(this,{levels:{enumerable:!0,value:[]}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);let t=e.levels;for(let e=0,n=t.length;e0){let n,r;for(n=1,r=t.length;n0){Em.setFromMatrixPosition(this.matrixWorld);let n=e.ray.origin.distanceTo(Em);this.getObjectForDistance(n).raycast(e,t)}}update(e){let t=this.levels;if(t.length>1){Em.setFromMatrixPosition(e.matrixWorld),Dm.setFromMatrixPosition(this.matrixWorld);let n=Em.distanceTo(Dm)/e.zoom;t[0].object.visible=!0;let r,i;for(r=1,i=t.length;r=e)t[r-1].object.visible=!1,t[r].object.visible=!0;else break}for(this._currentLevel=r-1;r1?null:t.copy(e.start).addScaledVector(n,i)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||mne.getNormalMatrix(e),r=this.coplanarPoint(Xm).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}};const Qm=new qd,hne=new nd(.5,.5),$m=new W;var eh=class{constructor(e=new Zm,t=new Zm,n=new Zm,r=new Zm,i=new Zm,a=new Zm){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){let o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Hu,n=!1){let r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(c-a,f-l,g-p,b-_).normalize(),r[1].setComponents(c+a,f+l,g+p,b+_).normalize(),r[2].setComponents(c+o,f+u,g+m,b+v).normalize(),r[3].setComponents(c-o,f-u,g-m,b-v).normalize(),n)r[4].setComponents(s,d,h,y).normalize(),r[5].setComponents(c-s,f-d,g-h,b-y).normalize();else if(r[4].setComponents(c-s,f-d,g-h,b-y).normalize(),t===Hu)r[5].setComponents(c+s,f+d,g+h,b+y).normalize();else if(t===Uu)r[5].setComponents(s,d,h,y).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Qm.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Qm.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Qm)}intersectsSprite(e){Qm.center.set(0,0,0);let t=hne.distanceTo(e.center);return Qm.radius=.7071067811865476+t,Qm.applyMatrix4(e.matrixWorld),this.intersectsSphere(Qm)}intersectsSphere(e){let t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++){let i=t[e].distanceToPoint(n);if(i0?e.max.x:e.min.x,$m.y=r.normal.y>0?e.max.y:e.min.y,$m.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint($m)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}};const th=new nf,nh=new eh;var rh=class e{constructor(){this.coordinateSystem=Hu}intersectsObject(e,t){if(!t.isArrayCamera||t.cameras.length===0)return!1;for(let n=0;n=i.length&&i.push({start:-1,count:-1,z:-1,index:-1});let o=i[this.index];a.push(o),this.index++,o.start=e,o.count=t,o.z=n,o.index=r}reset(){this.list.length=0,this.index=0}};const ah=new nf,yne=new Jf(1,1,1),oh=new eh,bne=new rh,sh=new Ad,ch=new qd,lh=new W,uh=new W,xne=new W,dh=new vne,fh=new Ip,ph=[];function Sne(e,t,n=0){let r=t.itemSize;if(e.isInterleavedBufferAttribute||e.array.constructor!==t.array.constructor){let i=e.count;for(let a=0;a65535?new Uint32Array(r):new Uint16Array(r);t.setIndex(new sp(e,1))}this._geometryInitialized=!0}}_validateGeometry(e){let t=this.geometry;if(!!e.getIndex()!=!!t.getIndex())throw Error(`THREE.BatchedMesh: All geometries must consistently have "index".`);for(let n in t.attributes){if(!e.hasAttribute(n))throw Error(`THREE.BatchedMesh: Added geometry missing "${n}". All geometries must have consistent attributes.`);let r=e.getAttribute(n),i=t.getAttribute(n);if(r.itemSize!==i.itemSize||r.normalized!==i.normalized)throw Error(`THREE.BatchedMesh: All attributes must have a consistent itemSize and normalized value.`)}}validateInstanceId(e){let t=this._instanceInfo;if(e<0||e>=t.length||t[e].active===!1)throw Error(`THREE.BatchedMesh: Invalid instanceId ${e}. Instance is either out of range or has been deleted.`)}validateGeometryId(e){let t=this._geometryInfo;if(e<0||e>=t.length||t[e].active===!1)throw Error(`THREE.BatchedMesh: Invalid geometryId ${e}. Geometry is either out of range or has been deleted.`)}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Ad);let e=this.boundingBox,t=this._instanceInfo;e.makeEmpty();for(let n=0,r=t.length;n=this.maxInstanceCount;if(t&&this._availableInstanceIds.length===0)throw Error(`THREE.BatchedMesh: Maximum item count reached.`);let n={visible:!0,active:!0,geometryIndex:e},r=null;this._availableInstanceIds.length>0?(this._availableInstanceIds.sort(ih),r=this._availableInstanceIds.shift(),this._instanceInfo[r]=n):(r=this._instanceInfo.length,this._instanceInfo.push(n));let i=this._matricesTexture;ah.identity().toArray(i.image.data,r*16),i.needsUpdate=!0;let a=this._colorsTexture;return a&&(yne.toArray(a.image.data,r*4),a.needsUpdate=!0),this._visibilityChanged=!0,r}addGeometry(e,t=-1,n=-1){this._initializeGeometry(e),this._validateGeometry(e);let r={vertexStart:-1,vertexCount:-1,reservedVertexCount:-1,indexStart:-1,indexCount:-1,reservedIndexCount:-1,start:-1,count:-1,boundingBox:null,boundingSphere:null,active:!0},i=this._geometryInfo;r.vertexStart=this._nextVertexStart,r.reservedVertexCount=t===-1?e.getAttribute(`position`).count:t;let a=e.getIndex(),o=a!==null;if(o&&(r.indexStart=this._nextIndexStart,r.reservedIndexCount=n===-1?a.count:n),r.indexStart!==-1&&r.indexStart+r.reservedIndexCount>this._maxIndexCount||r.vertexStart+r.reservedVertexCount>this._maxVertexCount)throw Error(`THREE.BatchedMesh: Reserved space request exceeds the maximum buffer size.`);let s;return this._availableGeometryIds.length>0?(this._availableGeometryIds.sort(ih),s=this._availableGeometryIds.shift(),i[s]=r):(s=this._geometryCount,this._geometryCount++,i.push(r)),this.setGeometryAt(s,e),this._nextIndexStart=r.indexStart+r.reservedIndexCount,this._nextVertexStart=r.vertexStart+r.reservedVertexCount,s}setGeometryAt(e,t){if(e>=this._geometryCount)throw Error(`THREE.BatchedMesh: Maximum geometry count reached.`);this._validateGeometry(t);let n=this.geometry,r=n.getIndex()!==null,i=n.getIndex(),a=t.getIndex(),o=this._geometryInfo[e];if(r&&a.count>o.reservedIndexCount||t.attributes.position.count>o.reservedVertexCount)throw Error(`THREE.BatchedMesh: Reserved space not large enough for provided geometry.`);let s=o.vertexStart,c=o.reservedVertexCount;for(let e in o.vertexCount=t.getAttribute(`position`).count,n.attributes){let r=t.getAttribute(e),i=n.getAttribute(e);Sne(r,i,s);let a=r.itemSize;for(let e=r.count,t=c;e=t.length||t[e].active===!1)return this;let n=this._instanceInfo;for(let t=0,r=n.length;tt).sort((e,t)=>n[e].vertexStart-n[t].vertexStart),i=this.geometry;for(let a=0,o=n.length;a=this._geometryCount)return null;let n=this.geometry,r=this._geometryInfo[e];if(r.boundingBox===null){let e=new Ad,t=n.index,i=n.attributes.position;for(let n=r.start,a=r.start+r.count;n=this._geometryCount)return null;let n=this.geometry,r=this._geometryInfo[e];if(r.boundingSphere===null){let t=new qd;this.getBoundingBoxAt(e,sh),sh.getCenter(t.center);let i=n.index,a=n.attributes.position,o=0;for(let e=r.start,n=r.start+r.count;ee.active),r=Math.max(...n.map(e=>e.vertexStart+e.reservedVertexCount));if(r>e)throw Error(`BatchedMesh: Geometry vertex values are being used outside the range ${t}. Cannot shrink further.`);if(this.geometry.index){let e=Math.max(...n.map(e=>e.indexStart+e.reservedIndexCount));if(e>t)throw Error(`BatchedMesh: Geometry index values are being used outside the range ${t}. Cannot shrink further.`)}let i=this.geometry;i.dispose(),this._maxVertexCount=e,this._maxIndexCount=t,this._geometryInitialized&&(this._geometryInitialized=!1,this.geometry=new wp,this._initializeGeometry(i));let a=this.geometry;for(let e in i.index&&mh(i.index.array,a.index.array),i.attributes)mh(i.attributes[e].array,a.attributes[e].array)}raycast(e,t){let n=this._instanceInfo,r=this._geometryInfo,i=this.matrixWorld,a=this.geometry;fh.material=this.material,fh.geometry.index=a.index,fh.geometry.attributes=a.attributes,fh.geometry.boundingBox===null&&(fh.geometry.boundingBox=new Ad),fh.geometry.boundingSphere===null&&(fh.geometry.boundingSphere=new qd);for(let a=0,o=n.length;a({...e,boundingBox:e.boundingBox===null?null:e.boundingBox.clone(),boundingSphere:e.boundingSphere===null?null:e.boundingSphere.clone()})),this._instanceInfo=e._instanceInfo.map(e=>({...e})),this._availableInstanceIds=e._availableInstanceIds.slice(),this._availableGeometryIds=e._availableGeometryIds.slice(),this._nextIndexStart=e._nextIndexStart,this._nextVertexStart=e._nextVertexStart,this._geometryCount=e._geometryCount,this._maxInstanceCount=e._maxInstanceCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._indirectTexture=e._indirectTexture.clone(),this._indirectTexture.image.data=this._indirectTexture.image.data.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.data.slice(),this._colorsTexture!==null&&(this._colorsTexture=e._colorsTexture.clone(),this._colorsTexture.image.data=this._colorsTexture.image.data.slice()),this}dispose(){this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this._indirectTexture.dispose(),this._indirectTexture=null,this._colorsTexture!==null&&(this._colorsTexture.dispose(),this._colorsTexture=null)}onBeforeRender(e,t,n,r,i){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;let a=r.getIndex(),o=a===null?1:a.array.BYTES_PER_ELEMENT,s=this._instanceInfo,c=this._multiDrawStarts,l=this._multiDrawCounts,u=this._geometryInfo,d=this.perObjectFrustumCulled,f=this._indirectTexture,p=f.image.data,m=n.isArrayCamera?bne:oh;d&&!n.isArrayCamera&&(ah.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse).multiply(this.matrixWorld),oh.setFromProjectionMatrix(ah,n.coordinateSystem,n.reversedDepth));let h=0;if(this.sortObjects){ah.copy(this.matrixWorld).invert(),lh.setFromMatrixPosition(n.matrixWorld).applyMatrix4(ah),uh.set(0,0,-1).transformDirection(n.matrixWorld).transformDirection(ah);for(let e=0,t=s.length;e0){let e=t[n[0]];if(e!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;tr)return;Sh.applyMatrix4(e.matrixWorld);let l=t.ray.origin.distanceTo(Sh);if(!(lt.far))return{distance:l,point:Ch.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}const Eh=new W,Dh=new W;var Oh=class extends wh{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let e=t[n[0]];if(e!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;ti.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var Lh=class extends wd{constructor(e,t,n,r,i=ml,a=ml,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isVideoTexture=!0,this.generateMipmaps=!1,this._requestVideoFrameCallbackId=0;let l=this;function u(){l.needsUpdate=!0,l._requestVideoFrameCallbackId=e.requestVideoFrameCallback(u)}`requestVideoFrameCallback`in e&&(this._requestVideoFrameCallbackId=e.requestVideoFrameCallback(u))}clone(){return new this.constructor(this.image).copy(this)}update(){let e=this.image,t=`requestVideoFrameCallback`in e;t===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}dispose(){this._requestVideoFrameCallbackId!==0&&this.source.data.cancelVideoFrameCallback(this._requestVideoFrameCallbackId),super.dispose()}},Cne=class extends Lh{constructor(e,t,n,r,i,a,o,s){super({},e,t,n,r,i,a,o,s),this.isVideoFrameTexture=!0}update(){}clone(){return new this.constructor().copy(this)}setFrame(e){this.image=e,this.needsUpdate=!0}},wne=class extends wd{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=dl,this.minFilter=dl,this.generateMipmaps=!1,this.needsUpdate=!0}},Rh=class extends wd{constructor(e,t,n,r,i,a,o,s,c,l,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}},Tne=class extends Rh{constructor(e,t,n,r,i,a){super(e,t,n,i,a),this.isCompressedArrayTexture=!0,this.image.depth=r,this.wrapR=ll,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}},Ene=class extends Rh{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,301),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}},zh=class extends wd{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Bh=class extends wd{constructor(e,t,n=Sl,r,i,a,o=dl,s=dl,c,l=Ml,u=1){if(l!==Ml&&l!==Nl)throw Error(`DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);let d={width:e,height:t,depth:u};super(d,r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new xd(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}},Vh=class e extends wp{constructor(e=1,t=1,n=4,r=8,i=1){super(),this.type=`CapsuleGeometry`,this.parameters={radius:e,height:t,capSegments:n,radialSegments:r,heightSegments:i},t=Math.max(0,t),n=Math.max(1,Math.floor(n)),r=Math.max(3,Math.floor(r)),i=Math.max(1,Math.floor(i));let a=[],o=[],s=[],c=[],l=t/2,u=Math.PI/2*e,d=t,f=2*u+d,p=n*2+i,m=r+1,h=new W,g=new W;for(let _=0;_<=p;_++){let v=0,y=0,b=0,x=0;if(_<=n){let t=_/n,r=t*Math.PI/2;y=-l-e*Math.cos(r),b=e*Math.sin(r),x=-e*Math.cos(r),v=t*u}else if(_<=n+i){let r=(_-n)/i;y=-l+r*t,b=e,x=0,v=u+r*d}else{let t=(_-n-i)/n,r=t*Math.PI/2;y=l+e*Math.sin(r),b=e*Math.cos(r),x=e*Math.sin(r),v=u+d+t*u}let S=Math.max(0,Math.min(1,v/f)),C=0;_===0?C=.5/r:_===p&&(C=-.5/r);for(let e=0;e<=r;e++){let t=e/r,n=t*Math.PI*2,i=Math.sin(n),a=Math.cos(n);g.x=-b*a,g.y=y,g.z=b*i,o.push(g.x,g.y,g.z),h.set(-b*a,x,b*i),h.normalize(),s.push(h.x,h.y,h.z),c.push(t+C,S)}if(_>0){let e=(_-1)*m;for(let t=0;t0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute(`position`,new gp(u,3)),this.setAttribute(`normal`,new gp(d,3)),this.setAttribute(`uv`,new gp(f,2));function _(){let a=new W,_=new W,v=0,y=(t-e)/n;for(let c=0;c<=i;c++){let l=[],g=c/i,v=g*(t-e)+e;for(let e=0;e<=r;e++){let t=e/r,i=t*s+o,c=Math.sin(i),m=Math.cos(i);_.x=v*c,_.y=-g*n+h,_.z=v*m,u.push(_.x,_.y,_.z),a.set(c,y,m).normalize(),d.push(a.x,a.y,a.z),f.push(t,1-g),l.push(p++)}m.push(l)}for(let n=0;n0||r!==0)&&(l.push(a,o,c),v+=3),(t>0||r!==i-1)&&(l.push(o,s,c),v+=3)}c.addGroup(g,v,0),g+=v}function v(n){let i=p,a=new nd,m=new W,_=0,v=n===!0?e:t,y=n===!0?1:-1;for(let e=1;e<=r;e++)u.push(0,h*y,0),d.push(0,y,0),f.push(.5,.5),p++;let b=p;for(let e=0;e<=r;e++){let t=e/r,n=t*s+o,i=Math.cos(n),c=Math.sin(n);m.x=v*c,m.y=h*y,m.z=v*i,u.push(m.x,m.y,m.z),d.push(0,y,0),a.x=i*.5+.5,a.y=c*.5*y+.5,f.push(a.x,a.y),p++}for(let e=0;e.9&&o<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}function d(e){i.push(e.x,e.y,e.z)}function f(t,n){let r=t*3;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function p(){let e=new W,t=new W,n=new W,r=new W,o=new nd,s=new nd,c=new nd;for(let l=0,u=0;l0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1],d=u-l,f=(a-l)/d,p=(r+f)/(i-1);return p}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new nd:new W);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new W,r=[],i=[],a=[],o=new W,s=new nf;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new W)}i[0]=new W,a[0]=new W;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(Xu(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(Xu(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},$h=class extends Qh{constructor(e=0,t=0,n=1,r=1,i=0,a=Math.PI*2,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t=new nd){let n=t,r=Math.PI*2,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<2**-52;for(;i<0;)i+=r;for(;i>r;)i-=r;i<2**-52&&(i=a?0:r),this.aClockwise===!0&&!a&&(i===r?i=-r:i-=r);let o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){let e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}},eg=class extends $h{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type=`ArcCurve`}};function tg(){let e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;c*=o,l*=o,i(t,n,c,l)},calc:function(i){let a=i*i,o=a*i;return e+t*i+n*a+r*o}}}const ng=new W,rg=new tg,ig=new tg,ag=new tg;var og=class extends Qh{constructor(e=[],t=!1,n=`centripetal`,r=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new W){let n=t,r=this.points,i=r.length,a=(i-(this.closed?0:1))*e,o=Math.floor(a),s=a-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/i)+1)*i:s===0&&o===i-1&&(o=i-2,s=1);let c,l;this.closed||o>0?c=r[(o-1)%i]:(ng.subVectors(r[0],r[1]).add(r[0]),c=ng);let u=r[o%i],d=r[(o+1)%i];if(this.closed||o+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(sg(o,s.x,c.x,l.x,u.x),sg(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){let e=r[i]-n,a=this.curves[i],o=a.getLength(),s=o===0?0:1-e/o;return a.getPointAt(s,t)}i++}return null}getLength(){let e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;let e=[],t=0;for(let n=0,r=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){let e=c.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(c);let l=c.getPoint(1);return this.currentPoint.copy(l),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){let e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}},Dg=class extends Eg{constructor(e){super(e),this.uuid=Yu(),this.type=`Shape`,this.holes=[]}getPointsHoles(e){let t=[];for(let n=0,r=this.holes.length;n80*n){s=1/0,c=1/0;let t=-1/0,r=-1/0;for(let a=n;at&&(t=n),i>r&&(r=i)}l=Math.max(t-s,r-c),l=l===0?0:32767/l}return jg(a,o,n,s,c,l,0),o}function kg(e,t,n,r,i){let a;if(i===o_(e,t,n,r)>0)for(let i=t;i=t;i-=r)a=r_(i/r|0,e[i],e[i+1],a);return a&&Yg(a,a.next)&&(i_(a),a=a.next),a}function Ag(e,t){if(!e)return e;t||=e;let n=e,r;do if(r=!1,!n.steiner&&(Yg(n,n.next)||Jg(n.prev,n,n.next)===0)){if(i_(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function jg(e,t,n,r,i,a,o){if(!e)return;!o&&a&&Vg(e,r,i,a);let s=e;for(;e.prev!==e.next;){let c=e.prev,l=e.next;if(a?Ng(e,r,i,a):Mg(e)){t.push(c.i,e.i,l.i),i_(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=Pg(Ag(e),t),jg(e,t,n,r,i,a,2)):o===2&&Fg(e,t,n,r,i,a):jg(Ag(e),t,n,r,i,a,1);break}}}function Mg(e){let t=e.prev,n=e,r=e.next;if(Jg(t,n,r)>=0)return!1;let i=t.x,a=n.x,o=r.x,s=t.y,c=n.y,l=r.y,u=Math.min(i,a,o),d=Math.min(s,c,l),f=Math.max(i,a,o),p=Math.max(s,c,l),m=r.next;for(;m!==t;){if(m.x>=u&&m.x<=f&&m.y>=d&&m.y<=p&&Kg(i,s,a,c,o,l,m.x,m.y)&&Jg(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function Ng(e,t,n,r){let i=e.prev,a=e,o=e.next;if(Jg(i,a,o)>=0)return!1;let s=i.x,c=a.x,l=o.x,u=i.y,d=a.y,f=o.y,p=Math.min(s,c,l),m=Math.min(u,d,f),h=Math.max(s,c,l),g=Math.max(u,d,f),_=Ug(p,m,t,n,r),v=Ug(h,g,t,n,r),y=e.prevZ,b=e.nextZ;for(;y&&y.z>=_&&b&&b.z<=v;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&Kg(s,u,c,d,l,f,y.x,y.y)&&Jg(y.prev,y,y.next)>=0||(y=y.prevZ,b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&Kg(s,u,c,d,l,f,b.x,b.y)&&Jg(b.prev,b,b.next)>=0))return!1;b=b.nextZ}for(;y&&y.z>=_;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&Kg(s,u,c,d,l,f,y.x,y.y)&&Jg(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;b&&b.z<=v;){if(b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&Kg(s,u,c,d,l,f,b.x,b.y)&&Jg(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Pg(e,t){let n=e;do{let r=n.prev,i=n.next.next;!Yg(r,i)&&Xg(r,n,n.next,i)&&e_(r,i)&&e_(i,r)&&(t.push(r.i,n.i,i.i),i_(n),i_(n.next),n=e=i),n=n.next}while(n!==e);return Ag(n)}function Fg(e,t,n,r,i,a){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&qg(o,e)){let s=n_(o,e);o=Ag(o,o.next),s=Ag(s,s.next),jg(o,t,n,r,i,a,0),jg(s,t,n,r,i,a,0);return}e=e.next}o=o.next}while(o!==e)}function Ig(e,t,n,r){let i=[];for(let n=0,a=t.length;n=n.next.y&&n.next.y!==n.y){let e=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=r&&e>a&&(a=e,o=n.x=n.x&&n.x>=c&&r!==n.x&&Gg(io.x||n.x===o.x&&Bg(o,n)))&&(o=n,u=t)}n=n.next}while(n!==s);return o}function Bg(e,t){return Jg(e.prev,e,t.prev)<0&&Jg(t.next,e,e.next)<0}function Vg(e,t,n,r){let i=e;do i.z===0&&(i.z=Ug(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Hg(i)}function Hg(e){let t,n=1;do{let r=e,i;e=null;let a=null;for(t=0;r;){t++;let o=r,s=0;for(let e=0;e0||c>0&&o;)s!==0&&(c===0||!o||r.z<=o.z)?(i=r,r=r.nextZ,s--):(i=o,o=o.nextZ,c--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=o}a.nextZ=null,n*=2}while(t>1);return e}function Ug(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Wg(e){let t=e,n=e;do(t.x=(e-o)*(a-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(a-s)>=(i-o)*(r-s)}function Kg(e,t,n,r,i,a,o,s){return!(e===o&&t===s)&&Gg(e,t,n,r,i,a,o,s)}function qg(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!$g(e,t)&&(e_(e,t)&&e_(t,e)&&t_(e,t)&&(Jg(e.prev,e,t.prev)||Jg(e,t.prev,t))||Yg(e,t)&&Jg(e.prev,e,e.next)>0&&Jg(t.prev,t,t.next)>0)}function Jg(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Yg(e,t){return e.x===t.x&&e.y===t.y}function Xg(e,t,n,r){let i=Qg(Jg(e,t,n)),a=Qg(Jg(e,t,r)),o=Qg(Jg(n,r,e)),s=Qg(Jg(n,r,t));return!!(i!==a&&o!==s||i===0&&Zg(e,n,t)||a===0&&Zg(e,r,t)||o===0&&Zg(n,e,r)||s===0&&Zg(n,t,r))}function Zg(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Qg(e){return e>0?1:e<0?-1:0}function $g(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Xg(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function e_(e,t){return Jg(e.prev,e,e.next)<0?Jg(e,t,e.next)>=0&&Jg(e,e.prev,t)>=0:Jg(e,t,e.prev)<0||Jg(e,e.next,t)<0}function t_(e,t){let n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function n_(e,t){let n=a_(e.i,e.x,e.y),r=a_(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function r_(e,t,n,r){let i=a_(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function i_(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function a_(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function o_(e,t,n,r){let i=0;for(let a=t,o=n-r;a2&&e[t-1].equals(e[0])&&e.pop()}function u_(e,t){for(let n=0;n2**-52){let d=Math.sqrt(u),f=Math.sqrt(c*c+l*l),p=t.x-s/d,m=t.y+o/d,h=n.x-l/f,g=n.y+c/f,_=((h-p)*l-(g-m)*c)/(o*l-s*c);r=p+o*_-e.x,i=m+s*_-e.y;let v=r*r+i*i;if(v<=2)return new nd(r,i);a=Math.sqrt(v/2)}else{let e=!1;o>2**-52?c>2**-52&&(e=!0):o<-(2**-52)?c<-(2**-52)&&(e=!0):Math.sign(s)===Math.sign(l)&&(e=!0),e?(r=-s,i=o,a=Math.sqrt(u)):(r=o,i=s,a=Math.sqrt(u/2))}return new nd(r/a,i/a)}let M=[];for(let e=0,t=O.length,n=t-1,r=e+1;e=0;e--){let t=e/p,n=u*Math.cos(t*Math.PI/2),r=d*Math.sin(t*Math.PI/2)+f;for(let e=0,t=O.length;e=0;){let r=n,i=n-1;i<0&&(i=e.length-1);for(let e=0,n=s+p*2;e0)&&f.push(t,i,c),(e!==n-1||s0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}},N_=class extends Zf{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new Jf(16777215),this.specular=new Jf(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Jf(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new nd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ff,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},P_=class extends Zf{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:``},this.type=`MeshToonMaterial`,this.color=new Jf(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Jf(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new nd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},F_=class extends Zf{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type=`MeshNormalMaterial`,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new nd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}},I_=class extends Zf{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type=`MeshLambertMaterial`,this.color=new Jf(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Jf(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new nd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ff,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},L_=class extends Zf{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=ju,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},R_=class extends Zf{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}},z_=class extends Zf{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:``},this.type=`MeshMatcapMaterial`,this.color=new Jf(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new nd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:``},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}},B_=class extends gh{constructor(e){super(),this.isLineDashedMaterial=!0,this.type=`LineDashedMaterial`,this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}};function V_(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function H_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function U_(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function W_(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function G_(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0)if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}function K_(e,t,n,r,i=30){let a=e.clone();a.name=t;let o=[];for(let e=0;e=r)){c.push(t.times[e]);for(let n=0;na.tracks[e].times[0]&&(s=a.tracks[e].times[0]);for(let e=0;e=r.times[d]){let e=d*c+s,t=e+c-s;f=r.values.slice(e,t)}else{let e=r.createInterpolant(),t=s,n=c-s;e.evaluate(a),f=e.resultBuffer.slice(t,n)}if(i===`quaternion`){let e=new rd().fromArray(f).normalize().conjugate();e.toArray(f)}let p=o.times.length;for(let e=0;e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(console.error(`THREE.KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(console.error(`THREE.KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){console.error(`THREE.KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){console.error(`THREE.KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&H_(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){console.error(`THREE.KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===Su,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};$_.prototype.ValueTypeName=``,$_.prototype.TimeBufferType=Float32Array,$_.prototype.ValueBufferType=Float32Array,$_.prototype.DefaultInterpolation=xu;var ev=class extends $_{constructor(e,t,n){super(e,t,n)}};ev.prototype.ValueTypeName=`bool`,ev.prototype.ValueBufferType=Array,ev.prototype.DefaultInterpolation=bu,ev.prototype.InterpolantFactoryMethodLinear=void 0,ev.prototype.InterpolantFactoryMethodSmooth=void 0;var tv=class extends $_{constructor(e,t,n,r){super(e,t,n,r)}};tv.prototype.ValueTypeName=`color`;var nv=class extends $_{constructor(e,t,n,r){super(e,t,n,r)}};nv.prototype.ValueTypeName=`number`;var rv=class extends Y_{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)rd.slerpFlat(i,0,a,c-o,a,c,s);return i}},iv=class extends $_{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new rv(this.times,this.values,this.getValueSize(),e)}};iv.prototype.ValueTypeName=`quaternion`,iv.prototype.InterpolantFactoryMethodSmooth=void 0;var av=class extends $_{constructor(e,t,n){super(e,t,n)}};av.prototype.ValueTypeName=`string`,av.prototype.ValueBufferType=Array,av.prototype.DefaultInterpolation=bu,av.prototype.InterpolantFactoryMethodLinear=void 0,av.prototype.InterpolantFactoryMethodSmooth=void 0;var ov=class extends $_{constructor(e,t,n,r){super(e,t,n,r)}};ov.prototype.ValueTypeName=`vector`;var sv=class{constructor(e=``,t=-1,n=[],r=Eu){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Yu(),this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(lv(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let e=0,r=n.length;e!==r;++e)t.push($_.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}static parseAnimation(e,t){if(console.warn(`THREE.AnimationClip: parseAnimation() is deprecated and will be removed with r185`),!e)return console.error(`THREE.AnimationClip: No animation in JSONLoader data.`),null;let n=function(e,t,n,r,i){if(n.length!==0){let a=[],o=[];G_(n,a,o,r),a.length!==0&&i.push(new e(t,a,o))}},r=[],i=e.name||`default`,a=e.fps||30,o=e.blendMode,s=e.length||-1,c=e.hierarchy||[];for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0),i;if(mv[e]!==void 0){mv[e].push({onLoad:t,onProgress:n,onError:r});return}mv[e]=[],mv[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&console.warn(`THREE.FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=mv[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e{e.error(t)})}}});return new Response(c)}else throw new hv(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>{let t=new DOMParser;return t.parseFromString(e,o)});case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i,n=t.exec(o),r=n&&n[1]?n[1].toLowerCase():void 0,i=new TextDecoder(r);return e.arrayBuffer().then(e=>i.decode(e))}}}).then(t=>{uv.add(`file:${e}`,t);let n=mv[e];delete mv[e];for(let e=0,r=n.length;e{let n=mv[e];if(n===void 0)throw this.manager.itemError(e),t;delete mv[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},_v=class extends pv{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new gv(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)}parse(e){let t=[];for(let n=0;n0:r.vertexColors=e.vertexColors),e.uniforms!==void 0)for(let t in e.uniforms){let i=e.uniforms[t];switch(r.uniforms[t]={},i.type){case`t`:r.uniforms[t].value=n(i.value);break;case`c`:r.uniforms[t].value=new Jf().setHex(i.value);break;case`v2`:r.uniforms[t].value=new nd().fromArray(i.value);break;case`v3`:r.uniforms[t].value=new W().fromArray(i.value);break;case`v4`:r.uniforms[t].value=new Td().fromArray(i.value);break;case`m3`:r.uniforms[t].value=new od().fromArray(i.value);break;case`m4`:r.uniforms[t].value=new nf().fromArray(i.value);break;default:r.uniforms[t].value=i.value}}if(e.defines!==void 0&&(r.defines=e.defines),e.vertexShader!==void 0&&(r.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(r.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(r.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)r.extensions[t]=e.extensions[t];if(e.lights!==void 0&&(r.lights=e.lights),e.clipping!==void 0&&(r.clipping=e.clipping),e.size!==void 0&&(r.size=e.size),e.sizeAttenuation!==void 0&&(r.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(r.map=n(e.map)),e.matcap!==void 0&&(r.matcap=n(e.matcap)),e.alphaMap!==void 0&&(r.alphaMap=n(e.alphaMap)),e.bumpMap!==void 0&&(r.bumpMap=n(e.bumpMap)),e.bumpScale!==void 0&&(r.bumpScale=e.bumpScale),e.normalMap!==void 0&&(r.normalMap=n(e.normalMap)),e.normalMapType!==void 0&&(r.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),r.normalScale=new nd().fromArray(t)}return e.displacementMap!==void 0&&(r.displacementMap=n(e.displacementMap)),e.displacementScale!==void 0&&(r.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(r.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(r.roughnessMap=n(e.roughnessMap)),e.metalnessMap!==void 0&&(r.metalnessMap=n(e.metalnessMap)),e.emissiveMap!==void 0&&(r.emissiveMap=n(e.emissiveMap)),e.emissiveIntensity!==void 0&&(r.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(r.specularMap=n(e.specularMap)),e.specularIntensityMap!==void 0&&(r.specularIntensityMap=n(e.specularIntensityMap)),e.specularColorMap!==void 0&&(r.specularColorMap=n(e.specularColorMap)),e.envMap!==void 0&&(r.envMap=n(e.envMap)),e.envMapRotation!==void 0&&r.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(r.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(r.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(r.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(r.lightMap=n(e.lightMap)),e.lightMapIntensity!==void 0&&(r.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(r.aoMap=n(e.aoMap)),e.aoMapIntensity!==void 0&&(r.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(r.gradientMap=n(e.gradientMap)),e.clearcoatMap!==void 0&&(r.clearcoatMap=n(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(r.clearcoatNormalScale=new nd().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(r.iridescenceMap=n(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(r.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(r.transmissionMap=n(e.transmissionMap)),e.thicknessMap!==void 0&&(r.thicknessMap=n(e.thicknessMap)),e.anisotropyMap!==void 0&&(r.anisotropyMap=n(e.anisotropyMap)),e.sheenColorMap!==void 0&&(r.sheenColorMap=n(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}createMaterialFromType(t){return e.createMaterialFromType(t)}static createMaterialFromType(e){let t={ShadowMaterial:k_,SpriteMaterial:um,RawShaderMaterial:A_,ShaderMaterial:qp,PointsMaterial:Ah,MeshPhysicalMaterial:M_,MeshStandardMaterial:j_,MeshPhongMaterial:N_,MeshToonMaterial:P_,MeshNormalMaterial:F_,MeshLambertMaterial:I_,MeshDepthMaterial:L_,MeshDistanceMaterial:R_,MeshBasicMaterial:Qf,MeshMatcapMaterial:z_,LineDashedMaterial:B_,LineBasicMaterial:gh,Material:Zf};return new t[e]}},Uv=class{static extractUrlBase(e){let t=e.lastIndexOf(`/`);return t===-1?`./`:e.slice(0,t+1)}static resolveURL(e,t){return typeof e!=`string`||e===``?``:(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,`$1`)),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}},Wv=class extends wp{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type=`InstancedBufferGeometry`,this.instanceCount=1/0}copy(e){return super.copy(e),this.instanceCount=e.instanceCount,this}toJSON(){let e=super.toJSON();return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}},Gv=class extends pv{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new gv(i.manager);a.setPath(i.path),a.setRequestHeader(i.requestHeader),a.setWithCredentials(i.withCredentials),a.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)}parse(e){let t={},n={};function r(e,n){if(t[n]!==void 0)return t[n];let r=e.interleavedBuffers,a=r[n],o=i(e,a.buffer),s=ld(a.type,o),c=new sm(s,a.stride);return c.uuid=a.uuid,t[n]=c,c}function i(e,t){if(n[t]!==void 0)return n[t];let r=e.arrayBuffers,i=r[t],a=new Uint32Array(i).buffer;return n[t]=a,a}let a=e.isInstancedBufferGeometry?new Wv:new wp,o=e.data.index;if(o!==void 0){let e=ld(o.type,o.array);a.setIndex(new sp(e,1))}let s=e.data.attributes;for(let t in s){let n=s[t],i;if(n.isInterleavedBufferAttribute){let t=r(e.data,n.data);i=new lm(t,n.itemSize,n.offset,n.normalized)}else{let e=ld(n.type,n.array),t=n.isInstancedBufferAttribute?Hm:sp;i=new t(e,n.itemSize,n.normalized)}n.name!==void 0&&(i.name=n.name),n.usage!==void 0&&i.setUsage(n.usage),a.setAttribute(t,i)}let c=e.data.morphAttributes;if(c)for(let t in c){let n=c[t],i=[];for(let t=0,a=n.length;t0){let n=new dv(t);i=new bv(n),i.setCrossOrigin(this.crossOrigin);for(let t=0,n=e.length;t0){r=new bv(this.manager),r.setCrossOrigin(this.crossOrigin);for(let t=0,r=e.length;t{let t=null,n=null;return e.boundingBox!==void 0&&(t=new Ad().fromJSON(e.boundingBox)),e.boundingSphere!==void 0&&(n=new qd().fromJSON(e.boundingSphere)),{...e,boundingBox:t,boundingSphere:n}}),a._instanceInfo=e.instanceInfo,a._availableInstanceIds=e._availableInstanceIds,a._availableGeometryIds=e._availableGeometryIds,a._nextIndexStart=e.nextIndexStart,a._nextVertexStart=e.nextVertexStart,a._geometryCount=e.geometryCount,a._maxInstanceCount=e.maxInstanceCount,a._maxVertexCount=e.maxVertexCount,a._maxIndexCount=e.maxIndexCount,a._geometryInitialized=e.geometryInitialized,a._matricesTexture=c(e.matricesTexture.uuid),a._indirectTexture=c(e.indirectTexture.uuid),e.colorsTexture!==void 0&&(a._colorsTexture=c(e.colorsTexture.uuid)),e.boundingSphere!==void 0&&(a.boundingSphere=new qd().fromJSON(e.boundingSphere)),e.boundingBox!==void 0&&(a.boundingBox=new Ad().fromJSON(e.boundingBox));break;case`LOD`:a=new Om;break;case`Line`:a=new wh(o(e.geometry),s(e.material));break;case`LineLoop`:a=new kh(o(e.geometry),s(e.material));break;case`LineSegments`:a=new Oh(o(e.geometry),s(e.material));break;case`PointCloud`:case`Points`:a=new Fh(o(e.geometry),s(e.material));break;case`Sprite`:a=new wm(s(e.material));break;case`Group`:a=new nm;break;case`Bone`:a=new Rm;break;default:a=new kf}if(a.uuid=e.uuid,e.name!==void 0&&(a.name=e.name),e.matrix===void 0?(e.position!==void 0&&a.position.fromArray(e.position),e.rotation!==void 0&&a.rotation.fromArray(e.rotation),e.quaternion!==void 0&&a.quaternion.fromArray(e.quaternion),e.scale!==void 0&&a.scale.fromArray(e.scale)):(a.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(a.matrixAutoUpdate=e.matrixAutoUpdate),a.matrixAutoUpdate&&a.matrix.decompose(a.position,a.quaternion,a.scale)),e.up!==void 0&&a.up.fromArray(e.up),e.castShadow!==void 0&&(a.castShadow=e.castShadow),e.receiveShadow!==void 0&&(a.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.intensity!==void 0&&(a.shadow.intensity=e.shadow.intensity),e.shadow.bias!==void 0&&(a.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(a.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(a.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&a.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(a.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(a.visible=e.visible),e.frustumCulled!==void 0&&(a.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(a.renderOrder=e.renderOrder),e.userData!==void 0&&(a.userData=e.userData),e.layers!==void 0&&(a.layers.mask=e.layers),e.children!==void 0){let o=e.children;for(let e=0;e`u`&&console.warn(`THREE.ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&console.warn(`THREE.ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`},this._abortController=new AbortController}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=uv.get(`image-bitmap:${e}`);if(a!==void 0){if(i.manager.itemStart(e),a.then){a.then(n=>{if(Jv.has(a)===!0)r&&r(Jv.get(a)),i.manager.itemError(e),i.manager.itemEnd(e);else return t&&t(n),i.manager.itemEnd(e),n});return}return setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0),a}let o={};o.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,o.headers=this.requestHeader,o.signal=typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;let s=fetch(e,o).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:`none`}))}).then(function(n){return uv.add(`image-bitmap:${e}`,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),Jv.set(s,t),uv.remove(`image-bitmap:${e}`),i.manager.itemError(e),i.manager.itemEnd(e)});uv.add(`image-bitmap:${e}`,s),i.manager.itemStart(e)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}};let Xv;var Zv=class{static getContext(){return Xv===void 0&&(Xv=new(window.AudioContext||window.webkitAudioContext)),Xv}static setContext(e){Xv=e}},jne=class extends pv{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new gv(this.manager);a.setResponseType(`arraybuffer`),a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(e){try{let n=e.slice(0),r=Zv.getContext();r.decodeAudioData(n,function(e){t(e)}).catch(o)}catch(e){o(e)}},n,r);function o(t){r?r(t):console.error(t),i.manager.itemError(e)}}};const Qv=new nf,$v=new nf,ey=new nf;var Mne=class{constructor(){this.type=`StereoCamera`,this.aspect=1,this.eyeSep=.064,this.cameraL=new Qp,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Qp,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){let t=this._cache,n=t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep;if(n){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,ey.copy(e.projectionMatrix);let n=t.eyeSep/2,r=n*t.near/t.focus,i=t.near*Math.tan(qu*t.fov*.5)/t.zoom,a,o;$v.elements[12]=-n,Qv.elements[12]=n,a=-i*t.aspect+r,o=i*t.aspect+r,ey.elements[0]=2*t.near/(o-a),ey.elements[8]=(o+a)/(o-a),this.cameraL.projectionMatrix.copy(ey),a=-i*t.aspect-r,o=i*t.aspect-r,ey.elements[0]=2*t.near/(o-a),ey.elements[8]=(o+a)/(o-a),this.cameraR.projectionMatrix.copy(ey)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply($v),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(Qv)}},ty=class extends Qp{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}},ny=class{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=performance.now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){let t=performance.now();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}};const ry=new W,iy=new rd,Nne=new W,ay=new W,oy=new W;var Pne=class extends kf{constructor(){super(),this.type=`AudioListener`,this.context=Zv.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new ny}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter===null?this.gain.disconnect(this.context.destination):(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);let t=this.context.listener;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(ry,iy,Nne),ay.set(0,0,-1).applyQuaternion(iy),oy.set(0,1,0).applyQuaternion(iy),t.positionX){let e=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(ry.x,e),t.positionY.linearRampToValueAtTime(ry.y,e),t.positionZ.linearRampToValueAtTime(ry.z,e),t.forwardX.linearRampToValueAtTime(ay.x,e),t.forwardY.linearRampToValueAtTime(ay.y,e),t.forwardZ.linearRampToValueAtTime(ay.z,e),t.upX.linearRampToValueAtTime(oy.x,e),t.upY.linearRampToValueAtTime(oy.y,e),t.upZ.linearRampToValueAtTime(oy.z,e)}else t.setPosition(ry.x,ry.y,ry.z),t.setOrientation(ay.x,ay.y,ay.z,oy.x,oy.y,oy.z)}},sy=class extends kf{constructor(e){super(),this.type=`Audio`,this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType=`empty`,this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType=`audioNode`,this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType=`mediaNode`,this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType=`mediaStreamNode`,this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType=`buffer`,this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn(`THREE.Audio: Audio is already playing.`);return}if(this.hasPlaybackControl===!1){console.warn(`THREE.Audio: this Audio has no playback control.`);return}this._startedAt=this.context.currentTime+e;let t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn(`THREE.Audio: this Audio has no playback control.`);return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress%=this.duration||this.buffer.duration),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(e=0){if(this.hasPlaybackControl===!1){console.warn(`THREE.Audio: this Audio has no playback control.`);return}return this._progress=0,this.source!==null&&(this.source.stop(this.context.currentTime+e),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let e=t,i=t+t;e!==i;++e)if(n[e]!==n[e+t]){o.setValue(n,r);break}}saveOriginalState(){let e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let e=n,i=r;e!==i;++e)t[e]=t[r+e%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){let e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){let e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let r=0;r!==i;++r)e[t+r]=e[n+r]}_slerp(e,t,n,r){rd.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){let a=this._workIndex*i;rd.multiplyQuaternionsFlat(e,a,e,t,e,n),rd.slerpFlat(e,t,e,t,e,a,r)}_lerp(e,t,n,r,i){let a=1-r;for(let o=0;o!==i;++o){let i=t+o;e[i]=e[i]*a+e[n+o]*r}}_lerpAdditive(e,t,n,r,i){for(let a=0;a!==i;++a){let i=t+a;e[i]=e[i]+e[n+a]*r}}};const fy=`\\[\\]\\.:\\/`,Rne=RegExp(`[`+fy+`]`,`g`),py=`[^`+fy+`]`,zne=`[^`+fy.replace(`\\.`,``)+`]`,Bne=/((?:WC+[\/:])*)/.source.replace(`WC`,py),Vne=/(WCOD+)?/.source.replace(`WCOD`,zne),Hne=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace(`WC`,py),Une=/\.(WC+)(?:\[(.+)\])?/.source.replace(`WC`,py),Wne=RegExp(`^`+Bne+Vne+Hne+Une+`$`),Gne=[`material`,`materials`,`bones`,`map`];var Kne=class{constructor(e,t,n){let r=n||my.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},my=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(Rne,``)}static parseTrackName(e){let t=Wne.exec(e);if(t===null)throw Error(`PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);Gne.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r=i){let a=i++,l=e[a];t[l.uuid]=c,e[c]=l,t[s]=a,e[a]=o;for(let e=0,t=r;e!==t;++e){let t=n[e],r=t[a],i=t[c];t[c]=r,t[a]=i}}}this.nCachedObjects_=i}uncache(){let e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_,a=e.length;for(let o=0,s=arguments.length;o!==s;++o){let s=arguments[o],c=s.uuid,l=t[c];if(l!==void 0)if(delete t[c],l0&&(t[o.uuid]=l),e[l]=o,e.pop();for(let e=0,t=r;e!==t;++e){let t=n[e];t[l]=t[i],t.pop()}}}this.nCachedObjects_=i}subscribe_(e,t){let n=this._bindingsIndicesByPath,r=n[e],i=this._bindings;if(r!==void 0)return i[r];let a=this._paths,o=this._parsedPaths,s=this._objects,c=s.length,l=this.nCachedObjects_,u=Array(c);r=i.length,n[e]=r,a.push(e),o.push(t),i.push(u);for(let n=l,r=s.length;n!==r;++n){let r=s[n];u[n]=new my(r,e,t)}return u}unsubscribe_(e){let t=this._bindingsIndicesByPath,n=t[e];if(n!==void 0){let r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o],c=e[o];t[c]=n,a[n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}},hy=class{constructor(e,t,n=null,r=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;let i=t.tracks,a=i.length,o=Array(a),s={endingStart:Cu,endingEnd:Cu};for(let e=0;e!==a;++e){let t=i[e].createInterpolant(null);o[e]=t,t.settings=s}this._interpolantSettings=s,this._interpolants=o,this._propertyBindings=Array(a),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=vu,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n=!1){if(e.fadeOut(t),this.fadeIn(t),n===!0){let n=this._clip.duration,r=e._clip.duration,i=r/n,a=n/r;e.warp(1,i,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n=!1){return e.crossFadeFrom(this,t,n)}stopFading(){let e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){let r=this._mixer,i=r.time,a=this.timeScale,o=this._timeScaleInterpolant;o===null&&(o=r._lendControlInterpolant(),this._timeScaleInterpolant=o);let s=o.parameterPositions,c=o.sampleValues;return s[0]=i,s[1]=i+n,c[0]=e/a,c[1]=t/a,this}stopWarping(){let e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,r){if(!this.enabled){this._updateWeight(e);return}let i=this._startTime;if(i!==null){let r=(e-i)*n;r<0||n===0?t=0:(this._startTime=null,t=n*r)}t*=this._updateTimeScale(e);let a=this._updateTime(t),o=this._updateWeight(e);if(o>0){let e=this._interpolants,t=this._propertyBindings;switch(this.blendMode){case Du:for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(a),t[n].accumulateAdditive(o);break;case Eu:default:for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(a),t[n].accumulate(r,o)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;let n=this._weightInterpolant;if(n!==null){let r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),r===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;let n=this._timeScaleInterpolant;if(n!==null){let r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){let t=this._clip.duration,n=this.loop,r=this.time+e,i=this._loopCount,a=n===yu;if(e===0)return i===-1?r:a&&(i&1)==1?t-r:r;if(n===_u){i===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));handle_stop:{if(r>=t)r=t;else if(r<0)r=0;else{this.time=r;break handle_stop}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:`finished`,action:this,direction:e<0?-1:1})}}else{if(i===-1&&(e>=0?(i=0,this._setEndings(!0,this.repetitions===0,a)):this._setEndings(this.repetitions===0,!0,a)),r>=t||r<0){let n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);let o=this.repetitions-i;if(o<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:`finished`,action:this,direction:e>0?1:-1});else{if(o===1){let t=e<0;this._setEndings(t,!t,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:`loop`,action:this,loopDelta:n})}}else this.time=r;if(a&&(i&1)==1)return t-r}return r}_setEndings(e,t,n){let r=this._interpolantSettings;n?(r.endingStart=wu,r.endingEnd=wu):(e?r.endingStart=this.zeroSlopeAtStart?wu:Cu:r.endingStart=Tu,t?r.endingEnd=this.zeroSlopeAtEnd?wu:Cu:r.endingEnd=Tu)}_scheduleFading(e,t,n){let r=this._mixer,i=r.time,a=this._weightInterpolant;a===null&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);let o=a.parameterPositions,s=a.sampleValues;return o[0]=i,s[0]=t,o[1]=i+e,s[1]=n,this}};const Jne=new Float32Array(1);var gy=class extends Wu{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){let n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,c=this._bindingsByRootAndName,l=c[s];l===void 0&&(l={},c[s]=l);for(let e=0;e!==i;++e){let i=r[e],c=i.name,u=l[c];if(u!==void 0)++u.referenceCount,a[e]=u;else{if(u=a[e],u!==void 0){u._cacheIndex===null&&(++u.referenceCount,this._addInactiveBinding(u,s,c));continue}let r=t&&t._propertyBindings[e].binding.parsedPath;u=new dy(my.create(n,c,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,s,c),a[e]=u}o[e].resultBuffer=u.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){let t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}let t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){let n=t[e];n.useCount++===0&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){let t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){let n=t[e];--n.useCount===0&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;let e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){let t=e._cacheIndex;return t!==null&&t=0;--n)e[n].stop();return this}update(e){e*=this.timeScale;let t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1;for(let o=0;o!==n;++o){let n=t[o];n._update(r,e,i,a)}let o=this._bindings,s=this._nActiveBindings;for(let e=0;e!==s;++e)o[e].apply(a);return this}setTime(e){this.time=0;for(let e=0;e=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,wy).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}};const Ty=new W,Ey=new W,Dy=new W,Oy=new W,ky=new W,ire=new W,are=new W;var ore=class{constructor(e=new W,t=new W){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){Ty.subVectors(e,this.start),Ey.subVectors(this.end,this.start);let n=Ey.dot(Ey),r=Ey.dot(Ty),i=r/n;return t&&(i=Xu(i,0,1)),i}closestPointToPoint(e,t,n){let r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}distanceSqToLine3(e,t=ire,n=are){let r=1e-8*1e-8,i,a,o=this.start,s=e.start,c=this.end,l=e.end;Dy.subVectors(c,o),Oy.subVectors(l,s),ky.subVectors(o,s);let u=Dy.dot(Dy),d=Oy.dot(Oy),f=Oy.dot(ky);if(u<=r&&d<=r)return t.copy(o),n.copy(s),t.sub(n),t.dot(t);if(u<=r)i=0,a=f/d,a=Xu(a,0,1);else{let e=Dy.dot(ky);if(d<=r)a=0,i=Xu(-e/u,0,1);else{let t=Dy.dot(Oy),n=u*d-t*t;i=n===0?0:Xu((t*f-e*d)/n,0,1),a=(t*i+f)/d,a<0?(a=0,i=Xu(-e/u,0,1)):a>1&&(a=1,i=Xu((t-e)/u,0,1))}}return t.copy(o).add(Dy.multiplyScalar(i)),n.copy(s).add(Oy.multiplyScalar(a)),t.sub(n),t.dot(t)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}};const Ay=new W;var sre=class extends kf{constructor(e,t){super(),this.light=e,this.matrixAutoUpdate=!1,this.color=t,this.type=`SpotLightHelper`;let n=new wp,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let e=0,t=1,n=32;e1)for(let n=0;n.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{Wy.set(e.z,0,-e.x).normalize();let t=Math.acos(e.y);this.quaternion.setFromAxisAngle(Wy,t)}}setLength(e,t=e*.2,n=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}},qy=class extends Oh{constructor(e=1){let t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],r=new wp;r.setAttribute(`position`,new gp(t,3)),r.setAttribute(`color`,new gp(n,3));let i=new gh({vertexColors:!0,toneMapped:!1});super(r,i),this.type=`AxesHelper`}setColors(e,t,n){let r=new Jf,i=this.geometry.attributes.color.array;return r.set(e),r.toArray(i,0),r.toArray(i,3),r.set(t),r.toArray(i,6),r.toArray(i,9),r.set(n),r.toArray(i,12),r.toArray(i,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}},bre=class{constructor(){this.type=`ShapePath`,this.color=new Jf,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new Eg,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this}bezierCurveTo(e,t,n,r,i,a){return this.currentPath.bezierCurveTo(e,t,n,r,i,a),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(e){let t=[];for(let n=0,r=e.length;n2**-52){if(c<0&&(n=t[a],s=-s,o=t[i],c=-c),e.yo.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{let t=c*(e.x-n.x)-s*(e.y-n.y);if(t===0)return!0;if(t<0)continue;r=!r}}else{if(e.y!==n.y)continue;if(o.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=o.x)return!0}}return r}let r=c_.isClockWise,i=this.subPaths;if(i.length===0)return[];let a,o,s,c=[];if(i.length===1)return o=i[0],s=new Dg,s.curves=o.curves,c.push(s),c;let l=!r(i[0].getPoints());l=e?!l:l;let u=[],d=[],f=[],p=0,m;d[p]=void 0,f[p]=[];for(let t=0,n=i.length;t1){let e=!1,t=0;for(let e=0,t=d.length;e0&&e===!1&&(f=u)}let h;for(let e=0,t=d.length;et?(e.repeat.x=1,e.repeat.y=n/t,e.offset.x=0,e.offset.y=(1-e.repeat.y)/2):(e.repeat.x=t/n,e.repeat.y=1,e.offset.x=(1-e.repeat.x)/2,e.offset.y=0),e}function Sre(e,t){let n=e.image&&e.image.width?e.image.width/e.image.height:1;return n>t?(e.repeat.x=t/n,e.repeat.y=1,e.offset.x=(1-e.repeat.x)/2,e.offset.y=0):(e.repeat.x=1,e.repeat.y=n/t,e.offset.x=0,e.offset.y=(1-e.repeat.y)/2),e}function Cre(e){return e.repeat.x=1,e.repeat.y=1,e.offset.x=0,e.offset.y=0,e}function Yy(e,t,n,r){let i=wre(r);switch(n){case kl:return e*t;case Pl:return e*t/i.components*i.byteLength;case Fl:return e*t/i.components*i.byteLength;case Il:return e*t*2/i.components*i.byteLength;case Ll:return e*t*2/i.components*i.byteLength;case Al:return e*t*3/i.components*i.byteLength;case jl:return e*t*4/i.components*i.byteLength;case Rl:return e*t*4/i.components*i.byteLength;case zl:case Bl:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Vl:case Hl:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Wl:case Kl:return Math.max(e,16)*Math.max(t,8)/4;case Ul:case Gl:return Math.max(e,8)*Math.max(t,8)/2;case ql:case Jl:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Yl:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Xl:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Zl:return Math.floor((e+4)/5)*Math.floor((t+3)/4)*16;case Ql:return Math.floor((e+4)/5)*Math.floor((t+4)/5)*16;case $l:return Math.floor((e+5)/6)*Math.floor((t+4)/5)*16;case eu:return Math.floor((e+5)/6)*Math.floor((t+5)/6)*16;case tu:return Math.floor((e+7)/8)*Math.floor((t+4)/5)*16;case nu:return Math.floor((e+7)/8)*Math.floor((t+5)/6)*16;case ru:return Math.floor((e+7)/8)*Math.floor((t+7)/8)*16;case iu:return Math.floor((e+9)/10)*Math.floor((t+4)/5)*16;case au:return Math.floor((e+9)/10)*Math.floor((t+5)/6)*16;case ou:return Math.floor((e+9)/10)*Math.floor((t+7)/8)*16;case su:return Math.floor((e+9)/10)*Math.floor((t+9)/10)*16;case cu:return Math.floor((e+11)/12)*Math.floor((t+9)/10)*16;case lu:return Math.floor((e+11)/12)*Math.floor((t+11)/12)*16;case uu:case du:case fu:return Math.ceil(e/4)*Math.ceil(t/4)*16;case pu:case mu:return Math.ceil(e/4)*Math.ceil(t/4)*8;case hu:case gu:return Math.ceil(e/4)*Math.ceil(t/4)*16}throw Error(`Unable to determine texture byte length for ${n} format.`)}function wre(e){switch(e){case _l:case vl:return{byteLength:1,components:1};case bl:case yl:case wl:return{byteLength:2,components:1};case Tl:case El:return{byteLength:2,components:4};case Sl:case xl:case Cl:return{byteLength:4,components:1};case Ol:return{byteLength:4,components:3}}throw Error(`Unknown texture type ${e}.`)}var Tre=class{static contain(e,t){return xre(e,t)}static cover(e,t){return Sre(e,t)}static fill(e){return Cre(e)}static getByteLength(e,t,n,r){return Yy(e,t,n,r)}};typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`register`,{detail:{revision:`179`}})),typeof window<`u`&&(window.__THREE__?console.warn(`WARNING: Multiple instances of Three.js being imported.`):window.__THREE__=`179`);var Xy={};c(Xy,{ACESFilmicToneMapping:()=>4,AddEquation:()=>100,AddOperation:()=>2,AdditiveAnimationBlendMode:()=>Du,AdditiveBlending:()=>2,AgXToneMapping:()=>6,AlphaFormat:()=>kl,AlwaysCompare:()=>519,AlwaysDepth:()=>1,AlwaysStencilFunc:()=>519,AmbientLight:()=>Rv,AnimationAction:()=>hy,AnimationClip:()=>sv,AnimationLoader:()=>_v,AnimationMixer:()=>gy,AnimationObjectGroup:()=>qne,AnimationUtils:()=>J_,ArcCurve:()=>eg,ArrayCamera:()=>ty,ArrowHelper:()=>yre,AttachedBindMode:()=>ol,Audio:()=>sy,AudioAnalyser:()=>Lne,AudioContext:()=>Zv,AudioListener:()=>Pne,AudioLoader:()=>jne,AxesHelper:()=>qy,BackSide:()=>1,BasicDepthPacking:()=>ju,BasicShadowMap:()=>0,BatchedMesh:()=>hh,Bone:()=>Rm,BooleanKeyframeTrack:()=>ev,Box2:()=>rre,Box3:()=>Ad,Box3Helper:()=>_re,BoxGeometry:()=>zp,BoxHelper:()=>gre,BufferAttribute:()=>sp,BufferGeometry:()=>wp,BufferGeometryLoader:()=>Gv,ByteType:()=>vl,Cache:()=>uv,Camera:()=>Jp,CameraHelper:()=>hre,CanvasTexture:()=>zh,CapsuleGeometry:()=>Vh,CatmullRomCurve3:()=>og,CineonToneMapping:()=>3,CircleGeometry:()=>Hh,ClampToEdgeWrapping:()=>ll,Clock:()=>ny,Color:()=>Jf,ColorKeyframeTrack:()=>tv,ColorManagement:()=>gd,CompressedArrayTexture:()=>Tne,CompressedCubeTexture:()=>Ene,CompressedTexture:()=>Rh,CompressedTextureLoader:()=>vv,ConeGeometry:()=>Wh,ConstantAlphaFactor:()=>213,ConstantColorFactor:()=>211,Controls:()=>Jy,CubeCamera:()=>$p,CubeReflectionMapping:()=>301,CubeRefractionMapping:()=>302,CubeTexture:()=>em,CubeTextureLoader:()=>xv,CubeUVReflectionMapping:()=>306,CubicBezierCurve:()=>_g,CubicBezierCurve3:()=>vg,CubicInterpolant:()=>X_,CullFaceBack:()=>1,CullFaceFront:()=>2,CullFaceFrontBack:()=>3,CullFaceNone:()=>0,Curve:()=>Qh,CurvePath:()=>Tg,CustomBlending:()=>5,CustomToneMapping:()=>5,CylinderGeometry:()=>Uh,Cylindrical:()=>tre,Data3DTexture:()=>kd,DataArrayTexture:()=>Od,DataTexture:()=>zm,DataTextureLoader:()=>Sv,DataUtils:()=>rp,DecrementStencilOp:()=>7683,DecrementWrapStencilOp:()=>34056,DefaultLoadingManager:()=>fv,DepthFormat:()=>Ml,DepthStencilFormat:()=>Nl,DepthTexture:()=>Bh,DetachedBindMode:()=>sl,DirectionalLight:()=>Lv,DirectionalLightHelper:()=>mre,DiscreteInterpolant:()=>Q_,DodecahedronGeometry:()=>Kh,DoubleSide:()=>2,DstAlphaFactor:()=>206,DstColorFactor:()=>208,DynamicCopyUsage:()=>35050,DynamicDrawUsage:()=>Bu,DynamicReadUsage:()=>35049,EdgesGeometry:()=>Zh,EllipseCurve:()=>$h,EqualCompare:()=>514,EqualDepth:()=>4,EqualStencilFunc:()=>514,EquirectangularReflectionMapping:()=>303,EquirectangularRefractionMapping:()=>304,Euler:()=>ff,EventDispatcher:()=>Wu,ExtrudeGeometry:()=>d_,FileLoader:()=>gv,Float16BufferAttribute:()=>hp,Float32BufferAttribute:()=>gp,FloatType:()=>Cl,Fog:()=>am,FogExp2:()=>im,FramebufferTexture:()=>wne,FrontSide:()=>0,Frustum:()=>eh,FrustumArray:()=>rh,GLBufferAttribute:()=>vy,GLSL1:()=>`100`,GLSL3:()=>Vu,GreaterCompare:()=>516,GreaterDepth:()=>6,GreaterEqualCompare:()=>518,GreaterEqualDepth:()=>5,GreaterEqualStencilFunc:()=>518,GreaterStencilFunc:()=>516,GridHelper:()=>fre,Group:()=>nm,HalfFloatType:()=>wl,HemisphereLight:()=>Tv,HemisphereLightHelper:()=>dre,IcosahedronGeometry:()=>m_,ImageBitmapLoader:()=>Yv,ImageLoader:()=>bv,ImageUtils:()=>bd,IncrementStencilOp:()=>7682,IncrementWrapStencilOp:()=>34055,InstancedBufferAttribute:()=>Hm,InstancedBufferGeometry:()=>Wv,InstancedInterleavedBuffer:()=>Qne,InstancedMesh:()=>Ym,Int16BufferAttribute:()=>dp,Int32BufferAttribute:()=>pp,Int8BufferAttribute:()=>cp,IntType:()=>xl,InterleavedBuffer:()=>sm,InterleavedBufferAttribute:()=>lm,Interpolant:()=>Y_,InterpolateDiscrete:()=>bu,InterpolateLinear:()=>xu,InterpolateSmooth:()=>Su,InterpolationSamplingMode:()=>Ite,InterpolationSamplingType:()=>Fte,InvertStencilOp:()=>5386,KeepStencilOp:()=>Ru,KeyframeTrack:()=>$_,LOD:()=>Om,LatheGeometry:()=>h_,Layers:()=>pf,LessCompare:()=>513,LessDepth:()=>2,LessEqualCompare:()=>515,LessEqualDepth:()=>3,LessEqualStencilFunc:()=>515,LessStencilFunc:()=>513,Light:()=>wv,LightProbe:()=>Vv,Line:()=>wh,Line3:()=>ore,LineBasicMaterial:()=>gh,LineCurve:()=>yg,LineCurve3:()=>bg,LineDashedMaterial:()=>B_,LineLoop:()=>kh,LineSegments:()=>Oh,LinearFilter:()=>ml,LinearInterpolant:()=>Z_,LinearMipMapLinearFilter:()=>1008,LinearMipMapNearestFilter:()=>1007,LinearMipmapLinearFilter:()=>gl,LinearMipmapNearestFilter:()=>hl,LinearSRGBColorSpace:()=>Fu,LinearToneMapping:()=>1,LinearTransfer:()=>Iu,Loader:()=>pv,LoaderUtils:()=>Uv,LoadingManager:()=>dv,LoopOnce:()=>_u,LoopPingPong:()=>yu,LoopRepeat:()=>vu,MOUSE:()=>il,Material:()=>Zf,MaterialLoader:()=>Hv,MathUtils:()=>td,Matrix2:()=>nre,Matrix3:()=>od,Matrix4:()=>nf,MaxEquation:()=>104,Mesh:()=>Ip,MeshBasicMaterial:()=>Qf,MeshDepthMaterial:()=>L_,MeshDistanceMaterial:()=>R_,MeshLambertMaterial:()=>I_,MeshMatcapMaterial:()=>z_,MeshNormalMaterial:()=>F_,MeshPhongMaterial:()=>N_,MeshPhysicalMaterial:()=>M_,MeshStandardMaterial:()=>j_,MeshToonMaterial:()=>P_,MinEquation:()=>103,MirroredRepeatWrapping:()=>ul,MixOperation:()=>1,MultiplyBlending:()=>4,MultiplyOperation:()=>0,NearestFilter:()=>dl,NearestMipMapLinearFilter:()=>1005,NearestMipMapNearestFilter:()=>1004,NearestMipmapLinearFilter:()=>pl,NearestMipmapNearestFilter:()=>fl,NeutralToneMapping:()=>7,NeverCompare:()=>512,NeverDepth:()=>0,NeverStencilFunc:()=>512,NoBlending:()=>0,NoColorSpace:()=>``,NoToneMapping:()=>0,NormalAnimationBlendMode:()=>Eu,NormalBlending:()=>1,NotEqualCompare:()=>517,NotEqualDepth:()=>7,NotEqualStencilFunc:()=>517,NumberKeyframeTrack:()=>nv,Object3D:()=>kf,ObjectLoader:()=>kne,ObjectSpaceNormalMap:()=>1,OctahedronGeometry:()=>g_,OneFactor:()=>201,OneMinusConstantAlphaFactor:()=>214,OneMinusConstantColorFactor:()=>212,OneMinusDstAlphaFactor:()=>207,OneMinusDstColorFactor:()=>209,OneMinusSrcAlphaFactor:()=>205,OneMinusSrcColorFactor:()=>203,OrthographicCamera:()=>Iv,PCFShadowMap:()=>1,PCFSoftShadowMap:()=>2,PMREMGenerator:()=>pb,Path:()=>Eg,PerspectiveCamera:()=>Qp,Plane:()=>Zm,PlaneGeometry:()=>__,PlaneHelper:()=>vre,PointLight:()=>Fv,PointLightHelper:()=>lre,Points:()=>Fh,PointsMaterial:()=>Ah,PolarGridHelper:()=>pre,PolyhedronGeometry:()=>Gh,PositionalAudio:()=>Ine,PropertyBinding:()=>my,PropertyMixer:()=>dy,QuadraticBezierCurve:()=>xg,QuadraticBezierCurve3:()=>Sg,Quaternion:()=>rd,QuaternionKeyframeTrack:()=>iv,QuaternionLinearInterpolant:()=>rv,RED_GREEN_RGTC2_Format:()=>hu,RED_RGTC1_Format:()=>pu,REVISION:()=>`179`,RGBADepthPacking:()=>Mu,RGBAFormat:()=>jl,RGBAIntegerFormat:()=>Rl,RGBA_ASTC_10x10_Format:()=>su,RGBA_ASTC_10x5_Format:()=>iu,RGBA_ASTC_10x6_Format:()=>au,RGBA_ASTC_10x8_Format:()=>ou,RGBA_ASTC_12x10_Format:()=>cu,RGBA_ASTC_12x12_Format:()=>lu,RGBA_ASTC_4x4_Format:()=>Xl,RGBA_ASTC_5x4_Format:()=>Zl,RGBA_ASTC_5x5_Format:()=>Ql,RGBA_ASTC_6x5_Format:()=>$l,RGBA_ASTC_6x6_Format:()=>eu,RGBA_ASTC_8x5_Format:()=>tu,RGBA_ASTC_8x6_Format:()=>nu,RGBA_ASTC_8x8_Format:()=>ru,RGBA_BPTC_Format:()=>uu,RGBA_ETC2_EAC_Format:()=>Yl,RGBA_PVRTC_2BPPV1_Format:()=>Kl,RGBA_PVRTC_4BPPV1_Format:()=>Gl,RGBA_S3TC_DXT1_Format:()=>Bl,RGBA_S3TC_DXT3_Format:()=>Vl,RGBA_S3TC_DXT5_Format:()=>Hl,RGBDepthPacking:()=>3202,RGBFormat:()=>Al,RGBIntegerFormat:()=>1032,RGB_BPTC_SIGNED_Format:()=>du,RGB_BPTC_UNSIGNED_Format:()=>fu,RGB_ETC1_Format:()=>ql,RGB_ETC2_Format:()=>Jl,RGB_PVRTC_2BPPV1_Format:()=>Wl,RGB_PVRTC_4BPPV1_Format:()=>Ul,RGB_S3TC_DXT1_Format:()=>zl,RGDepthPacking:()=>3203,RGFormat:()=>Il,RGIntegerFormat:()=>Ll,RawShaderMaterial:()=>A_,Ray:()=>tf,Raycaster:()=>by,RectAreaLight:()=>zv,RedFormat:()=>Pl,RedIntegerFormat:()=>Fl,ReinhardToneMapping:()=>2,RenderTarget:()=>Ed,RenderTarget3D:()=>Yne,RepeatWrapping:()=>cl,ReplaceStencilOp:()=>7681,ReverseSubtractEquation:()=>102,RingGeometry:()=>v_,SIGNED_RED_GREEN_RGTC2_Format:()=>gu,SIGNED_RED_RGTC1_Format:()=>mu,SRGBColorSpace:()=>Pu,SRGBTransfer:()=>Lu,Scene:()=>om,ShaderChunk:()=>Qy,ShaderLib:()=>eb,ShaderMaterial:()=>qp,ShadowMaterial:()=>k_,Shape:()=>Dg,ShapeGeometry:()=>y_,ShapePath:()=>bre,ShapeUtils:()=>c_,ShortType:()=>yl,Skeleton:()=>Vm,SkeletonHelper:()=>cre,SkinnedMesh:()=>Lm,Source:()=>xd,Sphere:()=>qd,SphereGeometry:()=>x_,Spherical:()=>Cy,SphericalHarmonics3:()=>Bv,SplineCurve:()=>Cg,SpotLight:()=>jv,SpotLightHelper:()=>sre,Sprite:()=>wm,SpriteMaterial:()=>um,SrcAlphaFactor:()=>204,SrcAlphaSaturateFactor:()=>210,SrcColorFactor:()=>202,StaticCopyUsage:()=>35046,StaticDrawUsage:()=>zu,StaticReadUsage:()=>35045,StereoCamera:()=>Mne,StreamCopyUsage:()=>35042,StreamDrawUsage:()=>35040,StreamReadUsage:()=>35041,StringKeyframeTrack:()=>av,SubtractEquation:()=>101,SubtractiveBlending:()=>3,TOUCH:()=>al,TangentSpaceNormalMap:()=>0,TetrahedronGeometry:()=>S_,Texture:()=>wd,TextureLoader:()=>Cv,TextureUtils:()=>Tre,Timer:()=>$ne,TimestampQuery:()=>Pte,TorusGeometry:()=>C_,TorusKnotGeometry:()=>w_,Triangle:()=>Uf,TriangleFanDrawMode:()=>2,TriangleStripDrawMode:()=>1,TrianglesDrawMode:()=>0,TubeGeometry:()=>T_,UVMapping:()=>300,Uint16BufferAttribute:()=>fp,Uint32BufferAttribute:()=>mp,Uint8BufferAttribute:()=>lp,Uint8ClampedBufferAttribute:()=>up,Uniform:()=>_y,UniformsGroup:()=>Zne,UniformsLib:()=>$y,UniformsUtils:()=>Wp,UnsignedByteType:()=>_l,UnsignedInt248Type:()=>Dl,UnsignedInt5999Type:()=>Ol,UnsignedIntType:()=>Sl,UnsignedShort4444Type:()=>Tl,UnsignedShort5551Type:()=>El,UnsignedShortType:()=>bl,VSMShadowMap:()=>3,Vector2:()=>nd,Vector3:()=>W,Vector4:()=>Td,VectorKeyframeTrack:()=>ov,VideoFrameTexture:()=>Cne,VideoTexture:()=>Lh,WebGL3DRenderTarget:()=>ane,WebGLArrayRenderTarget:()=>ine,WebGLCoordinateSystem:()=>Hu,WebGLCubeRenderTarget:()=>tm,WebGLRenderTarget:()=>Dd,WebGLRenderer:()=>Qb,WebGLUtils:()=>Yb,WebGPUCoordinateSystem:()=>Uu,WebXRController:()=>rm,WireframeGeometry:()=>E_,WrapAroundEnding:()=>Tu,ZeroCurvatureEnding:()=>Cu,ZeroFactor:()=>200,ZeroSlopeEnding:()=>wu,ZeroStencilOp:()=>0,createCanvasElement:()=>dd});function Zy(){let e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){t!==!0&&n!==null&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Ere(e){let t=new WeakMap;function n(t,n){let r=t.array,i=t.usage,a=r.byteLength,o=e.createBuffer();e.bindBuffer(n,o),e.bufferData(n,r,i),t.onUploadCallback();let s;if(r instanceof Float32Array)s=e.FLOAT;else if(typeof Float16Array<`u`&&r instanceof Float16Array)s=e.HALF_FLOAT;else if(r instanceof Uint16Array)s=t.isFloat16BufferAttribute?e.HALF_FLOAT:e.UNSIGNED_SHORT;else if(r instanceof Int16Array)s=e.SHORT;else if(r instanceof Uint32Array)s=e.UNSIGNED_INT;else if(r instanceof Int32Array)s=e.INT;else if(r instanceof Int8Array)s=e.BYTE;else if(r instanceof Uint8Array)s=e.UNSIGNED_BYTE;else if(r instanceof Uint8ClampedArray)s=e.UNSIGNED_BYTE;else throw Error(`THREE.WebGLAttributes: Unsupported buffer data format: `+r);return{buffer:o,type:s,bytesPerElement:r.BYTES_PER_ELEMENT,version:t.version,size:a}}function r(t,n,r){let i=n.array,a=n.updateRanges;if(e.bindBuffer(r,t),a.length===0)e.bufferSubData(r,0,i);else{a.sort((e,t)=>e.start-t.start);let t=0;for(let e=1;es+l?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=s-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(cm)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new sm;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},um=class e{constructor(e,t=25e-5){this.isFogExp2=!0,this.name=``,this.color=new $f(e),this.density=t}clone(){return new e(this.color,this.density)}toJSON(){return{type:`FogExp2`,name:this.name,color:this.color.getHex(),density:this.density}}},dm=class e{constructor(e,t=1,n=1e3){this.isFog=!0,this.name=``,this.color=new $f(e),this.near=t,this.far=n}clone(){return new e(this.color,this.near,this.far)}toJSON(){return{type:`Fog`,name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}},fm=class extends Pf{constructor(){super(),this.isScene=!0,this.type=`Scene`,this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new vf,this.environmentIntensity=1,this.environmentRotation=new vf,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){let t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}},pm=class{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e===void 0?0:e.length/t,this.usage=Gu,this.updateRanges=[],this.version=0,this.uuid=td()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;re.far||t.push({distance:s,point:vm.clone(),uv:Jf.getInterpolation(vm,wm,Tm,Em,Dm,Om,km,new cd),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}};function jm(e,t,n,r,i,a){xm.subVectors(e,n).addScalar(.5).multiply(r),i===void 0?Sm.copy(xm):(Sm.x=a*xm.x-i*xm.y,Sm.y=i*xm.x+a*xm.y),e.copy(t),e.x+=Sm.x,e.y+=Sm.y,e.applyMatrix4(Cm)}const Mm=new W,Nm=new W;var Pm=class extends Pf{constructor(){super(),this.isLOD=!0,this._currentLevel=0,this.type=`LOD`,Object.defineProperties(this,{levels:{enumerable:!0,value:[]}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);let t=e.levels;for(let e=0,n=t.length;e0){let n,r;for(n=1,r=t.length;n0){Mm.setFromMatrixPosition(this.matrixWorld);let n=e.ray.origin.distanceTo(Mm);this.getObjectForDistance(n).raycast(e,t)}}update(e){let t=this.levels;if(t.length>1){Mm.setFromMatrixPosition(e.matrixWorld),Nm.setFromMatrixPosition(this.matrixWorld);let n=Mm.distanceTo(Nm)/e.zoom;t[0].object.visible=!0;let r,i;for(r=1,i=t.length;r=e)t[r-1].object.visible=!1,t[r].object.visible=!0;else break}for(this._currentLevel=r-1;r1?null:t.copy(e.start).addScaledVector(n,i)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||cne.getNormalMatrix(e),r=this.coplanarPoint(nh).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}};const ih=new $d,lne=new cd(.5,.5),ah=new W;var oh=class{constructor(e=new rh,t=new rh,n=new rh,r=new rh,i=new rh,a=new rh){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){let o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Ju,n=!1){let r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(c-a,f-l,g-p,b-_).normalize(),r[1].setComponents(c+a,f+l,g+p,b+_).normalize(),r[2].setComponents(c+o,f+u,g+m,b+v).normalize(),r[3].setComponents(c-o,f-u,g-m,b-v).normalize(),n)r[4].setComponents(s,d,h,y).normalize(),r[5].setComponents(c-s,f-d,g-h,b-y).normalize();else if(r[4].setComponents(c-s,f-d,g-h,b-y).normalize(),t===Ju)r[5].setComponents(c+s,f+d,g+h,b+y).normalize();else if(t===Yu)r[5].setComponents(s,d,h,y).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),ih.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),ih.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(ih)}intersectsSprite(e){ih.center.set(0,0,0);let t=lne.distanceTo(e.center);return ih.radius=.7071067811865476+t,ih.applyMatrix4(e.matrixWorld),this.intersectsSphere(ih)}intersectsSphere(e){let t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++){let i=t[e].distanceToPoint(n);if(i0?e.max.x:e.min.x,ah.y=r.normal.y>0?e.max.y:e.min.y,ah.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(ah)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}};const sh=new uf,ch=new oh;var lh=class e{constructor(){this.coordinateSystem=Ju}intersectsObject(e,t){if(!t.isArrayCamera||t.cameras.length===0)return!1;for(let n=0;n=i.length&&i.push({start:-1,count:-1,z:-1,index:-1});let o=i[this.index];a.push(o),this.index++,o.start=e,o.count=t,o.z=n,o.index=r}reset(){this.list.length=0,this.index=0}};const dh=new uf,pne=new $f(1,1,1),fh=new oh,mne=new lh,ph=new Id,mh=new $d,hh=new W,gh=new W,hne=new W,_h=new fne,vh=new Vp,yh=[];function gne(e,t,n=0){let r=t.itemSize;if(e.isInterleavedBufferAttribute||e.array.constructor!==t.array.constructor){let i=e.count;for(let a=0;a65535?new Uint32Array(r):new Uint16Array(r);t.setIndex(new fp(e,1))}this._geometryInitialized=!0}}_validateGeometry(e){let t=this.geometry;if(!!e.getIndex()!=!!t.getIndex())throw Error(`THREE.BatchedMesh: All geometries must consistently have "index".`);for(let n in t.attributes){if(!e.hasAttribute(n))throw Error(`THREE.BatchedMesh: Added geometry missing "${n}". All geometries must have consistent attributes.`);let r=e.getAttribute(n),i=t.getAttribute(n);if(r.itemSize!==i.itemSize||r.normalized!==i.normalized)throw Error(`THREE.BatchedMesh: All attributes must have a consistent itemSize and normalized value.`)}}validateInstanceId(e){let t=this._instanceInfo;if(e<0||e>=t.length||t[e].active===!1)throw Error(`THREE.BatchedMesh: Invalid instanceId ${e}. Instance is either out of range or has been deleted.`)}validateGeometryId(e){let t=this._geometryInfo;if(e<0||e>=t.length||t[e].active===!1)throw Error(`THREE.BatchedMesh: Invalid geometryId ${e}. Geometry is either out of range or has been deleted.`)}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Id);let e=this.boundingBox,t=this._instanceInfo;e.makeEmpty();for(let n=0,r=t.length;n=this.maxInstanceCount;if(t&&this._availableInstanceIds.length===0)throw Error(`THREE.BatchedMesh: Maximum item count reached.`);let n={visible:!0,active:!0,geometryIndex:e},r=null;this._availableInstanceIds.length>0?(this._availableInstanceIds.sort(uh),r=this._availableInstanceIds.shift(),this._instanceInfo[r]=n):(r=this._instanceInfo.length,this._instanceInfo.push(n));let i=this._matricesTexture;dh.identity().toArray(i.image.data,r*16),i.needsUpdate=!0;let a=this._colorsTexture;return a&&(pne.toArray(a.image.data,r*4),a.needsUpdate=!0),this._visibilityChanged=!0,r}addGeometry(e,t=-1,n=-1){this._initializeGeometry(e),this._validateGeometry(e);let r={vertexStart:-1,vertexCount:-1,reservedVertexCount:-1,indexStart:-1,indexCount:-1,reservedIndexCount:-1,start:-1,count:-1,boundingBox:null,boundingSphere:null,active:!0},i=this._geometryInfo;r.vertexStart=this._nextVertexStart,r.reservedVertexCount=t===-1?e.getAttribute(`position`).count:t;let a=e.getIndex(),o=a!==null;if(o&&(r.indexStart=this._nextIndexStart,r.reservedIndexCount=n===-1?a.count:n),r.indexStart!==-1&&r.indexStart+r.reservedIndexCount>this._maxIndexCount||r.vertexStart+r.reservedVertexCount>this._maxVertexCount)throw Error(`THREE.BatchedMesh: Reserved space request exceeds the maximum buffer size.`);let s;return this._availableGeometryIds.length>0?(this._availableGeometryIds.sort(uh),s=this._availableGeometryIds.shift(),i[s]=r):(s=this._geometryCount,this._geometryCount++,i.push(r)),this.setGeometryAt(s,e),this._nextIndexStart=r.indexStart+r.reservedIndexCount,this._nextVertexStart=r.vertexStart+r.reservedVertexCount,s}setGeometryAt(e,t){if(e>=this._geometryCount)throw Error(`THREE.BatchedMesh: Maximum geometry count reached.`);this._validateGeometry(t);let n=this.geometry,r=n.getIndex()!==null,i=n.getIndex(),a=t.getIndex(),o=this._geometryInfo[e];if(r&&a.count>o.reservedIndexCount||t.attributes.position.count>o.reservedVertexCount)throw Error(`THREE.BatchedMesh: Reserved space not large enough for provided geometry.`);let s=o.vertexStart,c=o.reservedVertexCount;for(let e in o.vertexCount=t.getAttribute(`position`).count,n.attributes){let r=t.getAttribute(e),i=n.getAttribute(e);gne(r,i,s);let a=r.itemSize;for(let e=r.count,t=c;e=t.length||t[e].active===!1)return this;let n=this._instanceInfo;for(let t=0,r=n.length;tt).sort((e,t)=>n[e].vertexStart-n[t].vertexStart),i=this.geometry;for(let a=0,o=n.length;a=this._geometryCount)return null;let n=this.geometry,r=this._geometryInfo[e];if(r.boundingBox===null){let e=new Id,t=n.index,i=n.attributes.position;for(let n=r.start,a=r.start+r.count;n=this._geometryCount)return null;let n=this.geometry,r=this._geometryInfo[e];if(r.boundingSphere===null){let t=new $d;this.getBoundingBoxAt(e,ph),ph.getCenter(t.center);let i=n.index,a=n.attributes.position,o=0;for(let e=r.start,n=r.start+r.count;ee.active),r=Math.max(...n.map(e=>e.vertexStart+e.reservedVertexCount));if(r>e)throw Error(`BatchedMesh: Geometry vertex values are being used outside the range ${t}. Cannot shrink further.`);if(this.geometry.index){let e=Math.max(...n.map(e=>e.indexStart+e.reservedIndexCount));if(e>t)throw Error(`BatchedMesh: Geometry index values are being used outside the range ${t}. Cannot shrink further.`)}let i=this.geometry;i.dispose(),this._maxVertexCount=e,this._maxIndexCount=t,this._geometryInitialized&&(this._geometryInitialized=!1,this.geometry=new kp,this._initializeGeometry(i));let a=this.geometry;for(let e in i.index&&bh(i.index.array,a.index.array),i.attributes)bh(i.attributes[e].array,a.attributes[e].array)}raycast(e,t){let n=this._instanceInfo,r=this._geometryInfo,i=this.matrixWorld,a=this.geometry;vh.material=this.material,vh.geometry.index=a.index,vh.geometry.attributes=a.attributes,vh.geometry.boundingBox===null&&(vh.geometry.boundingBox=new Id),vh.geometry.boundingSphere===null&&(vh.geometry.boundingSphere=new $d);for(let a=0,o=n.length;a({...e,boundingBox:e.boundingBox===null?null:e.boundingBox.clone(),boundingSphere:e.boundingSphere===null?null:e.boundingSphere.clone()})),this._instanceInfo=e._instanceInfo.map(e=>({...e})),this._availableInstanceIds=e._availableInstanceIds.slice(),this._availableGeometryIds=e._availableGeometryIds.slice(),this._nextIndexStart=e._nextIndexStart,this._nextVertexStart=e._nextVertexStart,this._geometryCount=e._geometryCount,this._maxInstanceCount=e._maxInstanceCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._indirectTexture=e._indirectTexture.clone(),this._indirectTexture.image.data=this._indirectTexture.image.data.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.data.slice(),this._colorsTexture!==null&&(this._colorsTexture=e._colorsTexture.clone(),this._colorsTexture.image.data=this._colorsTexture.image.data.slice()),this}dispose(){this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this._indirectTexture.dispose(),this._indirectTexture=null,this._colorsTexture!==null&&(this._colorsTexture.dispose(),this._colorsTexture=null)}onBeforeRender(e,t,n,r,i){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;let a=r.getIndex(),o=a===null?1:a.array.BYTES_PER_ELEMENT,s=this._instanceInfo,c=this._multiDrawStarts,l=this._multiDrawCounts,u=this._geometryInfo,d=this.perObjectFrustumCulled,f=this._indirectTexture,p=f.image.data,m=n.isArrayCamera?mne:fh;d&&!n.isArrayCamera&&(dh.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse).multiply(this.matrixWorld),fh.setFromProjectionMatrix(dh,n.coordinateSystem,n.reversedDepth));let h=0;if(this.sortObjects){dh.copy(this.matrixWorld).invert(),hh.setFromMatrixPosition(n.matrixWorld).applyMatrix4(dh),gh.set(0,0,-1).transformDirection(n.matrixWorld).transformDirection(dh);for(let e=0,t=s.length;e0){let e=t[n[0]];if(e!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;tr)return;Oh.applyMatrix4(e.matrixWorld);let l=t.ray.origin.distanceTo(Oh);if(!(lt.far))return{distance:l,point:kh.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}const Mh=new W,Nh=new W;var Ph=class extends Ah{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let e=t[n[0]];if(e!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;ti.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var Uh=class extends Ad{constructor(e,t,n,r,i=yl,a=yl,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isVideoTexture=!0,this.generateMipmaps=!1,this._requestVideoFrameCallbackId=0;let l=this;function u(){l.needsUpdate=!0,l._requestVideoFrameCallbackId=e.requestVideoFrameCallback(u)}`requestVideoFrameCallback`in e&&(this._requestVideoFrameCallbackId=e.requestVideoFrameCallback(u))}clone(){return new this.constructor(this.image).copy(this)}update(){let e=this.image,t=`requestVideoFrameCallback`in e;t===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}dispose(){this._requestVideoFrameCallbackId!==0&&this.source.data.cancelVideoFrameCallback(this._requestVideoFrameCallbackId),super.dispose()}},_ne=class extends Uh{constructor(e,t,n,r,i,a,o,s){super({},e,t,n,r,i,a,o,s),this.isVideoFrameTexture=!0}update(){}clone(){return new this.constructor().copy(this)}setFrame(e){this.image=e,this.needsUpdate=!0}},vne=class extends Ad{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=gl,this.minFilter=gl,this.generateMipmaps=!1,this.needsUpdate=!0}},Wh=class extends Ad{constructor(e,t,n,r,i,a,o,s,c,l,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}},yne=class extends Wh{constructor(e,t,n,r,i,a){super(e,t,n,i,a),this.isCompressedArrayTexture=!0,this.image.depth=r,this.wrapR=ml,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}},bne=class extends Wh{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,301),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}},Gh=class extends Ad{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Kh=class extends Ad{constructor(e,t,n=Dl,r,i,a,o=gl,s=gl,c,l=Ll,u=1){if(l!==Ll&&l!==Rl)throw Error(`DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);let d={width:e,height:t,depth:u};super(d,r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new Dd(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}},qh=class e extends kp{constructor(e=1,t=1,n=4,r=8,i=1){super(),this.type=`CapsuleGeometry`,this.parameters={radius:e,height:t,capSegments:n,radialSegments:r,heightSegments:i},t=Math.max(0,t),n=Math.max(1,Math.floor(n)),r=Math.max(3,Math.floor(r)),i=Math.max(1,Math.floor(i));let a=[],o=[],s=[],c=[],l=t/2,u=Math.PI/2*e,d=t,f=2*u+d,p=n*2+i,m=r+1,h=new W,g=new W;for(let _=0;_<=p;_++){let v=0,y=0,b=0,x=0;if(_<=n){let t=_/n,r=t*Math.PI/2;y=-l-e*Math.cos(r),b=e*Math.sin(r),x=-e*Math.cos(r),v=t*u}else if(_<=n+i){let r=(_-n)/i;y=-l+r*t,b=e,x=0,v=u+r*d}else{let t=(_-n-i)/n,r=t*Math.PI/2;y=l+e*Math.sin(r),b=e*Math.cos(r),x=e*Math.sin(r),v=u+d+t*u}let S=Math.max(0,Math.min(1,v/f)),C=0;_===0?C=.5/r:_===p&&(C=-.5/r);for(let e=0;e<=r;e++){let t=e/r,n=t*Math.PI*2,i=Math.sin(n),a=Math.cos(n);g.x=-b*a,g.y=y,g.z=b*i,o.push(g.x,g.y,g.z),h.set(-b*a,x,b*i),h.normalize(),s.push(h.x,h.y,h.z),c.push(t+C,S)}if(_>0){let e=(_-1)*m;for(let t=0;t0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute(`position`,new xp(u,3)),this.setAttribute(`normal`,new xp(d,3)),this.setAttribute(`uv`,new xp(f,2));function _(){let a=new W,_=new W,v=0,y=(t-e)/n;for(let c=0;c<=i;c++){let l=[],g=c/i,v=g*(t-e)+e;for(let e=0;e<=r;e++){let t=e/r,i=t*s+o,c=Math.sin(i),m=Math.cos(i);_.x=v*c,_.y=-g*n+h,_.z=v*m,u.push(_.x,_.y,_.z),a.set(c,y,m).normalize(),d.push(a.x,a.y,a.z),f.push(t,1-g),l.push(p++)}m.push(l)}for(let n=0;n0||r!==0)&&(l.push(a,o,c),v+=3),(t>0||r!==i-1)&&(l.push(o,s,c),v+=3)}c.addGroup(g,v,0),g+=v}function v(n){let i=p,a=new cd,m=new W,_=0,v=n===!0?e:t,y=n===!0?1:-1;for(let e=1;e<=r;e++)u.push(0,h*y,0),d.push(0,y,0),f.push(.5,.5),p++;let b=p;for(let e=0;e<=r;e++){let t=e/r,n=t*s+o,i=Math.cos(n),c=Math.sin(n);m.x=v*c,m.y=h*y,m.z=v*i,u.push(m.x,m.y,m.z),d.push(0,y,0),a.x=i*.5+.5,a.y=c*.5*y+.5,f.push(a.x,a.y),p++}for(let e=0;e.9&&o<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}function d(e){i.push(e.x,e.y,e.z)}function f(t,n){let r=t*3;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function p(){let e=new W,t=new W,n=new W,r=new W,o=new cd,s=new cd,c=new cd;for(let l=0,u=0;l0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1],d=u-l,f=(a-l)/d,p=(r+f)/(i-1);return p}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new cd:new W);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new W,r=[],i=[],a=[],o=new W,s=new uf;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new W)}i[0]=new W,a[0]=new W;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(nd(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(nd(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},ag=class extends ig{constructor(e=0,t=0,n=1,r=1,i=0,a=Math.PI*2,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t=new cd){let n=t,r=Math.PI*2,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<2**-52;for(;i<0;)i+=r;for(;i>r;)i-=r;i<2**-52&&(i=a?0:r),this.aClockwise===!0&&!a&&(i===r?i=-r:i-=r);let o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){let e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}},og=class extends ag{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type=`ArcCurve`}};function sg(){let e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;c*=o,l*=o,i(t,n,c,l)},calc:function(i){let a=i*i,o=a*i;return e+t*i+n*a+r*o}}}const cg=new W,lg=new sg,ug=new sg,dg=new sg;var fg=class extends ig{constructor(e=[],t=!1,n=`centripetal`,r=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new W){let n=t,r=this.points,i=r.length,a=(i-(this.closed?0:1))*e,o=Math.floor(a),s=a-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/i)+1)*i:s===0&&o===i-1&&(o=i-2,s=1);let c,l;this.closed||o>0?c=r[(o-1)%i]:(cg.subVectors(r[0],r[1]).add(r[0]),c=cg);let u=r[o%i],d=r[(o+1)%i];if(this.closed||o+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(pg(o,s.x,c.x,l.x,u.x),pg(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){let e=r[i]-n,a=this.curves[i],o=a.getLength(),s=o===0?0:1-e/o;return a.getPointAt(s,t)}i++}return null}getLength(){let e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;let e=[],t=0;for(let n=0,r=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){let e=c.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(c);let l=c.getPoint(1);return this.currentPoint.copy(l),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){let e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}},Eg=class extends Tg{constructor(e){super(e),this.uuid=td(),this.type=`Shape`,this.holes=[]}getPointsHoles(e){let t=[];for(let n=0,r=this.holes.length;n80*n){s=1/0,c=1/0;let t=-1/0,r=-1/0;for(let a=n;at&&(t=n),i>r&&(r=i)}l=Math.max(t-s,r-c),l=l===0?0:32767/l}return Ag(a,o,n,s,c,l,0),o}function Og(e,t,n,r,i){let a;if(i===a_(e,t,n,r)>0)for(let i=t;i=t;i-=r)a=n_(i/r|0,e[i],e[i+1],a);return a&&Jg(a,a.next)&&(r_(a),a=a.next),a}function kg(e,t){if(!e)return e;t||=e;let n=e,r;do if(r=!1,!n.steiner&&(Jg(n,n.next)||qg(n.prev,n,n.next)===0)){if(r_(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function Ag(e,t,n,r,i,a,o){if(!e)return;!o&&a&&Bg(e,r,i,a);let s=e;for(;e.prev!==e.next;){let c=e.prev,l=e.next;if(a?Mg(e,r,i,a):jg(e)){t.push(c.i,e.i,l.i),r_(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=Ng(kg(e),t),Ag(e,t,n,r,i,a,2)):o===2&&Pg(e,t,n,r,i,a):Ag(kg(e),t,n,r,i,a,1);break}}}function jg(e){let t=e.prev,n=e,r=e.next;if(qg(t,n,r)>=0)return!1;let i=t.x,a=n.x,o=r.x,s=t.y,c=n.y,l=r.y,u=Math.min(i,a,o),d=Math.min(s,c,l),f=Math.max(i,a,o),p=Math.max(s,c,l),m=r.next;for(;m!==t;){if(m.x>=u&&m.x<=f&&m.y>=d&&m.y<=p&&Gg(i,s,a,c,o,l,m.x,m.y)&&qg(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function Mg(e,t,n,r){let i=e.prev,a=e,o=e.next;if(qg(i,a,o)>=0)return!1;let s=i.x,c=a.x,l=o.x,u=i.y,d=a.y,f=o.y,p=Math.min(s,c,l),m=Math.min(u,d,f),h=Math.max(s,c,l),g=Math.max(u,d,f),_=Hg(p,m,t,n,r),v=Hg(h,g,t,n,r),y=e.prevZ,b=e.nextZ;for(;y&&y.z>=_&&b&&b.z<=v;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&Gg(s,u,c,d,l,f,y.x,y.y)&&qg(y.prev,y,y.next)>=0||(y=y.prevZ,b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&Gg(s,u,c,d,l,f,b.x,b.y)&&qg(b.prev,b,b.next)>=0))return!1;b=b.nextZ}for(;y&&y.z>=_;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&Gg(s,u,c,d,l,f,y.x,y.y)&&qg(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;b&&b.z<=v;){if(b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&Gg(s,u,c,d,l,f,b.x,b.y)&&qg(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Ng(e,t){let n=e;do{let r=n.prev,i=n.next.next;!Jg(r,i)&&Yg(r,n,n.next,i)&&$g(r,i)&&$g(i,r)&&(t.push(r.i,n.i,i.i),r_(n),r_(n.next),n=e=i),n=n.next}while(n!==e);return kg(n)}function Pg(e,t,n,r,i,a){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&Kg(o,e)){let s=t_(o,e);o=kg(o,o.next),s=kg(s,s.next),Ag(o,t,n,r,i,a,0),Ag(s,t,n,r,i,a,0);return}e=e.next}o=o.next}while(o!==e)}function Fg(e,t,n,r){let i=[];for(let n=0,a=t.length;n=n.next.y&&n.next.y!==n.y){let e=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=r&&e>a&&(a=e,o=n.x=n.x&&n.x>=c&&r!==n.x&&Wg(io.x||n.x===o.x&&zg(o,n)))&&(o=n,u=t)}n=n.next}while(n!==s);return o}function zg(e,t){return qg(e.prev,e,t.prev)<0&&qg(t.next,e,e.next)<0}function Bg(e,t,n,r){let i=e;do i.z===0&&(i.z=Hg(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Vg(i)}function Vg(e){let t,n=1;do{let r=e,i;e=null;let a=null;for(t=0;r;){t++;let o=r,s=0;for(let e=0;e0||c>0&&o;)s!==0&&(c===0||!o||r.z<=o.z)?(i=r,r=r.nextZ,s--):(i=o,o=o.nextZ,c--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=o}a.nextZ=null,n*=2}while(t>1);return e}function Hg(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Ug(e){let t=e,n=e;do(t.x=(e-o)*(a-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(a-s)>=(i-o)*(r-s)}function Gg(e,t,n,r,i,a,o,s){return!(e===o&&t===s)&&Wg(e,t,n,r,i,a,o,s)}function Kg(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Qg(e,t)&&($g(e,t)&&$g(t,e)&&e_(e,t)&&(qg(e.prev,e,t.prev)||qg(e,t.prev,t))||Jg(e,t)&&qg(e.prev,e,e.next)>0&&qg(t.prev,t,t.next)>0)}function qg(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Jg(e,t){return e.x===t.x&&e.y===t.y}function Yg(e,t,n,r){let i=Zg(qg(e,t,n)),a=Zg(qg(e,t,r)),o=Zg(qg(n,r,e)),s=Zg(qg(n,r,t));return!!(i!==a&&o!==s||i===0&&Xg(e,n,t)||a===0&&Xg(e,r,t)||o===0&&Xg(n,e,r)||s===0&&Xg(n,t,r))}function Xg(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Zg(e){return e>0?1:e<0?-1:0}function Qg(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Yg(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function $g(e,t){return qg(e.prev,e,e.next)<0?qg(e,t,e.next)>=0&&qg(e,e.prev,t)>=0:qg(e,t,e.prev)<0||qg(e,e.next,t)<0}function e_(e,t){let n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function t_(e,t){let n=i_(e.i,e.x,e.y),r=i_(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function n_(e,t,n,r){let i=i_(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function r_(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function i_(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function a_(e,t,n,r){let i=0;for(let a=t,o=n-r;a2&&e[t-1].equals(e[0])&&e.pop()}function l_(e,t){for(let n=0;n2**-52){let d=Math.sqrt(u),f=Math.sqrt(c*c+l*l),p=t.x-s/d,m=t.y+o/d,h=n.x-l/f,g=n.y+c/f,_=((h-p)*l-(g-m)*c)/(o*l-s*c);r=p+o*_-e.x,i=m+s*_-e.y;let v=r*r+i*i;if(v<=2)return new cd(r,i);a=Math.sqrt(v/2)}else{let e=!1;o>2**-52?c>2**-52&&(e=!0):o<-(2**-52)?c<-(2**-52)&&(e=!0):Math.sign(s)===Math.sign(l)&&(e=!0),e?(r=-s,i=o,a=Math.sqrt(u)):(r=o,i=s,a=Math.sqrt(u/2))}return new cd(r/a,i/a)}let M=[];for(let e=0,t=O.length,n=t-1,r=e+1;e=0;e--){let t=e/p,n=u*Math.cos(t*Math.PI/2),r=d*Math.sin(t*Math.PI/2)+f;for(let e=0,t=O.length;e=0;){let r=n,i=n-1;i<0&&(i=e.length-1);for(let e=0,n=s+p*2;e0)&&f.push(t,i,c),(e!==n-1||s0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}},M_=class extends np{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new $f(16777215),this.specular=new $f(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $f(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new cd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new vf,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},N_=class extends np{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:``},this.type=`MeshToonMaterial`,this.color=new $f(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $f(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new cd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},P_=class extends np{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type=`MeshNormalMaterial`,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new cd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}},F_=class extends np{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type=`MeshLambertMaterial`,this.color=new $f(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $f(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new cd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new vf,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},I_=class extends np{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=Iu,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},L_=class extends np{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}},R_=class extends np{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:``},this.type=`MeshMatcapMaterial`,this.color=new $f(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new cd(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:``},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}},z_=class extends Sh{constructor(e){super(),this.isLineDashedMaterial=!0,this.type=`LineDashedMaterial`,this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}};function B_(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function V_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function H_(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function U_(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function W_(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0)if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}function G_(e,t,n,r,i=30){let a=e.clone();a.name=t;let o=[];for(let e=0;e=r)){c.push(t.times[e]);for(let n=0;na.tracks[e].times[0]&&(s=a.tracks[e].times[0]);for(let e=0;e=r.times[d]){let e=d*c+s,t=e+c-s;f=r.values.slice(e,t)}else{let e=r.createInterpolant(),t=s,n=c-s;e.evaluate(a),f=e.resultBuffer.slice(t,n)}if(i===`quaternion`){let e=new ld().fromArray(f).normalize().conjugate();e.toArray(f)}let p=o.times.length;for(let e=0;e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(console.error(`THREE.KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(console.error(`THREE.KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){console.error(`THREE.KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){console.error(`THREE.KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&V_(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){console.error(`THREE.KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===Du,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};Q_.prototype.ValueTypeName=``,Q_.prototype.TimeBufferType=Float32Array,Q_.prototype.ValueBufferType=Float32Array,Q_.prototype.DefaultInterpolation=Eu;var $_=class extends Q_{constructor(e,t,n){super(e,t,n)}};$_.prototype.ValueTypeName=`bool`,$_.prototype.ValueBufferType=Array,$_.prototype.DefaultInterpolation=Tu,$_.prototype.InterpolantFactoryMethodLinear=void 0,$_.prototype.InterpolantFactoryMethodSmooth=void 0;var ev=class extends Q_{constructor(e,t,n,r){super(e,t,n,r)}};ev.prototype.ValueTypeName=`color`;var tv=class extends Q_{constructor(e,t,n,r){super(e,t,n,r)}};tv.prototype.ValueTypeName=`number`;var nv=class extends J_{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)ld.slerpFlat(i,0,a,c-o,a,c,s);return i}},rv=class extends Q_{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new nv(this.times,this.values,this.getValueSize(),e)}};rv.prototype.ValueTypeName=`quaternion`,rv.prototype.InterpolantFactoryMethodSmooth=void 0;var iv=class extends Q_{constructor(e,t,n){super(e,t,n)}};iv.prototype.ValueTypeName=`string`,iv.prototype.ValueBufferType=Array,iv.prototype.DefaultInterpolation=Tu,iv.prototype.InterpolantFactoryMethodLinear=void 0,iv.prototype.InterpolantFactoryMethodSmooth=void 0;var av=class extends Q_{constructor(e,t,n,r){super(e,t,n,r)}};av.prototype.ValueTypeName=`vector`;var ov=class{constructor(e=``,t=-1,n=[],r=ju){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=td(),this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(cv(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let e=0,r=n.length;e!==r;++e)t.push(Q_.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}static parseAnimation(e,t){if(console.warn(`THREE.AnimationClip: parseAnimation() is deprecated and will be removed with r185`),!e)return console.error(`THREE.AnimationClip: No animation in JSONLoader data.`),null;let n=function(e,t,n,r,i){if(n.length!==0){let a=[],o=[];W_(n,a,o,r),a.length!==0&&i.push(new e(t,a,o))}},r=[],i=e.name||`default`,a=e.fps||30,o=e.blendMode,s=e.length||-1,c=e.hierarchy||[];for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0),i;if(pv[e]!==void 0){pv[e].push({onLoad:t,onProgress:n,onError:r});return}pv[e]=[],pv[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&console.warn(`THREE.FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=pv[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e{e.error(t)})}}});return new Response(c)}else throw new mv(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>{let t=new DOMParser;return t.parseFromString(e,o)});case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i,n=t.exec(o),r=n&&n[1]?n[1].toLowerCase():void 0,i=new TextDecoder(r);return e.arrayBuffer().then(e=>i.decode(e))}}}).then(t=>{lv.add(`file:${e}`,t);let n=pv[e];delete pv[e];for(let e=0,r=n.length;e{let n=pv[e];if(n===void 0)throw this.manager.itemError(e),t;delete pv[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},gv=class extends fv{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new hv(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)}parse(e){let t=[];for(let n=0;n0:r.vertexColors=e.vertexColors),e.uniforms!==void 0)for(let t in e.uniforms){let i=e.uniforms[t];switch(r.uniforms[t]={},i.type){case`t`:r.uniforms[t].value=n(i.value);break;case`c`:r.uniforms[t].value=new $f().setHex(i.value);break;case`v2`:r.uniforms[t].value=new cd().fromArray(i.value);break;case`v3`:r.uniforms[t].value=new W().fromArray(i.value);break;case`v4`:r.uniforms[t].value=new jd().fromArray(i.value);break;case`m3`:r.uniforms[t].value=new fd().fromArray(i.value);break;case`m4`:r.uniforms[t].value=new uf().fromArray(i.value);break;default:r.uniforms[t].value=i.value}}if(e.defines!==void 0&&(r.defines=e.defines),e.vertexShader!==void 0&&(r.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(r.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(r.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)r.extensions[t]=e.extensions[t];if(e.lights!==void 0&&(r.lights=e.lights),e.clipping!==void 0&&(r.clipping=e.clipping),e.size!==void 0&&(r.size=e.size),e.sizeAttenuation!==void 0&&(r.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(r.map=n(e.map)),e.matcap!==void 0&&(r.matcap=n(e.matcap)),e.alphaMap!==void 0&&(r.alphaMap=n(e.alphaMap)),e.bumpMap!==void 0&&(r.bumpMap=n(e.bumpMap)),e.bumpScale!==void 0&&(r.bumpScale=e.bumpScale),e.normalMap!==void 0&&(r.normalMap=n(e.normalMap)),e.normalMapType!==void 0&&(r.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),r.normalScale=new cd().fromArray(t)}return e.displacementMap!==void 0&&(r.displacementMap=n(e.displacementMap)),e.displacementScale!==void 0&&(r.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(r.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(r.roughnessMap=n(e.roughnessMap)),e.metalnessMap!==void 0&&(r.metalnessMap=n(e.metalnessMap)),e.emissiveMap!==void 0&&(r.emissiveMap=n(e.emissiveMap)),e.emissiveIntensity!==void 0&&(r.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(r.specularMap=n(e.specularMap)),e.specularIntensityMap!==void 0&&(r.specularIntensityMap=n(e.specularIntensityMap)),e.specularColorMap!==void 0&&(r.specularColorMap=n(e.specularColorMap)),e.envMap!==void 0&&(r.envMap=n(e.envMap)),e.envMapRotation!==void 0&&r.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(r.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(r.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(r.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(r.lightMap=n(e.lightMap)),e.lightMapIntensity!==void 0&&(r.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(r.aoMap=n(e.aoMap)),e.aoMapIntensity!==void 0&&(r.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(r.gradientMap=n(e.gradientMap)),e.clearcoatMap!==void 0&&(r.clearcoatMap=n(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(r.clearcoatNormalScale=new cd().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(r.iridescenceMap=n(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(r.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(r.transmissionMap=n(e.transmissionMap)),e.thicknessMap!==void 0&&(r.thicknessMap=n(e.thicknessMap)),e.anisotropyMap!==void 0&&(r.anisotropyMap=n(e.anisotropyMap)),e.sheenColorMap!==void 0&&(r.sheenColorMap=n(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}createMaterialFromType(t){return e.createMaterialFromType(t)}static createMaterialFromType(e){let t={ShadowMaterial:O_,SpriteMaterial:gm,RawShaderMaterial:k_,ShaderMaterial:Qp,PointsMaterial:Ih,MeshPhysicalMaterial:j_,MeshStandardMaterial:A_,MeshPhongMaterial:M_,MeshToonMaterial:N_,MeshNormalMaterial:P_,MeshLambertMaterial:F_,MeshDepthMaterial:I_,MeshDistanceMaterial:L_,MeshBasicMaterial:rp,MeshMatcapMaterial:R_,LineDashedMaterial:z_,LineBasicMaterial:Sh,Material:np};return new t[e]}},Wv=class{static extractUrlBase(e){let t=e.lastIndexOf(`/`);return t===-1?`./`:e.slice(0,t+1)}static resolveURL(e,t){return typeof e!=`string`||e===``?``:(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,`$1`)),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}},Gv=class extends kp{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type=`InstancedBufferGeometry`,this.instanceCount=1/0}copy(e){return super.copy(e),this.instanceCount=e.instanceCount,this}toJSON(){let e=super.toJSON();return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}},Kv=class extends fv{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new hv(i.manager);a.setPath(i.path),a.setRequestHeader(i.requestHeader),a.setWithCredentials(i.withCredentials),a.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)}parse(e){let t={},n={};function r(e,n){if(t[n]!==void 0)return t[n];let r=e.interleavedBuffers,a=r[n],o=i(e,a.buffer),s=hd(a.type,o),c=new pm(s,a.stride);return c.uuid=a.uuid,t[n]=c,c}function i(e,t){if(n[t]!==void 0)return n[t];let r=e.arrayBuffers,i=r[t],a=new Uint32Array(i).buffer;return n[t]=a,a}let a=e.isInstancedBufferGeometry?new Gv:new kp,o=e.data.index;if(o!==void 0){let e=hd(o.type,o.array);a.setIndex(new fp(e,1))}let s=e.data.attributes;for(let t in s){let n=s[t],i;if(n.isInterleavedBufferAttribute){let t=r(e.data,n.data);i=new hm(t,n.itemSize,n.offset,n.normalized)}else{let e=hd(n.type,n.array),t=n.isInstancedBufferAttribute?Jm:fp;i=new t(e,n.itemSize,n.normalized)}n.name!==void 0&&(i.name=n.name),n.usage!==void 0&&i.setUsage(n.usage),a.setAttribute(t,i)}let c=e.data.morphAttributes;if(c)for(let t in c){let n=c[t],i=[];for(let t=0,a=n.length;t0){let n=new uv(t);i=new yv(n),i.setCrossOrigin(this.crossOrigin);for(let t=0,n=e.length;t0){r=new yv(this.manager),r.setCrossOrigin(this.crossOrigin);for(let t=0,r=e.length;t{let t=null,n=null;return e.boundingBox!==void 0&&(t=new Id().fromJSON(e.boundingBox)),e.boundingSphere!==void 0&&(n=new $d().fromJSON(e.boundingSphere)),{...e,boundingBox:t,boundingSphere:n}}),a._instanceInfo=e.instanceInfo,a._availableInstanceIds=e._availableInstanceIds,a._availableGeometryIds=e._availableGeometryIds,a._nextIndexStart=e.nextIndexStart,a._nextVertexStart=e.nextVertexStart,a._geometryCount=e.geometryCount,a._maxInstanceCount=e.maxInstanceCount,a._maxVertexCount=e.maxVertexCount,a._maxIndexCount=e.maxIndexCount,a._geometryInitialized=e.geometryInitialized,a._matricesTexture=c(e.matricesTexture.uuid),a._indirectTexture=c(e.indirectTexture.uuid),e.colorsTexture!==void 0&&(a._colorsTexture=c(e.colorsTexture.uuid)),e.boundingSphere!==void 0&&(a.boundingSphere=new $d().fromJSON(e.boundingSphere)),e.boundingBox!==void 0&&(a.boundingBox=new Id().fromJSON(e.boundingBox));break;case`LOD`:a=new Pm;break;case`Line`:a=new Ah(o(e.geometry),s(e.material));break;case`LineLoop`:a=new Fh(o(e.geometry),s(e.material));break;case`LineSegments`:a=new Ph(o(e.geometry),s(e.material));break;case`PointCloud`:case`Points`:a=new Vh(o(e.geometry),s(e.material));break;case`Sprite`:a=new Am(s(e.material));break;case`Group`:a=new sm;break;case`Bone`:a=new Wm;break;default:a=new Pf}if(a.uuid=e.uuid,e.name!==void 0&&(a.name=e.name),e.matrix===void 0?(e.position!==void 0&&a.position.fromArray(e.position),e.rotation!==void 0&&a.rotation.fromArray(e.rotation),e.quaternion!==void 0&&a.quaternion.fromArray(e.quaternion),e.scale!==void 0&&a.scale.fromArray(e.scale)):(a.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(a.matrixAutoUpdate=e.matrixAutoUpdate),a.matrixAutoUpdate&&a.matrix.decompose(a.position,a.quaternion,a.scale)),e.up!==void 0&&a.up.fromArray(e.up),e.castShadow!==void 0&&(a.castShadow=e.castShadow),e.receiveShadow!==void 0&&(a.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.intensity!==void 0&&(a.shadow.intensity=e.shadow.intensity),e.shadow.bias!==void 0&&(a.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(a.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(a.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&a.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(a.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(a.visible=e.visible),e.frustumCulled!==void 0&&(a.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(a.renderOrder=e.renderOrder),e.userData!==void 0&&(a.userData=e.userData),e.layers!==void 0&&(a.layers.mask=e.layers),e.children!==void 0){let o=e.children;for(let e=0;e`u`&&console.warn(`THREE.ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&console.warn(`THREE.ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`},this._abortController=new AbortController}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=lv.get(`image-bitmap:${e}`);if(a!==void 0){if(i.manager.itemStart(e),a.then){a.then(n=>{if(Yv.has(a)===!0)r&&r(Yv.get(a)),i.manager.itemError(e),i.manager.itemEnd(e);else return t&&t(n),i.manager.itemEnd(e),n});return}return setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0),a}let o={};o.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,o.headers=this.requestHeader,o.signal=typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;let s=fetch(e,o).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:`none`}))}).then(function(n){return lv.add(`image-bitmap:${e}`,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),Yv.set(s,t),lv.remove(`image-bitmap:${e}`),i.manager.itemError(e),i.manager.itemEnd(e)});lv.add(`image-bitmap:${e}`,s),i.manager.itemStart(e)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}};let Zv;var Qv=class{static getContext(){return Zv===void 0&&(Zv=new(window.AudioContext||window.webkitAudioContext)),Zv}static setContext(e){Zv=e}},Ane=class extends fv{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new hv(this.manager);a.setResponseType(`arraybuffer`),a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(e){try{let n=e.slice(0),r=Qv.getContext();r.decodeAudioData(n,function(e){t(e)}).catch(o)}catch(e){o(e)}},n,r);function o(t){r?r(t):console.error(t),i.manager.itemError(e)}}};const $v=new uf,ey=new uf,ty=new uf;var jne=class{constructor(){this.type=`StereoCamera`,this.aspect=1,this.eyeSep=.064,this.cameraL=new rm,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new rm,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){let t=this._cache,n=t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep;if(n){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,ty.copy(e.projectionMatrix);let n=t.eyeSep/2,r=n*t.near/t.focus,i=t.near*Math.tan($u*t.fov*.5)/t.zoom,a,o;ey.elements[12]=-n,$v.elements[12]=n,a=-i*t.aspect+r,o=i*t.aspect+r,ty.elements[0]=2*t.near/(o-a),ty.elements[8]=(o+a)/(o-a),this.cameraL.projectionMatrix.copy(ty),a=-i*t.aspect-r,o=i*t.aspect-r,ty.elements[0]=2*t.near/(o-a),ty.elements[8]=(o+a)/(o-a),this.cameraR.projectionMatrix.copy(ty)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(ey),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply($v)}},ny=class extends rm{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}},ry=class{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=performance.now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){let t=performance.now();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}};const iy=new W,ay=new ld,Mne=new W,oy=new W,sy=new W;var Nne=class extends Pf{constructor(){super(),this.type=`AudioListener`,this.context=Qv.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new ry}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter===null?this.gain.disconnect(this.context.destination):(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);let t=this.context.listener;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(iy,ay,Mne),oy.set(0,0,-1).applyQuaternion(ay),sy.set(0,1,0).applyQuaternion(ay),t.positionX){let e=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(iy.x,e),t.positionY.linearRampToValueAtTime(iy.y,e),t.positionZ.linearRampToValueAtTime(iy.z,e),t.forwardX.linearRampToValueAtTime(oy.x,e),t.forwardY.linearRampToValueAtTime(oy.y,e),t.forwardZ.linearRampToValueAtTime(oy.z,e),t.upX.linearRampToValueAtTime(sy.x,e),t.upY.linearRampToValueAtTime(sy.y,e),t.upZ.linearRampToValueAtTime(sy.z,e)}else t.setPosition(iy.x,iy.y,iy.z),t.setOrientation(oy.x,oy.y,oy.z,sy.x,sy.y,sy.z)}},cy=class extends Pf{constructor(e){super(),this.type=`Audio`,this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType=`empty`,this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType=`audioNode`,this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType=`mediaNode`,this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType=`mediaStreamNode`,this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType=`buffer`,this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn(`THREE.Audio: Audio is already playing.`);return}if(this.hasPlaybackControl===!1){console.warn(`THREE.Audio: this Audio has no playback control.`);return}this._startedAt=this.context.currentTime+e;let t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn(`THREE.Audio: this Audio has no playback control.`);return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress%=this.duration||this.buffer.duration),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(e=0){if(this.hasPlaybackControl===!1){console.warn(`THREE.Audio: this Audio has no playback control.`);return}return this._progress=0,this.source!==null&&(this.source.stop(this.context.currentTime+e),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let e=t,i=t+t;e!==i;++e)if(n[e]!==n[e+t]){o.setValue(n,r);break}}saveOriginalState(){let e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let e=n,i=r;e!==i;++e)t[e]=t[r+e%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){let e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){let e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let r=0;r!==i;++r)e[t+r]=e[n+r]}_slerp(e,t,n,r){ld.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){let a=this._workIndex*i;ld.multiplyQuaternionsFlat(e,a,e,t,e,n),ld.slerpFlat(e,t,e,t,e,a,r)}_lerp(e,t,n,r,i){let a=1-r;for(let o=0;o!==i;++o){let i=t+o;e[i]=e[i]*a+e[n+o]*r}}_lerpAdditive(e,t,n,r,i){for(let a=0;a!==i;++a){let i=t+a;e[i]=e[i]+e[n+a]*r}}};const py=`\\[\\]\\.:\\/`,Lne=RegExp(`[`+py+`]`,`g`),my=`[^`+py+`]`,Rne=`[^`+py.replace(`\\.`,``)+`]`,zne=/((?:WC+[\/:])*)/.source.replace(`WC`,my),Bne=/(WCOD+)?/.source.replace(`WCOD`,Rne),Vne=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace(`WC`,my),Hne=/\.(WC+)(?:\[(.+)\])?/.source.replace(`WC`,my),Une=RegExp(`^`+zne+Bne+Vne+Hne+`$`),Wne=[`material`,`materials`,`bones`,`map`];var Gne=class{constructor(e,t,n){let r=n||hy.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},hy=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(Lne,``)}static parseTrackName(e){let t=Une.exec(e);if(t===null)throw Error(`PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);Wne.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r=i){let a=i++,l=e[a];t[l.uuid]=c,e[c]=l,t[s]=a,e[a]=o;for(let e=0,t=r;e!==t;++e){let t=n[e],r=t[a],i=t[c];t[c]=r,t[a]=i}}}this.nCachedObjects_=i}uncache(){let e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_,a=e.length;for(let o=0,s=arguments.length;o!==s;++o){let s=arguments[o],c=s.uuid,l=t[c];if(l!==void 0)if(delete t[c],l0&&(t[o.uuid]=l),e[l]=o,e.pop();for(let e=0,t=r;e!==t;++e){let t=n[e];t[l]=t[i],t.pop()}}}this.nCachedObjects_=i}subscribe_(e,t){let n=this._bindingsIndicesByPath,r=n[e],i=this._bindings;if(r!==void 0)return i[r];let a=this._paths,o=this._parsedPaths,s=this._objects,c=s.length,l=this.nCachedObjects_,u=Array(c);r=i.length,n[e]=r,a.push(e),o.push(t),i.push(u);for(let n=l,r=s.length;n!==r;++n){let r=s[n];u[n]=new hy(r,e,t)}return u}unsubscribe_(e){let t=this._bindingsIndicesByPath,n=t[e];if(n!==void 0){let r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o],c=e[o];t[c]=n,a[n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}},gy=class{constructor(e,t,n=null,r=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;let i=t.tracks,a=i.length,o=Array(a),s={endingStart:Ou,endingEnd:Ou};for(let e=0;e!==a;++e){let t=i[e].createInterpolant(null);o[e]=t,t.settings=s}this._interpolantSettings=s,this._interpolants=o,this._propertyBindings=Array(a),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Cu,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n=!1){if(e.fadeOut(t),this.fadeIn(t),n===!0){let n=this._clip.duration,r=e._clip.duration,i=r/n,a=n/r;e.warp(1,i,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n=!1){return e.crossFadeFrom(this,t,n)}stopFading(){let e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){let r=this._mixer,i=r.time,a=this.timeScale,o=this._timeScaleInterpolant;o===null&&(o=r._lendControlInterpolant(),this._timeScaleInterpolant=o);let s=o.parameterPositions,c=o.sampleValues;return s[0]=i,s[1]=i+n,c[0]=e/a,c[1]=t/a,this}stopWarping(){let e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,r){if(!this.enabled){this._updateWeight(e);return}let i=this._startTime;if(i!==null){let r=(e-i)*n;r<0||n===0?t=0:(this._startTime=null,t=n*r)}t*=this._updateTimeScale(e);let a=this._updateTime(t),o=this._updateWeight(e);if(o>0){let e=this._interpolants,t=this._propertyBindings;switch(this.blendMode){case Mu:for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(a),t[n].accumulateAdditive(o);break;case ju:default:for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(a),t[n].accumulate(r,o)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;let n=this._weightInterpolant;if(n!==null){let r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),r===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;let n=this._timeScaleInterpolant;if(n!==null){let r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){let t=this._clip.duration,n=this.loop,r=this.time+e,i=this._loopCount,a=n===wu;if(e===0)return i===-1?r:a&&(i&1)==1?t-r:r;if(n===Su){i===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));handle_stop:{if(r>=t)r=t;else if(r<0)r=0;else{this.time=r;break handle_stop}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:`finished`,action:this,direction:e<0?-1:1})}}else{if(i===-1&&(e>=0?(i=0,this._setEndings(!0,this.repetitions===0,a)):this._setEndings(this.repetitions===0,!0,a)),r>=t||r<0){let n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);let o=this.repetitions-i;if(o<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:`finished`,action:this,direction:e>0?1:-1});else{if(o===1){let t=e<0;this._setEndings(t,!t,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:`loop`,action:this,loopDelta:n})}}else this.time=r;if(a&&(i&1)==1)return t-r}return r}_setEndings(e,t,n){let r=this._interpolantSettings;n?(r.endingStart=ku,r.endingEnd=ku):(e?r.endingStart=this.zeroSlopeAtStart?ku:Ou:r.endingStart=Au,t?r.endingEnd=this.zeroSlopeAtEnd?ku:Ou:r.endingEnd=Au)}_scheduleFading(e,t,n){let r=this._mixer,i=r.time,a=this._weightInterpolant;a===null&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);let o=a.parameterPositions,s=a.sampleValues;return o[0]=i,s[0]=t,o[1]=i+e,s[1]=n,this}};const qne=new Float32Array(1);var _y=class extends Xu{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){let n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,c=this._bindingsByRootAndName,l=c[s];l===void 0&&(l={},c[s]=l);for(let e=0;e!==i;++e){let i=r[e],c=i.name,u=l[c];if(u!==void 0)++u.referenceCount,a[e]=u;else{if(u=a[e],u!==void 0){u._cacheIndex===null&&(++u.referenceCount,this._addInactiveBinding(u,s,c));continue}let r=t&&t._propertyBindings[e].binding.parsedPath;u=new fy(hy.create(n,c,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,s,c),a[e]=u}o[e].resultBuffer=u.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){let t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}let t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){let n=t[e];n.useCount++===0&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){let t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){let n=t[e];--n.useCount===0&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;let e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){let t=e._cacheIndex;return t!==null&&t=0;--n)e[n].stop();return this}update(e){e*=this.timeScale;let t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1;for(let o=0;o!==n;++o){let n=t[o];n._update(r,e,i,a)}let o=this._bindings,s=this._nActiveBindings;for(let e=0;e!==s;++e)o[e].apply(a);return this}setTime(e){this.time=0;for(let e=0;e=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ty).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}};const Ey=new W,Dy=new W,Oy=new W,ky=new W,Ay=new W,rre=new W,ire=new W;var are=class{constructor(e=new W,t=new W){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){Ey.subVectors(e,this.start),Dy.subVectors(this.end,this.start);let n=Dy.dot(Dy),r=Dy.dot(Ey),i=r/n;return t&&(i=nd(i,0,1)),i}closestPointToPoint(e,t,n){let r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}distanceSqToLine3(e,t=rre,n=ire){let r=1e-8*1e-8,i,a,o=this.start,s=e.start,c=this.end,l=e.end;Oy.subVectors(c,o),ky.subVectors(l,s),Ay.subVectors(o,s);let u=Oy.dot(Oy),d=ky.dot(ky),f=ky.dot(Ay);if(u<=r&&d<=r)return t.copy(o),n.copy(s),t.sub(n),t.dot(t);if(u<=r)i=0,a=f/d,a=nd(a,0,1);else{let e=Oy.dot(Ay);if(d<=r)a=0,i=nd(-e/u,0,1);else{let t=Oy.dot(ky),n=u*d-t*t;i=n===0?0:nd((t*f-e*d)/n,0,1),a=(t*i+f)/d,a<0?(a=0,i=nd(-e/u,0,1)):a>1&&(a=1,i=nd((t-e)/u,0,1))}}return t.copy(o).add(Oy.multiplyScalar(i)),n.copy(s).add(ky.multiplyScalar(a)),t.sub(n),t.dot(t)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}};const jy=new W;var ore=class extends Pf{constructor(e,t){super(),this.light=e,this.matrixAutoUpdate=!1,this.color=t,this.type=`SpotLightHelper`;let n=new kp,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let e=0,t=1,n=32;e1)for(let n=0;n.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{Gy.set(e.z,0,-e.x).normalize();let t=Math.acos(e.y);this.quaternion.setFromAxisAngle(Gy,t)}}setLength(e,t=e*.2,n=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}},Jy=class extends Ph{constructor(e=1){let t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],r=new kp;r.setAttribute(`position`,new xp(t,3)),r.setAttribute(`color`,new xp(n,3));let i=new Sh({vertexColors:!0,toneMapped:!1});super(r,i),this.type=`AxesHelper`}setColors(e,t,n){let r=new $f,i=this.geometry.attributes.color.array;return r.set(e),r.toArray(i,0),r.toArray(i,3),r.set(t),r.toArray(i,6),r.toArray(i,9),r.set(n),r.toArray(i,12),r.toArray(i,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}},yre=class{constructor(){this.type=`ShapePath`,this.color=new $f,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new Tg,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this}bezierCurveTo(e,t,n,r,i,a){return this.currentPath.bezierCurveTo(e,t,n,r,i,a),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(e){let t=[];for(let n=0,r=e.length;n2**-52){if(c<0&&(n=t[a],s=-s,o=t[i],c=-c),e.yo.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{let t=c*(e.x-n.x)-s*(e.y-n.y);if(t===0)return!0;if(t<0)continue;r=!r}}else{if(e.y!==n.y)continue;if(o.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=o.x)return!0}}return r}let r=s_.isClockWise,i=this.subPaths;if(i.length===0)return[];let a,o,s,c=[];if(i.length===1)return o=i[0],s=new Eg,s.curves=o.curves,c.push(s),c;let l=!r(i[0].getPoints());l=e?!l:l;let u=[],d=[],f=[],p=0,m;d[p]=void 0,f[p]=[];for(let t=0,n=i.length;t1){let e=!1,t=0;for(let e=0,t=d.length;e0&&e===!1&&(f=u)}let h;for(let e=0,t=d.length;et?(e.repeat.x=1,e.repeat.y=n/t,e.offset.x=0,e.offset.y=(1-e.repeat.y)/2):(e.repeat.x=t/n,e.repeat.y=1,e.offset.x=(1-e.repeat.x)/2,e.offset.y=0),e}function xre(e,t){let n=e.image&&e.image.width?e.image.width/e.image.height:1;return n>t?(e.repeat.x=t/n,e.repeat.y=1,e.offset.x=(1-e.repeat.x)/2,e.offset.y=0):(e.repeat.x=1,e.repeat.y=n/t,e.offset.x=0,e.offset.y=(1-e.repeat.y)/2),e}function Sre(e){return e.repeat.x=1,e.repeat.y=1,e.offset.x=0,e.offset.y=0,e}function Xy(e,t,n,r){let i=Cre(r);switch(n){case Pl:return e*t;case zl:return e*t/i.components*i.byteLength;case Bl:return e*t/i.components*i.byteLength;case Vl:return e*t*2/i.components*i.byteLength;case Hl:return e*t*2/i.components*i.byteLength;case Fl:return e*t*3/i.components*i.byteLength;case Il:return e*t*4/i.components*i.byteLength;case Ul:return e*t*4/i.components*i.byteLength;case Wl:case Gl:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Kl:case ql:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Yl:case Zl:return Math.max(e,16)*Math.max(t,8)/4;case Jl:case Xl:return Math.max(e,8)*Math.max(t,8)/2;case Ql:case $l:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case eu:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case tu:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case nu:return Math.floor((e+4)/5)*Math.floor((t+3)/4)*16;case ru:return Math.floor((e+4)/5)*Math.floor((t+4)/5)*16;case iu:return Math.floor((e+5)/6)*Math.floor((t+4)/5)*16;case au:return Math.floor((e+5)/6)*Math.floor((t+5)/6)*16;case ou:return Math.floor((e+7)/8)*Math.floor((t+4)/5)*16;case su:return Math.floor((e+7)/8)*Math.floor((t+5)/6)*16;case cu:return Math.floor((e+7)/8)*Math.floor((t+7)/8)*16;case lu:return Math.floor((e+9)/10)*Math.floor((t+4)/5)*16;case uu:return Math.floor((e+9)/10)*Math.floor((t+5)/6)*16;case du:return Math.floor((e+9)/10)*Math.floor((t+7)/8)*16;case fu:return Math.floor((e+9)/10)*Math.floor((t+9)/10)*16;case pu:return Math.floor((e+11)/12)*Math.floor((t+9)/10)*16;case mu:return Math.floor((e+11)/12)*Math.floor((t+11)/12)*16;case hu:case gu:case _u:return Math.ceil(e/4)*Math.ceil(t/4)*16;case vu:case yu:return Math.ceil(e/4)*Math.ceil(t/4)*8;case bu:case xu:return Math.ceil(e/4)*Math.ceil(t/4)*16}throw Error(`Unable to determine texture byte length for ${n} format.`)}function Cre(e){switch(e){case Sl:case Cl:return{byteLength:1,components:1};case Tl:case wl:case kl:return{byteLength:2,components:1};case Al:case jl:return{byteLength:2,components:4};case Dl:case El:case Ol:return{byteLength:4,components:1};case Nl:return{byteLength:4,components:3}}throw Error(`Unknown texture type ${e}.`)}var wre=class{static contain(e,t){return bre(e,t)}static cover(e,t){return xre(e,t)}static fill(e){return Sre(e)}static getByteLength(e,t,n,r){return Xy(e,t,n,r)}};typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`register`,{detail:{revision:`179`}})),typeof window<`u`&&(window.__THREE__?console.warn(`WARNING: Multiple instances of Three.js being imported.`):window.__THREE__=`179`);var Zy={};c(Zy,{ACESFilmicToneMapping:()=>4,AddEquation:()=>100,AddOperation:()=>2,AdditiveAnimationBlendMode:()=>Mu,AdditiveBlending:()=>2,AgXToneMapping:()=>6,AlphaFormat:()=>Pl,AlwaysCompare:()=>519,AlwaysDepth:()=>1,AlwaysStencilFunc:()=>519,AmbientLight:()=>zv,AnimationAction:()=>gy,AnimationClip:()=>ov,AnimationLoader:()=>gv,AnimationMixer:()=>_y,AnimationObjectGroup:()=>Kne,AnimationUtils:()=>q_,ArcCurve:()=>og,ArrayCamera:()=>ny,ArrowHelper:()=>vre,AttachedBindMode:()=>dl,Audio:()=>cy,AudioAnalyser:()=>Ine,AudioContext:()=>Qv,AudioListener:()=>Nne,AudioLoader:()=>Ane,AxesHelper:()=>Jy,BackSide:()=>1,BasicDepthPacking:()=>Iu,BasicShadowMap:()=>0,BatchedMesh:()=>xh,Bone:()=>Wm,BooleanKeyframeTrack:()=>$_,Box2:()=>nre,Box3:()=>Id,Box3Helper:()=>gre,BoxGeometry:()=>Wp,BoxHelper:()=>hre,BufferAttribute:()=>fp,BufferGeometry:()=>kp,BufferGeometryLoader:()=>Kv,ByteType:()=>Cl,Cache:()=>lv,Camera:()=>$p,CameraHelper:()=>mre,CanvasTexture:()=>Gh,CapsuleGeometry:()=>qh,CatmullRomCurve3:()=>fg,CineonToneMapping:()=>3,CircleGeometry:()=>Jh,ClampToEdgeWrapping:()=>ml,Clock:()=>ry,Color:()=>$f,ColorKeyframeTrack:()=>ev,ColorManagement:()=>Sd,CompressedArrayTexture:()=>yne,CompressedCubeTexture:()=>bne,CompressedTexture:()=>Wh,CompressedTextureLoader:()=>_v,ConeGeometry:()=>Xh,ConstantAlphaFactor:()=>213,ConstantColorFactor:()=>211,Controls:()=>Yy,CubeCamera:()=>im,CubeReflectionMapping:()=>301,CubeRefractionMapping:()=>302,CubeTexture:()=>am,CubeTextureLoader:()=>bv,CubeUVReflectionMapping:()=>306,CubicBezierCurve:()=>gg,CubicBezierCurve3:()=>_g,CubicInterpolant:()=>Y_,CullFaceBack:()=>1,CullFaceFront:()=>2,CullFaceFrontBack:()=>3,CullFaceNone:()=>0,Curve:()=>ig,CurvePath:()=>wg,CustomBlending:()=>5,CustomToneMapping:()=>5,CylinderGeometry:()=>Yh,Cylindrical:()=>ere,Data3DTexture:()=>Fd,DataArrayTexture:()=>Pd,DataTexture:()=>Gm,DataTextureLoader:()=>xv,DataUtils:()=>cp,DecrementStencilOp:()=>7683,DecrementWrapStencilOp:()=>34056,DefaultLoadingManager:()=>dv,DepthFormat:()=>Ll,DepthStencilFormat:()=>Rl,DepthTexture:()=>Kh,DetachedBindMode:()=>fl,DirectionalLight:()=>Rv,DirectionalLightHelper:()=>pre,DiscreteInterpolant:()=>Z_,DodecahedronGeometry:()=>Qh,DoubleSide:()=>2,DstAlphaFactor:()=>206,DstColorFactor:()=>208,DynamicCopyUsage:()=>35050,DynamicDrawUsage:()=>Ku,DynamicReadUsage:()=>35049,EdgesGeometry:()=>rg,EllipseCurve:()=>ag,EqualCompare:()=>514,EqualDepth:()=>4,EqualStencilFunc:()=>514,EquirectangularReflectionMapping:()=>303,EquirectangularRefractionMapping:()=>304,Euler:()=>vf,EventDispatcher:()=>Xu,ExtrudeGeometry:()=>u_,FileLoader:()=>hv,Float16BufferAttribute:()=>bp,Float32BufferAttribute:()=>xp,FloatType:()=>Ol,Fog:()=>dm,FogExp2:()=>um,FramebufferTexture:()=>vne,FrontSide:()=>0,Frustum:()=>oh,FrustumArray:()=>lh,GLBufferAttribute:()=>yy,GLSL1:()=>`100`,GLSL3:()=>qu,GreaterCompare:()=>516,GreaterDepth:()=>6,GreaterEqualCompare:()=>518,GreaterEqualDepth:()=>5,GreaterEqualStencilFunc:()=>518,GreaterStencilFunc:()=>516,GridHelper:()=>dre,Group:()=>sm,HalfFloatType:()=>kl,HemisphereLight:()=>wv,HemisphereLightHelper:()=>ure,IcosahedronGeometry:()=>p_,ImageBitmapLoader:()=>Xv,ImageLoader:()=>yv,ImageUtils:()=>Ed,IncrementStencilOp:()=>7682,IncrementWrapStencilOp:()=>34055,InstancedBufferAttribute:()=>Jm,InstancedBufferGeometry:()=>Gv,InstancedInterleavedBuffer:()=>Zne,InstancedMesh:()=>th,Int16BufferAttribute:()=>gp,Int32BufferAttribute:()=>vp,Int8BufferAttribute:()=>pp,IntType:()=>El,InterleavedBuffer:()=>pm,InterleavedBufferAttribute:()=>hm,Interpolant:()=>J_,InterpolateDiscrete:()=>Tu,InterpolateLinear:()=>Eu,InterpolateSmooth:()=>Du,InterpolationSamplingMode:()=>Ate,InterpolationSamplingType:()=>kte,InvertStencilOp:()=>5386,KeepStencilOp:()=>Wu,KeyframeTrack:()=>Q_,LOD:()=>Pm,LatheGeometry:()=>m_,Layers:()=>yf,LessCompare:()=>513,LessDepth:()=>2,LessEqualCompare:()=>515,LessEqualDepth:()=>3,LessEqualStencilFunc:()=>515,LessStencilFunc:()=>513,Light:()=>Cv,LightProbe:()=>Hv,Line:()=>Ah,Line3:()=>are,LineBasicMaterial:()=>Sh,LineCurve:()=>vg,LineCurve3:()=>yg,LineDashedMaterial:()=>z_,LineLoop:()=>Fh,LineSegments:()=>Ph,LinearFilter:()=>yl,LinearInterpolant:()=>X_,LinearMipMapLinearFilter:()=>1008,LinearMipMapNearestFilter:()=>1007,LinearMipmapLinearFilter:()=>xl,LinearMipmapNearestFilter:()=>bl,LinearSRGBColorSpace:()=>Vu,LinearToneMapping:()=>1,LinearTransfer:()=>Hu,Loader:()=>fv,LoaderUtils:()=>Wv,LoadingManager:()=>uv,LoopOnce:()=>Su,LoopPingPong:()=>wu,LoopRepeat:()=>Cu,MOUSE:()=>ll,Material:()=>np,MaterialLoader:()=>Uv,MathUtils:()=>sd,Matrix2:()=>tre,Matrix3:()=>fd,Matrix4:()=>uf,MaxEquation:()=>104,Mesh:()=>Vp,MeshBasicMaterial:()=>rp,MeshDepthMaterial:()=>I_,MeshDistanceMaterial:()=>L_,MeshLambertMaterial:()=>F_,MeshMatcapMaterial:()=>R_,MeshNormalMaterial:()=>P_,MeshPhongMaterial:()=>M_,MeshPhysicalMaterial:()=>j_,MeshStandardMaterial:()=>A_,MeshToonMaterial:()=>N_,MinEquation:()=>103,MirroredRepeatWrapping:()=>hl,MixOperation:()=>1,MultiplyBlending:()=>4,MultiplyOperation:()=>0,NearestFilter:()=>gl,NearestMipMapLinearFilter:()=>1005,NearestMipMapNearestFilter:()=>1004,NearestMipmapLinearFilter:()=>vl,NearestMipmapNearestFilter:()=>_l,NeutralToneMapping:()=>7,NeverCompare:()=>512,NeverDepth:()=>0,NeverStencilFunc:()=>512,NoBlending:()=>0,NoColorSpace:()=>``,NoToneMapping:()=>0,NormalAnimationBlendMode:()=>ju,NormalBlending:()=>1,NotEqualCompare:()=>517,NotEqualDepth:()=>7,NotEqualStencilFunc:()=>517,NumberKeyframeTrack:()=>tv,Object3D:()=>Pf,ObjectLoader:()=>One,ObjectSpaceNormalMap:()=>1,OctahedronGeometry:()=>h_,OneFactor:()=>201,OneMinusConstantAlphaFactor:()=>214,OneMinusConstantColorFactor:()=>212,OneMinusDstAlphaFactor:()=>207,OneMinusDstColorFactor:()=>209,OneMinusSrcAlphaFactor:()=>205,OneMinusSrcColorFactor:()=>203,OrthographicCamera:()=>Iv,PCFShadowMap:()=>1,PCFSoftShadowMap:()=>2,PMREMGenerator:()=>mb,Path:()=>Tg,PerspectiveCamera:()=>rm,Plane:()=>rh,PlaneGeometry:()=>g_,PlaneHelper:()=>_re,PointLight:()=>Fv,PointLightHelper:()=>cre,Points:()=>Vh,PointsMaterial:()=>Ih,PolarGridHelper:()=>fre,PolyhedronGeometry:()=>Zh,PositionalAudio:()=>Fne,PropertyBinding:()=>hy,PropertyMixer:()=>fy,QuadraticBezierCurve:()=>bg,QuadraticBezierCurve3:()=>xg,Quaternion:()=>ld,QuaternionKeyframeTrack:()=>rv,QuaternionLinearInterpolant:()=>nv,RED_GREEN_RGTC2_Format:()=>bu,RED_RGTC1_Format:()=>vu,REVISION:()=>`179`,RGBADepthPacking:()=>Lu,RGBAFormat:()=>Il,RGBAIntegerFormat:()=>Ul,RGBA_ASTC_10x10_Format:()=>fu,RGBA_ASTC_10x5_Format:()=>lu,RGBA_ASTC_10x6_Format:()=>uu,RGBA_ASTC_10x8_Format:()=>du,RGBA_ASTC_12x10_Format:()=>pu,RGBA_ASTC_12x12_Format:()=>mu,RGBA_ASTC_4x4_Format:()=>tu,RGBA_ASTC_5x4_Format:()=>nu,RGBA_ASTC_5x5_Format:()=>ru,RGBA_ASTC_6x5_Format:()=>iu,RGBA_ASTC_6x6_Format:()=>au,RGBA_ASTC_8x5_Format:()=>ou,RGBA_ASTC_8x6_Format:()=>su,RGBA_ASTC_8x8_Format:()=>cu,RGBA_BPTC_Format:()=>hu,RGBA_ETC2_EAC_Format:()=>eu,RGBA_PVRTC_2BPPV1_Format:()=>Zl,RGBA_PVRTC_4BPPV1_Format:()=>Xl,RGBA_S3TC_DXT1_Format:()=>Gl,RGBA_S3TC_DXT3_Format:()=>Kl,RGBA_S3TC_DXT5_Format:()=>ql,RGBDepthPacking:()=>3202,RGBFormat:()=>Fl,RGBIntegerFormat:()=>1032,RGB_BPTC_SIGNED_Format:()=>gu,RGB_BPTC_UNSIGNED_Format:()=>_u,RGB_ETC1_Format:()=>Ql,RGB_ETC2_Format:()=>$l,RGB_PVRTC_2BPPV1_Format:()=>Yl,RGB_PVRTC_4BPPV1_Format:()=>Jl,RGB_S3TC_DXT1_Format:()=>Wl,RGDepthPacking:()=>3203,RGFormat:()=>Vl,RGIntegerFormat:()=>Hl,RawShaderMaterial:()=>k_,Ray:()=>lf,Raycaster:()=>xy,RectAreaLight:()=>Bv,RedFormat:()=>zl,RedIntegerFormat:()=>Bl,ReinhardToneMapping:()=>2,RenderTarget:()=>Md,RenderTarget3D:()=>Jne,RepeatWrapping:()=>pl,ReplaceStencilOp:()=>7681,ReverseSubtractEquation:()=>102,RingGeometry:()=>__,SIGNED_RED_GREEN_RGTC2_Format:()=>xu,SIGNED_RED_RGTC1_Format:()=>yu,SRGBColorSpace:()=>Bu,SRGBTransfer:()=>Uu,Scene:()=>fm,ShaderChunk:()=>$y,ShaderLib:()=>tb,ShaderMaterial:()=>Qp,ShadowMaterial:()=>O_,Shape:()=>Eg,ShapeGeometry:()=>v_,ShapePath:()=>yre,ShapeUtils:()=>s_,ShortType:()=>wl,Skeleton:()=>qm,SkeletonHelper:()=>sre,SkinnedMesh:()=>Um,Source:()=>Dd,Sphere:()=>$d,SphereGeometry:()=>b_,Spherical:()=>wy,SphericalHarmonics3:()=>Vv,SplineCurve:()=>Sg,SpotLight:()=>Av,SpotLightHelper:()=>ore,Sprite:()=>Am,SpriteMaterial:()=>gm,SrcAlphaFactor:()=>204,SrcAlphaSaturateFactor:()=>210,SrcColorFactor:()=>202,StaticCopyUsage:()=>35046,StaticDrawUsage:()=>Gu,StaticReadUsage:()=>35045,StereoCamera:()=>jne,StreamCopyUsage:()=>35042,StreamDrawUsage:()=>35040,StreamReadUsage:()=>35041,StringKeyframeTrack:()=>iv,SubtractEquation:()=>101,SubtractiveBlending:()=>3,TOUCH:()=>ul,TangentSpaceNormalMap:()=>0,TetrahedronGeometry:()=>x_,Texture:()=>Ad,TextureLoader:()=>Sv,TextureUtils:()=>wre,Timer:()=>Qne,TimestampQuery:()=>Ote,TorusGeometry:()=>S_,TorusKnotGeometry:()=>C_,Triangle:()=>Jf,TriangleFanDrawMode:()=>2,TriangleStripDrawMode:()=>1,TrianglesDrawMode:()=>0,TubeGeometry:()=>w_,UVMapping:()=>300,Uint16BufferAttribute:()=>_p,Uint32BufferAttribute:()=>yp,Uint8BufferAttribute:()=>mp,Uint8ClampedBufferAttribute:()=>hp,Uniform:()=>vy,UniformsGroup:()=>Xne,UniformsLib:()=>eb,UniformsUtils:()=>Yp,UnsignedByteType:()=>Sl,UnsignedInt248Type:()=>Ml,UnsignedInt5999Type:()=>Nl,UnsignedIntType:()=>Dl,UnsignedShort4444Type:()=>Al,UnsignedShort5551Type:()=>jl,UnsignedShortType:()=>Tl,VSMShadowMap:()=>3,Vector2:()=>cd,Vector3:()=>W,Vector4:()=>jd,VectorKeyframeTrack:()=>av,VideoFrameTexture:()=>_ne,VideoTexture:()=>Uh,WebGL3DRenderTarget:()=>$te,WebGLArrayRenderTarget:()=>Qte,WebGLCoordinateSystem:()=>Ju,WebGLCubeRenderTarget:()=>om,WebGLRenderTarget:()=>Nd,WebGLRenderer:()=>$b,WebGLUtils:()=>Xb,WebGPUCoordinateSystem:()=>Yu,WebXRController:()=>lm,WireframeGeometry:()=>T_,WrapAroundEnding:()=>Au,ZeroCurvatureEnding:()=>Ou,ZeroFactor:()=>200,ZeroSlopeEnding:()=>ku,ZeroStencilOp:()=>0,createCanvasElement:()=>_d});function Qy(){let e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){t!==!0&&n!==null&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Tre(e){let t=new WeakMap;function n(t,n){let r=t.array,i=t.usage,a=r.byteLength,o=e.createBuffer();e.bindBuffer(n,o),e.bufferData(n,r,i),t.onUploadCallback();let s;if(r instanceof Float32Array)s=e.FLOAT;else if(typeof Float16Array<`u`&&r instanceof Float16Array)s=e.HALF_FLOAT;else if(r instanceof Uint16Array)s=t.isFloat16BufferAttribute?e.HALF_FLOAT:e.UNSIGNED_SHORT;else if(r instanceof Int16Array)s=e.SHORT;else if(r instanceof Uint32Array)s=e.UNSIGNED_INT;else if(r instanceof Int32Array)s=e.INT;else if(r instanceof Int8Array)s=e.BYTE;else if(r instanceof Uint8Array)s=e.UNSIGNED_BYTE;else if(r instanceof Uint8ClampedArray)s=e.UNSIGNED_BYTE;else throw Error(`THREE.WebGLAttributes: Unsupported buffer data format: `+r);return{buffer:o,type:s,bytesPerElement:r.BYTES_PER_ELEMENT,version:t.version,size:a}}function r(t,n,r){let i=n.array,a=n.updateRanges;if(e.bindBuffer(r,t),a.length===0)e.bufferSubData(r,0,i);else{a.sort((e,t)=>e.start-t.start);let t=0;for(let e=1;e 0 +#endif`,Vre=`#if NUM_CLIPPING_PLANES > 0 vec4 plane; #ifdef ALPHA_TO_COVERAGE float distanceToPlane, distanceGradient; @@ -297,26 +297,26 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve if ( clipped ) discard; #endif #endif -#endif`,Ure=`#if NUM_CLIPPING_PLANES > 0 +#endif`,Hre=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,Wre=`#if NUM_CLIPPING_PLANES > 0 +#endif`,Ure=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; -#endif`,Gre=`#if NUM_CLIPPING_PLANES > 0 +#endif`,Wre=`#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; -#endif`,Kre=`#if defined( USE_COLOR_ALPHA ) +#endif`,Gre=`#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; -#endif`,qre=`#if defined( USE_COLOR_ALPHA ) +#endif`,Kre=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; -#endif`,Jre=`#if defined( USE_COLOR_ALPHA ) +#endif`,qre=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) varying vec3 vColor; -#endif`,Yre=`#if defined( USE_COLOR_ALPHA ) +#endif`,Jre=`#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) vColor = vec3( 1.0 ); @@ -330,7 +330,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #ifdef USE_BATCHING_COLOR vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) ); vColor.xyz *= batchingColor.xyz; -#endif`,Xre=`#define PI 3.141592653589793 +#endif`,Yre=`#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 @@ -404,7 +404,7 @@ vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,Zre=`#ifdef ENVMAP_TYPE_CUBE_UV +} // validated`,Xre=`#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_minMipLevel 4.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { @@ -497,7 +497,7 @@ float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { return vec4( mix( color0, color1, mipF ), 1.0 ); } } -#endif`,Qre=`vec3 transformedNormal = objectNormal; +#endif`,Zre=`vec3 transformedNormal = objectNormal; #ifdef USE_TANGENT vec3 transformedTangent = objectTangent; #endif @@ -526,21 +526,21 @@ transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif -#endif`,$re=`#ifdef USE_DISPLACEMENTMAP +#endif`,Qre=`#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; -#endif`,eie=`#ifdef USE_DISPLACEMENTMAP +#endif`,$re=`#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,tie=`#ifdef USE_EMISSIVEMAP +#endif`,eie=`#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE emissiveColor = sRGBTransferEOTF( emissiveColor ); #endif totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,nie=`#ifdef USE_EMISSIVEMAP +#endif`,tie=`#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; -#endif`,rie=`gl_FragColor = linearToOutputTexel( gl_FragColor );`,iie=`vec4 LinearTransferOETF( in vec4 value ) { +#endif`,nie=`gl_FragColor = linearToOutputTexel( gl_FragColor );`,rie=`vec4 LinearTransferOETF( in vec4 value ) { return value; } vec4 sRGBTransferEOTF( in vec4 value ) { @@ -548,7 +548,7 @@ vec4 sRGBTransferEOTF( in vec4 value ) { } vec4 sRGBTransferOETF( in vec4 value ) { return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); -}`,aie=`#ifdef USE_ENVMAP +}`,iie=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { @@ -577,7 +577,7 @@ vec4 sRGBTransferOETF( in vec4 value ) { #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif -#endif`,oie=`#ifdef USE_ENVMAP +#endif`,aie=`#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; uniform mat3 envMapRotation; @@ -587,7 +587,7 @@ vec4 sRGBTransferOETF( in vec4 value ) { uniform sampler2D envMap; #endif -#endif`,sie=`#ifdef USE_ENVMAP +#endif`,oie=`#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS @@ -598,7 +598,7 @@ vec4 sRGBTransferOETF( in vec4 value ) { #else varying vec3 vReflect; #endif -#endif`,cie=`#ifdef USE_ENVMAP +#endif`,sie=`#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif @@ -609,7 +609,7 @@ vec4 sRGBTransferOETF( in vec4 value ) { varying vec3 vReflect; uniform float refractionRatio; #endif -#endif`,lie=`#ifdef USE_ENVMAP +#endif`,cie=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else @@ -626,18 +626,18 @@ vec4 sRGBTransferOETF( in vec4 value ) { vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif -#endif`,uie=`#ifdef USE_FOG +#endif`,lie=`#ifdef USE_FOG vFogDepth = - mvPosition.z; -#endif`,die=`#ifdef USE_FOG +#endif`,uie=`#ifdef USE_FOG varying float vFogDepth; -#endif`,fie=`#ifdef USE_FOG +#endif`,die=`#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,pie=`#ifdef USE_FOG +#endif`,fie=`#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 @@ -646,7 +646,7 @@ vec4 sRGBTransferOETF( in vec4 value ) { uniform float fogNear; uniform float fogFar; #endif -#endif`,mie=`#ifdef USE_GRADIENTMAP +#endif`,pie=`#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { @@ -658,12 +658,12 @@ vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { vec2 fw = fwidth( coord ) * 0.5; return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); #endif -}`,hie=`#ifdef USE_LIGHTMAP +}`,mie=`#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; -#endif`,gie=`LambertMaterial material; +#endif`,hie=`LambertMaterial material; material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,_ie=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,gie=`varying vec3 vViewPosition; struct LambertMaterial { vec3 diffuseColor; float specularStrength; @@ -677,7 +677,7 @@ void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometr reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,vie=`uniform bool receiveShadow; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,_ie=`uniform bool receiveShadow; uniform vec3 ambientLightColor; #if defined( USE_LIGHT_PROBES ) uniform vec3 lightProbe[ 9 ]; @@ -793,7 +793,7 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } -#endif`,yie=`#ifdef USE_ENVMAP +#endif`,vie=`#ifdef USE_ENVMAP vec3 getIBLIrradiance( const in vec3 normal ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); @@ -826,8 +826,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi #endif } #endif -#endif`,bie=`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,xie=`varying vec3 vViewPosition; +#endif`,yie=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,bie=`varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; @@ -839,11 +839,11 @@ void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPo reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,Sie=`BlinnPhongMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,xie=`BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; -material.specularStrength = specularStrength;`,Cie=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,Sie=`varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; @@ -860,7 +860,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geom reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,wie=`PhysicalMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,Cie=`PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); @@ -946,7 +946,7 @@ material.roughness = min( material.roughness, 1.0 ); material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,Tie=`struct PhysicalMaterial { +#endif`,wie=`struct PhysicalMaterial { vec3 diffuseColor; float roughness; vec3 specularColor; @@ -1247,7 +1247,7 @@ void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradia #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,Eie=` +}`,Tie=` vec3 geometryPosition = - vViewPosition; vec3 geometryNormal = normal; vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); @@ -1362,7 +1362,7 @@ IncidentLight directLight; #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,Die=`#if defined( RE_IndirectDiffuse ) +#endif`,Eie=`#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; @@ -1381,32 +1381,32 @@ IncidentLight directLight; #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); #endif -#endif`,Oie=`#if defined( RE_IndirectDiffuse ) +#endif`,Die=`#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,kie=`#if defined( USE_LOGDEPTHBUF ) +#endif`,Oie=`#if defined( USE_LOGDEPTHBUF ) gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,Aie=`#if defined( USE_LOGDEPTHBUF ) +#endif`,kie=`#if defined( USE_LOGDEPTHBUF ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; -#endif`,jie=`#ifdef USE_LOGDEPTHBUF +#endif`,Aie=`#ifdef USE_LOGDEPTHBUF varying float vFragDepth; varying float vIsPerspective; -#endif`,Mie=`#ifdef USE_LOGDEPTHBUF +#endif`,jie=`#ifdef USE_LOGDEPTHBUF vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); -#endif`,Nie=`#ifdef USE_MAP +#endif`,Mie=`#ifdef USE_MAP vec4 sampledDiffuseColor = texture2D( map, vMapUv ); #ifdef DECODE_VIDEO_TEXTURE sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); #endif diffuseColor *= sampledDiffuseColor; -#endif`,Pie=`#ifdef USE_MAP +#endif`,Nie=`#ifdef USE_MAP uniform sampler2D map; -#endif`,Fie=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) +#endif`,Pie=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) #if defined( USE_POINTS_UV ) vec2 uv = vUv; #else @@ -1418,7 +1418,7 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,Iie=`#if defined( USE_POINTS_UV ) +#endif`,Fie=`#if defined( USE_POINTS_UV ) varying vec2 vUv; #else #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) @@ -1430,19 +1430,19 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; -#endif`,Lie=`float metalnessFactor = metalness; +#endif`,Iie=`float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); metalnessFactor *= texelMetalness.b; -#endif`,Rie=`#ifdef USE_METALNESSMAP +#endif`,Lie=`#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; -#endif`,zie=`#ifdef USE_INSTANCING_MORPH +#endif`,Rie=`#ifdef USE_INSTANCING_MORPH float morphTargetInfluences[ MORPHTARGETS_COUNT ]; float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; } -#endif`,Bie=`#if defined( USE_MORPHCOLORS ) +#endif`,zie=`#if defined( USE_MORPHCOLORS ) vColor *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #if defined( USE_COLOR_ALPHA ) @@ -1451,12 +1451,12 @@ IncidentLight directLight; if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; #endif } -#endif`,Vie=`#ifdef USE_MORPHNORMALS +#endif`,Bie=`#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; } -#endif`,Hie=`#ifdef USE_MORPHTARGETS +#endif`,Vie=`#ifdef USE_MORPHTARGETS #ifndef USE_INSTANCING_MORPH uniform float morphTargetBaseInfluence; uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; @@ -1470,12 +1470,12 @@ IncidentLight directLight; ivec3 morphUV = ivec3( x, y, morphTargetIndex ); return texelFetch( morphTargetsTexture, morphUV, 0 ); } -#endif`,Uie=`#ifdef USE_MORPHTARGETS +#endif`,Hie=`#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; } -#endif`,Wie=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#endif`,Uie=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = dFdx( vViewPosition ); vec3 fdy = dFdy( vViewPosition ); @@ -1516,7 +1516,7 @@ IncidentLight directLight; tbn2[1] *= faceDirection; #endif #endif -vec3 nonPerturbedNormal = normal;`,Gie=`#ifdef USE_NORMALMAP_OBJECTSPACE +vec3 nonPerturbedNormal = normal;`,Wie=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; @@ -1531,25 +1531,25 @@ vec3 nonPerturbedNormal = normal;`,Gie=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = normalize( tbn * mapN ); #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,Kie=`#ifndef FLAT_SHADED +#endif`,Gie=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,qie=`#ifndef FLAT_SHADED +#endif`,Kie=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,Jie=`#ifndef FLAT_SHADED +#endif`,qie=`#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif -#endif`,Yie=`#ifdef USE_NORMALMAP +#endif`,Jie=`#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif @@ -1571,13 +1571,13 @@ vec3 nonPerturbedNormal = normal;`,Gie=`#ifdef USE_NORMALMAP_OBJECTSPACE float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); return mat3( T * scale, B * scale, N ); } -#endif`,Xie=`#ifdef USE_CLEARCOAT +#endif`,Yie=`#ifdef USE_CLEARCOAT vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,Zie=`#ifdef USE_CLEARCOAT_NORMALMAP +#endif`,Xie=`#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,Qie=`#ifdef USE_CLEARCOATMAP +#endif`,Zie=`#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP @@ -1586,18 +1586,18 @@ vec3 nonPerturbedNormal = normal;`,Gie=`#ifdef USE_NORMALMAP_OBJECTSPACE #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform sampler2D clearcoatRoughnessMap; -#endif`,$ie=`#ifdef USE_IRIDESCENCEMAP +#endif`,Qie=`#ifdef USE_IRIDESCENCEMAP uniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform sampler2D iridescenceThicknessMap; -#endif`,eae=`#ifdef OPAQUE +#endif`,$ie=`#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= material.transmissionAlpha; #endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,tae=`vec3 packNormalToRGB( const in vec3 normal ) { +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,eae=`vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { @@ -1666,9 +1666,9 @@ float viewZToPerspectiveDepth( const in float viewZ, const in float near, const } float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * depth - far ); -}`,nae=`#ifdef PREMULTIPLIED_ALPHA +}`,tae=`#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; -#endif`,rae=`vec4 mvPosition = vec4( transformed, 1.0 ); +#endif`,nae=`vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING mvPosition = batchingMatrix * mvPosition; #endif @@ -1676,22 +1676,22 @@ float perspectiveDepthToViewZ( const in float depth, const in float near, const mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,iae=`#ifdef DITHERING +gl_Position = projectionMatrix * mvPosition;`,rae=`#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,aae=`#ifdef DITHERING +#endif`,iae=`#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } -#endif`,oae=`float roughnessFactor = roughness; +#endif`,aae=`float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); roughnessFactor *= texelRoughness.g; -#endif`,sae=`#ifdef USE_ROUGHNESSMAP +#endif`,oae=`#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; -#endif`,cae=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,sae=`#if NUM_SPOT_LIGHT_COORDS > 0 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #if NUM_SPOT_LIGHT_MAPS > 0 @@ -1886,7 +1886,7 @@ gl_Position = projectionMatrix * mvPosition;`,iae=`#ifdef DITHERING } return mix( 1.0, shadow, shadowIntensity ); } -#endif`,lae=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,cae=`#if NUM_SPOT_LIGHT_COORDS > 0 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif @@ -1927,7 +1927,7 @@ gl_Position = projectionMatrix * mvPosition;`,iae=`#ifdef DITHERING }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif -#endif`,uae=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) +#endif`,lae=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; #endif @@ -1959,7 +1959,7 @@ gl_Position = projectionMatrix * mvPosition;`,iae=`#ifdef DITHERING vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end -#endif`,dae=`float getShadowMask() { +#endif`,uae=`float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 @@ -1991,12 +1991,12 @@ gl_Position = projectionMatrix * mvPosition;`,iae=`#ifdef DITHERING #endif #endif return shadow; -}`,fae=`#ifdef USE_SKINNING +}`,dae=`#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,pae=`#ifdef USE_SKINNING +#endif`,fae=`#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; uniform highp sampler2D boneTexture; @@ -2011,7 +2011,7 @@ gl_Position = projectionMatrix * mvPosition;`,iae=`#ifdef DITHERING vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); return mat4( v1, v2, v3, v4 ); } -#endif`,mae=`#ifdef USE_SKINNING +#endif`,pae=`#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; @@ -2019,7 +2019,7 @@ gl_Position = projectionMatrix * mvPosition;`,iae=`#ifdef DITHERING skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,hae=`#ifdef USE_SKINNING +#endif`,mae=`#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; @@ -2030,17 +2030,17 @@ gl_Position = projectionMatrix * mvPosition;`,iae=`#ifdef DITHERING #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif -#endif`,gae=`float specularStrength; +#endif`,hae=`float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; -#endif`,_ae=`#ifdef USE_SPECULARMAP +#endif`,gae=`#ifdef USE_SPECULARMAP uniform sampler2D specularMap; -#endif`,vae=`#if defined( TONE_MAPPING ) +#endif`,_ae=`#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,yae=`#ifndef saturate +#endif`,vae=`#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; @@ -2137,7 +2137,7 @@ vec3 NeutralToneMapping( vec3 color ) { float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); return mix( color, vec3( newPeak ), g ); } -vec3 CustomToneMapping( vec3 color ) { return color; }`,bae=`#ifdef USE_TRANSMISSION +vec3 CustomToneMapping( vec3 color ) { return color; }`,yae=`#ifdef USE_TRANSMISSION material.transmission = transmission; material.transmissionAlpha = 1.0; material.thickness = thickness; @@ -2158,7 +2158,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,bae=`#ifdef USE_TRANSMIS material.attenuationColor, material.attenuationDistance ); material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,xae=`#ifdef USE_TRANSMISSION +#endif`,bae=`#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; @@ -2284,7 +2284,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,bae=`#ifdef USE_TRANSMIS float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); } -#endif`,Sae=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,xae=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2354,7 +2354,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,bae=`#ifdef USE_TRANSMIS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,Cae=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,Sae=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2448,7 +2448,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,bae=`#ifdef USE_TRANSMIS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,wae=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,Cae=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) vUv = vec3( uv, 1 ).xy; #endif #ifdef USE_MAP @@ -2519,7 +2519,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,bae=`#ifdef USE_TRANSMIS #endif #ifdef USE_THICKNESSMAP vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,Tae=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 +#endif`,wae=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING worldPosition = batchingMatrix * worldPosition; @@ -2528,7 +2528,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,bae=`#ifdef USE_TRANSMIS worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; -#endif`;const Qy={alphahash_fragment:Dre,alphahash_pars_fragment:Ore,alphamap_fragment:kre,alphamap_pars_fragment:Are,alphatest_fragment:jre,alphatest_pars_fragment:Mre,aomap_fragment:Nre,aomap_pars_fragment:Pre,batching_pars_vertex:Fre,batching_vertex:Ire,begin_vertex:Lre,beginnormal_vertex:Rre,bsdfs:zre,iridescence_fragment:Bre,bumpmap_pars_fragment:Vre,clipping_planes_fragment:Hre,clipping_planes_pars_fragment:Ure,clipping_planes_pars_vertex:Wre,clipping_planes_vertex:Gre,color_fragment:Kre,color_pars_fragment:qre,color_pars_vertex:Jre,color_vertex:Yre,common:Xre,cube_uv_reflection_fragment:Zre,defaultnormal_vertex:Qre,displacementmap_pars_vertex:$re,displacementmap_vertex:eie,emissivemap_fragment:tie,emissivemap_pars_fragment:nie,colorspace_fragment:rie,colorspace_pars_fragment:iie,envmap_fragment:aie,envmap_common_pars_fragment:oie,envmap_pars_fragment:sie,envmap_pars_vertex:cie,envmap_physical_pars_fragment:yie,envmap_vertex:lie,fog_vertex:uie,fog_pars_vertex:die,fog_fragment:fie,fog_pars_fragment:pie,gradientmap_pars_fragment:mie,lightmap_pars_fragment:hie,lights_lambert_fragment:gie,lights_lambert_pars_fragment:_ie,lights_pars_begin:vie,lights_toon_fragment:bie,lights_toon_pars_fragment:xie,lights_phong_fragment:Sie,lights_phong_pars_fragment:Cie,lights_physical_fragment:wie,lights_physical_pars_fragment:Tie,lights_fragment_begin:Eie,lights_fragment_maps:Die,lights_fragment_end:Oie,logdepthbuf_fragment:kie,logdepthbuf_pars_fragment:Aie,logdepthbuf_pars_vertex:jie,logdepthbuf_vertex:Mie,map_fragment:Nie,map_pars_fragment:Pie,map_particle_fragment:Fie,map_particle_pars_fragment:Iie,metalnessmap_fragment:Lie,metalnessmap_pars_fragment:Rie,morphinstance_vertex:zie,morphcolor_vertex:Bie,morphnormal_vertex:Vie,morphtarget_pars_vertex:Hie,morphtarget_vertex:Uie,normal_fragment_begin:Wie,normal_fragment_maps:Gie,normal_pars_fragment:Kie,normal_pars_vertex:qie,normal_vertex:Jie,normalmap_pars_fragment:Yie,clearcoat_normal_fragment_begin:Xie,clearcoat_normal_fragment_maps:Zie,clearcoat_pars_fragment:Qie,iridescence_pars_fragment:$ie,opaque_fragment:eae,packing:tae,premultiplied_alpha_fragment:nae,project_vertex:rae,dithering_fragment:iae,dithering_pars_fragment:aae,roughnessmap_fragment:oae,roughnessmap_pars_fragment:sae,shadowmap_pars_fragment:cae,shadowmap_pars_vertex:lae,shadowmap_vertex:uae,shadowmask_pars_fragment:dae,skinbase_vertex:fae,skinning_pars_vertex:pae,skinning_vertex:mae,skinnormal_vertex:hae,specularmap_fragment:gae,specularmap_pars_fragment:_ae,tonemapping_fragment:vae,tonemapping_pars_fragment:yae,transmission_fragment:bae,transmission_pars_fragment:xae,uv_pars_fragment:Sae,uv_pars_vertex:Cae,uv_vertex:wae,worldpos_vertex:Tae,background_vert:`varying vec2 vUv; +#endif`;const $y={alphahash_fragment:Ere,alphahash_pars_fragment:Dre,alphamap_fragment:Ore,alphamap_pars_fragment:kre,alphatest_fragment:Are,alphatest_pars_fragment:jre,aomap_fragment:Mre,aomap_pars_fragment:Nre,batching_pars_vertex:Pre,batching_vertex:Fre,begin_vertex:Ire,beginnormal_vertex:Lre,bsdfs:Rre,iridescence_fragment:zre,bumpmap_pars_fragment:Bre,clipping_planes_fragment:Vre,clipping_planes_pars_fragment:Hre,clipping_planes_pars_vertex:Ure,clipping_planes_vertex:Wre,color_fragment:Gre,color_pars_fragment:Kre,color_pars_vertex:qre,color_vertex:Jre,common:Yre,cube_uv_reflection_fragment:Xre,defaultnormal_vertex:Zre,displacementmap_pars_vertex:Qre,displacementmap_vertex:$re,emissivemap_fragment:eie,emissivemap_pars_fragment:tie,colorspace_fragment:nie,colorspace_pars_fragment:rie,envmap_fragment:iie,envmap_common_pars_fragment:aie,envmap_pars_fragment:oie,envmap_pars_vertex:sie,envmap_physical_pars_fragment:vie,envmap_vertex:cie,fog_vertex:lie,fog_pars_vertex:uie,fog_fragment:die,fog_pars_fragment:fie,gradientmap_pars_fragment:pie,lightmap_pars_fragment:mie,lights_lambert_fragment:hie,lights_lambert_pars_fragment:gie,lights_pars_begin:_ie,lights_toon_fragment:yie,lights_toon_pars_fragment:bie,lights_phong_fragment:xie,lights_phong_pars_fragment:Sie,lights_physical_fragment:Cie,lights_physical_pars_fragment:wie,lights_fragment_begin:Tie,lights_fragment_maps:Eie,lights_fragment_end:Die,logdepthbuf_fragment:Oie,logdepthbuf_pars_fragment:kie,logdepthbuf_pars_vertex:Aie,logdepthbuf_vertex:jie,map_fragment:Mie,map_pars_fragment:Nie,map_particle_fragment:Pie,map_particle_pars_fragment:Fie,metalnessmap_fragment:Iie,metalnessmap_pars_fragment:Lie,morphinstance_vertex:Rie,morphcolor_vertex:zie,morphnormal_vertex:Bie,morphtarget_pars_vertex:Vie,morphtarget_vertex:Hie,normal_fragment_begin:Uie,normal_fragment_maps:Wie,normal_pars_fragment:Gie,normal_pars_vertex:Kie,normal_vertex:qie,normalmap_pars_fragment:Jie,clearcoat_normal_fragment_begin:Yie,clearcoat_normal_fragment_maps:Xie,clearcoat_pars_fragment:Zie,iridescence_pars_fragment:Qie,opaque_fragment:$ie,packing:eae,premultiplied_alpha_fragment:tae,project_vertex:nae,dithering_fragment:rae,dithering_pars_fragment:iae,roughnessmap_fragment:aae,roughnessmap_pars_fragment:oae,shadowmap_pars_fragment:sae,shadowmap_pars_vertex:cae,shadowmap_vertex:lae,shadowmask_pars_fragment:uae,skinbase_vertex:dae,skinning_pars_vertex:fae,skinning_vertex:pae,skinnormal_vertex:mae,specularmap_fragment:hae,specularmap_pars_fragment:gae,tonemapping_fragment:_ae,tonemapping_pars_fragment:vae,transmission_fragment:yae,transmission_pars_fragment:bae,uv_pars_fragment:xae,uv_pars_vertex:Sae,uv_vertex:Cae,worldpos_vertex:wae,background_vert:`varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; @@ -3584,7 +3584,7 @@ void main() { #include #include #include -}`},$y={common:{diffuse:{value:new Jf(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new od},alphaMap:{value:null},alphaMapTransform:{value:new od},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new od}},envmap:{envMap:{value:null},envMapRotation:{value:new od},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new od}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new od}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new od},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new od},normalScale:{value:new nd(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new od},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new od}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new od}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new od}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Jf(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Jf(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new od},alphaTest:{value:0},uvTransform:{value:new od}},sprite:{diffuse:{value:new Jf(16777215)},opacity:{value:1},center:{value:new nd(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new od},alphaMap:{value:null},alphaMapTransform:{value:new od},alphaTest:{value:0}}},eb={basic:{uniforms:Vp([$y.common,$y.specularmap,$y.envmap,$y.aomap,$y.lightmap,$y.fog]),vertexShader:Qy.meshbasic_vert,fragmentShader:Qy.meshbasic_frag},lambert:{uniforms:Vp([$y.common,$y.specularmap,$y.envmap,$y.aomap,$y.lightmap,$y.emissivemap,$y.bumpmap,$y.normalmap,$y.displacementmap,$y.fog,$y.lights,{emissive:{value:new Jf(0)}}]),vertexShader:Qy.meshlambert_vert,fragmentShader:Qy.meshlambert_frag},phong:{uniforms:Vp([$y.common,$y.specularmap,$y.envmap,$y.aomap,$y.lightmap,$y.emissivemap,$y.bumpmap,$y.normalmap,$y.displacementmap,$y.fog,$y.lights,{emissive:{value:new Jf(0)},specular:{value:new Jf(1118481)},shininess:{value:30}}]),vertexShader:Qy.meshphong_vert,fragmentShader:Qy.meshphong_frag},standard:{uniforms:Vp([$y.common,$y.envmap,$y.aomap,$y.lightmap,$y.emissivemap,$y.bumpmap,$y.normalmap,$y.displacementmap,$y.roughnessmap,$y.metalnessmap,$y.fog,$y.lights,{emissive:{value:new Jf(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Qy.meshphysical_vert,fragmentShader:Qy.meshphysical_frag},toon:{uniforms:Vp([$y.common,$y.aomap,$y.lightmap,$y.emissivemap,$y.bumpmap,$y.normalmap,$y.displacementmap,$y.gradientmap,$y.fog,$y.lights,{emissive:{value:new Jf(0)}}]),vertexShader:Qy.meshtoon_vert,fragmentShader:Qy.meshtoon_frag},matcap:{uniforms:Vp([$y.common,$y.bumpmap,$y.normalmap,$y.displacementmap,$y.fog,{matcap:{value:null}}]),vertexShader:Qy.meshmatcap_vert,fragmentShader:Qy.meshmatcap_frag},points:{uniforms:Vp([$y.points,$y.fog]),vertexShader:Qy.points_vert,fragmentShader:Qy.points_frag},dashed:{uniforms:Vp([$y.common,$y.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Qy.linedashed_vert,fragmentShader:Qy.linedashed_frag},depth:{uniforms:Vp([$y.common,$y.displacementmap]),vertexShader:Qy.depth_vert,fragmentShader:Qy.depth_frag},normal:{uniforms:Vp([$y.common,$y.bumpmap,$y.normalmap,$y.displacementmap,{opacity:{value:1}}]),vertexShader:Qy.meshnormal_vert,fragmentShader:Qy.meshnormal_frag},sprite:{uniforms:Vp([$y.sprite,$y.fog]),vertexShader:Qy.sprite_vert,fragmentShader:Qy.sprite_frag},background:{uniforms:{uvTransform:{value:new od},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Qy.background_vert,fragmentShader:Qy.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new od}},vertexShader:Qy.backgroundCube_vert,fragmentShader:Qy.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Qy.cube_vert,fragmentShader:Qy.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Qy.equirect_vert,fragmentShader:Qy.equirect_frag},distanceRGBA:{uniforms:Vp([$y.common,$y.displacementmap,{referencePosition:{value:new W},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Qy.distanceRGBA_vert,fragmentShader:Qy.distanceRGBA_frag},shadow:{uniforms:Vp([$y.lights,$y.fog,{color:{value:new Jf(0)},opacity:{value:1}}]),vertexShader:Qy.shadow_vert,fragmentShader:Qy.shadow_frag}};eb.physical={uniforms:Vp([eb.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new od},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new od},clearcoatNormalScale:{value:new nd(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new od},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new od},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new od},sheen:{value:0},sheenColor:{value:new Jf(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new od},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new od},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new od},transmissionSamplerSize:{value:new nd},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new od},attenuationDistance:{value:0},attenuationColor:{value:new Jf(0)},specularColor:{value:new Jf(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new od},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new od},anisotropyVector:{value:new nd},anisotropyMap:{value:null},anisotropyMapTransform:{value:new od}}]),vertexShader:Qy.meshphysical_vert,fragmentShader:Qy.meshphysical_frag};const tb={r:0,b:0,g:0},nb=new ff,Eae=new nf;function Dae(e,t,n,r,i,a,o){let s=new Jf(0),c=a===!0?0:1,l,u,d=null,f=0,p=null;function m(e){let r=e.isScene===!0?e.background:null;if(r&&r.isTexture){let i=e.backgroundBlurriness>0;r=(i?n:t).get(r)}return r}function h(t){let n=!1,i=m(t);i===null?_(s,c):i&&i.isColor&&(_(i,1),n=!0);let a=e.xr.getEnvironmentBlendMode();a===`additive`?r.buffers.color.setClear(0,0,0,1,o):a===`alpha-blend`&&r.buffers.color.setClear(0,0,0,0,o),(e.autoClear||n)&&(r.buffers.depth.setTest(!0),r.buffers.depth.setMask(!0),r.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function g(t,n){let r=m(n);r&&(r.isCubeTexture||r.mapping===306)?(u===void 0&&(u=new Ip(new zp(1,1,1),new qp({name:`BackgroundCubeMaterial`,uniforms:Bp(eb.backgroundCube.uniforms),vertexShader:eb.backgroundCube.vertexShader,fragmentShader:eb.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),u.geometry.deleteAttribute(`normal`),u.geometry.deleteAttribute(`uv`),u.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(u.material,`envMap`,{get:function(){return this.uniforms.envMap.value}}),i.update(u)),nb.copy(n.backgroundRotation),nb.x*=-1,nb.y*=-1,nb.z*=-1,r.isCubeTexture&&r.isRenderTargetTexture===!1&&(nb.y*=-1,nb.z*=-1),u.material.uniforms.envMap.value=r,u.material.uniforms.flipEnvMap.value=r.isCubeTexture&&r.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,u.material.uniforms.backgroundRotation.value.setFromMatrix4(Eae.makeRotationFromEuler(nb)),u.material.toneMapped=gd.getTransfer(r.colorSpace)!==Lu,(d!==r||f!==r.version||p!==e.toneMapping)&&(u.material.needsUpdate=!0,d=r,f=r.version,p=e.toneMapping),u.layers.enableAll(),t.unshift(u,u.geometry,u.material,0,0,null)):r&&r.isTexture&&(l===void 0&&(l=new Ip(new __(2,2),new qp({name:`BackgroundMaterial`,uniforms:Bp(eb.background.uniforms),vertexShader:eb.background.vertexShader,fragmentShader:eb.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),Object.defineProperty(l.material,`map`,{get:function(){return this.uniforms.t2D.value}}),i.update(l)),l.material.uniforms.t2D.value=r,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.toneMapped=gd.getTransfer(r.colorSpace)!==Lu,r.matrixAutoUpdate===!0&&r.updateMatrix(),l.material.uniforms.uvTransform.value.copy(r.matrix),(d!==r||f!==r.version||p!==e.toneMapping)&&(l.material.needsUpdate=!0,d=r,f=r.version,p=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null))}function _(t,n){t.getRGB(tb,Up(e)),r.buffers.color.setClear(tb.r,tb.g,tb.b,n,o)}function v(){u!==void 0&&(u.geometry.dispose(),u.material.dispose(),u=void 0),l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0)}return{getClearColor:function(){return s},setClearColor:function(e,t=1){s.set(e),c=t,_(s,c)},getClearAlpha:function(){return c},setClearAlpha:function(e){c=e,_(s,c)},render:h,addToRenderList:g,dispose:v}}function Oae(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n){let i=n.wireframe===!0,a=r[e.id];a===void 0&&(a={},r[e.id]=a);let o=a[t.id];o===void 0&&(o={},a[t.id]=o);let s=o[i];return s===void 0&&(s=f(c()),o[i]=s),s}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c){let n=c[t];if(n.location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===xl;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(console.warn(`THREE.WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`),p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=m>0,S=e.getParameter(e.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,vertexTextures:x,maxSamples:S}}function jae(e){let t=this,n=null,r=0,i=!1,a=!1,o=new Zm,s=new od,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0){let o=new tm(a.height);return o.fromEquirectangularTexture(e,r),t.set(r,o),r.addEventListener(`dispose`,i),n(o.texture,r.mapping)}else return null}}return r}function i(e){let n=e.target;n.removeEventListener(`dispose`,i);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function a(){t=new WeakMap}return{get:r,dispose:a}}const rb=[.125,.215,.35,.446,.526,.582],ib=new Iv,ab=new Jf;let ob=null,sb=0,cb=0,lb=!1;const ub=(1+Math.sqrt(5))/2,db=1/ub,fb=[new W(-ub,db,0),new W(ub,db,0),new W(-db,0,ub),new W(db,0,ub),new W(0,ub,-db),new W(0,ub,db),new W(-1,1,-1),new W(1,1,-1),new W(-1,1,1),new W(1,1,1)],Nae=new W;var pb=class{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100,i={}){let{size:a=256,position:o=Nae}=i;ob=this._renderer.getRenderTarget(),sb=this._renderer.getActiveCubeFace(),cb=this._renderer.getActiveMipmapLevel(),lb=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(a);let s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,n,r,s,o),t>0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=_b(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=gb(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),m&&c.render(p,a),c.render(e,a)}p.geometry.dispose(),p.material.dispose(),c.toneMapping=u,c.autoClear=l,e.background=h}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=_b()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=gb());let i=r?this._cubemapMaterial:this._equirectMaterial,a=new Ip(this._lodPlanes[0],i),o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;hb(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,ib)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodPlanes.length;for(let t=1;t20&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${m} samples when the maximum is set to 20`);let h=[],g=0;for(let e=0;e<20;++e){let t=e/p,n=Math.exp(-t*t/2);h.push(n),e===0?g+=n:e_-4?r-_+4:0),b=4*(this._cubeSize-v);hb(t,y,b,3*v,2*v),s.setRenderTarget(t),s.render(l,ib)}};function Pae(e){let t=[],n=[],r=[],i=e,a=e-4+1+rb.length;for(let o=0;oe-4?s=rb[o-e+4-1]:o===0&&(s=0),r.push(s);let c=1/(a-2),l=-c,u=1+c,d=[l,l,u,l,u,u,l,l,u,u,l,u],f=new Float32Array(108),p=new Float32Array(72),m=new Float32Array(36);for(let e=0;e<6;e++){let t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];f.set(r,18*e),p.set(d,12*e);let i=[e,e,e,e,e,e];m.set(i,6*e)}let h=new wp;h.setAttribute(`position`,new sp(f,3)),h.setAttribute(`uv`,new sp(p,2)),h.setAttribute(`faceIndex`,new sp(m,1)),t.push(h),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}function mb(e,t,n){let r=new Dd(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function hb(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Fae(e,t,n){let r=new Float32Array(20),i=new W(0,1,0),a=new qp({name:`SphericalGaussianBlur`,defines:{n:20,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:vb(),fragmentShader:` +}`},eb={common:{diffuse:{value:new $f(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new fd},alphaMap:{value:null},alphaMapTransform:{value:new fd},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new fd}},envmap:{envMap:{value:null},envMapRotation:{value:new fd},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new fd}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new fd}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new fd},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new fd},normalScale:{value:new cd(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new fd},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new fd}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new fd}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new fd}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new $f(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new $f(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new fd},alphaTest:{value:0},uvTransform:{value:new fd}},sprite:{diffuse:{value:new $f(16777215)},opacity:{value:1},center:{value:new cd(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new fd},alphaMap:{value:null},alphaMapTransform:{value:new fd},alphaTest:{value:0}}},tb={basic:{uniforms:Kp([eb.common,eb.specularmap,eb.envmap,eb.aomap,eb.lightmap,eb.fog]),vertexShader:$y.meshbasic_vert,fragmentShader:$y.meshbasic_frag},lambert:{uniforms:Kp([eb.common,eb.specularmap,eb.envmap,eb.aomap,eb.lightmap,eb.emissivemap,eb.bumpmap,eb.normalmap,eb.displacementmap,eb.fog,eb.lights,{emissive:{value:new $f(0)}}]),vertexShader:$y.meshlambert_vert,fragmentShader:$y.meshlambert_frag},phong:{uniforms:Kp([eb.common,eb.specularmap,eb.envmap,eb.aomap,eb.lightmap,eb.emissivemap,eb.bumpmap,eb.normalmap,eb.displacementmap,eb.fog,eb.lights,{emissive:{value:new $f(0)},specular:{value:new $f(1118481)},shininess:{value:30}}]),vertexShader:$y.meshphong_vert,fragmentShader:$y.meshphong_frag},standard:{uniforms:Kp([eb.common,eb.envmap,eb.aomap,eb.lightmap,eb.emissivemap,eb.bumpmap,eb.normalmap,eb.displacementmap,eb.roughnessmap,eb.metalnessmap,eb.fog,eb.lights,{emissive:{value:new $f(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:$y.meshphysical_vert,fragmentShader:$y.meshphysical_frag},toon:{uniforms:Kp([eb.common,eb.aomap,eb.lightmap,eb.emissivemap,eb.bumpmap,eb.normalmap,eb.displacementmap,eb.gradientmap,eb.fog,eb.lights,{emissive:{value:new $f(0)}}]),vertexShader:$y.meshtoon_vert,fragmentShader:$y.meshtoon_frag},matcap:{uniforms:Kp([eb.common,eb.bumpmap,eb.normalmap,eb.displacementmap,eb.fog,{matcap:{value:null}}]),vertexShader:$y.meshmatcap_vert,fragmentShader:$y.meshmatcap_frag},points:{uniforms:Kp([eb.points,eb.fog]),vertexShader:$y.points_vert,fragmentShader:$y.points_frag},dashed:{uniforms:Kp([eb.common,eb.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:$y.linedashed_vert,fragmentShader:$y.linedashed_frag},depth:{uniforms:Kp([eb.common,eb.displacementmap]),vertexShader:$y.depth_vert,fragmentShader:$y.depth_frag},normal:{uniforms:Kp([eb.common,eb.bumpmap,eb.normalmap,eb.displacementmap,{opacity:{value:1}}]),vertexShader:$y.meshnormal_vert,fragmentShader:$y.meshnormal_frag},sprite:{uniforms:Kp([eb.sprite,eb.fog]),vertexShader:$y.sprite_vert,fragmentShader:$y.sprite_frag},background:{uniforms:{uvTransform:{value:new fd},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:$y.background_vert,fragmentShader:$y.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new fd}},vertexShader:$y.backgroundCube_vert,fragmentShader:$y.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:$y.cube_vert,fragmentShader:$y.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:$y.equirect_vert,fragmentShader:$y.equirect_frag},distanceRGBA:{uniforms:Kp([eb.common,eb.displacementmap,{referencePosition:{value:new W},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:$y.distanceRGBA_vert,fragmentShader:$y.distanceRGBA_frag},shadow:{uniforms:Kp([eb.lights,eb.fog,{color:{value:new $f(0)},opacity:{value:1}}]),vertexShader:$y.shadow_vert,fragmentShader:$y.shadow_frag}};tb.physical={uniforms:Kp([tb.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new fd},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new fd},clearcoatNormalScale:{value:new cd(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new fd},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new fd},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new fd},sheen:{value:0},sheenColor:{value:new $f(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new fd},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new fd},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new fd},transmissionSamplerSize:{value:new cd},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new fd},attenuationDistance:{value:0},attenuationColor:{value:new $f(0)},specularColor:{value:new $f(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new fd},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new fd},anisotropyVector:{value:new cd},anisotropyMap:{value:null},anisotropyMapTransform:{value:new fd}}]),vertexShader:$y.meshphysical_vert,fragmentShader:$y.meshphysical_frag};const nb={r:0,b:0,g:0},rb=new vf,Tae=new uf;function Eae(e,t,n,r,i,a,o){let s=new $f(0),c=a===!0?0:1,l,u,d=null,f=0,p=null;function m(e){let r=e.isScene===!0?e.background:null;if(r&&r.isTexture){let i=e.backgroundBlurriness>0;r=(i?n:t).get(r)}return r}function h(t){let n=!1,i=m(t);i===null?_(s,c):i&&i.isColor&&(_(i,1),n=!0);let a=e.xr.getEnvironmentBlendMode();a===`additive`?r.buffers.color.setClear(0,0,0,1,o):a===`alpha-blend`&&r.buffers.color.setClear(0,0,0,0,o),(e.autoClear||n)&&(r.buffers.depth.setTest(!0),r.buffers.depth.setMask(!0),r.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function g(t,n){let r=m(n);r&&(r.isCubeTexture||r.mapping===306)?(u===void 0&&(u=new Vp(new Wp(1,1,1),new Qp({name:`BackgroundCubeMaterial`,uniforms:Gp(tb.backgroundCube.uniforms),vertexShader:tb.backgroundCube.vertexShader,fragmentShader:tb.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),u.geometry.deleteAttribute(`normal`),u.geometry.deleteAttribute(`uv`),u.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(u.material,`envMap`,{get:function(){return this.uniforms.envMap.value}}),i.update(u)),rb.copy(n.backgroundRotation),rb.x*=-1,rb.y*=-1,rb.z*=-1,r.isCubeTexture&&r.isRenderTargetTexture===!1&&(rb.y*=-1,rb.z*=-1),u.material.uniforms.envMap.value=r,u.material.uniforms.flipEnvMap.value=r.isCubeTexture&&r.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,u.material.uniforms.backgroundRotation.value.setFromMatrix4(Tae.makeRotationFromEuler(rb)),u.material.toneMapped=Sd.getTransfer(r.colorSpace)!==Uu,(d!==r||f!==r.version||p!==e.toneMapping)&&(u.material.needsUpdate=!0,d=r,f=r.version,p=e.toneMapping),u.layers.enableAll(),t.unshift(u,u.geometry,u.material,0,0,null)):r&&r.isTexture&&(l===void 0&&(l=new Vp(new g_(2,2),new Qp({name:`BackgroundMaterial`,uniforms:Gp(tb.background.uniforms),vertexShader:tb.background.vertexShader,fragmentShader:tb.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),Object.defineProperty(l.material,`map`,{get:function(){return this.uniforms.t2D.value}}),i.update(l)),l.material.uniforms.t2D.value=r,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.toneMapped=Sd.getTransfer(r.colorSpace)!==Uu,r.matrixAutoUpdate===!0&&r.updateMatrix(),l.material.uniforms.uvTransform.value.copy(r.matrix),(d!==r||f!==r.version||p!==e.toneMapping)&&(l.material.needsUpdate=!0,d=r,f=r.version,p=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null))}function _(t,n){t.getRGB(nb,Jp(e)),r.buffers.color.setClear(nb.r,nb.g,nb.b,n,o)}function v(){u!==void 0&&(u.geometry.dispose(),u.material.dispose(),u=void 0),l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0)}return{getClearColor:function(){return s},setClearColor:function(e,t=1){s.set(e),c=t,_(s,c)},getClearAlpha:function(){return c},setClearAlpha:function(e){c=e,_(s,c)},render:h,addToRenderList:g,dispose:v}}function Dae(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n){let i=n.wireframe===!0,a=r[e.id];a===void 0&&(a={},r[e.id]=a);let o=a[t.id];o===void 0&&(o={},a[t.id]=o);let s=o[i];return s===void 0&&(s=f(c()),o[i]=s),s}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c){let n=c[t];if(n.location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===El;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(console.warn(`THREE.WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`),p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=m>0,S=e.getParameter(e.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,vertexTextures:x,maxSamples:S}}function Aae(e){let t=this,n=null,r=0,i=!1,a=!1,o=new rh,s=new fd,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0){let o=new om(a.height);return o.fromEquirectangularTexture(e,r),t.set(r,o),r.addEventListener(`dispose`,i),n(o.texture,r.mapping)}else return null}}return r}function i(e){let n=e.target;n.removeEventListener(`dispose`,i);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function a(){t=new WeakMap}return{get:r,dispose:a}}const ib=[.125,.215,.35,.446,.526,.582],ab=new Iv,ob=new $f;let sb=null,cb=0,lb=0,ub=!1;const db=(1+Math.sqrt(5))/2,fb=1/db,pb=[new W(-db,fb,0),new W(db,fb,0),new W(-fb,0,db),new W(fb,0,db),new W(0,db,-fb),new W(0,db,fb),new W(-1,1,-1),new W(1,1,-1),new W(-1,1,1),new W(1,1,1)],Mae=new W;var mb=class{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100,i={}){let{size:a=256,position:o=Mae}=i;sb=this._renderer.getRenderTarget(),cb=this._renderer.getActiveCubeFace(),lb=this._renderer.getActiveMipmapLevel(),ub=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(a);let s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,n,r,s,o),t>0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=vb(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=_b(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),m&&c.render(p,a),c.render(e,a)}p.geometry.dispose(),p.material.dispose(),c.toneMapping=u,c.autoClear=l,e.background=h}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=vb()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=_b());let i=r?this._cubemapMaterial:this._equirectMaterial,a=new Vp(this._lodPlanes[0],i),o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;gb(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,ab)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodPlanes.length;for(let t=1;t20&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${m} samples when the maximum is set to 20`);let h=[],g=0;for(let e=0;e<20;++e){let t=e/p,n=Math.exp(-t*t/2);h.push(n),e===0?g+=n:e_-4?r-_+4:0),b=4*(this._cubeSize-v);gb(t,y,b,3*v,2*v),s.setRenderTarget(t),s.render(l,ab)}};function Nae(e){let t=[],n=[],r=[],i=e,a=e-4+1+ib.length;for(let o=0;oe-4?s=ib[o-e+4-1]:o===0&&(s=0),r.push(s);let c=1/(a-2),l=-c,u=1+c,d=[l,l,u,l,u,u,l,l,u,u,l,u],f=new Float32Array(108),p=new Float32Array(72),m=new Float32Array(36);for(let e=0;e<6;e++){let t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];f.set(r,18*e),p.set(d,12*e);let i=[e,e,e,e,e,e];m.set(i,6*e)}let h=new kp;h.setAttribute(`position`,new fp(f,3)),h.setAttribute(`uv`,new fp(p,2)),h.setAttribute(`faceIndex`,new fp(m,1)),t.push(h),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}function hb(e,t,n){let r=new Nd(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function gb(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Pae(e,t,n){let r=new Float32Array(20),i=new W(0,1,0),a=new Qp({name:`SphericalGaussianBlur`,defines:{n:20,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:yb(),fragmentShader:` precision mediump float; precision mediump int; @@ -3644,7 +3644,7 @@ void main() { } } - `,blending:0,depthTest:!1,depthWrite:!1});return a}function gb(){return new qp({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:vb(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1});return a}function _b(){return new Qp({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:yb(),fragmentShader:` precision mediump float; precision mediump int; @@ -3663,7 +3663,7 @@ void main() { gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function _b(){return new qp({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:vb(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function vb(){return new Qp({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:yb(),fragmentShader:` precision mediump float; precision mediump int; @@ -3679,7 +3679,7 @@ void main() { gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function vb(){return` + `,blending:0,depthTest:!1,depthWrite:!1})}function yb(){return` precision mediump float; precision mediump int; @@ -3734,17 +3734,17 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}function Iae(e){let t=new WeakMap,n=null;function r(r){if(r&&r.isTexture){let o=r.mapping,s=o===303||o===304,c=o===301||o===302;if(s||c){let o=t.get(r),l=o===void 0?0:o.texture.pmremVersion;if(r.isRenderTargetTexture&&r.pmremVersion!==l)return n===null&&(n=new pb(e)),o=s?n.fromEquirectangular(r,o):n.fromCubemap(r,o),o.texture.pmremVersion=r.pmremVersion,t.set(r,o),o.texture;if(o!==void 0)return o.texture;{let l=r.image;return s&&l&&l.height>0||c&&l&&i(l)?(n===null&&(n=new pb(e)),o=s?n.fromEquirectangular(r):n.fromCubemap(r),o.texture.pmremVersion=r.pmremVersion,t.set(r,o),r.addEventListener(`dispose`,a),o.texture):null}}}return r}function i(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function a(e){let n=e.target;n.removeEventListener(`dispose`,a);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function o(){t=new WeakMap,n!==null&&(n.dispose(),n=null)}return{get:r,dispose:o}}function Lae(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r;switch(n){case`WEBGL_depth_texture`:r=e.getExtension(`WEBGL_depth_texture`)||e.getExtension(`MOZ_WEBGL_depth_texture`)||e.getExtension(`WEBKIT_WEBGL_depth_texture`);break;case`EXT_texture_filter_anisotropic`:r=e.getExtension(`EXT_texture_filter_anisotropic`)||e.getExtension(`MOZ_EXT_texture_filter_anisotropic`)||e.getExtension(`WEBKIT_EXT_texture_filter_anisotropic`);break;case`WEBGL_compressed_texture_s3tc`:r=e.getExtension(`WEBGL_compressed_texture_s3tc`)||e.getExtension(`MOZ_WEBGL_compressed_texture_s3tc`)||e.getExtension(`WEBKIT_WEBGL_compressed_texture_s3tc`);break;case`WEBGL_compressed_texture_pvrtc`:r=e.getExtension(`WEBGL_compressed_texture_pvrtc`)||e.getExtension(`WEBKIT_WEBGL_compressed_texture_pvrtc`);break;default:r=e.getExtension(n)}return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&pd(`THREE.WebGLRenderer: `+e+` extension not supported.`),t}}}function Rae(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;for(let e in s.index!==null&&t.remove(s.index),s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0?t:(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++,t)}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;tt.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Od(h,p,m,u);g.type=Cl,g.needsUpdate=!0;let _=f*4;for(let t=0;t0)return e;let i=t*n,a=wb[i];if(a===void 0&&(a=new Float32Array(i),wb[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function Ab(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0||c&&l&&i(l)?(n===null&&(n=new mb(e)),o=s?n.fromEquirectangular(r):n.fromCubemap(r),o.texture.pmremVersion=r.pmremVersion,t.set(r,o),r.addEventListener(`dispose`,a),o.texture):null}}}return r}function i(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function a(e){let n=e.target;n.removeEventListener(`dispose`,a);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function o(){t=new WeakMap,n!==null&&(n.dispose(),n=null)}return{get:r,dispose:o}}function Iae(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r;switch(n){case`WEBGL_depth_texture`:r=e.getExtension(`WEBGL_depth_texture`)||e.getExtension(`MOZ_WEBGL_depth_texture`)||e.getExtension(`WEBKIT_WEBGL_depth_texture`);break;case`EXT_texture_filter_anisotropic`:r=e.getExtension(`EXT_texture_filter_anisotropic`)||e.getExtension(`MOZ_EXT_texture_filter_anisotropic`)||e.getExtension(`WEBKIT_EXT_texture_filter_anisotropic`);break;case`WEBGL_compressed_texture_s3tc`:r=e.getExtension(`WEBGL_compressed_texture_s3tc`)||e.getExtension(`MOZ_WEBGL_compressed_texture_s3tc`)||e.getExtension(`WEBKIT_WEBGL_compressed_texture_s3tc`);break;case`WEBGL_compressed_texture_pvrtc`:r=e.getExtension(`WEBGL_compressed_texture_pvrtc`)||e.getExtension(`WEBKIT_WEBGL_compressed_texture_pvrtc`);break;default:r=e.getExtension(n)}return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&yd(`THREE.WebGLRenderer: `+e+` extension not supported.`),t}}}function Lae(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;for(let e in s.index!==null&&t.remove(s.index),s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0?t:(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++,t)}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;tt.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Pd(h,p,m,u);g.type=Ol,g.needsUpdate=!0;let _=f*4;for(let t=0;t0)return e;let i=t*n,a=Tb[i];if(a===void 0&&(a=new Float32Array(i),Tb[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function jb(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n`:` `} ${i}: ${n[e]}`)}return r.join(` -`)}const Lb=new od;function Foe(e){gd._getMatrix(Lb,gd.workingColorSpace,e);let t=`mat3( ${Lb.elements.map(e=>e.toFixed(4))} )`;switch(gd.getTransfer(e)){case Iu:return[t,`LinearTransferOETF`];case Lu:return[t,`sRGBTransferOETF`];default:return console.warn(`THREE.WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function Rb(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=e.getShaderInfoLog(t)||``,a=i.trim();if(r&&a===``)return``;let o=/ERROR: 0:(\d+)/.exec(a);if(o){let r=parseInt(o[1]);return n.toUpperCase()+` +`)}const Rb=new fd;function Poe(e){Sd._getMatrix(Rb,Sd.workingColorSpace,e);let t=`mat3( ${Rb.elements.map(e=>e.toFixed(4))} )`;switch(Sd.getTransfer(e)){case Hu:return[t,`LinearTransferOETF`];case Uu:return[t,`sRGBTransferOETF`];default:return console.warn(`THREE.WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function zb(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=e.getShaderInfoLog(t)||``,a=i.trim();if(r&&a===``)return``;let o=/ERROR: 0:(\d+)/.exec(a);if(o){let r=parseInt(o[1]);return n.toUpperCase()+` `+a+` -`+Poe(e.getShaderSource(t),r)}else return a}function Ioe(e,t){let n=Foe(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,`}`].join(` -`)}function Loe(e,t){let n;switch(t){case 1:n=`Linear`;break;case 2:n=`Reinhard`;break;case 3:n=`Cineon`;break;case 4:n=`ACESFilmic`;break;case 6:n=`AgX`;break;case 7:n=`Neutral`;break;case 5:n=`Custom`;break;default:console.warn(`THREE.WebGLProgram: Unsupported toneMapping:`,t),n=`Linear`}return`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}const zb=new W;function Roe(){gd.getLuminanceCoefficients(zb);let e=zb.x.toFixed(4),t=zb.y.toFixed(4),n=zb.z.toFixed(4);return[`float luminance( const in vec3 rgb ) {`,` const vec3 weights = vec3( ${e}, ${t}, ${n} );`,` return dot( weights, rgb );`,`}`].join(` -`)}function zoe(e){let t=[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``];return t.filter(Bb).join(` -`)}function Boe(e){let t=[];for(let n in e){let r=e[n];if(r===!1)continue;t.push(`#define `+n+` `+r)}return t.join(` -`)}function Voe(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Ub(e){return e.replace(Hoe,Woe)}const Uoe=new Map;function Woe(e,t){let n=Qy[t];if(n===void 0){let e=Uoe.get(t);if(e!==void 0)n=Qy[e],console.warn(`THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`Can not resolve #include <`+t+`>`)}return Ub(n)}const Goe=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Wb(e){return e.replace(Goe,Koe)}function Koe(e,t,n,r){let i=``;for(let e=parseInt(t);e/gm;function Wb(e){return e.replace(Voe,Uoe)}const Hoe=new Map;function Uoe(e,t){let n=$y[t];if(n===void 0){let e=Hoe.get(t);if(e!==void 0)n=$y[e],console.warn(`THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`Can not resolve #include <`+t+`>`)}return Wb(n)}const Woe=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Gb(e){return e.replace(Woe,Goe)}function Goe(e,t,n,r){let i=``;for(let e=parseInt(t);e0&&(g+=` -`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Bb).join(` +`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Vb).join(` `),_.length>0&&(_+=` -`)):(g=[Gb(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGDEPTHBUF`:``,n.reversedDepthBuffer?`#define USE_REVERSEDEPTHBUF`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` -`].filter(Bb).join(` -`),_=[Gb(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor||n.batchingColor?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGDEPTHBUF`:``,n.reversedDepthBuffer?`#define USE_REVERSEDEPTHBUF`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:Qy.tonemapping_pars_fragment,n.toneMapping===0?``:Loe(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,Qy.colorspace_pars_fragment,Ioe(`linearToOutputTexel`,n.outputColorSpace),Roe(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` -`].filter(Bb).join(` -`)),o=Ub(o),o=Vb(o,n),o=Hb(o,n),s=Ub(s),s=Vb(s,n),s=Hb(s,n),o=Wb(o),s=Wb(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es +`)):(g=[Kb(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGDEPTHBUF`:``,n.reversedDepthBuffer?`#define USE_REVERSEDEPTHBUF`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` +`].filter(Vb).join(` +`),_=[Kb(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor||n.batchingColor?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGDEPTHBUF`:``,n.reversedDepthBuffer?`#define USE_REVERSEDEPTHBUF`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:$y.tonemapping_pars_fragment,n.toneMapping===0?``:Ioe(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,$y.colorspace_pars_fragment,Foe(`linearToOutputTexel`,n.outputColorSpace),Loe(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` +`].filter(Vb).join(` +`)),o=Wb(o),o=Hb(o,n),o=Ub(o,n),s=Wb(s),s=Hb(s,n),s=Ub(s,n),o=Gb(o),s=Gb(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es `,g=[p,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(` `)+` -`+g,_=[`#define varying in`,n.glslVersion===Vu?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===Vu?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(` +`+g,_=[`#define varying in`,n.glslVersion===qu?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===qu?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(` `)+` -`+_);let y=v+g+o,b=v+_+s,x=Ib(i,i.VERTEX_SHADER,y),S=Ib(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.morphTargets===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1)if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=Rb(i,x,`vertex`),n=Rb(i,S,`fragment`);console.error(`THREE.WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` +`+_);let y=v+g+o,b=v+_+s,x=Lb(i,i.VERTEX_SHADER,y),S=Lb(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.morphTargets===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1)if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=zb(i,x,`vertex`),n=zb(i,S,`fragment`);console.error(`THREE.WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` Material Name: `+t.name+` Material Type: `+t.type+` Program Info Log: `+o+` `+e+` -`+n)}else o===``?(s===``||c===``)&&(u=!1):console.warn(`THREE.WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new Fb(i,h),T=Voe(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,37297)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Noe++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}let $oe=0;var ese=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){let t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return a.has(r)===!1&&(a.add(r),r.usedTimes++),a.has(i)===!1&&(a.add(i),i.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new tse(e),t.set(e,n)),n}},tse=class{constructor(e){this.id=$oe++,this.code=e,this.usedTimes=0}};function nse(e,t,n,r,i,a,o){let s=new pf,c=new ese,l=new Set,u=[],d=i.logarithmicDepthBuffer,f=i.vertexTextures,p=i.precision,m={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distanceRGBA`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function h(e){return l.add(e),e===0?`uv`:`uv${e}`}function g(a,s,u,g,_){let v=g.fog,y=_.geometry,b=a.isMeshStandardMaterial?g.environment:null,x=(a.isMeshStandardMaterial?n:t).get(a.envMap||b),S=x&&x.mapping===306?x.image.height:null,C=m[a.type];a.precision!==null&&(p=i.getMaxPrecision(a.precision),p!==a.precision&&console.warn(`THREE.WebGLProgram.getParameters:`,a.precision,`not supported, using`,p,`instead.`));let w=y.morphAttributes.position||y.morphAttributes.normal||y.morphAttributes.color,T=w===void 0?0:w.length,E=0;y.morphAttributes.position!==void 0&&(E=1),y.morphAttributes.normal!==void 0&&(E=2),y.morphAttributes.color!==void 0&&(E=3);let D,O,k,A;if(C){let e=eb[C];D=e.vertexShader,O=e.fragmentShader}else D=a.vertexShader,O=a.fragmentShader,c.update(a),k=c.getVertexShaderID(a),A=c.getFragmentShaderID(a);let j=e.getRenderTarget(),M=e.state.buffers.depth.getReversed(),ee=_.isInstancedMesh===!0,te=_.isBatchedMesh===!0,N=!!a.map,ne=!!a.matcap,re=!!x,ie=!!a.aoMap,ae=!!a.lightMap,oe=!!a.bumpMap,se=!!a.normalMap,ce=!!a.displacementMap,le=!!a.emissiveMap,ue=!!a.metalnessMap,de=!!a.roughnessMap,fe=a.anisotropy>0,pe=a.clearcoat>0,P=a.dispersion>0,me=a.iridescence>0,he=a.sheen>0,ge=a.transmission>0,_e=fe&&!!a.anisotropyMap,ve=pe&&!!a.clearcoatMap,ye=pe&&!!a.clearcoatNormalMap,be=pe&&!!a.clearcoatRoughnessMap,xe=me&&!!a.iridescenceMap,Se=me&&!!a.iridescenceThicknessMap,Ce=he&&!!a.sheenColorMap,we=he&&!!a.sheenRoughnessMap,Te=!!a.specularMap,Ee=!!a.specularColorMap,De=!!a.specularIntensityMap,Oe=ge&&!!a.transmissionMap,ke=ge&&!!a.thicknessMap,Ae=!!a.gradientMap,je=!!a.alphaMap,Me=a.alphaTest>0,Ne=!!a.alphaHash,Pe=!!a.extensions,Fe=0;a.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(Fe=e.toneMapping);let Ie={shaderID:C,shaderType:a.type,shaderName:a.name,vertexShader:D,fragmentShader:O,defines:a.defines,customVertexShaderID:k,customFragmentShaderID:A,isRawShaderMaterial:a.isRawShaderMaterial===!0,glslVersion:a.glslVersion,precision:p,batching:te,batchingColor:te&&_._colorsTexture!==null,instancing:ee,instancingColor:ee&&_.instanceColor!==null,instancingMorph:ee&&_.morphTexture!==null,supportsVertexTextures:f,outputColorSpace:j===null?e.outputColorSpace:j.isXRRenderTarget===!0?j.texture.colorSpace:Fu,alphaToCoverage:!!a.alphaToCoverage,map:N,matcap:ne,envMap:re,envMapMode:re&&x.mapping,envMapCubeUVHeight:S,aoMap:ie,lightMap:ae,bumpMap:oe,normalMap:se,displacementMap:f&&ce,emissiveMap:le,normalMapObjectSpace:se&&a.normalMapType===1,normalMapTangentSpace:se&&a.normalMapType===0,metalnessMap:ue,roughnessMap:de,anisotropy:fe,anisotropyMap:_e,clearcoat:pe,clearcoatMap:ve,clearcoatNormalMap:ye,clearcoatRoughnessMap:be,dispersion:P,iridescence:me,iridescenceMap:xe,iridescenceThicknessMap:Se,sheen:he,sheenColorMap:Ce,sheenRoughnessMap:we,specularMap:Te,specularColorMap:Ee,specularIntensityMap:De,transmission:ge,transmissionMap:Oe,thicknessMap:ke,gradientMap:Ae,opaque:a.transparent===!1&&a.blending===1&&a.alphaToCoverage===!1,alphaMap:je,alphaTest:Me,alphaHash:Ne,combine:a.combine,mapUv:N&&h(a.map.channel),aoMapUv:ie&&h(a.aoMap.channel),lightMapUv:ae&&h(a.lightMap.channel),bumpMapUv:oe&&h(a.bumpMap.channel),normalMapUv:se&&h(a.normalMap.channel),displacementMapUv:ce&&h(a.displacementMap.channel),emissiveMapUv:le&&h(a.emissiveMap.channel),metalnessMapUv:ue&&h(a.metalnessMap.channel),roughnessMapUv:de&&h(a.roughnessMap.channel),anisotropyMapUv:_e&&h(a.anisotropyMap.channel),clearcoatMapUv:ve&&h(a.clearcoatMap.channel),clearcoatNormalMapUv:ye&&h(a.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:be&&h(a.clearcoatRoughnessMap.channel),iridescenceMapUv:xe&&h(a.iridescenceMap.channel),iridescenceThicknessMapUv:Se&&h(a.iridescenceThicknessMap.channel),sheenColorMapUv:Ce&&h(a.sheenColorMap.channel),sheenRoughnessMapUv:we&&h(a.sheenRoughnessMap.channel),specularMapUv:Te&&h(a.specularMap.channel),specularColorMapUv:Ee&&h(a.specularColorMap.channel),specularIntensityMapUv:De&&h(a.specularIntensityMap.channel),transmissionMapUv:Oe&&h(a.transmissionMap.channel),thicknessMapUv:ke&&h(a.thicknessMap.channel),alphaMapUv:je&&h(a.alphaMap.channel),vertexTangents:!!y.attributes.tangent&&(se||fe),vertexColors:a.vertexColors,vertexAlphas:a.vertexColors===!0&&!!y.attributes.color&&y.attributes.color.itemSize===4,pointsUvs:_.isPoints===!0&&!!y.attributes.uv&&(N||je),fog:!!v,useFog:a.fog===!0,fogExp2:!!v&&v.isFogExp2,flatShading:a.flatShading===!0&&a.wireframe===!1,sizeAttenuation:a.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:M,skinning:_.isSkinnedMesh===!0,morphTargets:y.morphAttributes.position!==void 0,morphNormals:y.morphAttributes.normal!==void 0,morphColors:y.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numLightProbes:s.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:Fe,decodeVideoTexture:N&&a.map.isVideoTexture===!0&&gd.getTransfer(a.map.colorSpace)===Lu,decodeVideoTextureEmissive:le&&a.emissiveMap.isVideoTexture===!0&&gd.getTransfer(a.emissiveMap.colorSpace)===Lu,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===2,flipSided:a.side===1,useDepthPacking:a.depthPacking>=0,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionClipCullDistance:Pe&&a.extensions.clipCullDistance===!0&&r.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Pe&&a.extensions.multiDraw===!0||te)&&r.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:r.has(`KHR_parallel_shader_compile`),customProgramCacheKey:a.customProgramCacheKey()};return Ie.vertexUv1s=l.has(1),Ie.vertexUv2s=l.has(2),Ie.vertexUv3s=l.has(3),l.clear(),Ie}function _(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(v(n,t),y(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function v(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function y(e,t){s.disableAll(),t.supportsVertexTextures&&s.enable(0),t.instancing&&s.enable(1),t.instancingColor&&s.enable(2),t.instancingMorph&&s.enable(3),t.matcap&&s.enable(4),t.envMap&&s.enable(5),t.normalMapObjectSpace&&s.enable(6),t.normalMapTangentSpace&&s.enable(7),t.clearcoat&&s.enable(8),t.iridescence&&s.enable(9),t.alphaTest&&s.enable(10),t.vertexColors&&s.enable(11),t.vertexAlphas&&s.enable(12),t.vertexUv1s&&s.enable(13),t.vertexUv2s&&s.enable(14),t.vertexUv3s&&s.enable(15),t.vertexTangents&&s.enable(16),t.anisotropy&&s.enable(17),t.alphaHash&&s.enable(18),t.batching&&s.enable(19),t.dispersion&&s.enable(20),t.batchingColor&&s.enable(21),t.gradientMap&&s.enable(22),e.push(s.mask),s.disableAll(),t.fog&&s.enable(0),t.useFog&&s.enable(1),t.flatShading&&s.enable(2),t.logarithmicDepthBuffer&&s.enable(3),t.reversedDepthBuffer&&s.enable(4),t.skinning&&s.enable(5),t.morphTargets&&s.enable(6),t.morphNormals&&s.enable(7),t.morphColors&&s.enable(8),t.premultipliedAlpha&&s.enable(9),t.shadowMapEnabled&&s.enable(10),t.doubleSided&&s.enable(11),t.flipSided&&s.enable(12),t.useDepthPacking&&s.enable(13),t.dithering&&s.enable(14),t.transmission&&s.enable(15),t.sheen&&s.enable(16),t.opaque&&s.enable(17),t.pointsUvs&&s.enable(18),t.decodeVideoTexture&&s.enable(19),t.decodeVideoTextureEmissive&&s.enable(20),t.alphaToCoverage&&s.enable(21),e.push(s.mask)}function b(e){let t=m[e.type],n;if(t){let e=eb[t];n=Wp.clone(e.uniforms)}else n=e.uniforms;return n}function x(t,n){let r;for(let e=0,t=u.length;e0?r.push(u):a.transparent===!0?i.push(u):n.push(u)}function c(e,t,a,s,c,l){let u=o(e,t,a,s,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function l(e,t){n.length>1&&n.sort(e||ise),r.length>1&&r.sort(t||Kb),i.length>1&&i.sort(t||Kb)}function u(){for(let n=t,r=e.length;n=r.length?(i=new qb,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function ose(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={direction:new W,color:new Jf};break;case`SpotLight`:n={position:new W,direction:new W,color:new Jf,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new W,color:new Jf,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new W,skyColor:new Jf,groundColor:new Jf};break;case`RectAreaLight`:n={color:new Jf,position:new W,halfWidth:new W,halfHeight:new W};break}return e[t.id]=n,n}}}function sse(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new nd};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new nd};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new nd,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}let cse=0;function lse(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function use(e){let t=new ose,n=sse(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new W);let i=new W,a=new nf,o=new nf;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0;i.sort(lse);for(let e=0,y=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=$y.LTC_FLOAT_1,r.rectAreaLTC2=$y.LTC_FLOAT_2):(r.rectAreaLTC1=$y.LTC_HALF_1,r.rectAreaLTC2=$y.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let y=r.hash;(y.directionalLength!==c||y.pointLength!==l||y.spotLength!==u||y.rectAreaLength!==d||y.hemiLength!==f||y.numDirectionalShadows!==p||y.numPointShadows!==m||y.numSpotShadows!==h||y.numSpotMaps!==g||y.numLightProbes!==v)&&(r.directional.length=c,r.spot.length=u,r.rectArea.length=d,r.point.length=l,r.hemi.length=f,r.directionalShadow.length=p,r.directionalShadowMap.length=p,r.pointShadow.length=m,r.pointShadowMap.length=m,r.spotShadow.length=h,r.spotShadowMap.length=h,r.directionalShadowMatrix.length=p,r.pointShadowMatrix.length=m,r.spotLightMatrix.length=h+g-_,r.spotLightMap.length=g,r.numSpotLightShadowsWithMaps=_,r.numLightProbes=v,y.directionalLength=c,y.pointLength=l,y.spotLength=u,y.rectAreaLength=d,y.hemiLength=f,y.numDirectionalShadows=p,y.numPointShadows=m,y.numSpotShadows=h,y.numSpotMaps=g,y.numLightProbes=v,r.version=cse++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=t.matrixWorldInverse;for(let t=0,f=e.length;t=i.length?(a=new Jb(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}function fse(e,t,n){let r=new eh,i=new nd,a=new nd,o=new Td,s=new L_({depthPacking:Mu}),c=new R_,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new qp({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new nd},radius:{value:4}},vertexShader:`void main() { +`+n)}else o===``?(s===``||c===``)&&(u=!1):console.warn(`THREE.WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new Ib(i,h),T=Boe(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,37297)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Moe++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}let Qoe=0;var $oe=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){let t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return a.has(r)===!1&&(a.add(r),r.usedTimes++),a.has(i)===!1&&(a.add(i),i.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new ese(e),t.set(e,n)),n}},ese=class{constructor(e){this.id=Qoe++,this.code=e,this.usedTimes=0}};function tse(e,t,n,r,i,a,o){let s=new yf,c=new $oe,l=new Set,u=[],d=i.logarithmicDepthBuffer,f=i.vertexTextures,p=i.precision,m={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distanceRGBA`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function h(e){return l.add(e),e===0?`uv`:`uv${e}`}function g(a,s,u,g,_){let v=g.fog,y=_.geometry,b=a.isMeshStandardMaterial?g.environment:null,x=(a.isMeshStandardMaterial?n:t).get(a.envMap||b),S=x&&x.mapping===306?x.image.height:null,C=m[a.type];a.precision!==null&&(p=i.getMaxPrecision(a.precision),p!==a.precision&&console.warn(`THREE.WebGLProgram.getParameters:`,a.precision,`not supported, using`,p,`instead.`));let w=y.morphAttributes.position||y.morphAttributes.normal||y.morphAttributes.color,T=w===void 0?0:w.length,E=0;y.morphAttributes.position!==void 0&&(E=1),y.morphAttributes.normal!==void 0&&(E=2),y.morphAttributes.color!==void 0&&(E=3);let D,O,k,A;if(C){let e=tb[C];D=e.vertexShader,O=e.fragmentShader}else D=a.vertexShader,O=a.fragmentShader,c.update(a),k=c.getVertexShaderID(a),A=c.getFragmentShaderID(a);let j=e.getRenderTarget(),M=e.state.buffers.depth.getReversed(),ee=_.isInstancedMesh===!0,te=_.isBatchedMesh===!0,N=!!a.map,ne=!!a.matcap,re=!!x,ie=!!a.aoMap,ae=!!a.lightMap,oe=!!a.bumpMap,se=!!a.normalMap,ce=!!a.displacementMap,le=!!a.emissiveMap,ue=!!a.metalnessMap,de=!!a.roughnessMap,fe=a.anisotropy>0,pe=a.clearcoat>0,P=a.dispersion>0,me=a.iridescence>0,he=a.sheen>0,ge=a.transmission>0,_e=fe&&!!a.anisotropyMap,ve=pe&&!!a.clearcoatMap,ye=pe&&!!a.clearcoatNormalMap,be=pe&&!!a.clearcoatRoughnessMap,xe=me&&!!a.iridescenceMap,Se=me&&!!a.iridescenceThicknessMap,Ce=he&&!!a.sheenColorMap,we=he&&!!a.sheenRoughnessMap,Te=!!a.specularMap,Ee=!!a.specularColorMap,De=!!a.specularIntensityMap,Oe=ge&&!!a.transmissionMap,ke=ge&&!!a.thicknessMap,Ae=!!a.gradientMap,je=!!a.alphaMap,Me=a.alphaTest>0,Ne=!!a.alphaHash,Pe=!!a.extensions,Fe=0;a.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(Fe=e.toneMapping);let Ie={shaderID:C,shaderType:a.type,shaderName:a.name,vertexShader:D,fragmentShader:O,defines:a.defines,customVertexShaderID:k,customFragmentShaderID:A,isRawShaderMaterial:a.isRawShaderMaterial===!0,glslVersion:a.glslVersion,precision:p,batching:te,batchingColor:te&&_._colorsTexture!==null,instancing:ee,instancingColor:ee&&_.instanceColor!==null,instancingMorph:ee&&_.morphTexture!==null,supportsVertexTextures:f,outputColorSpace:j===null?e.outputColorSpace:j.isXRRenderTarget===!0?j.texture.colorSpace:Vu,alphaToCoverage:!!a.alphaToCoverage,map:N,matcap:ne,envMap:re,envMapMode:re&&x.mapping,envMapCubeUVHeight:S,aoMap:ie,lightMap:ae,bumpMap:oe,normalMap:se,displacementMap:f&&ce,emissiveMap:le,normalMapObjectSpace:se&&a.normalMapType===1,normalMapTangentSpace:se&&a.normalMapType===0,metalnessMap:ue,roughnessMap:de,anisotropy:fe,anisotropyMap:_e,clearcoat:pe,clearcoatMap:ve,clearcoatNormalMap:ye,clearcoatRoughnessMap:be,dispersion:P,iridescence:me,iridescenceMap:xe,iridescenceThicknessMap:Se,sheen:he,sheenColorMap:Ce,sheenRoughnessMap:we,specularMap:Te,specularColorMap:Ee,specularIntensityMap:De,transmission:ge,transmissionMap:Oe,thicknessMap:ke,gradientMap:Ae,opaque:a.transparent===!1&&a.blending===1&&a.alphaToCoverage===!1,alphaMap:je,alphaTest:Me,alphaHash:Ne,combine:a.combine,mapUv:N&&h(a.map.channel),aoMapUv:ie&&h(a.aoMap.channel),lightMapUv:ae&&h(a.lightMap.channel),bumpMapUv:oe&&h(a.bumpMap.channel),normalMapUv:se&&h(a.normalMap.channel),displacementMapUv:ce&&h(a.displacementMap.channel),emissiveMapUv:le&&h(a.emissiveMap.channel),metalnessMapUv:ue&&h(a.metalnessMap.channel),roughnessMapUv:de&&h(a.roughnessMap.channel),anisotropyMapUv:_e&&h(a.anisotropyMap.channel),clearcoatMapUv:ve&&h(a.clearcoatMap.channel),clearcoatNormalMapUv:ye&&h(a.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:be&&h(a.clearcoatRoughnessMap.channel),iridescenceMapUv:xe&&h(a.iridescenceMap.channel),iridescenceThicknessMapUv:Se&&h(a.iridescenceThicknessMap.channel),sheenColorMapUv:Ce&&h(a.sheenColorMap.channel),sheenRoughnessMapUv:we&&h(a.sheenRoughnessMap.channel),specularMapUv:Te&&h(a.specularMap.channel),specularColorMapUv:Ee&&h(a.specularColorMap.channel),specularIntensityMapUv:De&&h(a.specularIntensityMap.channel),transmissionMapUv:Oe&&h(a.transmissionMap.channel),thicknessMapUv:ke&&h(a.thicknessMap.channel),alphaMapUv:je&&h(a.alphaMap.channel),vertexTangents:!!y.attributes.tangent&&(se||fe),vertexColors:a.vertexColors,vertexAlphas:a.vertexColors===!0&&!!y.attributes.color&&y.attributes.color.itemSize===4,pointsUvs:_.isPoints===!0&&!!y.attributes.uv&&(N||je),fog:!!v,useFog:a.fog===!0,fogExp2:!!v&&v.isFogExp2,flatShading:a.flatShading===!0&&a.wireframe===!1,sizeAttenuation:a.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:M,skinning:_.isSkinnedMesh===!0,morphTargets:y.morphAttributes.position!==void 0,morphNormals:y.morphAttributes.normal!==void 0,morphColors:y.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numLightProbes:s.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:Fe,decodeVideoTexture:N&&a.map.isVideoTexture===!0&&Sd.getTransfer(a.map.colorSpace)===Uu,decodeVideoTextureEmissive:le&&a.emissiveMap.isVideoTexture===!0&&Sd.getTransfer(a.emissiveMap.colorSpace)===Uu,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===2,flipSided:a.side===1,useDepthPacking:a.depthPacking>=0,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionClipCullDistance:Pe&&a.extensions.clipCullDistance===!0&&r.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Pe&&a.extensions.multiDraw===!0||te)&&r.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:r.has(`KHR_parallel_shader_compile`),customProgramCacheKey:a.customProgramCacheKey()};return Ie.vertexUv1s=l.has(1),Ie.vertexUv2s=l.has(2),Ie.vertexUv3s=l.has(3),l.clear(),Ie}function _(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(v(n,t),y(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function v(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function y(e,t){s.disableAll(),t.supportsVertexTextures&&s.enable(0),t.instancing&&s.enable(1),t.instancingColor&&s.enable(2),t.instancingMorph&&s.enable(3),t.matcap&&s.enable(4),t.envMap&&s.enable(5),t.normalMapObjectSpace&&s.enable(6),t.normalMapTangentSpace&&s.enable(7),t.clearcoat&&s.enable(8),t.iridescence&&s.enable(9),t.alphaTest&&s.enable(10),t.vertexColors&&s.enable(11),t.vertexAlphas&&s.enable(12),t.vertexUv1s&&s.enable(13),t.vertexUv2s&&s.enable(14),t.vertexUv3s&&s.enable(15),t.vertexTangents&&s.enable(16),t.anisotropy&&s.enable(17),t.alphaHash&&s.enable(18),t.batching&&s.enable(19),t.dispersion&&s.enable(20),t.batchingColor&&s.enable(21),t.gradientMap&&s.enable(22),e.push(s.mask),s.disableAll(),t.fog&&s.enable(0),t.useFog&&s.enable(1),t.flatShading&&s.enable(2),t.logarithmicDepthBuffer&&s.enable(3),t.reversedDepthBuffer&&s.enable(4),t.skinning&&s.enable(5),t.morphTargets&&s.enable(6),t.morphNormals&&s.enable(7),t.morphColors&&s.enable(8),t.premultipliedAlpha&&s.enable(9),t.shadowMapEnabled&&s.enable(10),t.doubleSided&&s.enable(11),t.flipSided&&s.enable(12),t.useDepthPacking&&s.enable(13),t.dithering&&s.enable(14),t.transmission&&s.enable(15),t.sheen&&s.enable(16),t.opaque&&s.enable(17),t.pointsUvs&&s.enable(18),t.decodeVideoTexture&&s.enable(19),t.decodeVideoTextureEmissive&&s.enable(20),t.alphaToCoverage&&s.enable(21),e.push(s.mask)}function b(e){let t=m[e.type],n;if(t){let e=tb[t];n=Yp.clone(e.uniforms)}else n=e.uniforms;return n}function x(t,n){let r;for(let e=0,t=u.length;e0?r.push(u):a.transparent===!0?i.push(u):n.push(u)}function c(e,t,a,s,c,l){let u=o(e,t,a,s,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function l(e,t){n.length>1&&n.sort(e||rse),r.length>1&&r.sort(t||qb),i.length>1&&i.sort(t||qb)}function u(){for(let n=t,r=e.length;n=r.length?(i=new Jb,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function ase(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={direction:new W,color:new $f};break;case`SpotLight`:n={position:new W,direction:new W,color:new $f,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new W,color:new $f,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new W,skyColor:new $f,groundColor:new $f};break;case`RectAreaLight`:n={color:new $f,position:new W,halfWidth:new W,halfHeight:new W};break}return e[t.id]=n,n}}}function ose(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new cd};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new cd};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new cd,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}let sse=0;function cse(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function lse(e){let t=new ase,n=ose(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new W);let i=new W,a=new uf,o=new uf;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0;i.sort(cse);for(let e=0,y=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=eb.LTC_FLOAT_1,r.rectAreaLTC2=eb.LTC_FLOAT_2):(r.rectAreaLTC1=eb.LTC_HALF_1,r.rectAreaLTC2=eb.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let y=r.hash;(y.directionalLength!==c||y.pointLength!==l||y.spotLength!==u||y.rectAreaLength!==d||y.hemiLength!==f||y.numDirectionalShadows!==p||y.numPointShadows!==m||y.numSpotShadows!==h||y.numSpotMaps!==g||y.numLightProbes!==v)&&(r.directional.length=c,r.spot.length=u,r.rectArea.length=d,r.point.length=l,r.hemi.length=f,r.directionalShadow.length=p,r.directionalShadowMap.length=p,r.pointShadow.length=m,r.pointShadowMap.length=m,r.spotShadow.length=h,r.spotShadowMap.length=h,r.directionalShadowMatrix.length=p,r.pointShadowMatrix.length=m,r.spotLightMatrix.length=h+g-_,r.spotLightMap.length=g,r.numSpotLightShadowsWithMaps=_,r.numLightProbes=v,y.directionalLength=c,y.pointLength=l,y.spotLength=u,y.rectAreaLength=d,y.hemiLength=f,y.numDirectionalShadows=p,y.numPointShadows=m,y.numSpotShadows=h,y.numSpotMaps=g,y.numLightProbes=v,r.version=sse++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=t.matrixWorldInverse;for(let t=0,f=e.length;t=i.length?(a=new Yb(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}function dse(e,t,n){let r=new oh,i=new cd,a=new cd,o=new jd,s=new I_({depthPacking:Lu}),c=new L_,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new Qp({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new cd},radius:{value:4}},vertexShader:`void main() { gl_Position = vec4( position, 1.0 ); }`,fragmentShader:`uniform sampler2D shadow_pass; uniform vec2 resolution; @@ -3813,7 +3813,7 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new wp;m.setAttribute(`position`,new sp(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new Ip(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==3&&this.type===3,m=_===3&&this.type!==3;for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/h.x),i.x=a.x*h.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/h.y),i.y=a.y*h.y,d.mapSize.y=a.y)),d.map===null||p===!0||m===!0){let e=this.type===3?{}:{minFilter:dl,magFilter:dl};d.map!==null&&d.map.dispose(),d.map=new Dd(i.x,i.y,e),d.map.texture.name=l.name+`.shadowMap`,d.camera.updateProjectionMatrix()}e.setRenderTarget(d.map),e.clear();let g=d.getViewportCount();for(let e=0;e0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;let c=n.layers.test(i.layers);if(c&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(ee=parseFloat(/^WebGL (\d)/.exec(te)[1]),M=ee>=1);let N=null,ne={},re=e.getParameter(e.SCISSOR_BOX),ie=e.getParameter(e.VIEWPORT),ae=new Td().fromArray(re),oe=new Td().fromArray(ie);function se(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new nd,u=new WeakMap,d,f=new WeakMap,p=!1;try{p=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function m(e,t){return p?new OffscreenCanvas(e,t):ud(`canvas`)}function h(e,t,n){let r=1,i=Ce(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1)if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);d===void 0&&(d=m(n,a));let o=t?m(n,a):d;o.width=n,o.height=a;let s=o.getContext(`2d`);return s.drawImage(e,0,0,n,a),console.warn(`THREE.WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}else return`data`in e&&console.warn(`THREE.WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e;return e}function g(e){return e.generateMipmaps}function _(t){e.generateMipmap(t)}function v(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function y(n,r,i,a,o=!1){if(n!==null){if(e[n]!==void 0)return e[n];console.warn(`THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let s=r;if(r===e.RED&&(i===e.FLOAT&&(s=e.R32F),i===e.HALF_FLOAT&&(s=e.R16F),i===e.UNSIGNED_BYTE&&(s=e.R8)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.R8UI),i===e.UNSIGNED_SHORT&&(s=e.R16UI),i===e.UNSIGNED_INT&&(s=e.R32UI),i===e.BYTE&&(s=e.R8I),i===e.SHORT&&(s=e.R16I),i===e.INT&&(s=e.R32I)),r===e.RG&&(i===e.FLOAT&&(s=e.RG32F),i===e.HALF_FLOAT&&(s=e.RG16F),i===e.UNSIGNED_BYTE&&(s=e.RG8)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.RG8UI),i===e.UNSIGNED_SHORT&&(s=e.RG16UI),i===e.UNSIGNED_INT&&(s=e.RG32UI),i===e.BYTE&&(s=e.RG8I),i===e.SHORT&&(s=e.RG16I),i===e.INT&&(s=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.RGB8UI),i===e.UNSIGNED_SHORT&&(s=e.RGB16UI),i===e.UNSIGNED_INT&&(s=e.RGB32UI),i===e.BYTE&&(s=e.RGB8I),i===e.SHORT&&(s=e.RGB16I),i===e.INT&&(s=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(s=e.RGBA16UI),i===e.UNSIGNED_INT&&(s=e.RGBA32UI),i===e.BYTE&&(s=e.RGBA8I),i===e.SHORT&&(s=e.RGBA16I),i===e.INT&&(s=e.RGBA32I)),r===e.RGB&&i===e.UNSIGNED_INT_5_9_9_9_REV&&(s=e.RGB9_E5),r===e.RGBA){let t=o?Iu:gd.getTransfer(a);i===e.FLOAT&&(s=e.RGBA32F),i===e.HALF_FLOAT&&(s=e.RGBA16F),i===e.UNSIGNED_BYTE&&(s=t===Lu?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT_4_4_4_4&&(s=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(s=e.RGB5_A1)}return(s===e.R16F||s===e.R32F||s===e.RG16F||s===e.RG32F||s===e.RGBA16F||s===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),s}function b(t,n){let r;return t?n===null||n===Sl||n===Dl?r=e.DEPTH24_STENCIL8:n===Cl?r=e.DEPTH32F_STENCIL8:n===bl&&(r=e.DEPTH24_STENCIL8,console.warn(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===Sl||n===Dl?r=e.DEPTH_COMPONENT24:n===Cl?r=e.DEPTH_COMPONENT32F:n===bl&&(r=e.DEPTH_COMPONENT16),r}function x(e,t){return g(e)===!0||e.isFramebufferTexture&&e.minFilter!==dl&&e.minFilter!==ml?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function S(e){let t=e.target;t.removeEventListener(`dispose`,S),w(t),t.isVideoTexture&&u.delete(t)}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),E(t)}function w(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=f.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&T(e),Object.keys(i).length===0&&f.delete(n)}r.remove(e)}function T(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=f.get(i);delete a[n.__cacheKey],o.memory.textures--}function E(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&console.warn(`THREE.WebGLTextures: Trying to use `+e+` texture units while this GPU supports only `+i.maxTextures),D+=1,e}function A(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function j(t,i){let a=r.get(t);if(t.isVideoTexture&&xe(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)console.warn(`THREE.WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)console.warn(`THREE.WebGLRenderer: Texture marked for update but image is incomplete`);else{ce(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function M(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){ce(a,t,i);return}n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i)}function ee(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){ce(a,t,i);return}n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function te(t,i){let a=r.get(t);if(t.version>0&&a.__version!==t.version){le(a,t,i);return}n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let N={[cl]:e.REPEAT,[ll]:e.CLAMP_TO_EDGE,[ul]:e.MIRRORED_REPEAT},ne={[dl]:e.NEAREST,[fl]:e.NEAREST_MIPMAP_NEAREST,[pl]:e.NEAREST_MIPMAP_LINEAR,[ml]:e.LINEAR,[hl]:e.LINEAR_MIPMAP_NEAREST,[gl]:e.LINEAR_MIPMAP_LINEAR},re={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function ie(n,a){if(a.type===Cl&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===ml||a.magFilter===hl||a.magFilter===pl||a.magFilter===gl||a.minFilter===ml||a.minFilter===hl||a.minFilter===pl||a.minFilter===gl)&&console.warn(`THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,N[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,N[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,N[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,ne[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,ne[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,re[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===dl||a.minFilter!==pl&&a.minFilter!==gl||a.type===Cl&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ae(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,S));let i=n.source,a=f.get(i);a===void 0&&(a={},f.set(i,a));let s=A(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&T(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function oe(e,t,n){return Math.floor(Math.floor(e/n)/t)}function se(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){T&&E&&n.texStorage2D(e.TEXTURE_2D,O,S,w[0].width,w[0].height);for(let t=0,r=w.length;t0){let r=Yy(C.width,C.height,o.format,o.type);for(let i of o.layerUpdates){let a=C.data.subarray(i*r/C.data.BYTES_PER_ELEMENT,(i+1)*r/C.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,i,C.width,C.height,1,m,a)}o.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,C.width,C.height,p.depth,m,C.data)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,S,C.width,C.height,p.depth,0,C.data,0,0);else console.warn(`THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`);else T?D&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,C.width,C.height,p.depth,m,v,C.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,S,C.width,C.height,p.depth,0,m,v,C.data)}else{T&&E&&n.texStorage2D(e.TEXTURE_2D,O,S,w[0].width,w[0].height);for(let t=0,r=w.length;t0){let t=Yy(p.width,p.height,o.format,o.type);for(let r of o.layerUpdates){let i=p.data.subarray(r*t/p.data.BYTES_PER_ELEMENT,(r+1)*t/p.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,r,p.width,p.height,1,m,v,i)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,p.width,p.height,p.depth,m,v,p.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,S,p.width,p.height,p.depth,0,m,v,p.data);else if(o.isData3DTexture)T?(E&&n.texStorage3D(e.TEXTURE_3D,O,S,p.width,p.height,p.depth),D&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,p.width,p.height,p.depth,m,v,p.data)):n.texImage3D(e.TEXTURE_3D,0,S,p.width,p.height,p.depth,0,m,v,p.data);else if(o.isFramebufferTexture){if(E)if(T)n.texStorage2D(e.TEXTURE_2D,O,S,p.width,p.height);else{let t=p.width,r=p.height;for(let i=0;i>=1,r>>=1}}else if(w.length>0){if(T&&E){let t=Ce(w[0]);n.texStorage2D(e.TEXTURE_2D,O,S,t.width,t.height)}for(let t=0,r=w.length;t0&&D++;let t=Ce(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,b,S,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,b,S,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),be(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,ye(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function de(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=b(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,l=ye(n),u=be(n);u?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,l,o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,l,o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)throw Error(`target.depthTexture not supported in Cube render targets`);let e=t.texture.mipmaps;e&&e.length>0?fe(i.__webglFramebuffer[0],t):fe(i.__webglFramebuffer,t)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),de(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),de(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function P(t,n,i){let a=r.get(t);n!==void 0&&ue(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&pe(t)}function me(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,C);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&be(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(be(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function xe(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function Se(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==Fu&&n!==``&&(gd.getTransfer(n)===Lu?(r!==jl||i!==_l)&&console.warn(`THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):console.error(`THREE.WebGLTextures: Unsupported texture color space:`,n)),t}function Ce(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=k,this.resetTextureUnits=O,this.setTexture2D=j,this.setTexture2DArray=M,this.setTexture3D=ee,this.setTextureCube=te,this.rebindTextures=P,this.setupRenderTarget=me,this.updateRenderTargetMipmap=he,this.updateMultisampleRenderTarget=ve,this.setupDepthRenderbuffer=pe,this.setupFrameBufferTexture=ue,this.useMultisampledRTT=be}function Yb(e,t){function n(n,r=``){let i,a=gd.getTransfer(r);if(n===_l)return e.UNSIGNED_BYTE;if(n===Tl)return e.UNSIGNED_SHORT_4_4_4_4;if(n===El)return e.UNSIGNED_SHORT_5_5_5_1;if(n===Ol)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===vl)return e.BYTE;if(n===yl)return e.SHORT;if(n===bl)return e.UNSIGNED_SHORT;if(n===xl)return e.INT;if(n===Sl)return e.UNSIGNED_INT;if(n===Cl)return e.FLOAT;if(n===wl)return e.HALF_FLOAT;if(n===kl)return e.ALPHA;if(n===Al)return e.RGB;if(n===jl)return e.RGBA;if(n===Ml)return e.DEPTH_COMPONENT;if(n===Nl)return e.DEPTH_STENCIL;if(n===Pl)return e.RED;if(n===Fl)return e.RED_INTEGER;if(n===Il)return e.RG;if(n===Ll)return e.RG_INTEGER;if(n===Rl)return e.RGBA_INTEGER;if(n===zl||n===Bl||n===Vl||n===Hl)if(a===Lu)if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===zl)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===Bl)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===Vl)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===Hl)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===zl)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===Bl)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===Vl)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===Hl)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===Ul||n===Wl||n===Gl||n===Kl)if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===Ul)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Wl)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Gl)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Kl)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===ql||n===Jl||n===Yl)if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===ql||n===Jl)return a===Lu?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===Yl)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===Xl||n===Zl||n===Ql||n===$l||n===eu||n===tu||n===nu||n===ru||n===iu||n===au||n===ou||n===su||n===cu||n===lu)if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===Xl)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Zl)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Ql)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===$l)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===eu)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===tu)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===nu)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===ru)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===iu)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===au)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===ou)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===su)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===cu)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===lu)return a===Lu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===uu||n===du||n===fu)if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===uu)return a===Lu?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===du)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===fu)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===pu||n===mu||n===hu||n===gu)if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===uu)return i.COMPRESSED_RED_RGTC1_EXT;if(n===mu)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===hu)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===gu)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===Dl?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var Xb=class extends wd{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}},gse=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new Xb(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new qp({vertexShader:` +}`}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new kp;m.setAttribute(`position`,new fp(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new Vp(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==3&&this.type===3,m=_===3&&this.type!==3;for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/h.x),i.x=a.x*h.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/h.y),i.y=a.y*h.y,d.mapSize.y=a.y)),d.map===null||p===!0||m===!0){let e=this.type===3?{}:{minFilter:gl,magFilter:gl};d.map!==null&&d.map.dispose(),d.map=new Nd(i.x,i.y,e),d.map.texture.name=l.name+`.shadowMap`,d.camera.updateProjectionMatrix()}e.setRenderTarget(d.map),e.clear();let g=d.getViewportCount();for(let e=0;e0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;let c=n.layers.test(i.layers);if(c&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(ee=parseFloat(/^WebGL (\d)/.exec(te)[1]),M=ee>=1);let N=null,ne={},re=e.getParameter(e.SCISSOR_BOX),ie=e.getParameter(e.VIEWPORT),ae=new jd().fromArray(re),oe=new jd().fromArray(ie);function se(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new cd,u=new WeakMap,d,f=new WeakMap,p=!1;try{p=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function m(e,t){return p?new OffscreenCanvas(e,t):gd(`canvas`)}function h(e,t,n){let r=1,i=Ce(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1)if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);d===void 0&&(d=m(n,a));let o=t?m(n,a):d;o.width=n,o.height=a;let s=o.getContext(`2d`);return s.drawImage(e,0,0,n,a),console.warn(`THREE.WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}else return`data`in e&&console.warn(`THREE.WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e;return e}function g(e){return e.generateMipmaps}function _(t){e.generateMipmap(t)}function v(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function y(n,r,i,a,o=!1){if(n!==null){if(e[n]!==void 0)return e[n];console.warn(`THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let s=r;if(r===e.RED&&(i===e.FLOAT&&(s=e.R32F),i===e.HALF_FLOAT&&(s=e.R16F),i===e.UNSIGNED_BYTE&&(s=e.R8)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.R8UI),i===e.UNSIGNED_SHORT&&(s=e.R16UI),i===e.UNSIGNED_INT&&(s=e.R32UI),i===e.BYTE&&(s=e.R8I),i===e.SHORT&&(s=e.R16I),i===e.INT&&(s=e.R32I)),r===e.RG&&(i===e.FLOAT&&(s=e.RG32F),i===e.HALF_FLOAT&&(s=e.RG16F),i===e.UNSIGNED_BYTE&&(s=e.RG8)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.RG8UI),i===e.UNSIGNED_SHORT&&(s=e.RG16UI),i===e.UNSIGNED_INT&&(s=e.RG32UI),i===e.BYTE&&(s=e.RG8I),i===e.SHORT&&(s=e.RG16I),i===e.INT&&(s=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.RGB8UI),i===e.UNSIGNED_SHORT&&(s=e.RGB16UI),i===e.UNSIGNED_INT&&(s=e.RGB32UI),i===e.BYTE&&(s=e.RGB8I),i===e.SHORT&&(s=e.RGB16I),i===e.INT&&(s=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(s=e.RGBA16UI),i===e.UNSIGNED_INT&&(s=e.RGBA32UI),i===e.BYTE&&(s=e.RGBA8I),i===e.SHORT&&(s=e.RGBA16I),i===e.INT&&(s=e.RGBA32I)),r===e.RGB&&i===e.UNSIGNED_INT_5_9_9_9_REV&&(s=e.RGB9_E5),r===e.RGBA){let t=o?Hu:Sd.getTransfer(a);i===e.FLOAT&&(s=e.RGBA32F),i===e.HALF_FLOAT&&(s=e.RGBA16F),i===e.UNSIGNED_BYTE&&(s=t===Uu?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT_4_4_4_4&&(s=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(s=e.RGB5_A1)}return(s===e.R16F||s===e.R32F||s===e.RG16F||s===e.RG32F||s===e.RGBA16F||s===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),s}function b(t,n){let r;return t?n===null||n===Dl||n===Ml?r=e.DEPTH24_STENCIL8:n===Ol?r=e.DEPTH32F_STENCIL8:n===Tl&&(r=e.DEPTH24_STENCIL8,console.warn(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===Dl||n===Ml?r=e.DEPTH_COMPONENT24:n===Ol?r=e.DEPTH_COMPONENT32F:n===Tl&&(r=e.DEPTH_COMPONENT16),r}function x(e,t){return g(e)===!0||e.isFramebufferTexture&&e.minFilter!==gl&&e.minFilter!==yl?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function S(e){let t=e.target;t.removeEventListener(`dispose`,S),w(t),t.isVideoTexture&&u.delete(t)}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),E(t)}function w(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=f.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&T(e),Object.keys(i).length===0&&f.delete(n)}r.remove(e)}function T(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=f.get(i);delete a[n.__cacheKey],o.memory.textures--}function E(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&console.warn(`THREE.WebGLTextures: Trying to use `+e+` texture units while this GPU supports only `+i.maxTextures),D+=1,e}function A(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function j(t,i){let a=r.get(t);if(t.isVideoTexture&&xe(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)console.warn(`THREE.WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)console.warn(`THREE.WebGLRenderer: Texture marked for update but image is incomplete`);else{ce(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function M(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){ce(a,t,i);return}n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i)}function ee(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){ce(a,t,i);return}n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function te(t,i){let a=r.get(t);if(t.version>0&&a.__version!==t.version){le(a,t,i);return}n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let N={[pl]:e.REPEAT,[ml]:e.CLAMP_TO_EDGE,[hl]:e.MIRRORED_REPEAT},ne={[gl]:e.NEAREST,[_l]:e.NEAREST_MIPMAP_NEAREST,[vl]:e.NEAREST_MIPMAP_LINEAR,[yl]:e.LINEAR,[bl]:e.LINEAR_MIPMAP_NEAREST,[xl]:e.LINEAR_MIPMAP_LINEAR},re={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function ie(n,a){if(a.type===Ol&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===yl||a.magFilter===bl||a.magFilter===vl||a.magFilter===xl||a.minFilter===yl||a.minFilter===bl||a.minFilter===vl||a.minFilter===xl)&&console.warn(`THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,N[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,N[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,N[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,ne[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,ne[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,re[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===gl||a.minFilter!==vl&&a.minFilter!==xl||a.type===Ol&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ae(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,S));let i=n.source,a=f.get(i);a===void 0&&(a={},f.set(i,a));let s=A(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&T(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function oe(e,t,n){return Math.floor(Math.floor(e/n)/t)}function se(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){T&&E&&n.texStorage2D(e.TEXTURE_2D,O,S,w[0].width,w[0].height);for(let t=0,r=w.length;t0){let r=Xy(C.width,C.height,o.format,o.type);for(let i of o.layerUpdates){let a=C.data.subarray(i*r/C.data.BYTES_PER_ELEMENT,(i+1)*r/C.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,i,C.width,C.height,1,m,a)}o.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,C.width,C.height,p.depth,m,C.data)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,S,C.width,C.height,p.depth,0,C.data,0,0);else console.warn(`THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`);else T?D&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,C.width,C.height,p.depth,m,v,C.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,S,C.width,C.height,p.depth,0,m,v,C.data)}else{T&&E&&n.texStorage2D(e.TEXTURE_2D,O,S,w[0].width,w[0].height);for(let t=0,r=w.length;t0){let t=Xy(p.width,p.height,o.format,o.type);for(let r of o.layerUpdates){let i=p.data.subarray(r*t/p.data.BYTES_PER_ELEMENT,(r+1)*t/p.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,r,p.width,p.height,1,m,v,i)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,p.width,p.height,p.depth,m,v,p.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,S,p.width,p.height,p.depth,0,m,v,p.data);else if(o.isData3DTexture)T?(E&&n.texStorage3D(e.TEXTURE_3D,O,S,p.width,p.height,p.depth),D&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,p.width,p.height,p.depth,m,v,p.data)):n.texImage3D(e.TEXTURE_3D,0,S,p.width,p.height,p.depth,0,m,v,p.data);else if(o.isFramebufferTexture){if(E)if(T)n.texStorage2D(e.TEXTURE_2D,O,S,p.width,p.height);else{let t=p.width,r=p.height;for(let i=0;i>=1,r>>=1}}else if(w.length>0){if(T&&E){let t=Ce(w[0]);n.texStorage2D(e.TEXTURE_2D,O,S,t.width,t.height)}for(let t=0,r=w.length;t0&&D++;let t=Ce(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,b,S,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,b,S,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),be(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,ye(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function de(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=b(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,l=ye(n),u=be(n);u?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,l,o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,l,o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)throw Error(`target.depthTexture not supported in Cube render targets`);let e=t.texture.mipmaps;e&&e.length>0?fe(i.__webglFramebuffer[0],t):fe(i.__webglFramebuffer,t)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),de(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),de(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function P(t,n,i){let a=r.get(t);n!==void 0&&ue(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&pe(t)}function me(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,C);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&be(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(be(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function xe(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function Se(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==Vu&&n!==``&&(Sd.getTransfer(n)===Uu?(r!==Il||i!==Sl)&&console.warn(`THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):console.error(`THREE.WebGLTextures: Unsupported texture color space:`,n)),t}function Ce(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=k,this.resetTextureUnits=O,this.setTexture2D=j,this.setTexture2DArray=M,this.setTexture3D=ee,this.setTextureCube=te,this.rebindTextures=P,this.setupRenderTarget=me,this.updateRenderTargetMipmap=he,this.updateMultisampleRenderTarget=ve,this.setupDepthRenderbuffer=pe,this.setupFrameBufferTexture=ue,this.useMultisampledRTT=be}function Xb(e,t){function n(n,r=``){let i,a=Sd.getTransfer(r);if(n===Sl)return e.UNSIGNED_BYTE;if(n===Al)return e.UNSIGNED_SHORT_4_4_4_4;if(n===jl)return e.UNSIGNED_SHORT_5_5_5_1;if(n===Nl)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===Cl)return e.BYTE;if(n===wl)return e.SHORT;if(n===Tl)return e.UNSIGNED_SHORT;if(n===El)return e.INT;if(n===Dl)return e.UNSIGNED_INT;if(n===Ol)return e.FLOAT;if(n===kl)return e.HALF_FLOAT;if(n===Pl)return e.ALPHA;if(n===Fl)return e.RGB;if(n===Il)return e.RGBA;if(n===Ll)return e.DEPTH_COMPONENT;if(n===Rl)return e.DEPTH_STENCIL;if(n===zl)return e.RED;if(n===Bl)return e.RED_INTEGER;if(n===Vl)return e.RG;if(n===Hl)return e.RG_INTEGER;if(n===Ul)return e.RGBA_INTEGER;if(n===Wl||n===Gl||n===Kl||n===ql)if(a===Uu)if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===Wl)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===Gl)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===Kl)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===ql)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===Wl)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===Gl)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===Kl)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===ql)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===Jl||n===Yl||n===Xl||n===Zl)if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===Jl)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Yl)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Xl)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Zl)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===Ql||n===$l||n===eu)if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===Ql||n===$l)return a===Uu?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===eu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===tu||n===nu||n===ru||n===iu||n===au||n===ou||n===su||n===cu||n===lu||n===uu||n===du||n===fu||n===pu||n===mu)if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===tu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===nu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===ru)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===iu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===au)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===ou)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===su)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===cu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===lu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===uu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===du)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===fu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===pu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===mu)return a===Uu?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===hu||n===gu||n===_u)if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===hu)return a===Uu?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===gu)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===_u)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===vu||n===yu||n===bu||n===xu)if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===hu)return i.COMPRESSED_RED_RGTC1_EXT;if(n===yu)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===bu)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===xu)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===Ml?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var Zb=class extends Ad{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}},hse=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new Zb(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new Qp({vertexShader:` void main() { gl_Position = vec4( position, 1.0 ); @@ -3837,22 +3837,25 @@ void main() { } -}`,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Ip(new __(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},_se=class extends Wu{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=new gse,h={},g=t.getContextAttributes(),_=null,v=null,y=[],b=[],x=new nd,S=null,C=new Qp;C.viewport=new Td;let w=new Qp;w.viewport=new Td;let T=[C,w],E=new ty,D=null,O=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=y[e];return t===void 0&&(t=new rm,y[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=y[e];return t===void 0&&(t=new rm,y[e]=t),t.getGripSpace()},this.getHand=function(e){let t=y[e];return t===void 0&&(t=new rm,y[e]=t),t.getHandSpace()};function k(e){let t=b.indexOf(e.inputSource);if(t===-1)return;let n=y[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function A(){r.removeEventListener(`select`,k),r.removeEventListener(`selectstart`,k),r.removeEventListener(`selectend`,k),r.removeEventListener(`squeeze`,k),r.removeEventListener(`squeezestart`,k),r.removeEventListener(`squeezeend`,k),r.removeEventListener(`end`,A),r.removeEventListener(`inputsourceschange`,j);for(let e=0;e=0&&(b[r]=null,y[r].disconnect(n))}for(let t=0;t=b.length){b.push(n),r=e;break}else if(b[e]===null){b[e]=n,r=e;break}if(r===-1)break}let i=y[r];i&&i.connect(n)}}let M=new W,ee=new W;function te(e,t,n){M.setFromMatrixPosition(t.matrixWorld),ee.setFromMatrixPosition(n.matrixWorld);let r=M.distanceTo(ee),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function N(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;m.texture!==null&&(m.depthNear>0&&(t=m.depthNear),m.depthFar>0&&(n=m.depthFar)),E.near=w.near=C.near=t,E.far=w.far=C.far=n,(D!==E.near||O!==E.far)&&(r.updateRenderState({depthNear:E.near,depthFar:E.far}),D=E.near,O=E.far),E.layers.mask=e.layers.mask|6,C.layers.mask=E.layers.mask&3,w.layers.mask=E.layers.mask&5;let i=e.parent,a=E.cameras;N(E,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,Zb.copy(o),Zb.x*=-1,Zb.y*=-1,Zb.z*=-1,a.isCubeTexture&&a.isRenderTargetTexture===!1&&(Zb.y*=-1,Zb.z*=-1),e.envMapRotation.value.setFromMatrix4(vse.makeRotationFromEuler(Zb)),e.flipEnvMap.value=a.isCubeTexture&&a.isRenderTargetTexture===!1?-1:1,e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function bse(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(m(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,g));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function h(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn(`THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group.`):console.warn(`THREE.WebGLRenderer: Unsupported uniform value type.`,e),t}function g(t){let n=t.target;n.removeEventListener(`dispose`,g);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function _(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:_}}var Qb=class{constructor(e={}){let{canvas:t=dd(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1}=e;this.isWebGLRenderer=!0;let f;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);f=n.getContextAttributes().alpha}else f=a;let p=new Uint32Array(4),m=new Int32Array(4),h=null,g=null,_=[],v=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let y=this,b=!1;this._outputColorSpace=Pu;let x=0,S=0,C=null,w=-1,T=null,E=new Td,D=new Td,O=null,k=new Jf(0),A=0,j=t.width,M=t.height,ee=1,te=null,N=null,ne=new Td(0,0,j,M),re=new Td(0,0,j,M),ie=!1,ae=new eh,oe=!1,se=!1,ce=new nf,le=new W,ue=new Td,de={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},fe=!1;function pe(){return C===null?ee:1}let P=n;function me(e,n){return t.getContext(e,n)}try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r179`),t.addEventListener(`webglcontextlost`,Ve,!1),t.addEventListener(`webglcontextrestored`,He,!1),t.addEventListener(`webglcontextcreationerror`,Ue,!1),P===null){let t=`webgl2`;if(P=me(t,e),P===null)throw me(t)?Error(`Error creating WebGL context with your selected attributes.`):Error(`Error creating WebGL context.`)}}catch(e){throw console.error(`THREE.WebGLRenderer: `+e.message),e}let he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re;function ze(){he=new Lae(P),he.init(),Ie=new Yb(P,he),ge=new Aae(P,he,e,Ie),_e=new mse(P,he),ge.reversedDepthBuffer&&d&&_e.buffers.depth.setReversed(!0),ve=new Bae(P),ye=new rse,be=new hse(P,he,_e,ye,ge,Ie,ve),xe=new Mae(y),Se=new Iae(y),Ce=new Ere(P),Le=new Oae(P,Ce),we=new Rae(P,Ce,ve,Le),Te=new Hae(P,we,Ce,ve),Ne=new Vae(P,ge,be),Ae=new jae(ye),Ee=new nse(y,xe,Se,he,ge,Le,Ae),De=new yse(y,ye),Oe=new ase,ke=new dse(he),Me=new Dae(y,xe,Se,_e,Te,f,s),je=new fse(y,Te,ge),Re=new bse(P,ve,ge,_e),Pe=new kae(P,he,ve),Fe=new zae(P,he,ve),ve.programs=Ee.programs,y.capabilities=ge,y.extensions=he,y.properties=ye,y.renderLists=Oe,y.shadowMap=je,y.state=_e,y.info=ve}ze();let Be=new _se(y,P);this.xr=Be,this.getContext=function(){return P},this.getContextAttributes=function(){return P.getContextAttributes()},this.forceContextLoss=function(){let e=he.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=he.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return ee},this.setPixelRatio=function(e){e!==void 0&&(ee=e,this.setSize(j,M,!1))},this.getSize=function(e){return e.set(j,M)},this.setSize=function(e,n,r=!0){if(Be.isPresenting){console.warn(`THREE.WebGLRenderer: Can't change size while VR device is presenting.`);return}j=e,M=n,t.width=Math.floor(e*ee),t.height=Math.floor(n*ee),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),this.setViewport(0,0,e,n)},this.getDrawingBufferSize=function(e){return e.set(j*ee,M*ee).floor()},this.setDrawingBufferSize=function(e,n,r){j=e,M=n,ee=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(E)},this.getViewport=function(e){return e.copy(ne)},this.setViewport=function(e,t,n,r){e.isVector4?ne.set(e.x,e.y,e.z,e.w):ne.set(e,t,n,r),_e.viewport(E.copy(ne).multiplyScalar(ee).round())},this.getScissor=function(e){return e.copy(re)},this.setScissor=function(e,t,n,r){e.isVector4?re.set(e.x,e.y,e.z,e.w):re.set(e,t,n,r),_e.scissor(D.copy(re).multiplyScalar(ee).round())},this.getScissorTest=function(){return ie},this.setScissorTest=function(e){_e.setScissorTest(ie=e)},this.setOpaqueSort=function(e){te=e},this.setTransparentSort=function(e){N=e},this.getClearColor=function(e){return e.copy(Me.getClearColor())},this.setClearColor=function(){Me.setClearColor(...arguments)},this.getClearAlpha=function(){return Me.getClearAlpha()},this.setClearAlpha=function(){Me.setClearAlpha(...arguments)},this.clear=function(e=!0,t=!0,n=!0){let r=0;if(e){let e=!1;if(C!==null){let t=C.texture.format;e=t===Rl||t===Ll||t===Fl}if(e){let e=C.texture.type,t=e===_l||e===Sl||e===bl||e===Dl||e===Tl||e===El,n=Me.getClearColor(),r=Me.getClearAlpha(),i=n.r,a=n.g,o=n.b;t?(p[0]=i,p[1]=a,p[2]=o,p[3]=r,P.clearBufferuiv(P.COLOR,0,p)):(m[0]=i,m[1]=a,m[2]=o,m[3]=r,P.clearBufferiv(P.COLOR,0,m))}else r|=P.COLOR_BUFFER_BIT}t&&(r|=P.DEPTH_BUFFER_BIT),n&&(r|=P.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),P.clear(r)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener(`webglcontextlost`,Ve,!1),t.removeEventListener(`webglcontextrestored`,He,!1),t.removeEventListener(`webglcontextcreationerror`,Ue,!1),Me.dispose(),Oe.dispose(),ke.dispose(),ye.dispose(),xe.dispose(),Se.dispose(),Te.dispose(),Le.dispose(),Re.dispose(),Ee.dispose(),Be.dispose(),Be.removeEventListener(`sessionstart`,Xe),Be.removeEventListener(`sessionend`,Ze),Qe.stop()};function Ve(e){e.preventDefault(),console.log(`THREE.WebGLRenderer: Context Lost.`),b=!0}function He(){console.log(`THREE.WebGLRenderer: Context Restored.`),b=!1;let e=ve.autoReset,t=je.enabled,n=je.autoUpdate,r=je.needsUpdate,i=je.type;ze(),ve.autoReset=e,je.enabled=t,je.autoUpdate=n,je.needsUpdate=r,je.type=i}function Ue(e){console.error(`THREE.WebGLRenderer: A WebGL context could not be created. Reason: `,e.statusMessage)}function We(e){let t=e.target;t.removeEventListener(`dispose`,We),Ge(t)}function Ge(e){Ke(e),ye.remove(e)}function Ke(e){let t=ye.get(e).programs;t!==void 0&&(t.forEach(function(e){Ee.releaseProgram(e)}),e.isShaderMaterial&&Ee.releaseShaderCache(e))}this.renderBufferDirect=function(e,t,n,r,i,a){t===null&&(t=de);let o=i.isMesh&&i.matrixWorld.determinant()<0,s=st(e,t,n,r,i);_e.setMaterial(r,o);let c=n.index,l=1;if(r.wireframe===!0){if(c=we.getWireframeAttribute(n),c===void 0)return;l=2}let u=n.drawRange,d=n.attributes.position,f=u.start*l,p=(u.start+u.count)*l;a!==null&&(f=Math.max(f,a.start*l),p=Math.min(p,(a.start+a.count)*l)),c===null?d!=null&&(f=Math.max(f,0),p=Math.min(p,d.count)):(f=Math.max(f,0),p=Math.min(p,c.count));let m=p-f;if(m<0||m===1/0)return;Le.setup(i,r,s,n,c);let h,g=Pe;if(c!==null&&(h=Ce.get(c),g=Fe,g.setIndex(h)),i.isMesh)r.wireframe===!0?(_e.setLineWidth(r.wireframeLinewidth*pe()),g.setMode(P.LINES)):g.setMode(P.TRIANGLES);else if(i.isLine){let e=r.linewidth;e===void 0&&(e=1),_e.setLineWidth(e*pe()),i.isLineSegments?g.setMode(P.LINES):i.isLineLoop?g.setMode(P.LINE_LOOP):g.setMode(P.LINE_STRIP)}else i.isPoints?g.setMode(P.POINTS):i.isSprite&&g.setMode(P.TRIANGLES);if(i.isBatchedMesh)if(i._multiDrawInstances!==null)pd(`THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection.`),g.renderMultiDrawInstances(i._multiDrawStarts,i._multiDrawCounts,i._multiDrawCount,i._multiDrawInstances);else if(he.get(`WEBGL_multi_draw`))g.renderMultiDraw(i._multiDrawStarts,i._multiDrawCounts,i._multiDrawCount);else{let e=i._multiDrawStarts,t=i._multiDrawCounts,n=i._multiDrawCount,a=c?Ce.get(c).bytesPerElement:1,o=ye.get(r).currentProgram.getUniforms();for(let r=0;r{function n(){if(r.forEach(function(e){let t=ye.get(e),n=t.currentProgram;n.isReady()&&r.delete(e)}),r.size===0){t(e);return}setTimeout(n,10)}he.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let Je=null;function Ye(e){Je&&Je(e)}function Xe(){Qe.stop()}function Ze(){Qe.start()}let Qe=new Zy;Qe.setAnimationLoop(Ye),typeof self<`u`&&Qe.setContext(self),this.setAnimationLoop=function(e){Je=e,Be.setAnimationLoop(e),e===null?Qe.stop():Qe.start()},Be.addEventListener(`sessionstart`,Xe),Be.addEventListener(`sessionend`,Ze),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){console.error(`THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(b===!0)return;if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),Be.enabled===!0&&Be.isPresenting===!0&&(Be.cameraAutoUpdate===!0&&Be.updateCamera(t),t=Be.getCamera()),e.isScene===!0&&e.onBeforeRender(y,e,t,C),g=ke.get(e,v.length),g.init(t),v.push(g),ce.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),ae.setFromProjectionMatrix(ce,Hu,t.reversedDepth),se=this.localClippingEnabled,oe=Ae.init(this.clippingPlanes,se),h=Oe.get(e,_.length),h.init(),_.push(h),Be.enabled===!0&&Be.isPresenting===!0){let e=y.xr.getDepthSensingMesh();e!==null&&$e(e,t,-1/0,y.sortObjects)}$e(e,t,0,y.sortObjects),h.finish(),y.sortObjects===!0&&h.sort(te,N),fe=Be.enabled===!1||Be.isPresenting===!1||Be.hasDepthSensing()===!1,fe&&Me.addToRenderList(h,e),this.info.render.frame++,oe===!0&&Ae.beginShadows();let n=g.state.shadowsArray;je.render(n,e,t),oe===!0&&Ae.endShadows(),this.info.autoReset===!0&&this.info.reset();let r=h.opaque,i=h.transmissive;if(g.setupLights(),t.isArrayCamera){let n=t.cameras;if(i.length>0)for(let t=0,a=n.length;t0&&tt(r,i,e,t),fe&&Me.render(e),et(h,e,t);C!==null&&S===0&&(be.updateMultisampleRenderTarget(C),be.updateRenderTargetMipmap(C)),e.isScene===!0&&e.onAfterRender(y,e,t),Le.resetDefaultState(),w=-1,T=null,v.pop(),v.length>0?(g=v[v.length-1],oe===!0&&Ae.setGlobalState(y.clippingPlanes,g.state.camera)):g=null,_.pop(),h=_.length>0?_[_.length-1]:null};function $e(e,t,n,r){if(e.visible===!1)return;let i=e.layers.test(t.layers);if(i){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLight)g.pushLight(e),e.castShadow&&g.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||ae.intersectsSprite(e)){r&&ue.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ce);let t=Te.update(e),i=e.material;i.visible&&h.push(e,t,i,n,ue.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||ae.intersectsObject(e))){let t=Te.update(e),i=e.material;if(r&&(e.boundingSphere===void 0?(t.boundingSphere===null&&t.computeBoundingSphere(),ue.copy(t.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),ue.copy(e.boundingSphere.center)),ue.applyMatrix4(e.matrixWorld).applyMatrix4(ce)),Array.isArray(i)){let r=t.groups;for(let a=0,o=r.length;a0&&nt(i,t,n),a.length>0&&nt(a,t,n),o.length>0&&nt(o,t,n),_e.buffers.depth.setTest(!0),_e.buffers.depth.setMask(!0),_e.buffers.color.setMask(!0),_e.setPolygonOffset(!1)}function tt(e,t,n,r){let a=n.isScene===!0?n.overrideMaterial:null;if(a!==null)return;g.state.transmissionRenderTarget[r.id]===void 0&&(g.state.transmissionRenderTarget[r.id]=new Dd(1,1,{generateMipmaps:!0,type:he.has(`EXT_color_buffer_half_float`)||he.has(`EXT_color_buffer_float`)?wl:_l,minFilter:gl,samples:4,stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:gd.workingColorSpace}));let o=g.state.transmissionRenderTarget[r.id],s=r.viewport||E;o.setSize(s.z*y.transmissionResolutionScale,s.w*y.transmissionResolutionScale);let c=y.getRenderTarget(),l=y.getActiveCubeFace(),u=y.getActiveMipmapLevel();y.setRenderTarget(o),y.getClearColor(k),A=y.getClearAlpha(),A<1&&y.setClearColor(16777215,.5),y.clear(),fe&&Me.render(n);let d=y.toneMapping;y.toneMapping=0;let f=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),g.setupLightsView(r),oe===!0&&Ae.setGlobalState(y.clippingPlanes,r),nt(e,n,r),be.updateMultisampleRenderTarget(o),be.updateRenderTargetMipmap(o),he.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0),d=!!n.morphAttributes.position,f=!!n.morphAttributes.normal,p=!!n.morphAttributes.color,m=0;r.toneMapped&&(C===null||C.isXRRenderTarget===!0)&&(m=y.toneMapping);let h=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=h===void 0?0:h.length,v=ye.get(r),b=g.state.lights;if(oe===!0&&(se===!0||e!==T)){let t=e===T&&r.id===w;Ae.setState(r,e,t)}let x=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==b.state.version?x=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i.colorTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i.colorTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?x=!0:v.envMap===c?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Ae.numPlanes||v.numIntersection!==Ae.numIntersection)?x=!0:v.vertexAlphas===l&&v.vertexTangents===u&&v.morphTargets===d&&v.morphNormals===f&&v.morphColors===p&&v.toneMapping===m?v.morphTargetsCount!==_&&(x=!0):x=!0:x=!0:x=!0:(x=!0,v.__version=r.version);let S=v.currentProgram;x===!0&&(S=it(r,t,i));let E=!1,D=!1,O=!1,k=S.getUniforms(),A=v.uniforms;if(_e.useProgram(S.program)&&(E=!0,D=!0,O=!0),r.id!==w&&(w=r.id,D=!0),E||T!==e){let t=_e.buffers.depth.getReversed();t&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),k.setValue(P,`projectionMatrix`,e.projectionMatrix),k.setValue(P,`viewMatrix`,e.matrixWorldInverse);let n=k.map.cameraPosition;n!==void 0&&n.setValue(P,le.setFromMatrixPosition(e.matrixWorld)),ge.logarithmicDepthBuffer&&k.setValue(P,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&k.setValue(P,`isOrthographic`,e.isOrthographicCamera===!0),T!==e&&(T=e,D=!0,O=!0)}if(i.isSkinnedMesh){k.setOptional(P,i,`bindMatrix`),k.setOptional(P,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),k.setValue(P,`boneTexture`,e.boneTexture,be))}i.isBatchedMesh&&(k.setOptional(P,i,`batchingTexture`),k.setValue(P,`batchingTexture`,i._matricesTexture,be),k.setOptional(P,i,`batchingIdTexture`),k.setValue(P,`batchingIdTexture`,i._indirectTexture,be),k.setOptional(P,i,`batchingColorTexture`),i._colorsTexture!==null&&k.setValue(P,`batchingColorTexture`,i._colorsTexture,be));let j=n.morphAttributes;if((j.position!==void 0||j.normal!==void 0||j.color!==void 0)&&Ne.update(i,n,S),(D||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,k.setValue(P,`receiveShadow`,i.receiveShadow)),r.isMeshGouraudMaterial&&r.envMap!==null&&(A.envMap.value=c,A.flipEnvMap.value=c.isCubeTexture&&c.isRenderTargetTexture===!1?-1:1),r.isMeshStandardMaterial&&r.envMap===null&&t.environment!==null&&(A.envMapIntensity.value=t.environmentIntensity),D&&(k.setValue(P,`toneMappingExposure`,y.toneMappingExposure),v.needsLights&&ct(A,O),a&&r.fog===!0&&De.refreshFogUniforms(A,a),De.refreshMaterialUniforms(A,r,ee,M,g.state.transmissionRenderTarget[e.id]),Fb.upload(P,at(v),A,be)),r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(Fb.upload(P,at(v),A,be),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&k.setValue(P,`center`,i.center),k.setValue(P,`modelViewMatrix`,i.modelViewMatrix),k.setValue(P,`normalMatrix`,i.normalMatrix),k.setValue(P,`modelMatrix`,i.matrixWorld),r.isShaderMaterial||r.isRawShaderMaterial){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&be.useMultisampledRTT(e)===!1?ye.get(e).__webglMultisampledFramebuffer:Array.isArray(l)?l[n]:l,E.copy(e.viewport),D.copy(e.scissor),O=e.scissorTest}else E.copy(ne).multiplyScalar(ee).floor(),D.copy(re).multiplyScalar(ee).floor(),O=ie;n!==0&&(i=ut);let s=_e.bindFramebuffer(P.FRAMEBUFFER,i);if(s&&r&&_e.drawBuffers(e,i),_e.viewport(E),_e.scissor(D),_e.setScissorTest(O),a){let r=ye.get(e.texture);P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(o){let r=t;for(let t=0;t=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&(e.textures.length>1&&P.readBuffer(P.COLOR_ATTACHMENT0+s),P.readPixels(t,n,r,i,Ie.convert(c),Ie.convert(l),a))}finally{let e=C===null?null:ye.get(C).__webglFramebuffer;_e.bindFramebuffer(P.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=ye.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c)if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){_e.bindFramebuffer(P.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;if(!ge.textureFormatReadable(l))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(!ge.textureTypeReadable(u))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let d=P.createBuffer();P.bindBuffer(P.PIXEL_PACK_BUFFER,d),P.bufferData(P.PIXEL_PACK_BUFFER,a.byteLength,P.STREAM_READ),e.textures.length>1&&P.readBuffer(P.COLOR_ATTACHMENT0+s),P.readPixels(t,n,r,i,Ie.convert(l),Ie.convert(u),0);let f=C===null?null:ye.get(C).__webglFramebuffer;_e.bindFramebuffer(P.FRAMEBUFFER,f);let p=P.fenceSync(P.SYNC_GPU_COMMANDS_COMPLETE,0);return P.flush(),await ene(P,p,4),P.bindBuffer(P.PIXEL_PACK_BUFFER,d),P.getBufferSubData(P.PIXEL_PACK_BUFFER,0,a),P.deleteBuffer(d),P.deleteSync(p),a}else throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;be.setTexture2D(e,0),P.copyTexSubImage2D(P.TEXTURE_2D,n,0,0,o,s,i,a),_e.unbindTexture()};let dt=P.createFramebuffer(),ft=P.createFramebuffer();this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=null){a===null&&(i===0?a=0:(pd(`WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels.`),a=i,i=0));let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ie.convert(t.format),_=Ie.convert(t.type),v;t.isData3DTexture?(be.setTexture3D(t,0),v=P.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(be.setTexture2DArray(t,0),v=P.TEXTURE_2D_ARRAY):(be.setTexture2D(t,0),v=P.TEXTURE_2D),P.pixelStorei(P.UNPACK_FLIP_Y_WEBGL,t.flipY),P.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),P.pixelStorei(P.UNPACK_ALIGNMENT,t.unpackAlignment);let y=P.getParameter(P.UNPACK_ROW_LENGTH),b=P.getParameter(P.UNPACK_IMAGE_HEIGHT),x=P.getParameter(P.UNPACK_SKIP_PIXELS),S=P.getParameter(P.UNPACK_SKIP_ROWS),C=P.getParameter(P.UNPACK_SKIP_IMAGES);P.pixelStorei(P.UNPACK_ROW_LENGTH,h.width),P.pixelStorei(P.UNPACK_IMAGE_HEIGHT,h.height),P.pixelStorei(P.UNPACK_SKIP_PIXELS,l),P.pixelStorei(P.UNPACK_SKIP_ROWS,u),P.pixelStorei(P.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=ye.get(e),r=ye.get(t),h=ye.get(n.__renderTarget),g=ye.get(r.__renderTarget);_e.bindFramebuffer(P.READ_FRAMEBUFFER,h.__webglFramebuffer),_e.bindFramebuffer(P.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n{r.value=e()},{...t,flush:(n=t?.flush)??`sync`}),$t(r)}function $b(e){return Ve()?(He(e),!0):!1}function ex(){let e=new Set,t=t=>{e.delete(t)},n=()=>{e.clear()},r=n=>{e.add(n);let r=()=>t(n);return $b(r),{off:r}},i=(...t)=>Promise.all(Array.from(e).map(e=>e(...t)));return{on:r,off:t,trigger:i,clear:n}}function Sse(e){let t,n=Be(!0);return(...r)=>(t=n.run(()=>e(...r)),t)}const tx=new WeakMap,Cse=(...e)=>{var t;let n=e[0],r=(t=Go())?.proxy;if(r==null&&!ua())throw Error(`injectLocal must be called in setup`);return r&&tx.has(r)&&n in tx.get(r)?tx.get(r)[n]:la(...e)};function nx(e){let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...a)=>(t+=1,r||(r=Be(!0),n=r.run(()=>e(...a))),$b(i),n)}function wse(e){if(!dn(e))return Zt(e);let t=new Proxy({},{get(t,n,r){return I(Reflect.get(e.value,n,r))},set(t,n,r){return dn(e.value[n])&&!dn(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Zt(t)}function Tse(e){return wse(U(e))}function Ese(e,...t){let n=t.flat(),r=n[0];return Tse(()=>typeof r==`function`?Object.fromEntries(Object.entries(_n(e)).filter(([e,t])=>!r(mn(t),e))):Object.fromEntries(Object.entries(_n(e)).filter(e=>!n.includes(e[0]))))}const rx=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const Dse=e=>e!==void 0,Ose=e=>e!=null,kse=Object.prototype.toString,Ase=e=>kse.call(e)===`[object Object]`,ix=()=>{},ax=ox();function ox(){var e,t;return rx&&(e=window==null?void 0:window.navigator)?.userAgent&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(t=window==null?void 0:window.navigator)?.maxTouchPoints>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function sx(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function cx(e,t={}){let n,r,i=ix,a=e=>{clearTimeout(e),i(),i=ix},o,s=s=>{let c=mn(e),l=mn(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),null),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=null,e(s())},c)})};return s}function lx(e){let t=Object.create(null);return n=>{let r=t[n];return r||(t[n]=e(n))}}const ux=/\B([A-Z])/g;lx(e=>e.replace(ux,`-$1`).toLowerCase());const dx=/-(\w)/g;lx(e=>e.replace(dx,(e,t)=>t?t.toUpperCase():``));function fx(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function px(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}function mx(e){return e||Go()}function hx(e){return Array.isArray(e)?e:[e]}function gx(e,t=1e4){return gn((n,r)=>{let i=mn(e),a,o=()=>setTimeout(()=>{i=mn(e),r()},mn(t));return $b(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function _x(e,t=200,n={}){return sx(cx(t,n),e)}function vx(e,t=200,n={}){let r=F(e.value),i=_x(()=>{r.value=e.value},t,n);return Ba(e,()=>i()),r}function yx(e,t={}){if(!dn(e))return _n(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=gn(()=>({get(){return e.value[r]},set(n){var i;let a=(i=mn(t.replaceRef))??!0;if(a)if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[r]=n}}));return n}const bx=mn;function xx(e,t){let n=mx(t);n&&mi(e,t)}function Sx(e,t=!0,n){let r=mx();r?di(e,n):t?e():Gn(e)}function Cx(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=fn(!1);function s(){a&&=(clearInterval(a),null)}function c(){o.value=!1,s()}function l(){let n=mn(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}if(r&&rx&&l(),dn(t)||typeof t==`function`){let e=Ba(t,()=>{o.value&&rx&&l()});$b(e)}return $b(c),{isActive:o,pause:c,resume:l}}function wx(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=fn(!1),o=null;function s(){o&&=(clearTimeout(o),null)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...n)},mn(t))}return r&&(a.value=!0,rx&&l()),$b(c),{isPending:$t(a),start:l,stop:c}}function Tx(e,t,n){return Ba(e,t,{...n,immediate:!0})}const Ex=rx?window:void 0;rx&&window.document,rx&&window.navigator,rx&&window.location;function Dx(e){var t;let n=mn(e);return(t=n?.$el)??n}function Ox(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=U(()=>{let t=hx(mn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=Tx(()=>{var t,n;return[(n=(t=i.value)?.map(e=>Dx(e)))??[Ex].filter(e=>e!=null),hx(mn(i.value?e[1]:e[0])),hx(I(i.value?e[2]:e[1])),mn(i.value?e[3]:e[2])]},([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=Ase(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`}),o=()=>{a(),n()};return $b(n),o}function kx(){let e=fn(!1),t=Go();return t&&di(()=>{e.value=!0},t),e}function Ax(e){let t=kx();return U(()=>(t.value,!!e()))}function jx(e,t,n={}){let{window:r=Ex,...i}=n,a,o=Ax(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=U(()=>{let t=mn(e),n=hx(t).map(Dx).filter(Ose);return new Set(n)}),l=Ba(()=>c.value,e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>a?.takeRecords(),d=()=>{l(),s()};return $b(d),{isSupported:o,stop:d,takeRecords:u}}function Mx(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Nx(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=Ex,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Mx(t),l=e=>{e.repeat&&mn(s)||c(e)&&n(e)};return Ox(i,a,l,o)}function Px(e,t={}){let{immediate:n=!0,fpsLimit:r=void 0,window:i=Ex,once:a=!1}=t,o=fn(!1),s=U(()=>r?1e3/mn(r):null),c=0,l=null;function u(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&nn&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=fn(typeof r==`number`),o=fn(),s=fn(!1),c=e=>{s.value=e.matches};return La(()=>{if(a.value){a.value=!i.value;let t=mn(e).split(`,`);s.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=fx(n[1])),i&&a&&(a=r<=fx(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(mn(e)),s.value=o.value.matches)}),Ox(o,`change`,c,{passive:!0}),U(()=>s.value)}function Rx(e){return JSON.parse(JSON.stringify(e))}function zx(e={}){let{window:t=Ex}=e,n=fn(1),r=Lx(()=>`(resolution: ${n.value}dppx)`,e),i=ix;return t&&(i=Tx(r,()=>n.value=t.devicePixelRatio)),{pixelRatio:$t(n),stop:i}}function Bx(e,t,n={}){let{window:r=Ex,...i}=n,a,o=Ax(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=U(()=>{let t=mn(e);return Array.isArray(t)?t.map(e=>Dx(e)):[Dx(t)]}),l=Ba(c,e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{s(),l()};return $b(u),{isSupported:o,stop:u}}function Vx(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=fn(0),c=fn(0),l=fn(0),u=fn(0),d=fn(0),f=fn(0),p=fn(0),m=fn(0);function h(){let t=Dx(e);if(!t){n&&(s.value=0,c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,l.value=r.left,u.value=r.right,d.value=r.top,f.value=r.width,p.value=r.x,m.value=r.y}function g(){o===`sync`?h():o===`next-frame`&&requestAnimationFrame(()=>h())}return Bx(e,g),Ba(()=>Dx(e),e=>!e&&g()),jx(e,g,{attributeFilter:[`style`,`class`]}),i&&Ox(`scroll`,g,{capture:!0,passive:!0}),r&&Ox(`resize`,g,{passive:!0}),Sx(()=>{a&&g()}),{height:s,bottom:c,left:l,right:u,top:d,width:f,x:p,y:m,update:g}}function Hx(e,t={width:0,height:0},n={}){let{window:r=Ex,box:i=`content-box`}=n,a=U(()=>{var t,n;return(n=(t=Dx(e))?.namespaceURI)?.includes(`svg`)}),o=fn(t.width),s=fn(t.height),{stop:c}=Bx(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=Dx(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=hx(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);Sx(()=>{let n=Dx(e);n&&(o.value=`offsetWidth`in n?n.offsetWidth:t.width,s.value=`offsetHeight`in n?n.offsetHeight:t.height)});let l=Ba(()=>Dx(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function u(){c(),l()}return{width:o,height:s,stop:u}}function Ux(e){var t;let n=fn(0);if(typeof performance>`u`)return n;let r=(t=e?.every)??10,i=performance.now(),a=0;return Px(()=>{if(a+=1,a>=r){let e=performance.now(),t=e-i;n.value=Math.round(1e3/(t/a)),i=e,a=0}}),n}function Wx(e={}){let t=F(),n=Ax(()=>typeof performance<`u`&&`memory`in performance);if(n.value){let{interval:n=1e3}=e;Cx(()=>{t.value=performance.memory},n,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}const Gx={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Kx=Object.keys(Gx);function qx(e={}){let{target:t=Ex}=e,n=fn(!1),r=F(e.initialValue||{});Object.assign(r.value,Gx,r.value);let i=t=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(t.pointerType))&&(r.value=px(t,Kx,!1))};if(t){let e={passive:!0};Ox(t,[`pointerdown`,`pointermove`,`pointerup`],i,e),Ox(t,`pointerleave`,()=>n.value=!1,e)}return{...yx(r),isInside:n}}function Jx(e,t,n,r={}){var i,a,o;let{clone:s=!1,passive:c=!1,eventName:l,deep:u=!1,defaultValue:d,shouldEmit:f}=r,p=Go(),m=n||p?.emit||(i=p?.$emit)?.bind(p)||(o=(a=p?.proxy)?.$emit)?.bind(p?.proxy),h=l;t||=`modelValue`,h||=`update:${t.toString()}`;let g=e=>s?typeof s==`function`?s(e):Rx(e):e,_=()=>Dse(e[t])?g(e[t]):d,v=e=>{f?f(e)&&m(h,e):m(h,e)};if(c){let n=_(),r=F(n),i=!1;return Ba(()=>e[t],e=>{i||(i=!0,r.value=g(e),Gn(()=>i=!1))}),Ba(r,n=>{!i&&(n!==e[t]||u)&&v(n)},{deep:u}),r}else return U({get(){return _()},set(e){v(e)}})}function Yx(e={}){let{window:t=Ex,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=fn(n),c=fn(r),l=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};l(),Sx(l);let u={passive:!0};if(Ox(`resize`,l,u),t&&o===`visual`&&t.visualViewport&&Ox(t.visualViewport,`resize`,l,u),i){let e=Lx(`(orientation: portrait)`);Ba(e,()=>l())}return{width:s,height:c}}var Xx=Object.defineProperty,Zx=(e,t,n)=>t in e?Xx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qx=(e,t,n)=>Zx(e,typeof t==`symbol`?t:t+``,n);const $x={type:`git`,url:`git+https://github.com/Tresjs/tres.git`},eS=[`vue`,`3d`,`threejs`,`three`,`threejs-vue`],tS={".":{types:`./dist/index.d.ts`,import:`./dist/tres.js`,require:`./dist/tres.umd.cjs`},"./components":{types:`./dist/src/components/index.d.ts`},"./composables":{types:`./dist/src/composables/index.d.ts`},"./types":{types:`./dist/src/types/index.d.ts`},"./utils":{types:`./dist/src/utils/index.d.ts`},"./*":`./*`},nS=[`*.d.ts`,`dist`],rS={access:`public`},iS={dev:`pnpm --filter='./playground/vue' dev`,"dev:nuxt":`pnpm --filter='./playground/nuxt' dev`,build:`vite build`,test:`vitest`,"test:ci":`vitest run`,"test:ui":`vitest --ui --coverage.enabled=true`,release:`release-it`,coverage:`vitest run --coverage`,lint:`eslint .`,"lint:fix":`eslint . --fix`,"docs:dev":`vitepress dev docs`,"docs:build":`vitepress build docs`,"docs:serve":`vitepress serve docs`,"docs:preview":`vitepress preview docs`,"docs:contributors":`esno scripts/update-contributors.ts`},aS={three:`>=0.133`,vue:`>=3.4`},oS={"@alvarosabu/utils":`^3.2.0`,"@vue/devtools-api":`^6.6.3`,"@vueuse/core":`^12.5.0`},sS={"@release-it/conventional-changelog":`^10.0.0`,"@stackblitz/sdk":`^1.11.0`,"@tresjs/cientos":`4.1.0`,"@tresjs/eslint-config":`^1.4.0`,"@types/three":`^0.173.0`,"@typescript-eslint/eslint-plugin":`^8.23.0`,"@typescript-eslint/parser":`^8.23.0`,"@vitejs/plugin-vue":`^5.2.1`,"@vitest/coverage-c8":`^0.33.0`,"@vitest/coverage-v8":`^3.0.5`,"@vitest/ui":`^3.0.5`,"@vue/test-utils":`^2.4.6`,eslint:`^9.19.0`,"eslint-plugin-vue":`^9.32.0`,esno:`^4.8.0`,gsap:`^3.12.7`,jsdom:`^26.0.0`,kolorist:`^1.8.0`,ohmyfetch:`^0.4.21`,pathe:`^2.0.2`,"release-it":`^18.1.2`,"rollup-plugin-analyzer":`^4.0.0`,"rollup-plugin-copy":`^3.5.0`,"rollup-plugin-visualizer":`^5.14.0`,sponsorkit:`^16.3.0`,three:`^0.173.0`,unocss:`^65.4.3`,unplugin:`^2.1.2`,"unplugin-vue-components":`^28.0.0`,vite:`^6.1.0`,"vite-plugin-banner":`^0.8.0`,"vite-plugin-dts":`4.5.0`,"vite-plugin-inspect":`^10.1.0`,"vite-plugin-require-transform":`^1.0.21`,"vite-svg-loader":`^5.1.0`,vitepress:`1.6.3`,vitest:`3.0.5`,vue:`3.5.13`,"vue-demi":`^0.14.10`},cS={name:`@tresjs/core`,type:`module`,version:`4.3.6`,packageManager:`pnpm@10.6.3`,description:`Declarative ThreeJS using Vue Components`,author:`Alvaro Saburido (https://github.com/alvarosabu/)`,license:`MIT`,repository:$x,keywords:eS,sideEffects:!1,exports:tS,main:`./dist/tres.js`,module:`./dist/tres.js`,types:`./dist/index.d.ts`,files:nS,publishConfig:rS,scripts:iS,peerDependencies:aS,dependencies:oS,devDependencies:sS};var lS=class extends Ip{constructor(...e){super(...e),Qx(this,`type`,`HightlightMesh`),Qx(this,`createTime`),this.createTime=Date.now()}onBeforeRender(){let e=(Date.now()-this.createTime)/1e3,t=1+.07*Math.sin(2.5*e);this.scale.set(t,t,t)}};function uS(e){return typeof e>`u`}function dS(e){return Array.isArray(e)}function fS(e){return typeof e==`number`}function pS(e){return typeof e==`string`}function mS(e){return typeof e==`function`}function hS(e){return e===Object(e)&&!dS(e)&&!mS(e)}function gS(e){return hS(e)&&!!e.isObject3D}function _S(e){return hS(e)&&!!e.isColor}function vS(e){return e!=null&&(typeof e==`string`||typeof e==`number`||_S(e))}function yS(e){return typeof e==`object`&&!!e&&`set`in e&&typeof e.set==`function`}function bS(e){return yS(e)&&`copy`in e&&typeof e.copy==`function`}function xS(e){return!!(e!=null&&e.constructor)}function SS(e){return e instanceof pf}function CS(e){return hS(e)&&!!e.isCamera}function wS(e){return hS(e)&&!!e.isBufferGeometry}function TS(e){return hS(e)&&!!e.isMaterial}function ES(e){return hS(e)&&!!e.isLight}function DS(e){return hS(e)&&!!e.isFog}function OS(e){return hS(e)&&!!e.isScene}function kS(e){return gS(e)||wS(e)||TS(e)||DS(e)}function AS(e){return hS(e)&&!!e.isPrimitive}const jS=(e,t)=>{for(let n of Object.keys(t))t[n]instanceof Object&&Object.assign(t[n],jS(e[n],t[n]));return Object.assign(e||{},t),e},MS=LS(`html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot`);function NS(e){return e&&e.nodeType===1}function PS(e){return e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}const FS=/\B([A-Z])/g;function IS(e){return e.replace(FS,`-$1`).toLowerCase()}function LS(e,t){let n=Object.create(null),r=e.split(`,`);for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}const RS=(e,t)=>{if(!t)return;let n=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return n?.reduce((e,t)=>e&&e[t],e)},zS=(e,t,n)=>{let r=Array.isArray(t)?t:t.match(/([^[.\]])+/g);r&&r.reduce((e,t,i)=>(e[t]===void 0&&(e[t]={}),i===r.length-1&&(e[t]=n),e[t]),e)};function BS(e,t){if(NS(e)&&NS(t)){let n=e.attributes,r=t.attributes;return n.length===r.length?Array.from(n).every(({name:e,value:n})=>t.getAttribute(e)===n):!1}if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!r.includes(i)||!BS(e[i],t[i]))return!1;return!0}function VS(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n{if(e.uuid===t)return e;for(let t of e.children){let e=i(t);if(e)return e}},a=i(e);if(!a){console.warn(`Object with UUID not found in the scene.`);return}let o=a;for(let e=0;eKS(e)),!(e instanceof om)){let t=e;e&&((n=e.dispose)==null||n.call(e)),t.geometry&&t.geometry.dispose(),Array.isArray(t.material)?t.material.forEach(e=>GS(e)):t.material&&GS(t.material)}}function qS(e,t){let n=0;for(let r=0;rt===0?e:e.charAt(0).toUpperCase()+e.slice(1)).join(``)}const XS=/-\d+$/;function ZS(e,t,n){if(pS(n)){if(XS.test(n)){let t=n.replace(XS,``),{target:r,key:i}=JS(e,t);if(!Array.isArray(r[i])){let e=r[i],t=[];t.__tresDetach=()=>{t.every(e=>uS(e))&&(r[i]=e)},r[i]=t}}let{target:r,key:i}=JS(e,n);t.__tres.previousAttach=r[i],r[i]=rC(t)}else t.__tres.previousAttach=n(e,t)}function QS(e,t,n){var r,i,a;if(pS(n)){let{target:r,key:i}=JS(e,n),a=t.__tres.previousAttach;a===void 0?delete r[i]:r[i]=a,`__tresDetach`in r&&r.__tresDetach()}else (i=(r=t.__tres)?.previousAttach)==null||i.call(r,e,t);(a=t.__tres)==null||delete a.previousAttach}function $S(e,t,n){let r=e;return r.__tres={type:`unknown`,eventCount:0,root:n,handlers:{},memoizedProps:{},objects:[],parent:null,previousAttach:null,...t},r.__tres.attach||(r.isMaterial?r.__tres.attach=`material`:r.isBufferGeometry?r.__tres.attach=`geometry`:r.isFog&&(r.__tres.attach=`fog`)),r}function eC(e){var t;let n=(t=e?.__tres)?.root;n&&n.render&&n.render.canBeInvalidated.value&&n.invalidate()}function tC(e,t,n){var r;if(!mS(e.setPixelRatio))return;let i=0;if(n&&dS(n)&&n.length>=2){let[e,r]=n;i=td.clamp(t,e,r)}else i=fS(n)?n:t;i!==(r=e.getPixelRatio)?.call(e)&&e.setPixelRatio(i)}function nC(e,t,n,r,i){let a=[...t.__tres.objects],o=rC(t);if(e=rC(e),o===e)return!0;let s=$S(e,t.__tres??{},i),c=t.parent??t.__tres.parent??null,l={...t.__tres.memoizedProps};delete l.object;for(let e of a)iC(e,i),aC(e,i);o.__tres.objects=[],r.remove(t);for(let[e,t]of Object.entries(l))r.patchProp(s,e,s[e],t);n(e),r.insert(t,c);for(let e of a)r.insert(e,t);return!0}function rC(e){return AS(e)?(e.object.__tres=e.__tres,e.object):e}function iC(e,t){var n,r,i,a;let o=(n=e.__tres)?.parent||t.scene.value;e.__tres&&(e.__tres.parent=null),o&&o.__tres&&`objects`in o.__tres&&qS(o.__tres.objects,t=>t!==e),(r=e.__tres)!=null&&r.attach?QS(o,e,e.__tres.attach):((a=(i=e.parent)?.remove)==null||a.call(i,rC(e)),e.parent=null)}function aC(e,t){var n;(n=e.traverse)==null||n.call(e,e=>{var n;t.deregisterCamera(e),(n=t.eventManager)==null||n.deregisterPointerMissedObject(e)}),t.deregisterCamera(e),eC(e)}const oC=({sizes:e})=>{let t=F([]),n=U(()=>t.value[0]),r=e=>{let n=e instanceof Jp?e:t.value.find(t=>t.uuid===e);if(!n)return;let r=t.value.filter(({uuid:e})=>e!==n.uuid);t.value=[n,...r]},i=(e,n=!1)=>{if(CS(e)){let i=e;if(t.value.some(({uuid:e})=>e===i.uuid))return;n?r(i):t.value.push(i)}},a=e=>{if(CS(e)){let n=e;t.value=t.value.filter(({uuid:e})=>e!==n.uuid)}};return La(()=>{e.aspectRatio.value&&t.value.forEach(t=>{!t.manual&&(t instanceof Qp||sC(t))&&(t instanceof Qp?t.aspect=e.aspectRatio.value:(t.left=e.width.value*-.5,t.right=e.width.value*.5,t.top=e.height.value*.5,t.bottom=e.height.value*-.5),t.updateProjectionMatrix())})}),hi(()=>{t.value=[]}),{camera:n,cameras:t,registerCamera:i,deregisterCamera:a,setCameraActive:r}};function sC(e){return e.hasOwnProperty(`isOrthographicCamera`)&&e.isOrthographicCamera}const cC=`[TresJS ▲ ■ ●] `;function lC(...e){typeof e[0]==`string`?e[0]=cC+e[0]:e.unshift(cC),console.error(...e)}function uC(...e){typeof e[0]==`string`?e[0]=cC+e[0]:e.unshift(cC),console.warn(...e)}function dC(e,t){}function fC(){return{logError:lC,logWarning:uC,logMessage:dC}}const pC=F({}),mC=e=>Object.assign(pC.value,e);function hC(){let e=new Map,t=new Set,n=0,r=()=>{let n=Array.from(e.entries()).sort((e,t)=>{let n=e[1].priority-t[1].priority;return n===0?e[1].addI-t[1].addI:n});t.clear(),n.forEach(e=>t.add(e[0]))},i=n=>{e.delete(n),t.delete(n)};return{on:(t,r=0)=>{e.set(t,{priority:r,addI:n++});let a=()=>i(t);return $b(a),{off:a}},off:i,trigger:(...e)=>{r(),t.forEach(t=>t(...e))},dispose:()=>{e.clear(),t.clear()},get count(){return e.size}}}function gC(){let e=!0,t=!0,n=!1,r=new ny(!1),i=F(r.running),a=F(!1),o,s=td.generateUUID(),c=null,l=hC(),u=hC(),d=hC();S();let f={};function p(e){f=e}function m(e,t,n=0){switch(t){case`before`:return l.on(e,n);case`render`:return c||=e,u.dispose(),u.on(e);case`after`:return d.on(e,n)}}function h(){t&&(t=!1,S(),x())}function g(){t=!0,S(),cancelAnimationFrame(o)}function _(){n=!1,S()}function v(){n=!0,S()}function y(){a.value=!0}function b(){a.value=!1}function x(){if(!e){o=requestAnimationFrame(x);return}let t=r.getDelta(),n=r.getElapsedTime(),s={camera:I(f.camera),scene:I(f.scene),renderer:I(f.renderer),raycaster:I(f.raycaster),controls:I(f.controls),invalidate:f.invalidate,advance:f.advance},p={delta:t,elapsed:n,clock:r,...s};i.value&&l.trigger(p),a.value||(u.count?u.trigger(p):c&&c(p)),i.value&&d.trigger(p),o=requestAnimationFrame(x)}function S(){let e=!t&&!n;r.running!==e&&(r.running?r.stop():r.start()),i.value=r.running}return{loopId:s,register:(e,t,n)=>m(e,t,n),start:h,stop:g,pause:v,resume:_,pauseRender:y,resumeRender:b,isRenderPaused:a,isActive:i,setContext:p,setReady:t=>e=t}}function _C(e){let t=0;return e.traverse(e=>{if(e.isMesh&&e.geometry&&e.type!==`HightlightMesh`){let n=e.geometry,r=n.attributes.position.count*3*Float32Array.BYTES_PER_ELEMENT,i=n.index?n.index.count*Uint32Array.BYTES_PER_ELEMENT:0,a=n.attributes.normal?n.attributes.normal.count*3*Float32Array.BYTES_PER_ELEMENT:0,o=n.attributes.uv?n.attributes.uv.count*2*Float32Array.BYTES_PER_ELEMENT:0,s=r+i+a+o;t+=s}}),t}function vC(e){return(e/1024).toFixed(2)}const yC=Number.parseInt(`179`);function bC(e){return e instanceof Jf?e:Array.isArray(e)?new Jf(...e):new Jf(e)}const xC={realistic:{shadows:!0,physicallyCorrectLights:!0,outputColorSpace:Pu,toneMapping:4,toneMappingExposure:3,shadowMap:{enabled:!0,type:2}},flat:{toneMapping:0,toneMappingExposure:1}};function SC({canvas:e,options:t,contextParts:{sizes:n,render:r,invalidate:i,advance:a}}){let o=U(()=>({alpha:bx(t.alpha)??!0,depth:bx(t.depth),canvas:Dx(e),context:bx(t.context),stencil:bx(t.stencil),antialias:bx(t.antialias)??!0,precision:bx(t.precision),powerPreference:bx(t.powerPreference),premultipliedAlpha:bx(t.premultipliedAlpha),preserveDrawingBuffer:bx(t.preserveDrawingBuffer),logarithmicDepthBuffer:bx(t.logarithmicDepthBuffer),failIfMajorPerformanceCaveat:bx(t.failIfMajorPerformanceCaveat)})),s=fn(new Qb(o.value));function c(){t.renderMode===`on-demand`&&i()}Ba(o,()=>{s.value.dispose(),s.value=new Qb(o.value),c()}),Ba([n.width,n.height],()=>{s.value.setSize(n.width.value,n.height.value),c()},{immediate:!0}),Ba(()=>t.clearColor,c);let{pixelRatio:l}=zx(),{logError:u}=fC(),d=(()=>{let e=new Qb,t={shadowMap:{enabled:e.shadowMap.enabled,type:e.shadowMap.type},toneMapping:e.toneMapping,toneMappingExposure:e.toneMappingExposure,outputColorSpace:e.outputColorSpace};return e.dispose(),t})(),f=bx(t.renderMode);return f===`on-demand`&&i(),f===`manual`&&setTimeout(()=>{a()},100),La(()=>{let e=bx(t.preset);e&&(e in xC||u(`Renderer Preset must be one of these: ${Object.keys(xC).join(`, `)}`),jS(s.value,xC[e])),tC(s.value,l.value,bx(t.dpr)),f===`always`&&(r.frames.value=Math.max(1,r.frames.value));let n=(t,n)=>{let r=bx(t),i=()=>{if(e)return RS(xC[e],n)};if(r!==void 0)return r;let a=i();return a===void 0?RS(d,n):a},i=(e,t)=>zS(s.value,t,n(e,t));i(t.shadows,`shadowMap.enabled`),i(t.toneMapping??4,`toneMapping`),i(t.shadowMapType,`shadowMap.type`),yC<150&&i(!t.useLegacyLights,`physicallyCorrectLights`),i(t.outputColorSpace,`outputColorSpace`),i(t.toneMappingExposure,`toneMappingExposure`);let a=n(t.clearColor,`clearColor`);a&&s.value.setClearColor(a?bC(a):new Jf(0))}),hi(()=>{s.value.dispose(),s.value.forceContextLoss()}),{renderer:s}}function CC(e,t,n=10){let r=bx(e)?Yx():Hx(U(()=>bx(t).parentElement)),i=$t(vx(r.width,n)),a=$t(vx(r.height,n)),o=U(()=>i.value/a.value);return{height:a,width:i,aspectRatio:o}}const wC=(e,t)=>{let n=U(()=>t.renderer.value.domElement),r=fn([]),{x:i,y:a}=qx({target:n}),o=0,{width:s,height:c,top:l,left:u}=Vx(n),d=({x:e,y:t})=>{if(n.value)return{x:(e-u.value)/s.value*2-1,y:-((t-l.value)/c.value)*2+1}},f=({x:n,y:i})=>{if(t.camera.value)return t.raycaster.value.setFromCamera(new nd(n,i),t.camera.value),r.value=t.raycaster.value.intersectObjects(e.value,!0),r.value},p=e=>{let t=d({x:e?.clientX??i.value,y:e?.clientY??a.value});return t&&f(t)||[]},m=ex(),h=ex(),g=ex(),_=ex(),v=ex(),y=ex(),b=ex(),x=ex();function S(e){let t={};for(let n in e)typeof n!=`function`&&(t[n]=e[n]);return t}let C=(e,n)=>{var i,a,s;let c=S(n),l=new W(n?.clientX,n?.clientY,0).unproject((i=t.camera)?.value);e.trigger({...c,intersections:r.value,unprojectedPoint:l,ray:(a=t.raycaster)?.value.ray,camera:(s=t.camera)?.value,sourceEvent:n,delta:o,stopPropagating:!1})},w,T=e=>{p(e),C(g,e),w=e},E=()=>{w&&T(w)},D,O,k,A=e=>{var t;D=(t=r.value[0])?.object,o=0,O=new nd(e?.clientX??i.value,e?.clientY??a.value),C(v,e)},j,M=e=>{var t,n,s;e instanceof PointerEvent&&(r.value.length===0&&C(y,e),D===(t=r.value[0])?.object&&(k=new nd(e?.clientX??i.value,e?.clientY??a.value),o=O?.distanceTo(k),e.button===0?(C(m,e),j===(n=r.value[0])?.object||(j=(s=r.value[0])?.object)):e.button===2&&C(b,e)),C(_,e))},ee=e=>{C(h,e),j=void 0},te=e=>C(g,e),N=e=>C(x,e);return n.value.addEventListener(`pointerup`,M),n.value.addEventListener(`pointerdown`,A),n.value.addEventListener(`pointermove`,T),n.value.addEventListener(`pointerleave`,te),n.value.addEventListener(`dblclick`,ee),n.value.addEventListener(`wheel`,N),hi(()=>{n!=null&&n.value&&(n.value.removeEventListener(`pointerup`,M),n.value.removeEventListener(`pointerdown`,A),n.value.removeEventListener(`pointermove`,T),n.value.removeEventListener(`pointerleave`,te),n.value.removeEventListener(`dblclick`,ee),n.value.removeEventListener(`wheel`,N))}),{intersects:r,onClick:e=>m.on(e).off,onDblClick:e=>h.on(e).off,onContextMenu:e=>b.on(e).off,onPointerMove:e=>g.on(e).off,onPointerUp:e=>_.on(e).off,onPointerDown:e=>v.on(e).off,onPointerMissed:e=>y.on(e).off,onWheel:e=>x.on(e).off,forceUpdate:E}};function TC(e,t){if(Array.isArray(e))for(let n of e)n(t);typeof e==`function`&&e(t)}function EC(e,t,n){var r;let i=fn(),a=fn();e&&(i.value=e),t&&(a.value=t);let o=e=>{var t;return(t=e.__tres)?.eventCount>0},s=e=>{var t;return(t=e.children)?.some(e=>s(e))||o(e)},c=fn(((r=i.value)?.children).filter(s)||[]);function l(e,t){let r=[],i=()=>t.stopPropagating=!0;t.stopPropagation=i;for(let i of t?.intersections){if(t.stopPropagating)return;t={...t,...i};let{object:a}=i;t.eventObject=a,TC(a[e],t),r.push(a);let o=a.parent;for(;o!==null&&!t.stopPropagating&&!r.includes(o);)t.eventObject=o,TC(o[e],t),r.push(o),o=o.parent;let s=IS(e.slice(2));n(s,{intersection:i,event:t})}}let{onClick:u,onDblClick:d,onContextMenu:f,onPointerMove:p,onPointerDown:m,onPointerUp:h,onPointerMissed:g,onWheel:_,forceUpdate:v}=wC(c,t);h(e=>l(`onPointerUp`,e)),m(e=>l(`onPointerDown`,e)),u(e=>l(`onClick`,e)),d(e=>l(`onDoubleClick`,e)),f(e=>l(`onContextMenu`,e)),_(e=>l(`onWheel`,e));let y=[];p(e=>{let t=e.intersections.map(({object:e})=>e),n=e.intersections;y.forEach(({object:n})=>{t.includes(n)||(e.intersections=y,l(`onPointerLeave`,e),l(`onPointerOut`,e))}),e.intersections=n,e.intersections.forEach(({object:t})=>{y.includes(t)||(l(`onPointerEnter`,e),l(`onPointerOver`,e))}),l(`onPointerMove`,e),y=e.intersections});let b=[];g(e=>{let t=()=>e.stopPropagating=!0;e.stopPropagation=t,b.forEach(t=>{e.stopPropagating||(e.eventObject=t,TC(t.onPointerMissed,e))}),n(`pointer-missed`,{event:e})});function x(e){kS(e)&&gS(e)&&c.value.push(e)}function S(e){if(kS(e)&&gS(e)){let t=c.value.indexOf(e);t>-1&&c.value.splice(t,1)}}function C(e){kS(e)&&gS(e)&&e.onPointerMissed&&b.push(e)}function w(e){if(kS(e)&&gS(e)){let t=b.indexOf(e);t>-1&&b.splice(t,1)}}return t.eventManager={forceUpdate:v,registerObject:x,deregisterObject:S,registerPointerMissedObject:C,deregisterPointerMissedObject:w},{forceUpdate:v,registerObject:x,deregisterObject:S,registerPointerMissedObject:C,deregisterPointerMissedObject:w}}function DC(e,t,n=100){n=n<=0?100:n;let r=ex(),i=new Set,a=!1,o=!1,s=null;function c(){s&&clearTimeout(s),!o&&!a&&e()?(r.trigger(t),i.forEach(e=>e()),i.clear(),a=!0):!o&&!a&&(s=setTimeout(c,n))}function l(){o=!0,s&&clearTimeout(s)}c();let u=(e,...t)=>{e(...t)};return{on:e=>{if(a)return u(e,t),{off:()=>{}};{let t=r.on(e);return i.add(t.off),r.on(e)}},off:r.off,trigger:r.trigger,clear:r.clear,cancel:l}}const OC=new WeakMap;function kC(e){if(e||=jC(),OC.has(e))return OC.get(e);let t=Date.now(),n=DC(()=>{if(Date.now()-t>=100)return!0;{let t=e.renderer.value,n=t?.domElement||{width:0,height:0};return!!(t&&n.width>0&&n.height>0)}},e);return OC.set(e,n),n}function AC({scene:e,canvas:t,windowSize:n,rendererOptions:r,emit:i}){let a=fn(e),o=CC(n,t),{camera:s,cameras:c,registerCamera:l,deregisterCamera:u,setCameraActive:d}=oC({sizes:o}),f={mode:F(r.renderMode||`always`),priority:F(0),frames:F(0),maxFrames:60,canBeInvalidated:U(()=>f.mode.value===`on-demand`&&f.frames.value===0)};function p(e=1){r.renderMode===`on-demand`&&(f.frames.value=Math.min(f.maxFrames,f.frames.value+e))}function m(){r.renderMode===`manual`&&(f.frames.value=1)}let{renderer:h}=SC({canvas:t,options:r,contextParts:{sizes:o,render:f,invalidate:p,advance:m}}),g={sizes:o,scene:a,camera:s,cameras:$t(c),renderer:h,raycaster:fn(new by),controls:F(null),perf:{maxFrames:160,fps:{value:0,accumulator:[]},memory:{currentMem:0,allocatedMem:0,accumulator:[]}},render:f,advance:m,extend:mC,invalidate:p,registerCamera:l,setCameraActive:d,deregisterCamera:u,loop:gC()};ca(`useTres`,g),g.scene.value.__tres={root:g},g.loop.register(()=>{s.value&&f.frames.value>0&&(h.value.render(e,s.value),i(`render`,g.renderer.value)),f.priority.value=0,f.mode.value===`always`?f.frames.value=1:f.frames.value=Math.max(0,f.frames.value-1)},`render`);let{on:_,cancel:v}=kC(g);g.loop.setReady(!1),g.loop.start(),_(()=>{i(`ready`,g),g.loop.setReady(!0),EC(e,g,i)}),hi(()=>{v(),g.loop.stop()});let y=Ux({every:100}),{isSupported:b,memory:x}=Wx({interval:100}),S=performance.now(),C=({timestamp:e})=>{g.scene.value&&(g.perf.memory.allocatedMem=_C(g.scene.value)),e-S>=100&&(S=e,g.perf.fps.accumulator.push(y.value),g.perf.fps.accumulator.length>160&&g.perf.fps.accumulator.shift(),g.perf.fps.value=y.value,b.value&&x.value&&(g.perf.memory.accumulator.push(x.value.usedJSHeapSize/1024/1024),g.perf.memory.accumulator.length>160&&g.perf.memory.accumulator.shift(),g.perf.memory.currentMem=g.perf.memory.accumulator.reduce((e,t)=>e+t,0)/g.perf.memory.accumulator.length))},w=0,{pause:T}=Px(({delta:e})=>{window.__TRES__DEVTOOLS__&&(C({timestamp:performance.now()}),w+=e,w>=1&&(window.__TRES__DEVTOOLS__.cb(g),w=0))},{immediate:!0});return hi(()=>{T()}),g}function jC(){let e=la(`useTres`);if(!e)throw Error(`useTresContext must be used together with useTresContextProvider`);return e}function MC(){let{camera:e,scene:t,renderer:n,loop:r,raycaster:i,controls:a,invalidate:o,advance:s}=jC();r.setContext({camera:e,scene:t,renderer:n,raycaster:i,controls:a,invalidate:o,advance:s});function c(e,t=0){return r.register(e,`before`,t)}function l(e){return r.register(e,`render`)}function u(e,t=0){return r.register(e,`after`,t)}return{pause:r.pause,resume:r.resume,pauseRender:r.pauseRender,resumeRender:r.resumeRender,isActive:r.isActive,onBeforeRender:c,render:l,onAfterRender:u}}const NC=ex(),PC=ex(),FC=ex(),IC=new ny;let LC=0,RC=0;const{pause:jse,resume:Mse,isActive:Nse}=Px(()=>{NC.trigger({delta:LC,elapsed:RC,clock:IC}),PC.trigger({delta:LC,elapsed:RC,clock:IC}),FC.trigger({delta:LC,elapsed:RC,clock:IC})},{immediate:!1});FC.on(()=>{LC=IC.getDelta(),RC=IC.getElapsedTime()});function zC(e,t={},n={}){let r=e,i=e=>{r=e},a=new Proxy({},{}),o={has(e,n){return n in t||n in r},get(e,n,i){return n in t?t[n](r):r[n]},set(e,t,o){return n[t]?n[t](o,r,a,i):r[t]=o,!0}};return a=new Proxy({},o),a}const{logError:BC}=fC(),VC=[`onClick`,`onContextMenu`,`onPointerMove`,`onPointerEnter`,`onPointerLeave`,`onPointerOver`,`onPointerOut`,`onDoubleClick`,`onPointerDown`,`onPointerUp`,`onPointerCancel`,`onPointerMissed`,`onLostPointerCapture`,`onWheel`],HC=e=>{let t=e.scene.value;function n(t,n,o,s){if(s||={},s.args||=[],t===`template`||MS(t))return null;let c=t.replace(`Tres`,``),l;if(t===`primitive`){(!hS(s.object)||dn(s.object))&&BC(`Tres primitives need an 'object' prop, whose value is an object or shallowRef`),c=s.object.type;let t={};l=zC(s.object,{object:e=>e,isPrimitive:()=>!0,__tres:()=>t},{object:(t,n,o,s)=>{nC(t,o,s,{patchProp:a,remove:i,insert:r},e)},__tres:e=>{Object.assign(t,e)}})}else{let e=pC.value[c];e||BC(`${c} is not defined on the THREE namespace. Use extend to add it to the catalog.`),l=new e(...s.args)}return l?(l.isCamera&&(s!=null&&s.position||l.position.set(3,3,3),s!=null&&s.lookAt||l.lookAt(0,0,0)),l=$S(l,{...l.__tres,type:c,memoizedProps:s,eventCount:0,primitive:t===`primitive`,attach:s.attach},e),l):null}function r(n,r){var i,a,o;if(!n)return;r||=t;let s=n.__tres?n:$S(n,{},e),c=r.__tres?r:$S(r,{},e);n=rC(s),r=rC(c),n.__tres&&(i=n.__tres)?.eventCount>0&&((a=e.eventManager)==null||a.registerObject(n)),e.registerCamera(n),(o=e.eventManager)==null||o.registerPointerMissedObject(n),s.__tres.attach?ZS(c,s,s.__tres.attach):gS(n)&&gS(c)&&(c.add(n),n.dispatchEvent({type:`added`})),s.__tres.parent=c,c.__tres.objects&&!c.__tres.objects.includes(s)&&c.__tres.objects.push(s)}function i(t,n){var r,a,o,s;if(!t)return;t!=null&&t.__tres&&(r=t.__tres)?.eventCount>0&&((a=e.eventManager)==null||a.deregisterObject(t)),n=uS(n)?`default`:n;let c=(o=t.__tres)?.dispose;uS(c)||(n=c===null?!1:c);let l=(s=t.__tres)?.primitive,u=n===`default`?!l:!!n;if(t.__tres&&`objects`in t.__tres&&[...t.__tres.objects].forEach(e=>i(e,n)),u&&t.children&&[...t.children].forEach(e=>i(e,n)),iC(t,e),aC(t,e),u&&!OS(t)){if(mS(n))n(t);else if(mS(t.dispose))try{t.dispose()}catch{}}`__tres`in t&&delete t.__tres}function a(t,n,a,o){var s,c;if(!t)return;let l=t,u=n;if(t.__tres&&(t.__tres.memoizedProps[n]=o),n===`attach`){let n=(s=t.__tres)?.parent||t.parent;i(t),$S(t,{attach:o},e),n&&r(t,n);return}if(n===`dispose`){t.__tres||(t=$S(t,{},e)),t.__tres.dispose=o;return}if(gS(t)&&u===`blocks-pointer-events`){o||o===``?t[u]=o:delete t[u];return}VC.includes(n)&&t.__tres&&(t.__tres.eventCount+=1);let d=PS(u),f=l?.[d];if(u===`args`){let e=t,n=a??[],r=o??[],i=(c=t.__tres)?.type||t.type;i&&n.length&&!VS(n,r)&&(l=Object.assign(e,new pC.value[i](...o)));return}if(l.type===`BufferGeometry`){if(u===`args`)return;l.setAttribute(PS(u),new sp(...o));return}if(u.includes(`-`)&&f===void 0){f=l;for(let e of u.split(`-`))d=u=PS(e),l=f,f=f?.[u]}let p=o;if(p===``&&(p=!0),mS(f)){VC.includes(n)||(dS(p)?t[d](...p):t[d](p)),d.startsWith(`on`)&&mS(p)&&(l[d]=p);return}SS(f)&&SS(p)?f.mask=p.mask:_S(f)&&vS(p)?f.set(p):bS(f)&&xS(p)&&f.constructor===p.constructor?f.copy(p):yS(f)&&Array.isArray(p)?`fromArray`in f&&typeof f.fromArray==`function`?f.fromArray(p):f.set(...p):yS(f)&&typeof p==`number`?`setScalar`in f&&typeof f.setScalar==`function`?f.setScalar(p):f.set(p):l[d]=p,eC(t)}function o(e){var t;return(t=e?.__tres)?.parent||null}function s(t){let n=$S(new kf,{type:`Comment`},e);return n.name=t,n}function c(e){var t;let n=o(e),r=(t=n?.__tres)?.objects||[],i=r.indexOf(e);return i<0||i>=r.length-1?null:r[i+1]}return{insert:r,remove:i,createElement:n,patchProp:a,parentNode:o,createText:()=>void 0,createComment:s,setText:()=>void 0,setElementText:()=>void 0,nextSibling:c,querySelector:()=>void 0,setScopeId:()=>void 0,cloneNode:()=>void 0,insertStaticContent:()=>void 0}};function UC(){return WC().__VUE_DEVTOOLS_GLOBAL_HOOK__}function WC(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}const GC=typeof Proxy==`function`;let KC,qC;function JC(){var e;return KC!==void 0||(typeof window<`u`&&window.performance?(KC=!0,qC=window.performance):typeof globalThis<`u`&&(e=globalThis.perf_hooks)!=null&&e.performance?(KC=!0,qC=globalThis.perf_hooks.performance):KC=!1),KC}function YC(){return JC()?qC.now():Date.now()}var XC=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;let n={};if(e.settings)for(let t in e.settings){let r=e.settings[t];n[t]=r.defaultValue}let r=`__vue-devtools-plugin-settings__${e.id}`,i=Object.assign({},n);try{let e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch{}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch{}i=e},now(){return YC()}},t&&t.on(`plugin:settings:set`,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:t===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(let e of this.onQueue)this.target.on[e.method](...e.args);for(let e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}};function ZC(e,t){let n=e,r=WC(),i=UC(),a=GC&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(`devtools-plugin:setup`,e,t);else{let e=a?new XC(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}}function QC(e,t){let n=`▲ ■ ●${e}`;typeof $C==`function`?$C(n,t):console.log(n)}function $C(e,t){throw Error(e+t)}const ew=e=>{let t={id:e.uuid,label:e.type,children:[],tags:[]};e.name!==``&&t.tags.push({label:e.name,textColor:5750629,backgroundColor:15793395});let n=_C(e);return n>0&&t.tags.push({label:`${vC(n)} KB`,textColor:15707189,backgroundColor:16775644,tooltip:`Memory usage`}),e.type.includes(`Light`)&&(ES(e)&&t.tags.push({label:`${e.intensity}`,textColor:9738662,backgroundColor:16316922,tooltip:`Intensity`}),t.tags.push({label:`#${new Jf(e.color).getHexString()}`,textColor:9738662,backgroundColor:16316922,tooltip:`Color`})),e.type.includes(`Camera`)&&(t.tags.push({label:`${e.fov}°`,textColor:9738662,backgroundColor:16316922,tooltip:`Field of view`}),t.tags.push({label:`x: ${Math.round(e.position.x)} y: ${Math.round(e.position.y)} z: ${Math.round(e.position.z)}`,textColor:9738662,backgroundColor:16316922,tooltip:`Position`})),t};function tw(e,t,n=``){e.children.forEach(e=>{if(e.type===`HightlightMesh`||n&&!e.type.includes(n)&&!e.name.includes(n))return;let r=ew(e);t.children.push(r),tw(e,r,n)})}const nw=[],rw=`tres:inspector`,iw=Zt({sceneGraph:null});function aw(e,t){ZC({id:`dev.esm.tres`,label:`TresJS 🪐`,logo:`https://raw.githubusercontent.com/Tresjs/tres/main/public/favicon.svg`,packageName:`tresjs`,homepage:`https://tresjs.org`,componentStateTypes:nw,app:e},e=>{typeof e.now!=`function`&&QC(`You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.`),e.addInspector({id:rw,label:`TresJS 🪐`,icon:`account_tree`,treeFilterPlaceholder:`Search instances`}),setInterval(()=>{e.sendInspectorTree(rw)},1e3),setInterval(()=>{e.notifyComponentUpdate()},5e3),e.on.getInspectorTree(e=>{if(e.inspectorId===rw){let n=ew(t.scene.value);tw(t.scene.value,n,e.filter),iw.sceneGraph=n,e.rootNodes=[n]}});let n=null,r=null;e.on.getInspectorState(e=>{var i;if(e.inspectorId===rw){let[a]=t.scene.value.getObjectsByProperty(`uuid`,e.nodeId);if(!a)return;if(r&&n&&n.parent&&r.remove(n),a.isMesh){let e=US(a);a.add(e),n=e,r=a}e.state={object:Object.entries(a).map(([e,t])=>e===`children`?{key:e,value:t.filter(e=>e.type!==`HightlightMesh`)}:{key:e,value:t,editable:!0}).filter(({key:e})=>e!==`parent`)},a.isScene&&(e.state={...e.state,state:[{key:`Scene Info`,value:{objects:a.children.length,memory:_C(a),calls:t.renderer.value.info.render.calls,triangles:t.renderer.value.info.render.triangles,points:t.renderer.value.info.render.points,lines:t.renderer.value.info.render.lines}},{key:`Programs`,value:(i=t.renderer.value.info.programs)?.map(e=>({...e,programName:e.name}))||[]}]})}}),e.on.editInspectorState(e=>{e.inspectorId===rw&&HS(t.scene.value,e.nodeId,e.path,e.state.value)})})}const ow=[`data-scene`,`data-tres`],sw=R({__name:`TresCanvas`,props:{shadows:{type:Boolean,default:void 0},clearColor:{},toneMapping:{},shadowMapType:{},useLegacyLights:{type:Boolean,default:void 0},outputColorSpace:{},toneMappingExposure:{},renderMode:{default:`always`},dpr:{},camera:{},preset:{},windowSize:{type:Boolean,default:void 0},enableProvideBridge:{type:Boolean,default:!0},context:{},alpha:{type:Boolean,default:void 0},premultipliedAlpha:{type:Boolean},antialias:{type:Boolean,default:void 0},stencil:{type:Boolean,default:void 0},preserveDrawingBuffer:{type:Boolean,default:void 0},powerPreference:{},depth:{type:Boolean,default:void 0},failIfMajorPerformanceCaveat:{type:Boolean,default:void 0},precision:{},logarithmicDepthBuffer:{type:Boolean,default:void 0},reverseDepthBuffer:{type:Boolean}},emits:[`render`,`click`,`double-click`,`context-menu`,`pointer-move`,`pointer-up`,`pointer-down`,`pointer-enter`,`pointer-leave`,`pointer-over`,`pointer-out`,`pointer-missed`,`wheel`,`ready`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=Wi(),o=F(),s=fn(new om),c=Go();mC(Xy);let l=(e,t=!1)=>R({setup(){var n;let i=(n=Go())?.appContext;i&&(i.app=c?.appContext.app);let o={};function s(e){e&&(e.parent&&s(e.parent),e.provides&&Object.assign(o,e.provides))}return c!=null&&c.parent&&r.enableProvideBridge&&(s(c.parent),Reflect.ownKeys(o).forEach(e=>{ca(e,o[e])})),ca(`useTres`,e),ca(`extend`,mC),typeof window<`u`&&aw(i?.app,e),()=>fs(vo,null,t?[]:a.default())}}),u=(e,t=!1)=>{let n=l(e,t),{render:r}=Ta(HC(e));r(fs(n),s.value)},d=(e,t=!1)=>{KS(e.scene.value),t&&(e.renderer.value.dispose(),e.renderer.value.renderLists.dispose(),e.renderer.value.forceContextLoss()),s.value.__tres={root:e}},f=fn(null);t({context:f,dispose:()=>d(f.value,!0)});let p=()=>{d(f.value),u(f.value,!0)};return di(()=>{let e=o;f.value=AC({scene:s.value,canvas:e,windowSize:r.windowSize??!1,rendererOptions:r,emit:i});let{registerCamera:t,camera:n,cameras:a,deregisterCamera:c}=f.value;u(f.value);let l=()=>{let e=new Qp(45,window.innerWidth/window.innerHeight,.1,1e3);e.position.set(3,3,3),e.lookAt(0,0,0),t(e);let n=La(()=>{a.value.length>=2&&(e.removeFromParent(),c(e),n?.())})};Ba(()=>r.camera,(e,n)=>{e&&t(e),n&&(n.removeFromParent(),c(n))},{immediate:!0}),n.value||l()}),hi(p),(e,t)=>(z(),B(`canvas`,{ref_key:`canvas`,ref:o,"data-scene":s.value.uuid,class:Te(e.$attrs.class),"data-tres":`tresjs ${I(cS).version}`,style:be({display:`block`,width:`100%`,height:`100%`,position:e.windowSize?`fixed`:`relative`,top:0,left:0,pointerEvents:`auto`,touchAction:`none`,...e.$attrs.style})},null,14,ow))}}),{logWarning:Pse}=fC(),{logWarning:Fse}=fC(),cw={install(e){e.component(`TresCanvas`,sw)}};var lw=s(((exports,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(r):typeof exports==`object`?t.exports=r():n.NProgress=r()})(exports,function(){var e={};e.version=`0.2.0`;var t=e.settings={minimum:.08,easing:`ease`,positionUsing:``,speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:`[role="bar"]`,spinnerSelector:`[role="spinner"]`,parent:`body`,template:`
`};e.configure=function(e){var n,r;for(n in e)r=e[n],r!==void 0&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=r===1?null:r;var c=e.render(!s),l=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,a(function(n){t.positionUsing===``&&(t.positionUsing=e.getPositioningCSS()),o(l,i(r,u,d)),r===1?(o(c,{transition:`none`,opacity:1}),c.offsetWidth,setTimeout(function(){o(c,{transition:`all `+u+`ms linear`,opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return typeof e.status==`number`},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return!t&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(t){var r=e.status;return r?(typeof t!=`number`&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},(function(){var t=0,n=0;e.promise=function(r){return!r||r.state()===`resolved`?this:(n===0&&e.start(),t++,n++,r.always(function(){n--,n===0?(t=0,e.done()):e.set((t-n)/t)}),this)}})(),e.render=function(n){if(e.isRendered())return document.getElementById(`nprogress`);c(document.documentElement,`nprogress-busy`);var i=document.createElement(`div`);i.id=`nprogress`,i.innerHTML=t.template;var a=i.querySelector(t.barSelector),s=n?`-100`:r(e.status||0),l=document.querySelector(t.parent),u;return o(a,{transition:`all 0 linear`,transform:`translate3d(`+s+`%,0,0)`}),t.showSpinner||(u=i.querySelector(t.spinnerSelector),u&&d(u)),l!=document.body&&c(l,`nprogress-custom-parent`),l.appendChild(i),i},e.remove=function(){l(document.documentElement,`nprogress-busy`),l(document.querySelector(t.parent),`nprogress-custom-parent`);var e=document.getElementById(`nprogress`);e&&d(e)},e.isRendered=function(){return!!document.getElementById(`nprogress`)},e.getPositioningCSS=function(){var e=document.body.style,t=`WebkitTransform`in e?`Webkit`:`MozTransform`in e?`Moz`:`msTransform`in e?`ms`:`OTransform`in e?`O`:``;return t+`Perspective`in e?`translate3d`:t+`Transform`in e?`translate`:`margin`};function n(e,t,n){return en?n:e}function r(e){return(-1+e)*100}function i(e,n,i){var a;return a=t.positionUsing===`translate3d`?{transform:`translate3d(`+r(e)+`%,0,0)`}:t.positionUsing===`translate`?{transform:`translate(`+r(e)+`%,0)`}:{"margin-left":r(e)+`%`},a.transition=`all `+n+`ms `+i,a}var a=(function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),e.length==1&&t()}})(),o=(function(){var e=[`Webkit`,`O`,`Moz`,`ms`],t={};function n(e){return e.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function r(t){var n=document.body.style;if(t in n)return t;for(var r=e.length,i=t.charAt(0).toUpperCase()+t.slice(1),a;r--;)if(a=e[r]+i,a in n)return a;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n=arguments,r,i;if(n.length==2)for(r in t)i=t[r],i!==void 0&&t.hasOwnProperty(r)&&a(e,r,i);else a(e,n[1],n[2])}})();function s(e,t){var n=typeof e==`string`?e:u(e);return n.indexOf(` `+t+` `)>=0}function c(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function l(e,t){var n=u(e),r;s(e,t)&&(r=n.replace(` `+t+` `,` `),e.className=r.substring(1,r.length-1))}function u(e){return(` `+(e.className||``)+` `).replace(/\s+/gi,` `)}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})})),uw=u(lw());const dw=new Set,fw=new WeakMap,pw=new WeakMap,mw=new WeakMap,hw=new WeakMap,gw=new WeakMap,_w=new WeakMap,vw=new WeakMap,yw=new WeakMap,bw=new WeakSet;let xw,Sw=0,Cw=0;const ww=`__aa_tgt`,Tw=`__aa_del`,Ew=`__aa_new`,Dw=e=>{let t=Iw(e);t&&t.forEach(e=>Rw(e))},Ow=e=>{e.forEach(e=>{e.target===xw&&jw(),fw.has(e.target)&&Aw(e.target)})};function kw(e){let t=hw.get(e);t?.disconnect();let n=fw.get(e),r=0;n||(n=Vw(e),fw.set(e,n));let{offsetWidth:i,offsetHeight:a}=xw,o=[n.top-5,i-(n.left+5+n.width),a-(n.top+5+n.height),n.left-5],s=o.map(e=>`${-1*Math.floor(e)}px`).join(` `),c=new IntersectionObserver(()=>{++r>1&&Aw(e)},{root:xw,threshold:1,rootMargin:s});c.observe(e),hw.set(e,c)}function Aw(e){clearTimeout(yw.get(e));let t=Uw(e),n=Jw(t)?500:t.duration;yw.set(e,setTimeout(async()=>{let t=mw.get(e);try{await t?.finished,fw.set(e,Vw(e)),kw(e)}catch{}},n))}function jw(){clearTimeout(yw.get(xw)),yw.set(xw,setTimeout(()=>{dw.forEach(e=>Kw(e,e=>Nw(()=>Aw(e))))},100))}function Mw(e){setTimeout(()=>{_w.set(e,setInterval(()=>Nw(Aw.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function Nw(e){typeof requestIdleCallback==`function`?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let Pw;const Fw=typeof window<`u`&&`ResizeObserver`in window;Fw&&(xw=document.documentElement,new MutationObserver(Dw),Pw=new ResizeObserver(Ow),window.addEventListener(`scroll`,()=>{Cw=window.scrollY,Sw=window.scrollX}),Pw.observe(xw));function Iw(e){let t=e.reduce((e,t)=>[...e,...Array.from(t.addedNodes),...Array.from(t.removedNodes)],[]),n=t.every(e=>e.nodeName===`#comment`);return n?!1:e.reduce((e,t)=>{if(e===!1)return!1;if(t.target instanceof Element){if(Lw(t.target),!e.has(t.target)){e.add(t.target);for(let n=0;nt(e,vw.has(e)));for(let n=0;ne(r,vw.has(r)))}}function qw(e){return Array.isArray(e)?e:[e]}function Jw(e){return typeof e==`function`}function Yw(e){let t=fw.get(e),n=Vw(e);if(!Gw(e))return fw.set(e,n);let r;if(!t)return;let i=Uw(e);if(typeof i!=`function`){let a=t.left-n.left,o=t.top-n.top,[s,c,l,u]=Hw(e,t,n),d={transform:`translate(${a}px, ${o}px)`},f={transform:`translate(0, 0)`};s!==c&&(d.width=`${s}px`,f.width=`${c}px`),l!==u&&(d.height=`${l}px`,f.height=`${u}px`),r=e.animate([d,f],{duration:i.duration,easing:i.easing})}else{let[a]=qw(i(e,`remain`,t,n));r=new Animation(a),r.play()}mw.set(e,r),fw.set(e,n),r.addEventListener(`finish`,()=>Aw(e),{once:!0})}function Xw(e){Ew in e&&delete e[Ew];let t=Vw(e);fw.set(e,t);let n=Uw(e);if(!Gw(e))return;let r;if(typeof n!=`function`)r=e.animate([{transform:`scale(.98)`,opacity:0},{transform:`scale(0.98)`,opacity:0,offset:.5},{transform:`scale(1)`,opacity:1}],{duration:n.duration*1.5,easing:`ease-in`});else{let[i]=qw(n(e,`add`,t));r=new Animation(i),r.play()}mw.set(e,r),r.addEventListener(`finish`,()=>Aw(e),{once:!0})}function Zw(e,t){var n;e.remove(),fw.delete(e),pw.delete(e),mw.delete(e),(n=hw.get(e))==null||n.disconnect(),setTimeout(()=>{if(Tw in e&&delete e[Tw],Object.defineProperty(e,Ew,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(let n in t)e.style[n]=``},0)}function Qw(e){var t;if(!pw.has(e)||!fw.has(e))return;let[n,r]=pw.get(e);Object.defineProperty(e,Tw,{value:!0,configurable:!0});let i=window.scrollX,a=window.scrollY;if(r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):n&&n.parentNode?n.parentNode.appendChild(e):(t=Ww(e))==null||t.appendChild(e),!Gw(e))return Zw(e);let[o,s,c,l]=eT(e),u=Uw(e),d=fw.get(e);(i!==Sw||a!==Cw)&&$w(e,i,a,u);let f,p={position:`absolute`,top:`${o}px`,left:`${s}px`,width:`${c}px`,height:`${l}px`,margin:`0`,pointerEvents:`none`,transformOrigin:`center`,zIndex:`100`};if(!Jw(u))Object.assign(e.style,p),f=e.animate([{transform:`scale(1)`,opacity:1},{transform:`scale(.98)`,opacity:0}],{duration:u.duration,easing:`ease-out`});else{let[t,n]=qw(u(e,`remove`,d));n?.styleReset!==!1&&(p=n?.styleReset||p,Object.assign(e.style,p)),f=new Animation(t),f.play()}mw.set(e,f),f.addEventListener(`finish`,()=>Zw(e,p),{once:!0})}function $w(e,t,n,r){let i=Sw-t,a=Cw-n,o=document.documentElement.style.scrollBehavior,s=getComputedStyle(xw).scrollBehavior;if(s===`smooth`&&(document.documentElement.style.scrollBehavior=`auto`),window.scrollTo(window.scrollX+i,window.scrollY+a),!e.parentElement)return;let c=e.parentElement,l=c.clientHeight,u=c.clientWidth,d=performance.now();function f(){requestAnimationFrame(()=>{if(!Jw(r)){let e=l-c.clientHeight,t=u-c.clientWidth;d+r.duration>performance.now()?(window.scrollTo({left:window.scrollX-t,top:window.scrollY-e}),l=c.clientHeight,u=c.clientWidth,f()):document.documentElement.style.scrollBehavior=o}})}f()}function eT(e){let t=fw.get(e),[n,,r]=Hw(e,t,Vw(e)),i=e.parentElement;for(;i&&(getComputedStyle(i).position===`static`||i instanceof HTMLBodyElement);)i=i.parentElement;i||=document.body;let a=getComputedStyle(i),o=fw.get(i)||Vw(i),s=Math.round(t.top-o.top)-zw(a.borderTopWidth),c=Math.round(t.left-o.left)-zw(a.borderLeftWidth);return[s,c,n,r]}function tT(e,t={}){if(Fw&&Pw){let n=window.matchMedia(`(prefers-reduced-motion: reduce)`),r=n.matches&&!Jw(t)&&!t.disrespectUserMotionPreference;if(!r){bw.add(e),getComputedStyle(e).position===`static`&&Object.assign(e.style,{position:`relative`}),Kw(e,Aw,Mw,e=>Pw?.observe(e)),Jw(t)?vw.set(e,t):vw.set(e,{duration:250,easing:`ease-in-out`,...t});let n=new MutationObserver(Dw);n.observe(e,{childList:!0}),gw.set(e,n),dw.add(e)}}let n=Object.freeze({parent:e,enable:()=>{bw.add(e)},disable:()=>{bw.delete(e)},isEnabled:()=>bw.has(e),destroy:()=>{bw.delete(e),dw.delete(e),vw.delete(e);let t=gw.get(e);t?.disconnect(),gw.delete(e),Kw(e,e=>{Pw?.unobserve(e);let t=mw.get(e);try{t?.cancel()}catch{}mw.delete(e);let n=hw.get(e);n?.disconnect(),hw.delete(e);let r=_w.get(e);r&&clearInterval(r),_w.delete(e);let i=yw.get(e);i&&clearTimeout(i),yw.delete(e),fw.delete(e),pw.delete(e)})}});return n}const nT={mounted:(e,t)=>{let n=tT(e,t.value||{});Object.defineProperty(e,`__aa_ctl`,{value:n,configurable:!0})},unmounted:e=>{var t;let n=e.__aa_ctl;(t=n?.destroy)==null||t.call(n);try{delete e.__aa_ctl}catch{}},getSSRProps:()=>({})},rT=nT,iT={install(e){e.directive(`auto-animate`,rT)}};function aT(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function oT(e,t,n=`.`,r){if(!aT(t))return oT(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];if(a==null||r&&r(i,t,a,n))continue;Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:aT(a)&&aT(i[t])?i[t]=oT(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a}return i}function sT(e){return(...t)=>t.reduce((t,n)=>oT(t,n,``,e),{})}const cT=sT();sT((e,t,n)=>{if(e[t]!==void 0&&typeof n==`function`)return e[t]=n(e[t]),!0}),sT((e,t,n)=>{if(Array.isArray(e[t])&&typeof n==`function`)return e[t]=n(e[t]),!0});function lT(e){return Ve()?(He(e),!0):!1}function uT(){let e=new Set,t=t=>{e.delete(t)},n=()=>{e.clear()},r=n=>{e.add(n);let r=()=>t(n);return lT(r),{off:r}},i=(...t)=>Promise.all(Array.from(e).map(e=>e(...t)));return{on:r,off:t,trigger:i,clear:n}}const dT=new WeakMap,fT=(...e)=>{var t;let n=e[0],r=(t=Go())?.proxy;if(r==null&&!ua())throw Error(`injectLocal must be called in setup`);return r&&dT.has(r)&&n in dT.get(r)?dT.get(r)[n]:la(...e)},pT=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const mT=e=>e!=null,hT=Object.prototype.toString,gT=e=>hT.call(e)===`[object Object]`,_T=()=>{},vT=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function yT(...e){if(e.length!==1)return vn(...e);let t=e[0];return typeof t==`function`?$t(gn(()=>({get:t,set:_T}))):F(t)}function bT(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}const xT=e=>e();function ST(e,t={}){let n,r,i=_T,a=e=>{clearTimeout(e),i(),i=_T},o,s=s=>{let c=mn(e),l=mn(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})};return s}function CT(...e){let t=0,n,r=!0,i=_T,a,o,s,c,l;!dn(e[0])&&typeof e[0]==`object`?{delay:o,trailing:s=!0,leading:c=!0,rejectOnCancel:l=!1}=e[0]:[o,s=!0,c=!0,l=!1]=e;let u=()=>{n&&(clearTimeout(n),n=void 0,i(),i=_T)},d=e=>{let d=mn(o),f=Date.now()-t,p=()=>a=e();return u(),d<=0?(t=Date.now(),p()):(f>d&&(c||!r)?(t=Date.now(),p()):s&&(a=new Promise((e,a)=>{i=l?a:e,n=setTimeout(()=>{t=Date.now(),r=!0,e(p()),u()},Math.max(0,d-f))})),!c&&!n&&(n=setTimeout(()=>r=!0,d)),r=!1,a)};return d}function wT(e=xT,t={}){let{initialState:n=`active`}=t,r=yT(n===`active`);function i(){r.value=!1}function a(){r.value=!0}let o=(...t)=>{r.value&&e(...t)};return{isActive:$t(r),pause:i,resume:a,eventFilter:o}}function TT(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function ET(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function DT(e,t){var n;if(typeof e==`number`)return e+t;let r=(n=e.match(/^-?\d+\.?\d*/))?.[0]||``,i=e.slice(r.length),a=Number.parseFloat(r)+t;return Number.isNaN(a)?e:a+i}function OT(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function kT(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}function AT(e){return Array.isArray(e)?e:[e]}function jT(e){let t=Object.create(null);return n=>{let r=t[n];return r||(t[n]=e(n))}}const MT=/\B([A-Z])/g;jT(e=>e.replace(MT,`-$1`).toLowerCase());const NT=/-(\w)/g;jT(e=>e.replace(NT,(e,t)=>t?t.toUpperCase():``));function PT(e){return e||Go()}function FT(e,t=200,n={}){return bT(ST(t,n),e)}function IT(e,t=200,n={}){let r=F(mn(e)),i=FT(()=>{r.value=e.value},t,n);return Ba(e,()=>i()),en(r)}function LT(e,t=200,n=!1,r=!0,i=!1){return bT(CT(t,n,r,i),e)}function RT(e,t=200,n=!0,r=!0){if(t<=0)return e;let i=F(mn(e)),a=LT(()=>{i.value=e.value},t,n,r);return Ba(e,()=>a()),i}function zT(e,t,n={}){let{eventFilter:r=xT,...i}=n;return Ba(e,bT(r,t),i)}function BT(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=wT(r,{initialState:i}),u=zT(e,t,{...a,eventFilter:o});return{stop:u,pause:s,resume:c,isActive:l}}function VT(e,t={}){if(!dn(e))return _n(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=gn(()=>({get(){return e.value[r]},set(n){var i;let a=(i=mn(t.replaceRef))??!0;if(a)if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[r]=n}}));return n}function HT(e,t=!0,n){let r=PT(n);r?di(e,n):t?e():Gn(e)}function UT(e,t){let n=PT(t);n&&hi(e,t)}function WT(e,t=!1){function n(n,{flush:r=`sync`,deep:i=!1,timeout:a,throwOnTimeout:o}={}){let s=null,c=new Promise(a=>{s=Ba(e,e=>{n(e)!==t&&(s?s():Gn(()=>s?.()),a(e))},{flush:r,deep:i,immediate:!0})}),l=[c];return a!=null&&l.push(TT(a,o).then(()=>mn(e)).finally(()=>s?.())),Promise.race(l)}function r(r,i){if(!dn(r))return n(e=>e===r,i);let{flush:a=`sync`,deep:o=!1,timeout:s,throwOnTimeout:c}=i??{},l=null,u=new Promise(n=>{l=Ba([e,r],([e,r])=>{t!==(e===r)&&(l?l():Gn(()=>l?.()),n(e))},{flush:a,deep:o,immediate:!0})}),d=[u];return s!=null&&d.push(TT(s,c).then(()=>mn(e)).finally(()=>(l?.(),mn(e)))),Promise.race(d)}function i(e){return n(e=>!!e,e)}function a(e){return r(null,e)}function o(e){return r(void 0,e)}function s(e){return n(Number.isNaN,e)}function c(e,t){return n(t=>{let n=Array.from(t);return n.includes(e)||n.includes(mn(e))},t)}function l(e){return u(1,e)}function u(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}if(Array.isArray(mn(e))){let r={toMatch:n,toContains:c,changed:l,changedTimes:u,get not(){return WT(e,!t)}};return r}else{let c={toMatch:n,toBe:r,toBeTruthy:i,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:l,changedTimes:u,get not(){return WT(e,!t)}};return c}}function GT(e){return WT(e)}function Ise(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=fn(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},mn(t))}return r&&(a.value=!0,pT&&l()),lT(c),{isPending:en(a),start:l,stop:c}}function Lse(e,t,n){return Ba(e,t,{...n,immediate:!0})}function Rse(e,t,n){var r;let i;i=dn(n)?{evaluating:n}:n||{};let{lazy:a=!1,flush:o=`pre`,evaluating:s=void 0,shallow:c=!0,onError:l=(r=globalThis.reportError)??_T}=i,u=fn(!a),d=c?fn(t):F(t),f=0;return La(async t=>{if(!u.value)return;f++;let n=f,r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{let i=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===f&&(d.value=i)}catch(e){l(e)}finally{s&&n===f&&(s.value=!1),r=!0}},{flush:o}),a?U(()=>(u.value=!0,d.value)):d}const KT=pT?window:void 0,zse=pT?window.document:void 0,qT=pT?window.navigator:void 0;pT&&window.location;function JT(e){var t;let n=mn(e);return(t=n?.$el)??n}function YT(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=U(()=>{let t=AT(mn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=Lse(()=>{var t,n;return[(n=(t=i.value)?.map(e=>JT(e)))??[KT].filter(e=>e!=null),AT(mn(i.value?e[1]:e[0])),AT(I(i.value?e[2]:e[1])),mn(i.value?e[3]:e[2])]},([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=gT(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`}),o=()=>{a(),n()};return lT(n),o}function Bse(){let e=fn(!1),t=Go();return t&&di(()=>{e.value=!0},t),e}function XT(e){let t=Bse();return U(()=>(t.value,!!e()))}function ZT(e,t,n={}){let{window:r=KT,...i}=n,a,o=XT(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=U(()=>{let t=mn(e),n=AT(t).map(JT).filter(mT);return new Set(n)}),l=Ba(c,e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>a?.takeRecords(),d=()=>{l(),s()};return lT(d),{isSupported:o,stop:d,takeRecords:u}}const Vse=Symbol(`vueuse-ssr-width`);function QT(){let e=ua()?fT(Vse,null):null;return typeof e==`number`?e:void 0}function $T(e,t={}){let{window:n=KT,ssrWidth:r=QT()}=t,i=XT(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=fn(typeof r==`number`),o=fn(),s=fn(!1),c=e=>{s.value=e.matches};return La(()=>{if(a.value){a.value=!i.value;let t=mn(e).split(`,`);s.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=OT(n[1])),i&&a&&(a=r<=OT(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(mn(e)),s.value=o.value.matches)}),YT(o,`change`,c,{passive:!0}),U(()=>s.value)}const eE={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function tE(e,t={}){function n(t,n){let r=mn(e[mn(t)]);return n!=null&&(r=DT(r,n)),typeof r==`number`&&(r=`${r}px`),r}let{window:r=KT,strategy:i=`min-width`,ssrWidth:a=QT()}=t,o=typeof a==`number`,s=o?fn(!1):{value:!0};o&&HT(()=>s.value=!!r);function c(e,t){return!s.value&&o?e===`min`?a>=OT(t):a<=OT(t):r?r.matchMedia(`(${e}-width: ${t})`).matches:!1}let l=e=>$T(()=>`(min-width: ${n(e)})`,t),u=e=>$T(()=>`(max-width: ${n(e)})`,t),d=Object.keys(e).reduce((e,t)=>(Object.defineProperty(e,t,{get:()=>i===`min-width`?l(t):u(t),enumerable:!0,configurable:!0}),e),{});function f(){let t=Object.keys(e).map(e=>[e,d[e],OT(n(e))]).sort((e,t)=>e[2]-t[2]);return U(()=>t.filter(([,e])=>e.value).map(([e])=>e))}return Object.assign(d,{greaterOrEqual:l,smallerOrEqual:u,greater(e){return $T(()=>`(min-width: ${n(e,.1)})`,t)},smaller(e){return $T(()=>`(max-width: ${n(e,-.1)})`,t)},between(e,r){return $T(()=>`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t)},isGreater(e){return c(`min`,n(e,.1))},isGreaterOrEqual(e){return c(`min`,n(e))},isSmaller(e){return c(`max`,n(e,-.1))},isSmallerOrEqual(e){return c(`max`,n(e))},isInBetween(e,t){return c(`min`,n(e))&&c(`max`,n(t,-.1))},current:f,active(){let e=f();return U(()=>e.value.length===0?``:e.value.at(i===`min-width`?-1:0))}})}function Hse(e){let{name:t,window:n=KT}=e,r=XT(()=>n&&`BroadcastChannel`in n),i=fn(!1),a=F(),o=F(),s=fn(null),c=e=>{a.value&&a.value.postMessage(e)},l=()=>{a.value&&a.value.close(),i.value=!0};return r.value&&HT(()=>{s.value=null,a.value=new BroadcastChannel(t);let e={passive:!0};YT(a,`message`,e=>{o.value=e.data},e),YT(a,`messageerror`,e=>{s.value=e},e),YT(a,`close`,()=>{i.value=!0},e)}),lT(()=>{l()}),{isSupported:r,channel:a,data:o,post:c,close:l,error:s,isClosed:i}}function nE(e,t={}){let{controls:n=!1,navigator:r=qT}=t,i=XT(()=>r&&`permissions`in r),a=fn(),o=typeof e==`string`?{name:e}:e,s=fn(),c=()=>{var e,t;s.value=(t=(e=a.value)?.state)??`prompt`};YT(a,`change`,c,{passive:!0});let l=ET(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{c()}if(n)return sn(a.value)}});return l(),n?{state:s,isSupported:i,query:l}:s}function Use(e={}){let{navigator:t=qT,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,o=XT(()=>t&&`clipboard`in t),s=nE(`clipboard-read`),c=nE(`clipboard-write`),l=U(()=>o.value||a),u=fn(``),d=fn(!1),f=Ise(()=>d.value=!1,i,{immediate:!1});async function p(){let e=!(o.value&&_(s.value));if(!e)try{u.value=await t.clipboard.readText()}catch{e=!0}e&&(u.value=g())}l.value&&n&&YT([`copy`,`cut`],p,{passive:!0});async function m(e=mn(r)){if(l.value&&e!=null){let n=!(o.value&&_(c.value));if(!n)try{await t.clipboard.writeText(e)}catch{n=!0}n&&h(e),u.value=e,d.value=!0,f.start()}}function h(e){let t=document.createElement(`textarea`);t.value=e??``,t.style.position=`absolute`,t.style.opacity=`0`,document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function g(){var e,t,n;return(n=(t=(e=document==null?void 0:document.getSelection)?.call(document))?.toString())??``}function _(e){return e===`granted`||e===`prompt`}return{isSupported:l,text:u,copied:d,copy:m}}const rE=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},iE=`__vueuse_ssr_handlers__`,Wse=Gse();function Gse(){return iE in rE||(rE[iE]=rE[iE]||{}),rE[iE]}function aE(e,t){return Wse[e]||t}function Kse(e){return $T(`(prefers-color-scheme: dark)`,e)}function qse(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}const Jse={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},oE=`vueuse-storage`;function sE(e,t,n,r={}){var i;let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:l=!1,shallow:u,window:d=KT,eventFilter:f,onError:p=e=>{console.error(e)},initOnMounted:m}=r,h=(u?fn:F)(typeof t==`function`?t():t),g=U(()=>mn(e));if(!n)try{n=aE(`getDefaultStorage`,()=>{var e;return(e=KT)?.localStorage})()}catch(e){p(e)}if(!n)return h;let _=mn(t),v=qse(_),y=(i=r.serializer)??Jse[v],{pause:b,resume:x}=BT(h,e=>E(e),{flush:a,deep:o,eventFilter:f});Ba(g,()=>O(),{flush:a});let S=!1,C=e=>{m&&!S||O(e)},w=e=>{m&&!S||k(e)};d&&s&&(n instanceof Storage?YT(d,`storage`,C,{passive:!0}):YT(d,oE,w)),m?HT(()=>{S=!0,O()}):O();function T(e,t){if(d){let r={key:g.value,oldValue:e,newValue:t,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(oE,{detail:r}))}}function E(e){try{let t=n.getItem(g.value);if(e==null)T(t,null),n.removeItem(g.value);else{let r=y.write(e);t!==r&&(n.setItem(g.value,r),T(t,r))}}catch(e){p(e)}}function D(e){let t=e?e.newValue:n.getItem(g.value);if(t==null)return c&&_!=null&&n.setItem(g.value,y.write(_)),_;if(!e&&l){let e=y.read(t);return typeof l==`function`?l(e,_):v===`object`&&!Array.isArray(e)?{..._,...e}:e}else if(typeof t!=`string`)return t;else return y.read(t)}function O(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){h.value=_;return}if(!(e&&e.key!==g.value)){b();try{let t=y.write(h.value);(e===void 0||e?.newValue!==t)&&(h.value=D(e))}catch(e){p(e)}finally{e?Gn(x):x()}}}}function k(e){O(e.detail)}return h}function Yse(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=KT,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=Kse({window:i}),p=U(()=>f.value?`dark`:`light`),m=c||(o==null?yT(r):sE(o,r,a,{window:i,listenToStorageChanges:s})),h=U(()=>m.value===`auto`?p.value:m.value),g=aE(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):JT(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function _(e){var r;g(t,n,(r=d[e])??e)}function v(t){e.onChanged?e.onChanged(t,_):_(t)}Ba(h,v,{flush:`post`,immediate:!0}),HT(()=>v(h.value));let y=U({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(y,{store:m,system:p,state:h})}function cE(e,t,n={}){let{window:r=KT,initialValue:i,observe:a=!1}=n,o=fn(i),s=U(()=>{var e;return JT(t)||(e=r?.document)?.documentElement});function c(){var t;let n=mn(e),a=mn(s);if(a&&r&&n){let e=(t=r.getComputedStyle(a).getPropertyValue(n))?.trim();o.value=e||o.value||i}}return a&&ZT(s,c,{attributeFilter:[`style`,`class`],window:r}),Ba([s,()=>mn(e)],(e,t)=>{t[0]&&t[1]&&t[0].style.removeProperty(t[1]),c()},{immediate:!0}),Ba([o,s],([t,n])=>{let r=mn(e);n?.style&&r&&(t==null?n.style.removeProperty(r):n.style.setProperty(r,t))},{immediate:!0}),o}function lE(e={}){let{valueDark:t=`dark`,valueLight:n=``}=e,r=Yse({...e,onChanged:(t,n)=>{var r;e.onChanged?(r=e.onChanged)==null||r.call(e,t===`dark`,n,t):n(t)},modes:{dark:t,light:n}}),i=U(()=>r.system.value),a=U({get(){return r.value===`dark`},set(e){let t=e?`dark`:`light`;i.value===t?r.value=`auto`:r.value=t}});return a}function uE(e={}){let{navigator:t=qT,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:i}=e,a=F([]),o=U(()=>a.value.filter(e=>e.kind===`videoinput`)),s=U(()=>a.value.filter(e=>e.kind===`audioinput`)),c=U(()=>a.value.filter(e=>e.kind===`audiooutput`)),l=XT(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),u=fn(!1),d;async function f(){l.value&&(a.value=await t.mediaDevices.enumerateDevices(),i?.(a.value),d&&=(d.getTracks().forEach(e=>e.stop()),null))}async function p(){let e=r.video?`camera`:`microphone`;if(!l.value)return!1;if(u.value)return!0;let{state:n,query:i}=nE(e,{controls:!0});if(await i(),n.value!==`granted`){let e=!0;try{let e=await t.mediaDevices.enumerateDevices(),n=e.some(e=>e.kind===`videoinput`),i=e.some(e=>e.kind===`audioinput`||e.kind===`audiooutput`);r.video=n?r.video:!1,r.audio=i?r.audio:!1,d=await t.mediaDevices.getUserMedia(r)}catch{d=null,e=!1}f(),u.value=e}else u.value=!0;return u.value}return l.value&&(n&&p(),YT(t.mediaDevices,`devicechange`,f,{passive:!0}),f()),{devices:a,ensurePermissions:p,permissionGranted:u,videoInputs:o,audioInputs:s,audioOutputs:c,isSupported:l}}function dE(e,t,n={}){let{window:r=KT,...i}=n,a,o=XT(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=U(()=>{let t=mn(e);return Array.isArray(t)?t.map(e=>JT(e)):[JT(t)]}),l=Ba(c,e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{s(),l()};return lT(u),{isSupported:o,stop:u}}function fE(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=fn(0),c=fn(0),l=fn(0),u=fn(0),d=fn(0),f=fn(0),p=fn(0),m=fn(0);function h(){let t=JT(e);if(!t){n&&(s.value=0,c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,l.value=r.left,u.value=r.right,d.value=r.top,f.value=r.width,p.value=r.x,m.value=r.y}function g(){o===`sync`?h():o===`next-frame`&&requestAnimationFrame(()=>h())}return dE(e,g),Ba(()=>JT(e),e=>!e&&g()),ZT(e,g,{attributeFilter:[`style`,`class`]}),i&&YT(`scroll`,g,{capture:!0,passive:!0}),r&&YT(`resize`,g,{passive:!0}),HT(()=>{a&&g()}),{height:s,bottom:c,left:l,right:u,top:d,width:f,x:p,y:m,update:g}}function Xse(e,t,n={}){let{root:r,rootMargin:i=`0px`,threshold:a=0,window:o=KT,immediate:s=!0}=n,c=XT(()=>o&&`IntersectionObserver`in o),l=U(()=>{let t=mn(e);return AT(t).map(JT).filter(mT)}),u=_T,d=fn(s),f=c.value?Ba(()=>[l.value,JT(r),d.value],([e,n])=>{if(u(),!d.value||!e.length)return;let r=new IntersectionObserver(t,{root:JT(n),rootMargin:i,threshold:a});e.forEach(e=>e&&r.observe(e)),u=()=>{r.disconnect(),u=_T}},{immediate:s,flush:`post`}):_T,p=()=>{u(),f(),d.value=!1};return lT(p),{isSupported:c,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}const Zse={multiple:!0,accept:`*`,reset:!1,directory:!1};function Qse(e){if(!e)return null;if(e instanceof FileList)return e;let t=new DataTransfer;for(let n of e)t.items.add(n);return t.files}function $se(e={}){let{document:t=zse}=e,n=F(Qse(e.initialFiles)),{on:r,trigger:i}=uT(),{on:a,trigger:o}=uT(),s=U(()=>{var r;let a=(r=JT(e.input))??(t?t.createElement(`input`):void 0);return a&&(a.type=`file`,a.onchange=e=>{let t=e.target;n.value=t.files,i(n.value)},a.oncancel=()=>{o()}),a}),c=()=>{n.value=null,s.value&&s.value.value&&(s.value.value=``,i(null))},l=e=>{let t=s.value;t&&(t.multiple=mn(e.multiple),t.accept=mn(e.accept),t.webkitdirectory=mn(e.directory),vT(e,`capture`)&&(t.capture=mn(e.capture)))},u=t=>{let n=s.value;if(!n)return;let r={...Zse,...e,...t};l(r),mn(r.reset)&&c(),n.click()};return La(()=>{l(e)}),{files:$t(n),open:u,reset:c,onCancel:a,onChange:r}}function pE(e,t,n={}){let{window:r=KT}=n;return sE(e,t,r?.localStorage,n)}const ece={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function tce(e={}){let{reactive:t=!1,target:n=KT,aliasMap:r=ece,passive:i=!0,onEventFired:a=_T}=e,o=Zt(new Set),s={toJSON(){return{}},current:o},c=t?Zt(s):s,l=new Set,u=new Set,d=new Set;function f(e,n){e in c&&(t?c[e]=n:c[e].value=n)}function p(){o.clear();for(let e of d)f(e,!1)}function m(e,t){var n,r;let i=(n=e.key)?.toLowerCase(),a=(r=e.code)?.toLowerCase(),s=[a,i].filter(Boolean);i&&(t?o.add(i):o.delete(i));for(let e of s)d.add(e),f(e,t);if(i===`shift`&&!t){let e=Array.from(u),t=e.indexOf(`shift`);e.forEach((e,n)=>{n>=t&&(o.delete(e),f(e,!1))}),u.clear()}else typeof e.getModifierState==`function`&&e.getModifierState(`Shift`)&&t&&[...o,...s].forEach(e=>u.add(e));i===`meta`&&!t?(l.forEach(e=>{o.delete(e),f(e,!1)}),l.clear()):typeof e.getModifierState==`function`&&e.getModifierState(`Meta`)&&t&&[...o,...s].forEach(e=>l.add(e))}YT(n,`keydown`,e=>(m(e,!0),a(e)),{passive:i}),YT(n,`keyup`,e=>(m(e,!1),a(e)),{passive:i}),YT(`blur`,p,{passive:i}),YT(`focus`,p,{passive:i});let h=new Proxy(c,{get(e,n,i){if(typeof n!=`string`)return Reflect.get(e,n,i);if(n=n.toLowerCase(),n in r&&(n=r[n]),!(n in c))if(/[+_-]/.test(n)){let e=n.split(/[+_-]/g).map(e=>e.trim());c[n]=U(()=>e.map(e=>mn(h[e])).every(Boolean))}else c[n]=fn(!1);let a=Reflect.get(e,n,i);return t?mn(a):a}});return h}const nce={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function rce(e={}){let{type:t=`page`,touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=KT,target:o=a,scroll:s=!0,eventFilter:c}=e,l=null,u=0,d=0,f=fn(i.x),p=fn(i.y),m=fn(null),h=typeof t==`function`?t:nce[t],g=e=>{let t=h(e);l=e,t&&([f.value,p.value]=t,m.value=`mouse`),a&&(u=a.scrollX,d=a.scrollY)},_=e=>{if(e.touches.length>0){let t=h(e.touches[0]);t&&([f.value,p.value]=t,m.value=`touch`)}},v=()=>{if(!l||!a)return;let e=h(l);l instanceof MouseEvent&&e&&(f.value=e[0]+a.scrollX-u,p.value=e[1]+a.scrollY-d)},y=()=>{f.value=i.x,p.value=i.y},b=c?e=>c(()=>g(e),{}):e=>g(e),x=c?e=>c(()=>_(e),{}):e=>_(e),S=c?()=>c(()=>v(),{}):()=>v();if(o){let e={passive:!0};YT(o,[`mousemove`,`dragover`],b,e),n&&t!==`movement`&&(YT(o,[`touchstart`,`touchmove`],x,e),r&&YT(o,`touchend`,y,e)),s&&t===`page`&&YT(a,`scroll`,S,e)}return{x:f,y:p,sourceType:m}}function ice(e){let t=fn(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return Ba(()=>mn(e),e=>{n(),e&&(t.value=URL.createObjectURL(e))},{immediate:!0}),lT(n),$t(t)}const mE={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},ace=Object.keys(mE);function oce(e={}){let{target:t=KT}=e,n=fn(!1),r=fn(e.initialValue||{});Object.assign(r.value,mE,r.value);let i=t=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(t.pointerType))&&(r.value=kT(t,ace,!1))};if(t){let e={passive:!0};YT(t,[`pointerdown`,`pointermove`,`pointerup`],i,e),YT(t,`pointerleave`,()=>n.value=!1,e)}return{...VT(r),isInside:n}}const hE=`--vueuse-safe-area-top`,gE=`--vueuse-safe-area-right`,_E=`--vueuse-safe-area-bottom`,vE=`--vueuse-safe-area-left`;function yE(){let e=fn(``),t=fn(``),n=fn(``),r=fn(``);if(pT){let e=cE(hE),t=cE(gE),n=cE(_E),r=cE(vE);e.value=`env(safe-area-inset-top, 0px)`,t.value=`env(safe-area-inset-right, 0px)`,n.value=`env(safe-area-inset-bottom, 0px)`,r.value=`env(safe-area-inset-left, 0px)`,HT(i),YT(`resize`,FT(i),{passive:!0})}function i(){e.value=bE(hE),t.value=bE(gE),n.value=bE(_E),r.value=bE(vE)}return{top:e,right:t,bottom:n,left:r,update:i}}function bE(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function xE(e={}){var t,n;let r=fn((t=e.enabled)??!1),i=fn((n=e.autoSwitch)??!0),a=F(e.constraints),{navigator:o=qT}=e,s=XT(()=>{var e;return(e=o?.mediaDevices)?.getUserMedia}),c=fn();function l(e){switch(e){case`video`:if(a.value)return a.value.video||!1;break;case`audio`:if(a.value)return a.value.audio||!1;break}}async function u(){if(!(!s.value||c.value))return c.value=await o.mediaDevices.getUserMedia({video:l(`video`),audio:l(`audio`)}),c.value}function d(){var e;(e=c.value)==null||e.getTracks().forEach(e=>e.stop()),c.value=void 0}function f(){d(),r.value=!1}async function p(){return await u(),c.value&&(r.value=!0),c.value}async function m(){return d(),await p()}return Ba(r,e=>{e?u():d()},{immediate:!0}),Ba(a,()=>{i.value&&c.value&&m()},{immediate:!0}),lT(()=>{f()}),{isSupported:s,stream:c,start:p,stop:f,restart:m,constraints:a,enabled:r,autoSwitch:i}}function sce(e,t,n){let{window:r=KT}=n??{},i=F(null),a=fn(),o=(...e)=>{a.value&&a.value.postMessage(...e)},s=function(){a.value&&a.value.terminate()};return r&&(typeof e==`string`?a.value=new Worker(e,t):typeof e==`function`?a.value=e():a.value=e,a.value.onmessage=e=>{i.value=e.data},lT(()=>{a.value&&a.value.terminate()})),{data:i,post:o,terminate:s,worker:a}}function cce(e={}){let{window:t=KT,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=fn(n),c=fn(r),l=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};l(),HT(l);let u={passive:!0};if(YT(`resize`,l,u),t&&o===`visual`&&t.visualViewport&&YT(t.visualViewport,`resize`,l,u),i){let e=$T(`(orientation: portrait)`);Ba(e,()=>l())}return{width:s,height:c}}const SE=1/60*1e3,lce=typeof performance<`u`?()=>performance.now():()=>Date.now(),CE=typeof window<`u`?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(lce()),SE);function uce(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let c=s&&i,l=c?t:n;return a&&o.add(e),l.indexOf(e)===-1&&(l.push(e),c&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);t!==-1&&n.splice(t,1),o.delete(e)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n(e[t]=uce(()=>TE=!0),e),{}),dce=OE.reduce((e,t)=>{let n=kE[t];return e[t]=(e,t=!1,r=!1)=>(TE||mce(),n.schedule(e,t,r)),e},{}),fce=OE.reduce((e,t)=>(e[t]=kE[t].cancel,e),{});OE.reduce((e,t)=>(e[t]=()=>kE[t].process(DE),e),{});const pce=e=>kE[e].process(DE),AE=e=>{TE=!1,DE.delta=wE?SE:Math.max(Math.min(e-DE.timestamp,40),1),DE.timestamp=e,EE=!0,OE.forEach(pce),EE=!1,TE&&(wE=!1,CE(AE))},mce=()=>{TE=!0,wE=!0,EE||CE(AE)},jE=()=>DE;var ME=dce;function NE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iMath.min(Math.max(n,e),t),FE=.001;function hce({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=PE(.05,1,o),e=PE(.01,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=IE(t,o),c=Math.exp(-i);return FE-a/s*c},a=t=>{let r=t*o,a=r*e,s=a*n+n,c=o**2*t**2*e,l=Math.exp(-a),u=IE(t**2,o),d=-i(t)+FE>0?-1:1;return d*((s-c)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-FE+r*i},a=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,c=gce(i,a,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function gce(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}function IE(e,t){return e*Math.sqrt(1-t*t)}const _ce=[`duration`,`bounce`],vce=[`stiffness`,`damping`,`mass`];function LE(e,t){return t.some(t=>e[t]!==void 0)}function yce(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!LE(e,vce)&&LE(e,_ce)){let n=hce(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function RE(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=NE(e,[`from`,`to`,`restSpeed`,`restDelta`]);let o={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=yce(a),p=zE,m=zE;function h(){let e=u?-(u/1e3):0,r=n-t,a=c/(2*Math.sqrt(s*l)),o=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=IE(o,a);p=i=>{let s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},m=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(a===1)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);p=i=>{let s=Math.exp(-a*o*i),c=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{let t=p(e);if(f)o.done=e>=d;else{let a=m(e)*1e3,s=Math.abs(a)<=r,c=Math.abs(n-t)<=i;o.done=s&&c}return o.value=o.done?n:t,o},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}RE.needsInterpolation=(e,t)=>typeof e==`string`||typeof t==`string`;const zE=e=>0,BE=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},VE=(e,t,n)=>-n*e+n*t+e,HE=(e,t)=>n=>Math.max(Math.min(n,t),e),UE=e=>e%1?Number(e.toFixed(5)):e,WE=/(-)?([\d]*\.?[\d])+/g,GE=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,bce=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function KE(e){return typeof e==`string`}const qE={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},JE=Object.assign(Object.assign({},qE),{transform:HE(0,1)}),YE=Object.assign(Object.assign({},qE),{default:1}),XE=e=>({test:t=>KE(t)&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ZE=XE(`deg`),QE=XE(`%`),$E=XE(`px`);XE(`vh`),XE(`vw`);const eD=Object.assign(Object.assign({},QE),{parse:e=>QE.parse(e)/100,transform:e=>QE.transform(e*100)}),tD=(e,t)=>n=>!!(KE(n)&&bce.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),nD=(e,t,n)=>r=>{if(!KE(r))return r;let[i,a,o,s]=r.match(WE);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},rD={test:tD(`hsl`,`hue`),parse:nD(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+QE.transform(UE(t))+`, `+QE.transform(UE(n))+`, `+UE(JE.transform(r))+`)`},xce=HE(0,255),iD=Object.assign(Object.assign({},qE),{transform:e=>Math.round(xce(e))}),aD={test:tD(`rgb`,`red`),parse:nD(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+iD.transform(e)+`, `+iD.transform(t)+`, `+iD.transform(n)+`, `+UE(JE.transform(r))+`)`};function Sce(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const oD={test:tD(`#`),parse:Sce,transform:aD.transform},sD={test:e=>aD.test(e)||oD.test(e)||rD.test(e),parse:e=>aD.test(e)?aD.parse(e):rD.test(e)?rD.parse(e):oD.parse(e),transform:e=>KE(e)?e:e.hasOwnProperty(`red`)?aD.transform(e):rD.transform(e)},cD="${c}",lD="${n}";function Cce(e){var t,n,r,i;return isNaN(e)&&KE(e)&&((n=(t=e.match(WE))?.length)??0)+((i=(r=e.match(GE))?.length)??0)>0}function uD(e){typeof e==`number`&&(e=`${e}`);let t=[],n=0,r=e.match(GE);r&&(n=r.length,e=e.replace(GE,cD),t.push(...r.map(sD.parse)));let i=e.match(WE);return i&&(e=e.replace(WE,lD),t.push(...i.map(qE.parse))),{values:t,numColors:n,tokenised:e}}function dD(e){return uD(e).values}function fD(e){let{values:t,numColors:n,tokenised:r}=uD(e),i=t.length;return e=>{let t=r;for(let r=0;rtypeof e==`number`?0:e;function Tce(e){let t=dD(e),n=fD(e);return n(t.map(wce))}const pD={test:Cce,parse:dD,createTransformer:fD,getAnimatableNone:Tce},Ece=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Dce(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(WE)||[];if(!r)return e;let i=n.replace(r,``),a=Ece.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}const Oce=/([a-z-]*)\(.*?\)/g,mD=Object.assign(Object.assign({},pD),{getAnimatableNone:e=>{let t=e.match(Oce);return t?t.map(Dce).join(` `):e}});function hD(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gD({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=hD(s,r,e+1/3),a=hD(s,r,e),o=hD(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}const kce=(e,t,n)=>{let r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Ace=[oD,aD,rD],_D=e=>Ace.find(t=>t.test(e)),vD=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,yD=(e,t)=>{let n=_D(e),r=_D(t);vD(e),vD(t);let i=n.parse(e),a=r.parse(t);n===rD&&(i=gD(i),n=aD),r===rD&&(a=gD(a),r=aD);let o=Object.assign({},i);return e=>{for(let t in o)t!==`alpha`&&(o[t]=kce(i[t],a[t],e));return o.alpha=VE(i.alpha,a.alpha,e),n.transform(o)}},jce=e=>typeof e==`number`,Mce=(e,t)=>n=>t(e(n)),bD=(...e)=>e.reduce(Mce);function xD(e,t){return jce(e)?n=>VE(e,t,n):sD.test(e)?yD(e,t):wD(e,t)}const SD=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>xD(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=xD(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function CD(e){let t=pD.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=pD.createTransformer(t),r=CD(e),i=CD(t),a=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return a?bD(SD(r.parsed,i.parsed),n):(`${e}${t}`,n=>`${n>0?t:e}`)},Pce=(e,t)=>n=>VE(e,t,n);function Fce(e){if(typeof e==`number`)return Pce;if(typeof e==`string`)return sD.test(e)?yD:wD;if(Array.isArray(e))return SD;if(typeof e==`object`)return Nce}function Ice(e,t,n){let r=[],i=n||Fce(e[0]),a=e.length-1;for(let n=0;nn(BE(e,t,r))}function Rce(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti||t===r);t++);a=t-1}let s=BE(e[a],e[a+1],i);return t[a](s)}}function TD(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;t.length,!r||!Array.isArray(r)||(r.length,a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=Ice(t,r,i),s=a===2?Lce(e,o):Rce(e,o);return n?t=>s(PE(e[0],e[a-1],t)):s}const ED=e=>t=>1-e(1-t),DD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zce=e=>t=>t**+e,OD=e=>t=>t*t*((e+1)*t-e),Bce=e=>{let t=OD(e);return e=>(e*=2)<1?.5*t(e):.5*(2-2**(-10*(e-1)))},kD=1.525,AD=e=>e,jD=zce(2),Vce=ED(jD),MD=DD(jD),ND=e=>1-Math.sin(Math.acos(e)),PD=ED(ND),Hce=DD(PD),FD=OD(kD),Uce=ED(FD),Wce=DD(FD),Gce=Bce(kD),ID=e=>{if(e===1||e===0)return e;let t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Kce=ED(ID),qce=e=>e<.5?.5*(1-ID(1-e*2)):.5*ID(e*2-1)+.5;function Jce(e,t){return e.map(()=>t||MD).splice(0,e.length-1)}function Yce(e){let t=e.length;return e.map((e,n)=>n===0?0:n/(t-1))}function Xce(e,t){return e.map(e=>e*t)}function LD({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=Xce(r&&r.length===o.length?r:Yce(o),i);function c(){return TD(s,o,{ease:Array.isArray(n)?n:Jce(o,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),l=c()}}}function Zce({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,c=t+s,l=a===void 0?c:a(c);return l!==c&&(s=l-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?l:l+t,o},flipTarget:()=>{}}}const RD={keyframes:LD,spring:RE,decay:Zce};function Qce(e){if(Array.isArray(e.to))return LD;if(RD[e.type])return RD[e.type];let t=new Set(Object.keys(e));return t.has(`ease`)||t.has(`duration`)&&!t.has(`dampingRatio`)?LD:t.has(`dampingRatio`)||t.has(`stiffness`)||t.has(`mass`)||t.has(`damping`)||t.has(`restSpeed`)||t.has(`restDelta`)?RE:LD}function zD(e,t,n=0){return e-t-n}function $ce(e,t,n=0,r=!0){return r?zD(t+-e,t,n):t-(e-t)+n}function ele(e,t,n,r){return r?e>=t+n:e<=-n}const tle=e=>{let t=({delta:t})=>e(t);return{start:()=>ME.update(t,!0),stop:()=>fce.update(t)}};function BD(e){var t,n,{from:r,autoplay:i=!0,driver:a=tle,elapsed:o=0,repeat:s=0,repeatType:c=`loop`,repeatDelay:l=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=NE(e,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:g}=h,_,v=0,y=h.duration,b,x=!1,S=!0,C,w=Qce(h);(n=(t=w).needsInterpolation)?.call(t,r,g)&&(C=TD([0,100],[r,g],{clamp:!1}),r=0,g=100);let T=w(Object.assign(Object.assign({},h),{from:r,to:g}));function E(){v++,c===`reverse`?(S=v%2==0,o=$ce(o,y,l,S)):(o=zD(o,y,l),c===`mirror`&&T.flipTarget()),x=!1,p&&p()}function D(){_.stop(),f&&f()}function O(e){if(S||(e=-e),o+=e,!x){let e=T.next(Math.max(0,o));b=e.value,C&&(b=C(b)),x=S?e.done:o<=0}m?.(b),x&&(v===0&&(y??=o),v{d?.(),_.stop()}}}function VD(e,t){return t?e*(1e3/t):0}function nle({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return n!==void 0&&er}function g(e){return n===void 0?r:r===void 0||Math.abs(n-e){var n;d?.(t),(n=e.onUpdate)==null||n.call(e,t)},onComplete:f,onStop:p}))}function v(e){_(Object.assign({type:`spring`,stiffness:o,damping:s,restDelta:c},e))}if(h(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;l!==void 0&&(r=l(r));let o=g(r),s=o===n?-1:1,u,d,f=e=>{u=d,d=e,t=VD(e-u,jE().delta),(s===1&&e>o||s===-1&&em?.stop()}}const HD=(e,t)=>1-3*t+3*e,UD=(e,t)=>3*t-6*e,WD=e=>3*e,GD=(e,t,n)=>((HD(t,n)*e+UD(t,n))*e+WD(t))*e,KD=(e,t,n)=>3*HD(t,n)*e*e+2*UD(t,n)*e+WD(t);function rle(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=GD(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<10);return o}function ile(e,t,n,r){for(let i=0;i<8;++i){let i=KD(t,n,r);if(i===0)return t;let a=GD(t,n,r)-e;t-=a/i}return t}const qD=1/10;function ale(e,t,n,r){if(e===t&&n===r)return AD;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=GD(t*qD,e,n);function a(t){let r=0,a=1;for(;a!==10&&i[a]<=t;++a)r+=qD;--a;let o=(t-i[a])/(i[a+1]-i[a]),s=r+o*qD,c=KD(s,e,n);return c>=.001?ile(t,s,e,n):c===0?s:rle(t,r,r+qD,e,n)}return e=>e===0||e===1?e:GD(a(e),t,r)}const JD={};var ole=class{subscriptions=new Set;add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,t,n){if(this.subscriptions.size)for(let r of this.subscriptions)r(e,t,n)}clear(){this.subscriptions.clear()}};function YD(e){return!Number.isNaN(Number.parseFloat(e))}var sle=class{current;prev;timeDelta=0;lastUpdated=0;updateSubscribers=new ole;stopAnimation;canTrackVelocity=!1;constructor(e){this.prev=this.current=e,this.canTrackVelocity=YD(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}updateAndNotify=e=>{this.prev=this.current,this.current=e;let{delta:t,timestamp:n}=jE();this.lastUpdated!==n&&(this.timeDelta=t,this.lastUpdated=n),ME.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)};get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?VD(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}scheduleVelocityCheck=()=>ME.postRender(this.velocityCheck);velocityCheck=({timestamp:e})=>{this.canTrackVelocity||=YD(this.current),e!==this.lastUpdated&&(this.prev=this.current)};start(e){return this.stop(),new Promise(t=>{let{stop:n}=e(t);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}};function cle(e){return new sle(e)}const{isArray:lle}=Array;function ule(){let e=F({}),t=t=>{let n=t=>{e.value[t]&&(e.value[t].stop(),e.value[t].destroy(),delete e.value[t])};t?lle(t)?t.forEach(n):n(t):Object.keys(e.value).forEach(n)},n=(t,n,r)=>{if(e.value[t])return e.value[t];let i=cle(n);return i.onChange(e=>r[t]=e),e.value[t]=i,i};return UT(t),{motionValues:e,get:n,stop:t}}function dle(e){return Array.isArray(e)}function XD(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function ZD(e){return{type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function fle(e){return{type:`spring`,stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function QD(){return{type:`keyframes`,ease:`linear`,duration:300}}function ple(e){return{type:`keyframes`,duration:800,values:e}}const $D={default:fle,x:XD,y:XD,z:XD,rotate:XD,rotateX:XD,rotateY:XD,rotateZ:XD,scaleX:ZD,scaleY:ZD,scale:ZD,backgroundColor:QD,color:QD,opacity:QD};function eO(e,t){let n;return n=dle(t)?ple:$D[e]||$D.default,{to:t,...n(t)}}const tO={...qE,transform:Math.round},nO={color:sD,backgroundColor:sD,outlineColor:sD,fill:sD,stroke:sD,borderColor:sD,borderTopColor:sD,borderRightColor:sD,borderBottomColor:sD,borderLeftColor:sD,borderWidth:$E,borderTopWidth:$E,borderRightWidth:$E,borderBottomWidth:$E,borderLeftWidth:$E,borderRadius:$E,radius:$E,borderTopLeftRadius:$E,borderTopRightRadius:$E,borderBottomRightRadius:$E,borderBottomLeftRadius:$E,width:$E,maxWidth:$E,height:$E,maxHeight:$E,size:$E,top:$E,right:$E,bottom:$E,left:$E,padding:$E,paddingTop:$E,paddingRight:$E,paddingBottom:$E,paddingLeft:$E,margin:$E,marginTop:$E,marginRight:$E,marginBottom:$E,marginLeft:$E,rotate:ZE,rotateX:ZE,rotateY:ZE,rotateZ:ZE,scale:YE,scaleX:YE,scaleY:YE,scaleZ:YE,skew:ZE,skewX:ZE,skewY:ZE,distance:$E,translateX:$E,translateY:$E,translateZ:$E,x:$E,y:$E,z:$E,perspective:$E,transformPerspective:$E,opacity:JE,originX:eD,originY:eD,originZ:$E,zIndex:tO,filter:mD,WebkitFilter:mD,fillOpacity:JE,strokeOpacity:JE,numOctaves:tO},rO=e=>nO[e];function iO(e,t){return t&&typeof e==`number`&&t.transform?t.transform(e):e}function mle(e,t){let n=rO(e);return n!==mD&&(n=pD),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hle={linear:AD,easeIn:jD,easeInOut:MD,easeOut:Vce,circIn:ND,circInOut:Hce,circOut:PD,backIn:FD,backInOut:Wce,backOut:Uce,anticipate:Gce,bounceIn:Kce,bounceInOut:qce,bounceOut:ID};function aO(e){if(Array.isArray(e)){let[t,n,r,i]=e;return ale(t,n,r,i)}else if(typeof e==`string`)return hle[e];return e}function gle(e){return Array.isArray(e)&&typeof e[0]!=`number`}function oO(e,t){return e===`zIndex`?!1:!!(typeof t==`number`||Array.isArray(t)||typeof t==`string`&&pD.test(t)&&!t.startsWith(`url(`))}function _le(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function vle({ease:e,times:t,delay:n,...r}){let i={...r};return t&&(i.offset=t),e&&(i.ease=gle(e)?e.map(aO):aO(e)),n&&(i.elapsed=-n),i}function yle(e,t,n){return Array.isArray(t.to)&&(e.duration||=800),_le(t),ble(e)||(e={...e,...eO(n,t.to)}),{...t,...vle(e)}}function ble({delay:e,repeat:t,repeatType:n,repeatDelay:r,from:i,...a}){return!!Object.keys(a).length}function xle(e,t){return e[t]||e.default||e}function Sle(e,t,n,r,i){let a=xle(r,e),o=a.from===null||a.from===void 0?t.get():a.from,s=oO(e,n);o===`none`&&s&&typeof n==`string`&&(o=mle(e,n));let c=oO(e,o);function l(s){let c={from:o,to:n,velocity:r.velocity?r.velocity:t.getVelocity(),onUpdate:e=>t.set(e)};return a.type===`inertia`||a.type===`decay`?nle({...c,...a}):BD({...yle(a,c,e),onUpdate:e=>{c.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i&&i(),s&&s()}})}function u(e){return t.set(n),i&&i(),e&&e(),{stop:()=>{}}}return!c||!s||a.type===!1?u:l}function Cle(){let{motionValues:e,stop:t,get:n}=ule(),r=(e,t,r,i={},a)=>{let o=r[e],s=n(e,o,r);if(i&&i.immediate){s.set(t);return}let c=Sle(e,s,t,i,a);s.start(c)};return{motionValues:e,stop:t,push:r}}function wle(e,t={},{motionValues:n,push:r,stop:i}=Cle()){let a=I(t),o=F(!1);Ba(n,e=>{o.value=Object.values(e).filter(e=>e.isAnimating()).length>0},{immediate:!0,deep:!0});let s=e=>{if(!a||!a[e])throw Error(`The variant ${e} does not exist.`);return a[e]},c=t=>{typeof t==`string`&&(t=s(t));let n=Object.entries(t).map(([n,i])=>{if(n!==`transition`)return new Promise(a=>r(n,i,e,t.transition||eO(n,t[n]),a))}).filter(Boolean);async function i(){await Promise.all(n),t.transition?.onComplete?.()}return Promise.all([i()])},l=t=>{let n=gT(t)?t:s(t);Object.entries(n).forEach(([t,n])=>{t!==`transition`&&r(t,n,e,{immediate:!0})})},u=async e=>{let t;if(a&&(a.leave&&(t=a.leave),!a.leave&&a.initial&&(t=a.initial)),!t){e();return}await c(t),e()};return{isAnimating:o,apply:c,set:l,leave:u,stop:i}}const sO=typeof window<`u`,Tle=()=>sO&&(window.onpointerdown===null||void 0),Ele=()=>sO&&(window.ontouchstart===null||void 0),Dle=()=>sO&&(window.onmousedown===null||void 0);function Ole({target:e,state:t,variants:n,apply:r}){let i=I(n),a=F(!1),o=F(!1),s=F(!1),c=U(()=>{let e=[...Object.keys(t.value||{})];return i?(i.hovered&&(e=[...e,...Object.keys(i.hovered)]),i.tapped&&(e=[...e,...Object.keys(i.tapped)]),i.focused&&(e=[...e,...Object.keys(i.focused)]),e):e}),l=U(()=>{let e={};for(let n in Object.assign(e,t.value),a.value&&i.hovered&&Object.assign(e,i.hovered),o.value&&i.tapped&&Object.assign(e,i.tapped),s.value&&i.focused&&Object.assign(e,i.focused),e)c.value.includes(n)||delete e[n];return e});i.hovered&&(YT(e,`mouseenter`,()=>a.value=!0),YT(e,`mouseleave`,()=>{a.value=!1,o.value=!1})),i.tapped&&(Dle()&&(YT(e,`mousedown`,()=>o.value=!0),YT(e,`mouseup`,()=>o.value=!1)),Tle()&&(YT(e,`pointerdown`,()=>o.value=!0),YT(e,`pointerup`,()=>o.value=!1)),Ele()&&(YT(e,`touchstart`,()=>o.value=!0),YT(e,`touchend`,()=>o.value=!1))),i.focused&&(YT(e,`focus`,()=>s.value=!0),YT(e,`blur`,()=>s.value=!1)),Ba([a,o,s],()=>{r(l.value)})}function kle({set:e,target:t,variants:n,variant:r}){let i=I(n);Ba(()=>t,()=>{i&&(i.initial&&(e(`initial`),r.value=`initial`),i.enter&&(r.value=`enter`))},{immediate:!0,flush:`pre`})}function Ale({state:e,apply:t}){Ba(e,e=>{e&&t(e)},{immediate:!0})}function cO({target:e,variants:t,variant:n}){let r=I(t);r&&(r.visible||r.visibleOnce)&&Xse(e,([{isIntersecting:e}])=>{r.visible?e?n.value=`visible`:n.value=`initial`:r.visibleOnce&&(e&&n.value!==`visibleOnce`?n.value=`visibleOnce`:n.value||=`initial`)})}function jle(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&kle(e),t.syncVariants&&Ale(e),t.visibilityHooks&&cO(e),t.eventListeners&&Ole(e)}function lO(e={}){let t=Zt({...e}),n=F({});return Ba(t,()=>{let e={};for(let[n,r]of Object.entries(t)){let t=rO(n),i=iO(r,t);e[n]=i}n.value=e},{immediate:!0,deep:!0}),{state:t,style:n}}function uO(e,t){Ba(()=>JT(e),e=>{e&&t(e)},{immediate:!0})}const Mle={x:`translateX`,y:`translateY`,z:`translateZ`};function dO(e={},t=!0){let n=Zt({...e}),r=F(``);return Ba(n,e=>{let n=``,i=!1;if(t&&(e.x||e.y||e.z)){let t=[e.x||0,e.y||0,e.z||0].map(e=>iO(e,$E)).join(`,`);n+=`translate3d(${t}) `,i=!0}for(let[r,i]of Object.entries(e)){if(t&&(r===`x`||r===`y`||r===`z`))continue;let e=rO(r),a=iO(i,e);n+=`${Mle[r]||r}(${a}) `}t&&!i&&(n+=`translateZ(0px) `),r.value=n.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}const Nle=[``,`X`,`Y`,`Z`],Ple=[`perspective`,`translate`,`scale`,`rotate`,`skew`],fO=[`transformPerspective`,`x`,`y`,`z`];Ple.forEach(e=>{Nle.forEach(t=>{let n=e+t;fO.push(n)})});const Fle=new Set(fO);function pO(e){return Fle.has(e)}const Ile=new Set([`originX`,`originY`,`originZ`]);function mO(e){return Ile.has(e)}function Lle(e){let t={},n={};return Object.entries(e).forEach(([e,r])=>{pO(e)||mO(e)?t[e]=r:n[e]=r}),{transform:t,style:n}}function hO(e){let{transform:t,style:n}=Lle(e),{transform:r}=dO(t),{style:i}=lO(n);return r.value&&(i.value.transform=r.value),i.value}function Rle(e,t){let n,r,{state:i,style:a}=lO();return uO(e,e=>{r=e;for(let t of Object.keys(nO)){if(e.style[t]===null||e.style[t]===``||pO(t)||mO(t))continue;i[t]=e.style[t]}n&&Object.entries(n).forEach(([t,n])=>e.style[t]=n),t&&t(i)}),Ba(a,e=>{if(!r){n=e;return}for(let t in e)r.style[t]=e[t]},{immediate:!0}),{style:i}}function zle(e){let t=e.trim().split(/\) |\)/);if(t.length===1)return{};let n=e=>e.endsWith(`px`)||e.endsWith(`deg`)?Number.parseFloat(e):Number.isNaN(Number(e))?Number(e):e;return t.reduce((e,t)=>{if(!t)return e;let[r,i]=t.split(`(`),a=i.split(`,`),o=a.map(e=>n(e.endsWith(`)`)?e.replace(`)`,``):e.trim())),s=o.length===1?o[0]:o;return{...e,[r]:s}},{})}function Ble(e,t){Object.entries(zle(t)).forEach(([t,n])=>{let r=[`x`,`y`,`z`];if(t===`translate3d`){if(n===0){r.forEach(t=>e[t]=0);return}n.forEach((t,n)=>e[r[n]]=t);return}if(n=Number.parseFloat(`${n}`),t===`translateX`){e.x=n;return}if(t===`translateY`){e.y=n;return}if(t===`translateZ`){e.z=n;return}e[t]=n})}function Vle(e,t){let n,r,{state:i,transform:a}=dO();return uO(e,e=>{r=e,e.style.transform&&Ble(i,e.style.transform),n&&(e.style.transform=n),t&&t(i)}),Ba(a,e=>{if(!r){n=e;return}r.style.transform=e},{immediate:!0}),{transform:i}}function Hle(e){return Object.entries(e)}function Ule(e,t){let n=Zt({}),r=e=>Object.entries(e).forEach(([e,t])=>n[e]=t),{style:i}=Rle(e,r),{transform:a}=Vle(e,r);return Ba(n,e=>{Hle(e).forEach(([e,t])=>{let n=pO(e)?a:i;n[e]&&n[e]===t||(n[e]=t)})},{immediate:!0,deep:!0}),uO(e,()=>t&&r(t)),{motionProperties:n,style:i,transform:a}}function Wle(e={}){let t=I(e),n=F(),r=U(()=>{if(n.value)return t[n.value]});return{state:r,variant:n}}function gO(e,t={},n){let{motionProperties:r}=Ule(e),{variant:i,state:a}=Wle(t),o=wle(r,t),s={target:e,variant:i,variants:t,state:a,motionProperties:r,...o};return jle(s,n),s}const _O=[`delay`,`duration`],Gle=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,..._O];function Kle(e){return _O.includes(e)}function qle(e,t){let n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};if(n){n.variants&&gT(n.variants)&&(t.value={...t.value,...n.variants});for(let e of Gle){if(!n||!n[e])continue;if(Kle(e)&&typeof n[e]==`number`){for(let r of[`enter`,`visible`,`visibleOnce`]){let i=t.value[r];if(i==null)continue;i.transition??={},i.transition[e]=n[e]}continue}if(gT(n[e])){let r=n[e];e===`visible-once`&&(e=`visibleOnce`),t.value[e]=r}}}}function vO(e,t=!1){let n=(n,r,i)=>{let a=r.value&&typeof r.value==`string`?r.value:i.key;a&&JD[a]&&JD[a].stop();let o=t?structuredClone(sn(e)||{}):e||{},s=F(o);typeof r.value==`object`&&(s.value=r.value),qle(i,s);let c={eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1},l=gO(n,s,c);n.motionInstance=l,a&&(JD[a]=l)},r=(e,t,n)=>{e.motionInstance&&cO(e.motionInstance)};return{created:n,mounted:r,getSSRProps(t,n){let{initial:r}=t.value||n&&n?.props||{};r=I(r);let i=cT({},e?.initial||{},r||{});if(!i||Object.keys(i).length===0)return;let a=hO(i);return{style:a}}}}const Jle={initial:{opacity:0},enter:{opacity:1}},Yle={initial:{opacity:0},visible:{opacity:1}},Xle={initial:{opacity:0},visibleOnce:{opacity:1}},Zle={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},Qle={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},$le={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},eue={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},tue={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},nue={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rue={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},iue={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},aue={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},oue={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},sue={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},cue={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},lue={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},uue={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},due={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},fue={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},pue={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},mue={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},hue={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},gue={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},_ue={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},vue={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},yue={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},bue={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},xue={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},Sue={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},Cue={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},yO={__proto__:null,fade:Jle,fadeVisible:Yle,fadeVisibleOnce:Xle,pop:Zle,popVisible:Qle,popVisibleOnce:$le,rollBottom:lue,rollLeft:eue,rollRight:rue,rollTop:oue,rollVisibleBottom:uue,rollVisibleLeft:tue,rollVisibleOnceBottom:due,rollVisibleOnceLeft:nue,rollVisibleOnceRight:aue,rollVisibleOnceTop:cue,rollVisibleRight:iue,rollVisibleTop:sue,slideBottom:xue,slideLeft:fue,slideRight:hue,slideTop:vue,slideVisibleBottom:Sue,slideVisibleLeft:pue,slideVisibleOnceBottom:Cue,slideVisibleOnceLeft:mue,slideVisibleOnceRight:_ue,slideVisibleOnceTop:bue,slideVisibleRight:gue,slideVisibleTop:yue};function wue(e){let t=`àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;`,n=new RegExp(t.split(``).join(`|`),`g`);return e.toString().replace(/[A-Z]/g,e=>`-${e}`).toLowerCase().replace(/\s+/g,`-`).replace(n,e=>`aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------`.charAt(t.indexOf(e))).replace(/&/g,`-and-`).replace(/[^\w\-]+/g,``).replace(/-{2,}/g,`-`).replace(/^-+/,``).replace(/-+$/,``)}const bO=Symbol(``),xO={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Tue(e){return Object.prototype.toString.call(e)===`[object Object]`}function SO(e){if(Array.isArray(e))return e.map(SO);if(Tue(e)){let t={};for(let n in e)t[n]=SO(e[n]);return t}return e}function CO(e){let t=Zt({}),n=la(bO,{}),r=U(()=>e.preset==null?{}:n!=null&&e.preset in n?structuredClone(sn(n)[e.preset]):e.preset in yO?structuredClone(yO[e.preset]):{}),i=U(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused}));function a(e,t){for(let n of[`delay`,`duration`]){if(t[n]==null)continue;let r=Number.parseInt(t[n]);for(let t of[`enter`,`visible`,`visibleOnce`]){let i=e[t];if(i==null)continue;i.transition??={},i.transition[n]=r}}return e}let o=U(()=>{let t=cT({},i.value,r.value,e.variants||{});return a({...t},e)});function s(e,n,r){e.props??={},e.props.style??={},e.props.style={...e.props.style,...r};let i=a(SO(o.value),e.props);return e.props.onVnodeMounted=({el:e})=>{t[n]=gO(e,i)},e.props.onVnodeUpdated=({el:e})=>{let r=hO(t[n].state);for(let[t,n]of Object.entries(r))e.style[t]=n},e}return{motionConfig:o,setNodeInstance:s}}const Eue=R({name:`Motion`,props:{...xO,is:{type:[String,Object],default:`div`}},setup(e){let t=Wi(),{motionConfig:n,setNodeInstance:r}=CO(e);return()=>{let i=hO(n.value.initial||{}),a=fs(e.is,void 0,t);return r(a,0,i),a}}}),Due=R({name:`MotionGroup`,props:{...xO,is:{type:[String,Object],required:!1}},setup(e){let t=Wi(),{motionConfig:n,setNodeInstance:r}=CO(e);return()=>{let i=hO(n.value.initial||{}),a=t.default?.()||[];for(let e=0;ewO=e,EO=Symbol();function DO(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var OO;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(OO||={});const kue=typeof window<`u`,kO=(()=>typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null})();function Aue(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function AO(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){jue(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function jO(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function MO(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}const NO=typeof navigator==`object`?navigator:{userAgent:``},PO=(()=>/Macintosh/.test(NO.userAgent)&&/AppleWebKit/.test(NO.userAgent)&&!/Safari/.test(NO.userAgent))(),jue=kue?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!PO?Mue:`msSaveOrOpenBlob`in NO?Nue:Pue:()=>{};function Mue(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?MO(r):jO(r.href)?AO(e,t,n):(r.target=`_blank`,MO(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){MO(r)},0))}function Nue(e,t=`download`,n){if(typeof e==`string`)if(jO(e))AO(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){MO(t)})}else navigator.msSaveOrOpenBlob(Aue(e,n),t)}function Pue(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return AO(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(kO.HTMLElement))||`safari`in kO,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||PO)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}const{assign:Fue}=Object;function Iue(){let e=Be(!0),t=e.run(()=>F({})),n=[],r=[],i=cn({install(e){TO(i),i._a=e,e.provide(EO,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const FO=()=>{};function IO(e,t,n,r=FO){e.push(t);let i=()=>{let n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&Ve()&&He(i),i}function LO(e,...t){e.slice().forEach(e=>{e(...t)})}const Lue=e=>e(),RO=Symbol(),zO=Symbol();function BO(e,t){for(let n in e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e),t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];DO(i)&&DO(r)&&e.hasOwnProperty(n)&&!dn(r)&&!nn(r)?e[n]=BO(i,r):e[n]=r}return e}const Rue=Symbol();function zue(e){return!DO(e)||!Object.prototype.hasOwnProperty.call(e,Rue)}const{assign:VO}=Object;function Bue(e){return!!(dn(e)&&e.effect)}function Vue(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){s||(n.state.value[e]=i?i():{});let t=_n(n.state.value[e]);return VO(t,a,Object.keys(o||{}).reduce((t,r)=>(t[r]=cn(U(()=>{TO(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=HO(e,l,t,n,r,!0),c}function HO(e,t,n={},r,i,a){let o,s=VO({actions:{}},n),c={deep:!0},l,u,d=[],f=[],p=r.state.value[e];!a&&!p&&(r.state.value[e]={}),F({});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:OO.patchFunction,storeId:e,events:void 0}):(BO(r.state.value[e],t),n={type:OO.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();Gn().then(()=>{m===i&&(l=!0)}),u=!0,LO(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{VO(e,t)})}:FO;function _(){o.stop(),d=[],f=[],r._s.delete(e)}let v=(t,n=``)=>{if(RO in t)return t[zO]=n,t;let i=function(){TO(r);let n=Array.from(arguments),a=[],o=[];function s(e){a.push(e)}function c(e){o.push(e)}LO(f,{args:n,name:i[zO],store:b,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:b,n)}catch(e){throw LO(o,e),e}return l instanceof Promise?l.then(e=>(LO(a,e),e)).catch(e=>(LO(o,e),Promise.reject(e))):(LO(a,l),l)};return i[RO]=!0,i[zO]=n,i},y={_p:r,$id:e,$onAction:IO.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=IO(d,t,n.detached,()=>a()),a=o.run(()=>Ba(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:OO.direct,events:void 0},r)},VO({},c,n)));return i},$dispose:_},b=Zt(y);r._s.set(e,b);let x=r._a&&r._a.runWithContext||Lue,S=x(()=>r._e.run(()=>(o=Be()).run(()=>t({action:v}))));for(let t in S){let n=S[t];if(dn(n)&&!Bue(n)||nn(n))a||(p&&zue(n)&&(dn(n)?n.value=p[t]:BO(n,p[t])),r.state.value[e][t]=n);else if(typeof n==`function`){let e=v(n,t);S[t]=e,s.actions[t]=n}}return VO(b,S),VO(sn(b),S),Object.defineProperty(b,`$state`,{get:()=>r.state.value[e],set:e=>{h(t=>{VO(t,e)})}}),r._p.forEach(e=>{VO(b,o.run(()=>e({store:b,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(b.$state,p),l=!0,u=!0,b} +}`,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Vp(new g_(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},gse=class extends Xu{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=new hse,h={},g=t.getContextAttributes(),_=null,v=null,y=[],b=[],x=new cd,S=null,C=new rm;C.viewport=new jd;let w=new rm;w.viewport=new jd;let T=[C,w],E=new ny,D=null,O=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=y[e];return t===void 0&&(t=new lm,y[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=y[e];return t===void 0&&(t=new lm,y[e]=t),t.getGripSpace()},this.getHand=function(e){let t=y[e];return t===void 0&&(t=new lm,y[e]=t),t.getHandSpace()};function k(e){let t=b.indexOf(e.inputSource);if(t===-1)return;let n=y[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function A(){r.removeEventListener(`select`,k),r.removeEventListener(`selectstart`,k),r.removeEventListener(`selectend`,k),r.removeEventListener(`squeeze`,k),r.removeEventListener(`squeezestart`,k),r.removeEventListener(`squeezeend`,k),r.removeEventListener(`end`,A),r.removeEventListener(`inputsourceschange`,j);for(let e=0;e=0&&(b[r]=null,y[r].disconnect(n))}for(let t=0;t=b.length){b.push(n),r=e;break}else if(b[e]===null){b[e]=n,r=e;break}if(r===-1)break}let i=y[r];i&&i.connect(n)}}let M=new W,ee=new W;function te(e,t,n){M.setFromMatrixPosition(t.matrixWorld),ee.setFromMatrixPosition(n.matrixWorld);let r=M.distanceTo(ee),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function N(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;m.texture!==null&&(m.depthNear>0&&(t=m.depthNear),m.depthFar>0&&(n=m.depthFar)),E.near=w.near=C.near=t,E.far=w.far=C.far=n,(D!==E.near||O!==E.far)&&(r.updateRenderState({depthNear:E.near,depthFar:E.far}),D=E.near,O=E.far),E.layers.mask=e.layers.mask|6,C.layers.mask=E.layers.mask&3,w.layers.mask=E.layers.mask&5;let i=e.parent,a=E.cameras;N(E,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,Qb.copy(o),Qb.x*=-1,Qb.y*=-1,Qb.z*=-1,a.isCubeTexture&&a.isRenderTargetTexture===!1&&(Qb.y*=-1,Qb.z*=-1),e.envMapRotation.value.setFromMatrix4(_se.makeRotationFromEuler(Qb)),e.flipEnvMap.value=a.isCubeTexture&&a.isRenderTargetTexture===!1?-1:1,e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function yse(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(m(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,g));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function h(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn(`THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group.`):console.warn(`THREE.WebGLRenderer: Unsupported uniform value type.`,e),t}function g(t){let n=t.target;n.removeEventListener(`dispose`,g);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function _(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:_}}var $b=class{constructor(e={}){let{canvas:t=_d(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1}=e;this.isWebGLRenderer=!0;let f;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);f=n.getContextAttributes().alpha}else f=a;let p=new Uint32Array(4),m=new Int32Array(4),h=null,g=null,_=[],v=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let y=this,b=!1;this._outputColorSpace=Bu;let x=0,S=0,C=null,w=-1,T=null,E=new jd,D=new jd,O=null,k=new $f(0),A=0,j=t.width,M=t.height,ee=1,te=null,N=null,ne=new jd(0,0,j,M),re=new jd(0,0,j,M),ie=!1,ae=new oh,oe=!1,se=!1,ce=new uf,le=new W,ue=new jd,de={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},fe=!1;function pe(){return C===null?ee:1}let P=n;function me(e,n){return t.getContext(e,n)}try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r179`),t.addEventListener(`webglcontextlost`,Ve,!1),t.addEventListener(`webglcontextrestored`,He,!1),t.addEventListener(`webglcontextcreationerror`,Ue,!1),P===null){let t=`webgl2`;if(P=me(t,e),P===null)throw me(t)?Error(`Error creating WebGL context with your selected attributes.`):Error(`Error creating WebGL context.`)}}catch(e){throw console.error(`THREE.WebGLRenderer: `+e.message),e}let he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re;function ze(){he=new Iae(P),he.init(),Ie=new Xb(P,he),ge=new kae(P,he,e,Ie),_e=new pse(P,he),ge.reversedDepthBuffer&&d&&_e.buffers.depth.setReversed(!0),ve=new zae(P),ye=new nse,be=new mse(P,he,_e,ye,ge,Ie,ve),xe=new jae(y),Se=new Fae(y),Ce=new Tre(P),Le=new Dae(P,Ce),we=new Lae(P,Ce,ve,Le),Te=new Vae(P,we,Ce,ve),Ne=new Bae(P,ge,be),Ae=new Aae(ye),Ee=new tse(y,xe,Se,he,ge,Le,Ae),De=new vse(y,ye),Oe=new ise,ke=new use(he),Me=new Eae(y,xe,Se,_e,Te,f,s),je=new dse(y,Te,ge),Re=new yse(P,ve,ge,_e),Pe=new Oae(P,he,ve),Fe=new Rae(P,he,ve),ve.programs=Ee.programs,y.capabilities=ge,y.extensions=he,y.properties=ye,y.renderLists=Oe,y.shadowMap=je,y.state=_e,y.info=ve}ze();let Be=new gse(y,P);this.xr=Be,this.getContext=function(){return P},this.getContextAttributes=function(){return P.getContextAttributes()},this.forceContextLoss=function(){let e=he.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=he.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return ee},this.setPixelRatio=function(e){e!==void 0&&(ee=e,this.setSize(j,M,!1))},this.getSize=function(e){return e.set(j,M)},this.setSize=function(e,n,r=!0){if(Be.isPresenting){console.warn(`THREE.WebGLRenderer: Can't change size while VR device is presenting.`);return}j=e,M=n,t.width=Math.floor(e*ee),t.height=Math.floor(n*ee),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),this.setViewport(0,0,e,n)},this.getDrawingBufferSize=function(e){return e.set(j*ee,M*ee).floor()},this.setDrawingBufferSize=function(e,n,r){j=e,M=n,ee=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(E)},this.getViewport=function(e){return e.copy(ne)},this.setViewport=function(e,t,n,r){e.isVector4?ne.set(e.x,e.y,e.z,e.w):ne.set(e,t,n,r),_e.viewport(E.copy(ne).multiplyScalar(ee).round())},this.getScissor=function(e){return e.copy(re)},this.setScissor=function(e,t,n,r){e.isVector4?re.set(e.x,e.y,e.z,e.w):re.set(e,t,n,r),_e.scissor(D.copy(re).multiplyScalar(ee).round())},this.getScissorTest=function(){return ie},this.setScissorTest=function(e){_e.setScissorTest(ie=e)},this.setOpaqueSort=function(e){te=e},this.setTransparentSort=function(e){N=e},this.getClearColor=function(e){return e.copy(Me.getClearColor())},this.setClearColor=function(){Me.setClearColor(...arguments)},this.getClearAlpha=function(){return Me.getClearAlpha()},this.setClearAlpha=function(){Me.setClearAlpha(...arguments)},this.clear=function(e=!0,t=!0,n=!0){let r=0;if(e){let e=!1;if(C!==null){let t=C.texture.format;e=t===Ul||t===Hl||t===Bl}if(e){let e=C.texture.type,t=e===Sl||e===Dl||e===Tl||e===Ml||e===Al||e===jl,n=Me.getClearColor(),r=Me.getClearAlpha(),i=n.r,a=n.g,o=n.b;t?(p[0]=i,p[1]=a,p[2]=o,p[3]=r,P.clearBufferuiv(P.COLOR,0,p)):(m[0]=i,m[1]=a,m[2]=o,m[3]=r,P.clearBufferiv(P.COLOR,0,m))}else r|=P.COLOR_BUFFER_BIT}t&&(r|=P.DEPTH_BUFFER_BIT),n&&(r|=P.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),P.clear(r)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener(`webglcontextlost`,Ve,!1),t.removeEventListener(`webglcontextrestored`,He,!1),t.removeEventListener(`webglcontextcreationerror`,Ue,!1),Me.dispose(),Oe.dispose(),ke.dispose(),ye.dispose(),xe.dispose(),Se.dispose(),Te.dispose(),Le.dispose(),Re.dispose(),Ee.dispose(),Be.dispose(),Be.removeEventListener(`sessionstart`,Xe),Be.removeEventListener(`sessionend`,Ze),Qe.stop()};function Ve(e){e.preventDefault(),console.log(`THREE.WebGLRenderer: Context Lost.`),b=!0}function He(){console.log(`THREE.WebGLRenderer: Context Restored.`),b=!1;let e=ve.autoReset,t=je.enabled,n=je.autoUpdate,r=je.needsUpdate,i=je.type;ze(),ve.autoReset=e,je.enabled=t,je.autoUpdate=n,je.needsUpdate=r,je.type=i}function Ue(e){console.error(`THREE.WebGLRenderer: A WebGL context could not be created. Reason: `,e.statusMessage)}function We(e){let t=e.target;t.removeEventListener(`dispose`,We),Ge(t)}function Ge(e){Ke(e),ye.remove(e)}function Ke(e){let t=ye.get(e).programs;t!==void 0&&(t.forEach(function(e){Ee.releaseProgram(e)}),e.isShaderMaterial&&Ee.releaseShaderCache(e))}this.renderBufferDirect=function(e,t,n,r,i,a){t===null&&(t=de);let o=i.isMesh&&i.matrixWorld.determinant()<0,s=st(e,t,n,r,i);_e.setMaterial(r,o);let c=n.index,l=1;if(r.wireframe===!0){if(c=we.getWireframeAttribute(n),c===void 0)return;l=2}let u=n.drawRange,d=n.attributes.position,f=u.start*l,p=(u.start+u.count)*l;a!==null&&(f=Math.max(f,a.start*l),p=Math.min(p,(a.start+a.count)*l)),c===null?d!=null&&(f=Math.max(f,0),p=Math.min(p,d.count)):(f=Math.max(f,0),p=Math.min(p,c.count));let m=p-f;if(m<0||m===1/0)return;Le.setup(i,r,s,n,c);let h,g=Pe;if(c!==null&&(h=Ce.get(c),g=Fe,g.setIndex(h)),i.isMesh)r.wireframe===!0?(_e.setLineWidth(r.wireframeLinewidth*pe()),g.setMode(P.LINES)):g.setMode(P.TRIANGLES);else if(i.isLine){let e=r.linewidth;e===void 0&&(e=1),_e.setLineWidth(e*pe()),i.isLineSegments?g.setMode(P.LINES):i.isLineLoop?g.setMode(P.LINE_LOOP):g.setMode(P.LINE_STRIP)}else i.isPoints?g.setMode(P.POINTS):i.isSprite&&g.setMode(P.TRIANGLES);if(i.isBatchedMesh)if(i._multiDrawInstances!==null)yd(`THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection.`),g.renderMultiDrawInstances(i._multiDrawStarts,i._multiDrawCounts,i._multiDrawCount,i._multiDrawInstances);else if(he.get(`WEBGL_multi_draw`))g.renderMultiDraw(i._multiDrawStarts,i._multiDrawCounts,i._multiDrawCount);else{let e=i._multiDrawStarts,t=i._multiDrawCounts,n=i._multiDrawCount,a=c?Ce.get(c).bytesPerElement:1,o=ye.get(r).currentProgram.getUniforms();for(let r=0;r{function n(){if(r.forEach(function(e){let t=ye.get(e),n=t.currentProgram;n.isReady()&&r.delete(e)}),r.size===0){t(e);return}setTimeout(n,10)}he.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let Je=null;function Ye(e){Je&&Je(e)}function Xe(){Qe.stop()}function Ze(){Qe.start()}let Qe=new Qy;Qe.setAnimationLoop(Ye),typeof self<`u`&&Qe.setContext(self),this.setAnimationLoop=function(e){Je=e,Be.setAnimationLoop(e),e===null?Qe.stop():Qe.start()},Be.addEventListener(`sessionstart`,Xe),Be.addEventListener(`sessionend`,Ze),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){console.error(`THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(b===!0)return;if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),Be.enabled===!0&&Be.isPresenting===!0&&(Be.cameraAutoUpdate===!0&&Be.updateCamera(t),t=Be.getCamera()),e.isScene===!0&&e.onBeforeRender(y,e,t,C),g=ke.get(e,v.length),g.init(t),v.push(g),ce.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),ae.setFromProjectionMatrix(ce,Ju,t.reversedDepth),se=this.localClippingEnabled,oe=Ae.init(this.clippingPlanes,se),h=Oe.get(e,_.length),h.init(),_.push(h),Be.enabled===!0&&Be.isPresenting===!0){let e=y.xr.getDepthSensingMesh();e!==null&&$e(e,t,-1/0,y.sortObjects)}$e(e,t,0,y.sortObjects),h.finish(),y.sortObjects===!0&&h.sort(te,N),fe=Be.enabled===!1||Be.isPresenting===!1||Be.hasDepthSensing()===!1,fe&&Me.addToRenderList(h,e),this.info.render.frame++,oe===!0&&Ae.beginShadows();let n=g.state.shadowsArray;je.render(n,e,t),oe===!0&&Ae.endShadows(),this.info.autoReset===!0&&this.info.reset();let r=h.opaque,i=h.transmissive;if(g.setupLights(),t.isArrayCamera){let n=t.cameras;if(i.length>0)for(let t=0,a=n.length;t0&&tt(r,i,e,t),fe&&Me.render(e),et(h,e,t);C!==null&&S===0&&(be.updateMultisampleRenderTarget(C),be.updateRenderTargetMipmap(C)),e.isScene===!0&&e.onAfterRender(y,e,t),Le.resetDefaultState(),w=-1,T=null,v.pop(),v.length>0?(g=v[v.length-1],oe===!0&&Ae.setGlobalState(y.clippingPlanes,g.state.camera)):g=null,_.pop(),h=_.length>0?_[_.length-1]:null};function $e(e,t,n,r){if(e.visible===!1)return;let i=e.layers.test(t.layers);if(i){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLight)g.pushLight(e),e.castShadow&&g.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||ae.intersectsSprite(e)){r&&ue.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ce);let t=Te.update(e),i=e.material;i.visible&&h.push(e,t,i,n,ue.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||ae.intersectsObject(e))){let t=Te.update(e),i=e.material;if(r&&(e.boundingSphere===void 0?(t.boundingSphere===null&&t.computeBoundingSphere(),ue.copy(t.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),ue.copy(e.boundingSphere.center)),ue.applyMatrix4(e.matrixWorld).applyMatrix4(ce)),Array.isArray(i)){let r=t.groups;for(let a=0,o=r.length;a0&&nt(i,t,n),a.length>0&&nt(a,t,n),o.length>0&&nt(o,t,n),_e.buffers.depth.setTest(!0),_e.buffers.depth.setMask(!0),_e.buffers.color.setMask(!0),_e.setPolygonOffset(!1)}function tt(e,t,n,r){let a=n.isScene===!0?n.overrideMaterial:null;if(a!==null)return;g.state.transmissionRenderTarget[r.id]===void 0&&(g.state.transmissionRenderTarget[r.id]=new Nd(1,1,{generateMipmaps:!0,type:he.has(`EXT_color_buffer_half_float`)||he.has(`EXT_color_buffer_float`)?kl:Sl,minFilter:xl,samples:4,stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:Sd.workingColorSpace}));let o=g.state.transmissionRenderTarget[r.id],s=r.viewport||E;o.setSize(s.z*y.transmissionResolutionScale,s.w*y.transmissionResolutionScale);let c=y.getRenderTarget(),l=y.getActiveCubeFace(),u=y.getActiveMipmapLevel();y.setRenderTarget(o),y.getClearColor(k),A=y.getClearAlpha(),A<1&&y.setClearColor(16777215,.5),y.clear(),fe&&Me.render(n);let d=y.toneMapping;y.toneMapping=0;let f=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),g.setupLightsView(r),oe===!0&&Ae.setGlobalState(y.clippingPlanes,r),nt(e,n,r),be.updateMultisampleRenderTarget(o),be.updateRenderTargetMipmap(o),he.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0),d=!!n.morphAttributes.position,f=!!n.morphAttributes.normal,p=!!n.morphAttributes.color,m=0;r.toneMapped&&(C===null||C.isXRRenderTarget===!0)&&(m=y.toneMapping);let h=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=h===void 0?0:h.length,v=ye.get(r),b=g.state.lights;if(oe===!0&&(se===!0||e!==T)){let t=e===T&&r.id===w;Ae.setState(r,e,t)}let x=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==b.state.version?x=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i.colorTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i.colorTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?x=!0:v.envMap===c?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Ae.numPlanes||v.numIntersection!==Ae.numIntersection)?x=!0:v.vertexAlphas===l&&v.vertexTangents===u&&v.morphTargets===d&&v.morphNormals===f&&v.morphColors===p&&v.toneMapping===m?v.morphTargetsCount!==_&&(x=!0):x=!0:x=!0:x=!0:(x=!0,v.__version=r.version);let S=v.currentProgram;x===!0&&(S=it(r,t,i));let E=!1,D=!1,O=!1,k=S.getUniforms(),A=v.uniforms;if(_e.useProgram(S.program)&&(E=!0,D=!0,O=!0),r.id!==w&&(w=r.id,D=!0),E||T!==e){let t=_e.buffers.depth.getReversed();t&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),k.setValue(P,`projectionMatrix`,e.projectionMatrix),k.setValue(P,`viewMatrix`,e.matrixWorldInverse);let n=k.map.cameraPosition;n!==void 0&&n.setValue(P,le.setFromMatrixPosition(e.matrixWorld)),ge.logarithmicDepthBuffer&&k.setValue(P,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&k.setValue(P,`isOrthographic`,e.isOrthographicCamera===!0),T!==e&&(T=e,D=!0,O=!0)}if(i.isSkinnedMesh){k.setOptional(P,i,`bindMatrix`),k.setOptional(P,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),k.setValue(P,`boneTexture`,e.boneTexture,be))}i.isBatchedMesh&&(k.setOptional(P,i,`batchingTexture`),k.setValue(P,`batchingTexture`,i._matricesTexture,be),k.setOptional(P,i,`batchingIdTexture`),k.setValue(P,`batchingIdTexture`,i._indirectTexture,be),k.setOptional(P,i,`batchingColorTexture`),i._colorsTexture!==null&&k.setValue(P,`batchingColorTexture`,i._colorsTexture,be));let j=n.morphAttributes;if((j.position!==void 0||j.normal!==void 0||j.color!==void 0)&&Ne.update(i,n,S),(D||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,k.setValue(P,`receiveShadow`,i.receiveShadow)),r.isMeshGouraudMaterial&&r.envMap!==null&&(A.envMap.value=c,A.flipEnvMap.value=c.isCubeTexture&&c.isRenderTargetTexture===!1?-1:1),r.isMeshStandardMaterial&&r.envMap===null&&t.environment!==null&&(A.envMapIntensity.value=t.environmentIntensity),D&&(k.setValue(P,`toneMappingExposure`,y.toneMappingExposure),v.needsLights&&ct(A,O),a&&r.fog===!0&&De.refreshFogUniforms(A,a),De.refreshMaterialUniforms(A,r,ee,M,g.state.transmissionRenderTarget[e.id]),Ib.upload(P,at(v),A,be)),r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(Ib.upload(P,at(v),A,be),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&k.setValue(P,`center`,i.center),k.setValue(P,`modelViewMatrix`,i.modelViewMatrix),k.setValue(P,`normalMatrix`,i.normalMatrix),k.setValue(P,`modelMatrix`,i.matrixWorld),r.isShaderMaterial||r.isRawShaderMaterial){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&be.useMultisampledRTT(e)===!1?ye.get(e).__webglMultisampledFramebuffer:Array.isArray(l)?l[n]:l,E.copy(e.viewport),D.copy(e.scissor),O=e.scissorTest}else E.copy(ne).multiplyScalar(ee).floor(),D.copy(re).multiplyScalar(ee).floor(),O=ie;n!==0&&(i=ut);let s=_e.bindFramebuffer(P.FRAMEBUFFER,i);if(s&&r&&_e.drawBuffers(e,i),_e.viewport(E),_e.scissor(D),_e.setScissorTest(O),a){let r=ye.get(e.texture);P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(o){let r=t;for(let t=0;t=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&(e.textures.length>1&&P.readBuffer(P.COLOR_ATTACHMENT0+s),P.readPixels(t,n,r,i,Ie.convert(c),Ie.convert(l),a))}finally{let e=C===null?null:ye.get(C).__webglFramebuffer;_e.bindFramebuffer(P.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=ye.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c)if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){_e.bindFramebuffer(P.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;if(!ge.textureFormatReadable(l))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(!ge.textureTypeReadable(u))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let d=P.createBuffer();P.bindBuffer(P.PIXEL_PACK_BUFFER,d),P.bufferData(P.PIXEL_PACK_BUFFER,a.byteLength,P.STREAM_READ),e.textures.length>1&&P.readBuffer(P.COLOR_ATTACHMENT0+s),P.readPixels(t,n,r,i,Ie.convert(l),Ie.convert(u),0);let f=C===null?null:ye.get(C).__webglFramebuffer;_e.bindFramebuffer(P.FRAMEBUFFER,f);let p=P.fenceSync(P.SYNC_GPU_COMMANDS_COMPLETE,0);return P.flush(),await Jte(P,p,4),P.bindBuffer(P.PIXEL_PACK_BUFFER,d),P.getBufferSubData(P.PIXEL_PACK_BUFFER,0,a),P.deleteBuffer(d),P.deleteSync(p),a}else throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;be.setTexture2D(e,0),P.copyTexSubImage2D(P.TEXTURE_2D,n,0,0,o,s,i,a),_e.unbindTexture()};let dt=P.createFramebuffer(),ft=P.createFramebuffer();this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=null){a===null&&(i===0?a=0:(yd(`WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels.`),a=i,i=0));let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ie.convert(t.format),_=Ie.convert(t.type),v;t.isData3DTexture?(be.setTexture3D(t,0),v=P.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(be.setTexture2DArray(t,0),v=P.TEXTURE_2D_ARRAY):(be.setTexture2D(t,0),v=P.TEXTURE_2D),P.pixelStorei(P.UNPACK_FLIP_Y_WEBGL,t.flipY),P.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),P.pixelStorei(P.UNPACK_ALIGNMENT,t.unpackAlignment);let y=P.getParameter(P.UNPACK_ROW_LENGTH),b=P.getParameter(P.UNPACK_IMAGE_HEIGHT),x=P.getParameter(P.UNPACK_SKIP_PIXELS),S=P.getParameter(P.UNPACK_SKIP_ROWS),C=P.getParameter(P.UNPACK_SKIP_IMAGES);P.pixelStorei(P.UNPACK_ROW_LENGTH,h.width),P.pixelStorei(P.UNPACK_IMAGE_HEIGHT,h.height),P.pixelStorei(P.UNPACK_SKIP_PIXELS,l),P.pixelStorei(P.UNPACK_SKIP_ROWS,u),P.pixelStorei(P.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=ye.get(e),r=ye.get(t),h=ye.get(n.__renderTarget),g=ye.get(r.__renderTarget);_e.bindFramebuffer(P.READ_FRAMEBUFFER,h.__webglFramebuffer),_e.bindFramebuffer(P.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n{r.value=e()},{...t,flush:(n=t?.flush)??`sync`}),$t(r)}function ex(e){return Ve()?(He(e),!0):!1}function tx(){let e=new Set,t=t=>{e.delete(t)},n=()=>{e.clear()},r=n=>{e.add(n);let r=()=>t(n);return ex(r),{off:r}},i=(...t)=>Promise.all(Array.from(e).map(e=>e(...t)));return{on:r,off:t,trigger:i,clear:n}}function xse(e){let t,n=Be(!0);return(...r)=>(t=n.run(()=>e(...r)),t)}const nx=new WeakMap,Sse=(...e)=>{var t;let n=e[0],r=(t=qo())?.proxy;if(r==null&&!fa())throw Error(`injectLocal must be called in setup`);return r&&nx.has(r)&&n in nx.get(r)?nx.get(r)[n]:da(...e)};function rx(e){let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...a)=>(t+=1,r||(r=Be(!0),n=r.run(()=>e(...a))),ex(i),n)}function Cse(e){if(!dn(e))return Zt(e);let t=new Proxy({},{get(t,n,r){return I(Reflect.get(e.value,n,r))},set(t,n,r){return dn(e.value[n])&&!dn(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Zt(t)}function wse(e){return Cse(U(e))}function Tse(e,...t){let n=t.flat(),r=n[0];return wse(()=>typeof r==`function`?Object.fromEntries(Object.entries(_n(e)).filter(([e,t])=>!r(mn(t),e))):Object.fromEntries(Object.entries(_n(e)).filter(e=>!n.includes(e[0]))))}const ix=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const Ese=e=>e!==void 0,Dse=e=>e!=null,Ose=Object.prototype.toString,kse=e=>Ose.call(e)===`[object Object]`,ax=()=>{},ox=Ase();function Ase(){var e,t;return ix&&(e=window==null?void 0:window.navigator)?.userAgent&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(t=window==null?void 0:window.navigator)?.maxTouchPoints>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function jse(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function Mse(e,t={}){let n,r,i=ax,a=e=>{clearTimeout(e),i(),i=ax},o,s=s=>{let c=mn(e),l=mn(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),null),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=null,e(s())},c)})};return s}function sx(e){let t=Object.create(null);return n=>{let r=t[n];return r||(t[n]=e(n))}}const Nse=/\B([A-Z])/g;sx(e=>e.replace(Nse,`-$1`).toLowerCase());const Pse=/-(\w)/g;sx(e=>e.replace(Pse,(e,t)=>t?t.toUpperCase():``));function cx(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function Fse(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}function lx(e){return e||qo()}function ux(e){return Array.isArray(e)?e:[e]}function dx(e,t=1e4){return gn((n,r)=>{let i=mn(e),a,o=()=>setTimeout(()=>{i=mn(e),r()},mn(t));return ex(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function Ise(e,t=200,n={}){return jse(Mse(t,n),e)}function fx(e,t=200,n={}){let r=F(e.value),i=Ise(()=>{r.value=e.value},t,n);return Ha(e,()=>i()),r}function Lse(e,t={}){if(!dn(e))return _n(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=gn(()=>({get(){return e.value[r]},set(n){var i;let a=(i=mn(t.replaceRef))??!0;if(a)if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[r]=n}}));return n}const px=mn;function Rse(e,t){let n=lx(t);n&&hi(e,t)}function mx(e,t=!0,n){let r=lx();r?fi(e,n):t?e():Gn(e)}function zse(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=fn(!1);function s(){a&&=(clearInterval(a),null)}function c(){o.value=!1,s()}function l(){let n=mn(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}if(r&&ix&&l(),dn(t)||typeof t==`function`){let e=Ha(t,()=>{o.value&&ix&&l()});ex(e)}return ex(c),{isActive:o,pause:c,resume:l}}function hx(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=fn(!1),o=null;function s(){o&&=(clearTimeout(o),null)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...n)},mn(t))}return r&&(a.value=!0,ix&&l()),ex(c),{isPending:$t(a),start:l,stop:c}}function gx(e,t,n){return Ha(e,t,{...n,immediate:!0})}const _x=ix?window:void 0;ix&&window.document,ix&&window.navigator,ix&&window.location;function vx(e){var t;let n=mn(e);return(t=n?.$el)??n}function yx(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=U(()=>{let t=ux(mn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=gx(()=>{var t,n;return[(n=(t=i.value)?.map(e=>vx(e)))??[_x].filter(e=>e!=null),ux(mn(i.value?e[1]:e[0])),ux(I(i.value?e[2]:e[1])),mn(i.value?e[3]:e[2])]},([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=kse(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`}),o=()=>{a(),n()};return ex(n),o}function bx(){let e=fn(!1),t=qo();return t&&fi(()=>{e.value=!0},t),e}function xx(e){let t=bx();return U(()=>(t.value,!!e()))}function Sx(e,t,n={}){let{window:r=_x,...i}=n,a,o=xx(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=U(()=>{let t=mn(e),n=ux(t).map(vx).filter(Dse);return new Set(n)}),l=Ha(()=>c.value,e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>a?.takeRecords(),d=()=>{l(),s()};return ex(d),{isSupported:o,stop:d,takeRecords:u}}function Cx(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function wx(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=_x,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Cx(t),l=e=>{e.repeat&&mn(s)||c(e)&&n(e)};return yx(i,a,l,o)}function Tx(e,t={}){let{immediate:n=!0,fpsLimit:r=void 0,window:i=_x,once:a=!1}=t,o=fn(!1),s=U(()=>r?1e3/mn(r):null),c=0,l=null;function u(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&nn&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=fn(typeof r==`number`),o=fn(),s=fn(!1),c=e=>{s.value=e.matches};return za(()=>{if(a.value){a.value=!i.value;let t=mn(e).split(`,`);s.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=cx(n[1])),i&&a&&(a=r<=cx(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(mn(e)),s.value=o.value.matches)}),yx(o,`change`,c,{passive:!0}),U(()=>s.value)}function kx(e){return JSON.parse(JSON.stringify(e))}function Ax(e={}){let{window:t=_x}=e,n=fn(1),r=Ox(()=>`(resolution: ${n.value}dppx)`,e),i=ax;return t&&(i=gx(r,()=>n.value=t.devicePixelRatio)),{pixelRatio:$t(n),stop:i}}function jx(e,t,n={}){let{window:r=_x,...i}=n,a,o=xx(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=U(()=>{let t=mn(e);return Array.isArray(t)?t.map(e=>vx(e)):[vx(t)]}),l=Ha(c,e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{s(),l()};return ex(u),{isSupported:o,stop:u}}function Mx(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=fn(0),c=fn(0),l=fn(0),u=fn(0),d=fn(0),f=fn(0),p=fn(0),m=fn(0);function h(){let t=vx(e);if(!t){n&&(s.value=0,c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,l.value=r.left,u.value=r.right,d.value=r.top,f.value=r.width,p.value=r.x,m.value=r.y}function g(){o===`sync`?h():o===`next-frame`&&requestAnimationFrame(()=>h())}return jx(e,g),Ha(()=>vx(e),e=>!e&&g()),Sx(e,g,{attributeFilter:[`style`,`class`]}),i&&yx(`scroll`,g,{capture:!0,passive:!0}),r&&yx(`resize`,g,{passive:!0}),mx(()=>{a&&g()}),{height:s,bottom:c,left:l,right:u,top:d,width:f,x:p,y:m,update:g}}function Nx(e,t={width:0,height:0},n={}){let{window:r=_x,box:i=`content-box`}=n,a=U(()=>{var t,n;return(n=(t=vx(e))?.namespaceURI)?.includes(`svg`)}),o=fn(t.width),s=fn(t.height),{stop:c}=jx(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=vx(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=ux(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);mx(()=>{let n=vx(e);n&&(o.value=`offsetWidth`in n?n.offsetWidth:t.width,s.value=`offsetHeight`in n?n.offsetHeight:t.height)});let l=Ha(()=>vx(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function u(){c(),l()}return{width:o,height:s,stop:u}}function Px(e){var t;let n=fn(0);if(typeof performance>`u`)return n;let r=(t=e?.every)??10,i=performance.now(),a=0;return Tx(()=>{if(a+=1,a>=r){let e=performance.now(),t=e-i;n.value=Math.round(1e3/(t/a)),i=e,a=0}}),n}function Fx(e={}){let t=F(),n=xx(()=>typeof performance<`u`&&`memory`in performance);if(n.value){let{interval:n=1e3}=e;zse(()=>{t.value=performance.memory},n,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}const Ix={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Lx=Object.keys(Ix);function Rx(e={}){let{target:t=_x}=e,n=fn(!1),r=F(e.initialValue||{});Object.assign(r.value,Ix,r.value);let i=t=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(t.pointerType))&&(r.value=Fse(t,Lx,!1))};if(t){let e={passive:!0};yx(t,[`pointerdown`,`pointermove`,`pointerup`],i,e),yx(t,`pointerleave`,()=>n.value=!1,e)}return{...Lse(r),isInside:n}}function zx(e,t,n,r={}){var i,a,o;let{clone:s=!1,passive:c=!1,eventName:l,deep:u=!1,defaultValue:d,shouldEmit:f}=r,p=qo(),m=n||p?.emit||(i=p?.$emit)?.bind(p)||(o=(a=p?.proxy)?.$emit)?.bind(p?.proxy),h=l;t||=`modelValue`,h||=`update:${t.toString()}`;let g=e=>s?typeof s==`function`?s(e):kx(e):e,_=()=>Ese(e[t])?g(e[t]):d,v=e=>{f?f(e)&&m(h,e):m(h,e)};if(c){let n=_(),r=F(n),i=!1;return Ha(()=>e[t],e=>{i||(i=!0,r.value=g(e),Gn(()=>i=!1))}),Ha(r,n=>{!i&&(n!==e[t]||u)&&v(n)},{deep:u}),r}else return U({get(){return _()},set(e){v(e)}})}function Bx(e={}){let{window:t=_x,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=fn(n),c=fn(r),l=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};l(),mx(l);let u={passive:!0};if(yx(`resize`,l,u),t&&o===`visual`&&t.visualViewport&&yx(t.visualViewport,`resize`,l,u),i){let e=Ox(`(orientation: portrait)`);Ha(e,()=>l())}return{width:s,height:c}}var Vx=Object.defineProperty,Hx=(e,t,n)=>t in e?Vx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ux=(e,t,n)=>Hx(e,typeof t==`symbol`?t:t+``,n);const Wx={type:`git`,url:`git+https://github.com/Tresjs/tres.git`},Gx=[`vue`,`3d`,`threejs`,`three`,`threejs-vue`],Kx={".":{types:`./dist/index.d.ts`,import:`./dist/tres.js`,require:`./dist/tres.umd.cjs`},"./components":{types:`./dist/src/components/index.d.ts`},"./composables":{types:`./dist/src/composables/index.d.ts`},"./types":{types:`./dist/src/types/index.d.ts`},"./utils":{types:`./dist/src/utils/index.d.ts`},"./*":`./*`},qx=[`*.d.ts`,`dist`],Jx={access:`public`},Yx={dev:`pnpm --filter='./playground/vue' dev`,"dev:nuxt":`pnpm --filter='./playground/nuxt' dev`,build:`vite build`,test:`vitest`,"test:ci":`vitest run`,"test:ui":`vitest --ui --coverage.enabled=true`,release:`release-it`,coverage:`vitest run --coverage`,lint:`eslint .`,"lint:fix":`eslint . --fix`,"docs:dev":`vitepress dev docs`,"docs:build":`vitepress build docs`,"docs:serve":`vitepress serve docs`,"docs:preview":`vitepress preview docs`,"docs:contributors":`esno scripts/update-contributors.ts`},Xx={three:`>=0.133`,vue:`>=3.4`},Zx={"@alvarosabu/utils":`^3.2.0`,"@vue/devtools-api":`^6.6.3`,"@vueuse/core":`^12.5.0`},Qx={"@release-it/conventional-changelog":`^10.0.0`,"@stackblitz/sdk":`^1.11.0`,"@tresjs/cientos":`4.1.0`,"@tresjs/eslint-config":`^1.4.0`,"@types/three":`^0.173.0`,"@typescript-eslint/eslint-plugin":`^8.23.0`,"@typescript-eslint/parser":`^8.23.0`,"@vitejs/plugin-vue":`^5.2.1`,"@vitest/coverage-c8":`^0.33.0`,"@vitest/coverage-v8":`^3.0.5`,"@vitest/ui":`^3.0.5`,"@vue/test-utils":`^2.4.6`,eslint:`^9.19.0`,"eslint-plugin-vue":`^9.32.0`,esno:`^4.8.0`,gsap:`^3.12.7`,jsdom:`^26.0.0`,kolorist:`^1.8.0`,ohmyfetch:`^0.4.21`,pathe:`^2.0.2`,"release-it":`^18.1.2`,"rollup-plugin-analyzer":`^4.0.0`,"rollup-plugin-copy":`^3.5.0`,"rollup-plugin-visualizer":`^5.14.0`,sponsorkit:`^16.3.0`,three:`^0.173.0`,unocss:`^65.4.3`,unplugin:`^2.1.2`,"unplugin-vue-components":`^28.0.0`,vite:`^6.1.0`,"vite-plugin-banner":`^0.8.0`,"vite-plugin-dts":`4.5.0`,"vite-plugin-inspect":`^10.1.0`,"vite-plugin-require-transform":`^1.0.21`,"vite-svg-loader":`^5.1.0`,vitepress:`1.6.3`,vitest:`3.0.5`,vue:`3.5.13`,"vue-demi":`^0.14.10`},$x={name:`@tresjs/core`,type:`module`,version:`4.3.6`,packageManager:`pnpm@10.6.3`,description:`Declarative ThreeJS using Vue Components`,author:`Alvaro Saburido (https://github.com/alvarosabu/)`,license:`MIT`,repository:Wx,keywords:Gx,sideEffects:!1,exports:Kx,main:`./dist/tres.js`,module:`./dist/tres.js`,types:`./dist/index.d.ts`,files:qx,publishConfig:Jx,scripts:Yx,peerDependencies:Xx,dependencies:Zx,devDependencies:Qx};var eS=class extends Vp{constructor(...e){super(...e),Ux(this,`type`,`HightlightMesh`),Ux(this,`createTime`),this.createTime=Date.now()}onBeforeRender(){let e=(Date.now()-this.createTime)/1e3,t=1+.07*Math.sin(2.5*e);this.scale.set(t,t,t)}};function tS(e){return typeof e>`u`}function nS(e){return Array.isArray(e)}function rS(e){return typeof e==`number`}function iS(e){return typeof e==`string`}function aS(e){return typeof e==`function`}function oS(e){return e===Object(e)&&!nS(e)&&!aS(e)}function sS(e){return oS(e)&&!!e.isObject3D}function cS(e){return oS(e)&&!!e.isColor}function lS(e){return e!=null&&(typeof e==`string`||typeof e==`number`||cS(e))}function uS(e){return typeof e==`object`&&!!e&&`set`in e&&typeof e.set==`function`}function dS(e){return uS(e)&&`copy`in e&&typeof e.copy==`function`}function fS(e){return!!(e!=null&&e.constructor)}function pS(e){return e instanceof yf}function mS(e){return oS(e)&&!!e.isCamera}function hS(e){return oS(e)&&!!e.isBufferGeometry}function gS(e){return oS(e)&&!!e.isMaterial}function _S(e){return oS(e)&&!!e.isLight}function vS(e){return oS(e)&&!!e.isFog}function yS(e){return oS(e)&&!!e.isScene}function bS(e){return sS(e)||hS(e)||gS(e)||vS(e)}function xS(e){return oS(e)&&!!e.isPrimitive}const SS=(e,t)=>{for(let n of Object.keys(t))t[n]instanceof Object&&Object.assign(t[n],SS(e[n],t[n]));return Object.assign(e||{},t),e},CS=OS(`html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot`);function wS(e){return e&&e.nodeType===1}function TS(e){return e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}const ES=/\B([A-Z])/g;function DS(e){return e.replace(ES,`-$1`).toLowerCase()}function OS(e,t){let n=Object.create(null),r=e.split(`,`);for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}const kS=(e,t)=>{if(!t)return;let n=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return n?.reduce((e,t)=>e&&e[t],e)},AS=(e,t,n)=>{let r=Array.isArray(t)?t:t.match(/([^[.\]])+/g);r&&r.reduce((e,t,i)=>(e[t]===void 0&&(e[t]={}),i===r.length-1&&(e[t]=n),e[t]),e)};function jS(e,t){if(wS(e)&&wS(t)){let n=e.attributes,r=t.attributes;return n.length===r.length?Array.from(n).every(({name:e,value:n})=>t.getAttribute(e)===n):!1}if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!r.includes(i)||!jS(e[i],t[i]))return!1;return!0}function MS(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n{if(e.uuid===t)return e;for(let t of e.children){let e=i(t);if(e)return e}},a=i(e);if(!a){console.warn(`Object with UUID not found in the scene.`);return}let o=a;for(let e=0;eLS(e)),!(e instanceof fm)){let t=e;e&&((n=e.dispose)==null||n.call(e)),t.geometry&&t.geometry.dispose(),Array.isArray(t.material)?t.material.forEach(e=>IS(e)):t.material&&IS(t.material)}}function RS(e,t){let n=0;for(let r=0;rt===0?e:e.charAt(0).toUpperCase()+e.slice(1)).join(``)}const VS=/-\d+$/;function HS(e,t,n){if(iS(n)){if(VS.test(n)){let t=n.replace(VS,``),{target:r,key:i}=zS(e,t);if(!Array.isArray(r[i])){let e=r[i],t=[];t.__tresDetach=()=>{t.every(e=>tS(e))&&(r[i]=e)},r[i]=t}}let{target:r,key:i}=zS(e,n);t.__tres.previousAttach=r[i],r[i]=JS(t)}else t.__tres.previousAttach=n(e,t)}function US(e,t,n){var r,i,a;if(iS(n)){let{target:r,key:i}=zS(e,n),a=t.__tres.previousAttach;a===void 0?delete r[i]:r[i]=a,`__tresDetach`in r&&r.__tresDetach()}else (i=(r=t.__tres)?.previousAttach)==null||i.call(r,e,t);(a=t.__tres)==null||delete a.previousAttach}function WS(e,t,n){let r=e;return r.__tres={type:`unknown`,eventCount:0,root:n,handlers:{},memoizedProps:{},objects:[],parent:null,previousAttach:null,...t},r.__tres.attach||(r.isMaterial?r.__tres.attach=`material`:r.isBufferGeometry?r.__tres.attach=`geometry`:r.isFog&&(r.__tres.attach=`fog`)),r}function GS(e){var t;let n=(t=e?.__tres)?.root;n&&n.render&&n.render.canBeInvalidated.value&&n.invalidate()}function KS(e,t,n){var r;if(!aS(e.setPixelRatio))return;let i=0;if(n&&nS(n)&&n.length>=2){let[e,r]=n;i=sd.clamp(t,e,r)}else i=rS(n)?n:t;i!==(r=e.getPixelRatio)?.call(e)&&e.setPixelRatio(i)}function qS(e,t,n,r,i){let a=[...t.__tres.objects],o=JS(t);if(e=JS(e),o===e)return!0;let s=WS(e,t.__tres??{},i),c=t.parent??t.__tres.parent??null,l={...t.__tres.memoizedProps};delete l.object;for(let e of a)YS(e,i),XS(e,i);o.__tres.objects=[],r.remove(t);for(let[e,t]of Object.entries(l))r.patchProp(s,e,s[e],t);n(e),r.insert(t,c);for(let e of a)r.insert(e,t);return!0}function JS(e){return xS(e)?(e.object.__tres=e.__tres,e.object):e}function YS(e,t){var n,r,i,a;let o=(n=e.__tres)?.parent||t.scene.value;e.__tres&&(e.__tres.parent=null),o&&o.__tres&&`objects`in o.__tres&&RS(o.__tres.objects,t=>t!==e),(r=e.__tres)!=null&&r.attach?US(o,e,e.__tres.attach):((a=(i=e.parent)?.remove)==null||a.call(i,JS(e)),e.parent=null)}function XS(e,t){var n;(n=e.traverse)==null||n.call(e,e=>{var n;t.deregisterCamera(e),(n=t.eventManager)==null||n.deregisterPointerMissedObject(e)}),t.deregisterCamera(e),GS(e)}const ZS=({sizes:e})=>{let t=F([]),n=U(()=>t.value[0]),r=e=>{let n=e instanceof $p?e:t.value.find(t=>t.uuid===e);if(!n)return;let r=t.value.filter(({uuid:e})=>e!==n.uuid);t.value=[n,...r]},i=(e,n=!1)=>{if(mS(e)){let i=e;if(t.value.some(({uuid:e})=>e===i.uuid))return;n?r(i):t.value.push(i)}},a=e=>{if(mS(e)){let n=e;t.value=t.value.filter(({uuid:e})=>e!==n.uuid)}};return za(()=>{e.aspectRatio.value&&t.value.forEach(t=>{!t.manual&&(t instanceof rm||QS(t))&&(t instanceof rm?t.aspect=e.aspectRatio.value:(t.left=e.width.value*-.5,t.right=e.width.value*.5,t.top=e.height.value*.5,t.bottom=e.height.value*-.5),t.updateProjectionMatrix())})}),gi(()=>{t.value=[]}),{camera:n,cameras:t,registerCamera:i,deregisterCamera:a,setCameraActive:r}};function QS(e){return e.hasOwnProperty(`isOrthographicCamera`)&&e.isOrthographicCamera}const $S=`[TresJS ▲ ■ ●] `;function eC(...e){typeof e[0]==`string`?e[0]=$S+e[0]:e.unshift($S),console.error(...e)}function tC(...e){typeof e[0]==`string`?e[0]=$S+e[0]:e.unshift($S),console.warn(...e)}function nC(e,t){}function rC(){return{logError:eC,logWarning:tC,logMessage:nC}}const iC=F({}),aC=e=>Object.assign(iC.value,e);function oC(){let e=new Map,t=new Set,n=0,r=()=>{let n=Array.from(e.entries()).sort((e,t)=>{let n=e[1].priority-t[1].priority;return n===0?e[1].addI-t[1].addI:n});t.clear(),n.forEach(e=>t.add(e[0]))},i=n=>{e.delete(n),t.delete(n)};return{on:(t,r=0)=>{e.set(t,{priority:r,addI:n++});let a=()=>i(t);return ex(a),{off:a}},off:i,trigger:(...e)=>{r(),t.forEach(t=>t(...e))},dispose:()=>{e.clear(),t.clear()},get count(){return e.size}}}function sC(){let e=!0,t=!0,n=!1,r=new ry(!1),i=F(r.running),a=F(!1),o,s=sd.generateUUID(),c=null,l=oC(),u=oC(),d=oC();S();let f={};function p(e){f=e}function m(e,t,n=0){switch(t){case`before`:return l.on(e,n);case`render`:return c||=e,u.dispose(),u.on(e);case`after`:return d.on(e,n)}}function h(){t&&(t=!1,S(),x())}function g(){t=!0,S(),cancelAnimationFrame(o)}function _(){n=!1,S()}function v(){n=!0,S()}function y(){a.value=!0}function b(){a.value=!1}function x(){if(!e){o=requestAnimationFrame(x);return}let t=r.getDelta(),n=r.getElapsedTime(),s={camera:I(f.camera),scene:I(f.scene),renderer:I(f.renderer),raycaster:I(f.raycaster),controls:I(f.controls),invalidate:f.invalidate,advance:f.advance},p={delta:t,elapsed:n,clock:r,...s};i.value&&l.trigger(p),a.value||(u.count?u.trigger(p):c&&c(p)),i.value&&d.trigger(p),o=requestAnimationFrame(x)}function S(){let e=!t&&!n;r.running!==e&&(r.running?r.stop():r.start()),i.value=r.running}return{loopId:s,register:(e,t,n)=>m(e,t,n),start:h,stop:g,pause:v,resume:_,pauseRender:y,resumeRender:b,isRenderPaused:a,isActive:i,setContext:p,setReady:t=>e=t}}function cC(e){let t=0;return e.traverse(e=>{if(e.isMesh&&e.geometry&&e.type!==`HightlightMesh`){let n=e.geometry,r=n.attributes.position.count*3*Float32Array.BYTES_PER_ELEMENT,i=n.index?n.index.count*Uint32Array.BYTES_PER_ELEMENT:0,a=n.attributes.normal?n.attributes.normal.count*3*Float32Array.BYTES_PER_ELEMENT:0,o=n.attributes.uv?n.attributes.uv.count*2*Float32Array.BYTES_PER_ELEMENT:0,s=r+i+a+o;t+=s}}),t}function lC(e){return(e/1024).toFixed(2)}const uC=Number.parseInt(`179`);function dC(e){return e instanceof $f?e:Array.isArray(e)?new $f(...e):new $f(e)}const fC={realistic:{shadows:!0,physicallyCorrectLights:!0,outputColorSpace:Bu,toneMapping:4,toneMappingExposure:3,shadowMap:{enabled:!0,type:2}},flat:{toneMapping:0,toneMappingExposure:1}};function pC({canvas:e,options:t,contextParts:{sizes:n,render:r,invalidate:i,advance:a}}){let o=U(()=>({alpha:px(t.alpha)??!0,depth:px(t.depth),canvas:vx(e),context:px(t.context),stencil:px(t.stencil),antialias:px(t.antialias)??!0,precision:px(t.precision),powerPreference:px(t.powerPreference),premultipliedAlpha:px(t.premultipliedAlpha),preserveDrawingBuffer:px(t.preserveDrawingBuffer),logarithmicDepthBuffer:px(t.logarithmicDepthBuffer),failIfMajorPerformanceCaveat:px(t.failIfMajorPerformanceCaveat)})),s=fn(new $b(o.value));function c(){t.renderMode===`on-demand`&&i()}Ha(o,()=>{s.value.dispose(),s.value=new $b(o.value),c()}),Ha([n.width,n.height],()=>{s.value.setSize(n.width.value,n.height.value),c()},{immediate:!0}),Ha(()=>t.clearColor,c);let{pixelRatio:l}=Ax(),{logError:u}=rC(),d=(()=>{let e=new $b,t={shadowMap:{enabled:e.shadowMap.enabled,type:e.shadowMap.type},toneMapping:e.toneMapping,toneMappingExposure:e.toneMappingExposure,outputColorSpace:e.outputColorSpace};return e.dispose(),t})(),f=px(t.renderMode);return f===`on-demand`&&i(),f===`manual`&&setTimeout(()=>{a()},100),za(()=>{let e=px(t.preset);e&&(e in fC||u(`Renderer Preset must be one of these: ${Object.keys(fC).join(`, `)}`),SS(s.value,fC[e])),KS(s.value,l.value,px(t.dpr)),f===`always`&&(r.frames.value=Math.max(1,r.frames.value));let n=(t,n)=>{let r=px(t),i=()=>{if(e)return kS(fC[e],n)};if(r!==void 0)return r;let a=i();return a===void 0?kS(d,n):a},i=(e,t)=>AS(s.value,t,n(e,t));i(t.shadows,`shadowMap.enabled`),i(t.toneMapping??4,`toneMapping`),i(t.shadowMapType,`shadowMap.type`),uC<150&&i(!t.useLegacyLights,`physicallyCorrectLights`),i(t.outputColorSpace,`outputColorSpace`),i(t.toneMappingExposure,`toneMappingExposure`);let a=n(t.clearColor,`clearColor`);a&&s.value.setClearColor(a?dC(a):new $f(0))}),gi(()=>{s.value.dispose(),s.value.forceContextLoss()}),{renderer:s}}function mC(e,t,n=10){let r=px(e)?Bx():Nx(U(()=>px(t).parentElement)),i=$t(fx(r.width,n)),a=$t(fx(r.height,n)),o=U(()=>i.value/a.value);return{height:a,width:i,aspectRatio:o}}const hC=(e,t)=>{let n=U(()=>t.renderer.value.domElement),r=fn([]),{x:i,y:a}=Rx({target:n}),o=0,{width:s,height:c,top:l,left:u}=Mx(n),d=({x:e,y:t})=>{if(n.value)return{x:(e-u.value)/s.value*2-1,y:-((t-l.value)/c.value)*2+1}},f=({x:n,y:i})=>{if(t.camera.value)return t.raycaster.value.setFromCamera(new cd(n,i),t.camera.value),r.value=t.raycaster.value.intersectObjects(e.value,!0),r.value},p=e=>{let t=d({x:e?.clientX??i.value,y:e?.clientY??a.value});return t&&f(t)||[]},m=tx(),h=tx(),g=tx(),_=tx(),v=tx(),y=tx(),b=tx(),x=tx();function S(e){let t={};for(let n in e)typeof n!=`function`&&(t[n]=e[n]);return t}let C=(e,n)=>{var i,a,s;let c=S(n),l=new W(n?.clientX,n?.clientY,0).unproject((i=t.camera)?.value);e.trigger({...c,intersections:r.value,unprojectedPoint:l,ray:(a=t.raycaster)?.value.ray,camera:(s=t.camera)?.value,sourceEvent:n,delta:o,stopPropagating:!1})},w,T=e=>{p(e),C(g,e),w=e},E=()=>{w&&T(w)},D,O,k,A=e=>{var t;D=(t=r.value[0])?.object,o=0,O=new cd(e?.clientX??i.value,e?.clientY??a.value),C(v,e)},j,M=e=>{var t,n,s;e instanceof PointerEvent&&(r.value.length===0&&C(y,e),D===(t=r.value[0])?.object&&(k=new cd(e?.clientX??i.value,e?.clientY??a.value),o=O?.distanceTo(k),e.button===0?(C(m,e),j===(n=r.value[0])?.object||(j=(s=r.value[0])?.object)):e.button===2&&C(b,e)),C(_,e))},ee=e=>{C(h,e),j=void 0},te=e=>C(g,e),N=e=>C(x,e);return n.value.addEventListener(`pointerup`,M),n.value.addEventListener(`pointerdown`,A),n.value.addEventListener(`pointermove`,T),n.value.addEventListener(`pointerleave`,te),n.value.addEventListener(`dblclick`,ee),n.value.addEventListener(`wheel`,N),gi(()=>{n!=null&&n.value&&(n.value.removeEventListener(`pointerup`,M),n.value.removeEventListener(`pointerdown`,A),n.value.removeEventListener(`pointermove`,T),n.value.removeEventListener(`pointerleave`,te),n.value.removeEventListener(`dblclick`,ee),n.value.removeEventListener(`wheel`,N))}),{intersects:r,onClick:e=>m.on(e).off,onDblClick:e=>h.on(e).off,onContextMenu:e=>b.on(e).off,onPointerMove:e=>g.on(e).off,onPointerUp:e=>_.on(e).off,onPointerDown:e=>v.on(e).off,onPointerMissed:e=>y.on(e).off,onWheel:e=>x.on(e).off,forceUpdate:E}};function gC(e,t){if(Array.isArray(e))for(let n of e)n(t);typeof e==`function`&&e(t)}function _C(e,t,n){var r;let i=fn(),a=fn();e&&(i.value=e),t&&(a.value=t);let o=e=>{var t;return(t=e.__tres)?.eventCount>0},s=e=>{var t;return(t=e.children)?.some(e=>s(e))||o(e)},c=fn(((r=i.value)?.children).filter(s)||[]);function l(e,t){let r=[],i=()=>t.stopPropagating=!0;t.stopPropagation=i;for(let i of t?.intersections){if(t.stopPropagating)return;t={...t,...i};let{object:a}=i;t.eventObject=a,gC(a[e],t),r.push(a);let o=a.parent;for(;o!==null&&!t.stopPropagating&&!r.includes(o);)t.eventObject=o,gC(o[e],t),r.push(o),o=o.parent;let s=DS(e.slice(2));n(s,{intersection:i,event:t})}}let{onClick:u,onDblClick:d,onContextMenu:f,onPointerMove:p,onPointerDown:m,onPointerUp:h,onPointerMissed:g,onWheel:_,forceUpdate:v}=hC(c,t);h(e=>l(`onPointerUp`,e)),m(e=>l(`onPointerDown`,e)),u(e=>l(`onClick`,e)),d(e=>l(`onDoubleClick`,e)),f(e=>l(`onContextMenu`,e)),_(e=>l(`onWheel`,e));let y=[];p(e=>{let t=e.intersections.map(({object:e})=>e),n=e.intersections;y.forEach(({object:n})=>{t.includes(n)||(e.intersections=y,l(`onPointerLeave`,e),l(`onPointerOut`,e))}),e.intersections=n,e.intersections.forEach(({object:t})=>{y.includes(t)||(l(`onPointerEnter`,e),l(`onPointerOver`,e))}),l(`onPointerMove`,e),y=e.intersections});let b=[];g(e=>{let t=()=>e.stopPropagating=!0;e.stopPropagation=t,b.forEach(t=>{e.stopPropagating||(e.eventObject=t,gC(t.onPointerMissed,e))}),n(`pointer-missed`,{event:e})});function x(e){bS(e)&&sS(e)&&c.value.push(e)}function S(e){if(bS(e)&&sS(e)){let t=c.value.indexOf(e);t>-1&&c.value.splice(t,1)}}function C(e){bS(e)&&sS(e)&&e.onPointerMissed&&b.push(e)}function w(e){if(bS(e)&&sS(e)){let t=b.indexOf(e);t>-1&&b.splice(t,1)}}return t.eventManager={forceUpdate:v,registerObject:x,deregisterObject:S,registerPointerMissedObject:C,deregisterPointerMissedObject:w},{forceUpdate:v,registerObject:x,deregisterObject:S,registerPointerMissedObject:C,deregisterPointerMissedObject:w}}function vC(e,t,n=100){n=n<=0?100:n;let r=tx(),i=new Set,a=!1,o=!1,s=null;function c(){s&&clearTimeout(s),!o&&!a&&e()?(r.trigger(t),i.forEach(e=>e()),i.clear(),a=!0):!o&&!a&&(s=setTimeout(c,n))}function l(){o=!0,s&&clearTimeout(s)}c();let u=(e,...t)=>{e(...t)};return{on:e=>{if(a)return u(e,t),{off:()=>{}};{let t=r.on(e);return i.add(t.off),r.on(e)}},off:r.off,trigger:r.trigger,clear:r.clear,cancel:l}}const yC=new WeakMap;function bC(e){if(e||=SC(),yC.has(e))return yC.get(e);let t=Date.now(),n=vC(()=>{if(Date.now()-t>=100)return!0;{let t=e.renderer.value,n=t?.domElement||{width:0,height:0};return!!(t&&n.width>0&&n.height>0)}},e);return yC.set(e,n),n}function xC({scene:e,canvas:t,windowSize:n,rendererOptions:r,emit:i}){let a=fn(e),o=mC(n,t),{camera:s,cameras:c,registerCamera:l,deregisterCamera:u,setCameraActive:d}=ZS({sizes:o}),f={mode:F(r.renderMode||`always`),priority:F(0),frames:F(0),maxFrames:60,canBeInvalidated:U(()=>f.mode.value===`on-demand`&&f.frames.value===0)};function p(e=1){r.renderMode===`on-demand`&&(f.frames.value=Math.min(f.maxFrames,f.frames.value+e))}function m(){r.renderMode===`manual`&&(f.frames.value=1)}let{renderer:h}=pC({canvas:t,options:r,contextParts:{sizes:o,render:f,invalidate:p,advance:m}}),g={sizes:o,scene:a,camera:s,cameras:$t(c),renderer:h,raycaster:fn(new xy),controls:F(null),perf:{maxFrames:160,fps:{value:0,accumulator:[]},memory:{currentMem:0,allocatedMem:0,accumulator:[]}},render:f,advance:m,extend:aC,invalidate:p,registerCamera:l,setCameraActive:d,deregisterCamera:u,loop:sC()};ua(`useTres`,g),g.scene.value.__tres={root:g},g.loop.register(()=>{s.value&&f.frames.value>0&&(h.value.render(e,s.value),i(`render`,g.renderer.value)),f.priority.value=0,f.mode.value===`always`?f.frames.value=1:f.frames.value=Math.max(0,f.frames.value-1)},`render`);let{on:_,cancel:v}=bC(g);g.loop.setReady(!1),g.loop.start(),_(()=>{i(`ready`,g),g.loop.setReady(!0),_C(e,g,i)}),gi(()=>{v(),g.loop.stop()});let y=Px({every:100}),{isSupported:b,memory:x}=Fx({interval:100}),S=performance.now(),C=({timestamp:e})=>{g.scene.value&&(g.perf.memory.allocatedMem=cC(g.scene.value)),e-S>=100&&(S=e,g.perf.fps.accumulator.push(y.value),g.perf.fps.accumulator.length>160&&g.perf.fps.accumulator.shift(),g.perf.fps.value=y.value,b.value&&x.value&&(g.perf.memory.accumulator.push(x.value.usedJSHeapSize/1024/1024),g.perf.memory.accumulator.length>160&&g.perf.memory.accumulator.shift(),g.perf.memory.currentMem=g.perf.memory.accumulator.reduce((e,t)=>e+t,0)/g.perf.memory.accumulator.length))},w=0,{pause:T}=Tx(({delta:e})=>{window.__TRES__DEVTOOLS__&&(C({timestamp:performance.now()}),w+=e,w>=1&&(window.__TRES__DEVTOOLS__.cb(g),w=0))},{immediate:!0});return gi(()=>{T()}),g}function SC(){let e=da(`useTres`);if(!e)throw Error(`useTresContext must be used together with useTresContextProvider`);return e}function CC(){let{camera:e,scene:t,renderer:n,loop:r,raycaster:i,controls:a,invalidate:o,advance:s}=SC();r.setContext({camera:e,scene:t,renderer:n,raycaster:i,controls:a,invalidate:o,advance:s});function c(e,t=0){return r.register(e,`before`,t)}function l(e){return r.register(e,`render`)}function u(e,t=0){return r.register(e,`after`,t)}return{pause:r.pause,resume:r.resume,pauseRender:r.pauseRender,resumeRender:r.resumeRender,isActive:r.isActive,onBeforeRender:c,render:l,onAfterRender:u}}const wC=tx(),TC=tx(),EC=tx(),DC=new ry;let OC=0,kC=0;const{pause:Bse,resume:Vse,isActive:Hse}=Tx(()=>{wC.trigger({delta:OC,elapsed:kC,clock:DC}),TC.trigger({delta:OC,elapsed:kC,clock:DC}),EC.trigger({delta:OC,elapsed:kC,clock:DC})},{immediate:!1});EC.on(()=>{OC=DC.getDelta(),kC=DC.getElapsedTime()});function AC(e,t={},n={}){let r=e,i=e=>{r=e},a=new Proxy({},{}),o={has(e,n){return n in t||n in r},get(e,n,i){return n in t?t[n](r):r[n]},set(e,t,o){return n[t]?n[t](o,r,a,i):r[t]=o,!0}};return a=new Proxy({},o),a}const{logError:jC}=rC(),MC=[`onClick`,`onContextMenu`,`onPointerMove`,`onPointerEnter`,`onPointerLeave`,`onPointerOver`,`onPointerOut`,`onDoubleClick`,`onPointerDown`,`onPointerUp`,`onPointerCancel`,`onPointerMissed`,`onLostPointerCapture`,`onWheel`],NC=e=>{let t=e.scene.value;function n(t,n,o,s){if(s||={},s.args||=[],t===`template`||CS(t))return null;let c=t.replace(`Tres`,``),l;if(t===`primitive`){(!oS(s.object)||dn(s.object))&&jC(`Tres primitives need an 'object' prop, whose value is an object or shallowRef`),c=s.object.type;let t={};l=AC(s.object,{object:e=>e,isPrimitive:()=>!0,__tres:()=>t},{object:(t,n,o,s)=>{qS(t,o,s,{patchProp:a,remove:i,insert:r},e)},__tres:e=>{Object.assign(t,e)}})}else{let e=iC.value[c];e||jC(`${c} is not defined on the THREE namespace. Use extend to add it to the catalog.`),l=new e(...s.args)}return l?(l.isCamera&&(s!=null&&s.position||l.position.set(3,3,3),s!=null&&s.lookAt||l.lookAt(0,0,0)),l=WS(l,{...l.__tres,type:c,memoizedProps:s,eventCount:0,primitive:t===`primitive`,attach:s.attach},e),l):null}function r(n,r){var i,a,o;if(!n)return;r||=t;let s=n.__tres?n:WS(n,{},e),c=r.__tres?r:WS(r,{},e);n=JS(s),r=JS(c),n.__tres&&(i=n.__tres)?.eventCount>0&&((a=e.eventManager)==null||a.registerObject(n)),e.registerCamera(n),(o=e.eventManager)==null||o.registerPointerMissedObject(n),s.__tres.attach?HS(c,s,s.__tres.attach):sS(n)&&sS(c)&&(c.add(n),n.dispatchEvent({type:`added`})),s.__tres.parent=c,c.__tres.objects&&!c.__tres.objects.includes(s)&&c.__tres.objects.push(s)}function i(t,n){var r,a,o,s;if(!t)return;t!=null&&t.__tres&&(r=t.__tres)?.eventCount>0&&((a=e.eventManager)==null||a.deregisterObject(t)),n=tS(n)?`default`:n;let c=(o=t.__tres)?.dispose;tS(c)||(n=c===null?!1:c);let l=(s=t.__tres)?.primitive,u=n===`default`?!l:!!n;if(t.__tres&&`objects`in t.__tres&&[...t.__tres.objects].forEach(e=>i(e,n)),u&&t.children&&[...t.children].forEach(e=>i(e,n)),YS(t,e),XS(t,e),u&&!yS(t)){if(aS(n))n(t);else if(aS(t.dispose))try{t.dispose()}catch{}}`__tres`in t&&delete t.__tres}function a(t,n,a,o){var s,c;if(!t)return;let l=t,u=n;if(t.__tres&&(t.__tres.memoizedProps[n]=o),n===`attach`){let n=(s=t.__tres)?.parent||t.parent;i(t),WS(t,{attach:o},e),n&&r(t,n);return}if(n===`dispose`){t.__tres||(t=WS(t,{},e)),t.__tres.dispose=o;return}if(sS(t)&&u===`blocks-pointer-events`){o||o===``?t[u]=o:delete t[u];return}MC.includes(n)&&t.__tres&&(t.__tres.eventCount+=1);let d=TS(u),f=l?.[d];if(u===`args`){let e=t,n=a??[],r=o??[],i=(c=t.__tres)?.type||t.type;i&&n.length&&!MS(n,r)&&(l=Object.assign(e,new iC.value[i](...o)));return}if(l.type===`BufferGeometry`){if(u===`args`)return;l.setAttribute(TS(u),new fp(...o));return}if(u.includes(`-`)&&f===void 0){f=l;for(let e of u.split(`-`))d=u=TS(e),l=f,f=f?.[u]}let p=o;if(p===``&&(p=!0),aS(f)){MC.includes(n)||(nS(p)?t[d](...p):t[d](p)),d.startsWith(`on`)&&aS(p)&&(l[d]=p);return}pS(f)&&pS(p)?f.mask=p.mask:cS(f)&&lS(p)?f.set(p):dS(f)&&fS(p)&&f.constructor===p.constructor?f.copy(p):uS(f)&&Array.isArray(p)?`fromArray`in f&&typeof f.fromArray==`function`?f.fromArray(p):f.set(...p):uS(f)&&typeof p==`number`?`setScalar`in f&&typeof f.setScalar==`function`?f.setScalar(p):f.set(p):l[d]=p,GS(t)}function o(e){var t;return(t=e?.__tres)?.parent||null}function s(t){let n=WS(new Pf,{type:`Comment`},e);return n.name=t,n}function c(e){var t;let n=o(e),r=(t=n?.__tres)?.objects||[],i=r.indexOf(e);return i<0||i>=r.length-1?null:r[i+1]}return{insert:r,remove:i,createElement:n,patchProp:a,parentNode:o,createText:()=>void 0,createComment:s,setText:()=>void 0,setElementText:()=>void 0,nextSibling:c,querySelector:()=>void 0,setScopeId:()=>void 0,cloneNode:()=>void 0,insertStaticContent:()=>void 0}};function PC(){return FC().__VUE_DEVTOOLS_GLOBAL_HOOK__}function FC(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}const IC=typeof Proxy==`function`;let LC,RC;function zC(){var e;return LC!==void 0||(typeof window<`u`&&window.performance?(LC=!0,RC=window.performance):typeof globalThis<`u`&&(e=globalThis.perf_hooks)!=null&&e.performance?(LC=!0,RC=globalThis.perf_hooks.performance):LC=!1),LC}function BC(){return zC()?RC.now():Date.now()}var VC=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;let n={};if(e.settings)for(let t in e.settings){let r=e.settings[t];n[t]=r.defaultValue}let r=`__vue-devtools-plugin-settings__${e.id}`,i=Object.assign({},n);try{let e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch{}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch{}i=e},now(){return BC()}},t&&t.on(`plugin:settings:set`,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:t===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(let e of this.onQueue)this.target.on[e.method](...e.args);for(let e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}};function HC(e,t){let n=e,r=FC(),i=PC(),a=IC&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(`devtools-plugin:setup`,e,t);else{let e=a?new VC(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}}function UC(e,t){let n=`▲ ■ ●${e}`;typeof WC==`function`?WC(n,t):console.log(n)}function WC(e,t){throw Error(e+t)}const GC=e=>{let t={id:e.uuid,label:e.type,children:[],tags:[]};e.name!==``&&t.tags.push({label:e.name,textColor:5750629,backgroundColor:15793395});let n=cC(e);return n>0&&t.tags.push({label:`${lC(n)} KB`,textColor:15707189,backgroundColor:16775644,tooltip:`Memory usage`}),e.type.includes(`Light`)&&(_S(e)&&t.tags.push({label:`${e.intensity}`,textColor:9738662,backgroundColor:16316922,tooltip:`Intensity`}),t.tags.push({label:`#${new $f(e.color).getHexString()}`,textColor:9738662,backgroundColor:16316922,tooltip:`Color`})),e.type.includes(`Camera`)&&(t.tags.push({label:`${e.fov}°`,textColor:9738662,backgroundColor:16316922,tooltip:`Field of view`}),t.tags.push({label:`x: ${Math.round(e.position.x)} y: ${Math.round(e.position.y)} z: ${Math.round(e.position.z)}`,textColor:9738662,backgroundColor:16316922,tooltip:`Position`})),t};function KC(e,t,n=``){e.children.forEach(e=>{if(e.type===`HightlightMesh`||n&&!e.type.includes(n)&&!e.name.includes(n))return;let r=GC(e);t.children.push(r),KC(e,r,n)})}const qC=[],JC=`tres:inspector`,YC=Zt({sceneGraph:null});function XC(e,t){HC({id:`dev.esm.tres`,label:`TresJS 🪐`,logo:`https://raw.githubusercontent.com/Tresjs/tres/main/public/favicon.svg`,packageName:`tresjs`,homepage:`https://tresjs.org`,componentStateTypes:qC,app:e},e=>{typeof e.now!=`function`&&UC(`You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.`),e.addInspector({id:JC,label:`TresJS 🪐`,icon:`account_tree`,treeFilterPlaceholder:`Search instances`}),setInterval(()=>{e.sendInspectorTree(JC)},1e3),setInterval(()=>{e.notifyComponentUpdate()},5e3),e.on.getInspectorTree(e=>{if(e.inspectorId===JC){let n=GC(t.scene.value);KC(t.scene.value,n,e.filter),YC.sceneGraph=n,e.rootNodes=[n]}});let n=null,r=null;e.on.getInspectorState(e=>{var i;if(e.inspectorId===JC){let[a]=t.scene.value.getObjectsByProperty(`uuid`,e.nodeId);if(!a)return;if(r&&n&&n.parent&&r.remove(n),a.isMesh){let e=PS(a);a.add(e),n=e,r=a}e.state={object:Object.entries(a).map(([e,t])=>e===`children`?{key:e,value:t.filter(e=>e.type!==`HightlightMesh`)}:{key:e,value:t,editable:!0}).filter(({key:e})=>e!==`parent`)},a.isScene&&(e.state={...e.state,state:[{key:`Scene Info`,value:{objects:a.children.length,memory:cC(a),calls:t.renderer.value.info.render.calls,triangles:t.renderer.value.info.render.triangles,points:t.renderer.value.info.render.points,lines:t.renderer.value.info.render.lines}},{key:`Programs`,value:(i=t.renderer.value.info.programs)?.map(e=>({...e,programName:e.name}))||[]}]})}}),e.on.editInspectorState(e=>{e.inspectorId===JC&&NS(t.scene.value,e.nodeId,e.path,e.state.value)})})}const ZC=[`data-scene`,`data-tres`],QC=R({__name:`TresCanvas`,props:{shadows:{type:Boolean,default:void 0},clearColor:{},toneMapping:{},shadowMapType:{},useLegacyLights:{type:Boolean,default:void 0},outputColorSpace:{},toneMappingExposure:{},renderMode:{default:`always`},dpr:{},camera:{},preset:{},windowSize:{type:Boolean,default:void 0},enableProvideBridge:{type:Boolean,default:!0},context:{},alpha:{type:Boolean,default:void 0},premultipliedAlpha:{type:Boolean},antialias:{type:Boolean,default:void 0},stencil:{type:Boolean,default:void 0},preserveDrawingBuffer:{type:Boolean,default:void 0},powerPreference:{},depth:{type:Boolean,default:void 0},failIfMajorPerformanceCaveat:{type:Boolean,default:void 0},precision:{},logarithmicDepthBuffer:{type:Boolean,default:void 0},reverseDepthBuffer:{type:Boolean}},emits:[`render`,`click`,`double-click`,`context-menu`,`pointer-move`,`pointer-up`,`pointer-down`,`pointer-enter`,`pointer-leave`,`pointer-over`,`pointer-out`,`pointer-missed`,`wheel`,`ready`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=Gi(),o=F(),s=fn(new fm),c=qo();aC(Zy);let l=(e,t=!1)=>R({setup(){var n;let i=(n=qo())?.appContext;i&&(i.app=c?.appContext.app);let o={};function s(e){e&&(e.parent&&s(e.parent),e.provides&&Object.assign(o,e.provides))}return c!=null&&c.parent&&r.enableProvideBridge&&(s(c.parent),Reflect.ownKeys(o).forEach(e=>{ua(e,o[e])})),ua(`useTres`,e),ua(`extend`,aC),typeof window<`u`&&XC(i?.app,e),()=>fs(bo,null,t?[]:a.default())}}),u=(e,t=!1)=>{let n=l(e,t),{render:r}=Da(NC(e));r(fs(n),s.value)},d=(e,t=!1)=>{LS(e.scene.value),t&&(e.renderer.value.dispose(),e.renderer.value.renderLists.dispose(),e.renderer.value.forceContextLoss()),s.value.__tres={root:e}},f=fn(null);t({context:f,dispose:()=>d(f.value,!0)});let p=()=>{d(f.value),u(f.value,!0)};return fi(()=>{let e=o;f.value=xC({scene:s.value,canvas:e,windowSize:r.windowSize??!1,rendererOptions:r,emit:i});let{registerCamera:t,camera:n,cameras:a,deregisterCamera:c}=f.value;u(f.value);let l=()=>{let e=new rm(45,window.innerWidth/window.innerHeight,.1,1e3);e.position.set(3,3,3),e.lookAt(0,0,0),t(e);let n=za(()=>{a.value.length>=2&&(e.removeFromParent(),c(e),n?.())})};Ha(()=>r.camera,(e,n)=>{e&&t(e),n&&(n.removeFromParent(),c(n))},{immediate:!0}),n.value||l()}),gi(p),(e,t)=>(z(),B(`canvas`,{ref_key:`canvas`,ref:o,"data-scene":s.value.uuid,class:Te(e.$attrs.class),"data-tres":`tresjs ${I($x).version}`,style:be({display:`block`,width:`100%`,height:`100%`,position:e.windowSize?`fixed`:`relative`,top:0,left:0,pointerEvents:`auto`,touchAction:`none`,...e.$attrs.style})},null,14,ZC))}}),{logWarning:Use}=rC(),{logWarning:Wse}=rC(),$C={install(e){e.component(`TresCanvas`,QC)}};var ew=s(((exports,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(r):typeof exports==`object`?t.exports=r():n.NProgress=r()})(exports,function(){var e={};e.version=`0.2.0`;var t=e.settings={minimum:.08,easing:`ease`,positionUsing:``,speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:`[role="bar"]`,spinnerSelector:`[role="spinner"]`,parent:`body`,template:`
`};e.configure=function(e){var n,r;for(n in e)r=e[n],r!==void 0&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=r===1?null:r;var c=e.render(!s),l=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,a(function(n){t.positionUsing===``&&(t.positionUsing=e.getPositioningCSS()),o(l,i(r,u,d)),r===1?(o(c,{transition:`none`,opacity:1}),c.offsetWidth,setTimeout(function(){o(c,{transition:`all `+u+`ms linear`,opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return typeof e.status==`number`},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return!t&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(t){var r=e.status;return r?(typeof t!=`number`&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},(function(){var t=0,n=0;e.promise=function(r){return!r||r.state()===`resolved`?this:(n===0&&e.start(),t++,n++,r.always(function(){n--,n===0?(t=0,e.done()):e.set((t-n)/t)}),this)}})(),e.render=function(n){if(e.isRendered())return document.getElementById(`nprogress`);c(document.documentElement,`nprogress-busy`);var i=document.createElement(`div`);i.id=`nprogress`,i.innerHTML=t.template;var a=i.querySelector(t.barSelector),s=n?`-100`:r(e.status||0),l=document.querySelector(t.parent),u;return o(a,{transition:`all 0 linear`,transform:`translate3d(`+s+`%,0,0)`}),t.showSpinner||(u=i.querySelector(t.spinnerSelector),u&&d(u)),l!=document.body&&c(l,`nprogress-custom-parent`),l.appendChild(i),i},e.remove=function(){l(document.documentElement,`nprogress-busy`),l(document.querySelector(t.parent),`nprogress-custom-parent`);var e=document.getElementById(`nprogress`);e&&d(e)},e.isRendered=function(){return!!document.getElementById(`nprogress`)},e.getPositioningCSS=function(){var e=document.body.style,t=`WebkitTransform`in e?`Webkit`:`MozTransform`in e?`Moz`:`msTransform`in e?`ms`:`OTransform`in e?`O`:``;return t+`Perspective`in e?`translate3d`:t+`Transform`in e?`translate`:`margin`};function n(e,t,n){return en?n:e}function r(e){return(-1+e)*100}function i(e,n,i){var a;return a=t.positionUsing===`translate3d`?{transform:`translate3d(`+r(e)+`%,0,0)`}:t.positionUsing===`translate`?{transform:`translate(`+r(e)+`%,0)`}:{"margin-left":r(e)+`%`},a.transition=`all `+n+`ms `+i,a}var a=(function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),e.length==1&&t()}})(),o=(function(){var e=[`Webkit`,`O`,`Moz`,`ms`],t={};function n(e){return e.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function r(t){var n=document.body.style;if(t in n)return t;for(var r=e.length,i=t.charAt(0).toUpperCase()+t.slice(1),a;r--;)if(a=e[r]+i,a in n)return a;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n=arguments,r,i;if(n.length==2)for(r in t)i=t[r],i!==void 0&&t.hasOwnProperty(r)&&a(e,r,i);else a(e,n[1],n[2])}})();function s(e,t){var n=typeof e==`string`?e:u(e);return n.indexOf(` `+t+` `)>=0}function c(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function l(e,t){var n=u(e),r;s(e,t)&&(r=n.replace(` `+t+` `,` `),e.className=r.substring(1,r.length-1))}function u(e){return(` `+(e.className||``)+` `).replace(/\s+/gi,` `)}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})})),tw=u(ew());const nw=new Set,rw=new WeakMap,iw=new WeakMap,aw=new WeakMap,ow=new WeakMap,sw=new WeakMap,cw=new WeakMap,lw=new WeakMap,uw=new WeakMap,dw=new WeakSet;let fw,pw=0,mw=0;const hw=`__aa_tgt`,gw=`__aa_del`,_w=`__aa_new`,vw=e=>{let t=Dw(e);t&&t.forEach(e=>kw(e))},yw=e=>{e.forEach(e=>{e.target===fw&&Sw(),rw.has(e.target)&&xw(e.target)})};function bw(e){let t=ow.get(e);t?.disconnect();let n=rw.get(e),r=0;n||(n=Mw(e),rw.set(e,n));let{offsetWidth:i,offsetHeight:a}=fw,o=[n.top-5,i-(n.left+5+n.width),a-(n.top+5+n.height),n.left-5],s=o.map(e=>`${-1*Math.floor(e)}px`).join(` `),c=new IntersectionObserver(()=>{++r>1&&xw(e)},{root:fw,threshold:1,rootMargin:s});c.observe(e),ow.set(e,c)}function xw(e){clearTimeout(uw.get(e));let t=Pw(e),n=zw(t)?500:t.duration;uw.set(e,setTimeout(async()=>{let t=aw.get(e);try{await t?.finished,rw.set(e,Mw(e)),bw(e)}catch{}},n))}function Sw(){clearTimeout(uw.get(fw)),uw.set(fw,setTimeout(()=>{nw.forEach(e=>Lw(e,e=>ww(()=>xw(e))))},100))}function Cw(e){setTimeout(()=>{cw.set(e,setInterval(()=>ww(xw.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function ww(e){typeof requestIdleCallback==`function`?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let Tw;const Ew=typeof window<`u`&&`ResizeObserver`in window;Ew&&(fw=document.documentElement,new MutationObserver(vw),Tw=new ResizeObserver(yw),window.addEventListener(`scroll`,()=>{mw=window.scrollY,pw=window.scrollX}),Tw.observe(fw));function Dw(e){let t=e.reduce((e,t)=>[...e,...Array.from(t.addedNodes),...Array.from(t.removedNodes)],[]),n=t.every(e=>e.nodeName===`#comment`);return n?!1:e.reduce((e,t)=>{if(e===!1)return!1;if(t.target instanceof Element){if(Ow(t.target),!e.has(t.target)){e.add(t.target);for(let n=0;nt(e,lw.has(e)));for(let n=0;ne(r,lw.has(r)))}}function Rw(e){return Array.isArray(e)?e:[e]}function zw(e){return typeof e==`function`}function Bw(e){let t=rw.get(e),n=Mw(e);if(!Iw(e))return rw.set(e,n);let r;if(!t)return;let i=Pw(e);if(typeof i!=`function`){let a=t.left-n.left,o=t.top-n.top,[s,c,l,u]=Nw(e,t,n),d={transform:`translate(${a}px, ${o}px)`},f={transform:`translate(0, 0)`};s!==c&&(d.width=`${s}px`,f.width=`${c}px`),l!==u&&(d.height=`${l}px`,f.height=`${u}px`),r=e.animate([d,f],{duration:i.duration,easing:i.easing})}else{let[a]=Rw(i(e,`remain`,t,n));r=new Animation(a),r.play()}aw.set(e,r),rw.set(e,n),r.addEventListener(`finish`,()=>xw(e),{once:!0})}function Vw(e){_w in e&&delete e[_w];let t=Mw(e);rw.set(e,t);let n=Pw(e);if(!Iw(e))return;let r;if(typeof n!=`function`)r=e.animate([{transform:`scale(.98)`,opacity:0},{transform:`scale(0.98)`,opacity:0,offset:.5},{transform:`scale(1)`,opacity:1}],{duration:n.duration*1.5,easing:`ease-in`});else{let[i]=Rw(n(e,`add`,t));r=new Animation(i),r.play()}aw.set(e,r),r.addEventListener(`finish`,()=>xw(e),{once:!0})}function Hw(e,t){var n;e.remove(),rw.delete(e),iw.delete(e),aw.delete(e),(n=ow.get(e))==null||n.disconnect(),setTimeout(()=>{if(gw in e&&delete e[gw],Object.defineProperty(e,_w,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(let n in t)e.style[n]=``},0)}function Uw(e){var t;if(!iw.has(e)||!rw.has(e))return;let[n,r]=iw.get(e);Object.defineProperty(e,gw,{value:!0,configurable:!0});let i=window.scrollX,a=window.scrollY;if(r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):n&&n.parentNode?n.parentNode.appendChild(e):(t=Fw(e))==null||t.appendChild(e),!Iw(e))return Hw(e);let[o,s,c,l]=Gw(e),u=Pw(e),d=rw.get(e);(i!==pw||a!==mw)&&Ww(e,i,a,u);let f,p={position:`absolute`,top:`${o}px`,left:`${s}px`,width:`${c}px`,height:`${l}px`,margin:`0`,pointerEvents:`none`,transformOrigin:`center`,zIndex:`100`};if(!zw(u))Object.assign(e.style,p),f=e.animate([{transform:`scale(1)`,opacity:1},{transform:`scale(.98)`,opacity:0}],{duration:u.duration,easing:`ease-out`});else{let[t,n]=Rw(u(e,`remove`,d));n?.styleReset!==!1&&(p=n?.styleReset||p,Object.assign(e.style,p)),f=new Animation(t),f.play()}aw.set(e,f),f.addEventListener(`finish`,()=>Hw(e,p),{once:!0})}function Ww(e,t,n,r){let i=pw-t,a=mw-n,o=document.documentElement.style.scrollBehavior,s=getComputedStyle(fw).scrollBehavior;if(s===`smooth`&&(document.documentElement.style.scrollBehavior=`auto`),window.scrollTo(window.scrollX+i,window.scrollY+a),!e.parentElement)return;let c=e.parentElement,l=c.clientHeight,u=c.clientWidth,d=performance.now();function f(){requestAnimationFrame(()=>{if(!zw(r)){let e=l-c.clientHeight,t=u-c.clientWidth;d+r.duration>performance.now()?(window.scrollTo({left:window.scrollX-t,top:window.scrollY-e}),l=c.clientHeight,u=c.clientWidth,f()):document.documentElement.style.scrollBehavior=o}})}f()}function Gw(e){let t=rw.get(e),[n,,r]=Nw(e,t,Mw(e)),i=e.parentElement;for(;i&&(getComputedStyle(i).position===`static`||i instanceof HTMLBodyElement);)i=i.parentElement;i||=document.body;let a=getComputedStyle(i),o=rw.get(i)||Mw(i),s=Math.round(t.top-o.top)-Aw(a.borderTopWidth),c=Math.round(t.left-o.left)-Aw(a.borderLeftWidth);return[s,c,n,r]}function Kw(e,t={}){if(Ew&&Tw){let n=window.matchMedia(`(prefers-reduced-motion: reduce)`),r=n.matches&&!zw(t)&&!t.disrespectUserMotionPreference;if(!r){dw.add(e),getComputedStyle(e).position===`static`&&Object.assign(e.style,{position:`relative`}),Lw(e,xw,Cw,e=>Tw?.observe(e)),zw(t)?lw.set(e,t):lw.set(e,{duration:250,easing:`ease-in-out`,...t});let n=new MutationObserver(vw);n.observe(e,{childList:!0}),sw.set(e,n),nw.add(e)}}let n=Object.freeze({parent:e,enable:()=>{dw.add(e)},disable:()=>{dw.delete(e)},isEnabled:()=>dw.has(e),destroy:()=>{dw.delete(e),nw.delete(e),lw.delete(e);let t=sw.get(e);t?.disconnect(),sw.delete(e),Lw(e,e=>{Tw?.unobserve(e);let t=aw.get(e);try{t?.cancel()}catch{}aw.delete(e);let n=ow.get(e);n?.disconnect(),ow.delete(e);let r=cw.get(e);r&&clearInterval(r),cw.delete(e);let i=uw.get(e);i&&clearTimeout(i),uw.delete(e),rw.delete(e),iw.delete(e)})}});return n}const qw={mounted:(e,t)=>{let n=Kw(e,t.value||{});Object.defineProperty(e,`__aa_ctl`,{value:n,configurable:!0})},unmounted:e=>{var t;let n=e.__aa_ctl;(t=n?.destroy)==null||t.call(n);try{delete e.__aa_ctl}catch{}},getSSRProps:()=>({})},Jw=qw,Yw={install(e){e.directive(`auto-animate`,Jw)}};function Xw(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Zw(e,t,n=`.`,r){if(!Xw(t))return Zw(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];if(a==null||r&&r(i,t,a,n))continue;Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Xw(a)&&Xw(i[t])?i[t]=Zw(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a}return i}function Qw(e){return(...t)=>t.reduce((t,n)=>Zw(t,n,``,e),{})}const $w=Qw();Qw((e,t,n)=>{if(e[t]!==void 0&&typeof n==`function`)return e[t]=n(e[t]),!0}),Qw((e,t,n)=>{if(Array.isArray(e[t])&&typeof n==`function`)return e[t]=n(e[t]),!0});function eT(e){return Ve()?(He(e),!0):!1}function tT(){let e=new Set,t=t=>{e.delete(t)},n=()=>{e.clear()},r=n=>{e.add(n);let r=()=>t(n);return eT(r),{off:r}},i=(...t)=>Promise.all(Array.from(e).map(e=>e(...t)));return{on:r,off:t,trigger:i,clear:n}}const nT=new WeakMap,rT=(...e)=>{var t;let n=e[0],r=(t=qo())?.proxy;if(r==null&&!fa())throw Error(`injectLocal must be called in setup`);return r&&nT.has(r)&&n in nT.get(r)?nT.get(r)[n]:da(...e)},iT=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const aT=e=>e!=null,oT=Object.prototype.toString,sT=e=>oT.call(e)===`[object Object]`,cT=()=>{},lT=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function uT(...e){if(e.length!==1)return vn(...e);let t=e[0];return typeof t==`function`?$t(gn(()=>({get:t,set:cT}))):F(t)}function dT(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}const fT=e=>e();function pT(e,t={}){let n,r,i=cT,a=e=>{clearTimeout(e),i(),i=cT},o,s=s=>{let c=mn(e),l=mn(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})};return s}function mT(...e){let t=0,n,r=!0,i=cT,a,o,s,c,l;!dn(e[0])&&typeof e[0]==`object`?{delay:o,trailing:s=!0,leading:c=!0,rejectOnCancel:l=!1}=e[0]:[o,s=!0,c=!0,l=!1]=e;let u=()=>{n&&(clearTimeout(n),n=void 0,i(),i=cT)},d=e=>{let d=mn(o),f=Date.now()-t,p=()=>a=e();return u(),d<=0?(t=Date.now(),p()):(f>d&&(c||!r)?(t=Date.now(),p()):s&&(a=new Promise((e,a)=>{i=l?a:e,n=setTimeout(()=>{t=Date.now(),r=!0,e(p()),u()},Math.max(0,d-f))})),!c&&!n&&(n=setTimeout(()=>r=!0,d)),r=!1,a)};return d}function hT(e=fT,t={}){let{initialState:n=`active`}=t,r=uT(n===`active`);function i(){r.value=!1}function a(){r.value=!0}let o=(...t)=>{r.value&&e(...t)};return{isActive:$t(r),pause:i,resume:a,eventFilter:o}}function gT(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function _T(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function vT(e,t){var n;if(typeof e==`number`)return e+t;let r=(n=e.match(/^-?\d+\.?\d*/))?.[0]||``,i=e.slice(r.length),a=Number.parseFloat(r)+t;return Number.isNaN(a)?e:a+i}function yT(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function bT(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}function xT(e){return Array.isArray(e)?e:[e]}function ST(e){let t=Object.create(null);return n=>{let r=t[n];return r||(t[n]=e(n))}}const CT=/\B([A-Z])/g;ST(e=>e.replace(CT,`-$1`).toLowerCase());const wT=/-(\w)/g;ST(e=>e.replace(wT,(e,t)=>t?t.toUpperCase():``));function TT(e){return e||qo()}function ET(e,t=200,n={}){return dT(pT(t,n),e)}function DT(e,t=200,n={}){let r=F(mn(e)),i=ET(()=>{r.value=e.value},t,n);return Ha(e,()=>i()),en(r)}function OT(e,t=200,n=!1,r=!0,i=!1){return dT(mT(t,n,r,i),e)}function kT(e,t=200,n=!0,r=!0){if(t<=0)return e;let i=F(mn(e)),a=OT(()=>{i.value=e.value},t,n,r);return Ha(e,()=>a()),i}function AT(e,t,n={}){let{eventFilter:r=fT,...i}=n;return Ha(e,dT(r,t),i)}function jT(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=hT(r,{initialState:i}),u=AT(e,t,{...a,eventFilter:o});return{stop:u,pause:s,resume:c,isActive:l}}function MT(e,t={}){if(!dn(e))return _n(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=gn(()=>({get(){return e.value[r]},set(n){var i;let a=(i=mn(t.replaceRef))??!0;if(a)if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[r]=n}}));return n}function NT(e,t=!0,n){let r=TT(n);r?fi(e,n):t?e():Gn(e)}function PT(e,t){let n=TT(t);n&&gi(e,t)}function FT(e,t=!1){function n(n,{flush:r=`sync`,deep:i=!1,timeout:a,throwOnTimeout:o}={}){let s=null,c=new Promise(a=>{s=Ha(e,e=>{n(e)!==t&&(s?s():Gn(()=>s?.()),a(e))},{flush:r,deep:i,immediate:!0})}),l=[c];return a!=null&&l.push(gT(a,o).then(()=>mn(e)).finally(()=>s?.())),Promise.race(l)}function r(r,i){if(!dn(r))return n(e=>e===r,i);let{flush:a=`sync`,deep:o=!1,timeout:s,throwOnTimeout:c}=i??{},l=null,u=new Promise(n=>{l=Ha([e,r],([e,r])=>{t!==(e===r)&&(l?l():Gn(()=>l?.()),n(e))},{flush:a,deep:o,immediate:!0})}),d=[u];return s!=null&&d.push(gT(s,c).then(()=>mn(e)).finally(()=>(l?.(),mn(e)))),Promise.race(d)}function i(e){return n(e=>!!e,e)}function a(e){return r(null,e)}function o(e){return r(void 0,e)}function s(e){return n(Number.isNaN,e)}function c(e,t){return n(t=>{let n=Array.from(t);return n.includes(e)||n.includes(mn(e))},t)}function l(e){return u(1,e)}function u(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}if(Array.isArray(mn(e))){let r={toMatch:n,toContains:c,changed:l,changedTimes:u,get not(){return FT(e,!t)}};return r}else{let c={toMatch:n,toBe:r,toBeTruthy:i,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:l,changedTimes:u,get not(){return FT(e,!t)}};return c}}function IT(e){return FT(e)}function LT(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=fn(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},mn(t))}return r&&(a.value=!0,iT&&l()),eT(c),{isPending:en(a),start:l,stop:c}}function RT(e,t,n){return Ha(e,t,{...n,immediate:!0})}function zT(e,t,n){var r;let i;i=dn(n)?{evaluating:n}:n||{};let{lazy:a=!1,flush:o=`pre`,evaluating:s=void 0,shallow:c=!0,onError:l=(r=globalThis.reportError)??cT}=i,u=fn(!a),d=c?fn(t):F(t),f=0;return za(async t=>{if(!u.value)return;f++;let n=f,r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{let i=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===f&&(d.value=i)}catch(e){l(e)}finally{s&&n===f&&(s.value=!1),r=!0}},{flush:o}),a?U(()=>(u.value=!0,d.value)):d}const BT=iT?window:void 0,VT=iT?window.document:void 0,HT=iT?window.navigator:void 0;iT&&window.location;function UT(e){var t;let n=mn(e);return(t=n?.$el)??n}function WT(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=U(()=>{let t=xT(mn(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=RT(()=>{var t,n;return[(n=(t=i.value)?.map(e=>UT(e)))??[BT].filter(e=>e!=null),xT(mn(i.value?e[1]:e[0])),xT(I(i.value?e[2]:e[1])),mn(i.value?e[3]:e[2])]},([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=sT(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`}),o=()=>{a(),n()};return eT(n),o}function GT(){let e=fn(!1),t=qo();return t&&fi(()=>{e.value=!0},t),e}function KT(e){let t=GT();return U(()=>(t.value,!!e()))}function qT(e,t,n={}){let{window:r=BT,...i}=n,a,o=KT(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=U(()=>{let t=mn(e),n=xT(t).map(UT).filter(aT);return new Set(n)}),l=Ha(c,e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>a?.takeRecords(),d=()=>{l(),s()};return eT(d),{isSupported:o,stop:d,takeRecords:u}}const JT=Symbol(`vueuse-ssr-width`);function YT(){let e=fa()?rT(JT,null):null;return typeof e==`number`?e:void 0}function XT(e,t={}){let{window:n=BT,ssrWidth:r=YT()}=t,i=KT(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=fn(typeof r==`number`),o=fn(),s=fn(!1),c=e=>{s.value=e.matches};return za(()=>{if(a.value){a.value=!i.value;let t=mn(e).split(`,`);s.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=yT(n[1])),i&&a&&(a=r<=yT(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(mn(e)),s.value=o.value.matches)}),WT(o,`change`,c,{passive:!0}),U(()=>s.value)}const ZT={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function QT(e,t={}){function n(t,n){let r=mn(e[mn(t)]);return n!=null&&(r=vT(r,n)),typeof r==`number`&&(r=`${r}px`),r}let{window:r=BT,strategy:i=`min-width`,ssrWidth:a=YT()}=t,o=typeof a==`number`,s=o?fn(!1):{value:!0};o&&NT(()=>s.value=!!r);function c(e,t){return!s.value&&o?e===`min`?a>=yT(t):a<=yT(t):r?r.matchMedia(`(${e}-width: ${t})`).matches:!1}let l=e=>XT(()=>`(min-width: ${n(e)})`,t),u=e=>XT(()=>`(max-width: ${n(e)})`,t),d=Object.keys(e).reduce((e,t)=>(Object.defineProperty(e,t,{get:()=>i===`min-width`?l(t):u(t),enumerable:!0,configurable:!0}),e),{});function f(){let t=Object.keys(e).map(e=>[e,d[e],yT(n(e))]).sort((e,t)=>e[2]-t[2]);return U(()=>t.filter(([,e])=>e.value).map(([e])=>e))}return Object.assign(d,{greaterOrEqual:l,smallerOrEqual:u,greater(e){return XT(()=>`(min-width: ${n(e,.1)})`,t)},smaller(e){return XT(()=>`(max-width: ${n(e,-.1)})`,t)},between(e,r){return XT(()=>`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t)},isGreater(e){return c(`min`,n(e,.1))},isGreaterOrEqual(e){return c(`min`,n(e))},isSmaller(e){return c(`max`,n(e,-.1))},isSmallerOrEqual(e){return c(`max`,n(e))},isInBetween(e,t){return c(`min`,n(e))&&c(`max`,n(t,-.1))},current:f,active(){let e=f();return U(()=>e.value.length===0?``:e.value.at(i===`min-width`?-1:0))}})}function $T(e){let{name:t,window:n=BT}=e,r=KT(()=>n&&`BroadcastChannel`in n),i=fn(!1),a=F(),o=F(),s=fn(null),c=e=>{a.value&&a.value.postMessage(e)},l=()=>{a.value&&a.value.close(),i.value=!0};return r.value&&NT(()=>{s.value=null,a.value=new BroadcastChannel(t);let e={passive:!0};WT(a,`message`,e=>{o.value=e.data},e),WT(a,`messageerror`,e=>{s.value=e},e),WT(a,`close`,()=>{i.value=!0},e)}),eT(()=>{l()}),{isSupported:r,channel:a,data:o,post:c,close:l,error:s,isClosed:i}}function eE(e,t={}){let{controls:n=!1,navigator:r=HT}=t,i=KT(()=>r&&`permissions`in r),a=fn(),o=typeof e==`string`?{name:e}:e,s=fn(),c=()=>{var e,t;s.value=(t=(e=a.value)?.state)??`prompt`};WT(a,`change`,c,{passive:!0});let l=_T(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{c()}if(n)return sn(a.value)}});return l(),n?{state:s,isSupported:i,query:l}:s}function Gse(e={}){let{navigator:t=HT,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,o=KT(()=>t&&`clipboard`in t),s=eE(`clipboard-read`),c=eE(`clipboard-write`),l=U(()=>o.value||a),u=fn(``),d=fn(!1),f=LT(()=>d.value=!1,i,{immediate:!1});async function p(){let e=!(o.value&&_(s.value));if(!e)try{u.value=await t.clipboard.readText()}catch{e=!0}e&&(u.value=g())}l.value&&n&&WT([`copy`,`cut`],p,{passive:!0});async function m(e=mn(r)){if(l.value&&e!=null){let n=!(o.value&&_(c.value));if(!n)try{await t.clipboard.writeText(e)}catch{n=!0}n&&h(e),u.value=e,d.value=!0,f.start()}}function h(e){let t=document.createElement(`textarea`);t.value=e??``,t.style.position=`absolute`,t.style.opacity=`0`,document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function g(){var e,t,n;return(n=(t=(e=document==null?void 0:document.getSelection)?.call(document))?.toString())??``}function _(e){return e===`granted`||e===`prompt`}return{isSupported:l,text:u,copied:d,copy:m}}const tE=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},nE=`__vueuse_ssr_handlers__`,Kse=qse();function qse(){return nE in tE||(tE[nE]=tE[nE]||{}),tE[nE]}function rE(e,t){return Kse[e]||t}function Jse(e){return XT(`(prefers-color-scheme: dark)`,e)}function Yse(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}const Xse={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},iE=`vueuse-storage`;function aE(e,t,n,r={}){var i;let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:l=!1,shallow:u,window:d=BT,eventFilter:f,onError:p=e=>{console.error(e)},initOnMounted:m}=r,h=(u?fn:F)(typeof t==`function`?t():t),g=U(()=>mn(e));if(!n)try{n=rE(`getDefaultStorage`,()=>{var e;return(e=BT)?.localStorage})()}catch(e){p(e)}if(!n)return h;let _=mn(t),v=Yse(_),y=(i=r.serializer)??Xse[v],{pause:b,resume:x}=jT(h,e=>E(e),{flush:a,deep:o,eventFilter:f});Ha(g,()=>O(),{flush:a});let S=!1,C=e=>{m&&!S||O(e)},w=e=>{m&&!S||k(e)};d&&s&&(n instanceof Storage?WT(d,`storage`,C,{passive:!0}):WT(d,iE,w)),m?NT(()=>{S=!0,O()}):O();function T(e,t){if(d){let r={key:g.value,oldValue:e,newValue:t,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(iE,{detail:r}))}}function E(e){try{let t=n.getItem(g.value);if(e==null)T(t,null),n.removeItem(g.value);else{let r=y.write(e);t!==r&&(n.setItem(g.value,r),T(t,r))}}catch(e){p(e)}}function D(e){let t=e?e.newValue:n.getItem(g.value);if(t==null)return c&&_!=null&&n.setItem(g.value,y.write(_)),_;if(!e&&l){let e=y.read(t);return typeof l==`function`?l(e,_):v===`object`&&!Array.isArray(e)?{..._,...e}:e}else if(typeof t!=`string`)return t;else return y.read(t)}function O(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){h.value=_;return}if(!(e&&e.key!==g.value)){b();try{let t=y.write(h.value);(e===void 0||e?.newValue!==t)&&(h.value=D(e))}catch(e){p(e)}finally{e?Gn(x):x()}}}}function k(e){O(e.detail)}return h}function Zse(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=BT,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=Jse({window:i}),p=U(()=>f.value?`dark`:`light`),m=c||(o==null?uT(r):aE(o,r,a,{window:i,listenToStorageChanges:s})),h=U(()=>m.value===`auto`?p.value:m.value),g=rE(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):UT(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function _(e){var r;g(t,n,(r=d[e])??e)}function v(t){e.onChanged?e.onChanged(t,_):_(t)}Ha(h,v,{flush:`post`,immediate:!0}),NT(()=>v(h.value));let y=U({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(y,{store:m,system:p,state:h})}function oE(e,t,n={}){let{window:r=BT,initialValue:i,observe:a=!1}=n,o=fn(i),s=U(()=>{var e;return UT(t)||(e=r?.document)?.documentElement});function c(){var t;let n=mn(e),a=mn(s);if(a&&r&&n){let e=(t=r.getComputedStyle(a).getPropertyValue(n))?.trim();o.value=e||o.value||i}}return a&&qT(s,c,{attributeFilter:[`style`,`class`],window:r}),Ha([s,()=>mn(e)],(e,t)=>{t[0]&&t[1]&&t[0].style.removeProperty(t[1]),c()},{immediate:!0}),Ha([o,s],([t,n])=>{let r=mn(e);n?.style&&r&&(t==null?n.style.removeProperty(r):n.style.setProperty(r,t))},{immediate:!0}),o}function sE(e={}){let{valueDark:t=`dark`,valueLight:n=``}=e,r=Zse({...e,onChanged:(t,n)=>{var r;e.onChanged?(r=e.onChanged)==null||r.call(e,t===`dark`,n,t):n(t)},modes:{dark:t,light:n}}),i=U(()=>r.system.value),a=U({get(){return r.value===`dark`},set(e){let t=e?`dark`:`light`;i.value===t?r.value=`auto`:r.value=t}});return a}function cE(e={}){let{navigator:t=HT,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:i}=e,a=F([]),o=U(()=>a.value.filter(e=>e.kind===`videoinput`)),s=U(()=>a.value.filter(e=>e.kind===`audioinput`)),c=U(()=>a.value.filter(e=>e.kind===`audiooutput`)),l=KT(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),u=fn(!1),d;async function f(){l.value&&(a.value=await t.mediaDevices.enumerateDevices(),i?.(a.value),d&&=(d.getTracks().forEach(e=>e.stop()),null))}async function p(){let e=r.video?`camera`:`microphone`;if(!l.value)return!1;if(u.value)return!0;let{state:n,query:i}=eE(e,{controls:!0});if(await i(),n.value!==`granted`){let e=!0;try{let e=await t.mediaDevices.enumerateDevices(),n=e.some(e=>e.kind===`videoinput`),i=e.some(e=>e.kind===`audioinput`||e.kind===`audiooutput`);r.video=n?r.video:!1,r.audio=i?r.audio:!1,d=await t.mediaDevices.getUserMedia(r)}catch{d=null,e=!1}f(),u.value=e}else u.value=!0;return u.value}return l.value&&(n&&p(),WT(t.mediaDevices,`devicechange`,f,{passive:!0}),f()),{devices:a,ensurePermissions:p,permissionGranted:u,videoInputs:o,audioInputs:s,audioOutputs:c,isSupported:l}}function lE(e,t,n={}){let{window:r=BT,...i}=n,a,o=KT(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=U(()=>{let t=mn(e);return Array.isArray(t)?t.map(e=>UT(e)):[UT(t)]}),l=Ha(c,e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{s(),l()};return eT(u),{isSupported:o,stop:u}}function uE(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=fn(0),c=fn(0),l=fn(0),u=fn(0),d=fn(0),f=fn(0),p=fn(0),m=fn(0);function h(){let t=UT(e);if(!t){n&&(s.value=0,c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,l.value=r.left,u.value=r.right,d.value=r.top,f.value=r.width,p.value=r.x,m.value=r.y}function g(){o===`sync`?h():o===`next-frame`&&requestAnimationFrame(()=>h())}return lE(e,g),Ha(()=>UT(e),e=>!e&&g()),qT(e,g,{attributeFilter:[`style`,`class`]}),i&&WT(`scroll`,g,{capture:!0,passive:!0}),r&&WT(`resize`,g,{passive:!0}),NT(()=>{a&&g()}),{height:s,bottom:c,left:l,right:u,top:d,width:f,x:p,y:m,update:g}}function Qse(e,t,n={}){let{root:r,rootMargin:i=`0px`,threshold:a=0,window:o=BT,immediate:s=!0}=n,c=KT(()=>o&&`IntersectionObserver`in o),l=U(()=>{let t=mn(e);return xT(t).map(UT).filter(aT)}),u=cT,d=fn(s),f=c.value?Ha(()=>[l.value,UT(r),d.value],([e,n])=>{if(u(),!d.value||!e.length)return;let r=new IntersectionObserver(t,{root:UT(n),rootMargin:i,threshold:a});e.forEach(e=>e&&r.observe(e)),u=()=>{r.disconnect(),u=cT}},{immediate:s,flush:`post`}):cT,p=()=>{u(),f(),d.value=!1};return eT(p),{isSupported:c,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}const $se={multiple:!0,accept:`*`,reset:!1,directory:!1};function ece(e){if(!e)return null;if(e instanceof FileList)return e;let t=new DataTransfer;for(let n of e)t.items.add(n);return t.files}function tce(e={}){let{document:t=VT}=e,n=F(ece(e.initialFiles)),{on:r,trigger:i}=tT(),{on:a,trigger:o}=tT(),s=U(()=>{var r;let a=(r=UT(e.input))??(t?t.createElement(`input`):void 0);return a&&(a.type=`file`,a.onchange=e=>{let t=e.target;n.value=t.files,i(n.value)},a.oncancel=()=>{o()}),a}),c=()=>{n.value=null,s.value&&s.value.value&&(s.value.value=``,i(null))},l=e=>{let t=s.value;t&&(t.multiple=mn(e.multiple),t.accept=mn(e.accept),t.webkitdirectory=mn(e.directory),lT(e,`capture`)&&(t.capture=mn(e.capture)))},u=t=>{let n=s.value;if(!n)return;let r={...$se,...e,...t};l(r),mn(r.reset)&&c(),n.click()};return za(()=>{l(e)}),{files:$t(n),open:u,reset:c,onCancel:a,onChange:r}}function dE(e,t,n={}){let{window:r=BT}=n;return aE(e,t,r?.localStorage,n)}const nce={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function rce(e={}){let{reactive:t=!1,target:n=BT,aliasMap:r=nce,passive:i=!0,onEventFired:a=cT}=e,o=Zt(new Set),s={toJSON(){return{}},current:o},c=t?Zt(s):s,l=new Set,u=new Set,d=new Set;function f(e,n){e in c&&(t?c[e]=n:c[e].value=n)}function p(){o.clear();for(let e of d)f(e,!1)}function m(e,t){var n,r;let i=(n=e.key)?.toLowerCase(),a=(r=e.code)?.toLowerCase(),s=[a,i].filter(Boolean);i&&(t?o.add(i):o.delete(i));for(let e of s)d.add(e),f(e,t);if(i===`shift`&&!t){let e=Array.from(u),t=e.indexOf(`shift`);e.forEach((e,n)=>{n>=t&&(o.delete(e),f(e,!1))}),u.clear()}else typeof e.getModifierState==`function`&&e.getModifierState(`Shift`)&&t&&[...o,...s].forEach(e=>u.add(e));i===`meta`&&!t?(l.forEach(e=>{o.delete(e),f(e,!1)}),l.clear()):typeof e.getModifierState==`function`&&e.getModifierState(`Meta`)&&t&&[...o,...s].forEach(e=>l.add(e))}WT(n,`keydown`,e=>(m(e,!0),a(e)),{passive:i}),WT(n,`keyup`,e=>(m(e,!1),a(e)),{passive:i}),WT(`blur`,p,{passive:i}),WT(`focus`,p,{passive:i});let h=new Proxy(c,{get(e,n,i){if(typeof n!=`string`)return Reflect.get(e,n,i);if(n=n.toLowerCase(),n in r&&(n=r[n]),!(n in c))if(/[+_-]/.test(n)){let e=n.split(/[+_-]/g).map(e=>e.trim());c[n]=U(()=>e.map(e=>mn(h[e])).every(Boolean))}else c[n]=fn(!1);let a=Reflect.get(e,n,i);return t?mn(a):a}});return h}const ice={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function ace(e={}){let{type:t=`page`,touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=BT,target:o=a,scroll:s=!0,eventFilter:c}=e,l=null,u=0,d=0,f=fn(i.x),p=fn(i.y),m=fn(null),h=typeof t==`function`?t:ice[t],g=e=>{let t=h(e);l=e,t&&([f.value,p.value]=t,m.value=`mouse`),a&&(u=a.scrollX,d=a.scrollY)},_=e=>{if(e.touches.length>0){let t=h(e.touches[0]);t&&([f.value,p.value]=t,m.value=`touch`)}},v=()=>{if(!l||!a)return;let e=h(l);l instanceof MouseEvent&&e&&(f.value=e[0]+a.scrollX-u,p.value=e[1]+a.scrollY-d)},y=()=>{f.value=i.x,p.value=i.y},b=c?e=>c(()=>g(e),{}):e=>g(e),x=c?e=>c(()=>_(e),{}):e=>_(e),S=c?()=>c(()=>v(),{}):()=>v();if(o){let e={passive:!0};WT(o,[`mousemove`,`dragover`],b,e),n&&t!==`movement`&&(WT(o,[`touchstart`,`touchmove`],x,e),r&&WT(o,`touchend`,y,e)),s&&t===`page`&&WT(a,`scroll`,S,e)}return{x:f,y:p,sourceType:m}}function oce(e){let t=fn(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return Ha(()=>mn(e),e=>{n(),e&&(t.value=URL.createObjectURL(e))},{immediate:!0}),eT(n),$t(t)}const fE={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},sce=Object.keys(fE);function cce(e={}){let{target:t=BT}=e,n=fn(!1),r=fn(e.initialValue||{});Object.assign(r.value,fE,r.value);let i=t=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(t.pointerType))&&(r.value=bT(t,sce,!1))};if(t){let e={passive:!0};WT(t,[`pointerdown`,`pointermove`,`pointerup`],i,e),WT(t,`pointerleave`,()=>n.value=!1,e)}return{...MT(r),isInside:n}}const pE=`--vueuse-safe-area-top`,mE=`--vueuse-safe-area-right`,hE=`--vueuse-safe-area-bottom`,gE=`--vueuse-safe-area-left`;function _E(){let e=fn(``),t=fn(``),n=fn(``),r=fn(``);if(iT){let e=oE(pE),t=oE(mE),n=oE(hE),r=oE(gE);e.value=`env(safe-area-inset-top, 0px)`,t.value=`env(safe-area-inset-right, 0px)`,n.value=`env(safe-area-inset-bottom, 0px)`,r.value=`env(safe-area-inset-left, 0px)`,NT(i),WT(`resize`,ET(i),{passive:!0})}function i(){e.value=vE(pE),t.value=vE(mE),n.value=vE(hE),r.value=vE(gE)}return{top:e,right:t,bottom:n,left:r,update:i}}function vE(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function yE(e={}){var t,n;let r=fn((t=e.enabled)??!1),i=fn((n=e.autoSwitch)??!0),a=F(e.constraints),{navigator:o=HT}=e,s=KT(()=>{var e;return(e=o?.mediaDevices)?.getUserMedia}),c=fn();function l(e){switch(e){case`video`:if(a.value)return a.value.video||!1;break;case`audio`:if(a.value)return a.value.audio||!1;break}}async function u(){if(!(!s.value||c.value))return c.value=await o.mediaDevices.getUserMedia({video:l(`video`),audio:l(`audio`)}),c.value}function d(){var e;(e=c.value)==null||e.getTracks().forEach(e=>e.stop()),c.value=void 0}function f(){d(),r.value=!1}async function p(){return await u(),c.value&&(r.value=!0),c.value}async function m(){return d(),await p()}return Ha(r,e=>{e?u():d()},{immediate:!0}),Ha(a,()=>{i.value&&c.value&&m()},{immediate:!0}),eT(()=>{f()}),{isSupported:s,stream:c,start:p,stop:f,restart:m,constraints:a,enabled:r,autoSwitch:i}}function lce(e,t,n){let{window:r=BT}=n??{},i=F(null),a=fn(),o=(...e)=>{a.value&&a.value.postMessage(...e)},s=function(){a.value&&a.value.terminate()};return r&&(typeof e==`string`?a.value=new Worker(e,t):typeof e==`function`?a.value=e():a.value=e,a.value.onmessage=e=>{i.value=e.data},eT(()=>{a.value&&a.value.terminate()})),{data:i,post:o,terminate:s,worker:a}}function uce(e={}){let{window:t=BT,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=fn(n),c=fn(r),l=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};l(),NT(l);let u={passive:!0};if(WT(`resize`,l,u),t&&o===`visual`&&t.visualViewport&&WT(t.visualViewport,`resize`,l,u),i){let e=XT(`(orientation: portrait)`);Ha(e,()=>l())}return{width:s,height:c}}const bE=1/60*1e3,dce=typeof performance<`u`?()=>performance.now():()=>Date.now(),xE=typeof window<`u`?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(dce()),bE);function fce(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let c=s&&i,l=c?t:n;return a&&o.add(e),l.indexOf(e)===-1&&(l.push(e),c&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);t!==-1&&n.splice(t,1),o.delete(e)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n(e[t]=fce(()=>CE=!0),e),{}),pce=EE.reduce((e,t)=>{let n=DE[t];return e[t]=(e,t=!1,r=!1)=>(CE||gce(),n.schedule(e,t,r)),e},{}),mce=EE.reduce((e,t)=>(e[t]=DE[t].cancel,e),{});EE.reduce((e,t)=>(e[t]=()=>DE[t].process(TE),e),{});const hce=e=>DE[e].process(TE),OE=e=>{CE=!1,TE.delta=SE?bE:Math.max(Math.min(e-TE.timestamp,40),1),TE.timestamp=e,wE=!0,EE.forEach(hce),wE=!1,CE&&(SE=!1,xE(OE))},gce=()=>{CE=!0,SE=!0,wE||xE(OE)},kE=()=>TE;var AE=pce;function jE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iMath.min(Math.max(n,e),t),NE=.001;function _ce({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=ME(.05,1,o),e=ME(.01,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=PE(t,o),c=Math.exp(-i);return NE-a/s*c},a=t=>{let r=t*o,a=r*e,s=a*n+n,c=o**2*t**2*e,l=Math.exp(-a),u=PE(t**2,o),d=-i(t)+NE>0?-1:1;return d*((s-c)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-NE+r*i},a=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,c=vce(i,a,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function vce(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}function PE(e,t){return e*Math.sqrt(1-t*t)}const yce=[`duration`,`bounce`],bce=[`stiffness`,`damping`,`mass`];function FE(e,t){return t.some(t=>e[t]!==void 0)}function xce(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!FE(e,bce)&&FE(e,yce)){let n=_ce(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function IE(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=jE(e,[`from`,`to`,`restSpeed`,`restDelta`]);let o={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=xce(a),p=LE,m=LE;function h(){let e=u?-(u/1e3):0,r=n-t,a=c/(2*Math.sqrt(s*l)),o=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=PE(o,a);p=i=>{let s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},m=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(a===1)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);p=i=>{let s=Math.exp(-a*o*i),c=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{let t=p(e);if(f)o.done=e>=d;else{let a=m(e)*1e3,s=Math.abs(a)<=r,c=Math.abs(n-t)<=i;o.done=s&&c}return o.value=o.done?n:t,o},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}IE.needsInterpolation=(e,t)=>typeof e==`string`||typeof t==`string`;const LE=e=>0,RE=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},zE=(e,t,n)=>-n*e+n*t+e,BE=(e,t)=>n=>Math.max(Math.min(n,t),e),VE=e=>e%1?Number(e.toFixed(5)):e,HE=/(-)?([\d]*\.?[\d])+/g,UE=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Sce=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function WE(e){return typeof e==`string`}const GE={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},KE=Object.assign(Object.assign({},GE),{transform:BE(0,1)}),qE=Object.assign(Object.assign({},GE),{default:1}),JE=e=>({test:t=>WE(t)&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),YE=JE(`deg`),XE=JE(`%`),ZE=JE(`px`);JE(`vh`),JE(`vw`);const QE=Object.assign(Object.assign({},XE),{parse:e=>XE.parse(e)/100,transform:e=>XE.transform(e*100)}),$E=(e,t)=>n=>!!(WE(n)&&Sce.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),eD=(e,t,n)=>r=>{if(!WE(r))return r;let[i,a,o,s]=r.match(HE);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},tD={test:$E(`hsl`,`hue`),parse:eD(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+XE.transform(VE(t))+`, `+XE.transform(VE(n))+`, `+VE(KE.transform(r))+`)`},Cce=BE(0,255),nD=Object.assign(Object.assign({},GE),{transform:e=>Math.round(Cce(e))}),rD={test:$E(`rgb`,`red`),parse:eD(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+nD.transform(e)+`, `+nD.transform(t)+`, `+nD.transform(n)+`, `+VE(KE.transform(r))+`)`};function wce(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const iD={test:$E(`#`),parse:wce,transform:rD.transform},aD={test:e=>rD.test(e)||iD.test(e)||tD.test(e),parse:e=>rD.test(e)?rD.parse(e):tD.test(e)?tD.parse(e):iD.parse(e),transform:e=>WE(e)?e:e.hasOwnProperty(`red`)?rD.transform(e):tD.transform(e)},oD="${c}",sD="${n}";function Tce(e){var t,n,r,i;return isNaN(e)&&WE(e)&&((n=(t=e.match(HE))?.length)??0)+((i=(r=e.match(UE))?.length)??0)>0}function cD(e){typeof e==`number`&&(e=`${e}`);let t=[],n=0,r=e.match(UE);r&&(n=r.length,e=e.replace(UE,oD),t.push(...r.map(aD.parse)));let i=e.match(HE);return i&&(e=e.replace(HE,sD),t.push(...i.map(GE.parse))),{values:t,numColors:n,tokenised:e}}function lD(e){return cD(e).values}function uD(e){let{values:t,numColors:n,tokenised:r}=cD(e),i=t.length;return e=>{let t=r;for(let r=0;rtypeof e==`number`?0:e;function Dce(e){let t=lD(e),n=uD(e);return n(t.map(Ece))}const dD={test:Tce,parse:lD,createTransformer:uD,getAnimatableNone:Dce},Oce=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function kce(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(HE)||[];if(!r)return e;let i=n.replace(r,``),a=Oce.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}const Ace=/([a-z-]*)\(.*?\)/g,fD=Object.assign(Object.assign({},dD),{getAnimatableNone:e=>{let t=e.match(Ace);return t?t.map(kce).join(` `):e}});function pD(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mD({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=pD(s,r,e+1/3),a=pD(s,r,e),o=pD(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}const jce=(e,t,n)=>{let r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Mce=[iD,rD,tD],hD=e=>Mce.find(t=>t.test(e)),gD=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,_D=(e,t)=>{let n=hD(e),r=hD(t);gD(e),gD(t);let i=n.parse(e),a=r.parse(t);n===tD&&(i=mD(i),n=rD),r===tD&&(a=mD(a),r=rD);let o=Object.assign({},i);return e=>{for(let t in o)t!==`alpha`&&(o[t]=jce(i[t],a[t],e));return o.alpha=zE(i.alpha,a.alpha,e),n.transform(o)}},Nce=e=>typeof e==`number`,Pce=(e,t)=>n=>t(e(n)),vD=(...e)=>e.reduce(Pce);function yD(e,t){return Nce(e)?n=>zE(e,t,n):aD.test(e)?_D(e,t):SD(e,t)}const bD=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>yD(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yD(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function xD(e){let t=dD.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=dD.createTransformer(t),r=xD(e),i=xD(t),a=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return a?vD(bD(r.parsed,i.parsed),n):(`${e}${t}`,n=>`${n>0?t:e}`)},Ice=(e,t)=>n=>zE(e,t,n);function Lce(e){if(typeof e==`number`)return Ice;if(typeof e==`string`)return aD.test(e)?_D:SD;if(Array.isArray(e))return bD;if(typeof e==`object`)return Fce}function Rce(e,t,n){let r=[],i=n||Lce(e[0]),a=e.length-1;for(let n=0;nn(RE(e,t,r))}function Bce(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti||t===r);t++);a=t-1}let s=RE(e[a],e[a+1],i);return t[a](s)}}function CD(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;t.length,!r||!Array.isArray(r)||(r.length,a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=Rce(t,r,i),s=a===2?zce(e,o):Bce(e,o);return n?t=>s(ME(e[0],e[a-1],t)):s}const wD=e=>t=>1-e(1-t),TD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vce=e=>t=>t**+e,ED=e=>t=>t*t*((e+1)*t-e),Hce=e=>{let t=ED(e);return e=>(e*=2)<1?.5*t(e):.5*(2-2**(-10*(e-1)))},DD=1.525,OD=e=>e,kD=Vce(2),Uce=wD(kD),AD=TD(kD),jD=e=>1-Math.sin(Math.acos(e)),MD=wD(jD),Wce=TD(MD),ND=ED(DD),Gce=wD(ND),Kce=TD(ND),qce=Hce(DD),PD=e=>{if(e===1||e===0)return e;let t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Jce=wD(PD),Yce=e=>e<.5?.5*(1-PD(1-e*2)):.5*PD(e*2-1)+.5;function Xce(e,t){return e.map(()=>t||AD).splice(0,e.length-1)}function Zce(e){let t=e.length;return e.map((e,n)=>n===0?0:n/(t-1))}function Qce(e,t){return e.map(e=>e*t)}function FD({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=Qce(r&&r.length===o.length?r:Zce(o),i);function c(){return CD(s,o,{ease:Array.isArray(n)?n:Xce(o,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),l=c()}}}function $ce({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,c=t+s,l=a===void 0?c:a(c);return l!==c&&(s=l-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?l:l+t,o},flipTarget:()=>{}}}const ID={keyframes:FD,spring:IE,decay:$ce};function ele(e){if(Array.isArray(e.to))return FD;if(ID[e.type])return ID[e.type];let t=new Set(Object.keys(e));return t.has(`ease`)||t.has(`duration`)&&!t.has(`dampingRatio`)?FD:t.has(`dampingRatio`)||t.has(`stiffness`)||t.has(`mass`)||t.has(`damping`)||t.has(`restSpeed`)||t.has(`restDelta`)?IE:FD}function LD(e,t,n=0){return e-t-n}function tle(e,t,n=0,r=!0){return r?LD(t+-e,t,n):t-(e-t)+n}function nle(e,t,n,r){return r?e>=t+n:e<=-n}const rle=e=>{let t=({delta:t})=>e(t);return{start:()=>AE.update(t,!0),stop:()=>mce.update(t)}};function RD(e){var t,n,{from:r,autoplay:i=!0,driver:a=rle,elapsed:o=0,repeat:s=0,repeatType:c=`loop`,repeatDelay:l=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=jE(e,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:g}=h,_,v=0,y=h.duration,b,x=!1,S=!0,C,w=ele(h);(n=(t=w).needsInterpolation)?.call(t,r,g)&&(C=CD([0,100],[r,g],{clamp:!1}),r=0,g=100);let T=w(Object.assign(Object.assign({},h),{from:r,to:g}));function E(){v++,c===`reverse`?(S=v%2==0,o=tle(o,y,l,S)):(o=LD(o,y,l),c===`mirror`&&T.flipTarget()),x=!1,p&&p()}function D(){_.stop(),f&&f()}function O(e){if(S||(e=-e),o+=e,!x){let e=T.next(Math.max(0,o));b=e.value,C&&(b=C(b)),x=S?e.done:o<=0}m?.(b),x&&(v===0&&(y??=o),v{d?.(),_.stop()}}}function zD(e,t){return t?e*(1e3/t):0}function ile({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return n!==void 0&&er}function g(e){return n===void 0?r:r===void 0||Math.abs(n-e){var n;d?.(t),(n=e.onUpdate)==null||n.call(e,t)},onComplete:f,onStop:p}))}function v(e){_(Object.assign({type:`spring`,stiffness:o,damping:s,restDelta:c},e))}if(h(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;l!==void 0&&(r=l(r));let o=g(r),s=o===n?-1:1,u,d,f=e=>{u=d,d=e,t=zD(e-u,kE().delta),(s===1&&e>o||s===-1&&em?.stop()}}const BD=(e,t)=>1-3*t+3*e,VD=(e,t)=>3*t-6*e,HD=e=>3*e,UD=(e,t,n)=>((BD(t,n)*e+VD(t,n))*e+HD(t))*e,WD=(e,t,n)=>3*BD(t,n)*e*e+2*VD(t,n)*e+HD(t);function ale(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=UD(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<10);return o}function ole(e,t,n,r){for(let i=0;i<8;++i){let i=WD(t,n,r);if(i===0)return t;let a=UD(t,n,r)-e;t-=a/i}return t}const GD=1/10;function sle(e,t,n,r){if(e===t&&n===r)return OD;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=UD(t*GD,e,n);function a(t){let r=0,a=1;for(;a!==10&&i[a]<=t;++a)r+=GD;--a;let o=(t-i[a])/(i[a+1]-i[a]),s=r+o*GD,c=WD(s,e,n);return c>=.001?ole(t,s,e,n):c===0?s:ale(t,r,r+GD,e,n)}return e=>e===0||e===1?e:UD(a(e),t,r)}const KD={};var cle=class{subscriptions=new Set;add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,t,n){if(this.subscriptions.size)for(let r of this.subscriptions)r(e,t,n)}clear(){this.subscriptions.clear()}};function qD(e){return!Number.isNaN(Number.parseFloat(e))}var lle=class{current;prev;timeDelta=0;lastUpdated=0;updateSubscribers=new cle;stopAnimation;canTrackVelocity=!1;constructor(e){this.prev=this.current=e,this.canTrackVelocity=qD(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}updateAndNotify=e=>{this.prev=this.current,this.current=e;let{delta:t,timestamp:n}=kE();this.lastUpdated!==n&&(this.timeDelta=t,this.lastUpdated=n),AE.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)};get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?zD(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}scheduleVelocityCheck=()=>AE.postRender(this.velocityCheck);velocityCheck=({timestamp:e})=>{this.canTrackVelocity||=qD(this.current),e!==this.lastUpdated&&(this.prev=this.current)};start(e){return this.stop(),new Promise(t=>{let{stop:n}=e(t);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}};function ule(e){return new lle(e)}const{isArray:dle}=Array;function fle(){let e=F({}),t=t=>{let n=t=>{e.value[t]&&(e.value[t].stop(),e.value[t].destroy(),delete e.value[t])};t?dle(t)?t.forEach(n):n(t):Object.keys(e.value).forEach(n)},n=(t,n,r)=>{if(e.value[t])return e.value[t];let i=ule(n);return i.onChange(e=>r[t]=e),e.value[t]=i,i};return PT(t),{motionValues:e,get:n,stop:t}}function ple(e){return Array.isArray(e)}function JD(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function YD(e){return{type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function mle(e){return{type:`spring`,stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function XD(){return{type:`keyframes`,ease:`linear`,duration:300}}function hle(e){return{type:`keyframes`,duration:800,values:e}}const ZD={default:mle,x:JD,y:JD,z:JD,rotate:JD,rotateX:JD,rotateY:JD,rotateZ:JD,scaleX:YD,scaleY:YD,scale:YD,backgroundColor:XD,color:XD,opacity:XD};function QD(e,t){let n;return n=ple(t)?hle:ZD[e]||ZD.default,{to:t,...n(t)}}const $D={...GE,transform:Math.round},eO={color:aD,backgroundColor:aD,outlineColor:aD,fill:aD,stroke:aD,borderColor:aD,borderTopColor:aD,borderRightColor:aD,borderBottomColor:aD,borderLeftColor:aD,borderWidth:ZE,borderTopWidth:ZE,borderRightWidth:ZE,borderBottomWidth:ZE,borderLeftWidth:ZE,borderRadius:ZE,radius:ZE,borderTopLeftRadius:ZE,borderTopRightRadius:ZE,borderBottomRightRadius:ZE,borderBottomLeftRadius:ZE,width:ZE,maxWidth:ZE,height:ZE,maxHeight:ZE,size:ZE,top:ZE,right:ZE,bottom:ZE,left:ZE,padding:ZE,paddingTop:ZE,paddingRight:ZE,paddingBottom:ZE,paddingLeft:ZE,margin:ZE,marginTop:ZE,marginRight:ZE,marginBottom:ZE,marginLeft:ZE,rotate:YE,rotateX:YE,rotateY:YE,rotateZ:YE,scale:qE,scaleX:qE,scaleY:qE,scaleZ:qE,skew:YE,skewX:YE,skewY:YE,distance:ZE,translateX:ZE,translateY:ZE,translateZ:ZE,x:ZE,y:ZE,z:ZE,perspective:ZE,transformPerspective:ZE,opacity:KE,originX:QE,originY:QE,originZ:ZE,zIndex:$D,filter:fD,WebkitFilter:fD,fillOpacity:KE,strokeOpacity:KE,numOctaves:$D},tO=e=>eO[e];function nO(e,t){return t&&typeof e==`number`&&t.transform?t.transform(e):e}function gle(e,t){let n=tO(e);return n!==fD&&(n=dD),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _le={linear:OD,easeIn:kD,easeInOut:AD,easeOut:Uce,circIn:jD,circInOut:Wce,circOut:MD,backIn:ND,backInOut:Kce,backOut:Gce,anticipate:qce,bounceIn:Jce,bounceInOut:Yce,bounceOut:PD};function rO(e){if(Array.isArray(e)){let[t,n,r,i]=e;return sle(t,n,r,i)}else if(typeof e==`string`)return _le[e];return e}function vle(e){return Array.isArray(e)&&typeof e[0]!=`number`}function iO(e,t){return e===`zIndex`?!1:!!(typeof t==`number`||Array.isArray(t)||typeof t==`string`&&dD.test(t)&&!t.startsWith(`url(`))}function yle(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function ble({ease:e,times:t,delay:n,...r}){let i={...r};return t&&(i.offset=t),e&&(i.ease=vle(e)?e.map(rO):rO(e)),n&&(i.elapsed=-n),i}function xle(e,t,n){return Array.isArray(t.to)&&(e.duration||=800),yle(t),Sle(e)||(e={...e,...QD(n,t.to)}),{...t,...ble(e)}}function Sle({delay:e,repeat:t,repeatType:n,repeatDelay:r,from:i,...a}){return!!Object.keys(a).length}function Cle(e,t){return e[t]||e.default||e}function wle(e,t,n,r,i){let a=Cle(r,e),o=a.from===null||a.from===void 0?t.get():a.from,s=iO(e,n);o===`none`&&s&&typeof n==`string`&&(o=gle(e,n));let c=iO(e,o);function l(s){let c={from:o,to:n,velocity:r.velocity?r.velocity:t.getVelocity(),onUpdate:e=>t.set(e)};return a.type===`inertia`||a.type===`decay`?ile({...c,...a}):RD({...xle(a,c,e),onUpdate:e=>{c.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i&&i(),s&&s()}})}function u(e){return t.set(n),i&&i(),e&&e(),{stop:()=>{}}}return!c||!s||a.type===!1?u:l}function Tle(){let{motionValues:e,stop:t,get:n}=fle(),r=(e,t,r,i={},a)=>{let o=r[e],s=n(e,o,r);if(i&&i.immediate){s.set(t);return}let c=wle(e,s,t,i,a);s.start(c)};return{motionValues:e,stop:t,push:r}}function Ele(e,t={},{motionValues:n,push:r,stop:i}=Tle()){let a=I(t),o=F(!1);Ha(n,e=>{o.value=Object.values(e).filter(e=>e.isAnimating()).length>0},{immediate:!0,deep:!0});let s=e=>{if(!a||!a[e])throw Error(`The variant ${e} does not exist.`);return a[e]},c=t=>{typeof t==`string`&&(t=s(t));let n=Object.entries(t).map(([n,i])=>{if(n!==`transition`)return new Promise(a=>r(n,i,e,t.transition||QD(n,t[n]),a))}).filter(Boolean);async function i(){await Promise.all(n),t.transition?.onComplete?.()}return Promise.all([i()])},l=t=>{let n=sT(t)?t:s(t);Object.entries(n).forEach(([t,n])=>{t!==`transition`&&r(t,n,e,{immediate:!0})})},u=async e=>{let t;if(a&&(a.leave&&(t=a.leave),!a.leave&&a.initial&&(t=a.initial)),!t){e();return}await c(t),e()};return{isAnimating:o,apply:c,set:l,leave:u,stop:i}}const aO=typeof window<`u`,Dle=()=>aO&&(window.onpointerdown===null||void 0),Ole=()=>aO&&(window.ontouchstart===null||void 0),kle=()=>aO&&(window.onmousedown===null||void 0);function Ale({target:e,state:t,variants:n,apply:r}){let i=I(n),a=F(!1),o=F(!1),s=F(!1),c=U(()=>{let e=[...Object.keys(t.value||{})];return i?(i.hovered&&(e=[...e,...Object.keys(i.hovered)]),i.tapped&&(e=[...e,...Object.keys(i.tapped)]),i.focused&&(e=[...e,...Object.keys(i.focused)]),e):e}),l=U(()=>{let e={};for(let n in Object.assign(e,t.value),a.value&&i.hovered&&Object.assign(e,i.hovered),o.value&&i.tapped&&Object.assign(e,i.tapped),s.value&&i.focused&&Object.assign(e,i.focused),e)c.value.includes(n)||delete e[n];return e});i.hovered&&(WT(e,`mouseenter`,()=>a.value=!0),WT(e,`mouseleave`,()=>{a.value=!1,o.value=!1})),i.tapped&&(kle()&&(WT(e,`mousedown`,()=>o.value=!0),WT(e,`mouseup`,()=>o.value=!1)),Dle()&&(WT(e,`pointerdown`,()=>o.value=!0),WT(e,`pointerup`,()=>o.value=!1)),Ole()&&(WT(e,`touchstart`,()=>o.value=!0),WT(e,`touchend`,()=>o.value=!1))),i.focused&&(WT(e,`focus`,()=>s.value=!0),WT(e,`blur`,()=>s.value=!1)),Ha([a,o,s],()=>{r(l.value)})}function jle({set:e,target:t,variants:n,variant:r}){let i=I(n);Ha(()=>t,()=>{i&&(i.initial&&(e(`initial`),r.value=`initial`),i.enter&&(r.value=`enter`))},{immediate:!0,flush:`pre`})}function Mle({state:e,apply:t}){Ha(e,e=>{e&&t(e)},{immediate:!0})}function oO({target:e,variants:t,variant:n}){let r=I(t);r&&(r.visible||r.visibleOnce)&&Qse(e,([{isIntersecting:e}])=>{r.visible?e?n.value=`visible`:n.value=`initial`:r.visibleOnce&&(e&&n.value!==`visibleOnce`?n.value=`visibleOnce`:n.value||=`initial`)})}function Nle(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&jle(e),t.syncVariants&&Mle(e),t.visibilityHooks&&oO(e),t.eventListeners&&Ale(e)}function sO(e={}){let t=Zt({...e}),n=F({});return Ha(t,()=>{let e={};for(let[n,r]of Object.entries(t)){let t=tO(n),i=nO(r,t);e[n]=i}n.value=e},{immediate:!0,deep:!0}),{state:t,style:n}}function cO(e,t){Ha(()=>UT(e),e=>{e&&t(e)},{immediate:!0})}const Ple={x:`translateX`,y:`translateY`,z:`translateZ`};function lO(e={},t=!0){let n=Zt({...e}),r=F(``);return Ha(n,e=>{let n=``,i=!1;if(t&&(e.x||e.y||e.z)){let t=[e.x||0,e.y||0,e.z||0].map(e=>nO(e,ZE)).join(`,`);n+=`translate3d(${t}) `,i=!0}for(let[r,i]of Object.entries(e)){if(t&&(r===`x`||r===`y`||r===`z`))continue;let e=tO(r),a=nO(i,e);n+=`${Ple[r]||r}(${a}) `}t&&!i&&(n+=`translateZ(0px) `),r.value=n.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}const Fle=[``,`X`,`Y`,`Z`],Ile=[`perspective`,`translate`,`scale`,`rotate`,`skew`],uO=[`transformPerspective`,`x`,`y`,`z`];Ile.forEach(e=>{Fle.forEach(t=>{let n=e+t;uO.push(n)})});const Lle=new Set(uO);function dO(e){return Lle.has(e)}const Rle=new Set([`originX`,`originY`,`originZ`]);function fO(e){return Rle.has(e)}function zle(e){let t={},n={};return Object.entries(e).forEach(([e,r])=>{dO(e)||fO(e)?t[e]=r:n[e]=r}),{transform:t,style:n}}function pO(e){let{transform:t,style:n}=zle(e),{transform:r}=lO(t),{style:i}=sO(n);return r.value&&(i.value.transform=r.value),i.value}function Ble(e,t){let n,r,{state:i,style:a}=sO();return cO(e,e=>{r=e;for(let t of Object.keys(eO)){if(e.style[t]===null||e.style[t]===``||dO(t)||fO(t))continue;i[t]=e.style[t]}n&&Object.entries(n).forEach(([t,n])=>e.style[t]=n),t&&t(i)}),Ha(a,e=>{if(!r){n=e;return}for(let t in e)r.style[t]=e[t]},{immediate:!0}),{style:i}}function Vle(e){let t=e.trim().split(/\) |\)/);if(t.length===1)return{};let n=e=>e.endsWith(`px`)||e.endsWith(`deg`)?Number.parseFloat(e):Number.isNaN(Number(e))?Number(e):e;return t.reduce((e,t)=>{if(!t)return e;let[r,i]=t.split(`(`),a=i.split(`,`),o=a.map(e=>n(e.endsWith(`)`)?e.replace(`)`,``):e.trim())),s=o.length===1?o[0]:o;return{...e,[r]:s}},{})}function Hle(e,t){Object.entries(Vle(t)).forEach(([t,n])=>{let r=[`x`,`y`,`z`];if(t===`translate3d`){if(n===0){r.forEach(t=>e[t]=0);return}n.forEach((t,n)=>e[r[n]]=t);return}if(n=Number.parseFloat(`${n}`),t===`translateX`){e.x=n;return}if(t===`translateY`){e.y=n;return}if(t===`translateZ`){e.z=n;return}e[t]=n})}function Ule(e,t){let n,r,{state:i,transform:a}=lO();return cO(e,e=>{r=e,e.style.transform&&Hle(i,e.style.transform),n&&(e.style.transform=n),t&&t(i)}),Ha(a,e=>{if(!r){n=e;return}r.style.transform=e},{immediate:!0}),{transform:i}}function Wle(e){return Object.entries(e)}function Gle(e,t){let n=Zt({}),r=e=>Object.entries(e).forEach(([e,t])=>n[e]=t),{style:i}=Ble(e,r),{transform:a}=Ule(e,r);return Ha(n,e=>{Wle(e).forEach(([e,t])=>{let n=dO(e)?a:i;n[e]&&n[e]===t||(n[e]=t)})},{immediate:!0,deep:!0}),cO(e,()=>t&&r(t)),{motionProperties:n,style:i,transform:a}}function Kle(e={}){let t=I(e),n=F(),r=U(()=>{if(n.value)return t[n.value]});return{state:r,variant:n}}function mO(e,t={},n){let{motionProperties:r}=Gle(e),{variant:i,state:a}=Kle(t),o=Ele(r,t),s={target:e,variant:i,variants:t,state:a,motionProperties:r,...o};return Nle(s,n),s}const hO=[`delay`,`duration`],qle=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...hO];function Jle(e){return hO.includes(e)}function Yle(e,t){let n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};if(n){n.variants&&sT(n.variants)&&(t.value={...t.value,...n.variants});for(let e of qle){if(!n||!n[e])continue;if(Jle(e)&&typeof n[e]==`number`){for(let r of[`enter`,`visible`,`visibleOnce`]){let i=t.value[r];if(i==null)continue;i.transition??={},i.transition[e]=n[e]}continue}if(sT(n[e])){let r=n[e];e===`visible-once`&&(e=`visibleOnce`),t.value[e]=r}}}}function gO(e,t=!1){let n=(n,r,i)=>{let a=r.value&&typeof r.value==`string`?r.value:i.key;a&&KD[a]&&KD[a].stop();let o=t?structuredClone(sn(e)||{}):e||{},s=F(o);typeof r.value==`object`&&(s.value=r.value),Yle(i,s);let c={eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1},l=mO(n,s,c);n.motionInstance=l,a&&(KD[a]=l)},r=(e,t,n)=>{e.motionInstance&&oO(e.motionInstance)};return{created:n,mounted:r,getSSRProps(t,n){let{initial:r}=t.value||n&&n?.props||{};r=I(r);let i=$w({},e?.initial||{},r||{});if(!i||Object.keys(i).length===0)return;let a=pO(i);return{style:a}}}}const Xle={initial:{opacity:0},enter:{opacity:1}},Zle={initial:{opacity:0},visible:{opacity:1}},Qle={initial:{opacity:0},visibleOnce:{opacity:1}},$le={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},eue={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},tue={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},nue={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rue={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},iue={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},aue={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},oue={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},sue={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},cue={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},lue={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},uue={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},due={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},fue={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},pue={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},mue={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},hue={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},gue={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},_ue={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},vue={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},yue={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},bue={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},xue={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},Sue={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},Cue={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},wue={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},Tue={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},_O={__proto__:null,fade:Xle,fadeVisible:Zle,fadeVisibleOnce:Qle,pop:$le,popVisible:eue,popVisibleOnce:tue,rollBottom:due,rollLeft:nue,rollRight:aue,rollTop:cue,rollVisibleBottom:fue,rollVisibleLeft:rue,rollVisibleOnceBottom:pue,rollVisibleOnceLeft:iue,rollVisibleOnceRight:sue,rollVisibleOnceTop:uue,rollVisibleRight:oue,rollVisibleTop:lue,slideBottom:Cue,slideLeft:mue,slideRight:_ue,slideTop:bue,slideVisibleBottom:wue,slideVisibleLeft:hue,slideVisibleOnceBottom:Tue,slideVisibleOnceLeft:gue,slideVisibleOnceRight:yue,slideVisibleOnceTop:Sue,slideVisibleRight:vue,slideVisibleTop:xue};function Eue(e){let t=`àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;`,n=new RegExp(t.split(``).join(`|`),`g`);return e.toString().replace(/[A-Z]/g,e=>`-${e}`).toLowerCase().replace(/\s+/g,`-`).replace(n,e=>`aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------`.charAt(t.indexOf(e))).replace(/&/g,`-and-`).replace(/[^\w\-]+/g,``).replace(/-{2,}/g,`-`).replace(/^-+/,``).replace(/-+$/,``)}const vO=Symbol(``),yO={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Due(e){return Object.prototype.toString.call(e)===`[object Object]`}function bO(e){if(Array.isArray(e))return e.map(bO);if(Due(e)){let t={};for(let n in e)t[n]=bO(e[n]);return t}return e}function xO(e){let t=Zt({}),n=da(vO,{}),r=U(()=>e.preset==null?{}:n!=null&&e.preset in n?structuredClone(sn(n)[e.preset]):e.preset in _O?structuredClone(_O[e.preset]):{}),i=U(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused}));function a(e,t){for(let n of[`delay`,`duration`]){if(t[n]==null)continue;let r=Number.parseInt(t[n]);for(let t of[`enter`,`visible`,`visibleOnce`]){let i=e[t];if(i==null)continue;i.transition??={},i.transition[n]=r}}return e}let o=U(()=>{let t=$w({},i.value,r.value,e.variants||{});return a({...t},e)});function s(e,n,r){e.props??={},e.props.style??={},e.props.style={...e.props.style,...r};let i=a(bO(o.value),e.props);return e.props.onVnodeMounted=({el:e})=>{t[n]=mO(e,i)},e.props.onVnodeUpdated=({el:e})=>{let r=pO(t[n].state);for(let[t,n]of Object.entries(r))e.style[t]=n},e}return{motionConfig:o,setNodeInstance:s}}const Oue=R({name:`Motion`,props:{...yO,is:{type:[String,Object],default:`div`}},setup(e){let t=Gi(),{motionConfig:n,setNodeInstance:r}=xO(e);return()=>{let i=pO(n.value.initial||{}),a=fs(e.is,void 0,t);return r(a,0,i),a}}}),kue=R({name:`MotionGroup`,props:{...yO,is:{type:[String,Object],required:!1}},setup(e){let t=Gi(),{motionConfig:n,setNodeInstance:r}=xO(e);return()=>{let i=pO(n.value.initial||{}),a=t.default?.()||[];for(let e=0;eSO=e,wO=Symbol();function TO(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var EO;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(EO||={});const jue=typeof window<`u`,DO=(()=>typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null})();function Mue(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function OO(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Nue(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function kO(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function AO(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}const jO=typeof navigator==`object`?navigator:{userAgent:``},MO=(()=>/Macintosh/.test(jO.userAgent)&&/AppleWebKit/.test(jO.userAgent)&&!/Safari/.test(jO.userAgent))(),Nue=jue?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!MO?Pue:`msSaveOrOpenBlob`in jO?Fue:Iue:()=>{};function Pue(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?AO(r):kO(r.href)?OO(e,t,n):(r.target=`_blank`,AO(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){AO(r)},0))}function Fue(e,t=`download`,n){if(typeof e==`string`)if(kO(e))OO(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){AO(t)})}else navigator.msSaveOrOpenBlob(Mue(e,n),t)}function Iue(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return OO(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(DO.HTMLElement))||`safari`in DO,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||MO)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}const{assign:Lue}=Object;function Rue(){let e=Be(!0),t=e.run(()=>F({})),n=[],r=[],i=cn({install(e){CO(i),i._a=e,e.provide(wO,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const NO=()=>{};function PO(e,t,n,r=NO){e.push(t);let i=()=>{let n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&Ve()&&He(i),i}function FO(e,...t){e.slice().forEach(e=>{e(...t)})}const zue=e=>e(),IO=Symbol(),LO=Symbol();function RO(e,t){for(let n in e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e),t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];TO(i)&&TO(r)&&e.hasOwnProperty(n)&&!dn(r)&&!nn(r)?e[n]=RO(i,r):e[n]=r}return e}const Bue=Symbol();function Vue(e){return!TO(e)||!Object.prototype.hasOwnProperty.call(e,Bue)}const{assign:zO}=Object;function Hue(e){return!!(dn(e)&&e.effect)}function Uue(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){s||(n.state.value[e]=i?i():{});let t=_n(n.state.value[e]);return zO(t,a,Object.keys(o||{}).reduce((t,r)=>(t[r]=cn(U(()=>{CO(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=BO(e,l,t,n,r,!0),c}function BO(e,t,n={},r,i,a){let o,s=zO({actions:{}},n),c={deep:!0},l,u,d=[],f=[],p=r.state.value[e];!a&&!p&&(r.state.value[e]={}),F({});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:EO.patchFunction,storeId:e,events:void 0}):(RO(r.state.value[e],t),n={type:EO.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();Gn().then(()=>{m===i&&(l=!0)}),u=!0,FO(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{zO(e,t)})}:NO;function _(){o.stop(),d=[],f=[],r._s.delete(e)}let v=(t,n=``)=>{if(IO in t)return t[LO]=n,t;let i=function(){CO(r);let n=Array.from(arguments),a=[],o=[];function s(e){a.push(e)}function c(e){o.push(e)}FO(f,{args:n,name:i[LO],store:b,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:b,n)}catch(e){throw FO(o,e),e}return l instanceof Promise?l.then(e=>(FO(a,e),e)).catch(e=>(FO(o,e),Promise.reject(e))):(FO(a,l),l)};return i[IO]=!0,i[LO]=n,i},y={_p:r,$id:e,$onAction:PO.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=PO(d,t,n.detached,()=>a()),a=o.run(()=>Ha(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:EO.direct,events:void 0},r)},zO({},c,n)));return i},$dispose:_},b=Zt(y);r._s.set(e,b);let x=r._a&&r._a.runWithContext||zue,S=x(()=>r._e.run(()=>(o=Be()).run(()=>t({action:v}))));for(let t in S){let n=S[t];if(dn(n)&&!Hue(n)||nn(n))a||(p&&Vue(n)&&(dn(n)?n.value=p[t]:RO(n,p[t])),r.state.value[e][t]=n);else if(typeof n==`function`){let e=v(n,t);S[t]=e,s.actions[t]=n}}return zO(b,S),zO(sn(b),S),Object.defineProperty(b,`$state`,{get:()=>r.state.value[e],set:e=>{h(t=>{zO(t,e)})}}),r._p.forEach(e=>{zO(b,o.run(()=>e({store:b,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(b.$state,p),l=!0,u=!0,b} /*! #__NO_SIDE_EFFECTS__ */ -function UO(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=ua();n||=o?la(EO,null):null,n&&TO(n),n=wO,n._s.has(e)||(i?HO(e,t,r,n):Vue(e,r,n));let s=n._s.get(e);return s}return a.$id=e,a}function WO(e){let t=sn(e),n={};for(let r in t){let i=t[r];i.effect?n[r]=U({get:()=>e[r],set(t){e[r]=t}}):(dn(i)||nn(i))&&(n[r]=vn(e,r))}return n}const Hue=function(e){return`/`+e},GO={},G=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Hue(t,n),t in GO)return;GO[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``,o=!!n;if(o)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let s=document.createElement(`link`);if(s.rel=r?`stylesheet`:`modulepreload`,r||(s.as=`script`),s.crossOrigin=``,s.href=t,a&&s.setAttribute(`nonce`,a),document.head.appendChild(s),r)return new Promise((e,n)=>{s.addEventListener(`load`,e),s.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[]){if(e.status!==`rejected`)continue;i(e.reason)}return e().catch(i)})},Uue=e=>{let t={},n={"/src/layouts/default.vue":()=>G(()=>import(`./default-DOtQQCA0.js`),__vite__mapDeps([0,1,2])),"/src/layouts/home.vue":()=>G(()=>import(`./home-DDpShUXq.js`),[]),"/src/layouts/plain.vue":()=>G(()=>import(`./plain-B2G-onti.js`),[]),"/src/layouts/settings.vue":()=>G(()=>import(`./settings-B2H4CbgS.js`),__vite__mapDeps([3,1,2,4,5])),"/src/layouts/stage.vue":()=>G(()=>import(`./stage-rPzuR0ET.js`),[])};Object.entries(n).forEach(([e,n])=>{let r=e.replace(`/src/layouts/`,``).replace(`.vue`,``);t[r]=n});function r(e,n=!0){return e.map(e=>{if(e.children?.length>0&&(e.children=r(e.children,!1)),n){let n=!e.component&&e.children?.find(e=>(e.path===``||e.path===`/`)&&e.meta?.isLayout);if(n)return e;if(e.meta?.layout!==!1)return{path:e.path,component:t[e.meta?.layout||`default`],children:e.path===`/`?[e]:[{...e,path:``}],meta:{isLayout:!0}}}return e.meta?.layout?{path:e.path,component:t[e.meta?.layout],children:[{...e,path:``}],meta:{isLayout:!0}}:e})}return r(e)},KO=typeof document<`u`;function qO(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Wue(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&qO(e.default)}const JO=Object.assign;function YO(e,t){let n={};for(let r in t){let i=t[r];n[r]=ZO(i)?i.map(e):e(i)}return n}const XO=()=>{},ZO=Array.isArray,QO=/#/g,Gue=/&/g,Kue=/\//g,que=/=/g,Jue=/\?/g,$O=/\+/g,Yue=/%5B/g,Xue=/%5D/g,ek=/%5E/g,Zue=/%60/g,tk=/%7B/g,Que=/%7C/g,nk=/%7D/g,$ue=/%20/g;function rk(e){return encodeURI(``+e).replace(Que,`|`).replace(Yue,`[`).replace(Xue,`]`)}function ede(e){return rk(e).replace(tk,`{`).replace(nk,`}`).replace(ek,`^`)}function ik(e){return rk(e).replace($O,`%2B`).replace($ue,`+`).replace(QO,`%23`).replace(Gue,`%26`).replace(Zue,"`").replace(tk,`{`).replace(nk,`}`).replace(ek,`^`)}function tde(e){return ik(e).replace(que,`%3D`)}function nde(e){return rk(e).replace(QO,`%23`).replace(Jue,`%3F`)}function rde(e){return e==null?``:nde(e).replace(Kue,`%2F`)}function ak(e){try{return decodeURIComponent(``+e)}catch{}return``+e}const ide=/\/$/,ade=e=>e.replace(ide,``);function ok(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return s=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,s>-1?s:t.length),i=e(a)),s>-1&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=lde(r??t,n),{fullPath:r+(a&&`?`)+a+o,path:r,query:i,hash:ak(o)}}function ode(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function sk(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function sde(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ck(t.matched[r],n.matched[i])&&lk(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ck(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function lk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!cde(e[n],t[n]))return!1;return!0}function cde(e,t){return ZO(e)?uk(e,t):ZO(t)?uk(t,e):e===t}function uk(e,t){return ZO(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function lde(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}const dk={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};var fk;(function(e){e.pop=`pop`,e.push=`push`})(fk||={});var pk;(function(e){e.back=`back`,e.forward=`forward`,e.unknown=``})(pk||={});function ude(e){if(!e)if(KO){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),ade(e)}const dde=/^[^#]+#/;function fde(e,t){return e.replace(dde,`#`)+t}function pde(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const mk=()=>({left:window.scrollX,top:window.scrollY});function mde(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=pde(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function hk(e,t){let n=history.state?history.state.position-t:-1;return n+e}const gk=new Map;function hde(e,t){gk.set(e,t)}function gde(e){let t=gk.get(e);return gk.delete(e),t}let _de=()=>location.protocol+`//`+location.host;function _k(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),sk(n,``)}let o=sk(n,e);return o+r+i}function vde(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=_k(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:fk.pop,direction:u?u>0?pk.forward:pk.back:pk.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(JO({},e.state,{scroll:mk()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`beforeunload`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`beforeunload`,u,{passive:!0}),{pauseListeners:c,listen:l,destroy:d}}function vk(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?mk():null}}function yde(e){let{history:t,location:n}=window,r={value:_k(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:_de()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){let o=JO({},t.state,vk(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});a(e,o,!0),r.value=e}function s(e,n){let o=JO({},i.value,t.state,{forward:e,scroll:mk()});a(o.current,o,!0);let s=JO({},vk(r.value,e,null),{position:o.position+1},n);a(e,s,!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function bde(e){e=ude(e);let t=yde(e),n=vde(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=JO({location:``,base:e,go:r,createHref:fde.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function xde(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),bde(e)}function Sde(e){return typeof e==`string`||e&&typeof e==`object`}function yk(e){return typeof e==`string`||typeof e==`symbol`}const bk=Symbol(``);var Cde;(function(e){e[e.aborted=4]=`aborted`,e[e.cancelled=8]=`cancelled`,e[e.duplicated=16]=`duplicated`})(Cde||={});function xk(e,t){return JO(Error(),{type:e,[bk]:!0},t)}function Sk(e,t){return e instanceof Error&&bk in e&&(t==null||!!(e.type&t))}const Ck=`[^/]+?`,wde={sensitive:!1,strict:!1,start:!0,end:!0},Tde=/[.+*?^${}()[\]/\\]/g;function Ede(e,t){let n=JO({},wde,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;rt.length?t.length===1&&t[0]===80?1:-1:0}function wk(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Ode={type:0,value:``},kde=/[a-zA-Z0-9_]/;function Ade(e){if(!e)return[[]];if(e===`/`)return[[Ode]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s{o(f)}:XO}function o(e){if(yk(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Fde(e,n);n.splice(t,0,e),e.record.name&&!Ok(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw xk(1,{location:e});s=i.record.name,a=JO(Ek(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ek(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw xk(1,{location:e,currentLocation:t});s=i.record.name,a=JO({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Pde(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Ek(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Dk(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Nde(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function Nde(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Ok(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pde(e){return e.reduce((e,t)=>JO(e,t.meta),{})}function kk(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}function Fde(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1,a=wk(e,t[i]);a<0?r=i:n=i+1}let i=Ide(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Ide(e){let t=e;for(;t=t.parent;)if(Ak(t)&&wk(e,t)===0)return t}function Ak({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Lde(e){let t={};if(e===``||e===`?`)return t;let n=e[0]===`?`,r=(n?e.slice(1):e).split(`&`);for(let e=0;ee&&ik(e)):[r&&ik(r)];i.forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Rde(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=ZO(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}const zde=Symbol(``),Mk=Symbol(``),Nk=Symbol(``),Pk=Symbol(``),Fk=Symbol(``);function Ik(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Lk(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(xk(4,{from:n,to:t})):e instanceof Error?c(e):Sde(e)?c(xk(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Rk(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t!==`beforeRouteEnter`&&!o.instances[e])continue;if(qO(s)){let c=s.__vccOpts||s,l=c[t];l&&a.push(Lk(l,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Wue(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=s.__vccOpts||s,l=c[t];return l&&Lk(l,n,r,o,e,i)()}))}}return a}function zk(e){let t=la(Nk),n=la(Pk),r=U(()=>{let n=I(e.to);return t.resolve(n)}),i=U(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(ck.bind(null,i));if(o>-1)return o;let s=Vk(e[t-2]);return t>1&&Vk(i)===s&&a[a.length-1].path!==s?a.findIndex(ck.bind(null,e[t-2])):o}),a=U(()=>i.value>-1&&Ude(n.params,r.value.params)),o=U(()=>i.value>-1&&i.value===n.matched.length-1&&lk(n.params,r.value.params));function s(n={}){if(Hde(n)){let n=t[I(e.replace)?`replace`:`push`](I(e.to)).catch(XO);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:U(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Bde(e){return e.length===1?e[0]:e}const Vde=R({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:zk,setup(e,{slots:t}){let n=Zt(zk(e)),{options:r}=la(Nk),i=U(()=>({[Hk(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Hk(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Bde(t.default(n));return e.custom?r:fs(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),Bk=Vde;function Hde(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ude(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!ZO(i)||i.length!==r.length||r.some((e,t)=>e!==i[t]))return!1}return!0}function Vk(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}const Hk=(e,t,n)=>e??t??n,Wde=R({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=la(Fk),i=U(()=>e.route||r.value),a=la(Mk,0),o=U(()=>{let e=I(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=U(()=>i.value.matched[o.value]);ca(Mk,U(()=>o.value+1)),ca(zde,s),ca(Fk,i);let c=F();return Ba(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!ck(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Uk(n.default,{Component:l,route:r});let u=o.props[a],d=u?u===!0?r.params:typeof u==`function`?u(r):u:null,f=e=>{e.component.isUnmounted&&(o.instances[a]=null)},p=fs(l,JO({},d,t,{onVnodeUnmounted:f,ref:c}));return Uk(n.default,{Component:p,route:r})||p}}});function Uk(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}const Wk=Wde;function Gde(e){let t=Mde(e.routes,e),n=e.parseQuery||Lde,r=e.stringifyQuery||jk,i=e.history,a=Ik(),o=Ik(),s=Ik(),c=fn(dk),l=dk;KO&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=YO.bind(null,e=>``+e),d=YO.bind(null,rde),f=YO.bind(null,ak);function p(e,n){let r,i;return yk(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=JO({},a||c.value),typeof e==`string`){let r=ok(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return JO(r,o,{params:f(o.params),hash:ak(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=JO({},e,{path:ok(n,e.path,a.path).path});else{let t=JO({},e.params);for(let e in t)t[e]??delete t[e];o=JO({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=ode(r,JO({},e,{hash:ede(l),path:s.path})),m=i.createHref(p);return JO({fullPath:p,hash:l,query:r===jk?Rde(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?ok(n,e,c.value.path):JO({},e)}function y(e,t){if(l!==e)return xk(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(JO(v(e),{replace:!0}))}function S(e){let t=e.matched[e.matched.length-1];if(t&&t.redirect){let{redirect:n}=t,r=typeof n==`function`?n(e):n;return typeof r==`string`&&(r=r.includes(`?`)||r.includes(`#`)?r=v(r):{path:r},r.params={}),JO({query:e.query,hash:e.hash,params:r.path==null?e.params:{}},r)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n);if(u)return C(JO(v(u),{state:typeof u==`object`?JO({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&sde(r,i,n)&&(f=xk(16,{to:d,from:i}),re(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>Sk(e)?Sk(e,2)?e:ne(e):te(e,d,i)).then(e=>{if(e){if(Sk(e,2))return C(JO({replace:s},v(e.to),{state:typeof e.to==`object`?JO({},a,e.to.state):a,force:o}),t||d)}else e=O(d,i,!0,s,a);return D(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=oe.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=Kde(e,t);n=Rk(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Lk(r,e,t))});let c=w.bind(null,e,t);return n.push(c),ce(n).then(()=>{n=[];for(let r of a.list())n.push(Lk(r,e,t));return n.push(c),ce(n)}).then(()=>{n=Rk(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Lk(r,e,t))});return n.push(c),ce(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(ZO(r.beforeEnter))for(let i of r.beforeEnter)n.push(Lk(i,e,t));else n.push(Lk(r.beforeEnter,e,t));return n.push(c),ce(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Rk(s,`beforeRouteEnter`,e,t,T),n.push(c),ce(n))).then(()=>{n=[];for(let r of o.list())n.push(Lk(r,e,t));return n.push(c),ce(n)}).catch(e=>Sk(e,8)?e:Promise.reject(e))}function D(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function O(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===dk,l=KO?history.state:{};n&&(r||s?i.replace(e.fullPath,JO({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,re(e,t,n,s),ne()}let k;function A(){k||=i.listen((e,t,n)=>{if(!se.listening)return;let r=_(e),a=S(r);if(a){C(JO(a,{replace:!0,force:!0}),r).catch(XO);return}l=r;let o=c.value;KO&&hde(hk(o.fullPath,n.delta),mk()),E(r,o).catch(e=>Sk(e,12)?e:Sk(e,2)?(C(JO(v(e.to),{force:!0}),r).then(e=>{Sk(e,20)&&!n.delta&&n.type===fk.pop&&i.go(-1,!1)}).catch(XO),Promise.reject()):(n.delta&&i.go(-n.delta,!1),te(e,r,o))).then(e=>{e||=O(r,o,!1),e&&(n.delta&&!Sk(e,8)?i.go(-n.delta,!1):n.type===fk.pop&&Sk(e,20)&&i.go(-1,!1)),D(r,o,e)}).catch(XO)})}let j=Ik(),M=Ik(),ee;function te(e,t,n){ne(e);let r=M.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function N(){return ee&&c.value!==dk?Promise.resolve():new Promise((e,t)=>{j.add([e,t])})}function ne(e){return ee||(ee=!e,A(),j.list().forEach(([t,n])=>e?n(e):t()),j.reset()),e}function re(t,n,r,i){let{scrollBehavior:a}=e;if(!KO||!a)return Promise.resolve();let o=!r&&gde(hk(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Gn().then(()=>a(t,n,o)).then(e=>e&&mde(e)).catch(e=>te(e,t,n))}let ie=e=>i.go(e),ae,oe=new Set,se={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:M.add,isReady:N,install(e){let t=this;e.component(`RouterLink`,Bk),e.component(`RouterView`,Wk),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>I(c)}),KO&&!ae&&c.value===dk&&(ae=!0,b(i.location).catch(e=>{}));let n={};for(let e in dk)Object.defineProperty(n,e,{get:()=>c.value[e],enumerable:!0});e.provide(Nk,t),e.provide(Pk,Qt(n)),e.provide(Fk,c);let r=e.unmount;oe.add(e),e.unmount=function(){oe.delete(e),oe.size<1&&(l=dk,k&&k(),k=null,c.value=dk,ae=!1,ee=!1),r()}}};function ce(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return se}function Kde(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;ock(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>ck(e,s))||i.push(s))}return[n,r,i]}function Gk(){return la(Nk)}function Kk(e){return la(Pk)}const qde=[{path:`/`,name:`IndexScenePage`,component:()=>G(()=>import(`./pages-B0nDC2KO.js`),__vite__mapDeps([6,7,1,2,8,9,10,11,12,13,14,15,16,5,17,18,19,4,20])),meta:{layout:`stage`,stageTransition:{name:`bubble-wave-out`}}},{path:`/:all(.*)`,name:`/[...all]`,component:()=>G(()=>import(`./_...all_-DEVN9TnN.js`),[])},{path:`/audio`,name:`/audio`,component:()=>G(()=>import(`./audio-CfD_q6gC.js`),[])},{path:`/devtools`,children:[{path:`audio-record`,name:`/devtools/audio-record`,component:()=>G(()=>import(`./audio-record-BRIGq6_f.js`),[])},{path:`background-gradient-blending`,name:`/devtools/background-gradient-blending`,component:()=>G(()=>import(`./background-gradient-blending-DjcTayq6.js`),__vite__mapDeps([21,4,5,22,23,24]))},{path:`background-removal`,name:`/devtools/background-removal`,component:()=>G(()=>import(`./background-removal-BsOGJCJr.js`),__vite__mapDeps([25,26,23,27]))},{path:`chat`,name:`/devtools/chat`,component:()=>G(()=>import(`./chat-Dh3koUdS.js`),__vite__mapDeps([28,12]))},{path:`gesture-circle`,name:`/devtools/gesture-circle`,component:()=>G(()=>import(`./gesture-circle-BQ-DUzun.js`),__vite__mapDeps([29,19])),meta:{layout:`plain`}},{path:`image`,name:`/devtools/image`,component:()=>G(()=>import(`./image--p_SlIoG.js`),__vite__mapDeps([30,31]))},{path:`polaroid`,name:`/devtools/polaroid`,component:()=>G(()=>import(`./polaroid-D8Y-SKEd.js`),__vite__mapDeps([32,8,9,10,11,12,13,14,15,20]))},{path:`use-magic-keys`,name:`/devtools/use-magic-keys`,component:()=>G(()=>import(`./use-magic-keys-DhP0UWsA.js`),[])},{path:`vibrant`,name:`/devtools/vibrant`,component:()=>G(()=>import(`./vibrant-C0NqPUU1.js`),__vite__mapDeps([33,22,23,27]))}]},{path:`/queue`,name:`/queue`,component:()=>G(()=>import(`./queue-D-a0bA5k.js`),[])},{path:`/settings`,children:[{path:``,name:`/settings/`,component:()=>G(()=>import(`./settings-BAOMmq-8.js`),__vite__mapDeps([34,19,35])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`airi-card`,children:[{path:``,name:`/settings/airi-card/`,component:()=>G(()=>import(`./airi-card-DBOtd0Wi.js`),__vite__mapDeps([36,19,37,38,15,39,40,41,42,23,27])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`components`,children:[{path:`CardCreate`,name:`/settings/airi-card/components/CardCreate`,component:()=>G(()=>import(`./CardCreate-PvY8y_OB.js`),__vite__mapDeps([43,37]))},{path:`CardCreationDialog`,name:`/settings/airi-card/components/CardCreationDialog`,component:()=>G(()=>import(`./CardCreationDialog-D08nGLG1.js`),__vite__mapDeps([44,38,15,39]))},{path:`CardDetailDialog`,name:`/settings/airi-card/components/CardDetailDialog`,component:()=>G(()=>import(`./CardDetailDialog-C8TrFwnS.js`),__vite__mapDeps([45,40,41,15]))},{path:`CardListItem`,name:`/settings/airi-card/components/CardListItem`,component:()=>G(()=>import(`./CardListItem-CqFaImDZ.js`),__vite__mapDeps([46,42]))},{path:`DeleteCardDialog`,name:`/settings/airi-card/components/DeleteCardDialog`,component:()=>G(()=>import(`./DeleteCardDialog-DZqTqZyu.js`),__vite__mapDeps([47,41]))}]}]},{path:`memory`,children:[{path:``,name:`/settings/memory/`,component:()=>G(()=>import(`./memory-BFWaJKIi.js`),__vite__mapDeps([48,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`models`,children:[{path:``,name:`/settings/models/`,component:()=>G(()=>import(`./models-B-HwYTDm.js`),__vite__mapDeps([49,19,35,50,8,9,10,11,12,13,14,15,22,20])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}}]},{path:`modules`,children:[{path:``,name:`/settings/modules/`,component:()=>G(()=>import(`./modules-C3qcmhYO.js`),__vite__mapDeps([51,19,35,50])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`consciousness`,name:`/settings/modules/consciousness`,component:()=>G(()=>import(`./consciousness-C62d2AXR.js`),__vite__mapDeps([52,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`hearing`,name:`/settings/modules/hearing`,component:()=>G(()=>import(`./hearing-pH404Jfn.js`),__vite__mapDeps([53,19,26,5,11,16,20])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`memory-long-term`,name:`/settings/modules/memory-long-term`,component:()=>G(()=>import(`./memory-long-term-B3xB1Aa2.js`),__vite__mapDeps([54,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`memory-short-term`,name:`/settings/modules/memory-short-term`,component:()=>G(()=>import(`./memory-short-term-Bfu17Wi_.js`),__vite__mapDeps([55,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`speech`,name:`/settings/modules/speech`,component:()=>G(()=>import(`./speech-CUBOmkDj.js`),__vite__mapDeps([56,19,17,57])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`providers`,children:[{path:``,name:`/settings/providers/`,component:()=>G(()=>import(`./providers-hE0BXvIH.js`),__vite__mapDeps([58,19,35,50])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`alibaba-cloud-model-studio`,name:`/settings/providers/alibaba-cloud-model-studio`,component:()=>G(()=>import(`./alibaba-cloud-model-studio-LoIwjmsd.js`),__vite__mapDeps([59,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`anthropic`,name:`/settings/providers/anthropic`,component:()=>G(()=>import(`./anthropic-FxqJ0IEb.js`),__vite__mapDeps([60,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`azure-ai-foundry`,name:`/settings/providers/azure-ai-foundry`,component:()=>G(()=>import(`./azure-ai-foundry-DnvAoQYB.js`),__vite__mapDeps([61,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`cloudflare-workers-ai`,name:`/settings/providers/cloudflare-workers-ai`,component:()=>G(()=>import(`./cloudflare-workers-ai-UXTCTqVp.js`),__vite__mapDeps([62,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`deepseek`,name:`/settings/providers/deepseek`,component:()=>G(()=>import(`./deepseek-Clmy1xD5.js`),__vite__mapDeps([63,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`elevenlabs`,name:`/settings/providers/elevenlabs`,component:()=>G(()=>import(`./elevenlabs-By1-etWk.js`),__vite__mapDeps([64,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`featherless-ai`,name:`/settings/providers/featherless-ai`,component:()=>G(()=>import(`./featherless-ai-EUoqRwKj.js`),__vite__mapDeps([65,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`fireworks-ai`,name:`/settings/providers/fireworks-ai`,component:()=>G(()=>import(`./fireworks-ai-uNnJ5PQ2.js`),__vite__mapDeps([66,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`google-generative-ai`,name:`/settings/providers/google-generative-ai`,component:()=>G(()=>import(`./google-generative-ai-Dm_xZ9XG.js`),__vite__mapDeps([67,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`index-tts-vllm`,name:`/settings/providers/index-tts-vllm`,component:()=>G(()=>import(`./index-tts-vllm-DiOOxY2G.js`),__vite__mapDeps([68,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`lm-studio`,name:`/settings/providers/lm-studio`,component:()=>G(()=>import(`./lm-studio-BlGolAfa.js`),__vite__mapDeps([69,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`microsoft-speech`,name:`/settings/providers/microsoft-speech`,component:()=>G(()=>import(`./microsoft-speech-B96W7j45.js`),__vite__mapDeps([70,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`mistral-ai`,name:`/settings/providers/mistral-ai`,component:()=>G(()=>import(`./mistral-ai-7pN66eWP.js`),__vite__mapDeps([71,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`modelscope`,name:`/settings/providers/modelscope`,component:()=>G(()=>import(`./modelscope-B_MqBJUD.js`),__vite__mapDeps([72,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`moonshot-ai`,name:`/settings/providers/moonshot-ai`,component:()=>G(()=>import(`./moonshot-ai-MEHmQzUr.js`),__vite__mapDeps([73,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`novita-ai`,name:`/settings/providers/novita-ai`,component:()=>G(()=>import(`./novita-ai-Dy87Q0Fq.js`),__vite__mapDeps([74,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`ollama`,name:`/settings/providers/ollama`,component:()=>G(()=>import(`./ollama-B6ruE_gL.js`),__vite__mapDeps([75,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai`,name:`/settings/providers/openai`,component:()=>G(()=>import(`./openai-V9v0fYc-.js`),__vite__mapDeps([76,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-audio-speech`,name:`/settings/providers/openai-audio-speech`,component:()=>G(()=>import(`./openai-audio-speech-CkVCP_hU.js`),__vite__mapDeps([77,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-audio-transcription`,name:`/settings/providers/openai-audio-transcription`,component:()=>G(()=>import(`./openai-audio-transcription-Cf4-ZOqB.js`),__vite__mapDeps([78,19,20])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-compatible`,name:`/settings/providers/openai-compatible`,component:()=>G(()=>import(`./openai-compatible-CFTIqNWo.js`),__vite__mapDeps([79,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-compatible-audio-speech`,name:`/settings/providers/openai-compatible-audio-speech`,component:()=>G(()=>import(`./openai-compatible-audio-speech-MBU1m6DU.js`),__vite__mapDeps([80,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-compatible-audio-transcription`,name:`/settings/providers/openai-compatible-audio-transcription`,component:()=>G(()=>import(`./openai-compatible-audio-transcription-DM5ex1XJ.js`),__vite__mapDeps([81,19,20])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openrouter-ai`,name:`/settings/providers/openrouter-ai`,component:()=>G(()=>import(`./openrouter-ai-BV_8ZWp-.js`),__vite__mapDeps([82,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`player2`,name:`/settings/providers/player2`,component:()=>G(()=>import(`./player2-4aZfBz8x.js`),__vite__mapDeps([83,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`player2-speech`,name:`/settings/providers/player2-speech`,component:()=>G(()=>import(`./player2-speech-dVoWj_im.js`),__vite__mapDeps([84,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`together-ai`,name:`/settings/providers/together-ai`,component:()=>G(()=>import(`./together-ai-buYw6IAc.js`),__vite__mapDeps([85,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`volcengine`,name:`/settings/providers/volcengine`,component:()=>G(()=>import(`./volcengine-CeC_f95I.js`),__vite__mapDeps([86,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`xai`,name:`/settings/providers/xai`,component:()=>G(()=>import(`./xai-V5fT9RBo.js`),__vite__mapDeps([87,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`scene`,children:[{path:``,name:`/settings/scene/`,component:()=>G(()=>import(`./scene-LwMjiDcr.js`),__vite__mapDeps([88,19,35,50])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}}]},{path:`system`,children:[{path:``,name:`/settings/system/`,component:()=>G(()=>import(`./system-CqsiZkZC.js`),__vite__mapDeps([89,19])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`color-scheme`,name:`/settings/system/color-scheme`,component:()=>G(()=>import(`./color-scheme-CNUaazxA.js`),__vite__mapDeps([90,19,91])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`developer`,name:`/settings/system/developer`,component:()=>G(()=>import(`./developer-MrKBC0bX.js`),__vite__mapDeps([92,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`general`,name:`/settings/system/general`,component:()=>G(()=>import(`./general-CKI4PH85.js`),__vite__mapDeps([93,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]}]},{path:`/stage`,children:[{path:``,name:`StageScenePage`,component:()=>G(()=>import(`./stage-B7OEWfD5.js`),__vite__mapDeps([94,7,1,2,8,9,10,11,12,13,14,15,16,5,17,18,19,4,20])),meta:{layout:`stage`,stageTransition:{name:`bubble-wave-out`}}}]},{path:`/test`,children:[{path:`filter-message`,name:`/test/filter-message`,component:()=>G(()=>import(`./filter-message-Bsrrp0SL.js`),__vite__mapDeps([95,17,57]))},{path:`queues`,children:[{path:`delays`,name:`/test/queues/delays`,component:()=>G(()=>import(`./delays-CxQxu-mq.js`),__vite__mapDeps([96,5,11,16,17,57]))},{path:`emotions`,name:`/test/queues/emotions`,component:()=>G(()=>import(`./emotions-CfSs7BF-.js`),__vite__mapDeps([97,17,57]))},{path:`messages`,name:`/test/queues/messages`,component:()=>G(()=>import(`./messages-BAsmsxLz.js`),__vite__mapDeps([98,17,57]))}]}]}];var Jde=R({__name:`BidirectionalTransition`,props:{fromClass:{},activeClass:{},toClass:{}},setup(e){return(e,t)=>(z(),Oo(Fs,{"enter-from-class":e.fromClass,"enter-active-class":e.activeClass,"enter-to-class":e.toClass,"leave-from-class":e.toClass,"leave-active-class":e.activeClass,"leave-to-class":e.fromClass},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`enter-from-class`,`enter-active-class`,`enter-to-class`,`leave-from-class`,`leave-active-class`,`leave-to-class`]))}}),Yde=Jde,Xde=R({__name:`TransitionVertical`,props:{duration:{default:250},easingEnter:{default:`ease-in-out`},easingLeave:{default:`ease-in-out`},opacityClosed:{default:0},opacityOpened:{default:1}},setup(e){let t=e;function n(e){return{height:e.style.height,width:e.style.width,position:e.style.position,visibility:e.style.visibility,overflow:e.style.overflow,paddingTop:e.style.paddingTop,paddingBottom:e.style.paddingBottom,borderTopWidth:e.style.borderTopWidth,borderBottomWidth:e.style.borderBottomWidth,marginTop:e.style.marginTop,marginBottom:e.style.marginBottom}}let r=null,i=null;function a(e,t){let{width:n}=getComputedStyle(e);e.style.width=n,e.style.position=`absolute`,e.style.visibility=`hidden`,e.style.height=``;let{height:r}=getComputedStyle(e);return e.style.width=t.width,e.style.position=t.position,e.style.visibility=t.visibility,e.style.height=`0px`,e.style.overflow=`hidden`,t.height&&t.height!==`0px`?t.height:r}function o(e,t,n,a,o){i=e,r=e.animate(a,o),e.style.height=t.height,r.onfinish=()=>{e.style.overflow=t.overflow,n()}}function s(e,n){return[{height:`0px`,opacity:t.opacityClosed,paddingTop:`0px`,paddingBottom:`0px`,borderTopWidth:`0px`,borderBottomWidth:`0px`,marginTop:`0px`,marginBottom:`0px`},{height:e,opacity:t.opacityOpened,paddingTop:n.paddingTop,paddingBottom:n.paddingBottom,borderTopWidth:n.borderTopWidth,borderBottomWidth:n.borderBottomWidth,marginTop:n.marginTop,marginBottom:n.marginBottom}]}function c(e,t,n){return e!==i||!r||r.playState!==`running`?!1:(r.onfinish=()=>{e.style.overflow=t,n()},r.reverse(),!0)}function l(e,r){let i=e,l=n(i);if(c(i,l.overflow,r))return;let u=a(i,l),d=s(u,l),f={duration:t.duration,easing:t.easingEnter};o(i,l,r,d,f)}function u(e,r){let i=e,a=n(i);if(c(i,a.overflow,r))return;let{height:l}=getComputedStyle(i);i.style.height=l,i.style.overflow=`hidden`;let u=s(l,a).reverse(),d={duration:t.duration,easing:t.easingLeave};o(i,a,r,u,d)}return(e,t)=>(z(),Oo(Fs,{css:!1,onEnter:l,onLeave:u},{default:L(()=>[ki(e.$slots,`default`)]),_:3}))}}),qk=Xde;function Jk(e){return typeof e==`string`?`'${e}'`:new Zde().serialize(e)}const Zde=function(){class e{#t=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;ethis.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function Yk(e,t){return e===t||Jk(e)===Jk(t)}function Qde(e,t,n){let r=e.findIndex(e=>Yk(e,t)),i=e.findIndex(e=>Yk(e,n));if(r===-1||i===-1)return[];let[a,o]=[r,i].sort((e,t)=>e-t);return e.slice(a,o+1)}function Xk(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n),i=t=>{let n=la(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},a=e=>(ca(r,e),e);return[i,a]}function Zk(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Qk(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function $k(e){return e?e.flatMap(e=>e.type===vo?$k(e.children):[e]):[]}const[eA,$de]=Xk(`ConfigProvider`),efe=nx(()=>{let e=F(new Map),t=F(),n=U(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=eA({scrollBody:F(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,document.body.style.pointerEvents=``,document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,ax&&i?.(),t.value=void 0};return Ba(n,(e,n)=>{if(!rx)return;if(!e){n&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let o=window.innerWidth-document.documentElement.clientWidth,s={padding:o,margin:0},c=r.scrollBody?.value?typeof r.scrollBody.value==`object`?cT({padding:r.scrollBody.value.padding===!0?o:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?o:r.scrollBody.value.margin},s):s:{padding:0,margin:0};o>0&&(document.body.style.paddingRight=typeof c.padding==`number`?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin==`number`?`${c.margin}px`:String(c.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${o}px`),document.body.style.overflow=`hidden`),ax&&(i=Ox(document,`touchmove`,e=>tfe(e),{passive:!1})),Gn(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})},{immediate:!0,flush:`sync`}),e});function tA(e){let t=Math.random().toString(36).substring(2,7),n=efe();n.value.set(t,e??!1);let r=U({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return xx(()=>{n.value.delete(t)}),r}function nA(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function rA(e){let t=eA({dir:F(`ltr`)});return U(()=>e?.value||t.dir?.value||`ltr`)}function iA(e){let t=Go(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[pe(le(t))]=(...n)=>e(t,...n)}),r}function nfe(e){let t=U(()=>I(e)),n=U(()=>new Intl.Collator(`en`,{usage:`search`,...t.value})),r=(e,t)=>t.length===0?!0:(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(0,t.length),t)===0),i=(e,t)=>t.length===0?!0:(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(-t.length),t)===0),a=(e,t)=>{if(t.length===0)return!0;e=e.normalize(`NFC`),t=t.normalize(`NFC`);let r=0,i=t.length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(n.value.compare(t,a)===0)return!0}return!1};return{startsWith:r,endsWith:i,contains:a}}let aA=0;function oA(){La(e=>{if(!rx)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??sA()),document.body.insertAdjacentElement(`beforeend`,t[1]??sA()),aA++,e(()=>{aA===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),aA--})})}function sA(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function cA(e){return U(()=>bx(e)?!!Dx(e)?.closest(`form`):!0)}function lA(){let e=Go(),t=F(),n=U(()=>[`#text`,`#comment`].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:Dx(t)),r=Object.assign({},e.exposed),i={};for(let t in e.props)Object.defineProperty(i,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(r).length>0)for(let e in r)Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>r[e]});Object.defineProperty(i,`$el`,{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function a(n){t.value=n,n&&(Object.defineProperty(i,`$el`,{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),e.exposed=i)}return{forwardRef:a,currentRef:t,currentElement:n}}function uA(e){let t=Go(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=vn(e);return U(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[le(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function dA(e,t){let n=uA(e),r=t?iA(t):{};return U(()=>({...n.value,...r}))}function rfe(e,t){let n=gx(!1,300),r=F(null),i=ex();function a(){r.value=null,n.value=!1}function o(e,t){let i=e.currentTarget,a={x:e.clientX,y:e.clientY},o=ife(a,i.getBoundingClientRect()),s=afe(a,o),c=ofe(t.getBoundingClientRect()),l=cfe([...s,...c]);r.value=l,n.value=!0}return La(n=>{if(e.value&&t.value){let r=e=>o(e,t.value),i=t=>o(t,e.value);e.value.addEventListener(`pointerleave`,r),t.value.addEventListener(`pointerleave`,i),n(()=>{e.value?.removeEventListener(`pointerleave`,r),t.value?.removeEventListener(`pointerleave`,i)})}}),La(n=>{if(r.value){let o=n=>{if(!r.value||!(n.target instanceof HTMLElement))return;let o=n.target,s={x:n.clientX,y:n.clientY},c=e.value?.contains(o)||t.value?.contains(o),l=!sfe(s,r.value),u=!!o.closest(`[data-grace-area-trigger]`);c?a():(l||u)&&(a(),i.trigger())};e.value?.ownerDocument.addEventListener(`pointermove`,o),n(()=>e.value?.ownerDocument.removeEventListener(`pointermove`,o))}}),{isPointerInTransit:n,onPointerExit:i.on}}function ife(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function afe(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ofe(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function sfe(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=l>r&&n<(c-o)*(r-s)/(l-s)+o;u&&(i=!i)}return i}function cfe(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),lfe(t)}function lfe(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ufe=function(e){if(typeof document>`u`)return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fA=new WeakMap,pA=new WeakMap,mA={},hA=0,gA=function(e){return e&&(e.host||gA(e.parentNode))},dfe=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=gA(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ffe=function(e,t,n,r){var i=dfe(t,Array.isArray(e)?e:[e]);mA[n]||(mA[n]=new WeakMap);var a=mA[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(fA.get(e)||0)+1,l=(a.get(e)||0)+1;fA.set(e,c),a.set(e,l),o.push(e),c===1&&i&&pA.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),hA++,function(){o.forEach(function(e){var t=fA.get(e)-1,i=a.get(e)-1;fA.set(e,t),a.set(e,i),t||(pA.has(e)||e.removeAttribute(r),pA.delete(e)),i||e.removeAttribute(n)}),hA--,hA||(fA=new WeakMap,fA=new WeakMap,pA=new WeakMap,mA={})}},pfe=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ufe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),ffe(r,i,n,`aria-hidden`)):function(){return null}};function _A(e){let t;Ba(()=>Dx(e),e=>{e?t=pfe(e):t&&t()}),hi(()=>{t&&t()})}let mfe=0;function vA(e,t=`reka`){if(e)return e;if(`useId`in rl)return`${t}-${Ir?.()}`;let n=eA({useId:void 0});return n.useId?`${t}-${n.useId()}`:`${t}-${++mfe}`}function yA(){return{ALT:`Alt`,ARROW_DOWN:`ArrowDown`,ARROW_LEFT:`ArrowLeft`,ARROW_RIGHT:`ArrowRight`,ARROW_UP:`ArrowUp`,BACKSPACE:`Backspace`,CAPS_LOCK:`CapsLock`,CONTROL:`Control`,DELETE:`Delete`,END:`End`,ENTER:`Enter`,ESCAPE:`Escape`,F1:`F1`,F10:`F10`,F11:`F11`,F12:`F12`,F2:`F2`,F3:`F3`,F4:`F4`,F5:`F5`,F6:`F6`,F7:`F7`,F8:`F8`,F9:`F9`,HOME:`Home`,META:`Meta`,PAGE_DOWN:`PageDown`,PAGE_UP:`PageUp`,SHIFT:`Shift`,SPACE:` `,TAB:`Tab`,CTRL:`Control`,ASTERISK:`*`,SPACE_CODE:`Space`}}function hfe(e){let t=F(),n=U(()=>t.value?.width??0),r=U(()=>t.value?.height??0);return di(()=>{let n=Dx(e);if(n){t.value={width:n.offsetWidth,height:n.offsetHeight};let e=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}});return e.observe(n,{box:`border-box`}),()=>e.unobserve(n)}else t.value=void 0}),{width:n,height:r}}function gfe(e,t){let n=F(e);function r(e){let r=t[n.value][e];return r??n.value}let i=e=>{n.value=r(e)};return{state:n,dispatch:i}}function bA(e){let t=gx(``,1e3),n=(n,r)=>{if(t.value+=n,e)e(n);else{let e=Zk(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=n.map(e=>e.textValue),o=vfe(a,t.value,i?.textValue),s=n.find(e=>e.textValue===o);return s&&s.ref.focus(),s?.ref}},r=()=>{t.value=``};return{search:t,handleTypeaheadSearch:n,resetTypeahead:r}}function _fe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function vfe(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0]),i=r?t[0]:t,a=n?e.indexOf(n):-1,o=_fe(e,Math.max(a,0)),s=i.length===1;s&&(o=o.filter(e=>e!==n));let c=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return c===n?void 0:c}function yfe(e,t){let n=F({}),r=F(`none`),i=F(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??Ex,{state:c,dispatch:l}=gfe(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(rx){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};Ba(e,async(e,i)=>{let a=i!==e;if(await Gn(),a){let a=r.value,o=xA(t.value);if(e)l(`MOUNT`),u(`enter`),o===`none`&&u(`after-enter`);else if(o===`none`||o===`undefined`||n.value?.display===`none`)l(`UNMOUNT`),u(`leave`),u(`after-leave`);else{let e=a!==o;i&&e?(l(`ANIMATION_OUT`),u(`leave`)):(l(`UNMOUNT`),u(`after-leave`))}}},{immediate:!0});let d=e=>{let n=xA(t.value),r=n.includes(e.animationName),a=c.value===`mounted`?`enter`:`leave`;if(e.target===t.value&&r&&(u(`after-${a}`),l(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=s?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}e.target===t.value&&n===`none`&&l(`ANIMATION_END`)},f=e=>{e.target===t.value&&(r.value=xA(t.value))},p=Ba(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,f),e.addEventListener(`animationcancel`,d),e.addEventListener(`animationend`,d)):(l(`ANIMATION_END`),o!==void 0&&s?.clearTimeout(o),t?.removeEventListener(`animationstart`,f),t?.removeEventListener(`animationcancel`,d),t?.removeEventListener(`animationend`,d))},{immediate:!0}),m=Ba(c,()=>{let e=xA(t.value);r.value=c.value===`mounted`?e:`none`});hi(()=>{p(),m()});let h=U(()=>[`mounted`,`unmountSuspended`].includes(c.value));return{isPresent:h}}function xA(e){return e&&getComputedStyle(e).animationName||`none`}var SA=R({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=_n(e),a=F(),{isPresent:o}=yfe(r,a);n({present:o});let s=t.default({present:o.value});s=$k(s||[]);let c=Go();if(s&&s?.length>1){let e=c?.parent?.type.name?`<${c.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(` +function VO(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=fa();n||=o?da(wO,null):null,n&&CO(n),n=SO,n._s.has(e)||(i?BO(e,t,r,n):Uue(e,r,n));let s=n._s.get(e);return s}return a.$id=e,a}function HO(e){let t=sn(e),n={};for(let r in t){let i=t[r];i.effect?n[r]=U({get:()=>e[r],set(t){e[r]=t}}):(dn(i)||nn(i))&&(n[r]=vn(e,r))}return n}const Wue=function(e){return`/`+e},UO={},G=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Wue(t,n),t in UO)return;UO[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``,o=!!n;if(o)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let s=document.createElement(`link`);if(s.rel=r?`stylesheet`:`modulepreload`,r||(s.as=`script`),s.crossOrigin=``,s.href=t,a&&s.setAttribute(`nonce`,a),document.head.appendChild(s),r)return new Promise((e,n)=>{s.addEventListener(`load`,e),s.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[]){if(e.status!==`rejected`)continue;i(e.reason)}return e().catch(i)})},Gue=e=>{let t={},n={"/src/layouts/default.vue":()=>G(()=>import(`./default-Dt3jyffF.js`),__vite__mapDeps([0,1,2])),"/src/layouts/home.vue":()=>G(()=>import(`./home-ZV8SKFZK.js`),[]),"/src/layouts/plain.vue":()=>G(()=>import(`./plain-ByGfUmM_.js`),[]),"/src/layouts/settings.vue":()=>G(()=>import(`./settings-DYXa79d5.js`),__vite__mapDeps([3,1,2,4,5])),"/src/layouts/stage.vue":()=>G(()=>import(`./stage-BoZJ1ey2.js`),[])};Object.entries(n).forEach(([e,n])=>{let r=e.replace(`/src/layouts/`,``).replace(`.vue`,``);t[r]=n});function r(e,n=!0){return e.map(e=>{if(e.children?.length>0&&(e.children=r(e.children,!1)),n){let n=!e.component&&e.children?.find(e=>(e.path===``||e.path===`/`)&&e.meta?.isLayout);if(n)return e;if(e.meta?.layout!==!1)return{path:e.path,component:t[e.meta?.layout||`default`],children:e.path===`/`?[e]:[{...e,path:``}],meta:{isLayout:!0}}}return e.meta?.layout?{path:e.path,component:t[e.meta?.layout],children:[{...e,path:``}],meta:{isLayout:!0}}:e})}return r(e)},WO=typeof document<`u`;function GO(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Kue(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&GO(e.default)}const KO=Object.assign;function qO(e,t){let n={};for(let r in t){let i=t[r];n[r]=YO(i)?i.map(e):e(i)}return n}const JO=()=>{},YO=Array.isArray,XO=/#/g,que=/&/g,Jue=/\//g,Yue=/=/g,Xue=/\?/g,ZO=/\+/g,Zue=/%5B/g,Que=/%5D/g,QO=/%5E/g,$ue=/%60/g,$O=/%7B/g,ede=/%7C/g,ek=/%7D/g,tde=/%20/g;function tk(e){return encodeURI(``+e).replace(ede,`|`).replace(Zue,`[`).replace(Que,`]`)}function nde(e){return tk(e).replace($O,`{`).replace(ek,`}`).replace(QO,`^`)}function nk(e){return tk(e).replace(ZO,`%2B`).replace(tde,`+`).replace(XO,`%23`).replace(que,`%26`).replace($ue,"`").replace($O,`{`).replace(ek,`}`).replace(QO,`^`)}function rde(e){return nk(e).replace(Yue,`%3D`)}function ide(e){return tk(e).replace(XO,`%23`).replace(Xue,`%3F`)}function ade(e){return e==null?``:ide(e).replace(Jue,`%2F`)}function rk(e){try{return decodeURIComponent(``+e)}catch{}return``+e}const ode=/\/$/,sde=e=>e.replace(ode,``);function ik(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return s=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,s>-1?s:t.length),i=e(a)),s>-1&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=dde(r??t,n),{fullPath:r+(a&&`?`)+a+o,path:r,query:i,hash:rk(o)}}function cde(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function ak(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function lde(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ok(t.matched[r],n.matched[i])&&sk(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ok(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!ude(e[n],t[n]))return!1;return!0}function ude(e,t){return YO(e)?ck(e,t):YO(t)?ck(t,e):e===t}function ck(e,t){return YO(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function dde(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}const lk={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};var uk;(function(e){e.pop=`pop`,e.push=`push`})(uk||={});var dk;(function(e){e.back=`back`,e.forward=`forward`,e.unknown=``})(dk||={});function fde(e){if(!e)if(WO){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),sde(e)}const pde=/^[^#]+#/;function mde(e,t){return e.replace(pde,`#`)+t}function hde(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const fk=()=>({left:window.scrollX,top:window.scrollY});function gde(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=hde(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function pk(e,t){let n=history.state?history.state.position-t:-1;return n+e}const mk=new Map;function _de(e,t){mk.set(e,t)}function vde(e){let t=mk.get(e);return mk.delete(e),t}let yde=()=>location.protocol+`//`+location.host;function hk(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),ak(n,``)}let o=ak(n,e);return o+r+i}function bde(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=hk(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:uk.pop,direction:u?u>0?dk.forward:dk.back:dk.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(KO({},e.state,{scroll:fk()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`beforeunload`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`beforeunload`,u,{passive:!0}),{pauseListeners:c,listen:l,destroy:d}}function gk(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?fk():null}}function xde(e){let{history:t,location:n}=window,r={value:hk(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:yde()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){let o=KO({},t.state,gk(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});a(e,o,!0),r.value=e}function s(e,n){let o=KO({},i.value,t.state,{forward:e,scroll:fk()});a(o.current,o,!0);let s=KO({},gk(r.value,e,null),{position:o.position+1},n);a(e,s,!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Sde(e){e=fde(e);let t=xde(e),n=bde(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=KO({location:``,base:e,go:r,createHref:mde.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function Cde(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Sde(e)}function wde(e){return typeof e==`string`||e&&typeof e==`object`}function _k(e){return typeof e==`string`||typeof e==`symbol`}const vk=Symbol(``);var Tde;(function(e){e[e.aborted=4]=`aborted`,e[e.cancelled=8]=`cancelled`,e[e.duplicated=16]=`duplicated`})(Tde||={});function yk(e,t){return KO(Error(),{type:e,[vk]:!0},t)}function bk(e,t){return e instanceof Error&&vk in e&&(t==null||!!(e.type&t))}const xk=`[^/]+?`,Ede={sensitive:!1,strict:!1,start:!0,end:!0},Dde=/[.+*?^${}()[\]/\\]/g;function Ode(e,t){let n=KO({},Ede,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;rt.length?t.length===1&&t[0]===80?1:-1:0}function Sk(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Ade={type:0,value:``},jde=/[a-zA-Z0-9_]/;function Mde(e){if(!e)return[[]];if(e===`/`)return[[Ade]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s{o(f)}:JO}function o(e){if(_k(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Lde(e,n);n.splice(t,0,e),e.record.name&&!Ek(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw yk(1,{location:e});s=i.record.name,a=KO(wk(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&wk(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw yk(1,{location:e,currentLocation:t});s=i.record.name,a=KO({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Ide(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function wk(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Tk(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Fde(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function Fde(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Ek(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ide(e){return e.reduce((e,t)=>KO(e,t.meta),{})}function Dk(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}function Lde(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1,a=Sk(e,t[i]);a<0?r=i:n=i+1}let i=Rde(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Rde(e){let t=e;for(;t=t.parent;)if(Ok(t)&&Sk(e,t)===0)return t}function Ok({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function zde(e){let t={};if(e===``||e===`?`)return t;let n=e[0]===`?`,r=(n?e.slice(1):e).split(`&`);for(let e=0;ee&&nk(e)):[r&&nk(r)];i.forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Bde(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=YO(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}const Vde=Symbol(``),Ak=Symbol(``),jk=Symbol(``),Mk=Symbol(``),Nk=Symbol(``);function Pk(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Fk(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(yk(4,{from:n,to:t})):e instanceof Error?c(e):wde(e)?c(yk(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Ik(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t!==`beforeRouteEnter`&&!o.instances[e])continue;if(GO(s)){let c=s.__vccOpts||s,l=c[t];l&&a.push(Fk(l,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Kue(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=s.__vccOpts||s,l=c[t];return l&&Fk(l,n,r,o,e,i)()}))}}return a}function Lk(e){let t=da(jk),n=da(Mk),r=U(()=>{let n=I(e.to);return t.resolve(n)}),i=U(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(ok.bind(null,i));if(o>-1)return o;let s=zk(e[t-2]);return t>1&&zk(i)===s&&a[a.length-1].path!==s?a.findIndex(ok.bind(null,e[t-2])):o}),a=U(()=>i.value>-1&&Gde(n.params,r.value.params)),o=U(()=>i.value>-1&&i.value===n.matched.length-1&&sk(n.params,r.value.params));function s(n={}){if(Wde(n)){let n=t[I(e.replace)?`replace`:`push`](I(e.to)).catch(JO);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:U(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Hde(e){return e.length===1?e[0]:e}const Ude=R({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Lk,setup(e,{slots:t}){let n=Zt(Lk(e)),{options:r}=da(jk),i=U(()=>({[Bk(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Bk(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Hde(t.default(n));return e.custom?r:fs(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),Rk=Ude;function Wde(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Gde(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!YO(i)||i.length!==r.length||r.some((e,t)=>e!==i[t]))return!1}return!0}function zk(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}const Bk=(e,t,n)=>e??t??n,Kde=R({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=da(Nk),i=U(()=>e.route||r.value),a=da(Ak,0),o=U(()=>{let e=I(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=U(()=>i.value.matched[o.value]);ua(Ak,U(()=>o.value+1)),ua(Vde,s),ua(Nk,i);let c=F();return Ha(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!ok(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Vk(n.default,{Component:l,route:r});let u=o.props[a],d=u?u===!0?r.params:typeof u==`function`?u(r):u:null,f=e=>{e.component.isUnmounted&&(o.instances[a]=null)},p=fs(l,KO({},d,t,{onVnodeUnmounted:f,ref:c}));return Vk(n.default,{Component:p,route:r})||p}}});function Vk(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}const Hk=Kde;function qde(e){let t=Pde(e.routes,e),n=e.parseQuery||zde,r=e.stringifyQuery||kk,i=e.history,a=Pk(),o=Pk(),s=Pk(),c=fn(lk),l=lk;WO&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=qO.bind(null,e=>``+e),d=qO.bind(null,ade),f=qO.bind(null,rk);function p(e,n){let r,i;return _k(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=KO({},a||c.value),typeof e==`string`){let r=ik(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return KO(r,o,{params:f(o.params),hash:rk(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=KO({},e,{path:ik(n,e.path,a.path).path});else{let t=KO({},e.params);for(let e in t)t[e]??delete t[e];o=KO({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=cde(r,KO({},e,{hash:nde(l),path:s.path})),m=i.createHref(p);return KO({fullPath:p,hash:l,query:r===kk?Bde(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?ik(n,e,c.value.path):KO({},e)}function y(e,t){if(l!==e)return yk(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(KO(v(e),{replace:!0}))}function S(e){let t=e.matched[e.matched.length-1];if(t&&t.redirect){let{redirect:n}=t,r=typeof n==`function`?n(e):n;return typeof r==`string`&&(r=r.includes(`?`)||r.includes(`#`)?r=v(r):{path:r},r.params={}),KO({query:e.query,hash:e.hash,params:r.path==null?e.params:{}},r)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n);if(u)return C(KO(v(u),{state:typeof u==`object`?KO({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&lde(r,i,n)&&(f=yk(16,{to:d,from:i}),re(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>bk(e)?bk(e,2)?e:ne(e):te(e,d,i)).then(e=>{if(e){if(bk(e,2))return C(KO({replace:s},v(e.to),{state:typeof e.to==`object`?KO({},a,e.to.state):a,force:o}),t||d)}else e=O(d,i,!0,s,a);return D(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=oe.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=Jde(e,t);n=Ik(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Fk(r,e,t))});let c=w.bind(null,e,t);return n.push(c),ce(n).then(()=>{n=[];for(let r of a.list())n.push(Fk(r,e,t));return n.push(c),ce(n)}).then(()=>{n=Ik(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Fk(r,e,t))});return n.push(c),ce(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(YO(r.beforeEnter))for(let i of r.beforeEnter)n.push(Fk(i,e,t));else n.push(Fk(r.beforeEnter,e,t));return n.push(c),ce(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ik(s,`beforeRouteEnter`,e,t,T),n.push(c),ce(n))).then(()=>{n=[];for(let r of o.list())n.push(Fk(r,e,t));return n.push(c),ce(n)}).catch(e=>bk(e,8)?e:Promise.reject(e))}function D(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function O(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===lk,l=WO?history.state:{};n&&(r||s?i.replace(e.fullPath,KO({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,re(e,t,n,s),ne()}let k;function A(){k||=i.listen((e,t,n)=>{if(!se.listening)return;let r=_(e),a=S(r);if(a){C(KO(a,{replace:!0,force:!0}),r).catch(JO);return}l=r;let o=c.value;WO&&_de(pk(o.fullPath,n.delta),fk()),E(r,o).catch(e=>bk(e,12)?e:bk(e,2)?(C(KO(v(e.to),{force:!0}),r).then(e=>{bk(e,20)&&!n.delta&&n.type===uk.pop&&i.go(-1,!1)}).catch(JO),Promise.reject()):(n.delta&&i.go(-n.delta,!1),te(e,r,o))).then(e=>{e||=O(r,o,!1),e&&(n.delta&&!bk(e,8)?i.go(-n.delta,!1):n.type===uk.pop&&bk(e,20)&&i.go(-1,!1)),D(r,o,e)}).catch(JO)})}let j=Pk(),M=Pk(),ee;function te(e,t,n){ne(e);let r=M.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function N(){return ee&&c.value!==lk?Promise.resolve():new Promise((e,t)=>{j.add([e,t])})}function ne(e){return ee||(ee=!e,A(),j.list().forEach(([t,n])=>e?n(e):t()),j.reset()),e}function re(t,n,r,i){let{scrollBehavior:a}=e;if(!WO||!a)return Promise.resolve();let o=!r&&vde(pk(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Gn().then(()=>a(t,n,o)).then(e=>e&&gde(e)).catch(e=>te(e,t,n))}let ie=e=>i.go(e),ae,oe=new Set,se={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:M.add,isReady:N,install(e){let t=this;e.component(`RouterLink`,Rk),e.component(`RouterView`,Hk),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>I(c)}),WO&&!ae&&c.value===lk&&(ae=!0,b(i.location).catch(e=>{}));let n={};for(let e in lk)Object.defineProperty(n,e,{get:()=>c.value[e],enumerable:!0});e.provide(jk,t),e.provide(Mk,Qt(n)),e.provide(Nk,c);let r=e.unmount;oe.add(e),e.unmount=function(){oe.delete(e),oe.size<1&&(l=lk,k&&k(),k=null,c.value=lk,ae=!1,ee=!1),r()}}};function ce(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return se}function Jde(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;ook(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>ok(e,s))||i.push(s))}return[n,r,i]}function Uk(){return da(jk)}function Wk(e){return da(Mk)}const Yde=[{path:`/`,name:`IndexScenePage`,component:()=>G(()=>import(`./pages-BO69Owbc.js`),__vite__mapDeps([6,7,1,2,8,9,10,11,12,13,14,15,16,5,17,18,19,4,20])),meta:{layout:`stage`,stageTransition:{name:`bubble-wave-out`}}},{path:`/:all(.*)`,name:`/[...all]`,component:()=>G(()=>import(`./_...all_-C1wfaneY.js`),[])},{path:`/audio`,name:`/audio`,component:()=>G(()=>import(`./audio-CRFmA9nd.js`),[])},{path:`/devtools`,children:[{path:`audio-record`,name:`/devtools/audio-record`,component:()=>G(()=>import(`./audio-record-DY40XcIB.js`),[])},{path:`background-gradient-blending`,name:`/devtools/background-gradient-blending`,component:()=>G(()=>import(`./background-gradient-blending-COcEL_ul.js`),__vite__mapDeps([21,4,5,22,23,24]))},{path:`background-removal`,name:`/devtools/background-removal`,component:()=>G(()=>import(`./background-removal-B9nXYjVG.js`),__vite__mapDeps([25,26,23,27]))},{path:`chat`,name:`/devtools/chat`,component:()=>G(()=>import(`./chat-Cp9xu-SE.js`),__vite__mapDeps([28,12]))},{path:`gesture-circle`,name:`/devtools/gesture-circle`,component:()=>G(()=>import(`./gesture-circle-DW4NEEG3.js`),__vite__mapDeps([29,19])),meta:{layout:`plain`}},{path:`image`,name:`/devtools/image`,component:()=>G(()=>import(`./image-CD7wsU_e.js`),__vite__mapDeps([30,31]))},{path:`polaroid`,name:`/devtools/polaroid`,component:()=>G(()=>import(`./polaroid-CKTdBCLi.js`),__vite__mapDeps([32,8,9,10,11,12,13,14,15,20]))},{path:`use-magic-keys`,name:`/devtools/use-magic-keys`,component:()=>G(()=>import(`./use-magic-keys-DXY8imCq.js`),[])},{path:`vibrant`,name:`/devtools/vibrant`,component:()=>G(()=>import(`./vibrant-CCIMjOyP.js`),__vite__mapDeps([33,22,23,27]))}]},{path:`/queue`,name:`/queue`,component:()=>G(()=>import(`./queue-zJgvo1Ds.js`),[])},{path:`/settings`,children:[{path:``,name:`/settings/`,component:()=>G(()=>import(`./settings-Cvdoq90V.js`),__vite__mapDeps([34,19,35])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`airi-card`,children:[{path:``,name:`/settings/airi-card/`,component:()=>G(()=>import(`./airi-card-BjmJX0Df.js`),__vite__mapDeps([36,19,37,38,15,39,40,41,42,23,27])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`components`,children:[{path:`CardCreate`,name:`/settings/airi-card/components/CardCreate`,component:()=>G(()=>import(`./CardCreate-Dr2_R_p4.js`),__vite__mapDeps([43,37]))},{path:`CardCreationDialog`,name:`/settings/airi-card/components/CardCreationDialog`,component:()=>G(()=>import(`./CardCreationDialog-nXxRyLy1.js`),__vite__mapDeps([44,38,15,39]))},{path:`CardDetailDialog`,name:`/settings/airi-card/components/CardDetailDialog`,component:()=>G(()=>import(`./CardDetailDialog-Do3bK3_b.js`),__vite__mapDeps([45,40,41,15]))},{path:`CardListItem`,name:`/settings/airi-card/components/CardListItem`,component:()=>G(()=>import(`./CardListItem-CLD9xvv2.js`),__vite__mapDeps([46,42]))},{path:`DeleteCardDialog`,name:`/settings/airi-card/components/DeleteCardDialog`,component:()=>G(()=>import(`./DeleteCardDialog-Dhf89jrW.js`),__vite__mapDeps([47,41]))}]}]},{path:`memory`,children:[{path:``,name:`/settings/memory/`,component:()=>G(()=>import(`./memory-DUTQ1GLj.js`),__vite__mapDeps([48,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`models`,children:[{path:``,name:`/settings/models/`,component:()=>G(()=>import(`./models-D7u6cTwR.js`),__vite__mapDeps([49,19,35,50,8,9,10,11,12,13,14,15,22,20])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}}]},{path:`modules`,children:[{path:``,name:`/settings/modules/`,component:()=>G(()=>import(`./modules-HikmL5Bk.js`),__vite__mapDeps([51,19,35,50])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`consciousness`,name:`/settings/modules/consciousness`,component:()=>G(()=>import(`./consciousness-mFeV5_YA.js`),__vite__mapDeps([52,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`hearing`,name:`/settings/modules/hearing`,component:()=>G(()=>import(`./hearing-YvgT5AIO.js`),__vite__mapDeps([53,19,26,5,11,16,20])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`memory-long-term`,name:`/settings/modules/memory-long-term`,component:()=>G(()=>import(`./memory-long-term-Yt8aawSw.js`),__vite__mapDeps([54,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`memory-short-term`,name:`/settings/modules/memory-short-term`,component:()=>G(()=>import(`./memory-short-term-DS04Epul.js`),__vite__mapDeps([55,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`speech`,name:`/settings/modules/speech`,component:()=>G(()=>import(`./speech-CE8U5AXR.js`),__vite__mapDeps([56,19,17,57])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`providers`,children:[{path:``,name:`/settings/providers/`,component:()=>G(()=>import(`./providers-Du_G6qMf.js`),__vite__mapDeps([58,19,35,50])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`alibaba-cloud-model-studio`,name:`/settings/providers/alibaba-cloud-model-studio`,component:()=>G(()=>import(`./alibaba-cloud-model-studio-ey2Rpach.js`),__vite__mapDeps([59,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`anthropic`,name:`/settings/providers/anthropic`,component:()=>G(()=>import(`./anthropic-BA1O0Jc0.js`),__vite__mapDeps([60,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`azure-ai-foundry`,name:`/settings/providers/azure-ai-foundry`,component:()=>G(()=>import(`./azure-ai-foundry-C1o9ptFu.js`),__vite__mapDeps([61,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`cloudflare-workers-ai`,name:`/settings/providers/cloudflare-workers-ai`,component:()=>G(()=>import(`./cloudflare-workers-ai-CdzoiEHd.js`),__vite__mapDeps([62,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`deepseek`,name:`/settings/providers/deepseek`,component:()=>G(()=>import(`./deepseek-CbhRF9iO.js`),__vite__mapDeps([63,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`elevenlabs`,name:`/settings/providers/elevenlabs`,component:()=>G(()=>import(`./elevenlabs-CaYC4yGw.js`),__vite__mapDeps([64,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`featherless-ai`,name:`/settings/providers/featherless-ai`,component:()=>G(()=>import(`./featherless-ai-DDuh-ALV.js`),__vite__mapDeps([65,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`fireworks-ai`,name:`/settings/providers/fireworks-ai`,component:()=>G(()=>import(`./fireworks-ai-XKOYd2IG.js`),__vite__mapDeps([66,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`google-generative-ai`,name:`/settings/providers/google-generative-ai`,component:()=>G(()=>import(`./google-generative-ai-Cnho5aZ0.js`),__vite__mapDeps([67,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`index-tts-vllm`,name:`/settings/providers/index-tts-vllm`,component:()=>G(()=>import(`./index-tts-vllm-BRY6l5rd.js`),__vite__mapDeps([68,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`lm-studio`,name:`/settings/providers/lm-studio`,component:()=>G(()=>import(`./lm-studio-CvN0s9DC.js`),__vite__mapDeps([69,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`microsoft-speech`,name:`/settings/providers/microsoft-speech`,component:()=>G(()=>import(`./microsoft-speech-BC5TiMaI.js`),__vite__mapDeps([70,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`mistral-ai`,name:`/settings/providers/mistral-ai`,component:()=>G(()=>import(`./mistral-ai-0-WzsJ4f.js`),__vite__mapDeps([71,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`modelscope`,name:`/settings/providers/modelscope`,component:()=>G(()=>import(`./modelscope-eu2EjaoV.js`),__vite__mapDeps([72,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`moonshot-ai`,name:`/settings/providers/moonshot-ai`,component:()=>G(()=>import(`./moonshot-ai-DLcorUbp.js`),__vite__mapDeps([73,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`novita-ai`,name:`/settings/providers/novita-ai`,component:()=>G(()=>import(`./novita-ai-CVdLD9kp.js`),__vite__mapDeps([74,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`ollama`,name:`/settings/providers/ollama`,component:()=>G(()=>import(`./ollama-BX8me0Bl.js`),__vite__mapDeps([75,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai`,name:`/settings/providers/openai`,component:()=>G(()=>import(`./openai-BeGAAHfp.js`),__vite__mapDeps([76,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-audio-speech`,name:`/settings/providers/openai-audio-speech`,component:()=>G(()=>import(`./openai-audio-speech-pkWXUv1i.js`),__vite__mapDeps([77,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-audio-transcription`,name:`/settings/providers/openai-audio-transcription`,component:()=>G(()=>import(`./openai-audio-transcription-DLiqCuDl.js`),__vite__mapDeps([78,19,20])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-compatible`,name:`/settings/providers/openai-compatible`,component:()=>G(()=>import(`./openai-compatible-BZeCaJly.js`),__vite__mapDeps([79,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-compatible-audio-speech`,name:`/settings/providers/openai-compatible-audio-speech`,component:()=>G(()=>import(`./openai-compatible-audio-speech-CwdFGeuQ.js`),__vite__mapDeps([80,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-compatible-audio-transcription`,name:`/settings/providers/openai-compatible-audio-transcription`,component:()=>G(()=>import(`./openai-compatible-audio-transcription-BZNHTpx2.js`),__vite__mapDeps([81,19,20])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openrouter-ai`,name:`/settings/providers/openrouter-ai`,component:()=>G(()=>import(`./openrouter-ai-C0dlS-yl.js`),__vite__mapDeps([82,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`player2`,name:`/settings/providers/player2`,component:()=>G(()=>import(`./player2-BlBuUwzi.js`),__vite__mapDeps([83,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`player2-speech`,name:`/settings/providers/player2-speech`,component:()=>G(()=>import(`./player2-speech-D_d58W6a.js`),__vite__mapDeps([84,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`together-ai`,name:`/settings/providers/together-ai`,component:()=>G(()=>import(`./together-ai-awCy7DTa.js`),__vite__mapDeps([85,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`volcengine`,name:`/settings/providers/volcengine`,component:()=>G(()=>import(`./volcengine-o5fMggyS.js`),__vite__mapDeps([86,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`xai`,name:`/settings/providers/xai`,component:()=>G(()=>import(`./xai-CyydJLWz.js`),__vite__mapDeps([87,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`scene`,children:[{path:``,name:`/settings/scene/`,component:()=>G(()=>import(`./scene-BBXD28Rs.js`),__vite__mapDeps([88,19,35,50])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}}]},{path:`system`,children:[{path:``,name:`/settings/system/`,component:()=>G(()=>import(`./system-Cj_-kLDI.js`),__vite__mapDeps([89,19])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`color-scheme`,name:`/settings/system/color-scheme`,component:()=>G(()=>import(`./color-scheme-BElIJRed.js`),__vite__mapDeps([90,19,91])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`developer`,name:`/settings/system/developer`,component:()=>G(()=>import(`./developer-lge657PF.js`),__vite__mapDeps([92,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`general`,name:`/settings/system/general`,component:()=>G(()=>import(`./general-xS0QHfzZ.js`),__vite__mapDeps([93,19])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]}]},{path:`/stage`,children:[{path:``,name:`StageScenePage`,component:()=>G(()=>import(`./stage-BKK7k1fe.js`),__vite__mapDeps([94,7,1,2,8,9,10,11,12,13,14,15,16,5,17,18,19,4,20])),meta:{layout:`stage`,stageTransition:{name:`bubble-wave-out`}}}]},{path:`/test`,children:[{path:`filter-message`,name:`/test/filter-message`,component:()=>G(()=>import(`./filter-message-oB4BRm9w.js`),__vite__mapDeps([95,17,57]))},{path:`queues`,children:[{path:`delays`,name:`/test/queues/delays`,component:()=>G(()=>import(`./delays-R-jzJk-u.js`),__vite__mapDeps([96,5,11,16,17,57]))},{path:`emotions`,name:`/test/queues/emotions`,component:()=>G(()=>import(`./emotions-Jhx86Tb2.js`),__vite__mapDeps([97,17,57]))},{path:`messages`,name:`/test/queues/messages`,component:()=>G(()=>import(`./messages-Bu-Aploe.js`),__vite__mapDeps([98,17,57]))}]}]}];var Xde=R({__name:`BidirectionalTransition`,props:{fromClass:{},activeClass:{},toClass:{}},setup(e){return(e,t)=>(z(),Ao(Fs,{"enter-from-class":e.fromClass,"enter-active-class":e.activeClass,"enter-to-class":e.toClass,"leave-from-class":e.toClass,"leave-active-class":e.activeClass,"leave-to-class":e.fromClass},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`enter-from-class`,`enter-active-class`,`enter-to-class`,`leave-from-class`,`leave-active-class`,`leave-to-class`]))}}),Zde=Xde,Qde=R({__name:`TransitionVertical`,props:{duration:{default:250},easingEnter:{default:`ease-in-out`},easingLeave:{default:`ease-in-out`},opacityClosed:{default:0},opacityOpened:{default:1}},setup(e){let t=e;function n(e){return{height:e.style.height,width:e.style.width,position:e.style.position,visibility:e.style.visibility,overflow:e.style.overflow,paddingTop:e.style.paddingTop,paddingBottom:e.style.paddingBottom,borderTopWidth:e.style.borderTopWidth,borderBottomWidth:e.style.borderBottomWidth,marginTop:e.style.marginTop,marginBottom:e.style.marginBottom}}let r=null,i=null;function a(e,t){let{width:n}=getComputedStyle(e);e.style.width=n,e.style.position=`absolute`,e.style.visibility=`hidden`,e.style.height=``;let{height:r}=getComputedStyle(e);return e.style.width=t.width,e.style.position=t.position,e.style.visibility=t.visibility,e.style.height=`0px`,e.style.overflow=`hidden`,t.height&&t.height!==`0px`?t.height:r}function o(e,t,n,a,o){i=e,r=e.animate(a,o),e.style.height=t.height,r.onfinish=()=>{e.style.overflow=t.overflow,n()}}function s(e,n){return[{height:`0px`,opacity:t.opacityClosed,paddingTop:`0px`,paddingBottom:`0px`,borderTopWidth:`0px`,borderBottomWidth:`0px`,marginTop:`0px`,marginBottom:`0px`},{height:e,opacity:t.opacityOpened,paddingTop:n.paddingTop,paddingBottom:n.paddingBottom,borderTopWidth:n.borderTopWidth,borderBottomWidth:n.borderBottomWidth,marginTop:n.marginTop,marginBottom:n.marginBottom}]}function c(e,t,n){return e!==i||!r||r.playState!==`running`?!1:(r.onfinish=()=>{e.style.overflow=t,n()},r.reverse(),!0)}function l(e,r){let i=e,l=n(i);if(c(i,l.overflow,r))return;let u=a(i,l),d=s(u,l),f={duration:t.duration,easing:t.easingEnter};o(i,l,r,d,f)}function u(e,r){let i=e,a=n(i);if(c(i,a.overflow,r))return;let{height:l}=getComputedStyle(i);i.style.height=l,i.style.overflow=`hidden`;let u=s(l,a).reverse(),d={duration:t.duration,easing:t.easingLeave};o(i,a,r,u,d)}return(e,t)=>(z(),Ao(Fs,{css:!1,onEnter:l,onLeave:u},{default:L(()=>[Ai(e.$slots,`default`)]),_:3}))}}),Gk=Qde;function Kk(e){return typeof e==`string`?`'${e}'`:new $de().serialize(e)}const $de=function(){class e{#t=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;ethis.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function qk(e,t){return e===t||Kk(e)===Kk(t)}function efe(e,t,n){let r=e.findIndex(e=>qk(e,t)),i=e.findIndex(e=>qk(e,n));if(r===-1||i===-1)return[];let[a,o]=[r,i].sort((e,t)=>e-t);return e.slice(a,o+1)}function Jk(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n),i=t=>{let n=da(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},a=e=>(ua(r,e),e);return[i,a]}function Yk(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Xk(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function Zk(e){return e?e.flatMap(e=>e.type===bo?Zk(e.children):[e]):[]}const[Qk,tfe]=Jk(`ConfigProvider`),nfe=rx(()=>{let e=F(new Map),t=F(),n=U(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=Qk({scrollBody:F(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,document.body.style.pointerEvents=``,document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,ox&&i?.(),t.value=void 0};return Ha(n,(e,n)=>{if(!ix)return;if(!e){n&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let o=window.innerWidth-document.documentElement.clientWidth,s={padding:o,margin:0},c=r.scrollBody?.value?typeof r.scrollBody.value==`object`?$w({padding:r.scrollBody.value.padding===!0?o:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?o:r.scrollBody.value.margin},s):s:{padding:0,margin:0};o>0&&(document.body.style.paddingRight=typeof c.padding==`number`?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin==`number`?`${c.margin}px`:String(c.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${o}px`),document.body.style.overflow=`hidden`),ox&&(i=yx(document,`touchmove`,e=>rfe(e),{passive:!1})),Gn(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})},{immediate:!0,flush:`sync`}),e});function $k(e){let t=Math.random().toString(36).substring(2,7),n=nfe();n.value.set(t,e??!1);let r=U({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return Rse(()=>{n.value.delete(t)}),r}function eA(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function tA(e){let t=Qk({dir:F(`ltr`)});return U(()=>e?.value||t.dir?.value||`ltr`)}function nA(e){let t=qo(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[pe(le(t))]=(...n)=>e(t,...n)}),r}function ife(e){let t=U(()=>I(e)),n=U(()=>new Intl.Collator(`en`,{usage:`search`,...t.value})),r=(e,t)=>t.length===0?!0:(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(0,t.length),t)===0),i=(e,t)=>t.length===0?!0:(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(-t.length),t)===0),a=(e,t)=>{if(t.length===0)return!0;e=e.normalize(`NFC`),t=t.normalize(`NFC`);let r=0,i=t.length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(n.value.compare(t,a)===0)return!0}return!1};return{startsWith:r,endsWith:i,contains:a}}let rA=0;function iA(){za(e=>{if(!ix)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??aA()),document.body.insertAdjacentElement(`beforeend`,t[1]??aA()),rA++,e(()=>{rA===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),rA--})})}function aA(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function oA(e){return U(()=>px(e)?!!vx(e)?.closest(`form`):!0)}function sA(){let e=qo(),t=F(),n=U(()=>[`#text`,`#comment`].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:vx(t)),r=Object.assign({},e.exposed),i={};for(let t in e.props)Object.defineProperty(i,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(r).length>0)for(let e in r)Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>r[e]});Object.defineProperty(i,`$el`,{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function a(n){t.value=n,n&&(Object.defineProperty(i,`$el`,{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),e.exposed=i)}return{forwardRef:a,currentRef:t,currentElement:n}}function cA(e){let t=qo(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=vn(e);return U(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[le(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function lA(e,t){let n=cA(e),r=t?nA(t):{};return U(()=>({...n.value,...r}))}function afe(e,t){let n=dx(!1,300),r=F(null),i=tx();function a(){r.value=null,n.value=!1}function o(e,t){let i=e.currentTarget,a={x:e.clientX,y:e.clientY},o=ofe(a,i.getBoundingClientRect()),s=sfe(a,o),c=cfe(t.getBoundingClientRect()),l=ufe([...s,...c]);r.value=l,n.value=!0}return za(n=>{if(e.value&&t.value){let r=e=>o(e,t.value),i=t=>o(t,e.value);e.value.addEventListener(`pointerleave`,r),t.value.addEventListener(`pointerleave`,i),n(()=>{e.value?.removeEventListener(`pointerleave`,r),t.value?.removeEventListener(`pointerleave`,i)})}}),za(n=>{if(r.value){let o=n=>{if(!r.value||!(n.target instanceof HTMLElement))return;let o=n.target,s={x:n.clientX,y:n.clientY},c=e.value?.contains(o)||t.value?.contains(o),l=!lfe(s,r.value),u=!!o.closest(`[data-grace-area-trigger]`);c?a():(l||u)&&(a(),i.trigger())};e.value?.ownerDocument.addEventListener(`pointermove`,o),n(()=>e.value?.ownerDocument.removeEventListener(`pointermove`,o))}}),{isPointerInTransit:n,onPointerExit:i.on}}function ofe(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function sfe(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function cfe(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function lfe(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=l>r&&n<(c-o)*(r-s)/(l-s)+o;u&&(i=!i)}return i}function ufe(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),dfe(t)}function dfe(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ffe=function(e){if(typeof document>`u`)return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},uA=new WeakMap,dA=new WeakMap,fA={},pA=0,mA=function(e){return e&&(e.host||mA(e.parentNode))},pfe=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=mA(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},mfe=function(e,t,n,r){var i=pfe(t,Array.isArray(e)?e:[e]);fA[n]||(fA[n]=new WeakMap);var a=fA[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(uA.get(e)||0)+1,l=(a.get(e)||0)+1;uA.set(e,c),a.set(e,l),o.push(e),c===1&&i&&dA.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),pA++,function(){o.forEach(function(e){var t=uA.get(e)-1,i=a.get(e)-1;uA.set(e,t),a.set(e,i),t||(dA.has(e)||e.removeAttribute(r),dA.delete(e)),i||e.removeAttribute(n)}),pA--,pA||(uA=new WeakMap,uA=new WeakMap,dA=new WeakMap,fA={})}},hfe=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ffe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),mfe(r,i,n,`aria-hidden`)):function(){return null}};function hA(e){let t;Ha(()=>vx(e),e=>{e?t=hfe(e):t&&t()}),gi(()=>{t&&t()})}let gfe=0;function gA(e,t=`reka`){if(e)return e;if(`useId`in cl)return`${t}-${Ir?.()}`;let n=Qk({useId:void 0});return n.useId?`${t}-${n.useId()}`:`${t}-${++gfe}`}function _A(){return{ALT:`Alt`,ARROW_DOWN:`ArrowDown`,ARROW_LEFT:`ArrowLeft`,ARROW_RIGHT:`ArrowRight`,ARROW_UP:`ArrowUp`,BACKSPACE:`Backspace`,CAPS_LOCK:`CapsLock`,CONTROL:`Control`,DELETE:`Delete`,END:`End`,ENTER:`Enter`,ESCAPE:`Escape`,F1:`F1`,F10:`F10`,F11:`F11`,F12:`F12`,F2:`F2`,F3:`F3`,F4:`F4`,F5:`F5`,F6:`F6`,F7:`F7`,F8:`F8`,F9:`F9`,HOME:`Home`,META:`Meta`,PAGE_DOWN:`PageDown`,PAGE_UP:`PageUp`,SHIFT:`Shift`,SPACE:` `,TAB:`Tab`,CTRL:`Control`,ASTERISK:`*`,SPACE_CODE:`Space`}}function _fe(e){let t=F(),n=U(()=>t.value?.width??0),r=U(()=>t.value?.height??0);return fi(()=>{let n=vx(e);if(n){t.value={width:n.offsetWidth,height:n.offsetHeight};let e=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}});return e.observe(n,{box:`border-box`}),()=>e.unobserve(n)}else t.value=void 0}),{width:n,height:r}}function vfe(e,t){let n=F(e);function r(e){let r=t[n.value][e];return r??n.value}let i=e=>{n.value=r(e)};return{state:n,dispatch:i}}function vA(e){let t=dx(``,1e3),n=(n,r)=>{if(t.value+=n,e)e(n);else{let e=Yk(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=n.map(e=>e.textValue),o=bfe(a,t.value,i?.textValue),s=n.find(e=>e.textValue===o);return s&&s.ref.focus(),s?.ref}},r=()=>{t.value=``};return{search:t,handleTypeaheadSearch:n,resetTypeahead:r}}function yfe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function bfe(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0]),i=r?t[0]:t,a=n?e.indexOf(n):-1,o=yfe(e,Math.max(a,0)),s=i.length===1;s&&(o=o.filter(e=>e!==n));let c=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return c===n?void 0:c}function xfe(e,t){let n=F({}),r=F(`none`),i=F(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??_x,{state:c,dispatch:l}=vfe(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(ix){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};Ha(e,async(e,i)=>{let a=i!==e;if(await Gn(),a){let a=r.value,o=yA(t.value);if(e)l(`MOUNT`),u(`enter`),o===`none`&&u(`after-enter`);else if(o===`none`||o===`undefined`||n.value?.display===`none`)l(`UNMOUNT`),u(`leave`),u(`after-leave`);else{let e=a!==o;i&&e?(l(`ANIMATION_OUT`),u(`leave`)):(l(`UNMOUNT`),u(`after-leave`))}}},{immediate:!0});let d=e=>{let n=yA(t.value),r=n.includes(e.animationName),a=c.value===`mounted`?`enter`:`leave`;if(e.target===t.value&&r&&(u(`after-${a}`),l(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=s?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}e.target===t.value&&n===`none`&&l(`ANIMATION_END`)},f=e=>{e.target===t.value&&(r.value=yA(t.value))},p=Ha(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,f),e.addEventListener(`animationcancel`,d),e.addEventListener(`animationend`,d)):(l(`ANIMATION_END`),o!==void 0&&s?.clearTimeout(o),t?.removeEventListener(`animationstart`,f),t?.removeEventListener(`animationcancel`,d),t?.removeEventListener(`animationend`,d))},{immediate:!0}),m=Ha(c,()=>{let e=yA(t.value);r.value=c.value===`mounted`?e:`none`});gi(()=>{p(),m()});let h=U(()=>[`mounted`,`unmountSuspended`].includes(c.value));return{isPresent:h}}function yA(e){return e&&getComputedStyle(e).animationName||`none`}var bA=R({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=_n(e),a=F(),{isPresent:o}=xfe(r,a);n({present:o});let s=t.default({present:o.value});s=Zk(s||[]);let c=qo();if(s&&s?.length>1){let e=c?.parent?.type.name?`<${c.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(` `)].join(` -`))}return()=>i.value||r.value||o.value?fs(t.default({present:o.value})[0],{ref:e=>{let t=Dx(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}});const CA=R({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=$k(n.default()),r=e.findIndex(e=>e.type!==bo);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?Vo(t,i.props):t,o=Po({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),bfe=[`area`,`img`,`input`],wA=R({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&bfe.includes(r)?()=>fs(r,t):r===`template`?()=>fs(CA,t,{default:n.default}):()=>fs(e.as,t,{default:n.default})}});function TA(){let e=F(),t=U(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Dx(e));return{primitiveElement:e,currentElement:t}}const[EA,xfe]=Xk(`DialogRoot`);var Sfe=R({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=Jx(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=F(),o=F(),{modal:s}=_n(n);return xfe({open:i,modal:s,openModal:()=>{i.value=!0},onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},contentId:``,titleId:``,descriptionId:``,triggerElement:a,contentElement:o}),(e,t)=>ki(e.$slots,`default`,{open:I(i),close:()=>i.value=!1})}}),DA=Sfe;function OA(e,t){let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r){});return La(o=>{if(!rx||!mn(n))return;let s=async n=>{let o=n.target;if(!(!t?.value||!o)){if(OA(t.value,o)){i.value=!1;return}if(n.target&&!i.value){let t={originalEvent:n};function i(){Qk(`dismissableLayer.pointerDownOutside`,e,t)}n.pointerType===`touch`?(r.removeEventListener(`click`,a.value),a.value=i,r.addEventListener(`click`,a.value,{once:!0})):i()}else r.removeEventListener(`click`,a.value);i.value=!1}},c=window.setTimeout(()=>{r.addEventListener(`pointerdown`,s)},0);o(()=>{window.clearTimeout(c),r.removeEventListener(`pointerdown`,s),r.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{mn(n)&&(i.value=!0)}}}function AA(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=F(!1);return La(a=>{if(!rx||!mn(n))return;let o=async n=>{if(!t?.value)return;await Gn(),await Gn();let r=n.target;if(!(!t.value||!r||OA(t.value,r))&&n.target&&!i.value){let t={originalEvent:n};Qk(`dismissableLayer.focusOutside`,e,t)}};r.addEventListener(`focusin`,o),a(()=>r.removeEventListener(`focusin`,o))}),{onFocusCapture:()=>{mn(n)&&(i.value=!0)},onBlurCapture:()=>{mn(n)&&(i.value=!1)}}}const jA=Zt({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var Cfe=R({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=lA(),o=U(()=>a.value?.ownerDocument??globalThis.document),s=U(()=>jA.layersRoot),c=U(()=>a.value?Array.from(s.value).indexOf(a.value):-1),l=U(()=>jA.layersWithOutsidePointerEventsDisabled.size>0),u=U(()=>{let e=Array.from(s.value),[t]=[...jA.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return c.value>=n}),d=kA(async e=>{let t=[...jA.branches].some(t=>t?.contains(e.target));!u.value||t||(r(`pointerDownOutside`,e),r(`interactOutside`,e),await Gn(),e.defaultPrevented||r(`dismiss`))},a),f=AA(e=>{let t=[...jA.branches].some(t=>t?.contains(e.target));t||(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},a);Nx(`Escape`,e=>{let t=c.value===s.value.size-1;t&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))});let p;return La(e=>{a.value&&(n.disableOutsidePointerEvents&&(jA.layersWithOutsidePointerEventsDisabled.size===0&&(p=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents=`none`),jA.layersWithOutsidePointerEventsDisabled.add(a.value)),s.value.add(a.value),e(()=>{n.disableOutsidePointerEvents&&jA.layersWithOutsidePointerEventsDisabled.size===1&&(o.value.body.style.pointerEvents=p)}))}),La(e=>{e(()=>{a.value&&(s.value.delete(a.value),jA.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(e,t)=>(z(),Oo(I(wA),{ref:I(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:be({pointerEvents:l.value?u.value?`auto`:`none`:void 0}),onFocusCapture:I(f).onFocusCapture,onBlurCapture:I(f).onBlurCapture,onPointerdownCapture:I(d).onPointerDownCapture},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),MA=Cfe;const wfe=Sse(()=>{let e=F([]);return e});function Tfe(){let e=wfe();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=NA(e.value,t),e.value.unshift(t)},remove(t){e.value=NA(e.value,t),e.value[0]?.resume()}}}function NA(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Efe(e){return e.filter(e=>e.tagName!==`A`)}const PA=`focusScope.autoFocusOnMount`,FA=`focusScope.autoFocusOnUnmount`,IA={bubbles:!1,cancelable:!0};function Dfe(e,{select:t=!1}={}){let n=Zk();for(let r of e)if(zA(r,{select:t}),Zk()!==n)return!0}function Ofe(e){let t=LA(e),n=RA(t,e),r=RA(t.reverse(),e);return[n,r]}function LA(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function RA(e,t){for(let n of e)if(!kfe(n,{upTo:t}))return n}function kfe(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Afe(e){return e instanceof HTMLInputElement&&`select`in e}function zA(e,{select:t=!1}={}){if(e&&e.focus){let n=Zk();e.focus({preventScroll:!0}),e!==n&&Afe(e)&&t&&e.select()}}var jfe=R({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{currentRef:i,currentElement:a}=lA(),o=F(null),s=Tfe(),c=Zt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});La(e=>{if(!rx)return;let t=a.value;if(!n.trapped)return;function r(e){if(c.paused||!t)return;let n=e.target;t.contains(n)?o.value=n:zA(o.value,{select:!0})}function i(e){if(c.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||zA(o.value,{select:!0}))}function s(e){let n=t.contains(o.value);n||zA(t)}document.addEventListener(`focusin`,r),document.addEventListener(`focusout`,i);let l=new MutationObserver(s);t&&l.observe(t,{childList:!0,subtree:!0}),e(()=>{document.removeEventListener(`focusin`,r),document.removeEventListener(`focusout`,i),l.disconnect()})}),La(async e=>{let t=a.value;if(await Gn(),!t)return;s.add(c);let n=Zk(),i=t.contains(n);if(!i){let e=new CustomEvent(PA,IA);t.addEventListener(PA,e=>r(`mountAutoFocus`,e)),t.dispatchEvent(e),e.defaultPrevented||(Dfe(Efe(LA(t)),{select:!0}),Zk()===n&&zA(t))}e(()=>{t.removeEventListener(PA,e=>r(`mountAutoFocus`,e));let e=new CustomEvent(FA,IA),i=e=>{r(`unmountAutoFocus`,e)};t.addEventListener(FA,i),t.dispatchEvent(e),setTimeout(()=>{e.defaultPrevented||zA(n??document.body,{select:!0}),t.removeEventListener(FA,i),s.remove(c)},0)})});function l(e){if(!n.loop&&!n.trapped||c.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=Zk();if(t&&r){let t=e.currentTarget,[i,a]=Ofe(t),o=i&&a;o?!e.shiftKey&&r===a?(e.preventDefault(),n.loop&&zA(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n.loop&&zA(a,{select:!0})):r===t&&e.preventDefault()}}return(e,t)=>(z(),Oo(I(wA),{ref_key:`currentRef`,ref:i,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:l},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),BA=jfe;const Mfe=`menu.itemSelect`,VA=[`Enter`,` `],Nfe=[`ArrowDown`,`PageUp`,`Home`],HA=[`ArrowUp`,`PageDown`,`End`],Pfe=[...Nfe,...HA];[...VA],[...VA];function UA(e){return e?`open`:`closed`}function Ffe(e){let t=Zk();for(let n of e)if(n===t||(n.focus(),Zk()!==t))return}function Ife(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=l>r&&n<(c-o)*(r-s)/(l-s)+o;u&&(i=!i)}return i}function Lfe(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return Ife(n,t)}function Rfe(e){return e.pointerType===`mouse`}var zfe=R({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=EA(),{forwardRef:a,currentElement:o}=lA();return i.titleId||=vA(void 0,`reka-dialog-title`),i.descriptionId||=vA(void 0,`reka-dialog-description`),di(()=>{i.contentElement=o,Zk()!==document.body&&(i.triggerElement.value=Zk())}),(e,t)=>(z(),Oo(I(BA),{"as-child":``,loop:``,trapped:n.trapFocus,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:L(()=>[H(I(MA),Vo({id:I(i).contentId,ref:I(a),as:e.as,"as-child":e.asChild,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":I(i).descriptionId,"aria-labelledby":I(i).titleId,"data-state":I(UA)(I(i).open.value)},e.$attrs,{onDismiss:t[0]||=e=>I(i).onOpenChange(!1),onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[2]||=e=>r(`focusOutside`,e),onInteractOutside:t[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:t[4]||=e=>r(`pointerDownOutside`,e)}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`]))}}),WA=zfe,Bfe=R({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=EA(),a=iA(r),{forwardRef:o,currentElement:s}=lA();return _A(s),(e,t)=>(z(),Oo(WA,Vo({...n,...I(a)},{ref:I(o),"trap-focus":I(i).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(e.preventDefault(),I(i).triggerElement.value?.focus())},onPointerDownOutside:t[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;r&&e.preventDefault()},onFocusOutside:t[2]||=e=>{e.preventDefault()}}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),Vfe=Bfe,Hfe=R({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=iA(r);lA();let a=EA(),o=F(!1),s=F(!1);return(e,t)=>(z(),Oo(WA,Vo({...n,...I(i)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(o.value||I(a).triggerElement.value?.focus(),e.preventDefault()),o.value=!1,s.value=!1},onInteractOutside:t[1]||=e=>{e.defaultPrevented||(o.value=!0,e.detail.originalEvent.type===`pointerdown`&&(s.value=!0));let t=e.target,n=I(a).triggerElement.value?.contains(t);n&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&s.value&&e.preventDefault()}}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))}}),Ufe=Hfe,Wfe=R({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=EA(),a=iA(r),{forwardRef:o}=lA();return(e,t)=>(z(),Oo(I(SA),{present:e.forceMount||I(i).open.value},{default:L(()=>[I(i).modal.value?(z(),Oo(Vfe,Vo({key:0,ref:I(o)},{...n,...I(a),...e.$attrs}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16)):(z(),Oo(Ufe,Vo({key:1,ref:I(o)},{...n,...I(a),...e.$attrs}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),GA=Wfe,Gfe=R({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=EA();return tA(!0),lA(),(e,n)=>(z(),Oo(I(wA),{as:e.as,"as-child":e.asChild,"data-state":I(t).open.value?`open`:`closed`,style:{"pointer-events":`auto`}},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),Kfe=Gfe,qfe=R({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=EA(),{forwardRef:n}=lA();return(e,r)=>I(t)?.modal.value?(z(),Oo(I(SA),{key:0,present:e.forceMount||I(t).open.value},{default:L(()=>[H(Kfe,Vo(e.$attrs,{ref:I(n),as:e.as,"as-child":e.asChild}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`as`,`as-child`])]),_:3},8,[`present`])):Lo(`v-if`,!0)}}),KA=qfe,Jfe=R({__name:`Teleport`,props:{to:{type:null,required:!1,default:`body`},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=kx();return(e,n)=>I(t)||e.forceMount?(z(),Oo(yr,{key:0,to:e.to,disabled:e.disabled,defer:e.defer},[ki(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):Lo(`v-if`,!0)}}),qA=Jfe,Yfe=R({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(z(),Oo(I(qA),Ee(No(t)),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))}}),JA=Yfe,Xfe=R({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=EA();return lA(),(e,r)=>(z(),Oo(I(wA),Vo(t,{id:I(n).titleId}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`id`]))}}),YA=Xfe;const XA=`data-reka-collection-item`;function ZA(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;if(n){let e=F(new Map),t=F();i={collectionRef:t,itemMap:e},ca(r,i)}else i=la(r);let a=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${XA}]`)),r=Array.from(i.itemMap.value.values()),a=r.sort((e,t)=>n.indexOf(e.ref)-n.indexOf(t.ref));return e?a:a.filter(e=>e.ref.dataset.disabled!==``)},o=R({name:`CollectionSlot`,setup(e,{slots:t}){let{primitiveElement:n,currentElement:r}=TA();return Ba(r,()=>{i.collectionRef.value=r.value}),()=>fs(CA,{ref:n},t)}}),s=R({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=TA();return La(t=>{if(a.value){let n=cn(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>fs(CA,{...n,[XA]:``,ref:r},t)}}),c=U(()=>Array.from(i.itemMap.value.values())),l=U(()=>i.itemMap.value.size);return{getItems:a,reactiveItems:c,itemMapSize:l,CollectionSlot:o,CollectionItem:s}}const Zfe=`rovingFocusGroup.onEntryFocus`,Qfe={bubbles:!1,cancelable:!0},$fe={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function epe(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function tpe(e,t,n){let r=epe(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return $fe[r]}function npe(e,t=!1){let n=Zk();for(let r of e)if(r===n||(r.focus({preventScroll:t}),Zk()!==n))return}var rpe=R({__name:`VisuallyHidden`,props:{feature:{type:String,required:!1,default:`focusable`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return(e,t)=>(z(),Oo(I(wA),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature===`focusable`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,border:0,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,wordWrap:`normal`}},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),QA=rpe,ipe=R({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,{primitiveElement:n,currentElement:r}=TA(),i=U(()=>t.checked??t.value);return Ba(i,(e,t)=>{if(!r.value)return;let n=r.value,i=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(i,`value`),o=a.set;if(o&&e!==t){let t=new Event(`input`,{bubbles:!0}),r=new Event(`change`,{bubbles:!0});o.call(n,e),n.dispatchEvent(t),n.dispatchEvent(r)}}),(e,r)=>(z(),Oo(QA,Vo({ref_key:`primitiveElement`,ref:n},{...t,...e.$attrs},{as:`input`}),null,16))}}),$A=ipe,ape=R({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,n=U(()=>typeof t.value==`object`&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=U(()=>typeof t.value==`string`||typeof t.value==`number`||typeof t.value==`boolean`||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value==`object`&&Array.isArray(t.value)?t.value.flatMap((e,n)=>typeof e==`object`?Object.entries(e).map(([e,r])=>({name:`${t.name}[${n}][${e}]`,value:r})):{name:`${t.name}[${n}]`,value:e}):t.value!==null&&typeof t.value==`object`&&!Array.isArray(t.value)?Object.entries(t.value).map(([e,n])=>({name:`${t.name}[${e}]`,value:n})):[]);return(e,i)=>(z(),B(vo,null,[Lo(` We render single input if it's required `),n.value?(z(),Oo($A,Vo({key:e.name},{...t,...e.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`])):(z(!0),B(vo,{key:1},Di(r.value,n=>(z(),Oo($A,Vo({key:n.name},{ref_for:!0},{...t,...e.$attrs},{name:n.name,value:n.value}),null,16,[`name`,`value`]))),128))],2112))}}),ej=ape;const[tj,ope]=Xk(`PopperRoot`);var spe=R({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=F();return ope({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>ki(e.$slots,`default`)}}),nj=spe,cpe=R({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=lA(),i=tj();return Ra(()=>{i.onAnchorChange(t.reference??r.value)}),(e,t)=>(z(),Oo(I(wA),{ref:I(n),as:e.as,"as-child":e.asChild},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}}),rj=cpe;const lpe={key:0,d:`M0 0L6 6L12 0`},upe={key:1,d:`M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0`};var dpe=R({__name:`Arrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return lA(),(e,n)=>(z(),Oo(I(wA),Vo(t,{width:e.width,height:e.height,viewBox:e.asChild?void 0:`0 0 12 6`,preserveAspectRatio:e.asChild?void 0:`none`}),{default:L(()=>[ki(e.$slots,`default`,{},()=>[e.rounded?(z(),B(`path`,upe)):(z(),B(`path`,lpe))])]),_:3},16,[`width`,`height`,`viewBox`,`preserveAspectRatio`]))}}),fpe=dpe;function ppe(e){return e!==null}function mpe(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=ij(n),d={start:`0%`,center:`50%`,end:`100%`}[u],f=(i.arrow?.x??0)+s/2,p=(i.arrow?.y??0)+c/2,m=``,h=``;return l===`bottom`?(m=o?d:`${f}px`,h=`${-c}px`):l===`top`?(m=o?d:`${f}px`,h=`${r.floating.height+c}px`):l===`right`?(m=`${-c}px`,h=o?d:`${p}px`):l===`left`&&(m=`${r.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:m,y:h}}}}}function ij(e){let[t,n=`center`]=e.split(`-`);return[t,n]}const hpe=[`top`,`right`,`bottom`,`left`],aj=Math.min,oj=Math.max,sj=Math.round,cj=Math.floor,lj=e=>({x:e,y:e}),gpe={left:`right`,right:`left`,bottom:`top`,top:`bottom`},_pe={start:`end`,end:`start`};function uj(e,t,n){return oj(e,aj(t,n))}function dj(e,t){return typeof e==`function`?e(t):e}function fj(e){return e.split(`-`)[0]}function pj(e){return e.split(`-`)[1]}function mj(e){return e===`x`?`y`:`x`}function hj(e){return e===`y`?`height`:`width`}function gj(e){return[`top`,`bottom`].includes(fj(e))?`y`:`x`}function _j(e){return mj(gj(e))}function vpe(e,t,n){n===void 0&&(n=!1);let r=pj(e),i=_j(e),a=hj(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=yj(o)),[o,yj(o)]}function ype(e){let t=yj(e);return[vj(e),t,vj(t)]}function vj(e){return e.replace(/start|end/g,e=>_pe[e])}function bpe(e,t,n){let r=[`left`,`right`],i=[`right`,`left`],a=[`top`,`bottom`],o=[`bottom`,`top`];switch(e){case`top`:case`bottom`:return n?t?i:r:t?r:i;case`left`:case`right`:return t?a:o;default:return[]}}function xpe(e,t,n,r){let i=pj(e),a=bpe(fj(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(vj)))),a}function yj(e){return e.replace(/left|right|bottom|top/g,e=>gpe[e])}function Spe(e){return{top:0,right:0,bottom:0,left:0,...e}}function bj(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Spe(e)}function xj(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Sj(e,t,n){let{reference:r,floating:i}=e,a=gj(t),o=_j(t),s=hj(o),c=fj(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(pj(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}const Cpe=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Sj(l,r,c),f=r,p={},m=0;for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=dj(e,t)||{};if(l==null)return{};let d=bj(u),f={x:n,y:r},p=_j(i),m=hj(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=aj(d[_],T),D=aj(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=uj(O,A,k),M=!c.arrow&&pj(i)!=null&&A!==j&&a.reference[m]/2-(Ae<=0)){var D,O;let e=((D=a.flip)?.index||0)+1,t=C[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?.placement;if(!n)switch(p){case`bestFit`:{var k;let e=(k=E.filter(e=>{if(S){let t=gj(e.placement);return t===v||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?.[0];e&&(n=e);break}case`initialPlacement`:n=s;break}if(i!==n)return{reset:{placement:n}}}return{}}}};function wj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tj(e){return hpe.some(t=>e[t]>=0)}const Epe=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=dj(e,t);switch(r){case`referenceHidden`:{let e=await Cj(t,{...i,elementContext:`reference`}),r=wj(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Tj(r)}}}case`escaped`:{let e=await Cj(t,{...i,altBoundary:!0}),r=wj(e,n.floating);return{data:{escapedOffsets:r,escaped:Tj(r)}}}default:return{}}}}};async function Dpe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fj(n),s=pj(n),c=gj(n)===`y`,l=[`left`,`top`].includes(o)?-1:1,u=a&&c?-1:1,d=dj(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const Ope=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,c=await Dpe(t,e);return o===(n=s.offset)?.placement&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},kpe=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=dj(e,t),l={x:n,y:r},u=await Cj(t,c),d=gj(fj(i)),f=mj(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=uj(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=uj(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},Ape=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=dj(e,t),u={x:n,y:r},d=gj(i),f=mj(d),p=u[f],m=u[d],h=dj(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){var _,v;let e=f===`y`?`width`:`height`,t=[`top`,`left`].includes(fj(i)),n=a.reference[d]-a.floating[e]+(t&&(_=o.offset)?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(v=o.offset)?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},jpe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=dj(e,t),u=await Cj(t,l),d=fj(i),f=pj(i),p=gj(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=aj(h-u[g],v),x=aj(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=oj(u.left,0),t=oj(u.right,0),n=oj(u.top,0),r=oj(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:oj(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:oj(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ej(){return typeof window<`u`}function Dj(e){return Aj(e)?(e.nodeName||``).toLowerCase():`#document`}function Oj(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kj(e){var t;return(t=(Aj(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Aj(e){return Ej()?e instanceof Node||e instanceof Oj(e).Node:!1}function jj(e){return Ej()?e instanceof Element||e instanceof Oj(e).Element:!1}function Mj(e){return Ej()?e instanceof HTMLElement||e instanceof Oj(e).HTMLElement:!1}function Nj(e){return!Ej()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Oj(e).ShadowRoot}function Pj(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=zj(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function Mpe(e){return[`table`,`td`,`th`].includes(Dj(e))}function Fj(e){return[`:popover-open`,`:modal`].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ij(e){let t=Lj(),n=jj(e)?zj(e):e;return[`transform`,`translate`,`scale`,`rotate`,`perspective`].some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`].some(e=>(n.willChange||``).includes(e))||[`paint`,`layout`,`strict`,`content`].some(e=>(n.contain||``).includes(e))}function Npe(e){let t=Vj(e);for(;Mj(t)&&!Rj(t);){if(Ij(t))return t;if(Fj(t))return null;t=Vj(t)}return null}function Lj(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}function Rj(e){return[`html`,`body`,`#document`].includes(Dj(e))}function zj(e){return Oj(e).getComputedStyle(e)}function Bj(e){return jj(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vj(e){if(Dj(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Nj(e)&&e.host||kj(e);return Nj(t)?t.host:t}function Hj(e){let t=Vj(e);return Rj(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mj(t)&&Pj(t)?t:Hj(t)}function Uj(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=Hj(e),a=i===(r=e.ownerDocument)?.body,o=Oj(i);if(a){let e=Wj(o);return t.concat(o,o.visualViewport||[],Pj(i)?i:[],e&&n?Uj(e):[])}return t.concat(i,Uj(i,[],n))}function Wj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gj(e){let t=zj(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Mj(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=sj(n)!==a||sj(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Kj(e){return jj(e)?e:e.contextElement}function qj(e){let t=Kj(e);if(!Mj(t))return lj(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Gj(t),o=(a?sj(n.width):n.width)/r,s=(a?sj(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Ppe=lj(0);function Jj(e){let t=Oj(e);return!Lj()||!t.visualViewport?Ppe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fpe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Oj(e)?!1:t}function Yj(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Kj(e),o=lj(1);t&&(r?jj(r)&&(o=qj(r)):o=qj(e));let s=Fpe(a,n,r)?Jj(a):lj(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Oj(a),t=r&&jj(r)?Oj(r):r,n=e,i=Wj(n);for(;i&&r&&t!==n;){let e=qj(i),t=i.getBoundingClientRect(),r=zj(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Oj(i),i=Wj(n)}}return xj({width:u,height:d,x:c,y:l})}function Xj(e,t){let n=Bj(e).scrollLeft;return t?t.left+n:Yj(kj(e)).left+n}function Zj(e,t,n){n===void 0&&(n=!1);let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Xj(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function Ipe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=kj(r),s=t?Fj(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=lj(1),u=lj(0),d=Mj(r);if((d||!d&&!a)&&((Dj(r)!==`body`||Pj(o))&&(c=Bj(r)),Mj(r))){let e=Yj(r);l=qj(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Zj(o,c,!0):lj(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Lpe(e){return Array.from(e.getClientRects())}function Rpe(e){let t=kj(e),n=Bj(e),r=e.ownerDocument.body,i=oj(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=oj(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Xj(e),s=-n.scrollTop;return zj(r).direction===`rtl`&&(o+=oj(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function zpe(e,t){let n=Oj(e),r=kj(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Lj();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function Bpe(e,t){let n=Yj(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Mj(e)?qj(e):lj(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function Qj(e,t,n){let r;if(t===`viewport`)r=zpe(e,n);else if(t===`document`)r=Rpe(kj(e));else if(jj(t))r=Bpe(t,n);else{let n=Jj(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return xj(r)}function $j(e,t){let n=Vj(e);return n===t||!jj(n)||Rj(n)?!1:zj(n).position===`fixed`||$j(n,t)}function Vpe(e,t){let n=t.get(e);if(n)return n;let r=Uj(e,[],!1).filter(e=>jj(e)&&Dj(e)!==`body`),i=null,a=zj(e).position===`fixed`,o=a?Vj(e):e;for(;jj(o)&&!Rj(o);){let t=zj(o),n=Ij(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&[`absolute`,`fixed`].includes(i.position)||Pj(o)&&!n&&$j(e,o);s?r=r.filter(e=>e!==o):i=t,o=Vj(o)}return t.set(e,r),r}function Hpe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?Fj(t)?[]:Vpe(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=Qj(t,n,i);return e.top=oj(r.top,e.top),e.right=aj(r.right,e.right),e.bottom=aj(r.bottom,e.bottom),e.left=oj(r.left,e.left),e},Qj(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Upe(e){let{width:t,height:n}=Gj(e);return{width:t,height:n}}function Wpe(e,t,n){let r=Mj(t),i=kj(t),a=n===`fixed`,o=Yj(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=lj(0);if(r||!r&&!a)if((Dj(t)!==`body`||Pj(i))&&(s=Bj(t)),r){let e=Yj(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=Xj(i));let l=i&&!r&&!a?Zj(i,s):lj(0),u=o.left+s.scrollLeft-c.x-l.x,d=o.top+s.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function eM(e){return zj(e).position===`static`}function tM(e,t){if(!Mj(e)||zj(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return kj(e)===n&&(n=n.ownerDocument.body),n}function nM(e,t){let n=Oj(e);if(Fj(e))return n;if(!Mj(e)){let t=Vj(e);for(;t&&!Rj(t);){if(jj(t)&&!eM(t))return t;t=Vj(t)}return n}let r=tM(e,t);for(;r&&Mpe(r)&&eM(r);)r=tM(r,t);return r&&Rj(r)&&eM(r)&&!Ij(r)?n:r||Npe(e)||n}const Gpe=async function(e){let t=this.getOffsetParent||nM,n=this.getDimensions,r=await n(e.floating);return{reference:Wpe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Kpe(e){return zj(e).direction===`rtl`}const qpe={convertOffsetParentRelativeRectToViewportRelativeRect:Ipe,getDocumentElement:kj,getClippingRect:Hpe,getOffsetParent:nM,getElementRects:Gpe,getClientRects:Lpe,getDimensions:Upe,getScale:qj,isElement:jj,isRTL:Kpe};function rM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jpe(e,t){let n=null,r,i=kj(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=cj(d),h=cj(i.clientWidth-(u+f)),g=cj(i.clientHeight-(d+p)),_=cj(u),v=-m+`px `+-h+`px `+-g+`px `+-_+`px`,y={rootMargin:v,threshold:oj(0,aj(1,c))||1},b=!0;function x(t){let n=t[0].intersectionRatio;if(n!==c){if(!b)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!rM(l,e.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,y)}n.observe(e)}return o(!0),a}function Ype(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Kj(e),u=i||a?[...l?Uj(l):[],...Uj(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Jpe(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?Yj(e):null;c&&g();function g(){let t=Yj(e);h&&!rM(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Xpe=Ope,Zpe=kpe,iM=Tpe,Qpe=jpe,$pe=Epe,eme=wpe,tme=Ape,nme=(e,t,n)=>{let r=new Map,i={platform:qpe,...n},a={...i.platform,_c:r};return Cpe(e,t,{...i,platform:a})};function rme(e){return typeof e==`object`&&!!e&&`$el`in e}function aM(e){if(rme(e)){let t=e.$el;return Aj(t)&&Dj(t)===`#comment`?null:t}return e}function oM(e){return typeof e==`function`?e():I(e)}function ime(e){return{name:`arrow`,options:e,fn(t){let n=aM(oM(e.element));return n==null?{}:eme({element:n,padding:e.padding}).fn(t)}}}function sM(e){if(typeof window>`u`)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function cM(e,t){let n=sM(e);return Math.round(t*n)/n}function ame(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=U(()=>{var e;return(e=oM(n.open))??!0}),a=U(()=>oM(n.middleware)),o=U(()=>{var e;return(e=oM(n.placement))??`bottom`}),s=U(()=>{var e;return(e=oM(n.strategy))??`absolute`}),c=U(()=>{var e;return(e=oM(n.transform))??!0}),l=U(()=>aM(e.value)),u=U(()=>aM(t.value)),d=F(0),f=F(0),p=F(s.value),m=F(o.value),h=fn({}),g=F(!1),_=U(()=>{let e={position:p.value,left:`0`,top:`0`};if(!u.value)return e;let t=cM(u.value,d.value),n=cM(u.value,f.value);return c.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...sM(u.value)>=1.5&&{willChange:`transform`}}:{position:p.value,left:t+`px`,top:n+`px`}}),v;function y(){if(l.value==null||u.value==null)return;let e=i.value;nme(l.value,u.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(t=>{d.value=t.x,f.value=t.y,p.value=t.strategy,m.value=t.placement,h.value=t.middlewareData,g.value=e!==!1})}function b(){typeof v==`function`&&(v(),v=void 0)}function x(){if(b(),r===void 0){y();return}if(l.value!=null&&u.value!=null){v=r(l.value,u.value,y);return}}function S(){i.value||(g.value=!1)}return Ba([a,o,s,i],y,{flush:`sync`}),Ba([l,u],x,{flush:`sync`}),Ba(i,S,{flush:`sync`}),Ve()&&He(b),{x:en(d),y:en(f),strategy:en(p),placement:en(m),middlewareData:en(h),isPositioned:en(g),floatingStyles:_,update:y}}const lM={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[ome,sme]=Xk(`PopperContent`);var cme=R({inheritAttrs:!1,__name:`PopperContent`,props:Ji({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...lM}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=tj(),{forwardRef:a,currentElement:o}=lA(),s=F(),c=F(),{width:l,height:u}=hfe(c),d=U(()=>n.side+(n.align===`center`?``:`-${n.align}`)),f=U(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=U(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=U(()=>({padding:f.value,boundary:p.value.filter(ppe),altBoundary:p.value.length>0})),h=U(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=xse(()=>[Xpe({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&iM({...m.value,...h.value}),n.avoidCollisions&&Zpe({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?tme():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&iM({...m.value,...h.value}),Qpe({...m.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),c.value&&ime({element:c.value,padding:n.arrowPadding}),mpe({arrowWidth:l.value,arrowHeight:u.value}),n.hideWhenDetached&&$pe({strategy:`referenceHidden`,...m.value})]),_=U(()=>n.reference??i.anchor.value),{floatingStyles:v,placement:y,isPositioned:b,middlewareData:x,update:S}=ame(_,s,{strategy:n.positionStrategy,placement:d,whileElementsMounted:(...e)=>{let t=Ype(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`});return t},middleware:g}),C=U(()=>ij(y.value)[0]),w=U(()=>ij(y.value)[1]);Ra(()=>{b.value&&r(`placed`)});let T=U(()=>x.value.arrow?.centerOffset!==0),E=F(``);La(()=>{o.value&&(E.value=window.getComputedStyle(o.value).zIndex)});let D=U(()=>x.value.arrow?.x??0),O=U(()=>x.value.arrow?.y??0);return sme({placedSide:C,onArrowChange:e=>c.value=e,arrowX:D,arrowY:O,shouldHideArrow:T}),(e,t)=>(z(),B(`div`,{ref_key:`floatingRef`,ref:s,"data-reka-popper-content-wrapper":``,style:be({...I(v),transform:I(b)?I(v).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:E.value,"--reka-popper-transform-origin":[I(x).transformOrigin?.x,I(x).transformOrigin?.y].join(` `),...I(x).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[H(I(wA),Vo({ref:I(a)},e.$attrs,{"as-child":n.asChild,as:e.as,"data-side":C.value,"data-align":w.value,style:{animation:I(b)?void 0:`none`}}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])],4))}}),uM=cme;const lme={top:`bottom`,right:`left`,bottom:`top`,left:`right`};var ume=R({inheritAttrs:!1,__name:`PopperArrow`,props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let{forwardRef:t}=lA(),n=ome(),r=U(()=>lme[n.placedSide.value]);return(e,i)=>(z(),B(`span`,{ref:e=>{I(n).onArrowChange(e)},style:be({position:`absolute`,left:I(n).arrowX?.value?`${I(n).arrowX?.value}px`:void 0,top:I(n).arrowY?.value?`${I(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[I(n).placedSide.value],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[I(n).placedSide.value],visibility:I(n).shouldHideArrow.value?`hidden`:void 0})},[H(fpe,Vo(e.$attrs,{ref:I(t),style:{display:`block`},as:e.as,"as-child":e.asChild,rounded:e.rounded,width:e.width,height:e.height}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`rounded`,`width`,`height`])],4))}}),dme=ume,fme=R({__name:`ComboboxAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{forwardRef:t}=lA();return(e,n)=>(z(),Oo(I(rj),{"as-child":``,reference:e.reference},{default:L(()=>[H(I(wA),Vo({ref:I(t),"as-child":e.asChild,as:e.as},e.$attrs),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`as-child`,`as`])]),_:3},8,[`reference`]))}}),pme=fme;function mme(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(e=>dM(e,t,n)):dM(e,t,n)}function dM(e,t,n){return e===void 0||t===void 0?!1:typeof e==`string`?e===t:typeof n==`function`?n(e,t):typeof n==`string`?e?.[n]===t?.[n]:Yk(e,t)}const[fM,hme]=Xk(`ListboxRoot`);var gme=R({__name:`ListboxRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},orientation:{type:String,required:!1,default:`vertical`},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},selectionBehavior:{type:String,required:!1,default:`toggle`},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`],setup(e,{expose:t,emit:n}){let r=e,i=n,{multiple:a,highlightOnHover:o,orientation:s,disabled:c,selectionBehavior:l,dir:u}=_n(r),{getItems:d}=ZA({isProvider:!0}),{handleTypeaheadSearch:f}=bA(),{primitiveElement:p,currentElement:m}=TA(),h=yA(),g=rA(u),_=cA(m),v=F(),y=F(!1),b=F(!0),x=Jx(r,`modelValue`,i,{defaultValue:r.defaultValue??(a.value?[]:void 0),passive:r.modelValue===void 0,deep:!0});function S(e){if(y.value=!0,r.multiple){let t=Array.isArray(x.value)?[...x.value]:[],n=t.findIndex(t=>dM(t,e,r.by));r.selectionBehavior===`toggle`?(n===-1?t.push(e):t.splice(n,1),x.value=t):(x.value=[e],v.value=e)}else r.selectionBehavior===`toggle`&&dM(x.value,e,r.by)?x.value=void 0:x.value=e;setTimeout(()=>{y.value=!1},1)}let C=F(null),w=F(null),T=F(!1),E=F(!1),D=ex(),O=ex(),k=ex();function A(){return d().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)}function j(e,t=!0){if(!e)return;C.value=e,b.value&&C.value.focus(),t&&C.value.scrollIntoView({block:`nearest`});let n=d().find(t=>t.ref===e);i(`highlight`,n)}function M(e){if(T.value)k.trigger(e);else{let t=d().find(t=>dM(t.value,e,r.by));t&&(C.value=t.ref,j(t.ref))}}function ee(e){C.value&&C.value.isConnected&&(e.preventDefault(),e.stopPropagation(),E.value||C.value.click())}function te(e){if(b.value){if(y.value=!0,T.value)O.trigger(e);else{let t=e.altKey||e.ctrlKey||e.metaKey;if(t&&e.key===`a`&&a.value){let t=d(),n=t.map(e=>e.value);x.value=[...n],e.preventDefault(),j(t[t.length-1].ref)}else if(!t){let t=f(e.key,d());t&&j(t)}}setTimeout(()=>{y.value=!1},1)}}function N(){E.value=!0}function ne(){Gn(()=>{E.value=!1})}function re(){Gn(()=>{let e=new KeyboardEvent(`keydown`,{key:`PageUp`});oe(e)})}function ie(e){let t=C.value;t?.isConnected&&(w.value=t),C.value=null,i(`leave`,e)}function ae(e){let t=new CustomEvent(`listbox.entryFocus`,{bubbles:!1,cancelable:!0});if(e.currentTarget?.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented)if(w.value)j(w.value);else{let e=A()?.[0];j(e)}}function oe(e){let t=tpe(e,s.value,g.value);if(!t)return;let n=A();if(C.value){if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let e=n.indexOf(C.value);n=n.slice(e+1)}se(e,n[0])}if(n.length){let e=!C.value&&t===`prev`?n.length-1:0;j(n[e])}if(T.value)return O.trigger(e)}function se(e,t){if(T.value||r.selectionBehavior!==`replace`||!a.value||!Array.isArray(x.value))return;let n=e.altKey||e.ctrlKey||e.metaKey;if(!(n&&!e.shiftKey)&&e.shiftKey){let n=d().filter(e=>e.ref.dataset.disabled!==``),r=n.find(e=>e.ref===t)?.value;if(e.key===h.END?r=n[n.length-1].value:e.key===h.HOME&&(r=n[0].value),!r||!v.value)return;let i=Qde(n.map(e=>e.value),v.value,r);x.value=i}}async function ce(e){if(await Gn(),T.value)D.trigger(e);else{let e=A(),t=e.find(e=>e.dataset.state===`checked`);t?j(t):e.length&&j(e[0])}}return Ba(x,()=>{y.value||Gn(()=>{ce()})},{immediate:!0,deep:!0}),t({highlightedElement:C,highlightItem:M,highlightFirstItem:re,highlightSelected:ce,getItems:d}),hme({modelValue:x,onValueChange:S,multiple:a,orientation:s,dir:g,disabled:c,highlightOnHover:o,highlightedElement:C,isVirtual:T,virtualFocusHook:D,virtualKeydownHook:O,virtualHighlightHook:k,by:r.by,firstValue:v,selectionBehavior:l,focusable:b,onLeave:ie,onEnter:ae,changeHighlight:j,onKeydownEnter:ee,onKeydownNavigation:oe,onKeydownTypeAhead:te,onCompositionStart:N,onCompositionEnd:ne,highlightFirstItem:re}),(e,t)=>(z(),Oo(I(wA),{ref_key:`primitiveElement`,ref:p,as:e.as,"as-child":e.asChild,dir:I(g),"data-disabled":I(c)?``:void 0,onPointerleave:ie,onFocusout:t[0]||=async e=>{let t=e.relatedTarget||e.target;await Gn(),C.value&&I(m)&&!I(m).contains(t)&&ie(e)}},{default:L(()=>[ki(e.$slots,`default`,{modelValue:I(x)}),I(_)&&e.name?(z(),Oo(I(ej),{key:0,name:e.name,value:I(x),disabled:I(c),required:e.required},null,8,[`name`,`value`,`disabled`,`required`])):Lo(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`dir`,`data-disabled`]))}}),_me=gme,vme=R({__name:`ListboxContent`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{CollectionSlot:t}=ZA(),n=fM(),r=gx(!1,10);return(e,i)=>(z(),Oo(I(t),null,{default:L(()=>[H(I(wA),{role:`listbox`,as:e.as,"as-child":e.asChild,tabindex:I(n).focusable.value?I(n).highlightedElement.value?`-1`:`0`:void 0,"aria-orientation":I(n).orientation.value,"aria-multiselectable":!!I(n).multiple.value,"data-orientation":I(n).orientation.value,onMousedown:i[0]||=Wc(e=>r.value=!0,[`left`]),onFocus:i[1]||=e=>{I(r)||I(n).onEnter(e)},onKeydown:[i[2]||=Gc(Wc(e=>{I(n).focusable.value&&I(n).onKeydownNavigation(e)},[`prevent`]),[`down`,`up`,`left`,`right`,`home`,`end`]),Gc(I(n).onKeydownEnter,[`enter`]),I(n).onKeydownTypeAhead]},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`tabindex`,`aria-orientation`,`aria-multiselectable`,`data-orientation`,`onKeydown`])]),_:3}))}}),yme=vme,bme=R({__name:`ListboxFilter`,props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=Jx(n,`modelValue`,r,{defaultValue:``,passive:n.modelValue===void 0}),a=fM(),{primitiveElement:o,currentElement:s}=TA(),c=U(()=>n.disabled||a.disabled.value||!1),l=F();return za(()=>l.value=a.highlightedElement.value?.id),di(()=>{a.focusable.value=!1,setTimeout(()=>{n.autoFocus&&s.value?.focus()},1)}),hi(()=>{a.focusable.value=!0}),(e,t)=>(z(),Oo(I(wA),{ref_key:`primitiveElement`,ref:o,as:e.as,"as-child":e.asChild,value:I(i),disabled:c.value?``:void 0,"data-disabled":c.value?``:void 0,"aria-disabled":c.value??void 0,"aria-activedescendant":l.value,type:`text`,onKeydown:[Gc(Wc(I(a).onKeydownNavigation,[`prevent`]),[`down`,`up`,`home`,`end`]),Gc(I(a).onKeydownEnter,[`enter`])],onInput:t[0]||=e=>{i.value=e.target.value,I(a).highlightFirstItem()},onCompositionstart:I(a).onCompositionStart,onCompositionend:I(a).onCompositionEnd},{default:L(()=>[ki(e.$slots,`default`,{modelValue:I(i)})]),_:3},8,[`as`,`as-child`,`value`,`disabled`,`data-disabled`,`aria-disabled`,`aria-activedescendant`,`onKeydown`,`onCompositionstart`,`onCompositionend`]))}}),xme=bme;const[Sme,Cme]=Xk(`ListboxGroup`);var wme=R({__name:`ListboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=vA(void 0,`reka-listbox-group`);return Cme({id:n}),(e,r)=>(z(),Oo(I(wA),Vo({role:`group`},t,{"aria-labelledby":I(n)}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),Tme=wme;const[Eme,Dme]=Xk(`ListboxItem`);var Ome=R({__name:`ListboxItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=vA(void 0,`reka-listbox-item`),{CollectionItem:a}=ZA(),{forwardRef:o,currentElement:s}=lA(),c=fM(),l=U(()=>s.value===c.highlightedElement.value),u=U(()=>mme(c.modelValue.value,n.value,c.by)),d=U(()=>c.disabled.value||n.disabled);async function f(e){r(`select`,e),!e?.defaultPrevented&&!d.value&&e&&(c.onValueChange(n.value),c.changeHighlight(s.value))}function p(e){let t={originalEvent:e,value:n.value};Qk(`listbox.select`,f,t)}return Dme({isSelected:u}),(e,t)=>(z(),Oo(I(a),{value:e.value},{default:L(()=>[ms([l.value,u.value],()=>H(I(wA),Vo({id:I(i)},e.$attrs,{ref:I(o),role:`option`,tabindex:I(c).focusable.value?l.value?`0`:`-1`:-1,"aria-selected":u.value,as:e.as,"as-child":e.asChild,disabled:d.value?``:void 0,"data-disabled":d.value?``:void 0,"data-highlighted":l.value?``:void 0,"data-state":u.value?`checked`:`unchecked`,onClick:p,onKeydown:Gc(Wc(p,[`prevent`]),[`space`]),onPointermove:t[0]||=e=>{I(c).highlightedElement.value!==I(s)&&(I(c).highlightOnHover.value?I(c).changeHighlight(I(s),!1):I(c).focusable.value||I(c).changeHighlight(I(s),!1))}}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`id`,`tabindex`,`aria-selected`,`as`,`as-child`,`disabled`,`data-disabled`,`data-highlighted`,`data-state`,`onKeydown`]),t,1)]),_:3},8,[`value`]))}}),kme=Ome,Ame=R({__name:`ListboxItemIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e;lA();let n=Eme();return(e,r)=>I(n).isSelected.value?(z(),Oo(I(wA),Vo({key:0,"aria-hidden":`true`},t),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16)):Lo(`v-if`,!0)}}),jme=Ame;const[pM,Mme]=Xk(`ComboboxRoot`);var Nme=R({__name:`ComboboxRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},openOnFocus:{type:Boolean,required:!1,default:!1},openOnClick:{type:Boolean,required:!1,default:!1},ignoreFilter:{type:Boolean,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=n,{primitiveElement:a,currentElement:o}=TA(),{multiple:s,disabled:c,ignoreFilter:l,resetSearchTermOnSelect:u,openOnFocus:d,openOnClick:f,dir:p}=_n(r),m=rA(p),h=Jx(r,`modelValue`,i,{defaultValue:r.defaultValue??(s.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),g=Jx(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});async function _(e){g.value=e,D.value=``,e?(await Gn(),a.value?.highlightSelected(),y.value=!0):y.value=!1,x.value?.focus(),setTimeout(()=>{!e&&r.resetSearchTermOnBlur&&v.trigger()},1)}let v=ex(),y=F(!1),b=F(!1),x=F(),S=F(),C=U(()=>a.value?.highlightedElement??void 0),w=F(new Map),T=F(new Map),{contains:E}=nfe({sensitivity:`base`}),D=F(``),O=U(e=>{if(!D.value||r.ignoreFilter||b.value)return{count:w.value.size,items:e?.items??new Map,groups:e?.groups??new Set(T.value.keys())};let t=0,n=new Map,i=new Set;for(let[e,r]of w.value){let i=E(r,D.value);n.set(e,i?1:0),i&&t++}for(let[e,t]of T.value)for(let r of t)if(n.get(r)>0){i.add(e);break}return{count:t,items:n,groups:i}}),k=Go();return di(()=>{k?.exposed&&(k.exposed.highlightItem=a.value?.highlightItem,k.exposed.highlightFirstItem=a.value?.highlightFirstItem,k.exposed.highlightSelected=a.value?.highlightSelected)}),t({filtered:O,highlightedElement:C,highlightItem:a.value?.highlightItem,highlightFirstItem:a.value?.highlightFirstItem,highlightSelected:a.value?.highlightSelected}),Mme({modelValue:h,multiple:s,disabled:c,open:g,onOpenChange:_,contentId:``,isUserInputted:y,isVirtual:b,inputElement:x,highlightedElement:C,onInputElementChange:e=>x.value=e,triggerElement:S,onTriggerElementChange:e=>S.value=e,parentElement:o,resetSearchTermOnSelect:u,onResetSearchTerm:v.on,allItems:w,allGroups:T,filterSearch:D,filterState:O,ignoreFilter:l,openOnFocus:d,openOnClick:f}),(e,t)=>(z(),Oo(I(nj),null,{default:L(()=>[H(I(_me),Vo({ref_key:`primitiveElement`,ref:a},e.$attrs,{modelValue:I(h),"onUpdate:modelValue":t[0]||=e=>dn(h)?h.value=e:null,style:{pointerEvents:I(g)?`auto`:void 0},as:e.as,"as-child":e.asChild,dir:I(m),multiple:I(s),name:e.name,required:e.required,disabled:I(c),"highlight-on-hover":!0,by:r.by,onHighlight:t[1]||=e=>i(`highlight`,e)}),{default:L(()=>[ki(e.$slots,`default`,{open:I(g),modelValue:I(h)})]),_:3},16,[`modelValue`,`style`,`as`,`as-child`,`dir`,`multiple`,`name`,`required`,`disabled`,`by`])]),_:3}))}}),Pme=Nme;const[Fme,Ime]=Xk(`ComboboxContent`);var Lme=R({__name:`ComboboxContentImpl`,props:{position:{type:String,required:!1,default:`inline`},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,{position:i}=_n(n),a=pM(),{forwardRef:o,currentElement:s}=lA();tA(n.bodyLock),_A(a.parentElement);let c=U(()=>n.position===`popper`?n:{}),l=uA(c.value),u={boxSizing:`border-box`,"--reka-combobox-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-combobox-content-available-width":`var(--reka-popper-available-width)`,"--reka-combobox-content-available-height":`var(--reka-popper-available-height)`,"--reka-combobox-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-combobox-trigger-height":`var(--reka-popper-anchor-height)`};Ime({position:i});let d=F(!1);return di(()=>{a.inputElement.value&&(d.value=s.value.contains(a.inputElement.value),d.value&&a.inputElement.value.focus())}),hi(()=>{d.value&&a.triggerElement.value?.focus()}),(e,t)=>(z(),Oo(I(yme),{"as-child":``},{default:L(()=>[H(I(MA),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onDismiss:t[0]||=e=>I(a).onOpenChange(!1),onFocusOutside:t[1]||=e=>{I(a).parentElement.value?.contains(e.target)&&e.preventDefault(),r(`focusOutside`,e)},onInteractOutside:t[2]||=e=>r(`interactOutside`,e),onEscapeKeyDown:t[3]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[4]||=e=>{I(a).parentElement.value?.contains(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)}},{default:L(()=>[(z(),Oo(Ci(I(i)===`popper`?I(uM):I(wA)),Vo({...e.$attrs,...I(l)},{id:I(a).contentId,ref:I(o),"data-state":I(a).open.value?`open`:`closed`,style:{display:`flex`,flexDirection:`column`,outline:`none`,...I(i)===`popper`?u:{}}}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`style`]))]),_:3},8,[`disable-outside-pointer-events`])]),_:3}))}}),Rme=Lme,zme=R({__name:`ComboboxContent`,props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,i=dA(n,r),{forwardRef:a}=lA(),o=pM();return o.contentId||=vA(void 0,`reka-combobox-content`),(e,t)=>(z(),Oo(I(SA),{present:e.forceMount||I(o).open.value},{default:L(()=>[H(Rme,Vo({...I(i),...e.$attrs},{ref:I(a)}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16)]),_:3},8,[`present`]))}}),Bme=zme,Vme=R({__name:`ComboboxEmpty`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=pM(),r=U(()=>n.ignoreFilter.value?n.allItems.value.size===0:n.filterState.value.count===0);return(e,n)=>r.value?(z(),Oo(I(wA),Ee(Vo({key:0},t)),{default:L(()=>[ki(e.$slots,`default`,{},()=>[n[0]||=Fo(`No options`)])]),_:3},16)):Lo(`v-if`,!0)}}),Hme=Vme;const[mM,Ume]=Xk(`ComboboxGroup`);var Wme=R({__name:`ComboboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=vA(void 0,`reka-combobox-group`),r=pM(),i=U(()=>r.ignoreFilter.value?!0:r.filterSearch.value?r.filterState.value.groups.has(n):!0),a=Ume({id:n,labelId:``});return di(()=>{r.allGroups.value.has(n)||r.allGroups.value.set(n,new Set)}),hi(()=>{r.allGroups.value.delete(n)}),(e,r)=>(z(),Oo(I(Tme),Vo({id:I(n),"aria-labelledby":I(a).labelId},t,{hidden:i.value?void 0:!0}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`hidden`]))}}),Gme=Wme,Kme=R({__name:`ComboboxInput`,props:{displayValue:{type:Function,required:!1},modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=pM(),a=fM(),{primitiveElement:o,currentElement:s}=TA(),c=Jx(n,`modelValue`,r,{passive:n.modelValue===void 0});di(()=>{s.value&&i.onInputElementChange(s.value)});function l(e){i.open.value||i.onOpenChange(!0)}function u(e){let t=e.target;i.open.value?i.filterSearch.value=t.value:(i.onOpenChange(!0),Gn(()=>{t.value&&(i.filterSearch.value=t.value,a.highlightFirstItem())}))}function d(){i.openOnFocus.value&&!i.open.value&&i.onOpenChange(!0)}function f(){i.openOnClick.value&&!i.open.value&&i.onOpenChange(!0)}function p(){let e=i.modelValue.value;n.displayValue?c.value=n.displayValue(e):!i.multiple.value&&e&&!Array.isArray(e)?typeof e==`object`?c.value=``:c.value=e.toString():c.value=``,Gn(()=>{c.value=c.value})}return i.onResetSearchTerm(()=>{p()}),Ba(i.modelValue,async()=>{!i.isUserInputted.value&&i.resetSearchTermOnSelect.value&&p()},{immediate:!0,deep:!0}),Ba(i.filterState,()=>{i.isVirtual.value||a.highlightFirstItem()}),(e,t)=>(z(),Oo(I(xme),{ref_key:`primitiveElement`,ref:o,modelValue:I(c),"onUpdate:modelValue":t[0]||=e=>dn(c)?c.value=e:null,as:e.as,"as-child":e.asChild,"auto-focus":e.autoFocus,disabled:e.disabled,"aria-expanded":I(i).open.value,"aria-controls":I(i).contentId,"aria-autocomplete":`list`,role:`combobox`,autocomplete:`off`,onClick:f,onInput:u,onKeydown:Gc(Wc(l,[`prevent`]),[`down`,`up`]),onFocus:d},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`modelValue`,`as`,`as-child`,`auto-focus`,`disabled`,`aria-expanded`,`aria-controls`,`onKeydown`]))}}),qme=Kme,Jme=R({__name:`ComboboxItem`,props:{textValue:{type:String,required:!1},value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=vA(void 0,`reka-combobox-item`),a=pM(),o=mM(null),{primitiveElement:s,currentElement:c}=TA();if(n.value===``)throw Error(`A must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.`);let l=U(()=>{if(a.isVirtual.value||a.ignoreFilter.value||!a.filterSearch.value)return!0;{let e=a.filterState.value.items.get(i);return e===void 0?!0:e>0}});return di(()=>{a.allItems.value.set(i,n.textValue||c.value.textContent||c.value.innerText);let e=o?.id;e&&(a.allGroups.value.has(e)?a.allGroups.value.get(e)?.add(i):a.allGroups.value.set(e,new Set([i])))}),hi(()=>{a.allItems.value.delete(i)}),(e,t)=>l.value?(z(),Oo(I(kme),Vo({key:0},n,{id:I(i),ref_key:`primitiveElement`,ref:s,disabled:I(a).disabled.value||e.disabled,onSelect:t[0]||=t=>{r(`select`,t),!t.defaultPrevented&&!I(a).multiple.value&&!e.disabled&&!I(a).disabled.value&&(t.preventDefault(),I(a).onOpenChange(!1),I(a).modelValue.value=n.value)}}),{default:L(()=>[ki(e.$slots,`default`,{},()=>[Fo(Pe(e.value),1)])]),_:3},16,[`id`,`disabled`])):Lo(`v-if`,!0)}}),Yme=Jme,Xme=R({__name:`ComboboxItemIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e;return(e,n)=>(z(),Oo(I(jme),Ee(No(t)),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))}}),Zme=Xme,Qme=R({__name:`ComboboxLabel`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e;lA();let n=mM({id:``,labelId:``});return n.labelId||=vA(void 0,`reka-combobox-group-label`),(e,r)=>(z(),Oo(I(wA),Vo(t,{id:I(n).labelId}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`id`]))}}),$me=Qme,ehe=R({__name:`ComboboxSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return lA(),(e,n)=>(z(),Oo(I(wA),Vo(t,{"aria-hidden":`true`}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))}}),the=ehe,nhe=R({__name:`ComboboxTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,{forwardRef:n,currentElement:r}=lA(),i=pM(),a=U(()=>t.disabled||i.disabled.value||!1);return di(()=>{r.value&&i.onTriggerElementChange(r.value)}),(e,r)=>(z(),Oo(I(wA),Vo(t,{ref:I(n),type:e.as===`button`?`button`:void 0,tabindex:`-1`,"aria-label":`Show popup`,"aria-haspopup":`listbox`,"aria-expanded":I(i).open.value,"aria-controls":I(i).contentId,"data-state":I(i).open.value?`open`:`closed`,disabled:a.value,"data-disabled":a.value?``:void 0,"aria-disabled":a.value??void 0,onClick:r[0]||=e=>I(i).onOpenChange(!I(i).open.value)}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`aria-disabled`]))}}),rhe=nhe;function ihe(e){let t=eA({nonce:F()});return U(()=>e?.value||t.nonce?.value)}var ahe=R({__name:`ComboboxViewport`,props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n}=lA(),{nonce:r}=_n(t),i=ihe(r),a=pM();return(e,r)=>(z(),B(vo,null,[H(I(wA),Vo({...e.$attrs,...t},{ref:I(n),"data-reka-combobox-viewport":``,role:`presentation`,style:{position:`relative`,flex:I(a).isVirtual.value?void 0:1,overflow:`auto`}}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`style`]),H(I(wA),{as:`style`,nonce:I(i)},{default:L(()=>r[0]||=[Fo(` /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-combobox-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-combobox-viewport]::-webkit-scrollbar { display: none; } `)]),_:1,__:[0]},8,[`nonce`])],64))}}),ohe=ahe;const[hM,she]=Xk(`PopoverRoot`);var che=R({__name:`PopoverRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i}=_n(n),a=Jx(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),o=F(),s=F(!1);return she({contentId:``,triggerId:``,modal:i,open:a,onOpenChange:e=>{a.value=e},onOpenToggle:()=>{a.value=!a.value},triggerElement:o,hasCustomAnchor:s}),(e,t)=>(z(),Oo(I(nj),null,{default:L(()=>[ki(e.$slots,`default`,{open:I(a),close:()=>a.value=!1})]),_:3}))}}),lhe=che,uhe=R({__name:`PopoverContentImpl`,props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=uA(Ese(n,`trapFocus`,`disableOutsidePointerEvents`)),{forwardRef:a}=lA(),o=hM();return oA(),(e,t)=>(z(),Oo(I(BA),{"as-child":``,loop:``,trapped:e.trapFocus,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:L(()=>[H(I(MA),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onPointerDownOutside:t[0]||=e=>r(`pointerDownOutside`,e),onInteractOutside:t[1]||=e=>r(`interactOutside`,e),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[3]||=e=>r(`focusOutside`,e),onDismiss:t[4]||=e=>I(o).onOpenChange(!1)},{default:L(()=>[H(I(uM),Vo(I(i),{id:I(o).contentId,ref:I(a),"data-state":I(o).open.value?`open`:`closed`,"aria-labelledby":I(o).triggerId,style:{"--reka-popover-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-popover-content-available-width":`var(--reka-popper-available-width)`,"--reka-popover-content-available-height":`var(--reka-popper-available-height)`,"--reka-popover-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-popover-trigger-height":`var(--reka-popper-anchor-height)`},role:`dialog`}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`aria-labelledby`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),gM=uhe,dhe=R({__name:`PopoverContentModal`,props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=hM(),a=F(!1);tA(!0);let o=dA(n,r),{forwardRef:s,currentElement:c}=lA();return _A(c),(e,t)=>(z(),Oo(gM,Vo(I(o),{ref:I(s),"trap-focus":I(i).open.value,"disable-outside-pointer-events":``,onCloseAutoFocus:t[0]||=Wc(e=>{r(`closeAutoFocus`,e),a.value||I(i).triggerElement.value?.focus()},[`prevent`]),onPointerDownOutside:t[1]||=e=>{r(`pointerDownOutside`,e);let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,i=t.button===2||n;a.value=i},onFocusOutside:t[2]||=Wc(()=>{},[`prevent`])}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),fhe=dhe,phe=R({__name:`PopoverContentNonModal`,props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=hM(),a=F(!1),o=F(!1),s=dA(n,r);return(e,t)=>(z(),Oo(gM,Vo(I(s),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{r(`closeAutoFocus`,e),e.defaultPrevented||(a.value||I(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=async e=>{r(`interactOutside`,e),e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target,n=I(i).triggerElement.value?.contains(t);n&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))}}),mhe=phe,hhe=R({__name:`PopoverContent`,props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=hM(),a=dA(n,r),{forwardRef:o}=lA();return i.contentId||=vA(void 0,`reka-popover-content`),(e,t)=>(z(),Oo(I(SA),{present:e.forceMount||I(i).open.value},{default:L(()=>[I(i).modal.value?(z(),Oo(fhe,Vo({key:0},I(a),{ref:I(o)}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16)):(z(),Oo(mhe,Vo({key:1},I(a),{ref:I(o)}),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),ghe=hhe,_he=R({__name:`PopoverPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(z(),Oo(I(qA),Ee(No(t)),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))}}),vhe=_he,yhe=R({__name:`PopoverTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=hM(),{forwardRef:r,currentElement:i}=lA();return n.triggerId||=vA(void 0,`reka-popover-trigger`),di(()=>{n.triggerElement.value=i.value}),(e,i)=>(z(),Oo(Ci(I(n).hasCustomAnchor.value?I(wA):I(rj)),{"as-child":``},{default:L(()=>[H(I(wA),{id:I(n).triggerId,ref:I(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":I(n).open.value,"aria-controls":I(n).contentId,"data-state":I(n).open.value?`open`:`closed`,as:e.as,"as-child":t.asChild,onClick:I(n).onOpenToggle},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`id`,`type`,`aria-expanded`,`aria-controls`,`data-state`,`as`,`as-child`,`onClick`])]),_:3}))}}),bhe=yhe;const[xhe,She]=Xk(`SwitchRoot`);var Che=R({__name:`SwitchRoot`,props:{defaultValue:{type:Boolean,required:!1},modelValue:{type:[Boolean,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},value:{type:String,required:!1,default:`on`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{disabled:i}=_n(n),a=Jx(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0});function o(){i.value||(a.value=!a.value)}let{forwardRef:s,currentElement:c}=lA(),l=cA(c),u=U(()=>n.id&&c.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);return She({modelValue:a,toggleCheck:o,disabled:i}),(e,t)=>(z(),Oo(I(wA),Vo(e.$attrs,{id:e.id,ref:I(s),role:`switch`,type:e.as===`button`?`button`:void 0,value:e.value,"aria-label":e.$attrs[`aria-label`]||u.value,"aria-checked":I(a),"aria-required":e.required,"data-state":I(a)?`checked`:`unchecked`,"data-disabled":I(i)?``:void 0,"as-child":e.asChild,as:e.as,disabled:I(i),onClick:o,onKeydown:Gc(Wc(o,[`prevent`]),[`enter`])}),{default:L(()=>[ki(e.$slots,`default`,{modelValue:I(a)}),I(l)&&e.name?(z(),Oo(I(ej),{key:0,type:`checkbox`,name:e.name,disabled:I(i),required:e.required,value:e.value,checked:!!I(a)},null,8,[`name`,`disabled`,`required`,`value`,`checked`])):Lo(`v-if`,!0)]),_:3},16,[`id`,`type`,`value`,`aria-label`,`aria-checked`,`aria-required`,`data-state`,`data-disabled`,`as-child`,`as`,`disabled`,`onKeydown`]))}}),whe=Che,The=R({__name:`SwitchThumb`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=xhe();return lA(),(e,n)=>(z(),Oo(I(wA),{"data-state":I(t).modelValue?.value?`checked`:`unchecked`,"data-disabled":I(t).disabled.value?``:void 0,"as-child":e.asChild,as:e.as},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`data-state`,`data-disabled`,`as-child`,`as`]))}}),Ehe=The,Dhe=R({__name:`TooltipArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return lA(),(e,n)=>(z(),Oo(I(dme),Ee(No(t)),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))}}),Ohe=Dhe;const[_M,khe]=Xk(`TooltipProvider`);var Ahe=R({inheritAttrs:!1,__name:`TooltipProvider`,props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1}},setup(e){let t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:i,disableClosingTrigger:a,ignoreNonKeyboardFocus:o,disabled:s}=_n(t);lA();let c=F(!0),l=F(!1),{start:u,stop:d}=wx(()=>{c.value=!0},r,{immediate:!1});return khe({isOpenDelayed:c,delayDuration:n,onOpen(){d(),c.value=!1},onClose(){u()},isPointerInTransitRef:l,disableHoverableContent:i,disableClosingTrigger:a,disabled:s,ignoreNonKeyboardFocus:o}),(e,t)=>ki(e.$slots,`default`)}}),jhe=Ahe;const vM=`tooltip.open`,[yM,Mhe]=Xk(`TooltipRoot`);var Nhe=R({__name:`TooltipRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;lA();let i=_M(),a=U(()=>n.disableHoverableContent??i.disableHoverableContent.value),o=U(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),s=U(()=>n.disabled??i.disabled.value),c=U(()=>n.delayDuration??i.delayDuration.value),l=U(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),u=Jx(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});Ba(u,e=>{i.onClose&&(e?(i.onOpen(),document.dispatchEvent(new CustomEvent(vM))):i.onClose())});let d=F(!1),f=F(),p=U(()=>u.value?d.value?`delayed-open`:`instant-open`:`closed`),{start:m,stop:h}=wx(()=>{d.value=!0,u.value=!0},c,{immediate:!1});function g(){h(),d.value=!1,u.value=!0}function _(){h(),u.value=!1}function v(){m()}return Mhe({contentId:``,open:u,stateAttribute:p,trigger:f,onTriggerChange(e){f.value=e},onTriggerEnter(){i.isOpenDelayed.value?v():g()},onTriggerLeave(){a.value?_():h()},onOpen:g,onClose:_,disableHoverableContent:a,disableClosingTrigger:o,disabled:s,ignoreNonKeyboardFocus:l}),(e,t)=>(z(),Oo(I(nj),null,{default:L(()=>[ki(e.$slots,`default`,{open:I(u)})]),_:3}))}}),Phe=Nhe,Fhe=R({__name:`TooltipContentImpl`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:`top`},sideOffset:{type:Number,required:!1,default:0},align:{type:null,required:!1,default:`center`},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},arrowPadding:{type:Number,required:!1,default:0},sticky:{type:String,required:!1,default:`partial`},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=yM(),{forwardRef:a}=lA(),o=Wi(),s=U(()=>o.default?.({})),c=U(()=>{if(n.ariaLabel)return n.ariaLabel;let e=``;function t(n){typeof n.children==`string`&&n.type!==bo?e+=n.children:Array.isArray(n.children)&&n.children.forEach(e=>t(e))}return s.value?.forEach(e=>t(e)),e}),l=U(()=>{let{ariaLabel:e,...t}=n;return t});return di(()=>{Ox(window,`scroll`,e=>{let t=e.target;t?.contains(i.trigger.value)&&i.onClose()}),Ox(window,vM,i.onClose)}),(e,t)=>(z(),Oo(I(MA),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:t[0]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[1]||=e=>{I(i).disableClosingTrigger.value&&I(i).trigger.value?.contains(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)},onFocusOutside:t[2]||=Wc(()=>{},[`prevent`]),onDismiss:t[3]||=e=>I(i).onClose()},{default:L(()=>[H(I(uM),Vo({ref:I(a),"data-state":I(i).stateAttribute.value},{...e.$attrs,...l.value},{style:{"--reka-tooltip-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-tooltip-content-available-width":`var(--reka-popper-available-width)`,"--reka-tooltip-content-available-height":`var(--reka-popper-available-height)`,"--reka-tooltip-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-tooltip-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:L(()=>[ki(e.$slots,`default`),H(I(QA),{id:I(i).contentId,role:`tooltip`},{default:L(()=>[Fo(Pe(c.value),1)]),_:1},8,[`id`])]),_:3},16,[`data-state`])]),_:3}))}}),bM=Fhe,Ihe=R({__name:`TooltipContentHoverable`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){let t=e,n=uA(t),{forwardRef:r,currentElement:i}=lA(),{trigger:a,onClose:o}=yM(),s=_M(),{isPointerInTransit:c,onPointerExit:l}=rfe(a,i);return s.isPointerInTransitRef=c,l(()=>{o()}),(e,t)=>(z(),Oo(bM,Vo({ref:I(r)},I(n)),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))}}),Lhe=Ihe,Rhe=R({__name:`TooltipContent`,props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:`top`},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=yM(),a=dA(n,r),{forwardRef:o}=lA();return(e,t)=>(z(),Oo(I(SA),{present:e.forceMount||I(i).open.value},{default:L(()=>[(z(),Oo(Ci(I(i).disableHoverableContent.value?bM:Lhe),Vo({ref:I(o)},I(a)),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),zhe=Rhe,Bhe=R({__name:`TooltipPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(z(),Oo(I(qA),Ee(No(t)),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16))}}),Vhe=Bhe,Hhe=R({__name:`TooltipTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=yM(),r=_M();n.contentId||=vA(void 0,`reka-tooltip-content`);let{forwardRef:i,currentElement:a}=lA(),o=F(!1),s=F(!1),c=U(()=>n.disabled.value?{}:{click:h,focus:p,pointermove:d,pointerleave:f,pointerdown:u,blur:m});di(()=>{n.onTriggerChange(a.value)});function l(){setTimeout(()=>{o.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),o.value=!0,document.addEventListener(`pointerup`,l,{once:!0})}function d(e){e.pointerType!==`touch`&&!s.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function f(){n.onTriggerLeave(),s.value=!1}function p(e){o.value||n.ignoreNonKeyboardFocus.value&&!e.target.matches?.(`:focus-visible`)||n.onOpen()}function m(){n.onClose()}function h(){n.disableClosingTrigger.value||n.onClose()}return(e,r)=>(z(),Oo(I(rj),{"as-child":``,reference:e.reference},{default:L(()=>[H(I(wA),Vo({ref:I(i),"aria-describedby":I(n).open.value?I(n).contentId:void 0,"data-state":I(n).stateAttribute.value,as:e.as,"as-child":t.asChild,"data-grace-area-trigger":``},ji(c.value)),{default:L(()=>[ki(e.$slots,`default`)]),_:3},16,[`aria-describedby`,`data-state`,`as`,`as-child`])]),_:3},8,[`reference`]))}}),Uhe=Hhe,Whe=R({__name:`Checkbox`,props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=Wa(e,`modelValue`);return(e,n)=>(z(),Oo(I(whe),{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,transition:`background duration-250 ease-in-out`,outline:`focus-within:none`,flex:`~`,border:`neutral-300 dark:neutral-700 data-[state=checked]:primary-200 data-[state=unchecked]:neutral-300 focus-within:neutral-800`,bg:`data-[state=checked]:primary-400 data-[state=unchecked]:neutral-300 data-[state=checked]:dark:primary-400/80 dark:data-[state=unchecked]:neutral-800`,relative:``,"h-7":``,w:`12.5`,"rounded-full":``,shadow:`sm focus-within:shadow-neutral-800 focus-within:[0_0_0_1px] `},{default:L(()=>[H(I(Ehe),{"my-auto":``,"size-6":``,flex:``,"items-center":``,"justify-center":``,"translate-x":`0.5 data-[state=checked]:full`,"rounded-full":``,"bg-white":``,"text-xs":``,"shadow-xl":``,transition:`transform duration-250 ease-in-out`,"will-change-transform":``})]),_:1},8,[`modelValue`]))}}),xM=Whe;const Ghe={class:`line-clamp-1 overflow-hidden text-ellipsis whitespace-nowrap`};var Khe=R({__name:`Combobox`,props:Yi({options:{},placeholder:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);function r(e){let n=t.options.flatMap(e=>e.children).find(t=>t?.value===e);return n?n.label:t.placeholder||``}return(e,i)=>(z(),Oo(I(Pme),{modelValue:n.value,"onUpdate:modelValue":i[0]||=e=>n.value=e,class:`relative w-full`},{default:L(()=>[H(I(pme),{class:Te([`w-full inline-flex items-center justify-between rounded-xl border px-3 leading-none h-10 gap-[5px] outline-none`,`text-sm text-neutral-700 dark:text-neutral-200 data-[placeholder]:text-neutral-200`,`bg-white dark:bg-neutral-900 disabled:bg-neutral-100 hover:bg-neutral-50 dark:disabled:bg-neutral-900 dark:hover:bg-neutral-700`,`border-neutral-200 dark:border-neutral-800 border-solid border-2 focus:border-primary-300 dark:focus:border-primary-400/50`,`shadow-sm focus:shadow-[0_0_0_2px] focus:shadow-black`,`transition-colors duration-200 ease-in-out`])},{default:L(()=>[H(I(qme),{class:Te([`!bg-transparent outline-none h-full selection:bg-grass5 placeholder-stone-400 w-full`,`text-neutral-700 dark:text-neutral-200`,`transition-colors duration-200 ease-in-out`]),placeholder:t.placeholder,"display-value":e=>r(e)},null,8,[`placeholder`,`display-value`]),H(I(rhe),null,{default:L(()=>[...i[1]||=[V(`div`,{"i-solar:alt-arrow-down-linear":``,class:Te([`h-4 w-4`,`text-neutral-700 dark:text-neutral-200`,`transition-colors duration-200 ease-in-out`])},null,-1)]]),_:1})]),_:1}),H(I(Bme),{"avoid-collisions":!0,class:Te([`absolute z-10 w-full mt-1 min-w-[160px] overflow-hidden rounded-xl shadow-sm border will-change-[opacity,transform] max-h-50dvh`,`data-[side=top]:animate-slideDownAndFade data-[side=right]:animate-slideLeftAndFade data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade`,`bg-white dark:bg-neutral-900`,`border-neutral-200 dark:border-neutral-800 border-solid border-2 focus:border-neutral-300 dark:focus:border-neutral-600`])},{default:L(()=>[H(I(ohe),{class:`p-[2px]`},{default:L(()=>[H(I(Hme),{class:Te([`font-medium py-2 px-2`,`text-xs text-neutral-700 dark:text-neutral-200`,`transition-colors duration-200 ease-in-out`])}),(z(!0),B(vo,null,Di(e.options,(e,t)=>(z(),Oo(I(Gme),{key:e.name,class:`overflow-x-hidden`},{default:L(()=>[t===0?Lo(``,!0):(z(),Oo(I(the),{key:0,class:`m-[5px] h-[1px] bg-neutral-400`})),H(I($me),{class:Te([`px-[25px] text-xs leading-[25px]`,`text-neutral-500 dark:text-neutral-400`,`transition-colors duration-200 ease-in-out`])},{default:L(()=>[Fo(Pe(e.groupLabel),1)]),_:2},1024),(z(!0),B(vo,null,Di(e.children,e=>(z(),Oo(I(Yme),{key:e.label,"text-value":e.label,value:e.value,class:Te([`leading-none rounded-lg flex items-center h-8 pr-[0.5rem] pl-[1.5rem] relative select-none data-[disabled]:pointer-events-none data-[highlighted]:outline-none`,`data-[highlighted]:bg-neutral-100 dark:data-[highlighted]:bg-neutral-800`,`text-sm text-neutral-700 dark:text-neutral-200 data-[disabled]:text-neutral-400 dark:data-[disabled]:text-neutral-600 data-[highlighted]:text-grass1`,`transition-colors duration-200 ease-in-out`,`cursor-pointer`])},{default:L(()=>[H(I(Zme),{class:`absolute left-0 w-[25px] inline-flex items-center justify-center opacity-30`},{default:L(()=>[...i[2]||=[V(`div`,{"i-solar:alt-arrow-right-outline":``},null,-1)]]),_:1}),V(`span`,Ghe,Pe(e.label),1)]),_:2},1032,[`text-value`,`value`]))),128))]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,[`modelValue`]))}}),qhe=Khe;const Jhe={flex:`~ col gap-4`},Yhe={flex:`~ row`,"items-center":``,"gap-2":``},Xhe={flex:`1`},Zhe={class:`flex items-center gap-1 text-sm font-medium`},Qhe={class:`text-xs text-neutral-500 dark:text-neutral-400`};var $he=R({__name:`FieldCheckbox`,props:Yi({label:{},description:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);return(e,r)=>(z(),B(`label`,Jhe,[V(`div`,Yhe,[V(`div`,Xhe,[V(`div`,Zhe,[ki(e.$slots,`label`,{},()=>[Fo(Pe(t.label),1)])]),V(`div`,Qhe,[ki(e.$slots,`description`,{},()=>[Fo(Pe(t.description),1)])])]),H(xM,{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e},null,8,[`modelValue`])])]))}}),SM=$he;const ege=[`type`];var tge=R({__name:`Input`,props:Yi({type:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);return(e,r)=>cr((z(),B(`input`,{"onUpdate:modelValue":r[0]||=e=>n.value=e,type:t.type||`text`,border:`focus:primary-300 dark:focus:primary-400/50 2 solid neutral-100 dark:neutral-900`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-50 dark:neutral-950 focus:neutral-50 dark:focus:neutral-900`},null,8,ege)),[[Vc,n.value]])}}),CM=tge;const nge={"max-w-full":``},rge={flex:`~ col gap-4`},ige={class:`flex items-center gap-1 text-sm font-medium`},age={key:0,class:`text-red-500`},oge={class:`text-xs text-neutral-500 dark:text-neutral-400`,"text-nowrap":``},sge=[`type`,`placeholder`];var cge=R({__name:`FieldInput`,props:Yi({label:{},description:{},placeholder:{},required:{type:Boolean},type:{},inputClass:{},singleLine:{type:Boolean,default:!0}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);return(e,r)=>(z(),B(`div`,nge,[V(`label`,rge,[V(`div`,null,[V(`div`,ige,[ki(e.$slots,`label`,{},()=>[Fo(Pe(t.label),1)]),t.required===!1?Lo(``,!0):(z(),B(`span`,age,`*`))]),V(`div`,oge,[ki(e.$slots,`description`,{},()=>[Fo(Pe(t.description),1)])])]),e.singleLine?(z(),Oo(CM,{key:0,modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,type:t.type,placeholder:t.placeholder,class:Te(t.inputClass)},null,8,[`modelValue`,`type`,`placeholder`,`class`])):cr((z(),B(`textarea`,{key:1,"onUpdate:modelValue":r[1]||=e=>n.value=e,type:t.type,placeholder:t.placeholder,class:Te(t.inputClass),border:`focus:primary-300 dark:focus:primary-400/50 2 solid neutral-100 dark:neutral-900`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-50 dark:neutral-950 focus:neutral-50 dark:focus:neutral-900`},null,10,sge)),[[Nc,n.value]])])]))}}),wM=cge;const lge={flex:`~ gap-2`};var uge=R({__name:`InputKeyValue`,props:Yi({name:{},keyPlaceholder:{},valuePlaceholder:{}},{propertyKey:{required:!0},propertyKeyModifiers:{},propertyValue:{required:!0},propertyValueModifiers:{}}),emits:[`update:propertyKey`,`update:propertyValue`],setup(e){let t=e,n=Wa(e,`propertyKey`),r=Wa(e,`propertyValue`);return(e,i)=>(z(),B(`div`,lge,[H(CM,{modelValue:n.value,"onUpdate:modelValue":i[0]||=e=>n.value=e,placeholder:t.keyPlaceholder,class:`w-1/2`},null,8,[`modelValue`,`placeholder`]),H(CM,{modelValue:r.value,"onUpdate:modelValue":i[1]||=e=>r.value=e,placeholder:t.valuePlaceholder,class:`w-1/2`},null,8,[`modelValue`,`placeholder`])]))}}),dge=uge;const fge={"max-w-full":``},pge={flex:`~ col gap-2`},mge={class:`flex items-center gap-1 text-sm font-medium`},hge={key:0,class:`text-red-500`},gge={class:`text-xs text-neutral-500 dark:text-neutral-400`,"text-nowrap":``},_ge={flex:`~ col gap-2`},vge=[`onClick`];var yge=R({__name:`FieldKeyValues`,props:Yi({label:{},description:{},name:{},keyPlaceholder:{},valuePlaceholder:{},required:{type:Boolean},inputClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:Yi([`remove`,`add`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=Wa(e,`modelValue`),a=F(``),o=F(``);return Ba([a,o],()=>{r(`add`,a.value,o.value)}),(e,t)=>{let a=wi(`auto-animate`);return z(),B(`div`,fge,[V(`label`,pge,[V(`div`,null,[V(`div`,mge,[ki(e.$slots,`label`,{},()=>[Fo(Pe(n.label),1)]),n.required===!1?Lo(``,!0):(z(),B(`span`,hge,`*`))]),V(`div`,gge,[ki(e.$slots,`description`,{},()=>[Fo(Pe(n.description),1)])])]),cr((z(),B(`div`,_ge,[(z(!0),B(vo,null,Di(i.value,(e,i)=>(z(),B(`div`,{key:i,"w-full":``,flex:``,"items-center":``,"gap-2":``},[H(dge,{"property-key":e.key,"onUpdate:propertyKey":t=>e.key=t,"property-value":e.value,"onUpdate:propertyValue":t=>e.value=t,"key-placeholder":n.keyPlaceholder,"value-placeholder":n.valuePlaceholder,"w-full":``},null,8,[`property-key`,`onUpdate:propertyKey`,`property-value`,`onUpdate:propertyValue`,`key-placeholder`,`value-placeholder`]),V(`button`,{onClick:e=>r(`remove`,i)},[...t[0]||=[V(`div`,{"i-solar:minus-circle-line-duotone":``,size:`6`},null,-1)]],8,vge)]))),128))])),[[a]])])])}}}),bge=yge;const xge=[`min`,`max`,`step`];var Sge=R({__name:`Range`,props:Yi({min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},thumbColor:{default:`#9090906e`},trackColor:{default:`gray`},trackValueColor:{default:`red`}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`),r=U(()=>t.min*1e4),i=U(()=>t.max*1e4),a=U(()=>t.step*1e4),o=F(),s=U({get:()=>n.value*1e4,set:e=>{n.value=e/1e4,c()}});di(()=>c()),Ba(s,()=>c(),{immediate:!0}),Ba([r,i,a],()=>c(),{immediate:!0});function c(){o.value&&(o.value.style.setProperty(`--value`,s.value.toString()),o.value.style.setProperty(`--min`,o.value.min?o.value.min:t.min.toString()),o.value.style.setProperty(`--max`,o.value.max?o.value.max:t.max.toString()))}function l(e){let t=e.target;t.style.setProperty(`--value`,t.value)}return(e,t)=>cr((z(),B(`input`,{ref_key:`sliderRef`,ref:o,"onUpdate:modelValue":t[0]||=e=>s.value=e,type:`range`,min:r.value,max:i.value,step:a.value,class:`slider-progress form_input-range`,onInput:l},null,40,xge)),[[Nc,s.value,void 0,{number:!0}]])}}),TM=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Cge=TM(Sge,[[`__scopeId`,`data-v-3a236ac7`]]);const wge={flex:`~ row`,"items-center":``,"gap-2":``},Tge={flex:`1`},Ege={class:`flex items-center gap-1 text-sm font-medium`},Dge={class:`text-xs text-neutral-500 dark:text-neutral-400`},Oge={"font-mono":``},kge={flex:`~ row`,"items-center":``,"gap-2":``};var Age=R({__name:`FieldRange`,props:Yi({min:{},max:{},step:{},label:{},description:{},formatValue:{},as:{default:`label`}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);return(e,r)=>(z(),Oo(t.as,{flex:`~ col gap-4`},{default:L(()=>[V(`div`,wge,[V(`div`,Tge,[V(`div`,Ege,[ki(e.$slots,`label`,{},()=>[Fo(Pe(e.label),1)])]),V(`div`,Dge,[ki(e.$slots,`description`,{},()=>[Fo(Pe(e.description),1)])])]),V(`span`,Oge,Pe(t.formatValue?.(n.value)||n.value),1)]),V(`div`,kge,[H(Cge,{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,min:e.min||0,max:e.max||1,step:e.step||.01,"w-full":``},null,8,[`modelValue`,`min`,`max`,`step`])])]),_:3}))}}),EM=Age;const jge={flex:`~ col gap-4`},Mge={class:`flex items-center gap-1 break-words text-sm font-medium`},Nge={class:`break-words text-xs text-neutral-500 dark:text-neutral-400`};var Pge=R({__name:`FieldSelect`,props:Yi({label:{},description:{},options:{},placeholder:{},disabled:{type:Boolean},layout:{default:`horizontal`},selectClass:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);return(e,r)=>(z(),B(`label`,jge,[V(`div`,{class:Te([`items-center justify-center`,[t.layout===`horizontal`?`grid grid-cols-3 gap-2`:`grid grid-cols-2 gap-2`]])},[V(`div`,{class:Te([`w-full`,[t.layout===`horizontal`?`col-span-2`:`row-span-1`]])},[V(`div`,Mge,[ki(e.$slots,`label`,{},()=>[Fo(Pe(t.label),1)])]),V(`div`,Nge,[ki(e.$slots,`description`,{},()=>[Fo(Pe(t.description),1)])])],2),ki(e.$slots,`default`,{},()=>[H(I(OM),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,options:t.options?.filter(e=>e.label&&e.value)||[],placeholder:t.placeholder,disabled:t.disabled,title:e.label,class:Te([...t.selectClass?typeof t.selectClass==`string`?[t.selectClass]:t.selectClass:[],t.layout===`horizontal`?`col-span-1`:`row-span-2`])},{default:L(({value:e})=>[Fo(Pe(t.options?.find(t=>t.value===e)?.label||t.placeholder),1)]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`,`title`,`class`])])],2)]))}}),DM=Pge;const Fge={class:`max-w-full`},Ige={class:`flex flex-col gap-2`},Lge={class:`flex items-center gap-1 text-sm font-medium`},Rge={key:0,class:`text-red-500`},zge={class:`text-nowrap text-xs text-neutral-500 dark:text-neutral-400`},Bge={class:`~ col gap-2`},Vge=[`onClick`];var Hge=R({__name:`FieldValues`,props:Yi({label:{},description:{},name:{},valuePlaceholder:{},required:{type:Boolean},inputClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:Yi([`remove`,`add`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=Wa(e,`modelValue`);function a(){i.value.push(``),r(`add`)}function o(e){i.value.splice(e,1),r(`remove`,e)}return(e,t)=>{let r=wi(`auto-animate`);return z(),B(`div`,Fge,[V(`label`,Ige,[V(`div`,null,[V(`div`,Lge,[ki(e.$slots,`label`,{},()=>[Fo(Pe(n.label),1)]),n.required===!1?Lo(``,!0):(z(),B(`span`,Rge,`*`))]),V(`div`,zge,[ki(e.$slots,`description`,{},()=>[Fo(Pe(n.description),1)])])]),cr((z(),B(`div`,Bge,[(z(!0),B(vo,null,Di(i.value,(e,t)=>(z(),B(`div`,{key:t,class:`w-full flex items-center gap-2`},[H(CM,{modelValue:i.value[t],"onUpdate:modelValue":e=>i.value[t]=e,placeholder:n.valuePlaceholder,class:`w-90%`},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`]),V(`button`,{"i-solar:minus-circle-line-duotone":``,size:`6`,class:`min-w-20px w-10% flex text-red-500`,onClick:e=>o(t)},null,8,Vge)]))),128)),V(`div`,{"i-solar:add-circle-line-duotone":``,size:`6`,class:`mt-2 w-4/5 text-blue-500`,onClick:a})])),[[r]])])])}}}),Uge=Hge;const Wge=[`disabled`];var Gge=R({__name:`ColorHueRange`,props:Yi({disabled:{type:Boolean},class:{}},{colorValue:{type:String,default:``},colorValueModifiers:{}}),emits:[`update:colorValue`],setup(e){let t=e,n=Wa(e,`colorValue`);return(e,r)=>cr((z(),B(`input`,{"onUpdate:modelValue":r[0]||=e=>n.value=e,type:`range`,min:`0`,max:`360`,step:`0.01`,class:Te([`color-hue-range`,[t.disabled?`opacity-25 cursor-not-allowed`:`cursor-pointer`,t.class||``]]),transition:`all ease-in-out duration-250`,disabled:t.disabled},null,10,Wge)),[[Nc,n.value]])}}),Kge=TM(Gge,[[`__scopeId`,`data-v-3d01d2fa`]]);const qge=[`min`,`max`,`step`];var Jge=R({__name:`RoundRange`,props:Yi({min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`),r=U(()=>t.min*1e4),i=U(()=>t.max*1e4),a=U(()=>t.step*1e4),o=F(),s=U({get:()=>n.value*1e4,set:e=>{n.value=e/1e4,c()}});di(()=>c()),Ba(s,()=>c(),{immediate:!0}),Ba([r,i,a],()=>c(),{immediate:!0});function c(){o.value&&(o.value.style.setProperty(`--value`,s.value.toString()),o.value.style.setProperty(`--min`,o.value.min?o.value.min:t.min.toString()),o.value.style.setProperty(`--max`,o.value.max?o.value.max:t.max.toString()))}function l(e){let t=e.target;t.style.setProperty(`--value`,t.value)}return(e,t)=>cr((z(),B(`input`,{ref_key:`sliderRef`,ref:o,"onUpdate:modelValue":t[0]||=e=>s.value=e,type:`range`,min:r.value,max:i.value,step:a.value,class:`slider-progress form_input-round-range`,onInput:l},null,40,qge)),[[Nc,s.value,void 0,{number:!0}]])}}),Yge=TM(Jge,[[`__scopeId`,`data-v-ac8cc218`]]),Xge=R({__name:`Select`,props:Yi({options:{},placeholder:{},disabled:{type:Boolean},title:{},layout:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=F(!1),r=Wa(e,`modelValue`);function i(e){r.value=e}function a(){n.value=!1}return ca(`selectOption`,i),ca(`hide`,a),(e,n)=>(z(),Oo(qhe,{modelValue:r.value,"onUpdate:modelValue":n[0]||=e=>r.value=e,"default-value":r.value,options:[{groupLabel:``,children:t.options}]},null,8,[`modelValue`,`default-value`,`options`]))}}),OM=Xge;const Zge={op50:``};var Qge=R({__name:`Collapsable`,props:Yi({default:{type:Boolean},label:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);La(()=>{t.default!=null&&(n.value=!!t.default)});function r(e){return n.value=e,e}return(e,i)=>(z(),B(`div`,null,[ki(e.$slots,`trigger`,Ee(No({visible:n.value,setVisible:r})),()=>[V(`button`,{sticky:``,"top-0":``,"z-10":``,flex:``,"items-center":``,"justify-between":``,px2:``,py1:``,"text-sm":``,"backdrop-blur-xl":``,onClick:i[0]||=e=>n.value=!n.value},[V(`span`,null,Pe(t.label??`Collapsable`),1),i[1]||=Fo(),V(`span`,Zge,Pe(n.value?`▲`:`▼`),1)])]),H(I(qk),null,{default:L(()=>[n.value?ki(e.$slots,`default`,Ee(Vo({key:0},{visible:n.value,setVisible:r}))):Lo(``,!0)]),_:3})]))}}),kM=Qge;const $ge=[`onClick`],e_e={flex:``,"items-center":``,"gap-1.5":``,text:`xs 2xl:sm`};var t_e=R({__name:`Container`,props:{title:{},icon:{},innerClass:{},expand:{type:Boolean,default:!0}},setup(e){return(e,t)=>(z(),Oo(kM,{default:e.expand},{trigger:L(t=>[V(`button`,{class:`w-full flex items-center justify-between rounded-lg px-2 py-1 outline-none transition-all duration-250 ease-in-out`,text:`neutral-600 dark:neutral-400 sm sm:base`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,onClick:e=>t.setVisible(!t.visible)},[ki(e.$slots,`title`,{},()=>[V(`div`,e_e,[e.icon?(z(),B(`div`,{key:0,class:Te(e.icon),"size-4":``},null,2)):Lo(``,!0),Fo(` `+Pe(e.title),1)])]),V(`div`,{"i-solar:alt-arrow-down-linear":``,transition:`transform duration-250`,class:Te({"rotate-180":t.visible})},null,2)],8,$ge)]),default:L(()=>[V(`div`,{gap:`1`,grid:``,"items-center":``,"p-1":``,class:Te(e.innerClass)},[ki(e.$slots,`default`)],2)]),_:3},8,[`default`]))}}),n_e=t_e;const r_e=(e,t)=>{if(typeof e==`number`){if(t===3)return{mode:`rgb`,r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:`rgb`,r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:`rgb`,r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:`rgb`,r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}};var AM=r_e;const i_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};var a_e=i_e;const o_e=e=>AM(a_e[e.toLowerCase()],6);var s_e=o_e;const c_e=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,l_e=e=>{let t;return(t=e.match(c_e))?AM(parseInt(t[1],16),t[1].length):void 0};var u_e=l_e;const jM=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`;`${jM}`;const MM=`${jM}%`;`${jM}`;const NM=`(?:${jM}%|${jM})`,d_e=`(?:${jM}%|${jM}|none)`,f_e=`(?:${jM}(deg|grad|rad|turn)|${jM})`;`${jM}${jM}`;const PM=`\\s*,\\s*`;``+d_e;const p_e=RegExp(`^rgba?\\(\\s*${jM}${PM}${jM}${PM}${jM}\\s*(?:,\\s*${NM}\\s*)?\\)$`),m_e=RegExp(`^rgba?\\(\\s*${MM}${PM}${MM}${PM}${MM}\\s*(?:,\\s*${NM}\\s*)?\\)$`),h_e=e=>{let t={mode:`rgb`},n;if(n=e.match(p_e))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(m_e))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]===void 0?n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))):t.alpha=Math.max(0,Math.min(1,n[4]/100)),t};var g_e=h_e;const __e=(e,t)=>e===void 0?void 0:typeof e==`object`?e.mode===void 0?t?{...e,mode:t}:void 0:e:O_e(e);var FM=__e;const v_e=(e=`rgb`)=>t=>(t=FM(t,e))===void 0?void 0:t.mode===e?t:LM[t.mode][e]?LM[t.mode][e](t):e===`rgb`?LM[t.mode].rgb(t):LM.rgb[e](LM[t.mode].rgb(t));var IM=v_e;const LM={},RM={},zM=[],BM={},y_e=e=>e,VM=e=>(LM[e.mode]={...LM[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{LM[t]||(LM[t]={}),LM[t][e.mode]=e.fromMode[t]}),e.ranges||={},e.difference||={},e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]==`function`&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=y_e)}),RM[e.mode]=e,(e.parse||[]).forEach(t=>{b_e(t,e.mode)}),IM(e.mode)),HM=e=>RM[e],b_e=(e,t)=>{if(typeof e==`string`){if(!t)throw Error(`'mode' required when 'parser' is a string`);BM[e]=t}else typeof e==`function`&&zM.indexOf(e)<0&&zM.push(e)},UM=/[^\x00-\x7F]|[a-zA-Z_]/,x_e=/[^\x00-\x7F]|[-\w]/,WM={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`};let GM=0;function KM(e){let t=e[GM],n=e[GM+1];return t===`-`||t===`+`?/\d/.test(n)||n===`.`&&/\d/.test(e[GM+2]):t===`.`?/\d/.test(n):/\d/.test(t)}function qM(e){if(GM>=e.length)return!1;let t=e[GM];if(UM.test(t))return!0;if(t===`-`){if(e.length-GM<2)return!1;let t=e[GM+1];return!!(t===`-`||UM.test(t))}return!1}const S_e={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function JM(e){let t=``;if((e[GM]===`-`||e[GM]===`+`)&&(t+=e[GM++]),t+=YM(e),e[GM]===`.`&&/\d/.test(e[GM+1])&&(t+=e[GM++]+YM(e)),(e[GM]===`e`||e[GM]===`E`)&&((e[GM+1]===`-`||e[GM+1]===`+`)&&/\d/.test(e[GM+2])?t+=e[GM++]+e[GM++]+YM(e):/\d/.test(e[GM+1])&&(t+=e[GM++]+YM(e))),qM(e)){let n=XM(e);return n===`deg`||n===`rad`||n===`turn`||n===`grad`?{type:WM.Hue,value:t*S_e[n]}:void 0}return e[GM]===`%`?(GM++,{type:WM.Percentage,value:+t}):{type:WM.Number,value:+t}}function YM(e){let t=``;for(;/\d/.test(e[GM]);)t+=e[GM++];return t}function XM(e){let t=``;for(;GM4)){if(n.length===4){if(n[3].type!==WM.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:WM.None,value:void 0}),n.every(e=>e.type!==WM.Alpha)?n:void 0}}function E_e(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==WM.Function)return;let r=ZM(e,t);if(r)return r.unshift(n.value),r}const D_e=e=>{if(typeof e!=`string`)return;let t=w_e(e),n=t?E_e(t,!0):void 0,r,i=0,a=zM.length;for(;ie===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0;var M_e=j_e;const N_e=(e,t,n)=>e+n*(t-e),P_e=e=>{let t=[];for(let n=0;nt=>{let n=P_e(t);return t=>{let r=t*n.length,i=t>=1?n.length-1:Math.max(Math.floor(r),0),a=n[i];return a===void 0?void 0:e(a[0],a[1],r-i)}},QM=F_e(N_e),$M=e=>{let t=!1,n=e.map(e=>e===void 0?1:(t=!0,e));return t?n:e},I_e={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[A_e,u_e,g_e,s_e,M_e,`srgb`],serialize:`srgb`,interpolate:{r:QM,g:QM,b:QM,alpha:{use:QM,fixup:$M}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}};var eN=I_e;const tN=(e=0)=>Math.abs(e)**(563/256)*Math.sign(e),L_e=e=>{let t=tN(e.r),n=tN(e.g),r=tN(e.b),i={mode:`xyz65`,x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i};var nN=L_e;const rN=e=>Math.abs(e)**(256/563)*Math.sign(e),R_e=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`a98`,r:rN(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:rN(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:rN(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i};var iN=R_e;const aN=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4},z_e=({r:e,g:t,b:n,alpha:r})=>{let i={mode:`lrgb`,r:aN(e),g:aN(t),b:aN(n)};return r!==void 0&&(i.alpha=r),i};var oN=z_e;const B_e=e=>{let{r:t,g:n,b:r,alpha:i}=oN(e),a={mode:`xyz65`,x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(a.alpha=i),a};var sN=B_e;const cN=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92},V_e=({r:e,g:t,b:n,alpha:r},i=`rgb`)=>{let a={mode:i,r:cN(e),g:cN(t),b:cN(n)};return r!==void 0&&(a.alpha=r),a};var lN=V_e;const H_e=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=lN({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i};var uN=H_e;const U_e={...eN,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:e=>iN(sN(e)),xyz65:iN},toMode:{rgb:e=>uN(nN(e)),xyz65:nN}};var W_e=U_e;const G_e=e=>(e%=360)<0?e+360:e;var dN=G_e;const K_e=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let a=dN(n);return r===0||e[r-1]===void 0?a:t(a-dN(i[r-1]))}).reduce((e,t)=>!e.length||t===void 0||e[e.length-1]===void 0?(e.push(t),e):(e.push(t+e[e.length-1]),e),[]),fN=e=>K_e(e,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),pN=[-.14861,1.78277,-.29227,-.90649,1.97294,0],q_e=Math.PI/180,J_e=180/Math.PI;let mN=pN[3]*pN[4],hN=pN[1]*pN[4],gN=pN[1]*pN[2]-pN[0]*pN[3];const Y_e=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(gN*n+e*mN-t*hN)/(gN+mN-hN),a=n-i,o=(pN[4]*(t-i)-pN[2]*a)/pN[3],s={mode:`cubehelix`,l:i,s:i===0||i===1?void 0:Math.sqrt(a*a+o*o)/(pN[4]*i*(1-i))};return s.s&&(s.h=Math.atan2(o,a)*J_e-120),r!==void 0&&(s.alpha=r),s};var X_e=Y_e;const Z_e=({h:e,s:t,l:n,alpha:r})=>{let i={mode:`rgb`};e=(e===void 0?0:e+120)*q_e,n===void 0&&(n=0);let a=t===void 0?0:t*n*(1-n),o=Math.cos(e),s=Math.sin(e);return i.r=n+a*(pN[0]*o+pN[1]*s),i.g=n+a*(pN[2]*o+pN[3]*s),i.b=n+a*(pN[4]*o+pN[5]*s),r!==void 0&&(i.alpha=r),i};var Q_e=Z_e;const _N=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=dN(e.h),r=dN(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},$_e=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=dN(e.h),r=dN(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},vN=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=dN(e.h),r=dN(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},yN=e=>{let t=e.reduce((e,t)=>{if(t!==void 0){let n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},eve=e=>{let t=e.filter(e=>e!==void 0);return t.length?t.reduce((e,t)=>e+t,0)/t.length:void 0},bN=e=>typeof e==`function`;function tve(e,t=`rgb`,n){let r=HM(t),i=e.map(IM(t));return r.channels.reduce((e,t)=>{let a=i.map(e=>e[t]).filter(e=>e!==void 0);if(a.length){let i;i=bN(n)?n:n&&bN(n[t])?n[t]:r.average&&bN(r.average[t])?r.average[t]:eve,e[t]=i(a,t)}return e},{mode:t})}const xN={mode:`cubehelix`,channels:[`h`,`s`,`l`,`alpha`],parse:[`--cubehelix`],serialize:`--cubehelix`,ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:X_e},toMode:{rgb:Q_e},interpolate:{h:{use:QM,fixup:fN},s:QM,l:QM,alpha:{use:QM,fixup:$M}},difference:{h:_N},average:{h:yN}};var SN=xN;const CN=({l:e,a:t,b:n,alpha:r},i=`lch`)=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),o={mode:i,l:e,c:a};return a&&(o.h=dN(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o};var wN=CN;const TN=({l:e,c:t,h:n,alpha:r},i=`lab`)=>{n===void 0&&(n=0);let a={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a};var EN=TN;const DN=29**3/3**3,ON=6**3/29**3,kN={X:.3457/.3585,Y:1,Z:.2958/.3585},AN={X:.3127/.329,Y:1,Z:.3583/.329};let jN=e=>e**3>ON?e**3:(116*e-16)/DN;const MN=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz65`,x:jN(a)*AN.X,y:jN(i)*AN.Y,z:jN(o)*AN.Z};return r!==void 0&&(s.alpha=r),s};var NN=MN;const PN=e=>uN(NN(e));var FN=PN;const IN=e=>e>ON?Math.cbrt(e):(DN*e+16)/116,LN=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=IN(e/AN.X),a=IN(t/AN.Y),o=IN(n/AN.Z),s={mode:`lab65`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s};var RN=LN;const zN=e=>{let t=RN(sN(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};var BN=zN;const VN=26/180*Math.PI,HN=Math.cos(VN),UN=Math.sin(VN),WN=100/Math.log(139/100),GN=({l:e,c:t,h:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`lab65`,l:(Math.exp(e*1/WN)-1)/.0039},a=(Math.exp(.0435*t*1*1)-1)/.075,o=a*Math.cos(n/180*Math.PI-VN),s=a*Math.sin(n/180*Math.PI-VN);return i.a=o*HN-s/.83*UN,i.b=o*UN+s/.83*HN,r!==void 0&&(i.alpha=r),i};var KN=GN;const qN=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=t*HN+n*UN,a=.83*(n*HN-t*UN),o=Math.sqrt(i*i+a*a),s={mode:`dlch`,l:WN/1*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*1*1)};return s.c&&(s.h=dN((Math.atan2(a,i)+VN)/Math.PI*180)),r!==void 0&&(s.alpha=r),s};var JN=qN;const YN=e=>KN(wN(e,`dlch`)),XN=e=>EN(JN(e),`dlab`),ZN={mode:`dlab`,parse:[`--din99o-lab`],serialize:`--din99o-lab`,toMode:{lab65:YN,rgb:e=>FN(YN(e))},fromMode:{lab65:XN,rgb:e=>XN(BN(e))},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:QM,a:QM,b:QM,alpha:{use:QM,fixup:$M}}};var QN=ZN;const $N={mode:`dlch`,parse:[`--din99o-lch`],serialize:`--din99o-lch`,toMode:{lab65:KN,dlab:e=>EN(e,`dlab`),rgb:e=>FN(KN(e))},fromMode:{lab65:JN,dlab:e=>wN(e,`dlch`),rgb:e=>JN(BN(e))},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:QM,c:QM,h:{use:QM,fixup:fN},alpha:{use:QM,fixup:$M}},difference:{h:vN},average:{h:yN}};var eP=$N;function tP({h:e,s:t,i:n,alpha:r}){e=dN(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n*(1+t*(3/(2-i)-1)),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1-t)};break;case 1:a={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1+t*(3/(2-i)-1)),b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n*(1+t*(3/(2-i)-1)),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;case 3:a={r:n*(1-t),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1+t*(3/(2-i)-1))};break;case 4:a={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3/(2-i)-1))};break;case 5:a={r:n*(1+t*(3/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function nP({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsi`,s:e+t+n===0?0:1-3*a/(e+t+n),i:(e+t+n)/3};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t{switch(t){case`deg`:return+e;case`rad`:return e/Math.PI*180;case`grad`:return e/10*9;case`turn`:return e*360}};var cP=sP;const lP=RegExp(`^hsla?\\(\\s*${f_e}${PM}${MM}${PM}${MM}\\s*(?:,\\s*${NM}\\s*)?\\)$`),uP=e=>{let t=e.match(lP);if(!t)return;let n={mode:`hsl`};return t[3]===void 0?t[1]!==void 0&&t[2]!==void 0&&(n.h=cP(t[1],t[2])):n.h=+t[3],t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]===void 0?t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))):n.alpha=Math.max(0,Math.min(1,t[6]/100)),n};var dP=uP;function fP(e,t){if(!t||t[0]!==`hsl`&&t[0]!==`hsla`)return;let n={mode:`hsl`},[,r,i,a,o]=t;if(r.type!==WM.None){if(r.type===WM.Percentage)return;n.h=r.value}if(i.type!==WM.None){if(i.type===WM.Hue)return;n.s=i.value/100}if(a.type!==WM.None){if(a.type===WM.Hue)return;n.l=a.value/100}return o.type!==WM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===WM.Number?o.value:o.value/100))),n}var pP=fP;const mP={mode:`hsl`,toMode:{rgb:aP},fromMode:{rgb:oP},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[pP,dP],serialize:e=>`hsl(${e.h===void 0?`none`:e.h} ${e.s===void 0?`none`:e.s*100+`%`} ${e.l===void 0?`none`:e.l*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:QM,fixup:fN},s:QM,l:QM,alpha:{use:QM,fixup:$M}},difference:{h:_N},average:{h:yN}};var hP=mP;function gP({h:e,s:t,v:n,alpha:r}){e=dN(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:a={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:a={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:a={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:a={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function _P({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsv`,s:i===0?0:1-a/i,v:i};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t1){let e=t+n;t/=e,n/=e}return gP({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function xP(e){let t=_P(e);if(t===void 0)return;let n=t.s===void 0?0:t.s,r=t.v===void 0?0:t.v,i={mode:`hwb`,w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function SP(e,t){if(!t||t[0]!==`hwb`)return;let n={mode:`hwb`},[,r,i,a,o]=t;if(r.type!==WM.None){if(r.type===WM.Percentage)return;n.h=r.value}if(i.type!==WM.None){if(i.type===WM.Hue)return;n.w=i.value/100}if(a.type!==WM.None){if(a.type===WM.Hue)return;n.b=a.value/100}return o.type!==WM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===WM.Number?o.value:o.value/100))),n}var CP=SP;const wP={mode:`hwb`,toMode:{rgb:bP},fromMode:{rgb:xP},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[CP],serialize:e=>`hwb(${e.h===void 0?`none`:e.h} ${e.w===void 0?`none`:e.w*100+`%`} ${e.b===void 0?`none`:e.b*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:QM,fixup:fN},w:QM,b:QM,alpha:{use:QM,fixup:$M}},difference:{h:$_e},average:{h:yN}};var TP=wP;const EP=.1593017578125,DP=78.84375,OP=.8359375,kP=18.8515625,AP=18.6875;function jP(e){if(e<0)return 0;let t=e**(1/DP);return 1e4*(Math.max(0,t-OP)/(kP-AP*t))**(1/EP)}function MP(e){if(e<0)return 0;let t=(e/1e4)**EP;return((OP+kP*t)/(1+AP*t))**+DP}const NP=e=>Math.max(e/203,0),PP=({i:e,t,p:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=jP(e+.008609037037932761*t+.11102962500302593*n),a=jP(e-.00860903703793275*t-.11102962500302599*n),o=jP(e+.5600313357106791*t-.32062717498731885*n),s={mode:`xyz65`,x:NP(2.070152218389422*i-1.3263473389671556*a+.2066510476294051*o),y:NP(.3647385209748074*i+.680566024947227*a-.0453045459220346*o),z:NP(-.049747207535812*i-.0492609666966138*a+1.1880659249923042*o)};return r!==void 0&&(s.alpha=r),s};var FP=PP;const IP=(e=0)=>Math.max(e*203,0),LP=({x:e,y:t,z:n,alpha:r})=>{let i=IP(e),a=IP(t),o=IP(n),s=MP(.3592832590121217*i+.6976051147779502*a-.0358915932320289*o),c=MP(-.1920808463704995*i+1.1004767970374323*a+.0753748658519118*o),l=MP(.0070797844607477*i+.0748396662186366*a+.8433265453898765*o),u=.5*s+.5*c,d=1.61376953125*s-3.323486328125*c+1.709716796875*l,f=4.378173828125*s-4.24560546875*c-.132568359375*l,p={mode:`itp`,i:u,t:d,p:f};return r!==void 0&&(p.alpha=r),p};var RP=LP;const zP={mode:`itp`,channels:[`i`,`t`,`p`,`alpha`],parse:[`--ictcp`],serialize:`--ictcp`,toMode:{xyz65:FP,rgb:e=>uN(FP(e))},fromMode:{xyz65:RP,rgb:e=>RP(sN(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:QM,t:QM,p:QM,alpha:{use:QM,fixup:$M}}};var BP=zP;const VP=e=>{if(e<0)return 0;let t=(e/1e4)**EP;return((OP+kP*t)/(1+AP*t))**134.03437499999998},HP=(e=0)=>Math.max(e*203,0),UP=({x:e,y:t,z:n,alpha:r})=>{e=HP(e),t=HP(t),n=HP(n);let i=1.15*e-.15*n,a=.66*t+.34*e,o=VP(.41478972*i+.579999*a+.014648*n),s=VP(-.20151*i+1.120649*a+.0531008*n),c=VP(-.0166008*i+.2648*a+.6684799*n),l=(o+s)/2,u={mode:`jab`,j:.44*l/(1-.56*l)-16295499532821565e-27,a:3.524*o-4.066708*s+.542708*c,b:.199076*o+1.096799*s-1.295875*c};return r!==void 0&&(u.alpha=r),u};var WP=UP;const GP=16295499532821565e-27,KP=e=>{if(e<0)return 0;let t=e**(1/134.03437499999998);return 1e4*((OP-t)/(AP*t-kP))**(1/EP)},qP=e=>e/203,JP=({j:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+GP)/(.44+.56*(e+GP)),a=KP(i+.13860504*t+.058047316*n),o=KP(i-.13860504*t-.058047316*n),s=KP(i-.096019242*t-.8118919*n),c={mode:`xyz65`,x:qP(1.661373024652174*a-.914523081304348*o+.23136208173913045*s),y:qP(-.3250758611844533*a+1.571847026732543*o-.21825383453227928*s),z:qP(-.090982811*a-.31272829*o+1.5227666*s)};return r!==void 0&&(c.alpha=r),c};var YP=JP;const XP=e=>{let t=WP(sN(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};var ZP=XP;const QP=e=>uN(YP(e));var $P=QP;const eF={mode:`jab`,channels:[`j`,`a`,`b`,`alpha`],parse:[`--jzazbz`],serialize:`--jzazbz`,fromMode:{rgb:ZP,xyz65:WP},toMode:{rgb:$P,xyz65:YP},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:QM,a:QM,b:QM,alpha:{use:QM,fixup:$M}}};var tF=eF;const nF=({j:e,a:t,b:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),a={mode:`jch`,j:e,c:i};return i&&(a.h=dN(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(a.alpha=r),a};var rF=nF;const iF=({j:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:`jab`,j:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i};var aF=iF;const oF={mode:`jch`,parse:[`--jzczhz`],serialize:`--jzczhz`,toMode:{jab:aF,rgb:e=>$P(aF(e))},fromMode:{rgb:e=>rF(ZP(e)),jab:rF},channels:[`j`,`c`,`h`,`alpha`],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:QM,fixup:fN},c:QM,j:QM,alpha:{use:QM,fixup:$M}},difference:{h:vN},average:{h:yN}};var sF=oF;const cF=29**3/3**3,lF=6**3/29**3;let uF=e=>e**3>lF?e**3:(116*e-16)/cF;const dF=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz50`,x:uF(a)*kN.X,y:uF(i)*kN.Y,z:uF(o)*kN.Z};return r!==void 0&&(s.alpha=r),s};var fF=dF;const pF=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=lN({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i};var mF=pF;const hF=e=>mF(fF(e));var gF=hF;const _F=e=>{let{r:t,g:n,b:r,alpha:i}=oN(e),a={mode:`xyz50`,x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(a.alpha=i),a};var vF=_F;const yF=e=>e>lF?Math.cbrt(e):(cF*e+16)/116,bF=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=yF(e/kN.X),a=yF(t/kN.Y),o=yF(n/kN.Z),s={mode:`lab`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s};var xF=bF;const SF=e=>{let t=xF(vF(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};var CF=SF;function wF(e,t){if(!t||t[0]!==`lab`)return;let n={mode:`lab`},[,r,i,a,o]=t;if(!(r.type===WM.Hue||i.type===WM.Hue||a.type===WM.Hue))return r.type!==WM.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==WM.None&&(n.a=i.type===WM.Number?i.value:i.value*125/100),a.type!==WM.None&&(n.b=a.type===WM.Number?a.value:a.value*125/100),o.type!==WM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===WM.Number?o.value:o.value/100))),n}var TF=wF;const EF={mode:`lab`,toMode:{xyz50:fF,rgb:gF},fromMode:{xyz50:xF,rgb:CF},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[TF],serialize:e=>`lab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{l:QM,a:QM,b:QM,alpha:{use:QM,fixup:$M}}};var DF=EF;const OF={...DF,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:NN,rgb:FN},fromMode:{xyz65:RN,rgb:BN},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};var kF=OF;function AF(e,t){if(!t||t[0]!==`lch`)return;let n={mode:`lch`},[,r,i,a,o]=t;if(r.type!==WM.None){if(r.type===WM.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==WM.None&&(n.c=Math.max(0,i.type===WM.Number?i.value:i.value*150/100)),a.type!==WM.None){if(a.type===WM.Percentage)return;n.h=a.value}return o.type!==WM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===WM.Number?o.value:o.value/100))),n}var jF=AF;const MF={mode:`lch`,toMode:{lab:EN,rgb:e=>gF(EN(e))},fromMode:{rgb:e=>wN(CF(e)),lab:wN},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[jF],serialize:e=>`lch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:QM,fixup:fN},c:QM,l:QM,alpha:{use:QM,fixup:$M}},difference:{h:vN},average:{h:yN}};var NF=MF;const PF={...NF,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:e=>EN(e,`lab65`),rgb:e=>FN(EN(e,`lab65`))},fromMode:{rgb:e=>wN(BN(e),`lch65`),lab65:e=>wN(e,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}};var FF=PF;const IF=({l:e,u:t,v:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),a={mode:`lchuv`,l:e,c:i};return i&&(a.h=dN(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(a.alpha=r),a};var LF=IF;const RF=({l:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:`luv`,l:e,u:t?t*Math.cos(n/180*Math.PI):0,v:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i};var zF=RF;const BF=(e,t,n)=>4*e/(e+15*t+3*n),VF=(e,t,n)=>9*t/(e+15*t+3*n),HF=BF(kN.X,kN.Y,kN.Z),UF=VF(kN.X,kN.Y,kN.Z),WF=e=>e<=lF?cF*e:116*Math.cbrt(e)-16,GF=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=WF(t/kN.Y),a=BF(e,t,n),o=VF(e,t,n);!isFinite(a)||!isFinite(o)?i=a=o=0:(a=13*i*(a-HF),o=13*i*(o-UF));let s={mode:`luv`,l:i,u:a,v:o};return r!==void 0&&(s.alpha=r),s};var KF=GF;const qF=(e,t,n)=>4*e/(e+15*t+3*n),JF=(e,t,n)=>9*t/(e+15*t+3*n),YF=qF(kN.X,kN.Y,kN.Z),XF=JF(kN.X,kN.Y,kN.Z),ZF=({l:e,u:t,v:n,alpha:r})=>{if(e===void 0&&(e=0),e===0)return{mode:`xyz50`,x:0,y:0,z:0};t===void 0&&(t=0),n===void 0&&(n=0);let i=t/(13*e)+YF,a=n/(13*e)+XF,o=kN.Y*(e<=8?e/cF:((e+16)/116)**3),s=o*(9*i)/(4*a),c=o*(12-3*i-20*a)/(4*a),l={mode:`xyz50`,x:s,y:o,z:c};return r!==void 0&&(l.alpha=r),l};var QF=ZF;const $F=e=>LF(KF(vF(e))),eI=e=>mF(QF(zF(e))),tI={mode:`lchuv`,toMode:{luv:zF,rgb:eI},fromMode:{rgb:$F,luv:LF},channels:[`l`,`c`,`h`,`alpha`],parse:[`--lchuv`],serialize:`--lchuv`,ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:QM,fixup:fN},c:QM,l:QM,alpha:{use:QM,fixup:$M}},difference:{h:vN},average:{h:yN}};var nI=tI;const rI={...eN,mode:`lrgb`,toMode:{rgb:lN},fromMode:{rgb:oN},parse:[`srgb-linear`],serialize:`srgb-linear`};var iI=rI;const aI={mode:`luv`,toMode:{xyz50:QF,rgb:e=>mF(QF(e))},fromMode:{xyz50:KF,rgb:e=>KF(vF(e))},channels:[`l`,`u`,`v`,`alpha`],parse:[`--luv`],serialize:`--luv`,ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:QM,u:QM,v:QM,alpha:{use:QM,fixup:$M}}};var oI=aI;const sI=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),s={mode:`oklab`,l:.210454268309314*i+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*i-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*i+.7827717124575296*a-.8086757549230774*o};return r!==void 0&&(s.alpha=r),s};var cI=sI;const lI=e=>{let t=cI(oN(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};var uI=lI;const dI=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+.3963377773761749*t+.2158037573099136*n)**3,a=(e-.1055613458156586*t-.0638541728258133*n)**3,o=(e-.0894841775298119*t-1.2914855480194092*n)**3,s={mode:`lrgb`,r:4.076741636075957*i-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*i+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*i-.7034186179359362*a+1.7076146940746117*o};return r!==void 0&&(s.alpha=r),s};var fI=dI;const pI=e=>lN(fI(e));var mI=pI;function hI(e){let t=.206,n=.03,r=(1+t)/(1+n);return .5*(r*e-t+Math.sqrt((r*e-t)*(r*e-t)+4*n*r*e))}function gI(e){let t=.206,n=.03;return(1+t)/(1+n),(e*e+t*e)/(1.170873786407767*(e+n))}function _I(e,t){let n,r,i,a,o,s,c,l;-1.88170328*e-.80936493*t>1?(n=1.19086277,r=1.76576728,i=.59662641,a=.75515197,o=.56771245,s=4.0767416621,c=-3.3077115913,l=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,r=-.45954404,i=.08285427,a=.1254107,o=.14503204,s=-1.2684380046,c=2.6097574011,l=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,a=-.50559606,o=.00692167,s=-.0041960863,c=-.7034186147,l=1.707614701);let u=n+r*e+i*t+a*e*e+o*e*t,d=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let e=1+u*d,t=1+u*f,n=1+u*p,r=e*e*e,i=t*t*t,a=n*n*n,o=3*d*e*e,m=3*f*t*t,h=3*p*n*n,g=6*d*d*e,_=6*f*f*t,v=6*p*p*n,y=s*r+c*i+l*a,b=s*o+c*m+l*h,x=s*g+c*_+l*v;u-=y*b/(b*b-.5*y*x)}return u}function vI(e,t){let n=_I(e,t),r=fI({l:1,a:n*e,b:n*t}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b)),a=i*n;return[i,a]}function yI(e,t,n,r,i,a=null){a||=vI(e,t);let o;if((n-i)*a[1]-(a[0]-i)*r<=0)o=a[1]*i/(r*a[0]+a[1]*(i-n));else{o=a[1]*(i-1)/(r*(a[0]-1)+a[1]*(i-n));{let a=n-i,s=r,c=.3963377774*e+.2158037573*t,l=-.1055613458*e-.0638541728*t,u=-.0894841775*e-1.291485548*t,d=a+s*c,f=a+s*l,p=a+s*u;{let e=i*(1-o)+o*n,t=o*r,a=e+t*c,s=e+t*l,m=e+t*u,h=a*a*a,g=s*s*s,_=m*m*m,v=3*d*a*a,y=3*f*s*s,b=3*p*m*m,x=6*d*d*a,S=6*f*f*s,C=6*p*p*m,w=4.0767416621*h-3.3077115913*g+.2309699292*_-1,T=4.0767416621*v-3.3077115913*y+.2309699292*b,E=4.0767416621*x-3.3077115913*S+.2309699292*C,D=T/(T*T-.5*w*E),O=-w*D,k=-1.2684380046*h+2.6097574011*g-.3413193965*_-1,A=-1.2684380046*v+2.6097574011*y-.3413193965*b,j=-1.2684380046*x+2.6097574011*S-.3413193965*C,M=A/(A*A-.5*k*j),ee=-k*M,te=-.0041960863*h-.7034186147*g+1.707614701*_-1,N=-.0041960863*v-.7034186147*y+1.707614701*b,ne=-.0041960863*x-.7034186147*S+1.707614701*C,re=N/(N*N-.5*te*ne),ie=-te*re;O=D>=0?O:1e6,ee=M>=0?ee:1e6,ie=re>=0?ie:1e6,o+=Math.min(O,Math.min(ee,ie))}}}return o}function bI(e,t,n=null){n||=vI(e,t);let r=n[0],i=n[1];return[i/r,i/(1-r)]}function xI(e,t,n){let r=vI(t,n),i=yI(t,n,e,1,e,r),a=bI(t,n,r),o=.11516993+1/(7.4477897+4.1590124*n+t*(-2.19557347+1.75198401*n+t*(-2.13704948-10.02301043*n+t*(-4.24894561+5.38770819*n+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*n+t*(.40370612+.90148123*n+t*(-.27087943+.6122399*n+t*(.00299215-.45399568*n-.14661872*t)))),c=i/Math.min(e*a[0],(1-e)*a[1]),l=e*o,u=(1-e)*s,d=.9*c*Math.sqrt(Math.sqrt(1/(1/(l*l*l*l)+1/(u*u*u*u))));l=e*.4,u=(1-e)*.8;let f=Math.sqrt(1/(1/(l*l)+1/(u*u)));return[f,d,i]}function SI(e){let t=e.l===void 0?0:e.l,n=e.a===void 0?0:e.a,r=e.b===void 0?0:e.b,i={mode:`okhsl`,l:hI(t)};e.alpha!==void 0&&(i.alpha=e.alpha);let a=Math.sqrt(n*n+r*r);if(!a)return i.s=0,i;let[o,s,c]=xI(t,n/a,r/a),l;if(aSI(uI(e))},toMode:{oklab:CI,rgb:e=>mI(CI(e))}};var TI=wI;function EI(e){let t=e.l===void 0?0:e.l,n=e.a===void 0?0:e.a,r=e.b===void 0?0:e.b,i=Math.sqrt(n*n+r*r),a=i?n/i:1,o=i?r/i:1,[s,c]=bI(a,o),l=.5,u=1-l/s,d=c/(i+t*c),f=d*t,p=d*i,m=gI(f),h=p*m/f,g=fI({l:m,a:a*h,b:o*h}),_=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));t/=_,i=i/_*hI(t)/t,t=hI(t);let v={mode:`okhsv`,s:i?(l+c)*p/(c*l+c*u*p):0,v:t?t/f:0};return v.s&&(v.h=dN(Math.atan2(r,n)*180/Math.PI)),e.alpha!==void 0&&(v.alpha=e.alpha),v}function DI(e){let t={mode:`oklab`};e.alpha!==void 0&&(t.alpha=e.alpha);let n=e.h===void 0?0:e.h,r=e.s===void 0?0:e.s,i=e.v===void 0?0:e.v,a=Math.cos(n/180*Math.PI),o=Math.sin(n/180*Math.PI),[s,c]=bI(a,o),l=.5,u=1-l/s,d=1-r*l/(l+c-c*u*r),f=r*c*l/(l+c-c*u*r),p=gI(d),m=f*p/d,h=fI({l:p,a:a*m,b:o*m}),g=Math.cbrt(1/Math.max(h.r,h.g,h.b,0)),_=gI(i*d),v=f*_/d;return t.l=_*g,t.a=v*a*g,t.b=v*o*g,t}const OI={...yP,mode:`okhsv`,channels:[`h`,`s`,`v`,`alpha`],parse:[`--okhsv`],serialize:`--okhsv`,fromMode:{oklab:EI,rgb:e=>EI(uI(e))},toMode:{oklab:DI,rgb:e=>mI(DI(e))}};var kI=OI;function AI(e,t){if(!t||t[0]!==`oklab`)return;let n={mode:`oklab`},[,r,i,a,o]=t;if(!(r.type===WM.Hue||i.type===WM.Hue||a.type===WM.Hue))return r.type!==WM.None&&(n.l=Math.min(Math.max(0,r.type===WM.Number?r.value:r.value/100),1)),i.type!==WM.None&&(n.a=i.type===WM.Number?i.value:i.value*.4/100),a.type!==WM.None&&(n.b=a.type===WM.Number?a.value:a.value*.4/100),o.type!==WM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===WM.Number?o.value:o.value/100))),n}var jI=AI;const MI={...DF,mode:`oklab`,toMode:{lrgb:fI,rgb:mI},fromMode:{lrgb:cI,rgb:uI},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[jI],serialize:e=>`oklab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`};var NI=MI;function PI(e,t){if(!t||t[0]!==`oklch`)return;let n={mode:`oklch`},[,r,i,a,o]=t;if(r.type!==WM.None){if(r.type===WM.Hue)return;n.l=Math.min(Math.max(0,r.type===WM.Number?r.value:r.value/100),1)}if(i.type!==WM.None&&(n.c=Math.max(0,i.type===WM.Number?i.value:i.value*.4/100)),a.type!==WM.None){if(a.type===WM.Percentage)return;n.h=a.value}return o.type!==WM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===WM.Number?o.value:o.value/100))),n}var FI=PI;const II={...NF,mode:`oklch`,toMode:{oklab:e=>EN(e,`oklab`),rgb:e=>mI(EN(e,`oklab`))},fromMode:{rgb:e=>wN(uI(e),`oklch`),oklab:e=>wN(e,`oklch`)},parse:[FI],serialize:e=>`oklch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}};var LI=II;const RI=e=>{let{r:t,g:n,b:r,alpha:i}=oN(e),a={mode:`xyz65`,x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(a.alpha=i),a};var zI=RI;const BI=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=lN({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},`p3`);return r!==void 0&&(i.alpha=r),i};var VI=BI;const HI={...eN,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:e=>VI(sN(e)),xyz65:VI},toMode:{rgb:e=>uN(zI(e)),xyz65:zI}};var UI=HI;const WI=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*t**(1/1.8):16*e},GI=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`prophoto`,r:WI(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:WI(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:WI(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i};var KI=GI;const qI=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*t**1.8:e/16},JI=e=>{let t=qI(e.r),n=qI(e.g),r=qI(e.b),i={mode:`xyz50`,x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i};var YI=JI;const XI={...eN,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:KI,rgb:e=>KI(vF(e))},toMode:{xyz50:YI,rgb:e=>mF(YI(e))}};var ZI=XI;const QI=1.09929682680944,$I=e=>{let t=Math.abs(e);return t>.018053968510807?(Math.sign(e)||1)*(QI*t**.45-(QI-1)):4.5*e},eL=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rec2020`,r:$I(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:$I(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:$I(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i};var tL=eL;const nL=1.09929682680944,rL=(e=0)=>{let t=Math.abs(e);return t<.018053968510807*4.5?e/4.5:(Math.sign(e)||1)*((t+nL-1)/nL)**(1/.45)},iL=e=>{let t=rL(e.r),n=rL(e.g),r=rL(e.b),i={mode:`xyz65`,x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i};var aL=iL;const oL={...eN,mode:`rec2020`,fromMode:{xyz65:tL,rgb:e=>tL(sN(e))},toMode:{xyz65:aL,rgb:e=>uN(aL(e))},parse:[`rec2020`],serialize:`rec2020`};var sL=oL;const cL=.0037930732552754493,lL=Math.cbrt(cL),uL=e=>Math.cbrt(e)-lL,dL=e=>{let{r:t,g:n,b:r,alpha:i}=oN(e),a=uL(.3*t+.622*n+.078*r+cL),o=uL(.23*t+.692*n+.078*r+cL),s=uL(.2434226892454782*t+.2047674442449682*n+.5518098665095535*r+cL),c={mode:`xyb`,x:(a-o)/2,y:(a+o)/2,b:s-(a+o)/2};return i!==void 0&&(c.alpha=i),c};var fL=dL;const pL=e=>(e+lL)**3,mL=({x:e,y:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=pL(e+t)-cL,a=pL(t-e)-cL,o=pL(n+t)-cL,s=lN({r:11.031566904639861*i-9.866943908131562*a-.16462299650829934*o,g:-3.2541473810744237*i+4.418770377582723*a-.16462299650829934*o,b:-3.6588512867136815*i+2.7129230459360922*a+1.9459282407775895*o});return r!==void 0&&(s.alpha=r),s};var hL=mL;const gL={mode:`xyb`,channels:[`x`,`y`,`b`,`alpha`],parse:[`--xyb`],serialize:`--xyb`,toMode:{rgb:hL},fromMode:{rgb:fL},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:QM,y:QM,b:QM,alpha:{use:QM,fixup:$M}}};var _L=gL;const vL={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:mF,lab:xF},fromMode:{rgb:vF,lab:fF},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:QM,y:QM,z:QM,alpha:{use:QM,fixup:$M}}};var yL=vL;const bL=e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz50`,x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(a.alpha=i),a};var xL=bL;const SL=e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz65`,x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(a.alpha=i),a};var CL=SL;const wL={mode:`xyz65`,toMode:{rgb:uN,xyz50:xL},fromMode:{rgb:sN,xyz50:CL},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:[`x`,`y`,`z`,`alpha`],parse:[`xyz`,`xyz-d65`],serialize:`xyz-d65`,interpolate:{x:QM,y:QM,z:QM,alpha:{use:QM,fixup:$M}}};var TL=wL;const EL=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`yiq`,y:.29889531*e+.58662247*t+.11448223*n,i:.59597799*e-.2741761*t-.32180189*n,q:.21147017*e-.52261711*t+.31114694*n};return r!==void 0&&(i.alpha=r),i};var DL=EL;const OL=({y:e,i:t,q:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rgb`,r:e+.95608445*t+.6208885*n,g:e-.27137664*t-.6486059*n,b:e-1.10561724*t+1.70250126*n};return r!==void 0&&(i.alpha=r),i};var kL=OL;const AL={mode:`yiq`,toMode:{rgb:kL},fromMode:{rgb:DL},channels:[`y`,`i`,`q`,`alpha`],parse:[`--yiq`],serialize:`--yiq`,ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:QM,i:QM,q:QM,alpha:{use:QM,fixup:$M}}};var jL=AL;const ML=(e,t)=>Math.round(e*(t=10**t))/t,NL=(e=4)=>t=>typeof t==`number`?ML(t,e):t;var PL=NL;PL(2);const FL=e=>Math.max(0,Math.min(1,e||0)),IL=e=>Math.round(FL(e)*255),LL=IM(`rgb`);IM(`hsl`);const RL=e=>{if(e===void 0)return;let t=IL(e.r),n=IL(e.g),r=IL(e.b);return`#`+(1<<24|t<<16|n<<8|r).toString(16).slice(1)},zL=e=>{if(e===void 0)return;let t=IL(e.alpha===void 0?1:e.alpha);return RL(e)+(256|t).toString(16).slice(1)},BL=e=>{let t=FM(e);if(!t)return;let n=HM(t.mode);if(!n.serialize||typeof n.serialize==`string`){let e=`color(${n.serialize||`--${t.mode}`} `;return n.channels.forEach((n,r)=>{n!==`alpha`&&(e+=(r?` `:``)+(t[n]===void 0?`none`:t[n]))}),t.alpha!==void 0&&t.alpha<1&&(e+=` / ${t.alpha}`),e+`)`}if(typeof n.serialize==`function`)return n.serialize(t)},VL=e=>RL(LL(e)),HL=e=>zL(LL(e));VM(W_e),VM(SN),VM(QN),VM(eP),VM(iP),VM(hP),VM(yP),VM(TP),VM(BP),VM(tF),VM(sF),VM(DF),VM(kF),VM(NF),VM(FF),VM(nI),VM(iI),VM(oI),VM(TI),VM(kI),VM(NI);const UL=VM(LI);VM(UI),VM(ZI),VM(sL),VM(eN),VM(_L),VM(yL),VM(TL),VM(jL);const WL={"grid-col-span-1":``,"font-mono":``,text:`[10px] right`},GL={class:`z-20 mt-2 space-y-2`,bg:`white/90 dark:neutral-900/90`,"rounded-xl":``,"p-1":``},KL={class:`relative h-48 w-full select-none overflow-hidden rounded-lg`},qL={class:`relative h-6 w-full select-none overflow-hidden rounded-lg`},JL={key:0,class:`relative h-6 w-full select-none overflow-hidden rounded-lg`},YL={class:`flex justify-center gap-2`},XL={class:`flex gap-2`},ZL={key:0,class:`flex gap-2`},QL=[`value`],$L=[`value`],eR=[`value`],tR=[`value`],nR=[`value`],rR=[`value`],iR=[`value`],aR=[`value`],oR=[`value`],sR=[`value`];var cR=R({__name:`ColorPicker`,props:Yi({alpha:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},{modelValue:{required:!1,default:`#000000`},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`),r=F(),i=F(),a=F(),o=F(),s=F(!1),c=F(!1),l=F(null),u=F(`hex`),d=F(0),f=F(100),p=F(50),m=F(1);function h(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:Number.parseInt(t[1],16)/255,g:Number.parseInt(t[2],16)/255,b:Number.parseInt(t[3],16)/255}:null}function g(e){if(!e)return{h:0,s:0,v:0,a:1};let t=document.createElement(`div`);t.style.color=e,document.body.appendChild(t);let n=getComputedStyle(t).color;document.body.removeChild(t);let r=n.match(/rgba?\(([^)]+)\)/);if(r){let e=r[1].split(`,`).map(e=>Number.parseFloat(e.trim())),t={r:e[0]/255,g:e[1]/255,b:e[2]/255},n=_P(t);return{h:n.h||0,s:(n.s||0)*100,v:(n.v||0)*100,a:e[3]===void 0?1:e[3]}}let i=h(e);if(i){let e=_P(i);return{h:e.h||0,s:(e.s||0)*100,v:(e.v||0)*100,a:1}}return{h:0,s:0,v:0,a:1}}let _=U(()=>({h:d.value,s:f.value/100,v:p.value/100})),v=U(()=>{let e=gP(_.value);return{r:Math.round(e.r*255),g:Math.round(e.g*255),b:Math.round(e.b*255)}}),y=U(()=>{let{r:e,g:t,b:n}=v.value,r=((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1);return`#${r}`}),b=U(()=>({left:`${f.value/100*100}%`,top:`${100-p.value/100*100}%`})),x=U(()=>({left:`${d.value/360*100}%`})),S=U(()=>({left:`${m.value*100}%`})),C=U(()=>({background:`linear-gradient(to right, white, hsl(${d.value}, 100%, 50%))`})),w=U(()=>{let{r:e,g:t,b:n}=v.value;return{background:`linear-gradient(to right, transparent, rgb(${e}, ${t}, ${n}))`}});function T(e,t){if(!r.value)return;let n=r.value.getBoundingClientRect(),i=Math.max(0,Math.min(100,e/n.width*100)),a=Math.max(0,Math.min(100,(n.height-t)/n.height*100));f.value=i,p.value=a}function E(e){if(!i.value)return;let t=i.value.getBoundingClientRect(),n=Math.max(0,Math.min(360,e/t.width*360));d.value=n}function D(e){if(!a.value)return;let t=a.value.getBoundingClientRect(),n=Math.max(0,Math.min(1,e/t.width));m.value=n}function O(e){if(t.disabled)return;c.value=!0,l.value=`map`;let n=`touches`in e?e.touches[0].clientX:e.clientX,i=`touches`in e?e.touches[0].clientY:e.clientY,a=r.value.getBoundingClientRect();T(n-a.left,i-a.top),e.preventDefault()}function k(e){if(t.disabled)return;c.value=!0,l.value=`hue`;let n=`touches`in e?e.touches[0].clientX:e.clientX,r=i.value.getBoundingClientRect();E(n-r.left),e.preventDefault()}function A(e){if(t.disabled)return;c.value=!0,l.value=`alpha`;let n=`touches`in e?e.touches[0].clientX:e.clientX,r=a.value.getBoundingClientRect();D(n-r.left),e.preventDefault()}function j(e){if(!c.value)return;e.preventDefault();let t=`touches`in e?e.touches[0].clientX:e.clientX,n=`touches`in e?e.touches[0].clientY:e.clientY;switch(l.value){case`map`:{let e=r.value.getBoundingClientRect();T(t-e.left,n-e.top);break}case`hue`:{let e=i.value.getBoundingClientRect();E(t-e.left);break}case`alpha`:{let e=a.value.getBoundingClientRect();D(t-e.left);break}}}function M(){c.value&&(c.value=!1,l.value=null,document.body.style.cursor=``)}Ba(n,e=>{if(e&&!c.value){let t=g(e);d.value=t.h,f.value=t.s,p.value=t.v,m.value=t.a}},{immediate:!0}),Ba(c,e=>{e?document.body.style.cursor=`none`:document.body.style.cursor=``}),di(()=>{YT(`mousemove`,j,{passive:!1}),YT(`mouseup`,M),YT(`touchmove`,j,{passive:!1}),YT(`touchend`,M),YT(`click`,e=>{s.value&&o.value&&!o.value.contains(e.target)&&(s.value=!1)})});function ee(e){let t=g(e);d.value=t.h,f.value=t.s,p.value=t.v,m.value=t.a,n.value=e}function te(e,t){let n={...v.value};n[e]=Math.max(0,Math.min(255,t));let r=_P({r:n.r/255,g:n.g/255,b:n.b/255});d.value=r.h||0,f.value=(r.s||0)*100,p.value=(r.v||0)*100}function N(e,t){switch(e){case`h`:d.value=Math.max(0,Math.min(360,t));break;case`s`:f.value=Math.max(0,Math.min(100,t));break;case`v`:p.value=Math.max(0,Math.min(100,t));break}}function ne(e){m.value=Math.max(0,Math.min(1,e/100))}return Ba([d,f,p,m],()=>{let e=gP({h:d.value,s:f.value/100,v:p.value/100,alpha:m.value});n.value=HL(e)},{immediate:!0}),(e,t)=>(z(),Oo(I(lhe),null,{default:L(()=>[H(I(bhe),{class:`grid grid-col-span-3 grid-cols-3 h-fit items-center`},{default:L(()=>[V(`div`,{style:be({backgroundColor:n.value}),"grid-col-span-2":``,"min-h-5":``,"rounded-md":``},null,4),V(`div`,WL,Pe(n.value),1)]),_:1}),H(I(vhe),null,{default:L(()=>[H(I(ghe),{align:`start`,class:`relative z-20`},{default:L(()=>[V(`div`,GL,[V(`div`,KL,[V(`div`,{ref_key:`colorMapRef`,ref:r,class:`relative h-full w-full cursor-crosshair`,style:be([C.value,{cursor:c.value&&l.value===`map`?`none`:`crosshair`}]),onMousedown:O,onTouchstart:O},[t[11]||=V(`div`,{class:`absolute inset-0`,style:{background:`linear-gradient(to bottom, transparent, black)`}},null,-1),V(`div`,{class:`pointer-events-none absolute h-4 w-4 border-2 border-white rounded-full shadow-lg transition-transform`,style:be([b.value,{transform:`translate(-50%, -50%) ${c.value&&l.value===`map`?`scale(1.2)`:`scale(1)`}`,backgroundColor:n.value}])},null,4)],36)]),V(`div`,qL,[V(`div`,{ref_key:`hueSliderRef`,ref:i,class:`hue-slider h-full w-full cursor-pointer`,style:be([{background:`linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)`},{cursor:c.value&&l.value===`hue`?`none`:`pointer`}]),onMousedown:k,onTouchstart:k},[V(`div`,{class:`pointer-events-none absolute top-0 h-14 w-1 cursor-pointer cursor-col-resize appearance-none bg-white shadow-lg transition-colors,transform,width,height duration-200 hover:h-13 hover:w-2 hover:bg-neutral-800`,style:be([x.value,{transform:`translateX(-50%) ${c.value&&l.value===`hue`?`scaleY(1.2)`:`scaleY(1)`}`}])},null,4)],36)]),e.alpha?(z(),B(`div`,JL,[t[12]||=V(`div`,{class:`alpha-slider absolute inset-0 opacity-50`,style:{"background-image":`linear-gradient(45deg, #ccc 25%, transparent 25%), +`))}return()=>i.value||r.value||o.value?fs(t.default({present:o.value})[0],{ref:e=>{let t=vx(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}});const xA=R({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=Zk(n.default()),r=e.findIndex(e=>e.type!==So);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?Uo(t,i.props):t,o=Io({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Sfe=[`area`,`img`,`input`],SA=R({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&Sfe.includes(r)?()=>fs(r,t):r===`template`?()=>fs(xA,t,{default:n.default}):()=>fs(e.as,t,{default:n.default})}});function CA(){let e=F(),t=U(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:vx(e));return{primitiveElement:e,currentElement:t}}const[wA,Cfe]=Jk(`DialogRoot`);var wfe=R({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=zx(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=F(),o=F(),{modal:s}=_n(n);return Cfe({open:i,modal:s,openModal:()=>{i.value=!0},onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},contentId:``,titleId:``,descriptionId:``,triggerElement:a,contentElement:o}),(e,t)=>Ai(e.$slots,`default`,{open:I(i),close:()=>i.value=!1})}}),TA=wfe;function EA(e,t){let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r){});return za(o=>{if(!ix||!mn(n))return;let s=async n=>{let o=n.target;if(!(!t?.value||!o)){if(EA(t.value,o)){i.value=!1;return}if(n.target&&!i.value){let t={originalEvent:n};function i(){Xk(`dismissableLayer.pointerDownOutside`,e,t)}n.pointerType===`touch`?(r.removeEventListener(`click`,a.value),a.value=i,r.addEventListener(`click`,a.value,{once:!0})):i()}else r.removeEventListener(`click`,a.value);i.value=!1}},c=window.setTimeout(()=>{r.addEventListener(`pointerdown`,s)},0);o(()=>{window.clearTimeout(c),r.removeEventListener(`pointerdown`,s),r.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{mn(n)&&(i.value=!0)}}}function OA(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=F(!1);return za(a=>{if(!ix||!mn(n))return;let o=async n=>{if(!t?.value)return;await Gn(),await Gn();let r=n.target;if(!(!t.value||!r||EA(t.value,r))&&n.target&&!i.value){let t={originalEvent:n};Xk(`dismissableLayer.focusOutside`,e,t)}};r.addEventListener(`focusin`,o),a(()=>r.removeEventListener(`focusin`,o))}),{onFocusCapture:()=>{mn(n)&&(i.value=!0)},onBlurCapture:()=>{mn(n)&&(i.value=!1)}}}const kA=Zt({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var Tfe=R({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=sA(),o=U(()=>a.value?.ownerDocument??globalThis.document),s=U(()=>kA.layersRoot),c=U(()=>a.value?Array.from(s.value).indexOf(a.value):-1),l=U(()=>kA.layersWithOutsidePointerEventsDisabled.size>0),u=U(()=>{let e=Array.from(s.value),[t]=[...kA.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return c.value>=n}),d=DA(async e=>{let t=[...kA.branches].some(t=>t?.contains(e.target));!u.value||t||(r(`pointerDownOutside`,e),r(`interactOutside`,e),await Gn(),e.defaultPrevented||r(`dismiss`))},a),f=OA(e=>{let t=[...kA.branches].some(t=>t?.contains(e.target));t||(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},a);wx(`Escape`,e=>{let t=c.value===s.value.size-1;t&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))});let p;return za(e=>{a.value&&(n.disableOutsidePointerEvents&&(kA.layersWithOutsidePointerEventsDisabled.size===0&&(p=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents=`none`),kA.layersWithOutsidePointerEventsDisabled.add(a.value)),s.value.add(a.value),e(()=>{n.disableOutsidePointerEvents&&kA.layersWithOutsidePointerEventsDisabled.size===1&&(o.value.body.style.pointerEvents=p)}))}),za(e=>{e(()=>{a.value&&(s.value.delete(a.value),kA.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(e,t)=>(z(),Ao(I(SA),{ref:I(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:be({pointerEvents:l.value?u.value?`auto`:`none`:void 0}),onFocusCapture:I(f).onFocusCapture,onBlurCapture:I(f).onBlurCapture,onPointerdownCapture:I(d).onPointerDownCapture},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),AA=Tfe;const Efe=xse(()=>{let e=F([]);return e});function Dfe(){let e=Efe();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=jA(e.value,t),e.value.unshift(t)},remove(t){e.value=jA(e.value,t),e.value[0]?.resume()}}}function jA(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ofe(e){return e.filter(e=>e.tagName!==`A`)}const MA=`focusScope.autoFocusOnMount`,NA=`focusScope.autoFocusOnUnmount`,PA={bubbles:!1,cancelable:!0};function kfe(e,{select:t=!1}={}){let n=Yk();for(let r of e)if(LA(r,{select:t}),Yk()!==n)return!0}function Afe(e){let t=FA(e),n=IA(t,e),r=IA(t.reverse(),e);return[n,r]}function FA(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function IA(e,t){for(let n of e)if(!jfe(n,{upTo:t}))return n}function jfe(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Mfe(e){return e instanceof HTMLInputElement&&`select`in e}function LA(e,{select:t=!1}={}){if(e&&e.focus){let n=Yk();e.focus({preventScroll:!0}),e!==n&&Mfe(e)&&t&&e.select()}}var Nfe=R({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{currentRef:i,currentElement:a}=sA(),o=F(null),s=Dfe(),c=Zt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});za(e=>{if(!ix)return;let t=a.value;if(!n.trapped)return;function r(e){if(c.paused||!t)return;let n=e.target;t.contains(n)?o.value=n:LA(o.value,{select:!0})}function i(e){if(c.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||LA(o.value,{select:!0}))}function s(e){let n=t.contains(o.value);n||LA(t)}document.addEventListener(`focusin`,r),document.addEventListener(`focusout`,i);let l=new MutationObserver(s);t&&l.observe(t,{childList:!0,subtree:!0}),e(()=>{document.removeEventListener(`focusin`,r),document.removeEventListener(`focusout`,i),l.disconnect()})}),za(async e=>{let t=a.value;if(await Gn(),!t)return;s.add(c);let n=Yk(),i=t.contains(n);if(!i){let e=new CustomEvent(MA,PA);t.addEventListener(MA,e=>r(`mountAutoFocus`,e)),t.dispatchEvent(e),e.defaultPrevented||(kfe(Ofe(FA(t)),{select:!0}),Yk()===n&&LA(t))}e(()=>{t.removeEventListener(MA,e=>r(`mountAutoFocus`,e));let e=new CustomEvent(NA,PA),i=e=>{r(`unmountAutoFocus`,e)};t.addEventListener(NA,i),t.dispatchEvent(e),setTimeout(()=>{e.defaultPrevented||LA(n??document.body,{select:!0}),t.removeEventListener(NA,i),s.remove(c)},0)})});function l(e){if(!n.loop&&!n.trapped||c.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=Yk();if(t&&r){let t=e.currentTarget,[i,a]=Afe(t),o=i&&a;o?!e.shiftKey&&r===a?(e.preventDefault(),n.loop&&LA(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n.loop&&LA(a,{select:!0})):r===t&&e.preventDefault()}}return(e,t)=>(z(),Ao(I(SA),{ref_key:`currentRef`,ref:i,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:l},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),RA=Nfe;const Pfe=`menu.itemSelect`,zA=[`Enter`,` `],Ffe=[`ArrowDown`,`PageUp`,`Home`],BA=[`ArrowUp`,`PageDown`,`End`],Ife=[...Ffe,...BA];[...zA],[...zA];function VA(e){return e?`open`:`closed`}function Lfe(e){let t=Yk();for(let n of e)if(n===t||(n.focus(),Yk()!==t))return}function Rfe(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=l>r&&n<(c-o)*(r-s)/(l-s)+o;u&&(i=!i)}return i}function zfe(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return Rfe(n,t)}function Bfe(e){return e.pointerType===`mouse`}var Vfe=R({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=wA(),{forwardRef:a,currentElement:o}=sA();return i.titleId||=gA(void 0,`reka-dialog-title`),i.descriptionId||=gA(void 0,`reka-dialog-description`),fi(()=>{i.contentElement=o,Yk()!==document.body&&(i.triggerElement.value=Yk())}),(e,t)=>(z(),Ao(I(RA),{"as-child":``,loop:``,trapped:n.trapFocus,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:L(()=>[H(I(AA),Uo({id:I(i).contentId,ref:I(a),as:e.as,"as-child":e.asChild,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":I(i).descriptionId,"aria-labelledby":I(i).titleId,"data-state":I(VA)(I(i).open.value)},e.$attrs,{onDismiss:t[0]||=e=>I(i).onOpenChange(!1),onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[2]||=e=>r(`focusOutside`,e),onInteractOutside:t[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:t[4]||=e=>r(`pointerDownOutside`,e)}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`]))}}),HA=Vfe,Hfe=R({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=wA(),a=nA(r),{forwardRef:o,currentElement:s}=sA();return hA(s),(e,t)=>(z(),Ao(HA,Uo({...n,...I(a)},{ref:I(o),"trap-focus":I(i).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(e.preventDefault(),I(i).triggerElement.value?.focus())},onPointerDownOutside:t[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;r&&e.preventDefault()},onFocusOutside:t[2]||=e=>{e.preventDefault()}}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),Ufe=Hfe,Wfe=R({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=nA(r);sA();let a=wA(),o=F(!1),s=F(!1);return(e,t)=>(z(),Ao(HA,Uo({...n,...I(i)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(o.value||I(a).triggerElement.value?.focus(),e.preventDefault()),o.value=!1,s.value=!1},onInteractOutside:t[1]||=e=>{e.defaultPrevented||(o.value=!0,e.detail.originalEvent.type===`pointerdown`&&(s.value=!0));let t=e.target,n=I(a).triggerElement.value?.contains(t);n&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&s.value&&e.preventDefault()}}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))}}),Gfe=Wfe,Kfe=R({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=wA(),a=nA(r),{forwardRef:o}=sA();return(e,t)=>(z(),Ao(I(bA),{present:e.forceMount||I(i).open.value},{default:L(()=>[I(i).modal.value?(z(),Ao(Ufe,Uo({key:0,ref:I(o)},{...n,...I(a),...e.$attrs}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16)):(z(),Ao(Gfe,Uo({key:1,ref:I(o)},{...n,...I(a),...e.$attrs}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),UA=Kfe,qfe=R({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=wA();return $k(!0),sA(),(e,n)=>(z(),Ao(I(SA),{as:e.as,"as-child":e.asChild,"data-state":I(t).open.value?`open`:`closed`,style:{"pointer-events":`auto`}},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),Jfe=qfe,Yfe=R({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=wA(),{forwardRef:n}=sA();return(e,r)=>I(t)?.modal.value?(z(),Ao(I(bA),{key:0,present:e.forceMount||I(t).open.value},{default:L(()=>[H(Jfe,Uo(e.$attrs,{ref:I(n),as:e.as,"as-child":e.asChild}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`as`,`as-child`])]),_:3},8,[`present`])):zo(`v-if`,!0)}}),WA=Yfe,Xfe=R({__name:`Teleport`,props:{to:{type:null,required:!1,default:`body`},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=bx();return(e,n)=>I(t)||e.forceMount?(z(),Ao(yr,{key:0,to:e.to,disabled:e.disabled,defer:e.defer},[Ai(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):zo(`v-if`,!0)}}),GA=Xfe,Zfe=R({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(z(),Ao(I(GA),Ee(Fo(t)),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))}}),KA=Zfe,Qfe=R({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=wA();return sA(),(e,r)=>(z(),Ao(I(SA),Uo(t,{id:I(n).titleId}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`id`]))}}),qA=Qfe;const JA=`data-reka-collection-item`;function YA(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;if(n){let e=F(new Map),t=F();i={collectionRef:t,itemMap:e},ua(r,i)}else i=da(r);let a=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${JA}]`)),r=Array.from(i.itemMap.value.values()),a=r.sort((e,t)=>n.indexOf(e.ref)-n.indexOf(t.ref));return e?a:a.filter(e=>e.ref.dataset.disabled!==``)},o=R({name:`CollectionSlot`,setup(e,{slots:t}){let{primitiveElement:n,currentElement:r}=CA();return Ha(r,()=>{i.collectionRef.value=r.value}),()=>fs(xA,{ref:n},t)}}),s=R({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=CA();return za(t=>{if(a.value){let n=cn(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>fs(xA,{...n,[JA]:``,ref:r},t)}}),c=U(()=>Array.from(i.itemMap.value.values())),l=U(()=>i.itemMap.value.size);return{getItems:a,reactiveItems:c,itemMapSize:l,CollectionSlot:o,CollectionItem:s}}const $fe=`rovingFocusGroup.onEntryFocus`,epe={bubbles:!1,cancelable:!0},tpe={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function npe(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function rpe(e,t,n){let r=npe(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return tpe[r]}function ipe(e,t=!1){let n=Yk();for(let r of e)if(r===n||(r.focus({preventScroll:t}),Yk()!==n))return}var ape=R({__name:`VisuallyHidden`,props:{feature:{type:String,required:!1,default:`focusable`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return(e,t)=>(z(),Ao(I(SA),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature===`focusable`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,border:0,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,wordWrap:`normal`}},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),XA=ape,ope=R({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,{primitiveElement:n,currentElement:r}=CA(),i=U(()=>t.checked??t.value);return Ha(i,(e,t)=>{if(!r.value)return;let n=r.value,i=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(i,`value`),o=a.set;if(o&&e!==t){let t=new Event(`input`,{bubbles:!0}),r=new Event(`change`,{bubbles:!0});o.call(n,e),n.dispatchEvent(t),n.dispatchEvent(r)}}),(e,r)=>(z(),Ao(XA,Uo({ref_key:`primitiveElement`,ref:n},{...t,...e.$attrs},{as:`input`}),null,16))}}),ZA=ope,spe=R({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,n=U(()=>typeof t.value==`object`&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=U(()=>typeof t.value==`string`||typeof t.value==`number`||typeof t.value==`boolean`||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value==`object`&&Array.isArray(t.value)?t.value.flatMap((e,n)=>typeof e==`object`?Object.entries(e).map(([e,r])=>({name:`${t.name}[${n}][${e}]`,value:r})):{name:`${t.name}[${n}]`,value:e}):t.value!==null&&typeof t.value==`object`&&!Array.isArray(t.value)?Object.entries(t.value).map(([e,n])=>({name:`${t.name}[${e}]`,value:n})):[]);return(e,i)=>(z(),B(bo,null,[zo(` We render single input if it's required `),n.value?(z(),Ao(ZA,Uo({key:e.name},{...t,...e.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`])):(z(!0),B(bo,{key:1},Oi(r.value,n=>(z(),Ao(ZA,Uo({key:n.name},{ref_for:!0},{...t,...e.$attrs},{name:n.name,value:n.value}),null,16,[`name`,`value`]))),128))],2112))}}),QA=spe;const[$A,cpe]=Jk(`PopperRoot`);var lpe=R({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=F();return cpe({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>Ai(e.$slots,`default`)}}),ej=lpe,upe=R({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=sA(),i=$A();return Ba(()=>{i.onAnchorChange(t.reference??r.value)}),(e,t)=>(z(),Ao(I(SA),{ref:I(n),as:e.as,"as-child":e.asChild},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}}),tj=upe;const dpe={key:0,d:`M0 0L6 6L12 0`},fpe={key:1,d:`M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0`};var ppe=R({__name:`Arrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return sA(),(e,n)=>(z(),Ao(I(SA),Uo(t,{width:e.width,height:e.height,viewBox:e.asChild?void 0:`0 0 12 6`,preserveAspectRatio:e.asChild?void 0:`none`}),{default:L(()=>[Ai(e.$slots,`default`,{},()=>[e.rounded?(z(),B(`path`,fpe)):(z(),B(`path`,dpe))])]),_:3},16,[`width`,`height`,`viewBox`,`preserveAspectRatio`]))}}),mpe=ppe;function hpe(e){return e!==null}function gpe(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=nj(n),d={start:`0%`,center:`50%`,end:`100%`}[u],f=(i.arrow?.x??0)+s/2,p=(i.arrow?.y??0)+c/2,m=``,h=``;return l===`bottom`?(m=o?d:`${f}px`,h=`${-c}px`):l===`top`?(m=o?d:`${f}px`,h=`${r.floating.height+c}px`):l===`right`?(m=`${-c}px`,h=o?d:`${p}px`):l===`left`&&(m=`${r.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:m,y:h}}}}}function nj(e){let[t,n=`center`]=e.split(`-`);return[t,n]}const _pe=[`top`,`right`,`bottom`,`left`],rj=Math.min,ij=Math.max,aj=Math.round,oj=Math.floor,sj=e=>({x:e,y:e}),vpe={left:`right`,right:`left`,bottom:`top`,top:`bottom`},ype={start:`end`,end:`start`};function cj(e,t,n){return ij(e,rj(t,n))}function lj(e,t){return typeof e==`function`?e(t):e}function uj(e){return e.split(`-`)[0]}function dj(e){return e.split(`-`)[1]}function fj(e){return e===`x`?`y`:`x`}function pj(e){return e===`y`?`height`:`width`}function mj(e){return[`top`,`bottom`].includes(uj(e))?`y`:`x`}function hj(e){return fj(mj(e))}function bpe(e,t,n){n===void 0&&(n=!1);let r=dj(e),i=hj(e),a=pj(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=_j(o)),[o,_j(o)]}function xpe(e){let t=_j(e);return[gj(e),t,gj(t)]}function gj(e){return e.replace(/start|end/g,e=>ype[e])}function Spe(e,t,n){let r=[`left`,`right`],i=[`right`,`left`],a=[`top`,`bottom`],o=[`bottom`,`top`];switch(e){case`top`:case`bottom`:return n?t?i:r:t?r:i;case`left`:case`right`:return t?a:o;default:return[]}}function Cpe(e,t,n,r){let i=dj(e),a=Spe(uj(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(gj)))),a}function _j(e){return e.replace(/left|right|bottom|top/g,e=>vpe[e])}function wpe(e){return{top:0,right:0,bottom:0,left:0,...e}}function vj(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:wpe(e)}function yj(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function bj(e,t,n){let{reference:r,floating:i}=e,a=mj(t),o=hj(t),s=pj(o),c=uj(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(dj(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}const Tpe=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=bj(l,r,c),f=r,p={},m=0;for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=lj(e,t)||{};if(l==null)return{};let d=vj(u),f={x:n,y:r},p=hj(i),m=pj(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=rj(d[_],T),D=rj(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=cj(O,A,k),M=!c.arrow&&dj(i)!=null&&A!==j&&a.reference[m]/2-(Ae<=0)){var D,O;let e=((D=a.flip)?.index||0)+1,t=C[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?.placement;if(!n)switch(p){case`bestFit`:{var k;let e=(k=E.filter(e=>{if(S){let t=mj(e.placement);return t===v||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?.[0];e&&(n=e);break}case`initialPlacement`:n=s;break}if(i!==n)return{reset:{placement:n}}}return{}}}};function Sj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cj(e){return _pe.some(t=>e[t]>=0)}const Ope=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=lj(e,t);switch(r){case`referenceHidden`:{let e=await xj(t,{...i,elementContext:`reference`}),r=Sj(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Cj(r)}}}case`escaped`:{let e=await xj(t,{...i,altBoundary:!0}),r=Sj(e,n.floating);return{data:{escapedOffsets:r,escaped:Cj(r)}}}default:return{}}}}};async function kpe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=uj(n),s=dj(n),c=mj(n)===`y`,l=[`left`,`top`].includes(o)?-1:1,u=a&&c?-1:1,d=lj(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const Ape=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,c=await kpe(t,e);return o===(n=s.offset)?.placement&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},jpe=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=lj(e,t),l={x:n,y:r},u=await xj(t,c),d=mj(uj(i)),f=fj(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=cj(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=cj(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},Mpe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=lj(e,t),u={x:n,y:r},d=mj(i),f=fj(d),p=u[f],m=u[d],h=lj(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){var _,v;let e=f===`y`?`width`:`height`,t=[`top`,`left`].includes(uj(i)),n=a.reference[d]-a.floating[e]+(t&&(_=o.offset)?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(v=o.offset)?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Npe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=lj(e,t),u=await xj(t,l),d=uj(i),f=dj(i),p=mj(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=rj(h-u[g],v),x=rj(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=ij(u.left,0),t=ij(u.right,0),n=ij(u.top,0),r=ij(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:ij(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:ij(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function wj(){return typeof window<`u`}function Tj(e){return Oj(e)?(e.nodeName||``).toLowerCase():`#document`}function Ej(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dj(e){var t;return(t=(Oj(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Oj(e){return wj()?e instanceof Node||e instanceof Ej(e).Node:!1}function kj(e){return wj()?e instanceof Element||e instanceof Ej(e).Element:!1}function Aj(e){return wj()?e instanceof HTMLElement||e instanceof Ej(e).HTMLElement:!1}function jj(e){return!wj()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ej(e).ShadowRoot}function Mj(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Lj(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function Ppe(e){return[`table`,`td`,`th`].includes(Tj(e))}function Nj(e){return[`:popover-open`,`:modal`].some(t=>{try{return e.matches(t)}catch{return!1}})}function Pj(e){let t=Fj(),n=kj(e)?Lj(e):e;return[`transform`,`translate`,`scale`,`rotate`,`perspective`].some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`].some(e=>(n.willChange||``).includes(e))||[`paint`,`layout`,`strict`,`content`].some(e=>(n.contain||``).includes(e))}function Fpe(e){let t=zj(e);for(;Aj(t)&&!Ij(t);){if(Pj(t))return t;if(Nj(t))return null;t=zj(t)}return null}function Fj(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}function Ij(e){return[`html`,`body`,`#document`].includes(Tj(e))}function Lj(e){return Ej(e).getComputedStyle(e)}function Rj(e){return kj(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zj(e){if(Tj(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||jj(e)&&e.host||Dj(e);return jj(t)?t.host:t}function Bj(e){let t=zj(e);return Ij(t)?e.ownerDocument?e.ownerDocument.body:e.body:Aj(t)&&Mj(t)?t:Bj(t)}function Vj(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=Bj(e),a=i===(r=e.ownerDocument)?.body,o=Ej(i);if(a){let e=Hj(o);return t.concat(o,o.visualViewport||[],Mj(i)?i:[],e&&n?Vj(e):[])}return t.concat(i,Vj(i,[],n))}function Hj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Uj(e){let t=Lj(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Aj(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=aj(n)!==a||aj(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Wj(e){return kj(e)?e:e.contextElement}function Gj(e){let t=Wj(e);if(!Aj(t))return sj(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Uj(t),o=(a?aj(n.width):n.width)/r,s=(a?aj(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Ipe=sj(0);function Kj(e){let t=Ej(e);return!Fj()||!t.visualViewport?Ipe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lpe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ej(e)?!1:t}function qj(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Wj(e),o=sj(1);t&&(r?kj(r)&&(o=Gj(r)):o=Gj(e));let s=Lpe(a,n,r)?Kj(a):sj(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ej(a),t=r&&kj(r)?Ej(r):r,n=e,i=Hj(n);for(;i&&r&&t!==n;){let e=Gj(i),t=i.getBoundingClientRect(),r=Lj(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ej(i),i=Hj(n)}}return yj({width:u,height:d,x:c,y:l})}function Jj(e,t){let n=Rj(e).scrollLeft;return t?t.left+n:qj(Dj(e)).left+n}function Yj(e,t,n){n===void 0&&(n=!1);let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Jj(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function Rpe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Dj(r),s=t?Nj(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=sj(1),u=sj(0),d=Aj(r);if((d||!d&&!a)&&((Tj(r)!==`body`||Mj(o))&&(c=Rj(r)),Aj(r))){let e=qj(r);l=Gj(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Yj(o,c,!0):sj(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function zpe(e){return Array.from(e.getClientRects())}function Bpe(e){let t=Dj(e),n=Rj(e),r=e.ownerDocument.body,i=ij(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ij(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Jj(e),s=-n.scrollTop;return Lj(r).direction===`rtl`&&(o+=ij(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function Vpe(e,t){let n=Ej(e),r=Dj(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Fj();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function Hpe(e,t){let n=qj(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Aj(e)?Gj(e):sj(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function Xj(e,t,n){let r;if(t===`viewport`)r=Vpe(e,n);else if(t===`document`)r=Bpe(Dj(e));else if(kj(t))r=Hpe(t,n);else{let n=Kj(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return yj(r)}function Zj(e,t){let n=zj(e);return n===t||!kj(n)||Ij(n)?!1:Lj(n).position===`fixed`||Zj(n,t)}function Upe(e,t){let n=t.get(e);if(n)return n;let r=Vj(e,[],!1).filter(e=>kj(e)&&Tj(e)!==`body`),i=null,a=Lj(e).position===`fixed`,o=a?zj(e):e;for(;kj(o)&&!Ij(o);){let t=Lj(o),n=Pj(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&[`absolute`,`fixed`].includes(i.position)||Mj(o)&&!n&&Zj(e,o);s?r=r.filter(e=>e!==o):i=t,o=zj(o)}return t.set(e,r),r}function Wpe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?Nj(t)?[]:Upe(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=Xj(t,n,i);return e.top=ij(r.top,e.top),e.right=rj(r.right,e.right),e.bottom=rj(r.bottom,e.bottom),e.left=ij(r.left,e.left),e},Xj(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Gpe(e){let{width:t,height:n}=Uj(e);return{width:t,height:n}}function Kpe(e,t,n){let r=Aj(t),i=Dj(t),a=n===`fixed`,o=qj(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=sj(0);if(r||!r&&!a)if((Tj(t)!==`body`||Mj(i))&&(s=Rj(t)),r){let e=qj(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=Jj(i));let l=i&&!r&&!a?Yj(i,s):sj(0),u=o.left+s.scrollLeft-c.x-l.x,d=o.top+s.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Qj(e){return Lj(e).position===`static`}function $j(e,t){if(!Aj(e)||Lj(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Dj(e)===n&&(n=n.ownerDocument.body),n}function eM(e,t){let n=Ej(e);if(Nj(e))return n;if(!Aj(e)){let t=zj(e);for(;t&&!Ij(t);){if(kj(t)&&!Qj(t))return t;t=zj(t)}return n}let r=$j(e,t);for(;r&&Ppe(r)&&Qj(r);)r=$j(r,t);return r&&Ij(r)&&Qj(r)&&!Pj(r)?n:r||Fpe(e)||n}const qpe=async function(e){let t=this.getOffsetParent||eM,n=this.getDimensions,r=await n(e.floating);return{reference:Kpe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Jpe(e){return Lj(e).direction===`rtl`}const Ype={convertOffsetParentRelativeRectToViewportRelativeRect:Rpe,getDocumentElement:Dj,getClippingRect:Wpe,getOffsetParent:eM,getElementRects:qpe,getClientRects:zpe,getDimensions:Gpe,getScale:Gj,isElement:kj,isRTL:Jpe};function tM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xpe(e,t){let n=null,r,i=Dj(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=oj(d),h=oj(i.clientWidth-(u+f)),g=oj(i.clientHeight-(d+p)),_=oj(u),v=-m+`px `+-h+`px `+-g+`px `+-_+`px`,y={rootMargin:v,threshold:ij(0,rj(1,c))||1},b=!0;function x(t){let n=t[0].intersectionRatio;if(n!==c){if(!b)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!tM(l,e.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,y)}n.observe(e)}return o(!0),a}function Zpe(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Wj(e),u=i||a?[...l?Vj(l):[],...Vj(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Xpe(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?qj(e):null;c&&g();function g(){let t=qj(e);h&&!tM(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Qpe=Ape,$pe=jpe,nM=Dpe,eme=Npe,tme=Ope,nme=Epe,rme=Mpe,ime=(e,t,n)=>{let r=new Map,i={platform:Ype,...n},a={...i.platform,_c:r};return Tpe(e,t,{...i,platform:a})};function ame(e){return typeof e==`object`&&!!e&&`$el`in e}function rM(e){if(ame(e)){let t=e.$el;return Oj(t)&&Tj(t)===`#comment`?null:t}return e}function iM(e){return typeof e==`function`?e():I(e)}function ome(e){return{name:`arrow`,options:e,fn(t){let n=rM(iM(e.element));return n==null?{}:nme({element:n,padding:e.padding}).fn(t)}}}function aM(e){if(typeof window>`u`)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function oM(e,t){let n=aM(e);return Math.round(t*n)/n}function sme(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=U(()=>{var e;return(e=iM(n.open))??!0}),a=U(()=>iM(n.middleware)),o=U(()=>{var e;return(e=iM(n.placement))??`bottom`}),s=U(()=>{var e;return(e=iM(n.strategy))??`absolute`}),c=U(()=>{var e;return(e=iM(n.transform))??!0}),l=U(()=>rM(e.value)),u=U(()=>rM(t.value)),d=F(0),f=F(0),p=F(s.value),m=F(o.value),h=fn({}),g=F(!1),_=U(()=>{let e={position:p.value,left:`0`,top:`0`};if(!u.value)return e;let t=oM(u.value,d.value),n=oM(u.value,f.value);return c.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...aM(u.value)>=1.5&&{willChange:`transform`}}:{position:p.value,left:t+`px`,top:n+`px`}}),v;function y(){if(l.value==null||u.value==null)return;let e=i.value;ime(l.value,u.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(t=>{d.value=t.x,f.value=t.y,p.value=t.strategy,m.value=t.placement,h.value=t.middlewareData,g.value=e!==!1})}function b(){typeof v==`function`&&(v(),v=void 0)}function x(){if(b(),r===void 0){y();return}if(l.value!=null&&u.value!=null){v=r(l.value,u.value,y);return}}function S(){i.value||(g.value=!1)}return Ha([a,o,s,i],y,{flush:`sync`}),Ha([l,u],x,{flush:`sync`}),Ha(i,S,{flush:`sync`}),Ve()&&He(b),{x:en(d),y:en(f),strategy:en(p),placement:en(m),middlewareData:en(h),isPositioned:en(g),floatingStyles:_,update:y}}const sM={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[cme,lme]=Jk(`PopperContent`);var ume=R({inheritAttrs:!1,__name:`PopperContent`,props:Yi({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...sM}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=$A(),{forwardRef:a,currentElement:o}=sA(),s=F(),c=F(),{width:l,height:u}=_fe(c),d=U(()=>n.side+(n.align===`center`?``:`-${n.align}`)),f=U(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=U(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=U(()=>({padding:f.value,boundary:p.value.filter(hpe),altBoundary:p.value.length>0})),h=U(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=bse(()=>[Qpe({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&nM({...m.value,...h.value}),n.avoidCollisions&&$pe({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?rme():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&nM({...m.value,...h.value}),eme({...m.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),c.value&&ome({element:c.value,padding:n.arrowPadding}),gpe({arrowWidth:l.value,arrowHeight:u.value}),n.hideWhenDetached&&tme({strategy:`referenceHidden`,...m.value})]),_=U(()=>n.reference??i.anchor.value),{floatingStyles:v,placement:y,isPositioned:b,middlewareData:x,update:S}=sme(_,s,{strategy:n.positionStrategy,placement:d,whileElementsMounted:(...e)=>{let t=Zpe(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`});return t},middleware:g}),C=U(()=>nj(y.value)[0]),w=U(()=>nj(y.value)[1]);Ba(()=>{b.value&&r(`placed`)});let T=U(()=>x.value.arrow?.centerOffset!==0),E=F(``);za(()=>{o.value&&(E.value=window.getComputedStyle(o.value).zIndex)});let D=U(()=>x.value.arrow?.x??0),O=U(()=>x.value.arrow?.y??0);return lme({placedSide:C,onArrowChange:e=>c.value=e,arrowX:D,arrowY:O,shouldHideArrow:T}),(e,t)=>(z(),B(`div`,{ref_key:`floatingRef`,ref:s,"data-reka-popper-content-wrapper":``,style:be({...I(v),transform:I(b)?I(v).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:E.value,"--reka-popper-transform-origin":[I(x).transformOrigin?.x,I(x).transformOrigin?.y].join(` `),...I(x).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[H(I(SA),Uo({ref:I(a)},e.$attrs,{"as-child":n.asChild,as:e.as,"data-side":C.value,"data-align":w.value,style:{animation:I(b)?void 0:`none`}}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])],4))}}),cM=ume;const dme={top:`bottom`,right:`left`,bottom:`top`,left:`right`};var fme=R({inheritAttrs:!1,__name:`PopperArrow`,props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let{forwardRef:t}=sA(),n=cme(),r=U(()=>dme[n.placedSide.value]);return(e,i)=>(z(),B(`span`,{ref:e=>{I(n).onArrowChange(e)},style:be({position:`absolute`,left:I(n).arrowX?.value?`${I(n).arrowX?.value}px`:void 0,top:I(n).arrowY?.value?`${I(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[I(n).placedSide.value],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[I(n).placedSide.value],visibility:I(n).shouldHideArrow.value?`hidden`:void 0})},[H(mpe,Uo(e.$attrs,{ref:I(t),style:{display:`block`},as:e.as,"as-child":e.asChild,rounded:e.rounded,width:e.width,height:e.height}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`rounded`,`width`,`height`])],4))}}),pme=fme,mme=R({__name:`ComboboxAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{forwardRef:t}=sA();return(e,n)=>(z(),Ao(I(tj),{"as-child":``,reference:e.reference},{default:L(()=>[H(I(SA),Uo({ref:I(t),"as-child":e.asChild,as:e.as},e.$attrs),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`as-child`,`as`])]),_:3},8,[`reference`]))}}),hme=mme;function gme(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(e=>lM(e,t,n)):lM(e,t,n)}function lM(e,t,n){return e===void 0||t===void 0?!1:typeof e==`string`?e===t:typeof n==`function`?n(e,t):typeof n==`string`?e?.[n]===t?.[n]:qk(e,t)}const[uM,_me]=Jk(`ListboxRoot`);var vme=R({__name:`ListboxRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},orientation:{type:String,required:!1,default:`vertical`},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},selectionBehavior:{type:String,required:!1,default:`toggle`},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`],setup(e,{expose:t,emit:n}){let r=e,i=n,{multiple:a,highlightOnHover:o,orientation:s,disabled:c,selectionBehavior:l,dir:u}=_n(r),{getItems:d}=YA({isProvider:!0}),{handleTypeaheadSearch:f}=vA(),{primitiveElement:p,currentElement:m}=CA(),h=_A(),g=tA(u),_=oA(m),v=F(),y=F(!1),b=F(!0),x=zx(r,`modelValue`,i,{defaultValue:r.defaultValue??(a.value?[]:void 0),passive:r.modelValue===void 0,deep:!0});function S(e){if(y.value=!0,r.multiple){let t=Array.isArray(x.value)?[...x.value]:[],n=t.findIndex(t=>lM(t,e,r.by));r.selectionBehavior===`toggle`?(n===-1?t.push(e):t.splice(n,1),x.value=t):(x.value=[e],v.value=e)}else r.selectionBehavior===`toggle`&&lM(x.value,e,r.by)?x.value=void 0:x.value=e;setTimeout(()=>{y.value=!1},1)}let C=F(null),w=F(null),T=F(!1),E=F(!1),D=tx(),O=tx(),k=tx();function A(){return d().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)}function j(e,t=!0){if(!e)return;C.value=e,b.value&&C.value.focus(),t&&C.value.scrollIntoView({block:`nearest`});let n=d().find(t=>t.ref===e);i(`highlight`,n)}function M(e){if(T.value)k.trigger(e);else{let t=d().find(t=>lM(t.value,e,r.by));t&&(C.value=t.ref,j(t.ref))}}function ee(e){C.value&&C.value.isConnected&&(e.preventDefault(),e.stopPropagation(),E.value||C.value.click())}function te(e){if(b.value){if(y.value=!0,T.value)O.trigger(e);else{let t=e.altKey||e.ctrlKey||e.metaKey;if(t&&e.key===`a`&&a.value){let t=d(),n=t.map(e=>e.value);x.value=[...n],e.preventDefault(),j(t[t.length-1].ref)}else if(!t){let t=f(e.key,d());t&&j(t)}}setTimeout(()=>{y.value=!1},1)}}function N(){E.value=!0}function ne(){Gn(()=>{E.value=!1})}function re(){Gn(()=>{let e=new KeyboardEvent(`keydown`,{key:`PageUp`});oe(e)})}function ie(e){let t=C.value;t?.isConnected&&(w.value=t),C.value=null,i(`leave`,e)}function ae(e){let t=new CustomEvent(`listbox.entryFocus`,{bubbles:!1,cancelable:!0});if(e.currentTarget?.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented)if(w.value)j(w.value);else{let e=A()?.[0];j(e)}}function oe(e){let t=rpe(e,s.value,g.value);if(!t)return;let n=A();if(C.value){if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let e=n.indexOf(C.value);n=n.slice(e+1)}se(e,n[0])}if(n.length){let e=!C.value&&t===`prev`?n.length-1:0;j(n[e])}if(T.value)return O.trigger(e)}function se(e,t){if(T.value||r.selectionBehavior!==`replace`||!a.value||!Array.isArray(x.value))return;let n=e.altKey||e.ctrlKey||e.metaKey;if(!(n&&!e.shiftKey)&&e.shiftKey){let n=d().filter(e=>e.ref.dataset.disabled!==``),r=n.find(e=>e.ref===t)?.value;if(e.key===h.END?r=n[n.length-1].value:e.key===h.HOME&&(r=n[0].value),!r||!v.value)return;let i=efe(n.map(e=>e.value),v.value,r);x.value=i}}async function ce(e){if(await Gn(),T.value)D.trigger(e);else{let e=A(),t=e.find(e=>e.dataset.state===`checked`);t?j(t):e.length&&j(e[0])}}return Ha(x,()=>{y.value||Gn(()=>{ce()})},{immediate:!0,deep:!0}),t({highlightedElement:C,highlightItem:M,highlightFirstItem:re,highlightSelected:ce,getItems:d}),_me({modelValue:x,onValueChange:S,multiple:a,orientation:s,dir:g,disabled:c,highlightOnHover:o,highlightedElement:C,isVirtual:T,virtualFocusHook:D,virtualKeydownHook:O,virtualHighlightHook:k,by:r.by,firstValue:v,selectionBehavior:l,focusable:b,onLeave:ie,onEnter:ae,changeHighlight:j,onKeydownEnter:ee,onKeydownNavigation:oe,onKeydownTypeAhead:te,onCompositionStart:N,onCompositionEnd:ne,highlightFirstItem:re}),(e,t)=>(z(),Ao(I(SA),{ref_key:`primitiveElement`,ref:p,as:e.as,"as-child":e.asChild,dir:I(g),"data-disabled":I(c)?``:void 0,onPointerleave:ie,onFocusout:t[0]||=async e=>{let t=e.relatedTarget||e.target;await Gn(),C.value&&I(m)&&!I(m).contains(t)&&ie(e)}},{default:L(()=>[Ai(e.$slots,`default`,{modelValue:I(x)}),I(_)&&e.name?(z(),Ao(I(QA),{key:0,name:e.name,value:I(x),disabled:I(c),required:e.required},null,8,[`name`,`value`,`disabled`,`required`])):zo(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`dir`,`data-disabled`]))}}),yme=vme,bme=R({__name:`ListboxContent`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{CollectionSlot:t}=YA(),n=uM(),r=dx(!1,10);return(e,i)=>(z(),Ao(I(t),null,{default:L(()=>[H(I(SA),{role:`listbox`,as:e.as,"as-child":e.asChild,tabindex:I(n).focusable.value?I(n).highlightedElement.value?`-1`:`0`:void 0,"aria-orientation":I(n).orientation.value,"aria-multiselectable":!!I(n).multiple.value,"data-orientation":I(n).orientation.value,onMousedown:i[0]||=Yc(e=>r.value=!0,[`left`]),onFocus:i[1]||=e=>{I(r)||I(n).onEnter(e)},onKeydown:[i[2]||=Xc(Yc(e=>{I(n).focusable.value&&I(n).onKeydownNavigation(e)},[`prevent`]),[`down`,`up`,`left`,`right`,`home`,`end`]),Xc(I(n).onKeydownEnter,[`enter`]),I(n).onKeydownTypeAhead]},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`tabindex`,`aria-orientation`,`aria-multiselectable`,`data-orientation`,`onKeydown`])]),_:3}))}}),xme=bme,Sme=R({__name:`ListboxFilter`,props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=zx(n,`modelValue`,r,{defaultValue:``,passive:n.modelValue===void 0}),a=uM(),{primitiveElement:o,currentElement:s}=CA(),c=U(()=>n.disabled||a.disabled.value||!1),l=F();return Va(()=>l.value=a.highlightedElement.value?.id),fi(()=>{a.focusable.value=!1,setTimeout(()=>{n.autoFocus&&s.value?.focus()},1)}),gi(()=>{a.focusable.value=!0}),(e,t)=>(z(),Ao(I(SA),{ref_key:`primitiveElement`,ref:o,as:e.as,"as-child":e.asChild,value:I(i),disabled:c.value?``:void 0,"data-disabled":c.value?``:void 0,"aria-disabled":c.value??void 0,"aria-activedescendant":l.value,type:`text`,onKeydown:[Xc(Yc(I(a).onKeydownNavigation,[`prevent`]),[`down`,`up`,`home`,`end`]),Xc(I(a).onKeydownEnter,[`enter`])],onInput:t[0]||=e=>{i.value=e.target.value,I(a).highlightFirstItem()},onCompositionstart:I(a).onCompositionStart,onCompositionend:I(a).onCompositionEnd},{default:L(()=>[Ai(e.$slots,`default`,{modelValue:I(i)})]),_:3},8,[`as`,`as-child`,`value`,`disabled`,`data-disabled`,`aria-disabled`,`aria-activedescendant`,`onKeydown`,`onCompositionstart`,`onCompositionend`]))}}),Cme=Sme;const[wme,Tme]=Jk(`ListboxGroup`);var Eme=R({__name:`ListboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=gA(void 0,`reka-listbox-group`);return Tme({id:n}),(e,r)=>(z(),Ao(I(SA),Uo({role:`group`},t,{"aria-labelledby":I(n)}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),Dme=Eme;const[Ome,kme]=Jk(`ListboxItem`);var Ame=R({__name:`ListboxItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=gA(void 0,`reka-listbox-item`),{CollectionItem:a}=YA(),{forwardRef:o,currentElement:s}=sA(),c=uM(),l=U(()=>s.value===c.highlightedElement.value),u=U(()=>gme(c.modelValue.value,n.value,c.by)),d=U(()=>c.disabled.value||n.disabled);async function f(e){r(`select`,e),!e?.defaultPrevented&&!d.value&&e&&(c.onValueChange(n.value),c.changeHighlight(s.value))}function p(e){let t={originalEvent:e,value:n.value};Xk(`listbox.select`,f,t)}return kme({isSelected:u}),(e,t)=>(z(),Ao(I(a),{value:e.value},{default:L(()=>[ms([l.value,u.value],()=>H(I(SA),Uo({id:I(i)},e.$attrs,{ref:I(o),role:`option`,tabindex:I(c).focusable.value?l.value?`0`:`-1`:-1,"aria-selected":u.value,as:e.as,"as-child":e.asChild,disabled:d.value?``:void 0,"data-disabled":d.value?``:void 0,"data-highlighted":l.value?``:void 0,"data-state":u.value?`checked`:`unchecked`,onClick:p,onKeydown:Xc(Yc(p,[`prevent`]),[`space`]),onPointermove:t[0]||=e=>{I(c).highlightedElement.value!==I(s)&&(I(c).highlightOnHover.value?I(c).changeHighlight(I(s),!1):I(c).focusable.value||I(c).changeHighlight(I(s),!1))}}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`id`,`tabindex`,`aria-selected`,`as`,`as-child`,`disabled`,`data-disabled`,`data-highlighted`,`data-state`,`onKeydown`]),t,1)]),_:3},8,[`value`]))}}),jme=Ame,Mme=R({__name:`ListboxItemIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e;sA();let n=Ome();return(e,r)=>I(n).isSelected.value?(z(),Ao(I(SA),Uo({key:0,"aria-hidden":`true`},t),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16)):zo(`v-if`,!0)}}),Nme=Mme;const[dM,Pme]=Jk(`ComboboxRoot`);var Fme=R({__name:`ComboboxRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},openOnFocus:{type:Boolean,required:!1,default:!1},openOnClick:{type:Boolean,required:!1,default:!1},ignoreFilter:{type:Boolean,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=n,{primitiveElement:a,currentElement:o}=CA(),{multiple:s,disabled:c,ignoreFilter:l,resetSearchTermOnSelect:u,openOnFocus:d,openOnClick:f,dir:p}=_n(r),m=tA(p),h=zx(r,`modelValue`,i,{defaultValue:r.defaultValue??(s.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),g=zx(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});async function _(e){g.value=e,D.value=``,e?(await Gn(),a.value?.highlightSelected(),y.value=!0):y.value=!1,x.value?.focus(),setTimeout(()=>{!e&&r.resetSearchTermOnBlur&&v.trigger()},1)}let v=tx(),y=F(!1),b=F(!1),x=F(),S=F(),C=U(()=>a.value?.highlightedElement??void 0),w=F(new Map),T=F(new Map),{contains:E}=ife({sensitivity:`base`}),D=F(``),O=U(e=>{if(!D.value||r.ignoreFilter||b.value)return{count:w.value.size,items:e?.items??new Map,groups:e?.groups??new Set(T.value.keys())};let t=0,n=new Map,i=new Set;for(let[e,r]of w.value){let i=E(r,D.value);n.set(e,i?1:0),i&&t++}for(let[e,t]of T.value)for(let r of t)if(n.get(r)>0){i.add(e);break}return{count:t,items:n,groups:i}}),k=qo();return fi(()=>{k?.exposed&&(k.exposed.highlightItem=a.value?.highlightItem,k.exposed.highlightFirstItem=a.value?.highlightFirstItem,k.exposed.highlightSelected=a.value?.highlightSelected)}),t({filtered:O,highlightedElement:C,highlightItem:a.value?.highlightItem,highlightFirstItem:a.value?.highlightFirstItem,highlightSelected:a.value?.highlightSelected}),Pme({modelValue:h,multiple:s,disabled:c,open:g,onOpenChange:_,contentId:``,isUserInputted:y,isVirtual:b,inputElement:x,highlightedElement:C,onInputElementChange:e=>x.value=e,triggerElement:S,onTriggerElementChange:e=>S.value=e,parentElement:o,resetSearchTermOnSelect:u,onResetSearchTerm:v.on,allItems:w,allGroups:T,filterSearch:D,filterState:O,ignoreFilter:l,openOnFocus:d,openOnClick:f}),(e,t)=>(z(),Ao(I(ej),null,{default:L(()=>[H(I(yme),Uo({ref_key:`primitiveElement`,ref:a},e.$attrs,{modelValue:I(h),"onUpdate:modelValue":t[0]||=e=>dn(h)?h.value=e:null,style:{pointerEvents:I(g)?`auto`:void 0},as:e.as,"as-child":e.asChild,dir:I(m),multiple:I(s),name:e.name,required:e.required,disabled:I(c),"highlight-on-hover":!0,by:r.by,onHighlight:t[1]||=e=>i(`highlight`,e)}),{default:L(()=>[Ai(e.$slots,`default`,{open:I(g),modelValue:I(h)})]),_:3},16,[`modelValue`,`style`,`as`,`as-child`,`dir`,`multiple`,`name`,`required`,`disabled`,`by`])]),_:3}))}}),Ime=Fme;const[Lme,Rme]=Jk(`ComboboxContent`);var zme=R({__name:`ComboboxContentImpl`,props:{position:{type:String,required:!1,default:`inline`},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,{position:i}=_n(n),a=dM(),{forwardRef:o,currentElement:s}=sA();$k(n.bodyLock),hA(a.parentElement);let c=U(()=>n.position===`popper`?n:{}),l=cA(c.value),u={boxSizing:`border-box`,"--reka-combobox-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-combobox-content-available-width":`var(--reka-popper-available-width)`,"--reka-combobox-content-available-height":`var(--reka-popper-available-height)`,"--reka-combobox-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-combobox-trigger-height":`var(--reka-popper-anchor-height)`};Rme({position:i});let d=F(!1);return fi(()=>{a.inputElement.value&&(d.value=s.value.contains(a.inputElement.value),d.value&&a.inputElement.value.focus())}),gi(()=>{d.value&&a.triggerElement.value?.focus()}),(e,t)=>(z(),Ao(I(xme),{"as-child":``},{default:L(()=>[H(I(AA),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onDismiss:t[0]||=e=>I(a).onOpenChange(!1),onFocusOutside:t[1]||=e=>{I(a).parentElement.value?.contains(e.target)&&e.preventDefault(),r(`focusOutside`,e)},onInteractOutside:t[2]||=e=>r(`interactOutside`,e),onEscapeKeyDown:t[3]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[4]||=e=>{I(a).parentElement.value?.contains(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)}},{default:L(()=>[(z(),Ao(wi(I(i)===`popper`?I(cM):I(SA)),Uo({...e.$attrs,...I(l)},{id:I(a).contentId,ref:I(o),"data-state":I(a).open.value?`open`:`closed`,style:{display:`flex`,flexDirection:`column`,outline:`none`,...I(i)===`popper`?u:{}}}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`style`]))]),_:3},8,[`disable-outside-pointer-events`])]),_:3}))}}),Bme=zme,Vme=R({__name:`ComboboxContent`,props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,i=lA(n,r),{forwardRef:a}=sA(),o=dM();return o.contentId||=gA(void 0,`reka-combobox-content`),(e,t)=>(z(),Ao(I(bA),{present:e.forceMount||I(o).open.value},{default:L(()=>[H(Bme,Uo({...I(i),...e.$attrs},{ref:I(a)}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16)]),_:3},8,[`present`]))}}),Hme=Vme,Ume=R({__name:`ComboboxEmpty`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=dM(),r=U(()=>n.ignoreFilter.value?n.allItems.value.size===0:n.filterState.value.count===0);return(e,n)=>r.value?(z(),Ao(I(SA),Ee(Uo({key:0},t)),{default:L(()=>[Ai(e.$slots,`default`,{},()=>[n[0]||=Lo(`No options`)])]),_:3},16)):zo(`v-if`,!0)}}),Wme=Ume;const[fM,Gme]=Jk(`ComboboxGroup`);var Kme=R({__name:`ComboboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=gA(void 0,`reka-combobox-group`),r=dM(),i=U(()=>r.ignoreFilter.value?!0:r.filterSearch.value?r.filterState.value.groups.has(n):!0),a=Gme({id:n,labelId:``});return fi(()=>{r.allGroups.value.has(n)||r.allGroups.value.set(n,new Set)}),gi(()=>{r.allGroups.value.delete(n)}),(e,r)=>(z(),Ao(I(Dme),Uo({id:I(n),"aria-labelledby":I(a).labelId},t,{hidden:i.value?void 0:!0}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`hidden`]))}}),qme=Kme,Jme=R({__name:`ComboboxInput`,props:{displayValue:{type:Function,required:!1},modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=dM(),a=uM(),{primitiveElement:o,currentElement:s}=CA(),c=zx(n,`modelValue`,r,{passive:n.modelValue===void 0});fi(()=>{s.value&&i.onInputElementChange(s.value)});function l(e){i.open.value||i.onOpenChange(!0)}function u(e){let t=e.target;i.open.value?i.filterSearch.value=t.value:(i.onOpenChange(!0),Gn(()=>{t.value&&(i.filterSearch.value=t.value,a.highlightFirstItem())}))}function d(){i.openOnFocus.value&&!i.open.value&&i.onOpenChange(!0)}function f(){i.openOnClick.value&&!i.open.value&&i.onOpenChange(!0)}function p(){let e=i.modelValue.value;n.displayValue?c.value=n.displayValue(e):!i.multiple.value&&e&&!Array.isArray(e)?typeof e==`object`?c.value=``:c.value=e.toString():c.value=``,Gn(()=>{c.value=c.value})}return i.onResetSearchTerm(()=>{p()}),Ha(i.modelValue,async()=>{!i.isUserInputted.value&&i.resetSearchTermOnSelect.value&&p()},{immediate:!0,deep:!0}),Ha(i.filterState,()=>{i.isVirtual.value||a.highlightFirstItem()}),(e,t)=>(z(),Ao(I(Cme),{ref_key:`primitiveElement`,ref:o,modelValue:I(c),"onUpdate:modelValue":t[0]||=e=>dn(c)?c.value=e:null,as:e.as,"as-child":e.asChild,"auto-focus":e.autoFocus,disabled:e.disabled,"aria-expanded":I(i).open.value,"aria-controls":I(i).contentId,"aria-autocomplete":`list`,role:`combobox`,autocomplete:`off`,onClick:f,onInput:u,onKeydown:Xc(Yc(l,[`prevent`]),[`down`,`up`]),onFocus:d},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`modelValue`,`as`,`as-child`,`auto-focus`,`disabled`,`aria-expanded`,`aria-controls`,`onKeydown`]))}}),Yme=Jme,Xme=R({__name:`ComboboxItem`,props:{textValue:{type:String,required:!1},value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=gA(void 0,`reka-combobox-item`),a=dM(),o=fM(null),{primitiveElement:s,currentElement:c}=CA();if(n.value===``)throw Error(`A must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.`);let l=U(()=>{if(a.isVirtual.value||a.ignoreFilter.value||!a.filterSearch.value)return!0;{let e=a.filterState.value.items.get(i);return e===void 0?!0:e>0}});return fi(()=>{a.allItems.value.set(i,n.textValue||c.value.textContent||c.value.innerText);let e=o?.id;e&&(a.allGroups.value.has(e)?a.allGroups.value.get(e)?.add(i):a.allGroups.value.set(e,new Set([i])))}),gi(()=>{a.allItems.value.delete(i)}),(e,t)=>l.value?(z(),Ao(I(jme),Uo({key:0},n,{id:I(i),ref_key:`primitiveElement`,ref:s,disabled:I(a).disabled.value||e.disabled,onSelect:t[0]||=t=>{r(`select`,t),!t.defaultPrevented&&!I(a).multiple.value&&!e.disabled&&!I(a).disabled.value&&(t.preventDefault(),I(a).onOpenChange(!1),I(a).modelValue.value=n.value)}}),{default:L(()=>[Ai(e.$slots,`default`,{},()=>[Lo(Pe(e.value),1)])]),_:3},16,[`id`,`disabled`])):zo(`v-if`,!0)}}),Zme=Xme,Qme=R({__name:`ComboboxItemIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e;return(e,n)=>(z(),Ao(I(Nme),Ee(Fo(t)),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))}}),$me=Qme,ehe=R({__name:`ComboboxLabel`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e;sA();let n=fM({id:``,labelId:``});return n.labelId||=gA(void 0,`reka-combobox-group-label`),(e,r)=>(z(),Ao(I(SA),Uo(t,{id:I(n).labelId}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`id`]))}}),the=ehe,nhe=R({__name:`ComboboxSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return sA(),(e,n)=>(z(),Ao(I(SA),Uo(t,{"aria-hidden":`true`}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))}}),rhe=nhe,ihe=R({__name:`ComboboxTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,{forwardRef:n,currentElement:r}=sA(),i=dM(),a=U(()=>t.disabled||i.disabled.value||!1);return fi(()=>{r.value&&i.onTriggerElementChange(r.value)}),(e,r)=>(z(),Ao(I(SA),Uo(t,{ref:I(n),type:e.as===`button`?`button`:void 0,tabindex:`-1`,"aria-label":`Show popup`,"aria-haspopup":`listbox`,"aria-expanded":I(i).open.value,"aria-controls":I(i).contentId,"data-state":I(i).open.value?`open`:`closed`,disabled:a.value,"data-disabled":a.value?``:void 0,"aria-disabled":a.value??void 0,onClick:r[0]||=e=>I(i).onOpenChange(!I(i).open.value)}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`aria-disabled`]))}}),ahe=ihe;function ohe(e){let t=Qk({nonce:F()});return U(()=>e?.value||t.nonce?.value)}var she=R({__name:`ComboboxViewport`,props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n}=sA(),{nonce:r}=_n(t),i=ohe(r),a=dM();return(e,r)=>(z(),B(bo,null,[H(I(SA),Uo({...e.$attrs,...t},{ref:I(n),"data-reka-combobox-viewport":``,role:`presentation`,style:{position:`relative`,flex:I(a).isVirtual.value?void 0:1,overflow:`auto`}}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`style`]),H(I(SA),{as:`style`,nonce:I(i)},{default:L(()=>r[0]||=[Lo(` /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-combobox-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-combobox-viewport]::-webkit-scrollbar { display: none; } `)]),_:1,__:[0]},8,[`nonce`])],64))}}),che=she;const[pM,lhe]=Jk(`PopoverRoot`);var uhe=R({__name:`PopoverRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i}=_n(n),a=zx(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),o=F(),s=F(!1);return lhe({contentId:``,triggerId:``,modal:i,open:a,onOpenChange:e=>{a.value=e},onOpenToggle:()=>{a.value=!a.value},triggerElement:o,hasCustomAnchor:s}),(e,t)=>(z(),Ao(I(ej),null,{default:L(()=>[Ai(e.$slots,`default`,{open:I(a),close:()=>a.value=!1})]),_:3}))}}),dhe=uhe,fhe=R({__name:`PopoverContentImpl`,props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=cA(Tse(n,`trapFocus`,`disableOutsidePointerEvents`)),{forwardRef:a}=sA(),o=pM();return iA(),(e,t)=>(z(),Ao(I(RA),{"as-child":``,loop:``,trapped:e.trapFocus,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:L(()=>[H(I(AA),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onPointerDownOutside:t[0]||=e=>r(`pointerDownOutside`,e),onInteractOutside:t[1]||=e=>r(`interactOutside`,e),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[3]||=e=>r(`focusOutside`,e),onDismiss:t[4]||=e=>I(o).onOpenChange(!1)},{default:L(()=>[H(I(cM),Uo(I(i),{id:I(o).contentId,ref:I(a),"data-state":I(o).open.value?`open`:`closed`,"aria-labelledby":I(o).triggerId,style:{"--reka-popover-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-popover-content-available-width":`var(--reka-popper-available-width)`,"--reka-popover-content-available-height":`var(--reka-popper-available-height)`,"--reka-popover-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-popover-trigger-height":`var(--reka-popper-anchor-height)`},role:`dialog`}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`aria-labelledby`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),mM=fhe,phe=R({__name:`PopoverContentModal`,props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=pM(),a=F(!1);$k(!0);let o=lA(n,r),{forwardRef:s,currentElement:c}=sA();return hA(c),(e,t)=>(z(),Ao(mM,Uo(I(o),{ref:I(s),"trap-focus":I(i).open.value,"disable-outside-pointer-events":``,onCloseAutoFocus:t[0]||=Yc(e=>{r(`closeAutoFocus`,e),a.value||I(i).triggerElement.value?.focus()},[`prevent`]),onPointerDownOutside:t[1]||=e=>{r(`pointerDownOutside`,e);let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,i=t.button===2||n;a.value=i},onFocusOutside:t[2]||=Yc(()=>{},[`prevent`])}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),mhe=phe,hhe=R({__name:`PopoverContentNonModal`,props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=pM(),a=F(!1),o=F(!1),s=lA(n,r);return(e,t)=>(z(),Ao(mM,Uo(I(s),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{r(`closeAutoFocus`,e),e.defaultPrevented||(a.value||I(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=async e=>{r(`interactOutside`,e),e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target,n=I(i).triggerElement.value?.contains(t);n&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))}}),ghe=hhe,_he=R({__name:`PopoverContent`,props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=pM(),a=lA(n,r),{forwardRef:o}=sA();return i.contentId||=gA(void 0,`reka-popover-content`),(e,t)=>(z(),Ao(I(bA),{present:e.forceMount||I(i).open.value},{default:L(()=>[I(i).modal.value?(z(),Ao(mhe,Uo({key:0},I(a),{ref:I(o)}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16)):(z(),Ao(ghe,Uo({key:1},I(a),{ref:I(o)}),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),vhe=_he,yhe=R({__name:`PopoverPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(z(),Ao(I(GA),Ee(Fo(t)),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))}}),bhe=yhe,xhe=R({__name:`PopoverTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=pM(),{forwardRef:r,currentElement:i}=sA();return n.triggerId||=gA(void 0,`reka-popover-trigger`),fi(()=>{n.triggerElement.value=i.value}),(e,i)=>(z(),Ao(wi(I(n).hasCustomAnchor.value?I(SA):I(tj)),{"as-child":``},{default:L(()=>[H(I(SA),{id:I(n).triggerId,ref:I(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":I(n).open.value,"aria-controls":I(n).contentId,"data-state":I(n).open.value?`open`:`closed`,as:e.as,"as-child":t.asChild,onClick:I(n).onOpenToggle},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`id`,`type`,`aria-expanded`,`aria-controls`,`data-state`,`as`,`as-child`,`onClick`])]),_:3}))}}),She=xhe;const[Che,whe]=Jk(`SwitchRoot`);var The=R({__name:`SwitchRoot`,props:{defaultValue:{type:Boolean,required:!1},modelValue:{type:[Boolean,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},value:{type:String,required:!1,default:`on`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{disabled:i}=_n(n),a=zx(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0});function o(){i.value||(a.value=!a.value)}let{forwardRef:s,currentElement:c}=sA(),l=oA(c),u=U(()=>n.id&&c.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);return whe({modelValue:a,toggleCheck:o,disabled:i}),(e,t)=>(z(),Ao(I(SA),Uo(e.$attrs,{id:e.id,ref:I(s),role:`switch`,type:e.as===`button`?`button`:void 0,value:e.value,"aria-label":e.$attrs[`aria-label`]||u.value,"aria-checked":I(a),"aria-required":e.required,"data-state":I(a)?`checked`:`unchecked`,"data-disabled":I(i)?``:void 0,"as-child":e.asChild,as:e.as,disabled:I(i),onClick:o,onKeydown:Xc(Yc(o,[`prevent`]),[`enter`])}),{default:L(()=>[Ai(e.$slots,`default`,{modelValue:I(a)}),I(l)&&e.name?(z(),Ao(I(QA),{key:0,type:`checkbox`,name:e.name,disabled:I(i),required:e.required,value:e.value,checked:!!I(a)},null,8,[`name`,`disabled`,`required`,`value`,`checked`])):zo(`v-if`,!0)]),_:3},16,[`id`,`type`,`value`,`aria-label`,`aria-checked`,`aria-required`,`data-state`,`data-disabled`,`as-child`,`as`,`disabled`,`onKeydown`]))}}),Ehe=The,Dhe=R({__name:`SwitchThumb`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=Che();return sA(),(e,n)=>(z(),Ao(I(SA),{"data-state":I(t).modelValue?.value?`checked`:`unchecked`,"data-disabled":I(t).disabled.value?``:void 0,"as-child":e.asChild,as:e.as},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`data-state`,`data-disabled`,`as-child`,`as`]))}}),Ohe=Dhe,khe=R({__name:`TooltipArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e;return sA(),(e,n)=>(z(),Ao(I(pme),Ee(Fo(t)),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))}}),Ahe=khe;const[hM,jhe]=Jk(`TooltipProvider`);var Mhe=R({inheritAttrs:!1,__name:`TooltipProvider`,props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1}},setup(e){let t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:i,disableClosingTrigger:a,ignoreNonKeyboardFocus:o,disabled:s}=_n(t);sA();let c=F(!0),l=F(!1),{start:u,stop:d}=hx(()=>{c.value=!0},r,{immediate:!1});return jhe({isOpenDelayed:c,delayDuration:n,onOpen(){d(),c.value=!1},onClose(){u()},isPointerInTransitRef:l,disableHoverableContent:i,disableClosingTrigger:a,disabled:s,ignoreNonKeyboardFocus:o}),(e,t)=>Ai(e.$slots,`default`)}}),Nhe=Mhe;const gM=`tooltip.open`,[_M,Phe]=Jk(`TooltipRoot`);var Fhe=R({__name:`TooltipRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;sA();let i=hM(),a=U(()=>n.disableHoverableContent??i.disableHoverableContent.value),o=U(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),s=U(()=>n.disabled??i.disabled.value),c=U(()=>n.delayDuration??i.delayDuration.value),l=U(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),u=zx(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0});Ha(u,e=>{i.onClose&&(e?(i.onOpen(),document.dispatchEvent(new CustomEvent(gM))):i.onClose())});let d=F(!1),f=F(),p=U(()=>u.value?d.value?`delayed-open`:`instant-open`:`closed`),{start:m,stop:h}=hx(()=>{d.value=!0,u.value=!0},c,{immediate:!1});function g(){h(),d.value=!1,u.value=!0}function _(){h(),u.value=!1}function v(){m()}return Phe({contentId:``,open:u,stateAttribute:p,trigger:f,onTriggerChange(e){f.value=e},onTriggerEnter(){i.isOpenDelayed.value?v():g()},onTriggerLeave(){a.value?_():h()},onOpen:g,onClose:_,disableHoverableContent:a,disableClosingTrigger:o,disabled:s,ignoreNonKeyboardFocus:l}),(e,t)=>(z(),Ao(I(ej),null,{default:L(()=>[Ai(e.$slots,`default`,{open:I(u)})]),_:3}))}}),Ihe=Fhe,Lhe=R({__name:`TooltipContentImpl`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:`top`},sideOffset:{type:Number,required:!1,default:0},align:{type:null,required:!1,default:`center`},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},arrowPadding:{type:Number,required:!1,default:0},sticky:{type:String,required:!1,default:`partial`},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=_M(),{forwardRef:a}=sA(),o=Gi(),s=U(()=>o.default?.({})),c=U(()=>{if(n.ariaLabel)return n.ariaLabel;let e=``;function t(n){typeof n.children==`string`&&n.type!==So?e+=n.children:Array.isArray(n.children)&&n.children.forEach(e=>t(e))}return s.value?.forEach(e=>t(e)),e}),l=U(()=>{let{ariaLabel:e,...t}=n;return t});return fi(()=>{yx(window,`scroll`,e=>{let t=e.target;t?.contains(i.trigger.value)&&i.onClose()}),yx(window,gM,i.onClose)}),(e,t)=>(z(),Ao(I(AA),{"as-child":``,"disable-outside-pointer-events":!1,onEscapeKeyDown:t[0]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[1]||=e=>{I(i).disableClosingTrigger.value&&I(i).trigger.value?.contains(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)},onFocusOutside:t[2]||=Yc(()=>{},[`prevent`]),onDismiss:t[3]||=e=>I(i).onClose()},{default:L(()=>[H(I(cM),Uo({ref:I(a),"data-state":I(i).stateAttribute.value},{...e.$attrs,...l.value},{style:{"--reka-tooltip-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-tooltip-content-available-width":`var(--reka-popper-available-width)`,"--reka-tooltip-content-available-height":`var(--reka-popper-available-height)`,"--reka-tooltip-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-tooltip-trigger-height":`var(--reka-popper-anchor-height)`}}),{default:L(()=>[Ai(e.$slots,`default`),H(I(XA),{id:I(i).contentId,role:`tooltip`},{default:L(()=>[Lo(Pe(c.value),1)]),_:1},8,[`id`])]),_:3},16,[`data-state`])]),_:3}))}}),vM=Lhe,Rhe=R({__name:`TooltipContentHoverable`,props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){let t=e,n=cA(t),{forwardRef:r,currentElement:i}=sA(),{trigger:a,onClose:o}=_M(),s=hM(),{isPointerInTransit:c,onPointerExit:l}=afe(a,i);return s.isPointerInTransitRef=c,l(()=>{o()}),(e,t)=>(z(),Ao(vM,Uo({ref:I(r)},I(n)),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))}}),zhe=Rhe,Bhe=R({__name:`TooltipContent`,props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:`top`},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`],setup(e,{emit:t}){let n=e,r=t,i=_M(),a=lA(n,r),{forwardRef:o}=sA();return(e,t)=>(z(),Ao(I(bA),{present:e.forceMount||I(i).open.value},{default:L(()=>[(z(),Ao(wi(I(i).disableHoverableContent.value?vM:zhe),Uo({ref:I(o)},I(a)),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Vhe=Bhe,Hhe=R({__name:`TooltipPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(z(),Ao(I(GA),Ee(Fo(t)),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16))}}),Uhe=Hhe,Whe=R({__name:`TooltipTrigger`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=_M(),r=hM();n.contentId||=gA(void 0,`reka-tooltip-content`);let{forwardRef:i,currentElement:a}=sA(),o=F(!1),s=F(!1),c=U(()=>n.disabled.value?{}:{click:h,focus:p,pointermove:d,pointerleave:f,pointerdown:u,blur:m});fi(()=>{n.onTriggerChange(a.value)});function l(){setTimeout(()=>{o.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),o.value=!0,document.addEventListener(`pointerup`,l,{once:!0})}function d(e){e.pointerType!==`touch`&&!s.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function f(){n.onTriggerLeave(),s.value=!1}function p(e){o.value||n.ignoreNonKeyboardFocus.value&&!e.target.matches?.(`:focus-visible`)||n.onOpen()}function m(){n.onClose()}function h(){n.disableClosingTrigger.value||n.onClose()}return(e,r)=>(z(),Ao(I(tj),{"as-child":``,reference:e.reference},{default:L(()=>[H(I(SA),Uo({ref:I(i),"aria-describedby":I(n).open.value?I(n).contentId:void 0,"data-state":I(n).stateAttribute.value,as:e.as,"as-child":t.asChild,"data-grace-area-trigger":``},Mi(c.value)),{default:L(()=>[Ai(e.$slots,`default`)]),_:3},16,[`aria-describedby`,`data-state`,`as`,`as-child`])]),_:3},8,[`reference`]))}}),Ghe=Whe,Khe=R({__name:`Checkbox`,props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=Ka(e,`modelValue`);return(e,n)=>(z(),Ao(I(Ehe),{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,transition:`background duration-250 ease-in-out`,outline:`focus-within:none`,flex:`~`,border:`neutral-300 dark:neutral-700 data-[state=checked]:primary-200 data-[state=unchecked]:neutral-300 focus-within:neutral-800`,bg:`data-[state=checked]:primary-400 data-[state=unchecked]:neutral-300 data-[state=checked]:dark:primary-400/80 dark:data-[state=unchecked]:neutral-800`,relative:``,"h-7":``,w:`12.5`,"rounded-full":``,shadow:`sm focus-within:shadow-neutral-800 focus-within:[0_0_0_1px] `},{default:L(()=>[H(I(Ohe),{"my-auto":``,"size-6":``,flex:``,"items-center":``,"justify-center":``,"translate-x":`0.5 data-[state=checked]:full`,"rounded-full":``,"bg-white":``,"text-xs":``,"shadow-xl":``,transition:`transform duration-250 ease-in-out`,"will-change-transform":``})]),_:1},8,[`modelValue`]))}}),yM=Khe;const qhe={class:`line-clamp-1 overflow-hidden text-ellipsis whitespace-nowrap`};var Jhe=R({__name:`Combobox`,props:Xi({options:{},placeholder:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);function r(e){let n=t.options.flatMap(e=>e.children).find(t=>t?.value===e);return n?n.label:t.placeholder||``}return(e,i)=>(z(),Ao(I(Ime),{modelValue:n.value,"onUpdate:modelValue":i[0]||=e=>n.value=e,class:`relative w-full`},{default:L(()=>[H(I(hme),{class:Te([`w-full inline-flex items-center justify-between rounded-xl border px-3 leading-none h-10 gap-[5px] outline-none`,`text-sm text-neutral-700 dark:text-neutral-200 data-[placeholder]:text-neutral-200`,`bg-white dark:bg-neutral-900 disabled:bg-neutral-100 hover:bg-neutral-50 dark:disabled:bg-neutral-900 dark:hover:bg-neutral-700`,`border-neutral-200 dark:border-neutral-800 border-solid border-2 focus:border-primary-300 dark:focus:border-primary-400/50`,`shadow-sm focus:shadow-[0_0_0_2px] focus:shadow-black`,`transition-colors duration-200 ease-in-out`])},{default:L(()=>[H(I(Yme),{class:Te([`!bg-transparent outline-none h-full selection:bg-grass5 placeholder-stone-400 w-full`,`text-neutral-700 dark:text-neutral-200`,`transition-colors duration-200 ease-in-out`]),placeholder:t.placeholder,"display-value":e=>r(e)},null,8,[`placeholder`,`display-value`]),H(I(ahe),null,{default:L(()=>[...i[1]||=[V(`div`,{"i-solar:alt-arrow-down-linear":``,class:Te([`h-4 w-4`,`text-neutral-700 dark:text-neutral-200`,`transition-colors duration-200 ease-in-out`])},null,-1)]]),_:1})]),_:1}),H(I(Hme),{"avoid-collisions":!0,class:Te([`absolute z-10 w-full mt-1 min-w-[160px] overflow-hidden rounded-xl shadow-sm border will-change-[opacity,transform] max-h-50dvh`,`data-[side=top]:animate-slideDownAndFade data-[side=right]:animate-slideLeftAndFade data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade`,`bg-white dark:bg-neutral-900`,`border-neutral-200 dark:border-neutral-800 border-solid border-2 focus:border-neutral-300 dark:focus:border-neutral-600`])},{default:L(()=>[H(I(che),{class:`p-[2px]`},{default:L(()=>[H(I(Wme),{class:Te([`font-medium py-2 px-2`,`text-xs text-neutral-700 dark:text-neutral-200`,`transition-colors duration-200 ease-in-out`])}),(z(!0),B(bo,null,Oi(e.options,(e,t)=>(z(),Ao(I(qme),{key:e.name,class:`overflow-x-hidden`},{default:L(()=>[t===0?zo(``,!0):(z(),Ao(I(rhe),{key:0,class:`m-[5px] h-[1px] bg-neutral-400`})),H(I(the),{class:Te([`px-[25px] text-xs leading-[25px]`,`text-neutral-500 dark:text-neutral-400`,`transition-colors duration-200 ease-in-out`])},{default:L(()=>[Lo(Pe(e.groupLabel),1)]),_:2},1024),(z(!0),B(bo,null,Oi(e.children,e=>(z(),Ao(I(Zme),{key:e.label,"text-value":e.label,value:e.value,class:Te([`leading-none rounded-lg flex items-center h-8 pr-[0.5rem] pl-[1.5rem] relative select-none data-[disabled]:pointer-events-none data-[highlighted]:outline-none`,`data-[highlighted]:bg-neutral-100 dark:data-[highlighted]:bg-neutral-800`,`text-sm text-neutral-700 dark:text-neutral-200 data-[disabled]:text-neutral-400 dark:data-[disabled]:text-neutral-600 data-[highlighted]:text-grass1`,`transition-colors duration-200 ease-in-out`,`cursor-pointer`])},{default:L(()=>[H(I($me),{class:`absolute left-0 w-[25px] inline-flex items-center justify-center opacity-30`},{default:L(()=>[...i[2]||=[V(`div`,{"i-solar:alt-arrow-right-outline":``},null,-1)]]),_:1}),V(`span`,qhe,Pe(e.label),1)]),_:2},1032,[`text-value`,`value`]))),128))]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,[`modelValue`]))}}),Yhe=Jhe;const Xhe={flex:`~ col gap-4`},Zhe={flex:`~ row`,"items-center":``,"gap-2":``},Qhe={flex:`1`},$he={class:`flex items-center gap-1 text-sm font-medium`},ege={class:`text-xs text-neutral-500 dark:text-neutral-400`};var tge=R({__name:`FieldCheckbox`,props:Xi({label:{},description:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);return(e,r)=>(z(),B(`label`,Xhe,[V(`div`,Zhe,[V(`div`,Qhe,[V(`div`,$he,[Ai(e.$slots,`label`,{},()=>[Lo(Pe(t.label),1)])]),V(`div`,ege,[Ai(e.$slots,`description`,{},()=>[Lo(Pe(t.description),1)])])]),H(yM,{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e},null,8,[`modelValue`])])]))}}),bM=tge;const nge=[`type`];var rge=R({__name:`Input`,props:Xi({type:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);return(e,r)=>cr((z(),B(`input`,{"onUpdate:modelValue":r[0]||=e=>n.value=e,type:t.type||`text`,border:`focus:primary-300 dark:focus:primary-400/50 2 solid neutral-100 dark:neutral-900`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-50 dark:neutral-950 focus:neutral-50 dark:focus:neutral-900`},null,8,nge)),[[Kc,n.value]])}}),xM=rge;const ige={"max-w-full":``},age={flex:`~ col gap-4`},oge={class:`flex items-center gap-1 text-sm font-medium`},sge={key:0,class:`text-red-500`},cge={class:`text-xs text-neutral-500 dark:text-neutral-400`,"text-nowrap":``},lge=[`type`,`placeholder`];var uge=R({__name:`FieldInput`,props:Xi({label:{},description:{},placeholder:{},required:{type:Boolean},type:{},inputClass:{},singleLine:{type:Boolean,default:!0}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);return(e,r)=>(z(),B(`div`,ige,[V(`label`,age,[V(`div`,null,[V(`div`,oge,[Ai(e.$slots,`label`,{},()=>[Lo(Pe(t.label),1)]),t.required===!1?zo(``,!0):(z(),B(`span`,sge,`*`))]),V(`div`,cge,[Ai(e.$slots,`description`,{},()=>[Lo(Pe(t.description),1)])])]),e.singleLine?(z(),Ao(xM,{key:0,modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,type:t.type,placeholder:t.placeholder,class:Te(t.inputClass)},null,8,[`modelValue`,`type`,`placeholder`,`class`])):cr((z(),B(`textarea`,{key:1,"onUpdate:modelValue":r[1]||=e=>n.value=e,type:t.type,placeholder:t.placeholder,class:Te(t.inputClass),border:`focus:primary-300 dark:focus:primary-400/50 2 solid neutral-100 dark:neutral-900`,transition:`all duration-200 ease-in-out`,text:`disabled:neutral-400 dark:disabled:neutral-600`,cursor:`disabled:not-allowed`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-sm":``,"outline-none":``,shadow:`sm`,bg:`neutral-50 dark:neutral-950 focus:neutral-50 dark:focus:neutral-900`},null,10,lge)),[[Rc,n.value]])])]))}}),SM=uge;const dge={flex:`~ gap-2`};var fge=R({__name:`InputKeyValue`,props:Xi({name:{},keyPlaceholder:{},valuePlaceholder:{}},{propertyKey:{required:!0},propertyKeyModifiers:{},propertyValue:{required:!0},propertyValueModifiers:{}}),emits:[`update:propertyKey`,`update:propertyValue`],setup(e){let t=e,n=Ka(e,`propertyKey`),r=Ka(e,`propertyValue`);return(e,i)=>(z(),B(`div`,dge,[H(xM,{modelValue:n.value,"onUpdate:modelValue":i[0]||=e=>n.value=e,placeholder:t.keyPlaceholder,class:`w-1/2`},null,8,[`modelValue`,`placeholder`]),H(xM,{modelValue:r.value,"onUpdate:modelValue":i[1]||=e=>r.value=e,placeholder:t.valuePlaceholder,class:`w-1/2`},null,8,[`modelValue`,`placeholder`])]))}}),pge=fge;const mge={"max-w-full":``},hge={flex:`~ col gap-2`},gge={class:`flex items-center gap-1 text-sm font-medium`},_ge={key:0,class:`text-red-500`},vge={class:`text-xs text-neutral-500 dark:text-neutral-400`,"text-nowrap":``},yge={flex:`~ col gap-2`},bge=[`onClick`];var xge=R({__name:`FieldKeyValues`,props:Xi({label:{},description:{},name:{},keyPlaceholder:{},valuePlaceholder:{},required:{type:Boolean},inputClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:Xi([`remove`,`add`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=Ka(e,`modelValue`),a=F(``),o=F(``);return Ha([a,o],()=>{r(`add`,a.value,o.value)}),(e,t)=>{let a=Ti(`auto-animate`);return z(),B(`div`,mge,[V(`label`,hge,[V(`div`,null,[V(`div`,gge,[Ai(e.$slots,`label`,{},()=>[Lo(Pe(n.label),1)]),n.required===!1?zo(``,!0):(z(),B(`span`,_ge,`*`))]),V(`div`,vge,[Ai(e.$slots,`description`,{},()=>[Lo(Pe(n.description),1)])])]),cr((z(),B(`div`,yge,[(z(!0),B(bo,null,Oi(i.value,(e,i)=>(z(),B(`div`,{key:i,"w-full":``,flex:``,"items-center":``,"gap-2":``},[H(pge,{"property-key":e.key,"onUpdate:propertyKey":t=>e.key=t,"property-value":e.value,"onUpdate:propertyValue":t=>e.value=t,"key-placeholder":n.keyPlaceholder,"value-placeholder":n.valuePlaceholder,"w-full":``},null,8,[`property-key`,`onUpdate:propertyKey`,`property-value`,`onUpdate:propertyValue`,`key-placeholder`,`value-placeholder`]),V(`button`,{onClick:e=>r(`remove`,i)},[...t[0]||=[V(`div`,{"i-solar:minus-circle-line-duotone":``,size:`6`},null,-1)]],8,bge)]))),128))])),[[a]])])])}}}),Sge=xge;const Cge=[`min`,`max`,`step`];var wge=R({__name:`Range`,props:Xi({min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},thumbColor:{default:`#9090906e`},trackColor:{default:`gray`},trackValueColor:{default:`red`}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`),r=U(()=>t.min*1e4),i=U(()=>t.max*1e4),a=U(()=>t.step*1e4),o=F(),s=U({get:()=>n.value*1e4,set:e=>{n.value=e/1e4,c()}});fi(()=>c()),Ha(s,()=>c(),{immediate:!0}),Ha([r,i,a],()=>c(),{immediate:!0});function c(){o.value&&(o.value.style.setProperty(`--value`,s.value.toString()),o.value.style.setProperty(`--min`,o.value.min?o.value.min:t.min.toString()),o.value.style.setProperty(`--max`,o.value.max?o.value.max:t.max.toString()))}function l(e){let t=e.target;t.style.setProperty(`--value`,t.value)}return(e,t)=>cr((z(),B(`input`,{ref_key:`sliderRef`,ref:o,"onUpdate:modelValue":t[0]||=e=>s.value=e,type:`range`,min:r.value,max:i.value,step:a.value,class:`slider-progress form_input-range`,onInput:l},null,40,Cge)),[[Rc,s.value,void 0,{number:!0}]])}}),CM=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Tge=CM(wge,[[`__scopeId`,`data-v-3a236ac7`]]);const Ege={flex:`~ row`,"items-center":``,"gap-2":``},Dge={flex:`1`},Oge={class:`flex items-center gap-1 text-sm font-medium`},kge={class:`text-xs text-neutral-500 dark:text-neutral-400`},Age={"font-mono":``},jge={flex:`~ row`,"items-center":``,"gap-2":``};var Mge=R({__name:`FieldRange`,props:Xi({min:{},max:{},step:{},label:{},description:{},formatValue:{},as:{default:`label`}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);return(e,r)=>(z(),Ao(t.as,{flex:`~ col gap-4`},{default:L(()=>[V(`div`,Ege,[V(`div`,Dge,[V(`div`,Oge,[Ai(e.$slots,`label`,{},()=>[Lo(Pe(e.label),1)])]),V(`div`,kge,[Ai(e.$slots,`description`,{},()=>[Lo(Pe(e.description),1)])])]),V(`span`,Age,Pe(t.formatValue?.(n.value)||n.value),1)]),V(`div`,jge,[H(Tge,{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,min:e.min||0,max:e.max||1,step:e.step||.01,"w-full":``},null,8,[`modelValue`,`min`,`max`,`step`])])]),_:3}))}}),wM=Mge;const Nge={flex:`~ col gap-4`},Pge={class:`flex items-center gap-1 break-words text-sm font-medium`},Fge={class:`break-words text-xs text-neutral-500 dark:text-neutral-400`};var Ige=R({__name:`FieldSelect`,props:Xi({label:{},description:{},options:{},placeholder:{},disabled:{type:Boolean},layout:{default:`horizontal`},selectClass:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);return(e,r)=>(z(),B(`label`,Nge,[V(`div`,{class:Te([`items-center justify-center`,[t.layout===`horizontal`?`grid grid-cols-3 gap-2`:`grid grid-cols-2 gap-2`]])},[V(`div`,{class:Te([`w-full`,[t.layout===`horizontal`?`col-span-2`:`row-span-1`]])},[V(`div`,Pge,[Ai(e.$slots,`label`,{},()=>[Lo(Pe(t.label),1)])]),V(`div`,Fge,[Ai(e.$slots,`description`,{},()=>[Lo(Pe(t.description),1)])])],2),Ai(e.$slots,`default`,{},()=>[H(I(EM),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,options:t.options?.filter(e=>e.label&&e.value)||[],placeholder:t.placeholder,disabled:t.disabled,title:e.label,class:Te([...t.selectClass?typeof t.selectClass==`string`?[t.selectClass]:t.selectClass:[],t.layout===`horizontal`?`col-span-1`:`row-span-2`])},{default:L(({value:e})=>[Lo(Pe(t.options?.find(t=>t.value===e)?.label||t.placeholder),1)]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`,`title`,`class`])])],2)]))}}),TM=Ige;const Lge={class:`max-w-full`},Rge={class:`flex flex-col gap-2`},zge={class:`flex items-center gap-1 text-sm font-medium`},Bge={key:0,class:`text-red-500`},Vge={class:`text-nowrap text-xs text-neutral-500 dark:text-neutral-400`},Hge={class:`~ col gap-2`},Uge=[`onClick`];var Wge=R({__name:`FieldValues`,props:Xi({label:{},description:{},name:{},valuePlaceholder:{},required:{type:Boolean},inputClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:Xi([`remove`,`add`],[`update:modelValue`]),setup(e,{emit:t}){let n=e,r=t,i=Ka(e,`modelValue`);function a(){i.value.push(``),r(`add`)}function o(e){i.value.splice(e,1),r(`remove`,e)}return(e,t)=>{let r=Ti(`auto-animate`);return z(),B(`div`,Lge,[V(`label`,Rge,[V(`div`,null,[V(`div`,zge,[Ai(e.$slots,`label`,{},()=>[Lo(Pe(n.label),1)]),n.required===!1?zo(``,!0):(z(),B(`span`,Bge,`*`))]),V(`div`,Vge,[Ai(e.$slots,`description`,{},()=>[Lo(Pe(n.description),1)])])]),cr((z(),B(`div`,Hge,[(z(!0),B(bo,null,Oi(i.value,(e,t)=>(z(),B(`div`,{key:t,class:`w-full flex items-center gap-2`},[H(xM,{modelValue:i.value[t],"onUpdate:modelValue":e=>i.value[t]=e,placeholder:n.valuePlaceholder,class:`w-90%`},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`]),V(`button`,{"i-solar:minus-circle-line-duotone":``,size:`6`,class:`min-w-20px w-10% flex text-red-500`,onClick:e=>o(t)},null,8,Uge)]))),128)),V(`div`,{"i-solar:add-circle-line-duotone":``,size:`6`,class:`mt-2 w-4/5 text-blue-500`,onClick:a})])),[[r]])])])}}}),Gge=Wge;const Kge=[`disabled`];var qge=R({__name:`ColorHueRange`,props:Xi({disabled:{type:Boolean},class:{}},{colorValue:{type:String,default:``},colorValueModifiers:{}}),emits:[`update:colorValue`],setup(e){let t=e,n=Ka(e,`colorValue`);return(e,r)=>cr((z(),B(`input`,{"onUpdate:modelValue":r[0]||=e=>n.value=e,type:`range`,min:`0`,max:`360`,step:`0.01`,class:Te([`color-hue-range`,[t.disabled?`opacity-25 cursor-not-allowed`:`cursor-pointer`,t.class||``]]),transition:`all ease-in-out duration-250`,disabled:t.disabled},null,10,Kge)),[[Rc,n.value]])}}),Jge=CM(qge,[[`__scopeId`,`data-v-3d01d2fa`]]);const Yge=[`min`,`max`,`step`];var Xge=R({__name:`RoundRange`,props:Xi({min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`),r=U(()=>t.min*1e4),i=U(()=>t.max*1e4),a=U(()=>t.step*1e4),o=F(),s=U({get:()=>n.value*1e4,set:e=>{n.value=e/1e4,c()}});fi(()=>c()),Ha(s,()=>c(),{immediate:!0}),Ha([r,i,a],()=>c(),{immediate:!0});function c(){o.value&&(o.value.style.setProperty(`--value`,s.value.toString()),o.value.style.setProperty(`--min`,o.value.min?o.value.min:t.min.toString()),o.value.style.setProperty(`--max`,o.value.max?o.value.max:t.max.toString()))}function l(e){let t=e.target;t.style.setProperty(`--value`,t.value)}return(e,t)=>cr((z(),B(`input`,{ref_key:`sliderRef`,ref:o,"onUpdate:modelValue":t[0]||=e=>s.value=e,type:`range`,min:r.value,max:i.value,step:a.value,class:`slider-progress form_input-round-range`,onInput:l},null,40,Yge)),[[Rc,s.value,void 0,{number:!0}]])}}),Zge=CM(Xge,[[`__scopeId`,`data-v-ac8cc218`]]),Qge=R({__name:`Select`,props:Xi({options:{},placeholder:{},disabled:{type:Boolean},title:{},layout:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=F(!1),r=Ka(e,`modelValue`);function i(e){r.value=e}function a(){n.value=!1}return ua(`selectOption`,i),ua(`hide`,a),(e,n)=>(z(),Ao(Yhe,{modelValue:r.value,"onUpdate:modelValue":n[0]||=e=>r.value=e,"default-value":r.value,options:[{groupLabel:``,children:t.options}]},null,8,[`modelValue`,`default-value`,`options`]))}}),EM=Qge;const $ge={op50:``};var e_e=R({__name:`Collapsable`,props:Xi({default:{type:Boolean},label:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);za(()=>{t.default!=null&&(n.value=!!t.default)});function r(e){return n.value=e,e}return(e,i)=>(z(),B(`div`,null,[Ai(e.$slots,`trigger`,Ee(Fo({visible:n.value,setVisible:r})),()=>[V(`button`,{sticky:``,"top-0":``,"z-10":``,flex:``,"items-center":``,"justify-between":``,px2:``,py1:``,"text-sm":``,"backdrop-blur-xl":``,onClick:i[0]||=e=>n.value=!n.value},[V(`span`,null,Pe(t.label??`Collapsable`),1),i[1]||=Lo(),V(`span`,$ge,Pe(n.value?`▲`:`▼`),1)])]),H(I(Gk),null,{default:L(()=>[n.value?Ai(e.$slots,`default`,Ee(Uo({key:0},{visible:n.value,setVisible:r}))):zo(``,!0)]),_:3})]))}}),DM=e_e;const t_e=[`onClick`],n_e={flex:``,"items-center":``,"gap-1.5":``,text:`xs 2xl:sm`};var r_e=R({__name:`Container`,props:{title:{},icon:{},innerClass:{},expand:{type:Boolean,default:!0}},setup(e){return(e,t)=>(z(),Ao(DM,{default:e.expand},{trigger:L(t=>[V(`button`,{class:`w-full flex items-center justify-between rounded-lg px-2 py-1 outline-none transition-all duration-250 ease-in-out`,text:`neutral-600 dark:neutral-400 sm sm:base`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,onClick:e=>t.setVisible(!t.visible)},[Ai(e.$slots,`title`,{},()=>[V(`div`,n_e,[e.icon?(z(),B(`div`,{key:0,class:Te(e.icon),"size-4":``},null,2)):zo(``,!0),Lo(` `+Pe(e.title),1)])]),V(`div`,{"i-solar:alt-arrow-down-linear":``,transition:`transform duration-250`,class:Te({"rotate-180":t.visible})},null,2)],8,t_e)]),default:L(()=>[V(`div`,{gap:`1`,grid:``,"items-center":``,"p-1":``,class:Te(e.innerClass)},[Ai(e.$slots,`default`)],2)]),_:3},8,[`default`]))}}),i_e=r_e;const a_e=(e,t)=>{if(typeof e==`number`){if(t===3)return{mode:`rgb`,r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:`rgb`,r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:`rgb`,r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:`rgb`,r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}};var OM=a_e;const o_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};var s_e=o_e;const c_e=e=>OM(s_e[e.toLowerCase()],6);var l_e=c_e;const u_e=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,d_e=e=>{let t;return(t=e.match(u_e))?OM(parseInt(t[1],16),t[1].length):void 0};var f_e=d_e;const kM=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`;`${kM}`;const AM=`${kM}%`;`${kM}`;const jM=`(?:${kM}%|${kM})`,p_e=`(?:${kM}%|${kM}|none)`,m_e=`(?:${kM}(deg|grad|rad|turn)|${kM})`;`${kM}${kM}`;const MM=`\\s*,\\s*`;``+p_e;const h_e=RegExp(`^rgba?\\(\\s*${kM}${MM}${kM}${MM}${kM}\\s*(?:,\\s*${jM}\\s*)?\\)$`),g_e=RegExp(`^rgba?\\(\\s*${AM}${MM}${AM}${MM}${AM}\\s*(?:,\\s*${jM}\\s*)?\\)$`),__e=e=>{let t={mode:`rgb`},n;if(n=e.match(h_e))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(g_e))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]===void 0?n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))):t.alpha=Math.max(0,Math.min(1,n[4]/100)),t};var v_e=__e;const y_e=(e,t)=>e===void 0?void 0:typeof e==`object`?e.mode===void 0?t?{...e,mode:t}:void 0:e:A_e(e);var NM=y_e;const b_e=(e=`rgb`)=>t=>(t=NM(t,e))===void 0?void 0:t.mode===e?t:FM[t.mode][e]?FM[t.mode][e](t):e===`rgb`?FM[t.mode].rgb(t):FM.rgb[e](FM[t.mode].rgb(t));var PM=b_e;const FM={},IM={},LM=[],RM={},x_e=e=>e,zM=e=>(FM[e.mode]={...FM[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{FM[t]||(FM[t]={}),FM[t][e.mode]=e.fromMode[t]}),e.ranges||={},e.difference||={},e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]==`function`&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=x_e)}),IM[e.mode]=e,(e.parse||[]).forEach(t=>{S_e(t,e.mode)}),PM(e.mode)),BM=e=>IM[e],S_e=(e,t)=>{if(typeof e==`string`){if(!t)throw Error(`'mode' required when 'parser' is a string`);RM[e]=t}else typeof e==`function`&&LM.indexOf(e)<0&&LM.push(e)},VM=/[^\x00-\x7F]|[a-zA-Z_]/,C_e=/[^\x00-\x7F]|[-\w]/,HM={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`};let UM=0;function WM(e){let t=e[UM],n=e[UM+1];return t===`-`||t===`+`?/\d/.test(n)||n===`.`&&/\d/.test(e[UM+2]):t===`.`?/\d/.test(n):/\d/.test(t)}function GM(e){if(UM>=e.length)return!1;let t=e[UM];if(VM.test(t))return!0;if(t===`-`){if(e.length-UM<2)return!1;let t=e[UM+1];return!!(t===`-`||VM.test(t))}return!1}const w_e={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function KM(e){let t=``;if((e[UM]===`-`||e[UM]===`+`)&&(t+=e[UM++]),t+=qM(e),e[UM]===`.`&&/\d/.test(e[UM+1])&&(t+=e[UM++]+qM(e)),(e[UM]===`e`||e[UM]===`E`)&&((e[UM+1]===`-`||e[UM+1]===`+`)&&/\d/.test(e[UM+2])?t+=e[UM++]+e[UM++]+qM(e):/\d/.test(e[UM+1])&&(t+=e[UM++]+qM(e))),GM(e)){let n=JM(e);return n===`deg`||n===`rad`||n===`turn`||n===`grad`?{type:HM.Hue,value:t*w_e[n]}:void 0}return e[UM]===`%`?(UM++,{type:HM.Percentage,value:+t}):{type:HM.Number,value:+t}}function qM(e){let t=``;for(;/\d/.test(e[UM]);)t+=e[UM++];return t}function JM(e){let t=``;for(;UM4)){if(n.length===4){if(n[3].type!==HM.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:HM.None,value:void 0}),n.every(e=>e.type!==HM.Alpha)?n:void 0}}function O_e(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==HM.Function)return;let r=YM(e,t);if(r)return r.unshift(n.value),r}const k_e=e=>{if(typeof e!=`string`)return;let t=E_e(e),n=t?O_e(t,!0):void 0,r,i=0,a=LM.length;for(;ie===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0;var P_e=N_e;const F_e=(e,t,n)=>e+n*(t-e),I_e=e=>{let t=[];for(let n=0;nt=>{let n=I_e(t);return t=>{let r=t*n.length,i=t>=1?n.length-1:Math.max(Math.floor(r),0),a=n[i];return a===void 0?void 0:e(a[0],a[1],r-i)}},XM=L_e(F_e),ZM=e=>{let t=!1,n=e.map(e=>e===void 0?1:(t=!0,e));return t?n:e},R_e={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[M_e,f_e,v_e,l_e,P_e,`srgb`],serialize:`srgb`,interpolate:{r:XM,g:XM,b:XM,alpha:{use:XM,fixup:ZM}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}};var QM=R_e;const $M=(e=0)=>Math.abs(e)**(563/256)*Math.sign(e),z_e=e=>{let t=$M(e.r),n=$M(e.g),r=$M(e.b),i={mode:`xyz65`,x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i};var eN=z_e;const tN=e=>Math.abs(e)**(256/563)*Math.sign(e),B_e=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`a98`,r:tN(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:tN(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:tN(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i};var nN=B_e;const rN=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4},V_e=({r:e,g:t,b:n,alpha:r})=>{let i={mode:`lrgb`,r:rN(e),g:rN(t),b:rN(n)};return r!==void 0&&(i.alpha=r),i};var iN=V_e;const H_e=e=>{let{r:t,g:n,b:r,alpha:i}=iN(e),a={mode:`xyz65`,x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(a.alpha=i),a};var aN=H_e;const oN=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92},U_e=({r:e,g:t,b:n,alpha:r},i=`rgb`)=>{let a={mode:i,r:oN(e),g:oN(t),b:oN(n)};return r!==void 0&&(a.alpha=r),a};var sN=U_e;const W_e=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=sN({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i};var cN=W_e;const G_e={...QM,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:e=>nN(aN(e)),xyz65:nN},toMode:{rgb:e=>cN(eN(e)),xyz65:eN}};var K_e=G_e;const q_e=e=>(e%=360)<0?e+360:e;var lN=q_e;const J_e=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let a=lN(n);return r===0||e[r-1]===void 0?a:t(a-lN(i[r-1]))}).reduce((e,t)=>!e.length||t===void 0||e[e.length-1]===void 0?(e.push(t),e):(e.push(t+e[e.length-1]),e),[]),uN=e=>J_e(e,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),dN=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Y_e=Math.PI/180,X_e=180/Math.PI;let fN=dN[3]*dN[4],pN=dN[1]*dN[4],mN=dN[1]*dN[2]-dN[0]*dN[3];const Z_e=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(mN*n+e*fN-t*pN)/(mN+fN-pN),a=n-i,o=(dN[4]*(t-i)-dN[2]*a)/dN[3],s={mode:`cubehelix`,l:i,s:i===0||i===1?void 0:Math.sqrt(a*a+o*o)/(dN[4]*i*(1-i))};return s.s&&(s.h=Math.atan2(o,a)*X_e-120),r!==void 0&&(s.alpha=r),s};var Q_e=Z_e;const $_e=({h:e,s:t,l:n,alpha:r})=>{let i={mode:`rgb`};e=(e===void 0?0:e+120)*Y_e,n===void 0&&(n=0);let a=t===void 0?0:t*n*(1-n),o=Math.cos(e),s=Math.sin(e);return i.r=n+a*(dN[0]*o+dN[1]*s),i.g=n+a*(dN[2]*o+dN[3]*s),i.b=n+a*(dN[4]*o+dN[5]*s),r!==void 0&&(i.alpha=r),i};var eve=$_e;const hN=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=lN(e.h),r=lN(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},tve=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=lN(e.h),r=lN(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},gN=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=lN(e.h),r=lN(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},_N=e=>{let t=e.reduce((e,t)=>{if(t!==void 0){let n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},nve=e=>{let t=e.filter(e=>e!==void 0);return t.length?t.reduce((e,t)=>e+t,0)/t.length:void 0},vN=e=>typeof e==`function`;function rve(e,t=`rgb`,n){let r=BM(t),i=e.map(PM(t));return r.channels.reduce((e,t)=>{let a=i.map(e=>e[t]).filter(e=>e!==void 0);if(a.length){let i;i=vN(n)?n:n&&vN(n[t])?n[t]:r.average&&vN(r.average[t])?r.average[t]:nve,e[t]=i(a,t)}return e},{mode:t})}const ive={mode:`cubehelix`,channels:[`h`,`s`,`l`,`alpha`],parse:[`--cubehelix`],serialize:`--cubehelix`,ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Q_e},toMode:{rgb:eve},interpolate:{h:{use:XM,fixup:uN},s:XM,l:XM,alpha:{use:XM,fixup:ZM}},difference:{h:hN},average:{h:_N}};var ave=ive;const ove=({l:e,a:t,b:n,alpha:r},i=`lch`)=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),o={mode:i,l:e,c:a};return a&&(o.h=lN(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o};var yN=ove;const sve=({l:e,c:t,h:n,alpha:r},i=`lab`)=>{n===void 0&&(n=0);let a={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a};var bN=sve;const xN=29**3/3**3,SN=6**3/29**3,CN={X:.3457/.3585,Y:1,Z:.2958/.3585},wN={X:.3127/.329,Y:1,Z:.3583/.329};let TN=e=>e**3>SN?e**3:(116*e-16)/xN;const cve=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz65`,x:TN(a)*wN.X,y:TN(i)*wN.Y,z:TN(o)*wN.Z};return r!==void 0&&(s.alpha=r),s};var EN=cve;const lve=e=>cN(EN(e));var DN=lve;const ON=e=>e>SN?Math.cbrt(e):(xN*e+16)/116,uve=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=ON(e/wN.X),a=ON(t/wN.Y),o=ON(n/wN.Z),s={mode:`lab65`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s};var kN=uve;const dve=e=>{let t=kN(aN(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};var AN=dve;const jN=26/180*Math.PI,MN=Math.cos(jN),NN=Math.sin(jN),PN=100/Math.log(139/100),fve=({l:e,c:t,h:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`lab65`,l:(Math.exp(e*1/PN)-1)/.0039},a=(Math.exp(.0435*t*1*1)-1)/.075,o=a*Math.cos(n/180*Math.PI-jN),s=a*Math.sin(n/180*Math.PI-jN);return i.a=o*MN-s/.83*NN,i.b=o*NN+s/.83*MN,r!==void 0&&(i.alpha=r),i};var FN=fve;const pve=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=t*MN+n*NN,a=.83*(n*MN-t*NN),o=Math.sqrt(i*i+a*a),s={mode:`dlch`,l:PN/1*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*1*1)};return s.c&&(s.h=lN((Math.atan2(a,i)+jN)/Math.PI*180)),r!==void 0&&(s.alpha=r),s};var IN=pve;const LN=e=>FN(yN(e,`dlch`)),RN=e=>bN(IN(e),`dlab`),mve={mode:`dlab`,parse:[`--din99o-lab`],serialize:`--din99o-lab`,toMode:{lab65:LN,rgb:e=>DN(LN(e))},fromMode:{lab65:RN,rgb:e=>RN(AN(e))},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:XM,a:XM,b:XM,alpha:{use:XM,fixup:ZM}}};var hve=mve;const gve={mode:`dlch`,parse:[`--din99o-lch`],serialize:`--din99o-lch`,toMode:{lab65:FN,dlab:e=>bN(e,`dlab`),rgb:e=>DN(FN(e))},fromMode:{lab65:IN,dlab:e=>yN(e,`dlch`),rgb:e=>IN(AN(e))},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:XM,c:XM,h:{use:XM,fixup:uN},alpha:{use:XM,fixup:ZM}},difference:{h:gN},average:{h:_N}};var _ve=gve;function vve({h:e,s:t,i:n,alpha:r}){e=lN(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n*(1+t*(3/(2-i)-1)),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1-t)};break;case 1:a={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1+t*(3/(2-i)-1)),b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n*(1+t*(3/(2-i)-1)),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;case 3:a={r:n*(1-t),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1+t*(3/(2-i)-1))};break;case 4:a={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3/(2-i)-1))};break;case 5:a={r:n*(1+t*(3/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function yve({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsi`,s:e+t+n===0?0:1-3*a/(e+t+n),i:(e+t+n)/3};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t{switch(t){case`deg`:return+e;case`rad`:return e/Math.PI*180;case`grad`:return e/10*9;case`turn`:return e*360}};var UN=HN;const WN=RegExp(`^hsla?\\(\\s*${m_e}${MM}${AM}${MM}${AM}\\s*(?:,\\s*${jM}\\s*)?\\)$`),GN=e=>{let t=e.match(WN);if(!t)return;let n={mode:`hsl`};return t[3]===void 0?t[1]!==void 0&&t[2]!==void 0&&(n.h=UN(t[1],t[2])):n.h=+t[3],t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]===void 0?t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))):n.alpha=Math.max(0,Math.min(1,t[6]/100)),n};var KN=GN;function qN(e,t){if(!t||t[0]!==`hsl`&&t[0]!==`hsla`)return;let n={mode:`hsl`},[,r,i,a,o]=t;if(r.type!==HM.None){if(r.type===HM.Percentage)return;n.h=r.value}if(i.type!==HM.None){if(i.type===HM.Hue)return;n.s=i.value/100}if(a.type!==HM.None){if(a.type===HM.Hue)return;n.l=a.value/100}return o.type!==HM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===HM.Number?o.value:o.value/100))),n}var JN=qN;const YN={mode:`hsl`,toMode:{rgb:BN},fromMode:{rgb:VN},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[JN,KN],serialize:e=>`hsl(${e.h===void 0?`none`:e.h} ${e.s===void 0?`none`:e.s*100+`%`} ${e.l===void 0?`none`:e.l*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:XM,fixup:uN},s:XM,l:XM,alpha:{use:XM,fixup:ZM}},difference:{h:hN},average:{h:_N}};var XN=YN;function ZN({h:e,s:t,v:n,alpha:r}){e=lN(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:a={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:a={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:a={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:a={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function QN({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsv`,s:i===0?0:1-a/i,v:i};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t1){let e=t+n;t/=e,n/=e}return ZN({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function nP(e){let t=QN(e);if(t===void 0)return;let n=t.s===void 0?0:t.s,r=t.v===void 0?0:t.v,i={mode:`hwb`,w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function rP(e,t){if(!t||t[0]!==`hwb`)return;let n={mode:`hwb`},[,r,i,a,o]=t;if(r.type!==HM.None){if(r.type===HM.Percentage)return;n.h=r.value}if(i.type!==HM.None){if(i.type===HM.Hue)return;n.w=i.value/100}if(a.type!==HM.None){if(a.type===HM.Hue)return;n.b=a.value/100}return o.type!==HM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===HM.Number?o.value:o.value/100))),n}var iP=rP;const aP={mode:`hwb`,toMode:{rgb:tP},fromMode:{rgb:nP},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[iP],serialize:e=>`hwb(${e.h===void 0?`none`:e.h} ${e.w===void 0?`none`:e.w*100+`%`} ${e.b===void 0?`none`:e.b*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:XM,fixup:uN},w:XM,b:XM,alpha:{use:XM,fixup:ZM}},difference:{h:tve},average:{h:_N}};var oP=aP;const sP=.1593017578125,cP=78.84375,lP=.8359375,uP=18.8515625,dP=18.6875;function fP(e){if(e<0)return 0;let t=e**(1/cP);return 1e4*(Math.max(0,t-lP)/(uP-dP*t))**(1/sP)}function pP(e){if(e<0)return 0;let t=(e/1e4)**sP;return((lP+uP*t)/(1+dP*t))**+cP}const mP=e=>Math.max(e/203,0),hP=({i:e,t,p:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=fP(e+.008609037037932761*t+.11102962500302593*n),a=fP(e-.00860903703793275*t-.11102962500302599*n),o=fP(e+.5600313357106791*t-.32062717498731885*n),s={mode:`xyz65`,x:mP(2.070152218389422*i-1.3263473389671556*a+.2066510476294051*o),y:mP(.3647385209748074*i+.680566024947227*a-.0453045459220346*o),z:mP(-.049747207535812*i-.0492609666966138*a+1.1880659249923042*o)};return r!==void 0&&(s.alpha=r),s};var gP=hP;const _P=(e=0)=>Math.max(e*203,0),vP=({x:e,y:t,z:n,alpha:r})=>{let i=_P(e),a=_P(t),o=_P(n),s=pP(.3592832590121217*i+.6976051147779502*a-.0358915932320289*o),c=pP(-.1920808463704995*i+1.1004767970374323*a+.0753748658519118*o),l=pP(.0070797844607477*i+.0748396662186366*a+.8433265453898765*o),u=.5*s+.5*c,d=1.61376953125*s-3.323486328125*c+1.709716796875*l,f=4.378173828125*s-4.24560546875*c-.132568359375*l,p={mode:`itp`,i:u,t:d,p:f};return r!==void 0&&(p.alpha=r),p};var yP=vP;const bP={mode:`itp`,channels:[`i`,`t`,`p`,`alpha`],parse:[`--ictcp`],serialize:`--ictcp`,toMode:{xyz65:gP,rgb:e=>cN(gP(e))},fromMode:{xyz65:yP,rgb:e=>yP(aN(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:XM,t:XM,p:XM,alpha:{use:XM,fixup:ZM}}};var xP=bP;const SP=e=>{if(e<0)return 0;let t=(e/1e4)**sP;return((lP+uP*t)/(1+dP*t))**134.03437499999998},CP=(e=0)=>Math.max(e*203,0),wP=({x:e,y:t,z:n,alpha:r})=>{e=CP(e),t=CP(t),n=CP(n);let i=1.15*e-.15*n,a=.66*t+.34*e,o=SP(.41478972*i+.579999*a+.014648*n),s=SP(-.20151*i+1.120649*a+.0531008*n),c=SP(-.0166008*i+.2648*a+.6684799*n),l=(o+s)/2,u={mode:`jab`,j:.44*l/(1-.56*l)-16295499532821565e-27,a:3.524*o-4.066708*s+.542708*c,b:.199076*o+1.096799*s-1.295875*c};return r!==void 0&&(u.alpha=r),u};var TP=wP;const EP=16295499532821565e-27,DP=e=>{if(e<0)return 0;let t=e**(1/134.03437499999998);return 1e4*((lP-t)/(dP*t-uP))**(1/sP)},OP=e=>e/203,kP=({j:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+EP)/(.44+.56*(e+EP)),a=DP(i+.13860504*t+.058047316*n),o=DP(i-.13860504*t-.058047316*n),s=DP(i-.096019242*t-.8118919*n),c={mode:`xyz65`,x:OP(1.661373024652174*a-.914523081304348*o+.23136208173913045*s),y:OP(-.3250758611844533*a+1.571847026732543*o-.21825383453227928*s),z:OP(-.090982811*a-.31272829*o+1.5227666*s)};return r!==void 0&&(c.alpha=r),c};var AP=kP;const jP=e=>{let t=TP(aN(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};var MP=jP;const NP=e=>cN(AP(e));var PP=NP;const FP={mode:`jab`,channels:[`j`,`a`,`b`,`alpha`],parse:[`--jzazbz`],serialize:`--jzazbz`,fromMode:{rgb:MP,xyz65:TP},toMode:{rgb:PP,xyz65:AP},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:XM,a:XM,b:XM,alpha:{use:XM,fixup:ZM}}};var IP=FP;const LP=({j:e,a:t,b:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),a={mode:`jch`,j:e,c:i};return i&&(a.h=lN(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(a.alpha=r),a};var RP=LP;const zP=({j:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:`jab`,j:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i};var BP=zP;const VP={mode:`jch`,parse:[`--jzczhz`],serialize:`--jzczhz`,toMode:{jab:BP,rgb:e=>PP(BP(e))},fromMode:{rgb:e=>RP(MP(e)),jab:RP},channels:[`j`,`c`,`h`,`alpha`],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:XM,fixup:uN},c:XM,j:XM,alpha:{use:XM,fixup:ZM}},difference:{h:gN},average:{h:_N}};var HP=VP;const UP=29**3/3**3,WP=6**3/29**3;let GP=e=>e**3>WP?e**3:(116*e-16)/UP;const KP=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz50`,x:GP(a)*CN.X,y:GP(i)*CN.Y,z:GP(o)*CN.Z};return r!==void 0&&(s.alpha=r),s};var qP=KP;const JP=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=sN({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i};var YP=JP;const XP=e=>YP(qP(e));var ZP=XP;const QP=e=>{let{r:t,g:n,b:r,alpha:i}=iN(e),a={mode:`xyz50`,x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(a.alpha=i),a};var $P=QP;const eF=e=>e>WP?Math.cbrt(e):(UP*e+16)/116,tF=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=eF(e/CN.X),a=eF(t/CN.Y),o=eF(n/CN.Z),s={mode:`lab`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s};var nF=tF;const rF=e=>{let t=nF($P(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};var iF=rF;function aF(e,t){if(!t||t[0]!==`lab`)return;let n={mode:`lab`},[,r,i,a,o]=t;if(!(r.type===HM.Hue||i.type===HM.Hue||a.type===HM.Hue))return r.type!==HM.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==HM.None&&(n.a=i.type===HM.Number?i.value:i.value*125/100),a.type!==HM.None&&(n.b=a.type===HM.Number?a.value:a.value*125/100),o.type!==HM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===HM.Number?o.value:o.value/100))),n}var oF=aF;const sF={mode:`lab`,toMode:{xyz50:qP,rgb:ZP},fromMode:{xyz50:nF,rgb:iF},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[oF],serialize:e=>`lab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{l:XM,a:XM,b:XM,alpha:{use:XM,fixup:ZM}}};var cF=sF;const lF={...cF,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:EN,rgb:DN},fromMode:{xyz65:kN,rgb:AN},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};var uF=lF;function dF(e,t){if(!t||t[0]!==`lch`)return;let n={mode:`lch`},[,r,i,a,o]=t;if(r.type!==HM.None){if(r.type===HM.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==HM.None&&(n.c=Math.max(0,i.type===HM.Number?i.value:i.value*150/100)),a.type!==HM.None){if(a.type===HM.Percentage)return;n.h=a.value}return o.type!==HM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===HM.Number?o.value:o.value/100))),n}var fF=dF;const pF={mode:`lch`,toMode:{lab:bN,rgb:e=>ZP(bN(e))},fromMode:{rgb:e=>yN(iF(e)),lab:yN},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[fF],serialize:e=>`lch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:XM,fixup:uN},c:XM,l:XM,alpha:{use:XM,fixup:ZM}},difference:{h:gN},average:{h:_N}};var mF=pF;const hF={...mF,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:e=>bN(e,`lab65`),rgb:e=>DN(bN(e,`lab65`))},fromMode:{rgb:e=>yN(AN(e),`lch65`),lab65:e=>yN(e,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}};var gF=hF;const _F=({l:e,u:t,v:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),a={mode:`lchuv`,l:e,c:i};return i&&(a.h=lN(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(a.alpha=r),a};var vF=_F;const yF=({l:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:`luv`,l:e,u:t?t*Math.cos(n/180*Math.PI):0,v:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i};var bF=yF;const xF=(e,t,n)=>4*e/(e+15*t+3*n),SF=(e,t,n)=>9*t/(e+15*t+3*n),CF=xF(CN.X,CN.Y,CN.Z),wF=SF(CN.X,CN.Y,CN.Z),TF=e=>e<=WP?UP*e:116*Math.cbrt(e)-16,EF=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=TF(t/CN.Y),a=xF(e,t,n),o=SF(e,t,n);!isFinite(a)||!isFinite(o)?i=a=o=0:(a=13*i*(a-CF),o=13*i*(o-wF));let s={mode:`luv`,l:i,u:a,v:o};return r!==void 0&&(s.alpha=r),s};var DF=EF;const OF=(e,t,n)=>4*e/(e+15*t+3*n),kF=(e,t,n)=>9*t/(e+15*t+3*n),AF=OF(CN.X,CN.Y,CN.Z),jF=kF(CN.X,CN.Y,CN.Z),MF=({l:e,u:t,v:n,alpha:r})=>{if(e===void 0&&(e=0),e===0)return{mode:`xyz50`,x:0,y:0,z:0};t===void 0&&(t=0),n===void 0&&(n=0);let i=t/(13*e)+AF,a=n/(13*e)+jF,o=CN.Y*(e<=8?e/UP:((e+16)/116)**3),s=o*(9*i)/(4*a),c=o*(12-3*i-20*a)/(4*a),l={mode:`xyz50`,x:s,y:o,z:c};return r!==void 0&&(l.alpha=r),l};var NF=MF;const PF=e=>vF(DF($P(e))),FF=e=>YP(NF(bF(e))),IF={mode:`lchuv`,toMode:{luv:bF,rgb:FF},fromMode:{rgb:PF,luv:vF},channels:[`l`,`c`,`h`,`alpha`],parse:[`--lchuv`],serialize:`--lchuv`,ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:XM,fixup:uN},c:XM,l:XM,alpha:{use:XM,fixup:ZM}},difference:{h:gN},average:{h:_N}};var LF=IF;const RF={...QM,mode:`lrgb`,toMode:{rgb:sN},fromMode:{rgb:iN},parse:[`srgb-linear`],serialize:`srgb-linear`};var zF=RF;const BF={mode:`luv`,toMode:{xyz50:NF,rgb:e=>YP(NF(e))},fromMode:{xyz50:DF,rgb:e=>DF($P(e))},channels:[`l`,`u`,`v`,`alpha`],parse:[`--luv`],serialize:`--luv`,ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:XM,u:XM,v:XM,alpha:{use:XM,fixup:ZM}}};var VF=BF;const HF=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),s={mode:`oklab`,l:.210454268309314*i+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*i-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*i+.7827717124575296*a-.8086757549230774*o};return r!==void 0&&(s.alpha=r),s};var UF=HF;const WF=e=>{let t=UF(iN(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};var GF=WF;const KF=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+.3963377773761749*t+.2158037573099136*n)**3,a=(e-.1055613458156586*t-.0638541728258133*n)**3,o=(e-.0894841775298119*t-1.2914855480194092*n)**3,s={mode:`lrgb`,r:4.076741636075957*i-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*i+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*i-.7034186179359362*a+1.7076146940746117*o};return r!==void 0&&(s.alpha=r),s};var qF=KF;const JF=e=>sN(qF(e));var YF=JF;function XF(e){let t=.206,n=.03,r=(1+t)/(1+n);return .5*(r*e-t+Math.sqrt((r*e-t)*(r*e-t)+4*n*r*e))}function ZF(e){let t=.206,n=.03;return(1+t)/(1+n),(e*e+t*e)/(1.170873786407767*(e+n))}function QF(e,t){let n,r,i,a,o,s,c,l;-1.88170328*e-.80936493*t>1?(n=1.19086277,r=1.76576728,i=.59662641,a=.75515197,o=.56771245,s=4.0767416621,c=-3.3077115913,l=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,r=-.45954404,i=.08285427,a=.1254107,o=.14503204,s=-1.2684380046,c=2.6097574011,l=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,a=-.50559606,o=.00692167,s=-.0041960863,c=-.7034186147,l=1.707614701);let u=n+r*e+i*t+a*e*e+o*e*t,d=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let e=1+u*d,t=1+u*f,n=1+u*p,r=e*e*e,i=t*t*t,a=n*n*n,o=3*d*e*e,m=3*f*t*t,h=3*p*n*n,g=6*d*d*e,_=6*f*f*t,v=6*p*p*n,y=s*r+c*i+l*a,b=s*o+c*m+l*h,x=s*g+c*_+l*v;u-=y*b/(b*b-.5*y*x)}return u}function $F(e,t){let n=QF(e,t),r=qF({l:1,a:n*e,b:n*t}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b)),a=i*n;return[i,a]}function eI(e,t,n,r,i,a=null){a||=$F(e,t);let o;if((n-i)*a[1]-(a[0]-i)*r<=0)o=a[1]*i/(r*a[0]+a[1]*(i-n));else{o=a[1]*(i-1)/(r*(a[0]-1)+a[1]*(i-n));{let a=n-i,s=r,c=.3963377774*e+.2158037573*t,l=-.1055613458*e-.0638541728*t,u=-.0894841775*e-1.291485548*t,d=a+s*c,f=a+s*l,p=a+s*u;{let e=i*(1-o)+o*n,t=o*r,a=e+t*c,s=e+t*l,m=e+t*u,h=a*a*a,g=s*s*s,_=m*m*m,v=3*d*a*a,y=3*f*s*s,b=3*p*m*m,x=6*d*d*a,S=6*f*f*s,C=6*p*p*m,w=4.0767416621*h-3.3077115913*g+.2309699292*_-1,T=4.0767416621*v-3.3077115913*y+.2309699292*b,E=4.0767416621*x-3.3077115913*S+.2309699292*C,D=T/(T*T-.5*w*E),O=-w*D,k=-1.2684380046*h+2.6097574011*g-.3413193965*_-1,A=-1.2684380046*v+2.6097574011*y-.3413193965*b,j=-1.2684380046*x+2.6097574011*S-.3413193965*C,M=A/(A*A-.5*k*j),ee=-k*M,te=-.0041960863*h-.7034186147*g+1.707614701*_-1,N=-.0041960863*v-.7034186147*y+1.707614701*b,ne=-.0041960863*x-.7034186147*S+1.707614701*C,re=N/(N*N-.5*te*ne),ie=-te*re;O=D>=0?O:1e6,ee=M>=0?ee:1e6,ie=re>=0?ie:1e6,o+=Math.min(O,Math.min(ee,ie))}}}return o}function tI(e,t,n=null){n||=$F(e,t);let r=n[0],i=n[1];return[i/r,i/(1-r)]}function nI(e,t,n){let r=$F(t,n),i=eI(t,n,e,1,e,r),a=tI(t,n,r),o=.11516993+1/(7.4477897+4.1590124*n+t*(-2.19557347+1.75198401*n+t*(-2.13704948-10.02301043*n+t*(-4.24894561+5.38770819*n+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*n+t*(.40370612+.90148123*n+t*(-.27087943+.6122399*n+t*(.00299215-.45399568*n-.14661872*t)))),c=i/Math.min(e*a[0],(1-e)*a[1]),l=e*o,u=(1-e)*s,d=.9*c*Math.sqrt(Math.sqrt(1/(1/(l*l*l*l)+1/(u*u*u*u))));l=e*.4,u=(1-e)*.8;let f=Math.sqrt(1/(1/(l*l)+1/(u*u)));return[f,d,i]}function rI(e){let t=e.l===void 0?0:e.l,n=e.a===void 0?0:e.a,r=e.b===void 0?0:e.b,i={mode:`okhsl`,l:XF(t)};e.alpha!==void 0&&(i.alpha=e.alpha);let a=Math.sqrt(n*n+r*r);if(!a)return i.s=0,i;let[o,s,c]=nI(t,n/a,r/a),l;if(arI(GF(e))},toMode:{oklab:iI,rgb:e=>YF(iI(e))}};var oI=aI;function sI(e){let t=e.l===void 0?0:e.l,n=e.a===void 0?0:e.a,r=e.b===void 0?0:e.b,i=Math.sqrt(n*n+r*r),a=i?n/i:1,o=i?r/i:1,[s,c]=tI(a,o),l=.5,u=1-l/s,d=c/(i+t*c),f=d*t,p=d*i,m=ZF(f),h=p*m/f,g=qF({l:m,a:a*h,b:o*h}),_=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));t/=_,i=i/_*XF(t)/t,t=XF(t);let v={mode:`okhsv`,s:i?(l+c)*p/(c*l+c*u*p):0,v:t?t/f:0};return v.s&&(v.h=lN(Math.atan2(r,n)*180/Math.PI)),e.alpha!==void 0&&(v.alpha=e.alpha),v}function cI(e){let t={mode:`oklab`};e.alpha!==void 0&&(t.alpha=e.alpha);let n=e.h===void 0?0:e.h,r=e.s===void 0?0:e.s,i=e.v===void 0?0:e.v,a=Math.cos(n/180*Math.PI),o=Math.sin(n/180*Math.PI),[s,c]=tI(a,o),l=.5,u=1-l/s,d=1-r*l/(l+c-c*u*r),f=r*c*l/(l+c-c*u*r),p=ZF(d),m=f*p/d,h=qF({l:p,a:a*m,b:o*m}),g=Math.cbrt(1/Math.max(h.r,h.g,h.b,0)),_=ZF(i*d),v=f*_/d;return t.l=_*g,t.a=v*a*g,t.b=v*o*g,t}const lI={...eP,mode:`okhsv`,channels:[`h`,`s`,`v`,`alpha`],parse:[`--okhsv`],serialize:`--okhsv`,fromMode:{oklab:sI,rgb:e=>sI(GF(e))},toMode:{oklab:cI,rgb:e=>YF(cI(e))}};var uI=lI;function dI(e,t){if(!t||t[0]!==`oklab`)return;let n={mode:`oklab`},[,r,i,a,o]=t;if(!(r.type===HM.Hue||i.type===HM.Hue||a.type===HM.Hue))return r.type!==HM.None&&(n.l=Math.min(Math.max(0,r.type===HM.Number?r.value:r.value/100),1)),i.type!==HM.None&&(n.a=i.type===HM.Number?i.value:i.value*.4/100),a.type!==HM.None&&(n.b=a.type===HM.Number?a.value:a.value*.4/100),o.type!==HM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===HM.Number?o.value:o.value/100))),n}var fI=dI;const pI={...cF,mode:`oklab`,toMode:{lrgb:qF,rgb:YF},fromMode:{lrgb:UF,rgb:GF},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[fI],serialize:e=>`oklab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`};var mI=pI;function hI(e,t){if(!t||t[0]!==`oklch`)return;let n={mode:`oklch`},[,r,i,a,o]=t;if(r.type!==HM.None){if(r.type===HM.Hue)return;n.l=Math.min(Math.max(0,r.type===HM.Number?r.value:r.value/100),1)}if(i.type!==HM.None&&(n.c=Math.max(0,i.type===HM.Number?i.value:i.value*.4/100)),a.type!==HM.None){if(a.type===HM.Percentage)return;n.h=a.value}return o.type!==HM.None&&(n.alpha=Math.min(1,Math.max(0,o.type===HM.Number?o.value:o.value/100))),n}var gI=hI;const _I={...mF,mode:`oklch`,toMode:{oklab:e=>bN(e,`oklab`),rgb:e=>YF(bN(e,`oklab`))},fromMode:{rgb:e=>yN(GF(e),`oklch`),oklab:e=>yN(e,`oklch`)},parse:[gI],serialize:e=>`oklch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}};var vI=_I;const yI=e=>{let{r:t,g:n,b:r,alpha:i}=iN(e),a={mode:`xyz65`,x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(a.alpha=i),a};var bI=yI;const xI=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=sN({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},`p3`);return r!==void 0&&(i.alpha=r),i};var SI=xI;const CI={...QM,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:e=>SI(aN(e)),xyz65:SI},toMode:{rgb:e=>cN(bI(e)),xyz65:bI}};var wI=CI;const TI=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*t**(1/1.8):16*e},EI=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`prophoto`,r:TI(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:TI(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:TI(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i};var DI=EI;const OI=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*t**1.8:e/16},kI=e=>{let t=OI(e.r),n=OI(e.g),r=OI(e.b),i={mode:`xyz50`,x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i};var AI=kI;const jI={...QM,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:DI,rgb:e=>DI($P(e))},toMode:{xyz50:AI,rgb:e=>YP(AI(e))}};var MI=jI;const NI=1.09929682680944,PI=e=>{let t=Math.abs(e);return t>.018053968510807?(Math.sign(e)||1)*(NI*t**.45-(NI-1)):4.5*e},FI=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rec2020`,r:PI(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:PI(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:PI(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i};var II=FI;const LI=1.09929682680944,RI=(e=0)=>{let t=Math.abs(e);return t<.018053968510807*4.5?e/4.5:(Math.sign(e)||1)*((t+LI-1)/LI)**(1/.45)},zI=e=>{let t=RI(e.r),n=RI(e.g),r=RI(e.b),i={mode:`xyz65`,x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i};var BI=zI;const VI={...QM,mode:`rec2020`,fromMode:{xyz65:II,rgb:e=>II(aN(e))},toMode:{xyz65:BI,rgb:e=>cN(BI(e))},parse:[`rec2020`],serialize:`rec2020`};var HI=VI;const UI=.0037930732552754493,WI=Math.cbrt(UI),GI=e=>Math.cbrt(e)-WI,KI=e=>{let{r:t,g:n,b:r,alpha:i}=iN(e),a=GI(.3*t+.622*n+.078*r+UI),o=GI(.23*t+.692*n+.078*r+UI),s=GI(.2434226892454782*t+.2047674442449682*n+.5518098665095535*r+UI),c={mode:`xyb`,x:(a-o)/2,y:(a+o)/2,b:s-(a+o)/2};return i!==void 0&&(c.alpha=i),c};var qI=KI;const JI=e=>(e+WI)**3,YI=({x:e,y:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=JI(e+t)-UI,a=JI(t-e)-UI,o=JI(n+t)-UI,s=sN({r:11.031566904639861*i-9.866943908131562*a-.16462299650829934*o,g:-3.2541473810744237*i+4.418770377582723*a-.16462299650829934*o,b:-3.6588512867136815*i+2.7129230459360922*a+1.9459282407775895*o});return r!==void 0&&(s.alpha=r),s};var XI=YI;const ZI={mode:`xyb`,channels:[`x`,`y`,`b`,`alpha`],parse:[`--xyb`],serialize:`--xyb`,toMode:{rgb:XI},fromMode:{rgb:qI},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:XM,y:XM,b:XM,alpha:{use:XM,fixup:ZM}}};var QI=ZI;const $I={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:YP,lab:nF},fromMode:{rgb:$P,lab:qP},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:XM,y:XM,z:XM,alpha:{use:XM,fixup:ZM}}};var eL=$I;const tL=e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz50`,x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(a.alpha=i),a};var nL=tL;const rL=e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz65`,x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(a.alpha=i),a};var iL=rL;const aL={mode:`xyz65`,toMode:{rgb:cN,xyz50:nL},fromMode:{rgb:aN,xyz50:iL},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:[`x`,`y`,`z`,`alpha`],parse:[`xyz`,`xyz-d65`],serialize:`xyz-d65`,interpolate:{x:XM,y:XM,z:XM,alpha:{use:XM,fixup:ZM}}};var oL=aL;const sL=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`yiq`,y:.29889531*e+.58662247*t+.11448223*n,i:.59597799*e-.2741761*t-.32180189*n,q:.21147017*e-.52261711*t+.31114694*n};return r!==void 0&&(i.alpha=r),i};var cL=sL;const lL=({y:e,i:t,q:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rgb`,r:e+.95608445*t+.6208885*n,g:e-.27137664*t-.6486059*n,b:e-1.10561724*t+1.70250126*n};return r!==void 0&&(i.alpha=r),i};var uL=lL;const dL={mode:`yiq`,toMode:{rgb:uL},fromMode:{rgb:cL},channels:[`y`,`i`,`q`,`alpha`],parse:[`--yiq`],serialize:`--yiq`,ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:XM,i:XM,q:XM,alpha:{use:XM,fixup:ZM}}};var fL=dL;const pL=(e,t)=>Math.round(e*(t=10**t))/t,mL=(e=4)=>t=>typeof t==`number`?pL(t,e):t;var hL=mL;hL(2);const gL=e=>Math.max(0,Math.min(1,e||0)),_L=e=>Math.round(gL(e)*255),vL=PM(`rgb`);PM(`hsl`);const yL=e=>{if(e===void 0)return;let t=_L(e.r),n=_L(e.g),r=_L(e.b);return`#`+(1<<24|t<<16|n<<8|r).toString(16).slice(1)},bL=e=>{if(e===void 0)return;let t=_L(e.alpha===void 0?1:e.alpha);return yL(e)+(256|t).toString(16).slice(1)},xL=e=>{let t=NM(e);if(!t)return;let n=BM(t.mode);if(!n.serialize||typeof n.serialize==`string`){let e=`color(${n.serialize||`--${t.mode}`} `;return n.channels.forEach((n,r)=>{n!==`alpha`&&(e+=(r?` `:``)+(t[n]===void 0?`none`:t[n]))}),t.alpha!==void 0&&t.alpha<1&&(e+=` / ${t.alpha}`),e+`)`}if(typeof n.serialize==`function`)return n.serialize(t)},SL=e=>yL(vL(e)),CL=e=>bL(vL(e));zM(K_e),zM(ave),zM(hve),zM(_ve),zM(zN),zM(XN),zM(eP),zM(oP),zM(xP),zM(IP),zM(HP),zM(cF),zM(uF),zM(mF),zM(gF),zM(LF),zM(zF),zM(VF),zM(oI),zM(uI),zM(mI);const wL=zM(vI);zM(wI),zM(MI),zM(HI),zM(QM),zM(QI),zM(eL),zM(oL),zM(fL);const TL={"grid-col-span-1":``,"font-mono":``,text:`[10px] right`},EL={class:`z-20 mt-2 space-y-2`,bg:`white/90 dark:neutral-900/90`,"rounded-xl":``,"p-1":``},DL={class:`relative h-48 w-full select-none overflow-hidden rounded-lg`},OL={class:`relative h-6 w-full select-none overflow-hidden rounded-lg`},kL={key:0,class:`relative h-6 w-full select-none overflow-hidden rounded-lg`},AL={class:`flex justify-center gap-2`},jL={class:`flex gap-2`},ML={key:0,class:`flex gap-2`},NL=[`value`],PL=[`value`],FL=[`value`],IL=[`value`],LL=[`value`],RL=[`value`],zL=[`value`],BL=[`value`],VL=[`value`],HL=[`value`];var UL=R({__name:`ColorPicker`,props:Xi({alpha:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},{modelValue:{required:!1,default:`#000000`},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`),r=F(),i=F(),a=F(),o=F(),s=F(!1),c=F(!1),l=F(null),u=F(`hex`),d=F(0),f=F(100),p=F(50),m=F(1);function h(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:Number.parseInt(t[1],16)/255,g:Number.parseInt(t[2],16)/255,b:Number.parseInt(t[3],16)/255}:null}function g(e){if(!e)return{h:0,s:0,v:0,a:1};let t=document.createElement(`div`);t.style.color=e,document.body.appendChild(t);let n=getComputedStyle(t).color;document.body.removeChild(t);let r=n.match(/rgba?\(([^)]+)\)/);if(r){let e=r[1].split(`,`).map(e=>Number.parseFloat(e.trim())),t={r:e[0]/255,g:e[1]/255,b:e[2]/255},n=QN(t);return{h:n.h||0,s:(n.s||0)*100,v:(n.v||0)*100,a:e[3]===void 0?1:e[3]}}let i=h(e);if(i){let e=QN(i);return{h:e.h||0,s:(e.s||0)*100,v:(e.v||0)*100,a:1}}return{h:0,s:0,v:0,a:1}}let _=U(()=>({h:d.value,s:f.value/100,v:p.value/100})),v=U(()=>{let e=ZN(_.value);return{r:Math.round(e.r*255),g:Math.round(e.g*255),b:Math.round(e.b*255)}}),y=U(()=>{let{r:e,g:t,b:n}=v.value,r=((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1);return`#${r}`}),b=U(()=>({left:`${f.value/100*100}%`,top:`${100-p.value/100*100}%`})),x=U(()=>({left:`${d.value/360*100}%`})),S=U(()=>({left:`${m.value*100}%`})),C=U(()=>({background:`linear-gradient(to right, white, hsl(${d.value}, 100%, 50%))`})),w=U(()=>{let{r:e,g:t,b:n}=v.value;return{background:`linear-gradient(to right, transparent, rgb(${e}, ${t}, ${n}))`}});function T(e,t){if(!r.value)return;let n=r.value.getBoundingClientRect(),i=Math.max(0,Math.min(100,e/n.width*100)),a=Math.max(0,Math.min(100,(n.height-t)/n.height*100));f.value=i,p.value=a}function E(e){if(!i.value)return;let t=i.value.getBoundingClientRect(),n=Math.max(0,Math.min(360,e/t.width*360));d.value=n}function D(e){if(!a.value)return;let t=a.value.getBoundingClientRect(),n=Math.max(0,Math.min(1,e/t.width));m.value=n}function O(e){if(t.disabled)return;c.value=!0,l.value=`map`;let n=`touches`in e?e.touches[0].clientX:e.clientX,i=`touches`in e?e.touches[0].clientY:e.clientY,a=r.value.getBoundingClientRect();T(n-a.left,i-a.top),e.preventDefault()}function k(e){if(t.disabled)return;c.value=!0,l.value=`hue`;let n=`touches`in e?e.touches[0].clientX:e.clientX,r=i.value.getBoundingClientRect();E(n-r.left),e.preventDefault()}function A(e){if(t.disabled)return;c.value=!0,l.value=`alpha`;let n=`touches`in e?e.touches[0].clientX:e.clientX,r=a.value.getBoundingClientRect();D(n-r.left),e.preventDefault()}function j(e){if(!c.value)return;e.preventDefault();let t=`touches`in e?e.touches[0].clientX:e.clientX,n=`touches`in e?e.touches[0].clientY:e.clientY;switch(l.value){case`map`:{let e=r.value.getBoundingClientRect();T(t-e.left,n-e.top);break}case`hue`:{let e=i.value.getBoundingClientRect();E(t-e.left);break}case`alpha`:{let e=a.value.getBoundingClientRect();D(t-e.left);break}}}function M(){c.value&&(c.value=!1,l.value=null,document.body.style.cursor=``)}Ha(n,e=>{if(e&&!c.value){let t=g(e);d.value=t.h,f.value=t.s,p.value=t.v,m.value=t.a}},{immediate:!0}),Ha(c,e=>{e?document.body.style.cursor=`none`:document.body.style.cursor=``}),fi(()=>{WT(`mousemove`,j,{passive:!1}),WT(`mouseup`,M),WT(`touchmove`,j,{passive:!1}),WT(`touchend`,M),WT(`click`,e=>{s.value&&o.value&&!o.value.contains(e.target)&&(s.value=!1)})});function ee(e){let t=g(e);d.value=t.h,f.value=t.s,p.value=t.v,m.value=t.a,n.value=e}function te(e,t){let n={...v.value};n[e]=Math.max(0,Math.min(255,t));let r=QN({r:n.r/255,g:n.g/255,b:n.b/255});d.value=r.h||0,f.value=(r.s||0)*100,p.value=(r.v||0)*100}function N(e,t){switch(e){case`h`:d.value=Math.max(0,Math.min(360,t));break;case`s`:f.value=Math.max(0,Math.min(100,t));break;case`v`:p.value=Math.max(0,Math.min(100,t));break}}function ne(e){m.value=Math.max(0,Math.min(1,e/100))}return Ha([d,f,p,m],()=>{let e=ZN({h:d.value,s:f.value/100,v:p.value/100,alpha:m.value});n.value=CL(e)},{immediate:!0}),(e,t)=>(z(),Ao(I(dhe),null,{default:L(()=>[H(I(She),{class:`grid grid-col-span-3 grid-cols-3 h-fit items-center`},{default:L(()=>[V(`div`,{style:be({backgroundColor:n.value}),"grid-col-span-2":``,"min-h-5":``,"rounded-md":``},null,4),V(`div`,TL,Pe(n.value),1)]),_:1}),H(I(bhe),null,{default:L(()=>[H(I(vhe),{align:`start`,class:`relative z-20`},{default:L(()=>[V(`div`,EL,[V(`div`,DL,[V(`div`,{ref_key:`colorMapRef`,ref:r,class:`relative h-full w-full cursor-crosshair`,style:be([C.value,{cursor:c.value&&l.value===`map`?`none`:`crosshair`}]),onMousedown:O,onTouchstart:O},[t[11]||=V(`div`,{class:`absolute inset-0`,style:{background:`linear-gradient(to bottom, transparent, black)`}},null,-1),V(`div`,{class:`pointer-events-none absolute h-4 w-4 border-2 border-white rounded-full shadow-lg transition-transform`,style:be([b.value,{transform:`translate(-50%, -50%) ${c.value&&l.value===`map`?`scale(1.2)`:`scale(1)`}`,backgroundColor:n.value}])},null,4)],36)]),V(`div`,OL,[V(`div`,{ref_key:`hueSliderRef`,ref:i,class:`hue-slider h-full w-full cursor-pointer`,style:be([{background:`linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)`},{cursor:c.value&&l.value===`hue`?`none`:`pointer`}]),onMousedown:k,onTouchstart:k},[V(`div`,{class:`pointer-events-none absolute top-0 h-14 w-1 cursor-pointer cursor-col-resize appearance-none bg-white shadow-lg transition-colors,transform,width,height duration-200 hover:h-13 hover:w-2 hover:bg-neutral-800`,style:be([x.value,{transform:`translateX(-50%) ${c.value&&l.value===`hue`?`scaleY(1.2)`:`scaleY(1)`}`}])},null,4)],36)]),e.alpha?(z(),B(`div`,kL,[t[12]||=V(`div`,{class:`alpha-slider absolute inset-0 opacity-50`,style:{"background-image":`linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), - linear-gradient(-45deg, transparent 75%, #ccc 75%)`,"background-size":`8px 8px`,"background-position":`0 0, 0 4px, 4px -4px, -4px 0px`}},null,-1),V(`div`,{ref_key:`alphaSliderRef`,ref:a,class:`relative h-full w-full cursor-pointer`,style:be([w.value,{cursor:c.value&&l.value===`alpha`?`none`:`pointer`}]),onMousedown:A,onTouchstart:A},[V(`div`,{class:`pointer-events-none absolute top-0 h-14 w-1 cursor-pointer cursor-col-resize appearance-none bg-white shadow-lg transition-colors,transform,width,height duration-200 hover:h-13 hover:w-2 hover:bg-neutral-800`,style:be([S.value,{transform:`translateX(-50%) ${c.value&&l.value===`alpha`?`scaleY(1.2)`:`scaleY(1)`}`}])},null,4)],36)])):Lo(``,!0),V(`div`,YL,[V(`div`,XL,[cr(V(`select`,{"onUpdate:modelValue":t[0]||=e=>u.value=e,class:`flex-shrink-0 border rounded-lg px-2 py-1 text-sm`},[...t[13]||=[V(`option`,{value:`hex`},` HEX `,-1),V(`option`,{value:`rgb`},` RGB `,-1),V(`option`,{value:`hsv`},` HSV `,-1)]],512),[[Lc,u.value]])]),u.value===`hex`?(z(),B(`div`,ZL,[V(`input`,{value:y.value,class:`flex-1 border rounded-lg px-2 py-1 text-sm font-mono`,placeholder:`#000000`,onInput:t[1]||=e=>ee((e?.target).value)},null,40,QL),e.alpha?(z(),B(`input`,{key:0,type:`number`,value:Math.round(m.value*100),min:`0`,max:`100`,class:`w-16 border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`A%`,onInput:t[2]||=e=>ne(Number((e?.target).value))},null,40,$L)):Lo(``,!0)])):u.value===`rgb`?(z(),B(`div`,{key:1,class:Te([`grid gap-2`,e.alpha?`grid-cols-4`:`grid-cols-3`])},[V(`input`,{type:`number`,value:v.value.r,min:`0`,max:`255`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`R`,onInput:t[3]||=e=>te(`r`,Number((e?.target).value))},null,40,eR),V(`input`,{type:`number`,value:v.value.g,min:`0`,max:`255`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`G`,onInput:t[4]||=e=>te(`g`,Number((e?.target).value))},null,40,tR),V(`input`,{type:`number`,value:v.value.b,min:`0`,max:`255`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`B`,onInput:t[5]||=e=>te(`b`,Number((e?.target).value))},null,40,nR),e.alpha?(z(),B(`input`,{key:0,type:`number`,value:Math.round(m.value*100),min:`0`,max:`100`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`A%`,onInput:t[6]||=e=>ne(Number((e?.target).value))},null,40,rR)):Lo(``,!0)],2)):u.value===`hsv`?(z(),B(`div`,{key:2,class:Te([`grid gap-2`,e.alpha?`grid-cols-4`:`grid-cols-3`])},[V(`input`,{type:`number`,value:Math.round(d.value),min:`0`,max:`360`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`H°`,onInput:t[7]||=e=>N(`h`,Number((e?.target).value))},null,40,iR),V(`input`,{type:`number`,value:Math.round(f.value),min:`0`,max:`100`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`S%`,onInput:t[8]||=e=>N(`s`,Number((e?.target).value))},null,40,aR),V(`input`,{type:`number`,value:Math.round(p.value),min:`0`,max:`100`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`V%`,onInput:t[9]||=e=>N(`v`,Number((e?.target).value))},null,40,oR),e.alpha?(z(),B(`input`,{key:0,type:`number`,value:Math.round(m.value*100),min:`0`,max:`100`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`A%`,onInput:t[10]||=e=>ne(Number((e?.target).value))},null,40,sR)):Lo(``,!0)],2)):Lo(``,!0)])])]),_:1})]),_:1})]),_:1}))}}),lR=TM(cR,[[`__scopeId`,`data-v-a21ce8c7`]]);const uR={"text-nowrap":``,"text-xs":``};var dR=R({__name:`PropertyColor`,props:Yi({label:{default:`Color Picker`}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);return(e,r)=>(z(),B(vo,null,[V(`div`,null,[ki(e.$slots,`label`,{},()=>[V(`span`,uR,Pe(t.label),1)])]),r[1]||=V(`div`,null,null,-1),H(lR,{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e},null,8,[`modelValue`])],64))}}),fR=dR;const pR={"text-nowrap":``,"text-xs":``},mR={h:`5`,"grid-col-span-2":``,"w-full":``},hR=[`value`,`min`,`max`,`step`,`disabled`],gR={bg:`neutral-100 dark:neutral-900`,"h-fit":``,"min-w-12":``,"inline-flex":``,"items-center":``,"rounded-md":``,px:`1.5`,py:`0.5`},_R={"h-fit":``,"w-full":``,"inline-flex":``,"items-center":``,"gap-2":``,"text-xs":``},vR=[`value`,`min`,`max`,`step`,`disabled`];var yR=R({__name:`PropertyNumber`,props:Yi({label:{default:`Range`},config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`),r=F(!1),i=F(0),a=F(0),o=F();function s(e,t){return t?.formatValue?t.formatValue(e):t?.precision===void 0?e.toString():e.toFixed(t.precision)}let c=F(s(n.value,t.config));Ba(n,()=>{c.value=s(n.value,t.config),l()},{immediate:!0});function l(){if(!o.value)return;let e=t.config?.min??0,r=t.config?.max??100,i=n.value;o.value.style.setProperty(`--value`,i.toString()),o.value.style.setProperty(`--min`,e.toString()),o.value.style.setProperty(`--max`,r.toString())}di(()=>{l()});function u(e){let t=e.target,n=Number.parseFloat(t.value);Number.isNaN(n)||f(n)}function d(e){let t=e.target,n=Number.parseFloat(t.value);Number.isNaN(n)||f(n)}function f(e){let r=t.config,i=r?.min??0,a=r?.max??100;e=Math.max(i,Math.min(a,e)),n.value=e,c.value=s(e,r)}function p(e){t.config?.disabled||(e.preventDefault(),r.value=!0,i.value=e.clientX,a.value=n.value,document.addEventListener(`mousemove`,m),document.addEventListener(`mouseup`,h),document.body.style.cursor=`ew-resize`)}function m(e){if(!r.value)return;let n=e.clientX-i.value,o=t.config,s=o?.step||.01,c=a.value+n*s;f(c)}function h(){r.value=!1,document.removeEventListener(`mousemove`,m),document.removeEventListener(`mouseup`,h),document.body.style.cursor=``}return(e,i)=>(z(),B(vo,null,[V(`div`,null,[ki(e.$slots,`label`,{},()=>[V(`span`,pR,Pe(t.label),1)],!0)]),i[0]||=V(`div`,null,null,-1),V(`div`,mR,[V(`input`,{ref_key:`sliderRef`,ref:o,value:n.value,type:`range`,min:t.config?.min??0,max:t.config?.max??100,step:t.config?.step??1,disabled:t.config?.disabled,class:`range-slider`,"h-full":``,"w-full":``,"appearance-none":``,"bg-transparent":``,"outline-none":``,onInput:u},null,40,hR)]),V(`label`,gR,[V(`span`,_R,[V(`span`,{"cursor-col-resize":``,"select-none":``,class:Te({"text-blue-500":r.value}),onMousedown:p},`|`,34),V(`input`,{value:c.value,type:`number`,min:t.config?.min,max:t.config?.max,step:t.config?.step||1e-4,disabled:t.config?.disabled,"max-w-4lh":``,"w-full":``,"flex-1":``,"appearance-none":``,"bg-transparent":``,"text-right":``,"font-mono":``,"outline-none":``,transition:`all duration-200 ease-in-out`,class:`[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none`,onChange:d},null,40,vR)])])],64))}}),bR=TM(yR,[[`__scopeId`,`data-v-c1b3c1a7`]]);const xR={"text-nowrap":``,"text-xs":``},SR={"h-fit":``,"inline-flex":``,"items-center":``,text:`[12px]`,"gap-1":``},CR=[`value`,`min`,`max`],wR={"h-fit":``,"inline-flex":``,"items-center":``,text:`[12px]`,"gap-1":``},TR=[`value`,`min`,`max`],ER={"h-fit":``,"inline-flex":``,"items-center":``,text:`[12px]`,"gap-1":``},DR=[`value`,`min`,`max`];var OR=R({__name:`PropertyPoint`,props:Yi({label:{},xConfig:{},yConfig:{},zConfig:{}},{x:{required:!1,default:0},xModifiers:{},y:{required:!1,default:0},yModifiers:{},z:{required:!1,default:0},zModifiers:{}}),emits:[`update:x`,`update:y`,`update:z`],setup(e){let t=e,n=Wa(e,`x`),r=Wa(e,`y`),i=Wa(e,`z`),a=F(),o=F(0),s=F(0);function c(e,t){return t?.formatValue?t.formatValue(e):t?.precision?e.toFixed(t.precision):e.toString()}let l=F(c(n.value,t.xConfig)),u=F(c(r.value,t.yConfig)),d=F(c(i.value,t.zConfig));Ba(n,()=>l.value=c(n.value,t.xConfig)),Ba(r,()=>u.value=c(r.value,t.yConfig)),Ba(i,()=>d.value=c(i.value,t.zConfig));function f(e,t){let n=t.target,r=Number.parseFloat(n.value);Number.isNaN(r)||p(e,r)}function p(e,a){let o=e===`x`?t.xConfig:e===`y`?t.yConfig:t.zConfig;switch(o?.min!==void 0&&(a=Math.max(o.min,a)),o?.max!==void 0&&(a=Math.min(o.max,a)),e){case`x`:n.value=a,l.value=c(a,t.xConfig)||String(a);break;case`y`:r.value=a,u.value=c(a,t.yConfig)||String(a);break;case`z`:i.value=a,d.value=c(a,t.zConfig)||String(a);break}}function m(e,t){t.preventDefault(),a.value=e,o.value=t.clientX;let c=e===`x`?n.value:e===`y`?r.value:i.value;s.value=c,document.addEventListener(`mousemove`,h),document.addEventListener(`mouseup`,g)}function h(e){if(!a.value)return;let n=e.clientX-o.value,r=a.value===`x`?t.xConfig:a.value===`y`?t.yConfig:t.zConfig,i=r?.step||.01,c=s.value+n*i;p(a.value,c)}function g(){a.value=void 0,document.removeEventListener(`mousemove`,h),document.removeEventListener(`mouseup`,g)}return(e,n)=>(z(),B(vo,null,[V(`div`,null,[ki(e.$slots,`label`,{},()=>[V(`span`,xR,Pe(t.label||`Point`),1)])]),n[6]||=V(`div`,null,null,-1),V(`label`,{"h-fit":``,"w-full":``,"inline-flex":``,"items-center":``,"rounded-md":``,px:`1.5`,py:`0.5`,class:Te([a.value===`x`?`bg-red-100/50 dark:bg-red-900/50`:`bg-neutral-100 dark:bg-neutral-900`]),transition:`colors duration-200 ease-in-out`},[V(`span`,SR,[V(`span`,{"cursor-col-resize":``,"select-none":``,"text-red-500":``,onMousedown:n[0]||=e=>m(`x`,e)},`|`,32),V(`input`,{value:l.value,type:`number`,min:t.xConfig?.min,max:t.xConfig?.max,step:1e-4,"max-w-4lh":``,"w-full":``,"appearance-none":``,"bg-transparent":``,"text-right":``,"font-mono":``,"outline-none":``,class:`[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none`,onChange:n[1]||=e=>f(`x`,e)},null,40,CR)])],2),V(`label`,{"h-fit":``,"inline-flex":``,"items-center":``,"rounded-md":``,px:`1.5`,py:`0.5`,class:Te([a.value===`y`?`bg-blue-100/50 dark:bg-blue-900/50`:`bg-neutral-100 dark:bg-neutral-900`]),transition:`colors duration-200 ease-in-out`},[V(`span`,wR,[V(`span`,{"cursor-col-resize":``,"select-none":``,"text-blue-500":``,onMousedown:n[2]||=e=>m(`y`,e)},`|`,32),V(`input`,{value:u.value,type:`number`,min:t.yConfig?.min,max:t.yConfig?.max,step:1e-4,"max-w-4lh":``,"w-full":``,"appearance-none":``,"bg-transparent":``,"text-right":``,"font-mono":``,"outline-none":``,class:`[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none`,onChange:n[3]||=e=>f(`y`,e)},null,40,TR)])],2),V(`label`,{"h-fit":``,"inline-flex":``,"items-center":``,"rounded-md":``,px:`1.5`,py:`0.5`,class:Te([a.value===`z`?`bg-green-100/50 dark:bg-green-900/50`:`bg-neutral-100 dark:bg-neutral-900`]),transition:`colors duration-200 ease-in-out`},[V(`span`,ER,[V(`span`,{"cursor-col-resize":``,"select-none":``,"text-green-500":``,onMousedown:n[4]||=e=>m(`z`,e)},`|`,32),V(`input`,{value:d.value,type:`number`,min:t.zConfig?.min,max:t.zConfig?.max,step:1e-4,"max-w-4lh":``,"w-full":``,"appearance-none":``,"bg-transparent":``,"text-right":``,"font-mono":``,"outline-none":``,class:`[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none`,onChange:n[5]||=e=>f(`z`,e)},null,40,DR)])],2)],64))}}),kR=OR,AR=R({__name:`AudioSpectrum`,props:{stream:{},bars:{default:32},minFreq:{default:60},maxFreq:{default:4e3}},setup(e){let t=e,n=F(Array.from({length:t.bars}).fill(0));di(()=>{r()}),Ba(()=>t.stream,()=>{r()});function r(){if(!t.stream)return;let e=new(window.AudioContext||window.webkitAudioContext),r=e.createMediaStreamSource(t.stream),i=e.createAnalyser();i.fftSize=2048,r.connect(i);let a=i.frequencyBinCount,o=new Uint8Array(a),s=e.sampleRate,c=s/i.fftSize,l=Math.floor(t.minFreq/c),u=Math.floor(t.maxFreq/c),d=u-l,f=Math.floor(d/t.bars),p=()=>{try{requestAnimationFrame(p),i.getByteFrequencyData(o);let e=Array.from({length:t.bars}).fill(0);for(let n=0;nki(e.$slots,`default`,{frequencies:n.value})}}),jR=AR;const MR={"h-full":``,flex:``,"items-center":``,"gap-1":``};var NR=R({__name:`AudioSpectrumVisualizer`,props:{frequencies:{},barsClass:{}},setup(e){let t=e;function n(e,t){let n=.1;return n+(1-n)*(e/t)}function r(e,r){let i=n(r,t.frequencies.length);return Math.min(100,Math.max(10,e*100*5*i))}return(e,t)=>(z(),B(`div`,MR,[(z(!0),B(vo,null,Di(e.frequencies,(t,n)=>(z(),B(`div`,{key:n,"h-full":``,flex:``,"flex-1":``,"items-end":``},[V(`div`,{transition:`all 100 ease-in-out`,"mx-auto":``,"my-0":``,"w-full":``,"rounded-full":``,class:Te(e.barsClass),style:be({height:`${r(t,n)}%`})},null,6)]))),128))]))}}),PR=NR;const FR={key:0,class:`mb-2 flex items-center justify-between`},IR={class:`text-sm font-medium`},LR={class:`text-sm text-neutral-500`};var RR=R({__name:`LevelMeter`,props:{level:{},min:{default:0},max:{default:100},numBars:{default:20},label:{default:`Level`},unit:{default:`%`},height:{default:24},showHeader:{type:Boolean,default:!0},animationSpeed:{default:75},colorThresholds:{default:()=>[{value:60,color:`bg-green-500`},{value:80,color:`bg-yellow-500`},{value:100,color:`bg-red-500`}]},formatValue:{}},setup(e){let t=e,n=U(()=>{let e=Math.max(0,Math.min(100,(t.level-t.min)/(t.max-t.min)*100)),n=Math.floor(e/100*t.numBars);return Array.from({length:t.numBars},(e,r)=>({active:re.value-t.value);for(let e of r)if(n<=e.value)return e.color;return r[r.length-1]?.color||`bg-green-500`}return(e,t)=>(z(),B(`div`,null,[e.showHeader?(z(),B(`div`,FR,[V(`span`,IR,Pe(e.label),1),V(`span`,LR,Pe(e.formatValue?e.formatValue(e.level):`${Math.round(e.level)}${e.unit}`),1)])):Lo(``,!0),V(`div`,{class:`flex items-end gap-1 rounded bg-neutral-200/45 p-1 dark:bg-neutral-700`,style:be({height:`${e.height}px`})},[(z(!0),B(vo,null,Di(n.value,(t,n)=>(z(),B(`div`,{key:n,class:Te([`flex-1 rounded-sm transition-all`,[t.active?r(n,t.level):`bg-neutral-200 dark:bg-neutral-600`,`duration-${e.animationSpeed}`]]),style:be({height:t.active?`100%`:`20%`})},null,6))),128))],4)]))}}),zR=RR,BR=R({__name:`Volumed`,props:{perspective:{},transform:{}},setup(e){return(e,t)=>(z(),B(`div`,{class:`volumed`,style:be({perspective:`${e.perspective}px`,transform:e.transform})},[ki(e.$slots,`default`,{},void 0,!0)],4))}}),VR=TM(BR,[[`__scopeId`,`data-v-d8ce56aa`]]),HR=R({__name:`CursorMomentum`,props:{baseSpeed:{default:.1},friction:{default:.95},momentumFactor:{default:.005}},setup(e,{expose:t}){let n=e,r=F(1),i=F(0),a=0,o=vn(()=>n.friction),s=vn(()=>n.baseSpeed),c=vn(()=>n.momentumFactor);function l(e){a||=e;let t=e-a;a=e,r.value=s.value+(r.value-s.value)*o.value,i.value+=r.value*t,requestAnimationFrame(l)}function u(e){let t=Math.sqrt(e.movementX**2+e.movementY**2);r.value+=t*c.value}return di(()=>{window.addEventListener(`mousemove`,u),requestAnimationFrame(l)}),hi(()=>{window.removeEventListener(`mousemove`,u)}),t({momentum:r,currentValue:i}),(e,t)=>ki(e.$slots,`default`,{momentum:r.value,currentValue:i.value})}}),UR=HR,WR=R({__name:`TestDummyMarkerFlat`,props:{size:{}},setup(e){return(e,t)=>(z(),B(`div`,{class:`test-dummy-flat`,style:be({width:`${e.size}px`,height:`${e.size}px`})},[...t[0]||=[V(`div`,{class:`marker`},null,-1)]],4))}}),GR=TM(WR,[[`__scopeId`,`data-v-28f8c660`]]),KR=R({__name:`TestDummyMarker`,setup(e){return(e,t)=>(z(),Oo(UR,{"base-speed":.1,friction:.95,"momentum-factor":5e-4},{default:L(({currentValue:e})=>[H(VR,{perspective:800,transform:`rotateX(45deg) translateY(3px)`},{default:L(()=>[H(GR,{size:24,style:be({transform:`rotate(${e}deg)`})},null,8,[`style`])]),_:2},1024)]),_:1}))}}),qR=KR;const JR={key:0,class:`mb-2 flex items-center justify-between`},YR={class:`text-sm font-medium`},XR={class:`text-sm text-neutral-500`},ZR={key:1,class:`mt-1 flex gap-3 text-xs text-neutral-500`},QR={class:`flex items-center gap-1`},$R={class:`flex items-center gap-1`},ez={class:`flex items-center gap-1`};var tz=R({__name:`ThresholdMeter`,props:{value:{},threshold:{},min:{default:0},max:{default:1},numBars:{default:20},label:{default:`Value`},unit:{default:`%`},precision:{default:1},height:{default:24},showHeader:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},animationSpeed:{default:100},belowThresholdClass:{default:`bg-primary-300 dark:bg-primary-600`},aboveThresholdClass:{default:`bg-green-500`},thresholdBarClass:{default:`bg-white dark:bg-neutral-800`},inactiveBarClass:{default:`bg-neutral-300 dark:bg-neutral-600`},belowLabel:{default:`Below`},aboveLabel:{default:`Above`},thresholdLabel:{default:`Threshold`},formatValue:{}},setup(e){let t=e,n=U(()=>{let e=Math.max(0,Math.min(1,(t.value-t.min)/(t.max-t.min))),n=Math.max(0,Math.min(1,(t.threshold-t.min)/(t.max-t.min))),r=Math.floor(e*t.numBars),i=Math.floor(n*t.numBars);return Array.from({length:t.numBars},(e,t)=>({active:t=i,isBelowThreshold:t(z(),B(`div`,null,[e.showHeader?(z(),B(`div`,JR,[V(`span`,YR,Pe(e.label),1),V(`span`,XR,Pe(e.formatValue?e.formatValue(e.value):`${(e.value*100).toFixed(e.precision)}${e.unit}`),1)])):Lo(``,!0),V(`div`,{class:`flex items-end gap-1 rounded bg-neutral-200/45 p-1 p-1 dark:bg-neutral-700`,style:be({height:`${e.height}px`})},[(z(!0),B(vo,null,Di(n.value,(t,n)=>(z(),B(`div`,{key:`threshold-${n}`,class:Te([`flex-1 rounded-sm transition-all`,[t.isThreshold?e.thresholdBarClass:t.isAboveThreshold?e.aboveThresholdClass:t.isBelowThreshold?e.belowThresholdClass:e.inactiveBarClass,`duration-${e.animationSpeed}`]]),style:be({height:t.active||t.isThreshold?`100%`:`20%`})},null,6))),128))],4),e.showLegend?(z(),B(`div`,ZR,[V(`span`,QR,[V(`div`,{class:Te(`inline-block h-0.5lh w-1lh rounded-full ${e.belowThresholdClass}`)},null,2),Fo(` `+Pe(e.belowLabel),1)]),V(`span`,$R,[V(`div`,{class:Te(`inline-block h-0.5lh w-1lh rounded-full border border-neutral-400 ${e.thresholdBarClass}`)},null,2),Fo(` `+Pe(e.thresholdLabel),1)]),V(`span`,ez,[V(`div`,{class:Te(`inline-block h-0.5lh w-1lh rounded-full ${e.aboveThresholdClass}`)},null,2),Fo(` `+Pe(e.aboveLabel),1)])])):Lo(``,!0)]))}}),nz=tz;function rz(e){return{color:e,withAlpha:t=>{let n=UL(e);if(!n)throw Error(`Invalid color provided for alpha adjustment`);return rz(UL({mode:`oklch`,l:n.l,c:n.c,h:n.h,alpha:t}))},toHex:()=>VL(e),toCSS:()=>BL(e)}}function iz(e=200,t){let n=t??.18+Math.cos(e*Math.PI/180)*.04,r={50:{lightness:.95,chromaMultiplier:.3,mixWithWhite:.7},100:{lightness:.95,chromaMultiplier:.5,mixWithWhite:.2},200:{lightness:.9,chromaMultiplier:.6},300:{lightness:.85,chromaMultiplier:.75},400:{lightness:.74,chromaMultiplier:.85},500:{lightness:.62,chromaMultiplier:1},600:{lightness:.54,chromaMultiplier:1.15},700:{lightness:.49,chromaMultiplier:1.1},800:{lightness:.42,chromaMultiplier:.85},900:{lightness:.37,chromaMultiplier:.7},950:{lightness:.29,chromaMultiplier:.5}},i=(t,i,a=0)=>{let o=r[t],s=(e+a)%360,c=n*o.chromaMultiplier,l=UL({mode:`oklch`,l:o.lightness,c,h:s,alpha:i??1});if(o.mixWithWhite){let e=UL({mode:`oklch`,l:1,c:0,h:0,alpha:i??1});return rz(az(l,e,o.mixWithWhite))}return rz(l)};return{baseHue:e,chroma:n,getAllShades:(e,t=0)=>{let n={};for(let a of Object.keys(r)){let r=Number.parseInt(a);n[r]=i(r,e,t)}return n},shadeBy:i}}function az(e,t,n=.5){let r=UL(e),i=UL(t);if(!r||!i)throw Error(`Invalid colors provided for mixing`);return UL({mode:`oklch`,l:r.l*(1-n)+i.l*n,c:r.c*(1-n)+i.c*n,h:oz(r.h??0,i.h??0,n)})}function oz(e,t,n){let r=t-e;return r>180&&(r-=360),r<-180&&(r+=360),(e+r*n+360)%360}let sz=function(e){return e.Idle=`<|EMOTE_NEUTRAL|>`,e.Happy=`<|EMOTE_HAPPY|>`,e.Sad=`<|EMOTE_SAD|>`,e.Angry=`<|EMOTE_ANGRY|>`,e.Think=`<|EMOTE_THINK|>`,e.Surprise=`<|EMOTE_SURPRISE|>`,e.Awkward=`<|EMOTE_AWKWARD|>`,e.Question=`<|EMOTE_QUESTION|>`,e}({});const cz=Object.values(sz),lz=`Think`,uz=`Idle`,dz={[sz.Happy]:`Happy`,[sz.Sad]:`Sad`,[sz.Angry]:`Angry`,[sz.Think]:lz,[sz.Surprise]:`Surprise`,[sz.Awkward]:`Awkward`,[sz.Question]:`Question`,[sz.Idle]:uz},fz={[sz.Happy]:`happy`,[sz.Sad]:`sad`,[sz.Angry]:`angry`,[sz.Think]:void 0,[sz.Surprise]:`surprised`,[sz.Awkward]:void 0,[sz.Question]:void 0,[sz.Idle]:void 0},pz=Symbol(`@proj-airi/chromatic-hue`);function mz(e,t){return{role:`system`,content:[e,cz.map(e=>`- ${e}`).join(` + linear-gradient(-45deg, transparent 75%, #ccc 75%)`,"background-size":`8px 8px`,"background-position":`0 0, 0 4px, 4px -4px, -4px 0px`}},null,-1),V(`div`,{ref_key:`alphaSliderRef`,ref:a,class:`relative h-full w-full cursor-pointer`,style:be([w.value,{cursor:c.value&&l.value===`alpha`?`none`:`pointer`}]),onMousedown:A,onTouchstart:A},[V(`div`,{class:`pointer-events-none absolute top-0 h-14 w-1 cursor-pointer cursor-col-resize appearance-none bg-white shadow-lg transition-colors,transform,width,height duration-200 hover:h-13 hover:w-2 hover:bg-neutral-800`,style:be([S.value,{transform:`translateX(-50%) ${c.value&&l.value===`alpha`?`scaleY(1.2)`:`scaleY(1)`}`}])},null,4)],36)])):zo(``,!0),V(`div`,AL,[V(`div`,jL,[cr(V(`select`,{"onUpdate:modelValue":t[0]||=e=>u.value=e,class:`flex-shrink-0 border rounded-lg px-2 py-1 text-sm`},[...t[13]||=[V(`option`,{value:`hex`},` HEX `,-1),V(`option`,{value:`rgb`},` RGB `,-1),V(`option`,{value:`hsv`},` HSV `,-1)]],512),[[Hc,u.value]])]),u.value===`hex`?(z(),B(`div`,ML,[V(`input`,{value:y.value,class:`flex-1 border rounded-lg px-2 py-1 text-sm font-mono`,placeholder:`#000000`,onInput:t[1]||=e=>ee((e?.target).value)},null,40,NL),e.alpha?(z(),B(`input`,{key:0,type:`number`,value:Math.round(m.value*100),min:`0`,max:`100`,class:`w-16 border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`A%`,onInput:t[2]||=e=>ne(Number((e?.target).value))},null,40,PL)):zo(``,!0)])):u.value===`rgb`?(z(),B(`div`,{key:1,class:Te([`grid gap-2`,e.alpha?`grid-cols-4`:`grid-cols-3`])},[V(`input`,{type:`number`,value:v.value.r,min:`0`,max:`255`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`R`,onInput:t[3]||=e=>te(`r`,Number((e?.target).value))},null,40,FL),V(`input`,{type:`number`,value:v.value.g,min:`0`,max:`255`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`G`,onInput:t[4]||=e=>te(`g`,Number((e?.target).value))},null,40,IL),V(`input`,{type:`number`,value:v.value.b,min:`0`,max:`255`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`B`,onInput:t[5]||=e=>te(`b`,Number((e?.target).value))},null,40,LL),e.alpha?(z(),B(`input`,{key:0,type:`number`,value:Math.round(m.value*100),min:`0`,max:`100`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`A%`,onInput:t[6]||=e=>ne(Number((e?.target).value))},null,40,RL)):zo(``,!0)],2)):u.value===`hsv`?(z(),B(`div`,{key:2,class:Te([`grid gap-2`,e.alpha?`grid-cols-4`:`grid-cols-3`])},[V(`input`,{type:`number`,value:Math.round(d.value),min:`0`,max:`360`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`H°`,onInput:t[7]||=e=>N(`h`,Number((e?.target).value))},null,40,zL),V(`input`,{type:`number`,value:Math.round(f.value),min:`0`,max:`100`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`S%`,onInput:t[8]||=e=>N(`s`,Number((e?.target).value))},null,40,BL),V(`input`,{type:`number`,value:Math.round(p.value),min:`0`,max:`100`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`V%`,onInput:t[9]||=e=>N(`v`,Number((e?.target).value))},null,40,VL),e.alpha?(z(),B(`input`,{key:0,type:`number`,value:Math.round(m.value*100),min:`0`,max:`100`,class:`border border-neutral-200 rounded-lg px-2 py-1 text-sm dark:border-neutral-700`,placeholder:`A%`,onInput:t[10]||=e=>ne(Number((e?.target).value))},null,40,HL)):zo(``,!0)],2)):zo(``,!0)])])]),_:1})]),_:1})]),_:1}))}}),WL=CM(UL,[[`__scopeId`,`data-v-a21ce8c7`]]);const GL={"text-nowrap":``,"text-xs":``};var KL=R({__name:`PropertyColor`,props:Xi({label:{default:`Color Picker`}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);return(e,r)=>(z(),B(bo,null,[V(`div`,null,[Ai(e.$slots,`label`,{},()=>[V(`span`,GL,Pe(t.label),1)])]),r[1]||=V(`div`,null,null,-1),H(WL,{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e},null,8,[`modelValue`])],64))}}),qL=KL;const JL={"text-nowrap":``,"text-xs":``},YL={h:`5`,"grid-col-span-2":``,"w-full":``},XL=[`value`,`min`,`max`,`step`,`disabled`],ZL={bg:`neutral-100 dark:neutral-900`,"h-fit":``,"min-w-12":``,"inline-flex":``,"items-center":``,"rounded-md":``,px:`1.5`,py:`0.5`},QL={"h-fit":``,"w-full":``,"inline-flex":``,"items-center":``,"gap-2":``,"text-xs":``},$L=[`value`,`min`,`max`,`step`,`disabled`];var eR=R({__name:`PropertyNumber`,props:Xi({label:{default:`Range`},config:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`),r=F(!1),i=F(0),a=F(0),o=F();function s(e,t){return t?.formatValue?t.formatValue(e):t?.precision===void 0?e.toString():e.toFixed(t.precision)}let c=F(s(n.value,t.config));Ha(n,()=>{c.value=s(n.value,t.config),l()},{immediate:!0});function l(){if(!o.value)return;let e=t.config?.min??0,r=t.config?.max??100,i=n.value;o.value.style.setProperty(`--value`,i.toString()),o.value.style.setProperty(`--min`,e.toString()),o.value.style.setProperty(`--max`,r.toString())}fi(()=>{l()});function u(e){let t=e.target,n=Number.parseFloat(t.value);Number.isNaN(n)||f(n)}function d(e){let t=e.target,n=Number.parseFloat(t.value);Number.isNaN(n)||f(n)}function f(e){let r=t.config,i=r?.min??0,a=r?.max??100;e=Math.max(i,Math.min(a,e)),n.value=e,c.value=s(e,r)}function p(e){t.config?.disabled||(e.preventDefault(),r.value=!0,i.value=e.clientX,a.value=n.value,document.addEventListener(`mousemove`,m),document.addEventListener(`mouseup`,h),document.body.style.cursor=`ew-resize`)}function m(e){if(!r.value)return;let n=e.clientX-i.value,o=t.config,s=o?.step||.01,c=a.value+n*s;f(c)}function h(){r.value=!1,document.removeEventListener(`mousemove`,m),document.removeEventListener(`mouseup`,h),document.body.style.cursor=``}return(e,i)=>(z(),B(bo,null,[V(`div`,null,[Ai(e.$slots,`label`,{},()=>[V(`span`,JL,Pe(t.label),1)],!0)]),i[0]||=V(`div`,null,null,-1),V(`div`,YL,[V(`input`,{ref_key:`sliderRef`,ref:o,value:n.value,type:`range`,min:t.config?.min??0,max:t.config?.max??100,step:t.config?.step??1,disabled:t.config?.disabled,class:`range-slider`,"h-full":``,"w-full":``,"appearance-none":``,"bg-transparent":``,"outline-none":``,onInput:u},null,40,XL)]),V(`label`,ZL,[V(`span`,QL,[V(`span`,{"cursor-col-resize":``,"select-none":``,class:Te({"text-blue-500":r.value}),onMousedown:p},`|`,34),V(`input`,{value:c.value,type:`number`,min:t.config?.min,max:t.config?.max,step:t.config?.step||1e-4,disabled:t.config?.disabled,"max-w-4lh":``,"w-full":``,"flex-1":``,"appearance-none":``,"bg-transparent":``,"text-right":``,"font-mono":``,"outline-none":``,transition:`all duration-200 ease-in-out`,class:`[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none`,onChange:d},null,40,$L)])])],64))}}),tR=CM(eR,[[`__scopeId`,`data-v-c1b3c1a7`]]);const nR={"text-nowrap":``,"text-xs":``},rR={"h-fit":``,"inline-flex":``,"items-center":``,text:`[12px]`,"gap-1":``},iR=[`value`,`min`,`max`],aR={"h-fit":``,"inline-flex":``,"items-center":``,text:`[12px]`,"gap-1":``},oR=[`value`,`min`,`max`],sR={"h-fit":``,"inline-flex":``,"items-center":``,text:`[12px]`,"gap-1":``},cR=[`value`,`min`,`max`];var lR=R({__name:`PropertyPoint`,props:Xi({label:{},xConfig:{},yConfig:{},zConfig:{}},{x:{required:!1,default:0},xModifiers:{},y:{required:!1,default:0},yModifiers:{},z:{required:!1,default:0},zModifiers:{}}),emits:[`update:x`,`update:y`,`update:z`],setup(e){let t=e,n=Ka(e,`x`),r=Ka(e,`y`),i=Ka(e,`z`),a=F(),o=F(0),s=F(0);function c(e,t){return t?.formatValue?t.formatValue(e):t?.precision?e.toFixed(t.precision):e.toString()}let l=F(c(n.value,t.xConfig)),u=F(c(r.value,t.yConfig)),d=F(c(i.value,t.zConfig));Ha(n,()=>l.value=c(n.value,t.xConfig)),Ha(r,()=>u.value=c(r.value,t.yConfig)),Ha(i,()=>d.value=c(i.value,t.zConfig));function f(e,t){let n=t.target,r=Number.parseFloat(n.value);Number.isNaN(r)||p(e,r)}function p(e,a){let o=e===`x`?t.xConfig:e===`y`?t.yConfig:t.zConfig;switch(o?.min!==void 0&&(a=Math.max(o.min,a)),o?.max!==void 0&&(a=Math.min(o.max,a)),e){case`x`:n.value=a,l.value=c(a,t.xConfig)||String(a);break;case`y`:r.value=a,u.value=c(a,t.yConfig)||String(a);break;case`z`:i.value=a,d.value=c(a,t.zConfig)||String(a);break}}function m(e,t){t.preventDefault(),a.value=e,o.value=t.clientX;let c=e===`x`?n.value:e===`y`?r.value:i.value;s.value=c,document.addEventListener(`mousemove`,h),document.addEventListener(`mouseup`,g)}function h(e){if(!a.value)return;let n=e.clientX-o.value,r=a.value===`x`?t.xConfig:a.value===`y`?t.yConfig:t.zConfig,i=r?.step||.01,c=s.value+n*i;p(a.value,c)}function g(){a.value=void 0,document.removeEventListener(`mousemove`,h),document.removeEventListener(`mouseup`,g)}return(e,n)=>(z(),B(bo,null,[V(`div`,null,[Ai(e.$slots,`label`,{},()=>[V(`span`,nR,Pe(t.label||`Point`),1)])]),n[6]||=V(`div`,null,null,-1),V(`label`,{"h-fit":``,"w-full":``,"inline-flex":``,"items-center":``,"rounded-md":``,px:`1.5`,py:`0.5`,class:Te([a.value===`x`?`bg-red-100/50 dark:bg-red-900/50`:`bg-neutral-100 dark:bg-neutral-900`]),transition:`colors duration-200 ease-in-out`},[V(`span`,rR,[V(`span`,{"cursor-col-resize":``,"select-none":``,"text-red-500":``,onMousedown:n[0]||=e=>m(`x`,e)},`|`,32),V(`input`,{value:l.value,type:`number`,min:t.xConfig?.min,max:t.xConfig?.max,step:1e-4,"max-w-4lh":``,"w-full":``,"appearance-none":``,"bg-transparent":``,"text-right":``,"font-mono":``,"outline-none":``,class:`[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none`,onChange:n[1]||=e=>f(`x`,e)},null,40,iR)])],2),V(`label`,{"h-fit":``,"inline-flex":``,"items-center":``,"rounded-md":``,px:`1.5`,py:`0.5`,class:Te([a.value===`y`?`bg-blue-100/50 dark:bg-blue-900/50`:`bg-neutral-100 dark:bg-neutral-900`]),transition:`colors duration-200 ease-in-out`},[V(`span`,aR,[V(`span`,{"cursor-col-resize":``,"select-none":``,"text-blue-500":``,onMousedown:n[2]||=e=>m(`y`,e)},`|`,32),V(`input`,{value:u.value,type:`number`,min:t.yConfig?.min,max:t.yConfig?.max,step:1e-4,"max-w-4lh":``,"w-full":``,"appearance-none":``,"bg-transparent":``,"text-right":``,"font-mono":``,"outline-none":``,class:`[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none`,onChange:n[3]||=e=>f(`y`,e)},null,40,oR)])],2),V(`label`,{"h-fit":``,"inline-flex":``,"items-center":``,"rounded-md":``,px:`1.5`,py:`0.5`,class:Te([a.value===`z`?`bg-green-100/50 dark:bg-green-900/50`:`bg-neutral-100 dark:bg-neutral-900`]),transition:`colors duration-200 ease-in-out`},[V(`span`,sR,[V(`span`,{"cursor-col-resize":``,"select-none":``,"text-green-500":``,onMousedown:n[4]||=e=>m(`z`,e)},`|`,32),V(`input`,{value:d.value,type:`number`,min:t.zConfig?.min,max:t.zConfig?.max,step:1e-4,"max-w-4lh":``,"w-full":``,"appearance-none":``,"bg-transparent":``,"text-right":``,"font-mono":``,"outline-none":``,class:`[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none`,onChange:n[5]||=e=>f(`z`,e)},null,40,cR)])],2)],64))}}),uR=lR,dR=R({__name:`AudioSpectrum`,props:{stream:{},bars:{default:32},minFreq:{default:60},maxFreq:{default:4e3}},setup(e){let t=e,n=F(Array.from({length:t.bars}).fill(0));fi(()=>{r()}),Ha(()=>t.stream,()=>{r()});function r(){if(!t.stream)return;let e=new(window.AudioContext||window.webkitAudioContext),r=e.createMediaStreamSource(t.stream),i=e.createAnalyser();i.fftSize=2048,r.connect(i);let a=i.frequencyBinCount,o=new Uint8Array(a),s=e.sampleRate,c=s/i.fftSize,l=Math.floor(t.minFreq/c),u=Math.floor(t.maxFreq/c),d=u-l,f=Math.floor(d/t.bars),p=()=>{try{requestAnimationFrame(p),i.getByteFrequencyData(o);let e=Array.from({length:t.bars}).fill(0);for(let n=0;nAi(e.$slots,`default`,{frequencies:n.value})}}),fR=dR;const pR={"h-full":``,flex:``,"items-center":``,"gap-1":``};var mR=R({__name:`AudioSpectrumVisualizer`,props:{frequencies:{},barsClass:{}},setup(e){let t=e;function n(e,t){let n=.1;return n+(1-n)*(e/t)}function r(e,r){let i=n(r,t.frequencies.length);return Math.min(100,Math.max(10,e*100*5*i))}return(e,t)=>(z(),B(`div`,pR,[(z(!0),B(bo,null,Oi(e.frequencies,(t,n)=>(z(),B(`div`,{key:n,"h-full":``,flex:``,"flex-1":``,"items-end":``},[V(`div`,{transition:`all 100 ease-in-out`,"mx-auto":``,"my-0":``,"w-full":``,"rounded-full":``,class:Te(e.barsClass),style:be({height:`${r(t,n)}%`})},null,6)]))),128))]))}}),hR=mR;const gR={key:0,class:`mb-2 flex items-center justify-between`},_R={class:`text-sm font-medium`},vR={class:`text-sm text-neutral-500`};var yR=R({__name:`LevelMeter`,props:{level:{},min:{default:0},max:{default:100},numBars:{default:20},label:{default:`Level`},unit:{default:`%`},height:{default:24},showHeader:{type:Boolean,default:!0},animationSpeed:{default:75},colorThresholds:{default:()=>[{value:60,color:`bg-green-500`},{value:80,color:`bg-yellow-500`},{value:100,color:`bg-red-500`}]},formatValue:{}},setup(e){let t=e,n=U(()=>{let e=Math.max(0,Math.min(100,(t.level-t.min)/(t.max-t.min)*100)),n=Math.floor(e/100*t.numBars);return Array.from({length:t.numBars},(e,r)=>({active:re.value-t.value);for(let e of r)if(n<=e.value)return e.color;return r[r.length-1]?.color||`bg-green-500`}return(e,t)=>(z(),B(`div`,null,[e.showHeader?(z(),B(`div`,gR,[V(`span`,_R,Pe(e.label),1),V(`span`,vR,Pe(e.formatValue?e.formatValue(e.level):`${Math.round(e.level)}${e.unit}`),1)])):zo(``,!0),V(`div`,{class:`flex items-end gap-1 rounded bg-neutral-200/45 p-1 dark:bg-neutral-700`,style:be({height:`${e.height}px`})},[(z(!0),B(bo,null,Oi(n.value,(t,n)=>(z(),B(`div`,{key:n,class:Te([`flex-1 rounded-sm transition-all`,[t.active?r(n,t.level):`bg-neutral-200 dark:bg-neutral-600`,`duration-${e.animationSpeed}`]]),style:be({height:t.active?`100%`:`20%`})},null,6))),128))],4)]))}}),bR=yR,xR=R({__name:`Volumed`,props:{perspective:{},transform:{}},setup(e){return(e,t)=>(z(),B(`div`,{class:`volumed`,style:be({perspective:`${e.perspective}px`,transform:e.transform})},[Ai(e.$slots,`default`,{},void 0,!0)],4))}}),SR=CM(xR,[[`__scopeId`,`data-v-d8ce56aa`]]),CR=R({__name:`CursorMomentum`,props:{baseSpeed:{default:.1},friction:{default:.95},momentumFactor:{default:.005}},setup(e,{expose:t}){let n=e,r=F(1),i=F(0),a=0,o=vn(()=>n.friction),s=vn(()=>n.baseSpeed),c=vn(()=>n.momentumFactor);function l(e){a||=e;let t=e-a;a=e,r.value=s.value+(r.value-s.value)*o.value,i.value+=r.value*t,requestAnimationFrame(l)}function u(e){let t=Math.sqrt(e.movementX**2+e.movementY**2);r.value+=t*c.value}return fi(()=>{window.addEventListener(`mousemove`,u),requestAnimationFrame(l)}),gi(()=>{window.removeEventListener(`mousemove`,u)}),t({momentum:r,currentValue:i}),(e,t)=>Ai(e.$slots,`default`,{momentum:r.value,currentValue:i.value})}}),wR=CR,TR=R({__name:`TestDummyMarkerFlat`,props:{size:{}},setup(e){return(e,t)=>(z(),B(`div`,{class:`test-dummy-flat`,style:be({width:`${e.size}px`,height:`${e.size}px`})},[...t[0]||=[V(`div`,{class:`marker`},null,-1)]],4))}}),ER=CM(TR,[[`__scopeId`,`data-v-28f8c660`]]),DR=R({__name:`TestDummyMarker`,setup(e){return(e,t)=>(z(),Ao(wR,{"base-speed":.1,friction:.95,"momentum-factor":5e-4},{default:L(({currentValue:e})=>[H(SR,{perspective:800,transform:`rotateX(45deg) translateY(3px)`},{default:L(()=>[H(ER,{size:24,style:be({transform:`rotate(${e}deg)`})},null,8,[`style`])]),_:2},1024)]),_:1}))}}),OR=DR;const kR={key:0,class:`mb-2 flex items-center justify-between`},AR={class:`text-sm font-medium`},jR={class:`text-sm text-neutral-500`},MR={key:1,class:`mt-1 flex gap-3 text-xs text-neutral-500`},NR={class:`flex items-center gap-1`},PR={class:`flex items-center gap-1`},FR={class:`flex items-center gap-1`};var IR=R({__name:`ThresholdMeter`,props:{value:{},threshold:{},min:{default:0},max:{default:1},numBars:{default:20},label:{default:`Value`},unit:{default:`%`},precision:{default:1},height:{default:24},showHeader:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},animationSpeed:{default:100},belowThresholdClass:{default:`bg-primary-300 dark:bg-primary-600`},aboveThresholdClass:{default:`bg-green-500`},thresholdBarClass:{default:`bg-white dark:bg-neutral-800`},inactiveBarClass:{default:`bg-neutral-300 dark:bg-neutral-600`},belowLabel:{default:`Below`},aboveLabel:{default:`Above`},thresholdLabel:{default:`Threshold`},formatValue:{}},setup(e){let t=e,n=U(()=>{let e=Math.max(0,Math.min(1,(t.value-t.min)/(t.max-t.min))),n=Math.max(0,Math.min(1,(t.threshold-t.min)/(t.max-t.min))),r=Math.floor(e*t.numBars),i=Math.floor(n*t.numBars);return Array.from({length:t.numBars},(e,t)=>({active:t=i,isBelowThreshold:t(z(),B(`div`,null,[e.showHeader?(z(),B(`div`,kR,[V(`span`,AR,Pe(e.label),1),V(`span`,jR,Pe(e.formatValue?e.formatValue(e.value):`${(e.value*100).toFixed(e.precision)}${e.unit}`),1)])):zo(``,!0),V(`div`,{class:`flex items-end gap-1 rounded bg-neutral-200/45 p-1 p-1 dark:bg-neutral-700`,style:be({height:`${e.height}px`})},[(z(!0),B(bo,null,Oi(n.value,(t,n)=>(z(),B(`div`,{key:`threshold-${n}`,class:Te([`flex-1 rounded-sm transition-all`,[t.isThreshold?e.thresholdBarClass:t.isAboveThreshold?e.aboveThresholdClass:t.isBelowThreshold?e.belowThresholdClass:e.inactiveBarClass,`duration-${e.animationSpeed}`]]),style:be({height:t.active||t.isThreshold?`100%`:`20%`})},null,6))),128))],4),e.showLegend?(z(),B(`div`,MR,[V(`span`,NR,[V(`div`,{class:Te(`inline-block h-0.5lh w-1lh rounded-full ${e.belowThresholdClass}`)},null,2),Lo(` `+Pe(e.belowLabel),1)]),V(`span`,PR,[V(`div`,{class:Te(`inline-block h-0.5lh w-1lh rounded-full border border-neutral-400 ${e.thresholdBarClass}`)},null,2),Lo(` `+Pe(e.thresholdLabel),1)]),V(`span`,FR,[V(`div`,{class:Te(`inline-block h-0.5lh w-1lh rounded-full ${e.aboveThresholdClass}`)},null,2),Lo(` `+Pe(e.aboveLabel),1)])])):zo(``,!0)]))}}),LR=IR;function RR(e){return{color:e,withAlpha:t=>{let n=wL(e);if(!n)throw Error(`Invalid color provided for alpha adjustment`);return RR(wL({mode:`oklch`,l:n.l,c:n.c,h:n.h,alpha:t}))},toHex:()=>SL(e),toCSS:()=>xL(e)}}function zR(e=200,t){let n=t??.18+Math.cos(e*Math.PI/180)*.04,r={50:{lightness:.95,chromaMultiplier:.3,mixWithWhite:.7},100:{lightness:.95,chromaMultiplier:.5,mixWithWhite:.2},200:{lightness:.9,chromaMultiplier:.6},300:{lightness:.85,chromaMultiplier:.75},400:{lightness:.74,chromaMultiplier:.85},500:{lightness:.62,chromaMultiplier:1},600:{lightness:.54,chromaMultiplier:1.15},700:{lightness:.49,chromaMultiplier:1.1},800:{lightness:.42,chromaMultiplier:.85},900:{lightness:.37,chromaMultiplier:.7},950:{lightness:.29,chromaMultiplier:.5}},i=(t,i,a=0)=>{let o=r[t],s=(e+a)%360,c=n*o.chromaMultiplier,l=wL({mode:`oklch`,l:o.lightness,c,h:s,alpha:i??1});if(o.mixWithWhite){let e=wL({mode:`oklch`,l:1,c:0,h:0,alpha:i??1});return RR(BR(l,e,o.mixWithWhite))}return RR(l)};return{baseHue:e,chroma:n,getAllShades:(e,t=0)=>{let n={};for(let a of Object.keys(r)){let r=Number.parseInt(a);n[r]=i(r,e,t)}return n},shadeBy:i}}function BR(e,t,n=.5){let r=wL(e),i=wL(t);if(!r||!i)throw Error(`Invalid colors provided for mixing`);return wL({mode:`oklch`,l:r.l*(1-n)+i.l*n,c:r.c*(1-n)+i.c*n,h:VR(r.h??0,i.h??0,n)})}function VR(e,t,n){let r=t-e;return r>180&&(r-=360),r<-180&&(r+=360),(e+r*n+360)%360}let HR=function(e){return e.Idle=`<|EMOTE_NEUTRAL|>`,e.Happy=`<|EMOTE_HAPPY|>`,e.Sad=`<|EMOTE_SAD|>`,e.Angry=`<|EMOTE_ANGRY|>`,e.Think=`<|EMOTE_THINK|>`,e.Surprise=`<|EMOTE_SURPRISE|>`,e.Awkward=`<|EMOTE_AWKWARD|>`,e.Question=`<|EMOTE_QUESTION|>`,e}({});const UR=Object.values(HR),WR=`Think`,GR=`Idle`,KR={[HR.Happy]:`Happy`,[HR.Sad]:`Sad`,[HR.Angry]:`Angry`,[HR.Think]:WR,[HR.Surprise]:`Surprise`,[HR.Awkward]:`Awkward`,[HR.Question]:`Question`,[HR.Idle]:GR},qR={[HR.Happy]:`happy`,[HR.Sad]:`sad`,[HR.Angry]:`angry`,[HR.Think]:void 0,[HR.Surprise]:`surprised`,[HR.Awkward]:void 0,[HR.Question]:void 0,[HR.Idle]:void 0},JR=Symbol(`@proj-airi/chromatic-hue`);function YR(e,t){return{role:`system`,content:[e,UR.map(e=>`- ${e}`).join(` `),t].join(` -`)}}var hz=mz;const gz=220.44,_z=`<|llm_inference_end|>`,vz={key:0,class:`flex items-center justify-between`},yz={class:`text-sm font-medium`},bz={class:`text-xs text-neutral-500`},xz={class:`h-full w-full`},Sz={id:`below-threshold-gradient`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},Cz=[`fill`],wz=[`y`,`height`,`fill`],Tz=[`y1`,`y2`,`stroke`,`fill`],Ez=[`d`,`fill`],Dz=[`d`,`stroke`,`stroke-width`],Oz={key:0,class:`absolute left-2 top-2 flex items-center gap-1.5 border border-primary-200 rounded-md bg-primary-50 px-2 py-1 dark:border-primary-800 dark:bg-primary-900`},kz={class:`text-xs text-primary-700 font-medium dark:text-primary-300`},Az={key:1,class:`flex flex-wrap items-center justify-between text-xs text-neutral-500`},jz={class:`flex items-center gap-3`},Mz={class:`flex items-center gap-1 text-nowrap`},Nz={class:`flex items-center gap-1 text-nowrap`},Pz={key:0,class:`text-nowrap`};var Fz=R({__name:`TimeSeriesChart`,props:{history:{},currentValue:{},threshold:{default:null},isActive:{type:Boolean},title:{default:`Time Series`},colorsHue:{},lineColor:{},thresholdColor:{},activeColor:{},inactiveColor:{},subtitle:{default:`Recent data`},activeLabel:{default:`Active`},activeLegendLabel:{default:`Active state`},inactiveLegendLabel:{default:`Inactive state`},thresholdLabel:{default:`Threshold`},height:{default:80},lineWidth:{default:1.5},chartHeight:{},minDataPoints:{default:5},precision:{default:0},unit:{default:`%`},showHeader:{type:Boolean,default:!0},showThreshold:{type:Boolean,default:!0},showArea:{type:Boolean,default:!0},showThresholdAreas:{type:Boolean,default:!0},showCurrentValue:{type:Boolean,default:!0},showActiveIndicator:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},formatValue:{}},setup(e){let t=e,n=U(()=>t.height),r=F(),i=la(pz,gz),a=vn(()=>t.colorsHue||i||gz),o=U(()=>iz(a.value)),s=fE(r,{windowResize:!0});Ba([a,r],()=>{r.value&&r.value.style.setProperty(`--chromatic-hue`,a.value.toString())},{immediate:!0});let c=vn(()=>t.lineColor),l=U(()=>c.value?c.value:o.value.shadeBy(500).toHex()),u=vn(()=>t.thresholdColor),d=U(()=>{if(!u.value){let e=o.value.shadeBy(500).withAlpha(.1).color;return`oklch(${e.l} ${e.c} ${e.h} / ${e.alpha})`}return u.value}),f=vn(()=>t.activeColor),p=U(()=>f.value?f.value:o.value.shadeBy(600).toHex()),m=vn(()=>t.inactiveColor),h=U(()=>m.value?m.value:o.value.shadeBy(400).toHex()),g=Math.random().toString(36).substring(2,9),_=`grid-${g}`,v=`area-gradient-${g}`,y=`threshold-gradient-${g}`,b=U(()=>t.threshold===null?0:Math.max(0,Math.min(1,t.threshold))),x=U(()=>t.threshold===null?0:n.value-b.value*n.value),S=U(()=>{let e=t.history;if(e.length<2)return``;let r=s.width.value,i=n.value,a=`M0,${i-e[0]*i}`;for(let t=1;t{let e=t.history;if(e.length<2)return``;let r=s.width.value,i=n.value,a=`M0,${i} L0,${i-e[0]*i}`;for(let t=1;te.history.length>e.minDataPoints?(z(),B(`div`,{key:0,ref_key:`timeSeriesChartRef`,ref:r,class:`time-series-chart space-y-3`},[e.showHeader?(z(),B(`div`,vz,[V(`div`,yz,Pe(e.title),1),V(`div`,bz,Pe(e.subtitle),1)])):Lo(``,!0),V(`div`,{class:`relative overflow-hidden border border-neutral-200 rounded-lg from-neutral-50 to-neutral-100 bg-gradient-to-b dark:border-neutral-800 dark:from-neutral-800 dark:to-neutral-900`,style:be({height:`${n.value}px`})},[(z(),B(`svg`,xz,[V(`defs`,null,[V(`pattern`,{id:_,width:`20`,height:`10`,patternUnits:`userSpaceOnUse`},[...t[0]||=[V(`path`,{d:`M 20 0 L 0 0 0 10`,fill:`none`,stroke:`rgb(156 163 175 / 0.1)`,"stroke-width":`0.5`},null,-1)]]),V(`linearGradient`,{id:v,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},[V(`stop`,{offset:`0%`,style:be(`stop-color:${l.value};stop-opacity:0.3`)},null,4),V(`stop`,{offset:`50%`,style:be(`stop-color:${l.value};stop-opacity:0.15`)},null,4),V(`stop`,{offset:`100%`,style:be(`stop-color:${l.value};stop-opacity:0.05`)},null,4)]),V(`linearGradient`,{id:y,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},[V(`stop`,{offset:`0%`,style:be(`stop-color:${p.value};stop-opacity:0.3`)},null,4),V(`stop`,{offset:`50%`,style:be(`stop-color:${p.value};stop-opacity:0.15`)},null,4),V(`stop`,{offset:`100%`,style:be(`stop-color:${p.value};stop-opacity:0.05`)},null,4)]),V(`linearGradient`,Sz,[V(`stop`,{offset:`0%`,style:be(`stop-color:${d.value};stop-opacity:0.2`)},null,4),V(`stop`,{offset:`50%`,style:be(`stop-color:${d.value};stop-opacity:0.1`)},null,4),V(`stop`,{offset:`100%`,style:be(`stop-color:${d.value};stop-opacity:0.05`)},null,4)])]),V(`rect`,{width:`100%`,height:`100%`,fill:`url(#${_})`},null,8,Cz),e.showThreshold&&e.threshold!==null?(z(),B(`rect`,{key:0,x:`0`,y:x.value,width:`100%`,height:n.value-x.value,fill:d.value,class:`transition-all duration-300`},null,8,wz)):Lo(``,!0),e.showThreshold&&e.threshold!==null?(z(),B(`line`,{key:1,x1:`0`,y1:x.value,x2:`100%`,y2:x.value,stroke:d.value,"stroke-width":`1.5`,"stroke-dasharray":`4,4`,fill:d.value,class:`transition-all duration-300`},null,8,Tz)):Lo(``,!0),C.value&&e.showArea?(z(),B(`path`,{key:2,d:C.value,fill:`url(#${v})`,class:`transition-all duration-75`},null,8,Ez)):Lo(``,!0),S.value?(z(),B(`path`,{key:3,d:S.value,fill:`none`,stroke:l.value,"stroke-width":e.lineWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`drop-shadow-sm transition-all duration-75`},null,8,Dz)):Lo(``,!0)])),e.showCurrentValue?(z(),B(`div`,{key:0,class:Te([`absolute right-2 top-2 border border-neutral-200 rounded-md bg-white px-2 py-1 shadow-sm transition-all duration-200 dark:border-neutral-700 dark:bg-neutral-800`,e.isActive?`bg-primary-50 dark:bg-primary-900 border-primary-200 dark:border-primary-800`:``])},[V(`div`,{class:Te([`text-xs font-medium`,e.isActive?`text-primary-700 dark:text-primary-300`:`text-neutral-600 dark:text-neutral-400`])},Pe(e.formatValue?e.formatValue(e.currentValue):`${(e.currentValue*100).toFixed(e.precision)}${e.unit}`),3)],2)):Lo(``,!0),H(Fs,{name:`fade`},{default:L(()=>[e.isActive&&e.showActiveIndicator?(z(),B(`div`,Oz,[t[1]||=V(`div`,{class:`h-1.5 w-1.5 animate-pulse rounded-full bg-primary-500`},null,-1),V(`span`,kz,Pe(e.activeLabel),1)])):Lo(``,!0)]),_:1})],4),e.showLegend?(z(),B(`div`,Az,[V(`div`,jz,[V(`span`,Mz,[V(`div`,{class:`h-2 w-2 rounded-full`,style:be({backgroundColor:p.value})},null,4),Fo(` `+Pe(e.activeLegendLabel),1)]),V(`span`,Nz,[V(`div`,{class:`h-2 w-2 rounded-full`,style:be({backgroundColor:h.value})},null,4),Fo(` `+Pe(e.inactiveLegendLabel),1)])]),e.threshold===null?Lo(``,!0):(z(),B(`span`,Pz,Pe(e.thresholdLabel)+`: `+Pe((e.threshold*100).toFixed(0))+`%`,1))])):Lo(``,!0)],512)):Lo(``,!0)}}),Iz=TM(Fz,[[`__scopeId`,`data-v-6b4f300d`]]),Lz=R({__name:`Callout`,props:{theme:{default:`primary`},label:{}},setup(e){let t=e,n={primary:{container:[`text-neutral-900/80 dark:text-neutral-100/80`,`bg-primary-50/80 dark:bg-primary-900/50 backdrop-blur-md`,`before:bg-primary-500/30 before:content-[''] before:dark:bg-primary-200/20`],label:[`text-primary-500 dark:text-primary-200 font-semibold`]},lime:{container:[`text-neutral-900/80 dark:text-neutral-100/80`,`bg-lime-50/80 dark:bg-lime-900/50 backdrop-blur-md`,`before:bg-lime-500/30 before:content-[''] before:dark:bg-lime-200/20`],label:[`text-lime-500 dark:text-lime-200 font-semibold`]},violet:{container:[`text-neutral-900/80 dark:text-neutral-100/80`,`bg-violet-50/80 dark:bg-violet-900/50 backdrop-blur-md`,`before:bg-violet-500/30 before:content-[''] before:dark:bg-violet-200/20`],label:[`text-violet-500 dark:text-violet-200 font-semibold`]},orange:{container:[`text-neutral-900/80 dark:text-neutral-100/80`,`bg-orange-100/60 dark:bg-orange-900/50 backdrop-blur-md`,`before:bg-orange-500/30 before:content-[''] before:dark:bg-orange-200/20`],label:[`text-orange-500 dark:text-orange-200 font-semibold`]}};return(e,r)=>(z(),B(`div`,{relative:``,flex:``,"flex-col":``,"gap-1":``,"rounded-lg":``,py:`2.5`,pl:`5`,"pr-3":``,class:Te([...n[t.theme||`violet`].container,`before-position-absolute before:left-2 before:right-0 before:h-[calc(100%-1rem)] before:top-50% before:translate-y--50% before:w-1 before:rounded-full`])},[V(`div`,{text:`font-semibold`,class:Te([...n[t.theme||`violet`].label||[]])},[ki(e.$slots,`label`,{},()=>[Fo(Pe(t.label||`Callout`),1)])],2),ki(e.$slots,`default`)],2))}}),Rz=Lz;const zz={relative:``},Bz={key:0,absolute:``,"left-0":``,"top-0":``,"translate-y":`[-80%]`},Vz={text:`neutral-300 dark:neutral-500`,"text-nowrap":``},Hz={"text-nowrap":``,"text-3xl":``,"font-normal":``};var Uz=R({__name:`PageHeader`,props:{title:{},subtitle:{},showBackButton:{type:Boolean,default:!0},disableBackButton:{type:Boolean,default:!1}},setup(e){let t=e,n=Gk(),r=Kk(),i=F(),a=F(t.title),o=F(t.subtitle),s=F(t.disableBackButton),{apply:c}=gO(i,{initial:{opacity:0,x:10,transition:{duration:250}},enter:{opacity:1,x:0,transition:{duration:250}},leave:{opacity:0,x:-5,transition:{duration:100}}});return di(async()=>{await c(`initial`),await c(`enter`)}),hi(async()=>{await c(`leave`),s.value=!0}),Ba([()=>t.title,()=>t.subtitle,r],async()=>{await c(`leave`),await Gn(),s.value=t.disableBackButton,a.value=t.title,o.value=t.subtitle,await Gn(),await c(`initial`),await c(`enter`)}),(e,t)=>(z(),B(`div`,{ref_key:`pageHeaderRef`,ref:i,style:{top:`env(safe-area-inset-top, 0px)`,right:`env(safe-area-inset-right, 0px)`,left:`env(safe-area-inset-left, 0px)`},sticky:``,"inset-x-0":``,"top-0":``,"z-99":``,"w-full":``,"pb-6":``,"pt-10":``,flex:`~ row items-center gap-2`,bg:`$bg-color`},[V(`button`,{onClick:t[0]||=e=>I(n).back()},[s.value?Lo(``,!0):(z(),B(`div`,{key:0,"i-solar:alt-arrow-left-line-duotone":``,"text-2xl":``,class:Te({"pointer-events-none op-0":!e.showBackButton})},null,2))]),V(`h1`,zz,[o.value?(z(),B(`div`,Bz,[V(`span`,Vz,Pe(o.value),1)])):Lo(``,!0),V(`div`,Hz,Pe(a.value),1)])],512))}}),Wz=Uz;const Gz=[`onClick`];var Kz=R({__name:`Section`,props:{title:{},icon:{},innerClass:{},expand:{type:Boolean,default:!0},size:{}},setup(e){return(e,t)=>(z(),Oo(kM,{default:e.expand},{trigger:L(t=>[V(`button`,{class:`w-full flex items-center justify-between rounded-lg px-3 py-2 outline-none transition-all duration-250 ease-in-out sm:px-4 sm:py-3`,text:`neutral-600 dark:neutral-400 sm sm:base`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,onClick:e=>t.setVisible(!t.visible)},[V(`div`,{flex:``,"items-center":``,"gap-1.5":``,class:Te([e.size===`sm`?`text-xs 2xl:text-sm`:``])},[V(`div`,{class:Te([e.icon,e.size===`sm`?`size-4`:`size-6`])},null,2),Fo(` `+Pe(e.title),1)],2),V(`div`,{"i-solar:alt-arrow-down-linear":``,transition:`transform duration-250`,class:Te({"rotate-180":t.visible})},null,2)],8,Gz)]),default:L(()=>[V(`div`,{grid:``,"gap-2":``,class:Te([e.innerClass,e.size===`sm`?`p-2`:`p-4`])},[ki(e.$slots,`default`)],2)]),_:3},8,[`default`]))}}),qz=Kz;const Jz={class:`flex select-none items-center gap-1`,role:`tablist`},Yz=[`aria-selected`,`disabled`,`onClick`],Xz={class:`whitespace-nowrap`},Zz={class:`mt-2`};var Qz=R({__name:`Tabs`,props:{modelValue:{},tabs:{},theme:{default:`primary`},size:{default:`sm`},label:{}},emits:[`update:modelValue`,`change`],setup(e,{emit:t}){let n=e,r=t,i={tabActive:[`bg-white shadow-sm font-bold text-primary-600 dark:text-primary-400 text-xs`,`ring-2 ring-primary-500`,`dark:bg-neutral-700`,`ring-1 ring-black/5 dark:ring-white/10`],tabIdle:[`text-neutral-600 hover:bg-white/70`,`dark:text-neutral-300 dark:hover:bg-white/10`,`text-xs`]},a={primary:{container:[`bg-primary-50/60 dark:bg-primary-900/25 backdrop-blur-md`,`text-neutral-700/80 dark:text-neutral-300/80`],label:[`text-primary-500 dark:text-primary-400 font-semibold`],...i},violet:{container:[`bg-violet-50/60 dark:bg-violet-900/25 backdrop-blur-md`,`text-neutral-700/80 dark:text-neutral-300/80`],label:[`text-violet-500 dark:text-violet-400 font-semibold`],...i},lime:{container:[`bg-lime-50/60 dark:bg-lime-900/25 backdrop-blur-md`,`text-neutral-700/80 dark:text-neutral-300/80`],label:[`text-lime-500 dark:text-lime-400 font-semibold`],...i},orange:{container:[`bg-orange-50/70 dark:bg-orange-900/25 backdrop-blur-md`,`text-neutral-700/80 dark:text-neutral-300/80`],label:[`text-orange-500 dark:text-orange-400 font-semibold`],...i}},o=U(()=>({xs:`px-2 py-1 text-xs`,sm:`px-3 py-1.5 text-sm`,md:`px-4 py-2 text-sm`})[n.size]);function s(e,t){t||e!==n.modelValue&&(r(`update:modelValue`,e),r(`change`,e))}return(e,t)=>(z(),B(`div`,{class:Te([`relative overflow-hidden rounded-lg p-2`,a[e.theme].container])},[e.label?(z(),B(`div`,{key:0,class:Te([`mb-1 text-sm`,a[e.theme].label])},Pe(e.label),3)):Lo(``,!0),V(`div`,Jz,[(z(!0),B(vo,null,Di(e.tabs,t=>(z(),B(`button`,{key:t.value,type:`button`,role:`tab`,"aria-selected":e.modelValue===t.value,disabled:t.disabled,class:Te([`inline-flex items-center gap-1 rounded-md transition-all`,o.value,t.disabled?`opacity-40 cursor-not-allowed`:``,e.modelValue===t.value?a[e.theme].tabActive:a[e.theme].tabIdle,`focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-primary-200 focus-visible:outline-offset-2`]),onClick:e=>s(t.value,t.disabled)},[t.icon?(z(),B(`span`,{key:0,class:Te([typeof t.icon==`string`?t.icon:t.value===e.modelValue?t.icon.active:t.icon.idle,`text-base`])},null,2)):Lo(``,!0),V(`span`,Xz,Pe(t.label),1)],10,Yz))),128))]),V(`div`,Zz,[ki(e.$slots,`default`,{active:e.modelValue})])],2))}}),$z=Qz,eB=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function tB(e){return nB(e)}function nB(e){return Array.isArray(e)?rB(e):e instanceof RegExp?e:typeof e==`object`?iB(e):e}function rB(e){let t=[];for(let n=0,r=e.length;n{for(let n in t)e[n]=t[n]}),e}function oB(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?oB(e.substring(0,e.length-1)):e.substr(~t+1)}var sB=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,cB=class{static hasCaptures(e){return e===null?!1:(sB.lastIndex=0,sB.test(e))}static replaceCaptures(e,t,n){return e.replace(sB,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function lB(e,t){return et?1:0}function uB(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;rthis._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t),r=n.find(t=>gB(e.parent,t.parentScopes));return r?new vB(r.fontStyle,r.foreground,r.background):null}},hB=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!_B(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function _B(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var vB=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function yB(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e1&&(d=l.slice(0,l.length-1),d.reverse()),n[r++]=new bB(u,d,e,o,s,c)}}return n}var bB=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},xB=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(xB||{});function SB(e,t){e.sort((e,t)=>{let n=lB(e.scope,t.scope);return n!==0||(n=uB(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new CB(t),o=new vB(n,a.getId(r),a.getId(i)),s=new EB(new TB(0,null,-1,0,0),[]);for(let t=0,n=e.length;te?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},EB=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),TB.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=kB(r)),i!==null&&(u=i?1:0),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function OB(e){return e}function kB(e){return e}function AB(e,t){let n=[],r=MB(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(jB(i)){let e=[];do e.push(i),i=r.next();while(jB(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function jB(e){return!!e&&!!e.match(/[\w\.:]+/)}function MB(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function NB(e){typeof e.dispose==`function`&&e.dispose()}var PB=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},FB=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},IB=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},LB=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new PB(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new IB;for(let n of e)RB(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof PB){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function RB(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof PB?BB({baseGrammar:a,selfGrammar:i},r):zB(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new PB(e))}function zB(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];VB([r],t,n)}}function BB(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&VB(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&VB(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function VB(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?aB({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&VB(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=qB(i);switch(a.kind){case 0:BB({...t,selfGrammar:t.baseGrammar},n);break;case 1:BB(t,n);break;case 2:zB(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?zB(a.ruleName,i,n):BB(i,n)}else a.kind===4?n.add(new FB(a.scopeName,a.ruleName)):n.add(new PB(a.scopeName));break}}}var HB=class{kind=0},UB=class{kind=1},WB=class{constructor(e){this.ruleName=e}kind=2},GB=class{constructor(e){this.scopeName=e}kind=3},KB=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function qB(e){if(e===`$base`)return new HB;if(e===`$self`)return new UB;let t=e.indexOf(`#`);if(t===-1)return new GB(e);if(t===0)return new WB(e.substring(1));{let n=e.substring(0,t),r=e.substring(t+1);return new KB(n,r)}}var JB=/\\(\d+)/,YB=/\\(\d+)/g,XB=-1,ZB=-2;function QB(e){return e}function $B(e){return e}var eV=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=cB.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=cB.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${oB(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:cB.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:cB.replaceCaptures(this._contentName,e,t)}},tV=class extends eV{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},nV=class extends eV{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new sV(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new cV,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rV=class extends eV{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns){let r=e.getRule(n);r.collectPatterns(e,t)}}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new cV,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},iV=class extends eV{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new sV(i,this.id),this.beginCaptures=a,this._end=new sV(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new cV;for(let t of this.patterns){let n=e.getRule(t);n.collectPatterns(e,this._cachedCompiledPatterns)}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},aV=class extends eV{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new sV(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new sV(o,ZB),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new cV;for(let t of this.patterns){let n=e.getRule(t);n.collectPatterns(e,this._cachedCompiledPatterns)}}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new cV,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},oV=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new tV(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new nV(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=aB({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new rV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new aV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new iV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;ae.substring(t.start,t.end));return YB.lastIndex=0,this.source.replace(YB,(e,t)=>fB(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;ie.source);this._cached=new lV(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(e=>e.resolveAnchors(t,n));return new lV(e,r,this._items.map(e=>e.ruleId))}},lV=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t{let t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new uV(t,n)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},fV=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>fB(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var pV=!1,mV=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function hV(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=gV(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0){let e=Date.now()-d;if(e>s)return new mV(i,!0)}f()}return new mV(i,!1);function f(){let o=_V(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===XB){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),CV(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof iV){let r=o;CV(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof aV){let r=o;CV(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else{let r=o;if(CV(e,t,n,i,a,r.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}}s[0].end>r&&(r=s[0].end,n=!1)}}function gV(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof aV&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=xV(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){let s=u.ruleId;if(s!==ZB){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),CV(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function _V(e,t,n,r,i,a){let o=vV(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=yV(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u=s)&&(s=_,c=g.captureIndices,l=g.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function bV(e,t,n,r,i){if(pV){let a=e.compile(t,n),o=SV(r,i);return{ruleScanner:a,findOptions:o}}let a=e.compileAG(t,n,r,i);return{ruleScanner:a,findOptions:0}}function xV(e,t,n,r,i){if(pV){let a=e.compileWhile(t,n),o=SV(r,i);return{ruleScanner:a,findOptions:o}}let a=e.compileWhileAG(t,n,r,i);return{ruleScanner:a,findOptions:0}}function SV(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function CV(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;tu)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));hV(e,p,n&&d.start===0,d.start,f,i,!1,0),NB(p);continue}let f=c.getName(s,o);if(f!==null){let t=l.length>0?l[l.length-1].scopes:r.contentNameScopesList,n=t.pushAttributed(f,e);l.push(new wV(n,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var wV=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function TV(e,t,n,r,i,a,o,s){return new kV(e,t,n,r,i,a,o,s)}function EV(e,t,n,r,i){let a=AB(t,DV),o=oV.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function DV(e,t){if(t.length{for(let r=n;rn&&e.substr(0,n)===t&&e[n]===`.`}var kV=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new dV(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=AV(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=AB(e,DV);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)EV(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&EV(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(QB(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[$B(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=AV(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=oV.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===MV.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=DB.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?jV.createRootAndLookUpScopeName(a,r,this):jV.createRoot(`unknown`,r),t=new MV(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=` -`;let a=this.createOnigString(e),o=a.content.length,s=new PV(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=hV(this,a,i,0,t,s,!0,r);return NB(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function AV(e,t){return e=tB(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var jV=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=hB.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new hB(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new hB(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),DB.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},MV=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?jV.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:$B(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=jV.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,QB(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,jV.fromExtension(r,n.contentNameScopesList))}},NV=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):AB(e,DV).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>AB(e,DV).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},PV=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=DB.set(n,0,OB(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=DB.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},LV=MV.NULL;const RV=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`];var zV=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};zV.prototype.normal={},zV.prototype.property={},zV.prototype.space=void 0;function BV(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new zV(n,r,t)}function VV(e){return e.toLowerCase()}var HV=class{constructor(e,t){this.attribute=t,this.property=e}};HV.prototype.attribute=``,HV.prototype.booleanish=!1,HV.prototype.boolean=!1,HV.prototype.commaOrSpaceSeparated=!1,HV.prototype.commaSeparated=!1,HV.prototype.defined=!1,HV.prototype.mustUseProperty=!1,HV.prototype.number=!1,HV.prototype.overloadedBoolean=!1,HV.prototype.property=``,HV.prototype.spaceSeparated=!1,HV.prototype.space=void 0;var UV={};c(UV,{boolean:()=>GV,booleanish:()=>KV,commaOrSpaceSeparated:()=>ZV,commaSeparated:()=>XV,number:()=>JV,overloadedBoolean:()=>qV,spaceSeparated:()=>YV});let WV=0;const GV=QV(),KV=QV(),qV=QV(),JV=QV(),YV=QV(),XV=QV(),ZV=QV();function QV(){return 2**++WV}const $V=Object.keys(UV);var eH=class extends HV{constructor(e,t,n,r){let i=-1;if(super(e,t),tH(this,`space`,r),typeof n==`number`)for(;++i<$V.length;){let e=$V[i];tH(this,$V[i],(n&UV[e])===UV[e])}}};eH.prototype.defined=!0;function tH(e,t,n){n&&(e[t]=n)}function nH(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new eH(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[VV(r)]=r,n[VV(a.attribute)]=r}return new zV(t,n,e.space)}const rH=nH({properties:{ariaActiveDescendant:null,ariaAtomic:KV,ariaAutoComplete:null,ariaBusy:KV,ariaChecked:KV,ariaColCount:JV,ariaColIndex:JV,ariaColSpan:JV,ariaControls:YV,ariaCurrent:null,ariaDescribedBy:YV,ariaDetails:null,ariaDisabled:KV,ariaDropEffect:YV,ariaErrorMessage:null,ariaExpanded:KV,ariaFlowTo:YV,ariaGrabbed:KV,ariaHasPopup:null,ariaHidden:KV,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:YV,ariaLevel:JV,ariaLive:null,ariaModal:KV,ariaMultiLine:KV,ariaMultiSelectable:KV,ariaOrientation:null,ariaOwns:YV,ariaPlaceholder:null,ariaPosInSet:JV,ariaPressed:KV,ariaReadOnly:KV,ariaRelevant:null,ariaRequired:KV,ariaRoleDescription:YV,ariaRowCount:JV,ariaRowIndex:JV,ariaRowSpan:JV,ariaSelected:KV,ariaSetSize:JV,ariaSort:null,ariaValueMax:JV,ariaValueMin:JV,ariaValueNow:JV,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function iH(e,t){return t in e?e[t]:t}function aH(e,t){return iH(e,t.toLowerCase())}const oH=nH({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:XV,acceptCharset:YV,accessKey:YV,action:null,allow:null,allowFullScreen:GV,allowPaymentRequest:GV,allowUserMedia:GV,alt:null,as:null,async:GV,autoCapitalize:null,autoComplete:YV,autoFocus:GV,autoPlay:GV,blocking:YV,capture:null,charSet:null,checked:GV,cite:null,className:YV,cols:JV,colSpan:null,content:null,contentEditable:KV,controls:GV,controlsList:YV,coords:JV|XV,crossOrigin:null,data:null,dateTime:null,decoding:null,default:GV,defer:GV,dir:null,dirName:null,disabled:GV,download:qV,draggable:KV,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:GV,formTarget:null,headers:YV,height:JV,hidden:qV,high:JV,href:null,hrefLang:null,htmlFor:YV,httpEquiv:YV,id:null,imageSizes:null,imageSrcSet:null,inert:GV,inputMode:null,integrity:null,is:null,isMap:GV,itemId:null,itemProp:YV,itemRef:YV,itemScope:GV,itemType:YV,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:GV,low:JV,manifest:null,max:null,maxLength:JV,media:null,method:null,min:null,minLength:JV,multiple:GV,muted:GV,name:null,nonce:null,noModule:GV,noValidate:GV,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:GV,optimum:JV,pattern:null,ping:YV,placeholder:null,playsInline:GV,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:GV,referrerPolicy:null,rel:YV,required:GV,reversed:GV,rows:JV,rowSpan:JV,sandbox:YV,scope:null,scoped:GV,seamless:GV,selected:GV,shadowRootClonable:GV,shadowRootDelegatesFocus:GV,shadowRootMode:null,shape:null,size:JV,sizes:null,slot:null,span:JV,spellCheck:KV,src:null,srcDoc:null,srcLang:null,srcSet:null,start:JV,step:null,style:null,tabIndex:JV,target:null,title:null,translate:null,type:null,typeMustMatch:GV,useMap:null,value:KV,width:JV,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:YV,axis:null,background:null,bgColor:null,border:JV,borderColor:null,bottomMargin:JV,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:GV,declare:GV,event:null,face:null,frame:null,frameBorder:null,hSpace:JV,leftMargin:JV,link:null,longDesc:null,lowSrc:null,marginHeight:JV,marginWidth:JV,noResize:GV,noHref:GV,noShade:GV,noWrap:GV,object:null,profile:null,prompt:null,rev:null,rightMargin:JV,rules:null,scheme:null,scrolling:KV,standby:null,summary:null,text:null,topMargin:JV,valueType:null,version:null,vAlign:null,vLink:null,vSpace:JV,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:GV,disableRemotePlayback:GV,prefix:null,property:null,results:JV,security:null,unselectable:null},space:`html`,transform:aH}),sH=nH({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:ZV,accentHeight:JV,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:JV,amplitude:JV,arabicForm:null,ascent:JV,attributeName:null,attributeType:null,azimuth:JV,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:JV,by:null,calcMode:null,capHeight:JV,className:YV,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:JV,diffuseConstant:JV,direction:null,display:null,dur:null,divisor:JV,dominantBaseline:null,download:GV,dx:null,dy:null,edgeMode:null,editable:null,elevation:JV,enableBackground:null,end:null,event:null,exponent:JV,externalResourcesRequired:null,fill:null,fillOpacity:JV,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:XV,g2:XV,glyphName:XV,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:JV,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:JV,horizOriginX:JV,horizOriginY:JV,id:null,ideographic:JV,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:JV,k:JV,k1:JV,k2:JV,k3:JV,k4:JV,kernelMatrix:ZV,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:JV,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:JV,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:JV,overlineThickness:JV,paintOrder:null,panose1:null,path:null,pathLength:JV,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:YV,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:JV,pointsAtY:JV,pointsAtZ:JV,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ZV,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ZV,rev:ZV,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ZV,requiredFeatures:ZV,requiredFonts:ZV,requiredFormats:ZV,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:JV,specularExponent:JV,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:JV,strikethroughThickness:JV,string:null,stroke:null,strokeDashArray:ZV,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:JV,strokeOpacity:JV,strokeWidth:null,style:null,surfaceScale:JV,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ZV,tabIndex:JV,tableValues:null,target:null,targetX:JV,targetY:JV,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ZV,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:JV,underlineThickness:JV,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:JV,values:null,vAlphabetic:JV,vMathematical:JV,vectorEffect:null,vHanging:JV,vIdeographic:JV,version:null,vertAdvY:JV,vertOriginX:JV,vertOriginY:JV,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:JV,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:iH}),cH=nH({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),lH=nH({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:aH}),uH=nH({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),dH=/[A-Z]/g,fH=/-[a-z]/g,pH=/^data[-\w.:]+$/i;function mH(e,t){let n=VV(t),r=t,i=HV;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&pH.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(fH,gH);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!fH.test(e)){let n=e.replace(dH,hH);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=eH}return new i(r,t)}function hH(e){return`-`+e.toLowerCase()}function gH(e){return e.charAt(1).toUpperCase()}const _H=BV([rH,oH,cH,lH,uH],`html`),vH=BV([rH,sH,cH,lH,uH],`svg`),yH={}.hasOwnProperty;function bH(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&yH.call(t,e)){let n=String(t[e]);i=yH.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const xH=/["&'<>`]/g,SH=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,CH=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,wH=/[|\\{}()[\]^$+*?.]/g,TH=new WeakMap;function EH(e,t){if(e=e.replace(t.subset?DH(t.subset):xH,r),t.subset||t.escapeOnly)return e;return e.replace(SH,n).replace(CH,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function DH(e){let t=TH.get(e);return t||(t=OH(e),TH.set(e,t)),t}function OH(e){let t=[],n=-1;for(;++n`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},FH=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],IH={}.hasOwnProperty,LH={};let RH;for(RH in PH)IH.call(PH,RH)&&(LH[PH[RH]]=RH);const zH=/[^\dA-Za-z]/;function BH(e,t,n,r){let i=String.fromCharCode(e);if(IH.call(LH,i)){let e=LH[i],a=`&`+e;return n&&NH.includes(e)&&!FH.includes(e)&&(!r||t&&t!==61&&zH.test(String.fromCharCode(t)))?a:a+`;`}return``}function VH(e,t,n){let r=AH(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=BH(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=MH(e,t,n.omitOptionalSemicolons);i.length|^->||--!>|`],qH=[`<`,`>`];function JH(e,t,n,r){return r.settings.bogusComments?``:``;function i(e){return UH(e,Object.assign({},r.settings.characterReferences,{subset:qH}))}}function YH(e,t,n,r){return``}function XH(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ZH(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function QH(e,t){let n=t||{},r=e[e.length-1]===``?[...e,``]:e;return r.join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function $H(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function eU(e){return e.join(` `).trim()}const tU=/[ \t\n\f\r]/g;function nU(e){return typeof e==`object`?e.type===`text`?rU(e.value):!1:rU(e)}function rU(e){return e.replace(tU,``)===``}const iU=sU(1),aU=sU(-1),oU=[];function sU(e){return t;function t(t,n,r){let i=t?t.children:oU,a=(n||0)+e,o=i[a];if(!r)for(;o&&nU(o);)a+=e,o=i[a];return o}}const cU={}.hasOwnProperty;function lU(e){return t;function t(t,n,r){return cU.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const uU=lU({body:pU,caption:dU,colgroup:dU,dd:_U,dt:gU,head:dU,html:fU,li:hU,optgroup:yU,option:bU,p:mU,rp:vU,rt:vU,tbody:SU,td:TU,tfoot:CU,th:TU,thead:xU,tr:wU});function dU(e,t,n){let r=iU(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&nU(r.value.charAt(0)))}function fU(e,t,n){let r=iU(n,t);return!r||r.type!==`comment`}function pU(e,t,n){let r=iU(n,t);return!r||r.type!==`comment`}function mU(e,t,n){let r=iU(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function hU(e,t,n){let r=iU(n,t);return!r||r.type===`element`&&r.tagName===`li`}function gU(e,t,n){let r=iU(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function _U(e,t,n){let r=iU(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function vU(e,t,n){let r=iU(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function yU(e,t,n){let r=iU(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function bU(e,t,n){let r=iU(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function xU(e,t,n){let r=iU(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function SU(e,t,n){let r=iU(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function CU(e,t,n){return!iU(n,t)}function wU(e,t,n){let r=iU(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function TU(e,t,n){let r=iU(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}const EU=lU({body:kU,colgroup:AU,head:OU,html:DU,tbody:jU});function DU(e){let t=iU(e,-1);return!t||t.type!==`comment`}function OU(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function kU(e){let t=iU(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&nU(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function AU(e,t,n){let r=aU(n,t),i=iU(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&uU(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function jU(e,t,n){let r=aU(n,t),i=iU(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&uU(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}const MU={name:[[` +`)}}var XR=YR;const ZR=220.44,QR=`<|llm_inference_end|>`,$R={key:0,class:`flex items-center justify-between`},ez={class:`text-sm font-medium`},tz={class:`text-xs text-neutral-500`},nz={class:`h-full w-full`},rz={id:`below-threshold-gradient`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},iz=[`fill`],az=[`y`,`height`,`fill`],oz=[`y1`,`y2`,`stroke`,`fill`],sz=[`d`,`fill`],cz=[`d`,`stroke`,`stroke-width`],lz={key:0,class:`absolute left-2 top-2 flex items-center gap-1.5 border border-primary-200 rounded-md bg-primary-50 px-2 py-1 dark:border-primary-800 dark:bg-primary-900`},uz={class:`text-xs text-primary-700 font-medium dark:text-primary-300`},dz={key:1,class:`flex flex-wrap items-center justify-between text-xs text-neutral-500`},fz={class:`flex items-center gap-3`},pz={class:`flex items-center gap-1 text-nowrap`},mz={class:`flex items-center gap-1 text-nowrap`},hz={key:0,class:`text-nowrap`};var gz=R({__name:`TimeSeriesChart`,props:{history:{},currentValue:{},threshold:{default:null},isActive:{type:Boolean},title:{default:`Time Series`},colorsHue:{},lineColor:{},thresholdColor:{},activeColor:{},inactiveColor:{},subtitle:{default:`Recent data`},activeLabel:{default:`Active`},activeLegendLabel:{default:`Active state`},inactiveLegendLabel:{default:`Inactive state`},thresholdLabel:{default:`Threshold`},height:{default:80},lineWidth:{default:1.5},chartHeight:{},minDataPoints:{default:5},precision:{default:0},unit:{default:`%`},showHeader:{type:Boolean,default:!0},showThreshold:{type:Boolean,default:!0},showArea:{type:Boolean,default:!0},showThresholdAreas:{type:Boolean,default:!0},showCurrentValue:{type:Boolean,default:!0},showActiveIndicator:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},formatValue:{}},setup(e){let t=e,n=U(()=>t.height),r=F(),i=da(JR,ZR),a=vn(()=>t.colorsHue||i||ZR),o=U(()=>zR(a.value)),s=uE(r,{windowResize:!0});Ha([a,r],()=>{r.value&&r.value.style.setProperty(`--chromatic-hue`,a.value.toString())},{immediate:!0});let c=vn(()=>t.lineColor),l=U(()=>c.value?c.value:o.value.shadeBy(500).toHex()),u=vn(()=>t.thresholdColor),d=U(()=>{if(!u.value){let e=o.value.shadeBy(500).withAlpha(.1).color;return`oklch(${e.l} ${e.c} ${e.h} / ${e.alpha})`}return u.value}),f=vn(()=>t.activeColor),p=U(()=>f.value?f.value:o.value.shadeBy(600).toHex()),m=vn(()=>t.inactiveColor),h=U(()=>m.value?m.value:o.value.shadeBy(400).toHex()),g=Math.random().toString(36).substring(2,9),_=`grid-${g}`,v=`area-gradient-${g}`,y=`threshold-gradient-${g}`,b=U(()=>t.threshold===null?0:Math.max(0,Math.min(1,t.threshold))),x=U(()=>t.threshold===null?0:n.value-b.value*n.value),S=U(()=>{let e=t.history;if(e.length<2)return``;let r=s.width.value,i=n.value,a=`M0,${i-e[0]*i}`;for(let t=1;t{let e=t.history;if(e.length<2)return``;let r=s.width.value,i=n.value,a=`M0,${i} L0,${i-e[0]*i}`;for(let t=1;te.history.length>e.minDataPoints?(z(),B(`div`,{key:0,ref_key:`timeSeriesChartRef`,ref:r,class:`time-series-chart space-y-3`},[e.showHeader?(z(),B(`div`,$R,[V(`div`,ez,Pe(e.title),1),V(`div`,tz,Pe(e.subtitle),1)])):zo(``,!0),V(`div`,{class:`relative overflow-hidden border border-neutral-200 rounded-lg from-neutral-50 to-neutral-100 bg-gradient-to-b dark:border-neutral-800 dark:from-neutral-800 dark:to-neutral-900`,style:be({height:`${n.value}px`})},[(z(),B(`svg`,nz,[V(`defs`,null,[V(`pattern`,{id:_,width:`20`,height:`10`,patternUnits:`userSpaceOnUse`},[...t[0]||=[V(`path`,{d:`M 20 0 L 0 0 0 10`,fill:`none`,stroke:`rgb(156 163 175 / 0.1)`,"stroke-width":`0.5`},null,-1)]]),V(`linearGradient`,{id:v,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},[V(`stop`,{offset:`0%`,style:be(`stop-color:${l.value};stop-opacity:0.3`)},null,4),V(`stop`,{offset:`50%`,style:be(`stop-color:${l.value};stop-opacity:0.15`)},null,4),V(`stop`,{offset:`100%`,style:be(`stop-color:${l.value};stop-opacity:0.05`)},null,4)]),V(`linearGradient`,{id:y,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},[V(`stop`,{offset:`0%`,style:be(`stop-color:${p.value};stop-opacity:0.3`)},null,4),V(`stop`,{offset:`50%`,style:be(`stop-color:${p.value};stop-opacity:0.15`)},null,4),V(`stop`,{offset:`100%`,style:be(`stop-color:${p.value};stop-opacity:0.05`)},null,4)]),V(`linearGradient`,rz,[V(`stop`,{offset:`0%`,style:be(`stop-color:${d.value};stop-opacity:0.2`)},null,4),V(`stop`,{offset:`50%`,style:be(`stop-color:${d.value};stop-opacity:0.1`)},null,4),V(`stop`,{offset:`100%`,style:be(`stop-color:${d.value};stop-opacity:0.05`)},null,4)])]),V(`rect`,{width:`100%`,height:`100%`,fill:`url(#${_})`},null,8,iz),e.showThreshold&&e.threshold!==null?(z(),B(`rect`,{key:0,x:`0`,y:x.value,width:`100%`,height:n.value-x.value,fill:d.value,class:`transition-all duration-300`},null,8,az)):zo(``,!0),e.showThreshold&&e.threshold!==null?(z(),B(`line`,{key:1,x1:`0`,y1:x.value,x2:`100%`,y2:x.value,stroke:d.value,"stroke-width":`1.5`,"stroke-dasharray":`4,4`,fill:d.value,class:`transition-all duration-300`},null,8,oz)):zo(``,!0),C.value&&e.showArea?(z(),B(`path`,{key:2,d:C.value,fill:`url(#${v})`,class:`transition-all duration-75`},null,8,sz)):zo(``,!0),S.value?(z(),B(`path`,{key:3,d:S.value,fill:`none`,stroke:l.value,"stroke-width":e.lineWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`drop-shadow-sm transition-all duration-75`},null,8,cz)):zo(``,!0)])),e.showCurrentValue?(z(),B(`div`,{key:0,class:Te([`absolute right-2 top-2 border border-neutral-200 rounded-md bg-white px-2 py-1 shadow-sm transition-all duration-200 dark:border-neutral-700 dark:bg-neutral-800`,e.isActive?`bg-primary-50 dark:bg-primary-900 border-primary-200 dark:border-primary-800`:``])},[V(`div`,{class:Te([`text-xs font-medium`,e.isActive?`text-primary-700 dark:text-primary-300`:`text-neutral-600 dark:text-neutral-400`])},Pe(e.formatValue?e.formatValue(e.currentValue):`${(e.currentValue*100).toFixed(e.precision)}${e.unit}`),3)],2)):zo(``,!0),H(Fs,{name:`fade`},{default:L(()=>[e.isActive&&e.showActiveIndicator?(z(),B(`div`,lz,[t[1]||=V(`div`,{class:`h-1.5 w-1.5 animate-pulse rounded-full bg-primary-500`},null,-1),V(`span`,uz,Pe(e.activeLabel),1)])):zo(``,!0)]),_:1})],4),e.showLegend?(z(),B(`div`,dz,[V(`div`,fz,[V(`span`,pz,[V(`div`,{class:`h-2 w-2 rounded-full`,style:be({backgroundColor:p.value})},null,4),Lo(` `+Pe(e.activeLegendLabel),1)]),V(`span`,mz,[V(`div`,{class:`h-2 w-2 rounded-full`,style:be({backgroundColor:h.value})},null,4),Lo(` `+Pe(e.inactiveLegendLabel),1)])]),e.threshold===null?zo(``,!0):(z(),B(`span`,hz,Pe(e.thresholdLabel)+`: `+Pe((e.threshold*100).toFixed(0))+`%`,1))])):zo(``,!0)],512)):zo(``,!0)}}),_z=CM(gz,[[`__scopeId`,`data-v-6b4f300d`]]),vz=R({__name:`Callout`,props:{theme:{default:`primary`},label:{}},setup(e){let t=e,n={primary:{container:[`text-neutral-900/80 dark:text-neutral-100/80`,`bg-primary-50/80 dark:bg-primary-900/50 backdrop-blur-md`,`before:bg-primary-500/30 before:content-[''] before:dark:bg-primary-200/20`],label:[`text-primary-500 dark:text-primary-200 font-semibold`]},lime:{container:[`text-neutral-900/80 dark:text-neutral-100/80`,`bg-lime-50/80 dark:bg-lime-900/50 backdrop-blur-md`,`before:bg-lime-500/30 before:content-[''] before:dark:bg-lime-200/20`],label:[`text-lime-500 dark:text-lime-200 font-semibold`]},violet:{container:[`text-neutral-900/80 dark:text-neutral-100/80`,`bg-violet-50/80 dark:bg-violet-900/50 backdrop-blur-md`,`before:bg-violet-500/30 before:content-[''] before:dark:bg-violet-200/20`],label:[`text-violet-500 dark:text-violet-200 font-semibold`]},orange:{container:[`text-neutral-900/80 dark:text-neutral-100/80`,`bg-orange-100/60 dark:bg-orange-900/50 backdrop-blur-md`,`before:bg-orange-500/30 before:content-[''] before:dark:bg-orange-200/20`],label:[`text-orange-500 dark:text-orange-200 font-semibold`]}};return(e,r)=>(z(),B(`div`,{relative:``,flex:``,"flex-col":``,"gap-1":``,"rounded-lg":``,py:`2.5`,pl:`5`,"pr-3":``,class:Te([...n[t.theme||`violet`].container,`before-position-absolute before:left-2 before:right-0 before:h-[calc(100%-1rem)] before:top-50% before:translate-y--50% before:w-1 before:rounded-full`])},[V(`div`,{text:`font-semibold`,class:Te([...n[t.theme||`violet`].label||[]])},[Ai(e.$slots,`label`,{},()=>[Lo(Pe(t.label||`Callout`),1)])],2),Ai(e.$slots,`default`)],2))}}),yz=vz;const bz={relative:``},xz={key:0,absolute:``,"left-0":``,"top-0":``,"translate-y":`[-80%]`},Sz={text:`neutral-300 dark:neutral-500`,"text-nowrap":``},Cz={"text-nowrap":``,"text-3xl":``,"font-normal":``};var wz=R({__name:`PageHeader`,props:{title:{},subtitle:{},showBackButton:{type:Boolean,default:!0},disableBackButton:{type:Boolean,default:!1}},setup(e){let t=e,n=Uk(),r=Wk(),i=F(),a=F(t.title),o=F(t.subtitle),s=F(t.disableBackButton),{apply:c}=mO(i,{initial:{opacity:0,x:10,transition:{duration:250}},enter:{opacity:1,x:0,transition:{duration:250}},leave:{opacity:0,x:-5,transition:{duration:100}}});return fi(async()=>{await c(`initial`),await c(`enter`)}),gi(async()=>{await c(`leave`),s.value=!0}),Ha([()=>t.title,()=>t.subtitle,r],async()=>{await c(`leave`),await Gn(),s.value=t.disableBackButton,a.value=t.title,o.value=t.subtitle,await Gn(),await c(`initial`),await c(`enter`)}),(e,t)=>(z(),B(`div`,{ref_key:`pageHeaderRef`,ref:i,style:{top:`env(safe-area-inset-top, 0px)`,right:`env(safe-area-inset-right, 0px)`,left:`env(safe-area-inset-left, 0px)`},sticky:``,"inset-x-0":``,"top-0":``,"z-99":``,"w-full":``,"pb-6":``,"pt-10":``,flex:`~ row items-center gap-2`,bg:`$bg-color`},[V(`button`,{onClick:t[0]||=e=>I(n).back()},[s.value?zo(``,!0):(z(),B(`div`,{key:0,"i-solar:alt-arrow-left-line-duotone":``,"text-2xl":``,class:Te({"pointer-events-none op-0":!e.showBackButton})},null,2))]),V(`h1`,bz,[o.value?(z(),B(`div`,xz,[V(`span`,Sz,Pe(o.value),1)])):zo(``,!0),V(`div`,Cz,Pe(a.value),1)])],512))}}),Tz=wz;const Ez=[`onClick`];var Dz=R({__name:`Section`,props:{title:{},icon:{},innerClass:{},expand:{type:Boolean,default:!0},size:{}},setup(e){return(e,t)=>(z(),Ao(DM,{default:e.expand},{trigger:L(t=>[V(`button`,{class:`w-full flex items-center justify-between rounded-lg px-3 py-2 outline-none transition-all duration-250 ease-in-out sm:px-4 sm:py-3`,text:`neutral-600 dark:neutral-400 sm sm:base`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,onClick:e=>t.setVisible(!t.visible)},[V(`div`,{flex:``,"items-center":``,"gap-1.5":``,class:Te([e.size===`sm`?`text-xs 2xl:text-sm`:``])},[V(`div`,{class:Te([e.icon,e.size===`sm`?`size-4`:`size-6`])},null,2),Lo(` `+Pe(e.title),1)],2),V(`div`,{"i-solar:alt-arrow-down-linear":``,transition:`transform duration-250`,class:Te({"rotate-180":t.visible})},null,2)],8,Ez)]),default:L(()=>[V(`div`,{grid:``,"gap-2":``,class:Te([e.innerClass,e.size===`sm`?`p-2`:`p-4`])},[Ai(e.$slots,`default`)],2)]),_:3},8,[`default`]))}}),Oz=Dz;const kz={class:`flex select-none items-center gap-1`,role:`tablist`},Az=[`aria-selected`,`disabled`,`onClick`],jz={class:`whitespace-nowrap`},Mz={class:`mt-2`};var Nz=R({__name:`Tabs`,props:{modelValue:{},tabs:{},theme:{default:`primary`},size:{default:`sm`},label:{}},emits:[`update:modelValue`,`change`],setup(e,{emit:t}){let n=e,r=t,i={tabActive:[`bg-white shadow-sm font-bold text-primary-600 dark:text-primary-400 text-xs`,`ring-2 ring-primary-500`,`dark:bg-neutral-700`,`ring-1 ring-black/5 dark:ring-white/10`],tabIdle:[`text-neutral-600 hover:bg-white/70`,`dark:text-neutral-300 dark:hover:bg-white/10`,`text-xs`]},a={primary:{container:[`bg-primary-50/60 dark:bg-primary-900/25 backdrop-blur-md`,`text-neutral-700/80 dark:text-neutral-300/80`],label:[`text-primary-500 dark:text-primary-400 font-semibold`],...i},violet:{container:[`bg-violet-50/60 dark:bg-violet-900/25 backdrop-blur-md`,`text-neutral-700/80 dark:text-neutral-300/80`],label:[`text-violet-500 dark:text-violet-400 font-semibold`],...i},lime:{container:[`bg-lime-50/60 dark:bg-lime-900/25 backdrop-blur-md`,`text-neutral-700/80 dark:text-neutral-300/80`],label:[`text-lime-500 dark:text-lime-400 font-semibold`],...i},orange:{container:[`bg-orange-50/70 dark:bg-orange-900/25 backdrop-blur-md`,`text-neutral-700/80 dark:text-neutral-300/80`],label:[`text-orange-500 dark:text-orange-400 font-semibold`],...i}},o=U(()=>({xs:`px-2 py-1 text-xs`,sm:`px-3 py-1.5 text-sm`,md:`px-4 py-2 text-sm`})[n.size]);function s(e,t){t||e!==n.modelValue&&(r(`update:modelValue`,e),r(`change`,e))}return(e,t)=>(z(),B(`div`,{class:Te([`relative overflow-hidden rounded-lg p-2`,a[e.theme].container])},[e.label?(z(),B(`div`,{key:0,class:Te([`mb-1 text-sm`,a[e.theme].label])},Pe(e.label),3)):zo(``,!0),V(`div`,kz,[(z(!0),B(bo,null,Oi(e.tabs,t=>(z(),B(`button`,{key:t.value,type:`button`,role:`tab`,"aria-selected":e.modelValue===t.value,disabled:t.disabled,class:Te([`inline-flex items-center gap-1 rounded-md transition-all`,o.value,t.disabled?`opacity-40 cursor-not-allowed`:``,e.modelValue===t.value?a[e.theme].tabActive:a[e.theme].tabIdle,`focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-primary-200 focus-visible:outline-offset-2`]),onClick:e=>s(t.value,t.disabled)},[t.icon?(z(),B(`span`,{key:0,class:Te([typeof t.icon==`string`?t.icon:t.value===e.modelValue?t.icon.active:t.icon.idle,`text-base`])},null,2)):zo(``,!0),V(`span`,jz,Pe(t.label),1)],10,Az))),128))]),V(`div`,Mz,[Ai(e.$slots,`default`,{active:e.modelValue})])],2))}}),Pz=Nz; +/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */ +const{entries:Fz,setPrototypeOf:Iz,isFrozen:Lz,getPrototypeOf:Rz,getOwnPropertyDescriptor:zz}=Object;let{freeze:Bz,seal:Vz,create:Hz}=Object,{apply:Uz,construct:Wz}=typeof Reflect<`u`&&Reflect;Bz||=function(e){return e},Vz||=function(e){return e},Uz||=function(e,t,n){return e.apply(t,n)},Wz||=function(e,t){return new e(...t)};const Gz=aB(Array.prototype.forEach),Kz=aB(Array.prototype.lastIndexOf),qz=aB(Array.prototype.pop),Jz=aB(Array.prototype.push),Yz=aB(Array.prototype.splice),Xz=aB(String.prototype.toLowerCase),Zz=aB(String.prototype.toString),Qz=aB(String.prototype.match),$z=aB(String.prototype.replace),eB=aB(String.prototype.indexOf),tB=aB(String.prototype.trim),nB=aB(Object.prototype.hasOwnProperty),rB=aB(RegExp.prototype.test),iB=oB(TypeError);function aB(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Uz(e,t,n)}}function oB(e){return function(){var t=[...arguments];return Wz(e,t)}}function sB(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xz;Iz&&Iz(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Lz(t)||(t[r]=e),i=e)}e[i]=!0}return e}function cB(e){for(let t=0;t/gm),wB=Vz(/\$\{[\w\W]*/gm),TB=Vz(/^data-[\-\w.\u00B7-\uFFFF]+$/),EB=Vz(/^aria-[\-\w]+$/),DB=Vz(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),OB=Vz(/^(?:\w+script|data):/i),kB=Vz(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),AB=Vz(/^html$/i),jB=Vz(/^[a-z][.\w]*(-[.\w]+)+$/i);var MB=Object.freeze({__proto__:null,ARIA_ATTR:EB,ATTR_WHITESPACE:kB,CUSTOM_ELEMENT:jB,DATA_ATTR:TB,DOCTYPE_NAME:AB,ERB_EXPR:CB,IS_ALLOWED_URI:DB,IS_SCRIPT_OR_DATA:OB,MUSTACHE_EXPR:SB,TMPLIT_EXPR:wB});const NB={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},PB=function(){return typeof window>`u`?null:window},FB=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},IB=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function LB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:PB(),t=e=>LB(e);if(t.version=`3.2.6`,t.removed=[],!e||!e.document||e.document.nodeType!==NB.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=uB(m,`cloneNode`),g=uB(m,`remove`),_=uB(m,`nextSibling`),v=uB(m,`childNodes`),y=uB(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:E}=r,D=IB();t.isSupported=typeof Fz==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:O,ERB_EXPR:k,TMPLIT_EXPR:A,DATA_ATTR:j,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:ee,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:N}=MB,{IS_ALLOWED_URI:ne}=MB,re=null,ie=sB({},[...dB,...fB,...pB,...hB,..._B]),ae=null,oe=sB({},[...vB,...yB,...bB,...xB]),se=Object.seal(Hz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ce=null,le=null,ue=!0,de=!0,fe=!1,pe=!0,P=!1,me=!0,he=!1,ge=!1,_e=!1,ve=!1,ye=!1,be=!1,xe=!0,Se=!1,Ce=!0,we=!1,Te={},Ee=null,De=sB({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Oe=null,ke=sB({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ae=null,je=sB({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Me=`http://www.w3.org/1998/Math/MathML`,Ne=`http://www.w3.org/2000/svg`,Pe=`http://www.w3.org/1999/xhtml`,Fe=Pe,Ie=!1,Le=null,Re=sB({},[Me,Ne,Pe],Zz),ze=sB({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Be=sB({},[`annotation-xml`]),Ve=sB({},[`title`,`style`,`font`,`a`,`script`]),He=null,Ue=[`application/xhtml+xml`,`text/html`],We=null,Ge=null,Ke=n.createElement(`form`),qe=function(e){return e instanceof RegExp||e instanceof Function},Je=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ge&&Ge===e)){if((!e||typeof e!=`object`)&&(e={}),e=lB(e),He=Ue.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,We=He===`application/xhtml+xml`?Zz:Xz,re=nB(e,`ALLOWED_TAGS`)?sB({},e.ALLOWED_TAGS,We):ie,ae=nB(e,`ALLOWED_ATTR`)?sB({},e.ALLOWED_ATTR,We):oe,Le=nB(e,`ALLOWED_NAMESPACES`)?sB({},e.ALLOWED_NAMESPACES,Zz):Re,Ae=nB(e,`ADD_URI_SAFE_ATTR`)?sB(lB(je),e.ADD_URI_SAFE_ATTR,We):je,Oe=nB(e,`ADD_DATA_URI_TAGS`)?sB(lB(ke),e.ADD_DATA_URI_TAGS,We):ke,Ee=nB(e,`FORBID_CONTENTS`)?sB({},e.FORBID_CONTENTS,We):De,ce=nB(e,`FORBID_TAGS`)?sB({},e.FORBID_TAGS,We):lB({}),le=nB(e,`FORBID_ATTR`)?sB({},e.FORBID_ATTR,We):lB({}),Te=nB(e,`USE_PROFILES`)?e.USE_PROFILES:!1,ue=e.ALLOW_ARIA_ATTR!==!1,de=e.ALLOW_DATA_ATTR!==!1,fe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,P=e.SAFE_FOR_TEMPLATES||!1,me=e.SAFE_FOR_XML!==!1,he=e.WHOLE_DOCUMENT||!1,ve=e.RETURN_DOM||!1,ye=e.RETURN_DOM_FRAGMENT||!1,be=e.RETURN_TRUSTED_TYPE||!1,_e=e.FORCE_BODY||!1,xe=e.SANITIZE_DOM!==!1,Se=e.SANITIZE_NAMED_PROPS||!1,Ce=e.KEEP_CONTENT!==!1,we=e.IN_PLACE||!1,ne=e.ALLOWED_URI_REGEXP||DB,Fe=e.NAMESPACE||Pe,ze=e.MATHML_TEXT_INTEGRATION_POINTS||ze,Be=e.HTML_INTEGRATION_POINTS||Be,se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(de=!1),ye&&(ve=!0),Te&&(re=sB({},_B),ae=[],Te.html===!0&&(sB(re,dB),sB(ae,vB)),Te.svg===!0&&(sB(re,fB),sB(ae,yB),sB(ae,xB)),Te.svgFilters===!0&&(sB(re,pB),sB(ae,yB),sB(ae,xB)),Te.mathMl===!0&&(sB(re,hB),sB(ae,bB),sB(ae,xB))),e.ADD_TAGS&&(re===ie&&(re=lB(re)),sB(re,e.ADD_TAGS,We)),e.ADD_ATTR&&(ae===oe&&(ae=lB(ae)),sB(ae,e.ADD_ATTR,We)),e.ADD_URI_SAFE_ATTR&&sB(Ae,e.ADD_URI_SAFE_ATTR,We),e.FORBID_CONTENTS&&(Ee===De&&(Ee=lB(Ee)),sB(Ee,e.FORBID_CONTENTS,We)),Ce&&(re[`#text`]=!0),he&&sB(re,[`html`,`head`,`body`]),re.table&&(sB(re,[`tbody`]),delete ce.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw iB(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw iB(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=FB(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));Bz&&Bz(e),Ge=e}},Ye=sB({},[...fB,...pB,...mB]),Xe=sB({},[...hB,...gB]),Ze=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Fe,tagName:`template`});let n=Xz(e.tagName),r=Xz(t.tagName);return Le[e.namespaceURI]?e.namespaceURI===Ne?t.namespaceURI===Pe?n===`svg`:t.namespaceURI===Me?n===`svg`&&(r===`annotation-xml`||ze[r]):!!Ye[n]:e.namespaceURI===Me?t.namespaceURI===Pe?n===`math`:t.namespaceURI===Ne?n===`math`&&Be[r]:!!Xe[n]:e.namespaceURI===Pe?t.namespaceURI===Ne&&!Be[r]||t.namespaceURI===Me&&!ze[r]?!1:!Xe[n]&&(Ve[n]||!Ye[n]):!!(He===`application/xhtml+xml`&&Le[e.namespaceURI]):!1},Qe=function(e){Jz(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},$e=function(e,n){try{Jz(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Jz(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(ve||ye)try{Qe(n)}catch{}else try{n.setAttribute(e,``)}catch{}},et=function(e){let t=null,r=null;if(_e)e=``+e;else{let t=Qz(e,/^[\r\n\t ]+/);r=t&&t[0]}He===`application/xhtml+xml`&&Fe===Pe&&(e=``+e+``);let i=b?b.createHTML(e):e;if(Fe===Pe)try{t=new f().parseFromString(i,He)}catch{}if(!t||!t.documentElement){t=S.createDocument(Fe,`template`,null);try{t.documentElement.innerHTML=Ie?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Fe===Pe?T.call(t,he?`html`:`body`)[0]:he?t.documentElement:a},tt=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},nt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},rt=function(e){return typeof s==`function`&&e instanceof s};function it(e,n,r){Gz(e,e=>{e.call(t,n,r,Ge)})}let at=function(e){let n=null;if(it(D.beforeSanitizeElements,e,null),nt(e))return Qe(e),!0;let r=We(e.nodeName);if(it(D.uponSanitizeElement,e,{tagName:r,allowedTags:re}),me&&e.hasChildNodes()&&!rt(e.firstElementChild)&&rB(/<[/\w!]/g,e.innerHTML)&&rB(/<[/\w!]/g,e.textContent)||e.nodeType===NB.progressingInstruction||me&&e.nodeType===NB.comment&&rB(/<[/\w]/g,e.data))return Qe(e),!0;if(!re[r]||ce[r]){if(!ce[r]&&st(r)&&(se.tagNameCheck instanceof RegExp&&rB(se.tagNameCheck,r)||se.tagNameCheck instanceof Function&&se.tagNameCheck(r)))return!1;if(Ce&&!Ee[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return Qe(e),!0}return e instanceof c&&!Ze(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&rB(/<\/no(script|embed|frames)/i,e.innerHTML)?(Qe(e),!0):(P&&e.nodeType===NB.text&&(n=e.textContent,Gz([O,k,A],e=>{n=$z(n,e,` `)}),e.textContent!==n&&(Jz(t.removed,{element:e.cloneNode()}),e.textContent=n)),it(D.afterSanitizeElements,e,null),!1)},ot=function(e,t,r){if(xe&&(t===`id`||t===`name`)&&(r in n||r in Ke))return!1;if(!(de&&!le[t]&&rB(j,t))&&!(ue&&rB(M,t))){if(!ae[t]||le[t]){if(!(st(e)&&(se.tagNameCheck instanceof RegExp&&rB(se.tagNameCheck,e)||se.tagNameCheck instanceof Function&&se.tagNameCheck(e))&&(se.attributeNameCheck instanceof RegExp&&rB(se.attributeNameCheck,t)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(t))||t===`is`&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&rB(se.tagNameCheck,r)||se.tagNameCheck instanceof Function&&se.tagNameCheck(r))))return!1}else if(!Ae[t]&&!rB(ne,$z(r,te,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&eB(r,`data:`)===0&&Oe[e])&&!(fe&&!rB(ee,$z(r,te,``)))&&r)return!1}return!0},st=function(e){return e!==`annotation-xml`&&Qz(e,N)},ct=function(e){it(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||nt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ae,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],{name:o,namespaceURI:s,value:c}=a,l=We(o),u=c,d=o===`value`?u:tB(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,it(D.uponSanitizeAttribute,e,r),d=r.attrValue,Se&&(l===`id`||l===`name`)&&($e(o,e),d=`user-content-`+d),me&&rB(/((--!?|])>)|<\/(style|title)/i,d)){$e(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){$e(o,e);continue}if(!pe&&rB(/\/>/i,d)){$e(o,e);continue}P&&Gz([O,k,A],e=>{d=$z(d,e,` `)});let f=We(e.nodeName);if(!ot(f,l,d)){$e(o,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!s)switch(p.getAttributeType(f,l)){case`TrustedHTML`:d=b.createHTML(d);break;case`TrustedScriptURL`:d=b.createScriptURL(d);break}if(d!==u)try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),nt(e)?Qe(e):qz(t.removed)}catch{$e(o,e)}}it(D.afterSanitizeAttributes,e,null)},lt=function e(t){let n=null,r=tt(t);for(it(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)it(D.uponSanitizeShadowNode,n,null),at(n),ct(n),n.content instanceof a&&e(n.content);it(D.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Ie=!e,Ie&&(e=``),typeof e!=`string`&&!rt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw iB(`dirty is not a string, aborting`)}else throw iB(`toString is not a function`);if(!t.isSupported)return e;if(ge||Je(n),t.removed=[],typeof e==`string`&&(we=!1),we){if(e.nodeName){let t=We(e.nodeName);if(!re[t]||ce[t])throw iB(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=et(``),o=i.ownerDocument.importNode(e,!0),o.nodeType===NB.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!ve&&!P&&!he&&e.indexOf(`<`)===-1)return b&&be?b.createHTML(e):e;if(i=et(e),!i)return ve?null:be?x:``}i&&_e&&Qe(i.firstChild);let u=tt(we?e:i);for(;c=u.nextNode();)at(c),ct(c),c.content instanceof a&<(c.content);if(we)return e;if(ve){if(ye)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(ae.shadowroot||ae.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=he?i.outerHTML:i.innerHTML;return he&&re[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&rB(AB,i.ownerDocument.doctype.name)&&(d=` +`+d),P&&Gz([O,k,A],e=>{d=$z(d,e,` `)}),b&&be?b.createHTML(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Je(e),ge=!0},t.clearConfig=function(){Ge=null,ge=!1},t.isValidAttribute=function(e,t,n){Ge||Je({});let r=We(e),i=We(t);return ot(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Jz(D[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=Kz(D[e],t);return n===-1?void 0:Yz(D[e],n,1)[0]}return qz(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=IB()},t}var RB=LB(),zB=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function BB(e){return VB(e)}function VB(e){return Array.isArray(e)?HB(e):e instanceof RegExp?e:typeof e==`object`?UB(e):e}function HB(e){let t=[];for(let n=0,r=e.length;n{for(let n in t)e[n]=t[n]}),e}function GB(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?GB(e.substring(0,e.length-1)):e.substr(~t+1)}var KB=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,qB=class{static hasCaptures(e){return e===null?!1:(KB.lastIndex=0,KB.test(e))}static replaceCaptures(e,t,n){return e.replace(KB,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function JB(e,t){return et?1:0}function YB(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;rthis._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t),r=n.find(t=>tV(e.parent,t.parentScopes));return r?new rV(r.fontStyle,r.foreground,r.background):null}},eV=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!nV(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function nV(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var rV=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function iV(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e1&&(d=l.slice(0,l.length-1),d.reverse()),n[r++]=new aV(u,d,e,o,s,c)}}return n}var aV=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},oV=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(oV||{});function sV(e,t){e.sort((e,t)=>{let n=JB(e.scope,t.scope);return n!==0||(n=YB(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new cV(t),o=new rV(n,a.getId(r),a.getId(i)),s=new dV(new uV(0,null,-1,0,0),[]);for(let t=0,n=e.length;te?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},dV=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),uV.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=mV(r)),i!==null&&(u=i?1:0),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function pV(e){return e}function mV(e){return e}function hV(e,t){let n=[],r=_V(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(gV(i)){let e=[];do e.push(i),i=r.next();while(gV(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function gV(e){return!!e&&!!e.match(/[\w\.:]+/)}function _V(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function vV(e){typeof e.dispose==`function`&&e.dispose()}var yV=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},bV=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},xV=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},SV=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new yV(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new xV;for(let n of e)CV(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof yV){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function CV(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof yV?TV({baseGrammar:a,selfGrammar:i},r):wV(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new yV(e))}function wV(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];EV([r],t,n)}}function TV(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&EV(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&EV(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function EV(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?WB({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&EV(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=MV(i);switch(a.kind){case 0:TV({...t,selfGrammar:t.baseGrammar},n);break;case 1:TV(t,n);break;case 2:wV(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?wV(a.ruleName,i,n):TV(i,n)}else a.kind===4?n.add(new bV(a.scopeName,a.ruleName)):n.add(new yV(a.scopeName));break}}}var DV=class{kind=0},OV=class{kind=1},kV=class{constructor(e){this.ruleName=e}kind=2},AV=class{constructor(e){this.scopeName=e}kind=3},jV=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function MV(e){if(e===`$base`)return new DV;if(e===`$self`)return new OV;let t=e.indexOf(`#`);if(t===-1)return new AV(e);if(t===0)return new kV(e.substring(1));{let n=e.substring(0,t),r=e.substring(t+1);return new jV(n,r)}}var NV=/\\(\d+)/,PV=/\\(\d+)/g,FV=-1,IV=-2;function LV(e){return e}function RV(e){return e}var zV=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=qB.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=qB.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${GB(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:qB.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:qB.replaceCaptures(this._contentName,e,t)}},BV=class extends zV{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},VV=class extends zV{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new KV(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new qV,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},HV=class extends zV{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns){let r=e.getRule(n);r.collectPatterns(e,t)}}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new qV,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},UV=class extends zV{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new KV(i,this.id),this.beginCaptures=a,this._end=new KV(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new qV;for(let t of this.patterns){let n=e.getRule(t);n.collectPatterns(e,this._cachedCompiledPatterns)}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},WV=class extends zV{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new KV(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new KV(o,IV),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new qV;for(let t of this.patterns){let n=e.getRule(t);n.collectPatterns(e,this._cachedCompiledPatterns)}}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new qV,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},GV=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new BV(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new VV(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=WB({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new HV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new WV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new UV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;ae.substring(t.start,t.end));return PV.lastIndex=0,this.source.replace(PV,(e,t)=>ZB(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;ie.source);this._cached=new JV(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(e=>e.resolveAnchors(t,n));return new JV(e,r,this._items.map(e=>e.ruleId))}},JV=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t{let t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new YV(t,n)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},ZV=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>ZB(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var QV=!1,$V=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function eH(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=tH(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0){let e=Date.now()-d;if(e>s)return new $V(i,!0)}f()}return new $V(i,!1);function f(){let o=nH(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===FV){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),cH(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof UV){let r=o;cH(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof WV){let r=o;cH(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else{let r=o;if(cH(e,t,n,i,a,r.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}}s[0].end>r&&(r=s[0].end,n=!1)}}function tH(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof WV&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=oH(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){let s=u.ruleId;if(s!==IV){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),cH(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function nH(e,t,n,r,i,a){let o=rH(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=iH(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u=s)&&(s=_,c=g.captureIndices,l=g.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function aH(e,t,n,r,i){if(QV){let a=e.compile(t,n),o=sH(r,i);return{ruleScanner:a,findOptions:o}}let a=e.compileAG(t,n,r,i);return{ruleScanner:a,findOptions:0}}function oH(e,t,n,r,i){if(QV){let a=e.compileWhile(t,n),o=sH(r,i);return{ruleScanner:a,findOptions:o}}let a=e.compileWhileAG(t,n,r,i);return{ruleScanner:a,findOptions:0}}function sH(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function cH(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;tu)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));eH(e,p,n&&d.start===0,d.start,f,i,!1,0),vV(p);continue}let f=c.getName(s,o);if(f!==null){let t=l.length>0?l[l.length-1].scopes:r.contentNameScopesList,n=t.pushAttributed(f,e);l.push(new lH(n,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var lH=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function uH(e,t,n,r,i,a,o,s){return new mH(e,t,n,r,i,a,o,s)}function dH(e,t,n,r,i){let a=hV(t,fH),o=GV.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function fH(e,t){if(t.length{for(let r=n;rn&&e.substr(0,n)===t&&e[n]===`.`}var mH=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new XV(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=hH(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=hV(e,fH);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)dH(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&dH(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(LV(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[RV(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=hH(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=GV.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===_H.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=fV.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?gH.createRootAndLookUpScopeName(a,r,this):gH.createRoot(`unknown`,r),t=new _H(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=` +`;let a=this.createOnigString(e),o=a.content.length,s=new yH(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=eH(this,a,i,0,t,s,!0,r);return vV(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function hH(e,t){return e=BB(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var gH=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=eV.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new eV(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new eV(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),fV.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},_H=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?gH.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:RV(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=gH.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,LV(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,gH.fromExtension(r,n.contentNameScopesList))}},vH=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):hV(e,fH).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>hV(e,fH).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},yH=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=fV.set(n,0,pV(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=fV.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},SH=_H.NULL;const CH=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`];var wH=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};wH.prototype.normal={},wH.prototype.property={},wH.prototype.space=void 0;function TH(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new wH(n,r,t)}function EH(e){return e.toLowerCase()}var DH=class{constructor(e,t){this.attribute=t,this.property=e}};DH.prototype.attribute=``,DH.prototype.booleanish=!1,DH.prototype.boolean=!1,DH.prototype.commaOrSpaceSeparated=!1,DH.prototype.commaSeparated=!1,DH.prototype.defined=!1,DH.prototype.mustUseProperty=!1,DH.prototype.number=!1,DH.prototype.overloadedBoolean=!1,DH.prototype.property=``,DH.prototype.spaceSeparated=!1,DH.prototype.space=void 0;var OH={};c(OH,{boolean:()=>AH,booleanish:()=>jH,commaOrSpaceSeparated:()=>IH,commaSeparated:()=>FH,number:()=>NH,overloadedBoolean:()=>MH,spaceSeparated:()=>PH});let kH=0;const AH=LH(),jH=LH(),MH=LH(),NH=LH(),PH=LH(),FH=LH(),IH=LH();function LH(){return 2**++kH}const RH=Object.keys(OH);var zH=class extends DH{constructor(e,t,n,r){let i=-1;if(super(e,t),BH(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&QH.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(ZH,tU);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ZH.test(e)){let n=e.replace(XH,eU);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=zH}return new i(r,t)}function eU(e){return`-`+e.toLowerCase()}function tU(e){return e.charAt(1).toUpperCase()}const nU=TH([HH,GH,qH,JH,YH],`html`),rU=TH([HH,KH,qH,JH,YH],`svg`),iU={}.hasOwnProperty;function aU(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&iU.call(t,e)){let n=String(t[e]);i=iU.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const oU=/["&'<>`]/g,sU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cU=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,lU=/[|\\{}()[\]^$+*?.]/g,uU=new WeakMap;function dU(e,t){if(e=e.replace(t.subset?fU(t.subset):oU,r),t.subset||t.escapeOnly)return e;return e.replace(sU,n).replace(cU,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function fU(e){let t=uU.get(e);return t||(t=pU(e),uU.set(e,t)),t}function pU(e){let t=[],n=-1;for(;++n`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},bU=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],xU={}.hasOwnProperty,SU={};let CU;for(CU in yU)xU.call(yU,CU)&&(SU[yU[CU]]=CU);const wU=/[^\dA-Za-z]/;function TU(e,t,n,r){let i=String.fromCharCode(e);if(xU.call(SU,i)){let e=SU[i],a=`&`+e;return n&&vU.includes(e)&&!bU.includes(e)&&(!r||t&&t!==61&&wU.test(String.fromCharCode(t)))?a:a+`;`}return``}function EU(e,t,n){let r=hU(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=TU(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=_U(e,t,n.omitOptionalSemicolons);i.length|^->||--!>|`],MU=[`<`,`>`];function NU(e,t,n,r){return r.settings.bogusComments?``:``;function i(e){return OU(e,Object.assign({},r.settings.characterReferences,{subset:MU}))}}function PU(e,t,n,r){return``}function FU(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function IU(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function LU(e,t){let n=t||{},r=e[e.length-1]===``?[...e,``]:e;return r.join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function RU(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function zU(e){return e.join(` `).trim()}const BU=/[ \t\n\f\r]/g;function VU(e){return typeof e==`object`?e.type===`text`?HU(e.value):!1:HU(e)}function HU(e){return e.replace(BU,``)===``}const UU=KU(1),WU=KU(-1),GU=[];function KU(e){return t;function t(t,n,r){let i=t?t.children:GU,a=(n||0)+e,o=i[a];if(!r)for(;o&&VU(o);)a+=e,o=i[a];return o}}const qU={}.hasOwnProperty;function JU(e){return t;function t(t,n,r){return qU.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const YU=JU({body:QU,caption:XU,colgroup:XU,dd:nW,dt:tW,head:XU,html:ZU,li:eW,optgroup:iW,option:aW,p:$U,rp:rW,rt:rW,tbody:sW,td:uW,tfoot:cW,th:uW,thead:oW,tr:lW});function XU(e,t,n){let r=UU(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&VU(r.value.charAt(0)))}function ZU(e,t,n){let r=UU(n,t);return!r||r.type!==`comment`}function QU(e,t,n){let r=UU(n,t);return!r||r.type!==`comment`}function $U(e,t,n){let r=UU(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function eW(e,t,n){let r=UU(n,t);return!r||r.type===`element`&&r.tagName===`li`}function tW(e,t,n){let r=UU(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function nW(e,t,n){let r=UU(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function rW(e,t,n){let r=UU(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function iW(e,t,n){let r=UU(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function aW(e,t,n){let r=UU(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function oW(e,t,n){let r=UU(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function sW(e,t,n){let r=UU(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function cW(e,t,n){return!UU(n,t)}function lW(e,t,n){let r=UU(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function uW(e,t,n){let r=UU(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}const dW=JU({body:mW,colgroup:hW,head:pW,html:fW,tbody:gW});function fW(e){let t=UU(e,-1);return!t||t.type!==`comment`}function pW(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function mW(e){let t=UU(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&VU(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function hW(e,t,n){let r=WU(n,t),i=UU(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&YU(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function gW(e,t,n){let r=WU(n,t),i=UU(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&YU(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}const _W={name:[[` \f\r &/=>`.split(``),` \f\r "&'/=>\``.split(``)],[`\0 \f\r "&'/<=>`.split(``),`\0 @@ -3860,11 +3863,11 @@ function UO(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=ua \f\r &>`.split(``),`\0 \f\r "&'<=>\``.split(``)],[`\0 \f\r "&'<=>\``.split(``),`\0 -\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function NU(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=vH);let l=PU(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!EU(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!uU(e,t,n))&&s.push(``),s.join(``)}function PU(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=FU(e,i,t[i]);r&&n.push(r)}}for(;++rXH(n,e.alternative)&&(o=e.alternative),s=o+UH(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?MU.single:MU.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}const IU=[`<`,`&`];function LU(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:UH(e.value,Object.assign({},r.settings.characterReferences,{subset:IU}))}function RU(e,t,n,r){return r.settings.allowDangerousHtml?e.value:LU(e,t,n,r)}function zU(e,t,n,r){return r.all(e)}const BU=bH(`type`,{invalid:VU,unknown:HU,handlers:{comment:JH,doctype:YH,element:NU,raw:RU,root:zU,text:LU}});function VU(e){throw Error("Expected node, not `"+e+"`")}function HU(e){let t=e;throw Error("Cannot compile unknown node `"+t.type+"`")}const UU={},WU={},GU=[];function KU(e,t){let n=t||UU,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");let a={one:qU,all:JU,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||RV,characterReferences:n.characterReferences||WU,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?vH:_H,quote:r,alternative:i};return a.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function qU(e,t,n){return BU(e,t,n,this)}function JU(e){let t=[],n=e&&e.children||GU,r=-1;for(;++re.default||e)}function $U(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function eW(e){return e===`ansi`||$U(e)}function tW(e){return e===`none`}function nW(e){return tW(e)}function rW(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(/\s+/g);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function iW(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;ee);function n(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(re&&i[e])}const sW=`light-dark()`,cW=[`color`,`background-color`];function lW(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return ne-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offsett-e.offset).sort((e,t)=>e-t);return t.length?lW(e,t):e})):e}function dW(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>fW(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&cW.includes(a))if(r===sW&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new eB('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function fW(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&xB.Italic&&(t[`font-style`]=`italic`),e.fontStyle&xB.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&xB.Underline&&n.push(`underline`),e.fontStyle&xB.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function pW(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}const mW=new WeakMap;function hW(e,t){mW.set(e,t)}function gW(e){return mW.get(e)}var _W=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(ZU(n).map(e=>[e,LV])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return vW(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function vW(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function yW(e,t){if(!(e instanceof _W))throw new eB(`Invalid grammar state`);return e.getInternalStack(t)}function bW(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new eB(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}else{let t=r.lines[e.line];if(t===void 0)throw new eB(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new eB(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=aW(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));xW(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(!this.options.decorations?.length)return;let n=t(this),r=n.decorations.flatMap(e=>[e.start.offset,e.end.offset]),i=uW(e,r);return i},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new eB(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;ee);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&rW(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.linea(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function xW(e){for(let t=0;tn.end.offset)throw new eB(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;rNumber.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function AW(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9){let e=DW[r];e&&t.push({type:`setDecoration`,value:DW[r]})}else if(r<=29){let e=DW[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:EW[r-30]}});else if(r===38){let n=kW(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:EW[r-40]}});else if(r===48){let n=kW(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:EW[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:EW[r-100+8]}})}return t}function jW(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=OW(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=AW(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(aMath.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),o=jW();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=XU(i,r),o=XU(o,r),n.decorations.has(`dim`)&&(i=FW(i));let s=xB.None;return n.decorations.has(`bold`)&&(s|=xB.Bold),n.decorations.has(`italic`)&&(s|=xB.Italic),n.decorations.has(`underline`)&&(s|=xB.Underline),n.decorations.has(`strikethrough`)&&(s|=xB.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function FW(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,`0`);return`#${t[1]}${t[2]}${e}`}else if(t[2])return`#${t[1]}${t[2]}80`;else return`#${Array.from(t[1]).map(e=>`${e}${e}`).join(``)}80`;let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function IW(e,t,n={}){let{lang:r=`text`,theme:i=e.getLoadedThemes()[0]}=n;if($U(r)||tW(i))return iW(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(i);if(r===`ansi`)return PW(a,t,n);let s=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new eB(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new eB(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return RW(t,s,a,o,n)}function LW(...e){if(e.length===2)return gW(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if($U(i)||tW(a))throw new eB(`Plain language does not have grammar state`);if(i===`ansi`)throw new eB(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new _W(zW(n,c,o,s,r).stateStack,c.name,o.name)}function RW(e,t,n,r,i){let a=zW(e,t,n,r,i),o=new _W(zW(e,t,n,r,i).stateStack,t.name,n.name);return hW(a.tokens,o),a.tokens}function zW(e,t,n,r,i){let a=YU(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=iW(e),l=i.grammarState?yW(i.grammarState,n.name)??LV:i.grammarContextCode==null?LV:zW(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;ee.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r({scopeName:e}))}function VW(e,t){let n=[];for(let r=0,i=t.length;r=0&&i>=0;)HW(e[r],n[i])&&--r,--i;return r===-1}function WW(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(UW(e,t,n)){r.push(a);break}return r}function GW(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=IW(e,t,{...n,theme:r.theme}),a=gW(i),o=typeof r.theme==`string`?r.theme:r.theme.name;return{tokens:i,state:a,theme:o}}),a=KW(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:c,...l}=e[t][i];o.variants[r[n].color]=l}),o})),s=i[0].state?new _W(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&hW(o,s),o}function KW(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;re[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;te[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:t.color===l?1:0);if(f.length===0)throw new eB("`themes` option must not be empty");let p=GW(e,t,n);if(c=gW(p),l&&sW!==l&&!f.find(e=>e.color===l))throw new eB(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>dW(e,h,u,l,d))),c&&hW(a,c);let g=f.map(e=>YU(e.theme,n));i=JW(f,m,g,u,l,`fg`,d),r=JW(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=YU(n.theme,n);a=IW(e,t,n);let l=e.getTheme(n.theme);r=XU(l.bg,s),i=XU(l.fg,s),o=l.name,c=gW(a)}else throw new eB("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function JW(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=XU(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===sW&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new eB('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=XU(t[r][a],n[r])||`inherit`,s=XU(t[i][a],n[i])||`inherit`;return`light-dark(${o}, ${s});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}function YW(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>YW(e,t,n),codeToTokens:(t,n)=>qW(e,t,n)}){let i=t;for(let e of wW(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=qW(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=ZW(a):d===`never`&&(a=QW(a)),f&&(a=$W(a));let p={...r,get source(){return i}};for(let e of wW(n))a=e.tokens?.call(p,a)||a;return XW(a,{...n,fg:o,bg:s,themeName:c,rootStyle:l},p,u)}function XW(e,t,n,r=gW(e)){let i=wW(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={type:`element`,tagName:`pre`,properties:{class:`shiki ${t.themeName||``}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...c!==!1&&c!=null?{tabindex:c.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith(`_`)))},children:[]},u={type:`element`,tagName:`code`,properties:{},children:a},d=[],f={...n,structure:s,addClassToHast:rW,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return l},get code(){return u},get lines(){return d}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:` -`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=pW(a.htmlStyle||fW(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(f,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(f,n,t+1)||n;d.push(n),a.push(n)}}),s===`classic`){for(let e of i)u=e?.code?.call(f,u)||u;l.children.push(u);for(let e of i)l=e?.pre?.call(f,l)||l;o.children.push(l)}let p=o;for(let e of i)p=e?.root?.call(f,p)||p;return r&&hW(p,r),p}function ZW(e){return e.map(e=>{let t=[],n=``,r=0;return e.forEach((i,a)=>{let o=i.fontStyle&&(i.fontStyle&xB.Underline||i.fontStyle&xB.Strikethrough),s=!o;s&&i.content.match(/^\s+$/)&&e[a+1]?(r||=i.offset,n+=i.content):n?(s?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=``):t.push(i)}),t})}function QW(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function $W(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t[t.length-1],r=pW(e.htmlStyle||fW(e)),i=pW(n.htmlStyle||fW(n)),a=e.fontStyle&&(e.fontStyle&xB.Underline||e.fontStyle&xB.Strikethrough),o=n.fontStyle&&(n.fontStyle&xB.Underline||n.fontStyle&xB.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}const eG=KU;function tG(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>YW(e,t,n),codeToTokens:(t,n)=>qW(e,t,n)},i=eG(YW(e,t,n,r));for(let e of wW(n))i=e.postprocess?.call(r,i,n)||i;return i}const nG={light:`#333333`,dark:`#bbbbbb`},rG={light:`#fffffe`,dark:`#1e1e1e`},iG=`__shiki_resolved`;function aG(e){if(e?.[iG])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?nG.light:nG.dark,n||=t.type===`light`?rG.light:rG.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,iG,{enumerable:!1,writable:!1,value:!0}),t}async function oG(e){return Array.from(new Set((await Promise.all(e.filter(e=>!eW(e)).map(async e=>await QU(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function sG(e){let t=await Promise.all(e.map(async e=>nW(e)?null:aG(await QU(e))));return t.filter(e=>!!e)}function cG(e,t=3){t>3||console.trace(`[SHIKI DEPRECATE]: ${e}`)}var lG=class extends Error{constructor(e){super(e),this.name=`ShikiError`}},uG=class extends IV{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=aG(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=mB.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new lG(`Circular alias \`${Array.from(t).join(` -> `)} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new lG(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}},dG=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}};let fG=0;function pG(e){fG+=1,e.warnings!==!1&&fG>=10&&fG%10==0&&console.warn(`[Shiki] ${fG} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new lG("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(aG),i=new dG(e.engine,n),a=new uG(i,r,n,e.langAlias),o;function s(e){g();let t=a.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new lG(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=a.getTheme(e);if(!t)throw new lG(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);o!==e&&(a.setTheme(t),o=e);let n=a.getColorMap();return{theme:t,colorMap:n}}function u(){return g(),a.getLoadedThemes()}function d(){return g(),a.getLoadedLanguages()}function f(...e){g(),a.loadLanguages(e.flat(1))}async function p(...e){return f(await oG(e))}function m(...e){g();for(let t of e.flat(1))a.loadTheme(t)}async function h(...e){return g(),m(await sG(e))}function g(){if(t)throw new lG(`Shiki instance has been disposed`)}function _(){t||(t=!0,a.dispose(),--fG)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function mG(e){e.engine||cG("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([sG(e.themes||[]),oG(e.langs||[]),e.engine]);return pG({...e,themes:t,langs:n,engine:r})}async function hG(e){let t=await mG(e);return{getLastGrammarState:(...e)=>LW(t,...e),codeToTokensBase:(e,n)=>IW(t,e,n),codeToTokensWithThemes:(e,n)=>GW(t,e,n),codeToTokens:(e,n)=>qW(t,e,n),codeToHast:(e,n)=>YW(t,e,n),codeToHtml:(e,n)=>tG(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function gG(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(eW(n))return[];n=e.langAlias?.[n]||n;let r=t[n];if(!r)throw new eB(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(nW(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new eB(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await hG({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function _G(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else return t=e({...n,themes:n.themes||[],langs:n.langs||[]}),t}return n}function vG(e,t){let n=_G(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){let n=await r(e,t);return n.codeToHtml(e,t)},async codeToHast(e,t){let n=await r(e,t);return n.codeToHast(e,t)},async codeToTokens(e,t){let n=await r(e,t);return n.codeToTokens(e,t)},async codeToTokensBase(e,t){let n=await r(e,t);return n.codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){let n=await r(e,t);return n.codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){let r=await n({langs:[t.lang],themes:[t.theme]});return r.getLastGrammarState(e,t)}}}const yG=[{id:`abap`,name:`ABAP`,import:(()=>G(()=>import(`./abap-9bpfglwS.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>G(()=>import(`./actionscript-3-ociMAPfw.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>G(()=>import(`./ada-D60N0wAC.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>G(()=>import(`./angular-html-RKLz1hEo.js`),__vite__mapDeps([99,100,101,102,103])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>G(()=>import(`./angular-ts-BI4FB_fP.js`),__vite__mapDeps([104,100,101,102,103,105])))},{id:`apache`,name:`Apache Conf`,import:(()=>G(()=>import(`./apache-BSx-mvDL.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>G(()=>import(`./apex-DNlz8il8.js`),[]))},{id:`apl`,name:`APL`,import:(()=>G(()=>import(`./apl-C6UhYxwp.js`),__vite__mapDeps([106,102,101,103,107,108,109])))},{id:`applescript`,name:`AppleScript`,import:(()=>G(()=>import(`./applescript-Cnn30Ti0.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>G(()=>import(`./ara-B86Dgxh4.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>G(()=>import(`./asciidoc-ybVjzsm4.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>G(()=>import(`./asm-Dcw9Ny5m.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>G(()=>import(`./astro-BDo1Nf1q.js`),__vite__mapDeps([110,102,103,108,111,112,113])))},{id:`awk`,name:`AWK`,import:(()=>G(()=>import(`./awk-BCRtMALa.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>G(()=>import(`./ballerina-Dxu06ySH.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>G(()=>import(`./bat-C4k1NvZt.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>G(()=>import(`./beancount-BamUO-hl.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>G(()=>import(`./berry-BlxHAoH2.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>G(()=>import(`./bibtex-DEVq7xTG.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>G(()=>import(`./bicep-o62yijGv.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>G(()=>import(`./blade-MM1ivGYS.js`),__vite__mapDeps([114,102,115,101,103,107,108,116,109])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>G(()=>import(`./bsl-_9kqzR--.js`),__vite__mapDeps([117,118])))},{id:`c`,name:`C`,import:(()=>G(()=>import(`./c-1Hxpehpy.js`),__vite__mapDeps([119,120])))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>G(()=>import(`./cadence-CKllqIEj.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>G(()=>import(`./cairo-Bl9HOvxV.js`),__vite__mapDeps([121,122])))},{id:`clarity`,name:`Clarity`,import:(()=>G(()=>import(`./clarity-C1Xdeg_i.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>G(()=>import(`./clojure-BmNDMrDJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>G(()=>import(`./cmake-yU80Of_C.js`),__vite__mapDeps([123,124])))},{id:`cobol`,name:`COBOL`,import:(()=>G(()=>import(`./cobol-CYoQMlYW.js`),__vite__mapDeps([125,102,101,103,107])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>G(()=>import(`./codeowners-BHhicgi1.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>G(()=>import(`./codeql-C29lx3c8.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>G(()=>import(`./coffee-KjboF6NF.js`),__vite__mapDeps([126,103])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>G(()=>import(`./common-lisp-DImrk-mG.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>G(()=>import(`./coq-C6XM8e7q.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>G(()=>import(`./cpp-6uhgRkJM.js`),__vite__mapDeps([127,120,128,129,130,116])))},{id:`crystal`,name:`Crystal`,import:(()=>G(()=>import(`./crystal-DJHo638b.js`),__vite__mapDeps([131,120,102,101,103,132,116])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>G(()=>import(`./csharp-CMLbDB-w.js`),__vite__mapDeps([133,134])))},{id:`css`,name:`CSS`,import:(()=>G(()=>import(`./css-CXhRAQ2n.js`),__vite__mapDeps([135,102])))},{id:`csv`,name:`CSV`,import:(()=>G(()=>import(`./csv-BHoUcHm8.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>G(()=>import(`./cue-HDaT_dTp.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>G(()=>import(`./cypher-M3UrISUQ.js`),[]))},{id:`d`,name:`D`,import:(()=>G(()=>import(`./d-btGIEij_.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>G(()=>import(`./dart-DlvdYpMI.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>G(()=>import(`./dax-Dcym1tZQ.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>G(()=>import(`./desktop-BRltzlkZ.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>G(()=>import(`./diff-NHAsyJhv.js`),__vite__mapDeps([136,137])))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>G(()=>import(`./docker-Dd3fVAQC.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>G(()=>import(`./dotenv-CNNfYLdk.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>G(()=>import(`./dream-maker-DbnhR-wH.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>G(()=>import(`./edge-p-ARpia1.js`),__vite__mapDeps([138,102,115,101,103,113])))},{id:`elixir`,name:`Elixir`,import:(()=>G(()=>import(`./elixir-CJLMrTRs.js`),__vite__mapDeps([139,102,101,103])))},{id:`elm`,name:`Elm`,import:(()=>G(()=>import(`./elm-BMVz0nRN.js`),__vite__mapDeps([140,120,129])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>G(()=>import(`./emacs-lisp-bSNO03KB.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>G(()=>import(`./erb-BbmM0IYl.js`),__vite__mapDeps([141,120,128,129,130,116,102,142,103,143,112,113,144,101,107,145,146,132,109,147])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>G(()=>import(`./erlang-B14SbhrR.js`),__vite__mapDeps([148,149])))},{id:`fennel`,name:`Fennel`,import:(()=>G(()=>import(`./fennel-M13aQxW4.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>G(()=>import(`./fish-BBDJbWqF.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>G(()=>import(`./fluent-AxL4iS6p.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>G(()=>import(`./fortran-fixed-form-bw89GeE4.js`),__vite__mapDeps([150,151])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>G(()=>import(`./fortran-free-form-CBlLX79G.js`),__vite__mapDeps([152,151])))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>G(()=>import(`./fsharp-Hgh5PYQA.js`),__vite__mapDeps([153,149])))},{id:`gdresource`,name:`GDResource`,import:(()=>G(()=>import(`./gdresource-CUzI-cUQ.js`),__vite__mapDeps([154,155,156])))},{id:`gdscript`,name:`GDScript`,import:(()=>G(()=>import(`./gdscript-F11G2579.js`),__vite__mapDeps([157,155])))},{id:`gdshader`,name:`GDShader`,import:(()=>G(()=>import(`./gdshader-DY7pnO4l.js`),__vite__mapDeps([158,156])))},{id:`genie`,name:`Genie`,import:(()=>G(()=>import(`./genie-DV4QnefI.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>G(()=>import(`./gherkin-S4lUq6S4.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>G(()=>import(`./git-commit-BpZ9iDq0.js`),__vite__mapDeps([159,137])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>G(()=>import(`./git-rebase-B7h1d5d5.js`),__vite__mapDeps([160,132])))},{id:`gleam`,name:`Gleam`,import:(()=>G(()=>import(`./gleam-DO4VvLeC.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>G(()=>import(`./glimmer-js-Bu85AOc8.js`),__vite__mapDeps([161,102,101,103,113])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>G(()=>import(`./glimmer-ts-C-Kl47e9.js`),__vite__mapDeps([162,102,101,103,113])))},{id:`glsl`,name:`GLSL`,import:(()=>G(()=>import(`./glsl-DYKkOYZW.js`),__vite__mapDeps([163,120,129])))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>G(()=>import(`./gnuplot-D8I-EhIQ.js`),[]))},{id:`go`,name:`Go`,import:(()=>G(()=>import(`./go-C__IfQT1.js`),__vite__mapDeps([164,165])))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>G(()=>import(`./graphql-Dqagbjjq.js`),__vite__mapDeps([166,142,103,143,112,113])))},{id:`groovy`,name:`Groovy`,import:(()=>G(()=>import(`./groovy-DM-nO1EZ.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>G(()=>import(`./hack-Bu92NL2m.js`),__vite__mapDeps([167,102,101,103,116])))},{id:`haml`,name:`Ruby Haml`,import:(()=>G(()=>import(`./haml-DYU5Mqin.js`),__vite__mapDeps([168,102,144,103])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>G(()=>import(`./handlebars-DKMgiIbq.js`),__vite__mapDeps([169,102,101,103,147])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>G(()=>import(`./haskell-CEAyRRw1.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>G(()=>import(`./haxe-CKt-jgKz.js`),__vite__mapDeps([170,171])))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>G(()=>import(`./hcl-DLKPwsgV.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>G(()=>import(`./hjson-XvYI7Njd.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>G(()=>import(`./hlsl-B3snUh6r.js`),__vite__mapDeps([172,173])))},{id:`html`,name:`HTML`,import:(()=>G(()=>import(`./html-BZoqaXf0.js`),__vite__mapDeps([174,102,101,103])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>G(()=>import(`./html-derivative-DKc8xbJR.js`),__vite__mapDeps([175,102,115,101,103])))},{id:`http`,name:`HTTP`,import:(()=>G(()=>import(`./http-MSHrrwRY.js`),__vite__mapDeps([176,142,103,143,112,113,107,108,132,109])))},{id:`hxml`,name:`HXML`,import:(()=>G(()=>import(`./hxml-Dh5DeIFj.js`),__vite__mapDeps([177,171])))},{id:`hy`,name:`Hy`,import:(()=>G(()=>import(`./hy-YXpPDnHe.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>G(()=>import(`./imba-Dz_HKeKr.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>G(()=>import(`./ini-Dcm6qhk1.js`),[]))},{id:`java`,name:`Java`,import:(()=>G(()=>import(`./java-Z7KQ3nEV.js`),__vite__mapDeps([178,107])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`],import:(()=>G(()=>import(`./javascript-CoFC1LC_.js`),__vite__mapDeps([179,103])))},{id:`jinja`,name:`Jinja`,import:(()=>G(()=>import(`./jinja-DExrtk5M.js`),__vite__mapDeps([180,102,101,103])))},{id:`jison`,name:`Jison`,import:(()=>G(()=>import(`./jison-QYFXoTsf.js`),__vite__mapDeps([181,103])))},{id:`json`,name:`JSON`,import:(()=>G(()=>import(`./json-BECfSVJ5.js`),__vite__mapDeps([182,108])))},{id:`json5`,name:`JSON5`,import:(()=>G(()=>import(`./json5-Dk8HYSkk.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>G(()=>import(`./jsonc-OZJKK0dB.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>G(()=>import(`./jsonl-BPcKmbkE.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>G(()=>import(`./jsonnet-VWv-jk-X.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>G(()=>import(`./jssm-BNoG84vH.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>G(()=>import(`./jsx-Ke7R2tcQ.js`),__vite__mapDeps([183,143])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>G(()=>import(`./julia-CFG6gbIc.js`),__vite__mapDeps([184,120,128,129,130,116,103,122,185])))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>G(()=>import(`./kotlin-DC198Zdv.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>G(()=>import(`./kusto-TKpXneLP.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>G(()=>import(`./latex-JBMJRhlk.js`),__vite__mapDeps([186,185,187])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>G(()=>import(`./lean-Bcrl2rE4.js`),[]))},{id:`less`,name:`Less`,import:(()=>G(()=>import(`./less-BDKf7FXw.js`),__vite__mapDeps([188,189])))},{id:`liquid`,name:`Liquid`,import:(()=>G(()=>import(`./liquid-BffiuKJa.js`),__vite__mapDeps([190,102,101,103,108])))},{id:`llvm`,name:`LLVM IR`,import:(()=>G(()=>import(`./llvm-MaRTjixP.js`),[]))},{id:`log`,name:`Log file`,import:(()=>G(()=>import(`./log-CoOxsRlW.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>G(()=>import(`./logo-DnzSrnoG.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>G(()=>import(`./lua-DceDs3NN.js`),__vite__mapDeps([191,120,145])))},{id:`luau`,name:`Luau`,import:(()=>G(()=>import(`./luau-EMYoTjNx.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>G(()=>import(`./make-fLKYEh-f.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>G(()=>import(`./markdown-YcIGwGaY.js`),__vite__mapDeps([192,149])))},{id:`marko`,name:`Marko`,import:(()=>G(()=>import(`./marko-BuqmDWiT.js`),__vite__mapDeps([193,102,189,105,113])))},{id:`matlab`,name:`MATLAB`,import:(()=>G(()=>import(`./matlab-BuphcKqY.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>G(()=>import(`./mdc-XZ5XS5G8.js`),__vite__mapDeps([194,102,115,101,103,149,147])))},{id:`mdx`,name:`MDX`,import:(()=>G(()=>import(`./mdx-C46OAT8W.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>G(()=>import(`./mermaid-DVqdMRwM.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>G(()=>import(`./mipsasm-Cpca58h_.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>G(()=>import(`./mojo-ZmBy9VXI.js`),[]))},{id:`move`,name:`Move`,import:(()=>G(()=>import(`./move-DarwfKOa.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>G(()=>import(`./narrat-CVQxXxVP.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>G(()=>import(`./nextflow-DpFhU96a.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>G(()=>import(`./nginx-B9yym_4p.js`),__vite__mapDeps([195,120,145])))},{id:`nim`,name:`Nim`,import:(()=>G(()=>import(`./nim-DwEagdh2.js`),__vite__mapDeps([196,120,102,129,101,103,107,149,109])))},{id:`nix`,name:`Nix`,import:(()=>G(()=>import(`./nix-M9WyUlxt.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>G(()=>import(`./nushell-CzSZjfwb.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>G(()=>import(`./objective-c-DCVzCT35.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>G(()=>import(`./objective-cpp-C0Ag01Ux.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>G(()=>import(`./ocaml-eLzecdzY.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>G(()=>import(`./pascal-D41AWha0.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>G(()=>import(`./perl-C2GmwEkq.js`),__vite__mapDeps([197,102,101,103,107,116,109])))},{id:`php`,name:`PHP`,import:(()=>G(()=>import(`./php-DwWkh3Qy.js`),__vite__mapDeps([198,102,101,103,107,108,199,116,109])))},{id:`plsql`,name:`PL/SQL`,import:(()=>G(()=>import(`./plsql-f5gfIECe.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>G(()=>import(`./po-CmWhBzYk.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>G(()=>import(`./polar-DjNzWtli.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>G(()=>import(`./postcss-DpZPffaJ.js`),__vite__mapDeps([200,111])))},{id:`powerquery`,name:`PowerQuery`,import:(()=>G(()=>import(`./powerquery-IpsgmOrB.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>G(()=>import(`./powershell-B_lnqR6S.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>G(()=>import(`./prisma-Bwvc2M8c.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>G(()=>import(`./prolog-V5VOXzGk.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>G(()=>import(`./proto-SwiFBrSx.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>G(()=>import(`./pug-R8zhNC2_.js`),__vite__mapDeps([201,102,101,103])))},{id:`puppet`,name:`Puppet`,import:(()=>G(()=>import(`./puppet-qmkJPQb2.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>G(()=>import(`./purescript-Dht7UX7U.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>G(()=>import(`./python-ij4LvnkA.js`),__vite__mapDeps([202,122])))},{id:`qml`,name:`QML`,import:(()=>G(()=>import(`./qml-BVEv2gLp.js`),__vite__mapDeps([203,103])))},{id:`qmldir`,name:`QML Directory`,import:(()=>G(()=>import(`./qmldir-SRZyIQXX.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>G(()=>import(`./qss-BV_bwhiH.js`),[]))},{id:`r`,name:`R`,import:(()=>G(()=>import(`./r-CI_8QuDg.js`),__vite__mapDeps([204,185])))},{id:`racket`,name:`Racket`,import:(()=>G(()=>import(`./racket--ZfcoBNh.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>G(()=>import(`./raku-Cf9Hlbz1.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>G(()=>import(`./razor-BXrpcGrf.js`),__vite__mapDeps([205,134,102,101,103])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>G(()=>import(`./reg-N6IvIMTc.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>G(()=>import(`./regexp-CEd_PNob.js`),__vite__mapDeps([206,130])))},{id:`rel`,name:`Rel`,import:(()=>G(()=>import(`./rel-DdTN8LaS.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>G(()=>import(`./riscv-DP3cWieq.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>G(()=>import(`./rst-BbMmENyw.js`),__vite__mapDeps([207,120,124,128,129,130,116,102,142,103,143,112,113,144,115,101,107,145,122,146,132,109,147])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>G(()=>import(`./ruby-DnW9M3dC.js`),__vite__mapDeps([208,120,128,129,130,116,102,142,103,143,112,113,144,101,107,145,146,132,109,147])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>G(()=>import(`./rust-DSYkP88Y.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>G(()=>import(`./sas-Bbqf5T6B.js`),__vite__mapDeps([209,116])))},{id:`sass`,name:`Sass`,import:(()=>G(()=>import(`./sass-CXym6Moq.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>G(()=>import(`./scala-C0Qq-8oa.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>G(()=>import(`./scheme-DSdb-X-2.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>G(()=>import(`./scss-Dj-dd4pv.js`),__vite__mapDeps([210,102,105])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>G(()=>import(`./sdbl-DiSKCflq.js`),__vite__mapDeps([211,118])))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>G(()=>import(`./shaderlab-niXJj9LB.js`),__vite__mapDeps([212,173])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>G(()=>import(`./shellscript-CTDFJZE_.js`),__vite__mapDeps([213,132])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>G(()=>import(`./shellsession-BMRZY_iB.js`),__vite__mapDeps([214,132])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>G(()=>import(`./smalltalk-xm9bX9_z.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>G(()=>import(`./solidity-B7n7t9rj.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>G(()=>import(`./soy-oogrYg0r.js`),__vite__mapDeps([215,102,101,103])))},{id:`sparql`,name:`SPARQL`,import:(()=>G(()=>import(`./sparql-CZdnCkl8.js`),__vite__mapDeps([216,217])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>G(()=>import(`./splunk-BizC9c7t.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>G(()=>import(`./sql-YT8d_55s.js`),__vite__mapDeps([218,116])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>G(()=>import(`./ssh-config-Da40kmk_.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>G(()=>import(`./stata-DKoKZwk6.js`),__vite__mapDeps([219,116])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>G(()=>import(`./stylus-BfFgcVOV.js`),__vite__mapDeps([220,221])))},{id:`svelte`,name:`Svelte`,import:(()=>G(()=>import(`./svelte-BCyo1H28.js`),__vite__mapDeps([222,102,103,111,113])))},{id:`swift`,name:`Swift`,import:(()=>G(()=>import(`./swift-BE5EM2-N.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>G(()=>import(`./system-verilog-CSbPS08G.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>G(()=>import(`./systemd-Ddl13SOF.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>G(()=>import(`./talonscript-C6lAZ7bW.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>G(()=>import(`./tasl-BenQQHgt.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>G(()=>import(`./tcl-VHvCQlLP.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>G(()=>import(`./templ-UHustcM7.js`),__vite__mapDeps([223,102,165,103])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>G(()=>import(`./terraform-DOOPQykp.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>G(()=>import(`./tex-CtKYC-ji.js`),__vite__mapDeps([224,185,187])))},{id:`toml`,name:`TOML`,import:(()=>G(()=>import(`./toml-CRyvn5e6.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>G(()=>import(`./ts-tags-BtFLKwfC.js`),__vite__mapDeps([225,120,102,129,101,103,107,116,113,109])))},{id:`tsv`,name:`TSV`,import:(()=>G(()=>import(`./tsv-CCGU3WlK.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>G(()=>import(`./tsx-5zUN_IgM.js`),__vite__mapDeps([226,112])))},{id:`turtle`,name:`Turtle`,import:(()=>G(()=>import(`./turtle-1Y15hDNk.js`),__vite__mapDeps([227,217])))},{id:`twig`,name:`Twig`,import:(()=>G(()=>import(`./twig-CpPqtXbv.js`),__vite__mapDeps([228,120,128,129,130,116,102,142,103,143,112,113,144,101,107,108,145,199,109,122,146,132,147,105])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`],import:(()=>G(()=>import(`./typescript-BOZhZjjY.js`),__vite__mapDeps([229,113])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>G(()=>import(`./typespec-Bh5jd8rz.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>G(()=>import(`./typst-C6MhiFK2.js`),[]))},{id:`v`,name:`V`,import:(()=>G(()=>import(`./v-CXlxc9u3.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>G(()=>import(`./vala-BTPBaKbS.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>G(()=>import(`./vb-CzLsWrEq.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>G(()=>import(`./verilog-C_vuNZ2r.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>G(()=>import(`./vhdl-B68Sbb2s.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>G(()=>import(`./viml-nrwT1ftb.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>G(()=>import(`./vue-C_Xq0ko2.js`),__vite__mapDeps([230,102,115,101,103,108,231,113])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>G(()=>import(`./vue-html-DKDWA0fy.js`),__vite__mapDeps([232,102,115,101,103,108,231,113])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>G(()=>import(`./vue-vine-Doq9x-V7.js`),__vite__mapDeps([233,102,115,101,103,108,189,231,113,111,105,221])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>G(()=>import(`./vyper-yEAtMWY8.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>G(()=>import(`./wasm-D716BpP0.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>G(()=>import(`./wenyan-DQ_GJzFi.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>G(()=>import(`./wgsl-C4r57m6o.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>G(()=>import(`./wikitext-CSgQLfV4.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>G(()=>import(`./wit-F-L0h1o6.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>G(()=>import(`./wolfram-CjWkRarV.js`),[]))},{id:`xml`,name:`XML`,import:(()=>G(()=>import(`./xml-wHYwXszZ.js`),__vite__mapDeps([234,107,109])))},{id:`xsl`,name:`XSL`,import:(()=>G(()=>import(`./xsl-7XpO9mGM.js`),__vite__mapDeps([235,107,109])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>G(()=>import(`./yaml-Bsm5rW0k.js`),__vite__mapDeps([236,147])))},{id:`zenscript`,name:`ZenScript`,import:(()=>G(()=>import(`./zenscript-Os3j9H_R.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>G(()=>import(`./zig-B93JMj6E.js`),[]))}],bG=Object.fromEntries(yG.map(e=>[e.id,e.import])),xG=Object.fromEntries(yG.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),SG={...bG,...xG},CG=[{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>G(()=>import(`./andromeeda-DdLNEo5e.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>G(()=>import(`./aurora-x-Dbzr9yQN.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>G(()=>import(`./ayu-dark-DT2ykFir.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>G(()=>import(`./catppuccin-frappe-CFL60cUb.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>G(()=>import(`./catppuccin-latte-w1jtJ9Tq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>G(()=>import(`./catppuccin-macchiato--yIGohtf.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>G(()=>import(`./catppuccin-mocha-3r_vlu6T.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>G(()=>import(`./dark-plus-BG-k64xO.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>G(()=>import(`./dracula-CxzDAQ5_.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>G(()=>import(`./dracula-soft-C3_FmKIp.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>G(()=>import(`./everforest-dark-BhV8t-2H.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>G(()=>import(`./everforest-light-C9AGdBc7.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>G(()=>import(`./github-dark-k7bIqKE6.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>G(()=>import(`./github-dark-default-BYQei4yh.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>G(()=>import(`./github-dark-dimmed-Bvmsnx6B.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>G(()=>import(`./github-dark-high-contrast-6YcGML2A.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>G(()=>import(`./github-light-B9Xj5QvQ.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>G(()=>import(`./github-light-default-DF8zFKIh.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>G(()=>import(`./github-light-high-contrast-DHPldgid.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>G(()=>import(`./gruvbox-dark-hard-BxyGg139.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>G(()=>import(`./gruvbox-dark-medium-DuoX-sP4.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>G(()=>import(`./gruvbox-dark-soft-15EOOiCQ.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>G(()=>import(`./gruvbox-light-hard-Dd1yAQsj.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>G(()=>import(`./gruvbox-light-medium-nzFRFK9T.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>G(()=>import(`./gruvbox-light-soft-DnUWeEb_.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>G(()=>import(`./houston-DHXmbLxv.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>G(()=>import(`./kanagawa-dragon-BWpk9Mq4.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>G(()=>import(`./kanagawa-lotus-CKLe8F_4.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>G(()=>import(`./kanagawa-wave-CnXqIWol.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>G(()=>import(`./laserwave-WVKNUQvj.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>G(()=>import(`./light-plus-DPoHPF0_.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>G(()=>import(`./material-theme-CXDd0Fw8.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>G(()=>import(`./material-theme-darker-B0Net00K.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>G(()=>import(`./material-theme-lighter-B2dw6nsk.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>G(()=>import(`./material-theme-ocean-B96WbQ2Z.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>G(()=>import(`./material-theme-palenight-CDmqL87N.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>G(()=>import(`./min-dark-DhXoLJQp.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>G(()=>import(`./min-light-BMmNCMwj.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>G(()=>import(`./monokai-D9qSSba5.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>G(()=>import(`./night-owl-8Ep6hr5W.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>G(()=>import(`./nord-CJQk-niI.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>G(()=>import(`./one-dark-pro-BTKhVGVu.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>G(()=>import(`./one-light-_OzQUqrV.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>G(()=>import(`./plastic-9PBwuRma.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>G(()=>import(`./poimandres-C1hxasus.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>G(()=>import(`./red-FtpQZApq.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>G(()=>import(`./rose-pine-DUL6IgMk.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>G(()=>import(`./rose-pine-dawn-DRU2sbgU.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>G(()=>import(`./rose-pine-moon-B_Fk4BIm.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>G(()=>import(`./slack-dark-CqrNX_ip.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>G(()=>import(`./slack-ochin-Beh97w-u.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>G(()=>import(`./snazzy-light-jcvulp_1.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>G(()=>import(`./solarized-dark-DSkUIuTh.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>G(()=>import(`./solarized-light-B2N6scgo.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>G(()=>import(`./synthwave-84-CN18Oagb.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>G(()=>import(`./tokyo-night-DmosIk2J.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>G(()=>import(`./vesper-BoVbJQEj.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>G(()=>import(`./vitesse-black-CaxAW-AQ.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>G(()=>import(`./vitesse-dark-DDmm5cB_.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>G(()=>import(`./vitesse-light-DmqsYjE6.js`),[]))}],wG=Object.fromEntries(CG.map(e=>[e.id,e.import]));var TG=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function EG(){return 2147483648}function DG(){return typeof performance<`u`?performance.now():Date.now()}const OG=(e,t)=>e+(t-e%t)%t;async function kG(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=EG();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);i=Math.min(i,e+100663296);let a=Math.min(n,OG(Math.max(e,i),65536)),s=o(a);if(s)return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:DG,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n={env:d,wasi_snapshot_preview1:d},a=await e(n);t=a.memory,i(t.buffer),Object.assign(r,a),r.UTF8ToString=u}return await f(),r}var AG=Object.defineProperty,jG=(e,t,n)=>t in e?AG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MG=(e,t,n)=>jG(e,typeof t==`symbol`?t:t+``,n);let NG=null;function PG(e){throw new TG(e.UTF8ToString(e.getLastOnigError()))}var FG=class e{constructor(t){MG(this,`utf16Length`),MG(this,`utf8Length`),MG(this,`utf16Value`),MG(this,`utf8Value`),MG(this,`utf16OffsetToUtf8`),MG(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e=55296&&r<=56319&&e+1=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}};const IG=class e{constructor(t){if(MG(this,`id`,++e.LAST_ID),MG(this,`_onigBinding`),MG(this,`content`),MG(this,`utf16Length`),MG(this,`utf8Length`),MG(this,`utf16OffsetToUtf8`),MG(this,`utf8OffsetToUtf16`),MG(this,`ptr`),!NG)throw new TG(`Must invoke loadWasm first.`);this._onigBinding=NG,this.content=t;let n=new FG(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=NG.omalloc(1e4),e._sharedPtrInUse=!0,NG.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(NG)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};MG(IG,`LAST_ID`,0),MG(IG,`_sharedPtr`,0),MG(IG,`_sharedPtrInUse`,!1);let LG=IG;var RG=class{constructor(e){if(MG(this,`_onigBinding`),MG(this,`_ptr`),!NG)throw new TG(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),zG(n)?n=await n.instantiator(t):BG(n)?n=await n.default(t):(VG(n)&&(n=n.data),HG(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await qG(n)(t):await JG(n)(t):UG(n)||n instanceof WebAssembly.Module?n=await KG(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await KG(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return WG=t(),WG}function KG(e){return t=>WebAssembly.instantiate(e,t)}function qG(e){return t=>WebAssembly.instantiateStreaming(e,t)}function JG(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function YG(e){return e&&await GG(e),{createScanner(e){return new RG(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new LG(e)}}}const XG=gG({langs:SG,themes:wG,engine:()=>YG(G(()=>import(`./wasm-CDMn1mOJ.js`),[]))}),{codeToHtml:nve,codeToHast:rve,codeToTokens:ive,codeToTokensBase:ave,codeToTokensWithThemes:ove,getSingletonHighlighter:ZG,getLastGrammarState:sve}=vG(XG,{guessEmbeddedLanguages:oW}),QG=(function(e){if(e==null)return rK;if(typeof e==`function`)return nK(e);if(typeof e==`object`)return Array.isArray(e)?$G(e):eK(e);if(typeof e==`string`)return tK(e);throw Error(`Expected function, string, or object as test`)});function $G(e){let t=[],n=-1;for(;++n`:``))+`)`})}return u;function u(){let l=oK,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=lK(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==sK)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d{let n=dK(t),r=n.match(/(.+)\{:([\w-]+)\}$/);if(r)return{type:`inline`,code:r[1]??n,lang:r.at(2)}}},uve=(e,t)=>{let n=t.children[0];if(!n||n.type!==`element`||n.tagName!==`code`||!n.properties)return;let r=n.properties.className,i=Array.isArray(r)?r.find(e=>typeof e==`string`&&e.startsWith(`language-`)):void 0;return{type:`pre`,lang:typeof i==`string`?i.slice(9):void 0,code:dK(n),meta:n.data?.meta??n.properties.metastring?.toString()??``}};function dve(e,t){let{addLanguageClass:n=!1,parseMetaString:r,cache:i,defaultLanguage:a,fallbackLanguage:o,onError:s,stripEndNewline:c=!0,inline:l=!1,lazy:u=!1,...d}=t;function f(t,r,a=``,o={}){let l=`${t}:${a}:${r}`,u=i?.get(l);if(u)return u;let f={...d,lang:t,meta:{...d.meta,...o,__raw:a}};n&&(f.transformers=[...f.transformers??[],{name:`rehype-shiki:code-language-class`,code(e){return this.addClassToHast(e,`language-${t}`),e}}]),c&&r.endsWith(` -`)&&(r=r.slice(0,-1));try{let t=e.codeToHast(r,f);return i?.set(l,t),t}catch(e){if(s)s(e);else throw e}}return t=>{let n=[];if(uK(t,`element`,(i,c,d)=>{let p;if(!d||c==null)return;if(i.tagName===`pre`)p=uve;else if(i.tagName===`code`&&l)p=lve[l];else return;let m=p(t,i);if(!m)return;let h,g=!1;if(m.lang?e.getLoadedLanguages().includes(m.lang)||eW(m.lang)?h=m.lang:u?(g=!0,h=m.lang):o&&(h=o):h=a,!h)return;let _=m.meta?r?.(m.meta,i,t):void 0,v=e=>{let t=f(e,m.code,m.meta,_??{});if(t){if(m.type===`inline`){let e=t.children[0];e.type===`element`&&e.tagName===`pre`&&(e.tagName=`span`)}d.children[c]=t}};if(g)try{n.push(e.loadLanguage(h).then(()=>v(h)))}catch(e){if(o)return v(o);if(s)s(e);else throw e}else v(h);return`skip`}),n.length>0){async function e(){await Promise.all(n)}return e()}}}const fve=function(e={}){let t=(`themes`in e?Object.values(e.themes):[e.theme]).filter(Boolean),n=e.langs||Object.keys(SG),r=e.langAlias||{},i;return async a=>{i||=ZG({themes:t,langs:n,langAlias:r}).then(t=>dve.call(this,t,e));let o=await i;return o(a)}},pK=/[#.]/g;function pve(e,t){let n=e||``,r={},i=0,a,o;for(;il&&(l=e):e&&(l!==void 0&&l>-1&&c.push(` -`.repeat(l)||` `),l=-1,c.push(e))}return c.join(``)}function AK(e,t,n){return e.type===`element`?Lve(e,t,n):e.type===`text`?n.whitespace===`normal`?jK(e,n):Rve(e):[]}function Lve(e,t,n){let r=MK(e,n),i=e.children||[],a=-1,o=[];if(Fve(e))return o;let s,c;for(EK(e)||OK(e)&&xK(t,e,OK)?c=` -`:Pve(e)?(s=2,c=2):kK(e)&&(s=1,c=1);++a15?`…`+s.slice(i-15,i):s.slice(0,i);var u;u=a+15":`>`,"<":`<`,'"':`"`,"'":`'`},Jve=/[&><"']/g;function Yve(e){return String(e).replace(Jve,e=>qve[e])}var IK=function e(t){return t.type===`ordgroup`||t.type===`color`?t.body.length===1?e(t.body[0]):t:t.type===`font`?e(t.body):t},Xve=function(e){var t=IK(e);return t.type===`mathord`||t.type===`textord`||t.type===`atom`},Zve=function(e){if(!e)throw Error(`Expected non-null, but got `+String(e));return e},Qve=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},LK={contains:Uve,deflt:Wve,escape:Yve,hyphenate:Kve,getBaseElem:IK,isCharacterBox:Xve,protocolFromUrl:Qve},RK={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format `},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color `,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function $ve(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!=`string`)return n.enum[0];switch(n){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{}}}var zK=class{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={},RK)if(RK.hasOwnProperty(t)){var n=RK[t];this[t]=e[t]===void 0?$ve(n):n.processor?n.processor(e[t]):e[t]}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new FK(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=LK.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}var n=typeof this.trust==`function`?this.trust(e):this.trust;return!!n}},BK=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return YK[eye[this.id]]}sub(){return YK[tye[this.id]]}fracNum(){return YK[nye[this.id]]}fracDen(){return YK[rye[this.id]]}cramp(){return YK[iye[this.id]]}text(){return YK[aye[this.id]]}isTight(){return this.size>=2}},VK=0,HK=1,UK=2,WK=3,GK=4,KK=5,qK=6,JK=7,YK=[new BK(VK,0,!1),new BK(HK,0,!0),new BK(UK,1,!1),new BK(WK,1,!0),new BK(GK,2,!1),new BK(KK,2,!0),new BK(qK,3,!1),new BK(JK,3,!0)],eye=[GK,KK,GK,KK,qK,JK,qK,JK],tye=[KK,KK,KK,KK,JK,JK,JK,JK],nye=[UK,WK,GK,KK,qK,JK,qK,JK],rye=[WK,WK,KK,KK,JK,JK,JK,JK],iye=[HK,HK,WK,WK,KK,KK,JK,JK],aye=[VK,HK,UK,WK,UK,WK,UK,WK],XK={DISPLAY:YK[VK],TEXT:YK[UK],SCRIPT:YK[GK],SCRIPTSCRIPT:YK[qK]},ZK=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function oye(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var QK=[];ZK.forEach(e=>e.blocks.forEach(e=>QK.push(...e)));function $K(e){for(var t=0;t=QK[t]&&e<=QK[t+1])return!0;return!1}var eq=80,sye=function(e,t){return`M95,`+(622+e+t)+` +\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function vW(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=rU);let l=yW(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!dW(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!YU(e,t,n))&&s.push(``),s.join(``)}function yW(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=bW(e,i,t[i]);r&&n.push(r)}}for(;++rFU(n,e.alternative)&&(o=e.alternative),s=o+OU(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?_W.single:_W.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}const xW=[`<`,`&`];function SW(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:OU(e.value,Object.assign({},r.settings.characterReferences,{subset:xW}))}function CW(e,t,n,r){return r.settings.allowDangerousHtml?e.value:SW(e,t,n,r)}function wW(e,t,n,r){return r.all(e)}const TW=aU(`type`,{invalid:EW,unknown:DW,handlers:{comment:NU,doctype:PU,element:vW,raw:CW,root:wW,text:SW}});function EW(e){throw Error("Expected node, not `"+e+"`")}function DW(e){let t=e;throw Error("Cannot compile unknown node `"+t.type+"`")}const OW={},kW={},AW=[];function jW(e,t){let n=t||OW,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");let a={one:MW,all:NW,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||CH,characterReferences:n.characterReferences||kW,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?rU:nU,quote:r,alternative:i};return a.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function MW(e,t,n){return TW(e,t,n,this)}function NW(e){let t=[],n=e&&e.children||AW,r=-1;for(;++re.default||e)}function RW(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function zW(e){return e===`ansi`||RW(e)}function BW(e){return e===`none`}function VW(e){return BW(e)}function HW(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(/\s+/g);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function UW(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;ee);function n(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(re&&i[e])}const KW=`light-dark()`,qW=[`color`,`background-color`];function JW(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return ne-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offsett-e.offset).sort((e,t)=>e-t);return t.length?JW(e,t):e})):e}function XW(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>ZW(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&qW.includes(a))if(r===KW&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new zB('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function ZW(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&oV.Italic&&(t[`font-style`]=`italic`),e.fontStyle&oV.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&oV.Underline&&n.push(`underline`),e.fontStyle&oV.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function QW(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}const $W=new WeakMap;function eG(e,t){$W.set(e,t)}function tG(e){return $W.get(e)}var nG=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(IW(n).map(e=>[e,SH])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return rG(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function rG(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function iG(e,t){if(!(e instanceof nG))throw new zB(`Invalid grammar state`);return e.getInternalStack(t)}function aG(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new zB(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}else{let t=r.lines[e.line];if(t===void 0)throw new zB(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new zB(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=WW(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));oG(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(!this.options.decorations?.length)return;let n=t(this),r=n.decorations.flatMap(e=>[e.start.offset,e.end.offset]),i=YW(e,r);return i},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new zB(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;ee);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&HW(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.linea(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function oG(e){for(let t=0;tn.end.offset)throw new zB(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;rNumber.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function hG(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9){let e=fG[r];e&&t.push({type:`setDecoration`,value:fG[r]})}else if(r<=29){let e=fG[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:dG[r-30]}});else if(r===38){let n=mG(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:dG[r-40]}});else if(r===48){let n=mG(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:dG[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:dG[r-100+8]}})}return t}function gG(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=pG(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=hG(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(aMath.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),o=gG();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=FW(i,r),o=FW(o,r),n.decorations.has(`dim`)&&(i=bG(i));let s=oV.None;return n.decorations.has(`bold`)&&(s|=oV.Bold),n.decorations.has(`italic`)&&(s|=oV.Italic),n.decorations.has(`underline`)&&(s|=oV.Underline),n.decorations.has(`strikethrough`)&&(s|=oV.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function bG(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,`0`);return`#${t[1]}${t[2]}${e}`}else if(t[2])return`#${t[1]}${t[2]}80`;else return`#${Array.from(t[1]).map(e=>`${e}${e}`).join(``)}80`;let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function xG(e,t,n={}){let{lang:r=`text`,theme:i=e.getLoadedThemes()[0]}=n;if(RW(r)||BW(i))return UW(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(i);if(r===`ansi`)return yG(a,t,n);let s=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new zB(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new zB(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return CG(t,s,a,o,n)}function SG(...e){if(e.length===2)return tG(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(RW(i)||BW(a))throw new zB(`Plain language does not have grammar state`);if(i===`ansi`)throw new zB(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new nG(wG(n,c,o,s,r).stateStack,c.name,o.name)}function CG(e,t,n,r,i){let a=wG(e,t,n,r,i),o=new nG(wG(e,t,n,r,i).stateStack,t.name,n.name);return eG(a.tokens,o),a.tokens}function wG(e,t,n,r,i){let a=PW(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=UW(e),l=i.grammarState?iG(i.grammarState,n.name)??SH:i.grammarContextCode==null?SH:wG(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;ee.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r({scopeName:e}))}function EG(e,t){let n=[];for(let r=0,i=t.length;r=0&&i>=0;)DG(e[r],n[i])&&--r,--i;return r===-1}function kG(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(OG(e,t,n)){r.push(a);break}return r}function AG(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=xG(e,t,{...n,theme:r.theme}),a=tG(i),o=typeof r.theme==`string`?r.theme:r.theme.name;return{tokens:i,state:a,theme:o}}),a=jG(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:c,...l}=e[t][i];o.variants[r[n].color]=l}),o})),s=i[0].state?new nG(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&eG(o,s),o}function jG(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;re[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;te[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:t.color===l?1:0);if(f.length===0)throw new zB("`themes` option must not be empty");let p=AG(e,t,n);if(c=tG(p),l&&KW!==l&&!f.find(e=>e.color===l))throw new zB(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>XW(e,h,u,l,d))),c&&eG(a,c);let g=f.map(e=>PW(e.theme,n));i=NG(f,m,g,u,l,`fg`,d),r=NG(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=PW(n.theme,n);a=xG(e,t,n);let l=e.getTheme(n.theme);r=FW(l.bg,s),i=FW(l.fg,s),o=l.name,c=tG(a)}else throw new zB("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function NG(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=FW(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===KW&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new zB('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=FW(t[r][a],n[r])||`inherit`,s=FW(t[i][a],n[i])||`inherit`;return`light-dark(${o}, ${s});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}function PG(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>PG(e,t,n),codeToTokens:(t,n)=>MG(e,t,n)}){let i=t;for(let e of lG(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=MG(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=IG(a):d===`never`&&(a=LG(a)),f&&(a=RG(a));let p={...r,get source(){return i}};for(let e of lG(n))a=e.tokens?.call(p,a)||a;return FG(a,{...n,fg:o,bg:s,themeName:c,rootStyle:l},p,u)}function FG(e,t,n,r=tG(e)){let i=lG(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={type:`element`,tagName:`pre`,properties:{class:`shiki ${t.themeName||``}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...c!==!1&&c!=null?{tabindex:c.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith(`_`)))},children:[]},u={type:`element`,tagName:`code`,properties:{},children:a},d=[],f={...n,structure:s,addClassToHast:HW,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return l},get code(){return u},get lines(){return d}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:` +`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=QW(a.htmlStyle||ZW(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(f,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(f,n,t+1)||n;d.push(n),a.push(n)}}),s===`classic`){for(let e of i)u=e?.code?.call(f,u)||u;l.children.push(u);for(let e of i)l=e?.pre?.call(f,l)||l;o.children.push(l)}let p=o;for(let e of i)p=e?.root?.call(f,p)||p;return r&&eG(p,r),p}function IG(e){return e.map(e=>{let t=[],n=``,r=0;return e.forEach((i,a)=>{let o=i.fontStyle&&(i.fontStyle&oV.Underline||i.fontStyle&oV.Strikethrough),s=!o;s&&i.content.match(/^\s+$/)&&e[a+1]?(r||=i.offset,n+=i.content):n?(s?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=``):t.push(i)}),t})}function LG(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function RG(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t[t.length-1],r=QW(e.htmlStyle||ZW(e)),i=QW(n.htmlStyle||ZW(n)),a=e.fontStyle&&(e.fontStyle&oV.Underline||e.fontStyle&oV.Strikethrough),o=n.fontStyle&&(n.fontStyle&oV.Underline||n.fontStyle&oV.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}const zG=jW;function BG(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>PG(e,t,n),codeToTokens:(t,n)=>MG(e,t,n)},i=zG(PG(e,t,n,r));for(let e of lG(n))i=e.postprocess?.call(r,i,n)||i;return i}const VG={light:`#333333`,dark:`#bbbbbb`},HG={light:`#fffffe`,dark:`#1e1e1e`},UG=`__shiki_resolved`;function WG(e){if(e?.[UG])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?VG.light:VG.dark,n||=t.type===`light`?HG.light:HG.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,UG,{enumerable:!1,writable:!1,value:!0}),t}async function GG(e){return Array.from(new Set((await Promise.all(e.filter(e=>!zW(e)).map(async e=>await LW(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function KG(e){let t=await Promise.all(e.map(async e=>VW(e)?null:WG(await LW(e))));return t.filter(e=>!!e)}function xve(e,t=3){t>3||console.trace(`[SHIKI DEPRECATE]: ${e}`)}var qG=class extends Error{constructor(e){super(e),this.name=`ShikiError`}},Sve=class extends xH{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=WG(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=$B.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new qG(`Circular alias \`${Array.from(t).join(` -> `)} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new qG(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}},Cve=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}};let JG=0;function wve(e){JG+=1,e.warnings!==!1&&JG>=10&&JG%10==0&&console.warn(`[Shiki] ${JG} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new qG("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(WG),i=new Cve(e.engine,n),a=new Sve(i,r,n,e.langAlias),o;function s(e){g();let t=a.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new qG(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=a.getTheme(e);if(!t)throw new qG(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);o!==e&&(a.setTheme(t),o=e);let n=a.getColorMap();return{theme:t,colorMap:n}}function u(){return g(),a.getLoadedThemes()}function d(){return g(),a.getLoadedLanguages()}function f(...e){g(),a.loadLanguages(e.flat(1))}async function p(...e){return f(await GG(e))}function m(...e){g();for(let t of e.flat(1))a.loadTheme(t)}async function h(...e){return g(),m(await KG(e))}function g(){if(t)throw new qG(`Shiki instance has been disposed`)}function _(){t||(t=!0,a.dispose(),--JG)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function Tve(e){e.engine||xve("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([KG(e.themes||[]),GG(e.langs||[]),e.engine]);return wve({...e,themes:t,langs:n,engine:r})}async function Eve(e){let t=await Tve(e);return{getLastGrammarState:(...e)=>SG(t,...e),codeToTokensBase:(e,n)=>xG(t,e,n),codeToTokensWithThemes:(e,n)=>AG(t,e,n),codeToTokens:(e,n)=>MG(t,e,n),codeToHast:(e,n)=>PG(t,e,n),codeToHtml:(e,n)=>BG(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Dve(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(zW(n))return[];n=e.langAlias?.[n]||n;let r=t[n];if(!r)throw new zB(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(VW(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new zB(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await Eve({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function Ove(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else return t=e({...n,themes:n.themes||[],langs:n.langs||[]}),t}return n}function kve(e,t){let n=Ove(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){let n=await r(e,t);return n.codeToHtml(e,t)},async codeToHast(e,t){let n=await r(e,t);return n.codeToHast(e,t)},async codeToTokens(e,t){let n=await r(e,t);return n.codeToTokens(e,t)},async codeToTokensBase(e,t){let n=await r(e,t);return n.codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){let n=await r(e,t);return n.codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){let r=await n({langs:[t.lang],themes:[t.theme]});return r.getLastGrammarState(e,t)}}}const YG=[{id:`abap`,name:`ABAP`,import:(()=>G(()=>import(`./abap-9bpfglwS.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>G(()=>import(`./actionscript-3-ociMAPfw.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>G(()=>import(`./ada-D60N0wAC.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>G(()=>import(`./angular-html-RKLz1hEo.js`),__vite__mapDeps([99,100,101,102,103])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>G(()=>import(`./angular-ts-BI4FB_fP.js`),__vite__mapDeps([104,100,101,102,103,105])))},{id:`apache`,name:`Apache Conf`,import:(()=>G(()=>import(`./apache-BSx-mvDL.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>G(()=>import(`./apex-DNlz8il8.js`),[]))},{id:`apl`,name:`APL`,import:(()=>G(()=>import(`./apl-C6UhYxwp.js`),__vite__mapDeps([106,102,101,103,107,108,109])))},{id:`applescript`,name:`AppleScript`,import:(()=>G(()=>import(`./applescript-Cnn30Ti0.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>G(()=>import(`./ara-B86Dgxh4.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>G(()=>import(`./asciidoc-ybVjzsm4.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>G(()=>import(`./asm-Dcw9Ny5m.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>G(()=>import(`./astro-BDo1Nf1q.js`),__vite__mapDeps([110,102,103,108,111,112,113])))},{id:`awk`,name:`AWK`,import:(()=>G(()=>import(`./awk-BCRtMALa.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>G(()=>import(`./ballerina-Dxu06ySH.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>G(()=>import(`./bat-C4k1NvZt.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>G(()=>import(`./beancount-BamUO-hl.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>G(()=>import(`./berry-BlxHAoH2.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>G(()=>import(`./bibtex-DEVq7xTG.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>G(()=>import(`./bicep-o62yijGv.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>G(()=>import(`./blade-MM1ivGYS.js`),__vite__mapDeps([114,102,115,101,103,107,108,116,109])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>G(()=>import(`./bsl-_9kqzR--.js`),__vite__mapDeps([117,118])))},{id:`c`,name:`C`,import:(()=>G(()=>import(`./c-1Hxpehpy.js`),__vite__mapDeps([119,120])))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>G(()=>import(`./cadence-CKllqIEj.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>G(()=>import(`./cairo-Bl9HOvxV.js`),__vite__mapDeps([121,122])))},{id:`clarity`,name:`Clarity`,import:(()=>G(()=>import(`./clarity-C1Xdeg_i.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>G(()=>import(`./clojure-BmNDMrDJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>G(()=>import(`./cmake-yU80Of_C.js`),__vite__mapDeps([123,124])))},{id:`cobol`,name:`COBOL`,import:(()=>G(()=>import(`./cobol-CYoQMlYW.js`),__vite__mapDeps([125,102,101,103,107])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>G(()=>import(`./codeowners-BHhicgi1.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>G(()=>import(`./codeql-C29lx3c8.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>G(()=>import(`./coffee-KjboF6NF.js`),__vite__mapDeps([126,103])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>G(()=>import(`./common-lisp-DImrk-mG.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>G(()=>import(`./coq-C6XM8e7q.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>G(()=>import(`./cpp-6uhgRkJM.js`),__vite__mapDeps([127,120,128,129,130,116])))},{id:`crystal`,name:`Crystal`,import:(()=>G(()=>import(`./crystal-DJHo638b.js`),__vite__mapDeps([131,120,102,101,103,132,116])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>G(()=>import(`./csharp-CMLbDB-w.js`),__vite__mapDeps([133,134])))},{id:`css`,name:`CSS`,import:(()=>G(()=>import(`./css-CXhRAQ2n.js`),__vite__mapDeps([135,102])))},{id:`csv`,name:`CSV`,import:(()=>G(()=>import(`./csv-BHoUcHm8.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>G(()=>import(`./cue-HDaT_dTp.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>G(()=>import(`./cypher-M3UrISUQ.js`),[]))},{id:`d`,name:`D`,import:(()=>G(()=>import(`./d-btGIEij_.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>G(()=>import(`./dart-DlvdYpMI.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>G(()=>import(`./dax-Dcym1tZQ.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>G(()=>import(`./desktop-BRltzlkZ.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>G(()=>import(`./diff-NHAsyJhv.js`),__vite__mapDeps([136,137])))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>G(()=>import(`./docker-Dd3fVAQC.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>G(()=>import(`./dotenv-CNNfYLdk.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>G(()=>import(`./dream-maker-DbnhR-wH.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>G(()=>import(`./edge-p-ARpia1.js`),__vite__mapDeps([138,102,115,101,103,113])))},{id:`elixir`,name:`Elixir`,import:(()=>G(()=>import(`./elixir-CJLMrTRs.js`),__vite__mapDeps([139,102,101,103])))},{id:`elm`,name:`Elm`,import:(()=>G(()=>import(`./elm-BMVz0nRN.js`),__vite__mapDeps([140,120,129])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>G(()=>import(`./emacs-lisp-bSNO03KB.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>G(()=>import(`./erb-BbmM0IYl.js`),__vite__mapDeps([141,120,128,129,130,116,102,142,103,143,112,113,144,101,107,145,146,132,109,147])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>G(()=>import(`./erlang-B14SbhrR.js`),__vite__mapDeps([148,149])))},{id:`fennel`,name:`Fennel`,import:(()=>G(()=>import(`./fennel-M13aQxW4.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>G(()=>import(`./fish-BBDJbWqF.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>G(()=>import(`./fluent-AxL4iS6p.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>G(()=>import(`./fortran-fixed-form-bw89GeE4.js`),__vite__mapDeps([150,151])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>G(()=>import(`./fortran-free-form-CBlLX79G.js`),__vite__mapDeps([152,151])))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>G(()=>import(`./fsharp-Hgh5PYQA.js`),__vite__mapDeps([153,149])))},{id:`gdresource`,name:`GDResource`,import:(()=>G(()=>import(`./gdresource-CUzI-cUQ.js`),__vite__mapDeps([154,155,156])))},{id:`gdscript`,name:`GDScript`,import:(()=>G(()=>import(`./gdscript-F11G2579.js`),__vite__mapDeps([157,155])))},{id:`gdshader`,name:`GDShader`,import:(()=>G(()=>import(`./gdshader-DY7pnO4l.js`),__vite__mapDeps([158,156])))},{id:`genie`,name:`Genie`,import:(()=>G(()=>import(`./genie-DV4QnefI.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>G(()=>import(`./gherkin-S4lUq6S4.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>G(()=>import(`./git-commit-BpZ9iDq0.js`),__vite__mapDeps([159,137])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>G(()=>import(`./git-rebase-B7h1d5d5.js`),__vite__mapDeps([160,132])))},{id:`gleam`,name:`Gleam`,import:(()=>G(()=>import(`./gleam-DO4VvLeC.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>G(()=>import(`./glimmer-js-Bu85AOc8.js`),__vite__mapDeps([161,102,101,103,113])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>G(()=>import(`./glimmer-ts-C-Kl47e9.js`),__vite__mapDeps([162,102,101,103,113])))},{id:`glsl`,name:`GLSL`,import:(()=>G(()=>import(`./glsl-DYKkOYZW.js`),__vite__mapDeps([163,120,129])))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>G(()=>import(`./gnuplot-D8I-EhIQ.js`),[]))},{id:`go`,name:`Go`,import:(()=>G(()=>import(`./go-C__IfQT1.js`),__vite__mapDeps([164,165])))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>G(()=>import(`./graphql-Dqagbjjq.js`),__vite__mapDeps([166,142,103,143,112,113])))},{id:`groovy`,name:`Groovy`,import:(()=>G(()=>import(`./groovy-DM-nO1EZ.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>G(()=>import(`./hack-Bu92NL2m.js`),__vite__mapDeps([167,102,101,103,116])))},{id:`haml`,name:`Ruby Haml`,import:(()=>G(()=>import(`./haml-DYU5Mqin.js`),__vite__mapDeps([168,102,144,103])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>G(()=>import(`./handlebars-DKMgiIbq.js`),__vite__mapDeps([169,102,101,103,147])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>G(()=>import(`./haskell-CEAyRRw1.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>G(()=>import(`./haxe-CKt-jgKz.js`),__vite__mapDeps([170,171])))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>G(()=>import(`./hcl-DLKPwsgV.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>G(()=>import(`./hjson-XvYI7Njd.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>G(()=>import(`./hlsl-B3snUh6r.js`),__vite__mapDeps([172,173])))},{id:`html`,name:`HTML`,import:(()=>G(()=>import(`./html-BZoqaXf0.js`),__vite__mapDeps([174,102,101,103])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>G(()=>import(`./html-derivative-DKc8xbJR.js`),__vite__mapDeps([175,102,115,101,103])))},{id:`http`,name:`HTTP`,import:(()=>G(()=>import(`./http-MSHrrwRY.js`),__vite__mapDeps([176,142,103,143,112,113,107,108,132,109])))},{id:`hxml`,name:`HXML`,import:(()=>G(()=>import(`./hxml-Dh5DeIFj.js`),__vite__mapDeps([177,171])))},{id:`hy`,name:`Hy`,import:(()=>G(()=>import(`./hy-YXpPDnHe.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>G(()=>import(`./imba-Dz_HKeKr.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>G(()=>import(`./ini-Dcm6qhk1.js`),[]))},{id:`java`,name:`Java`,import:(()=>G(()=>import(`./java-Z7KQ3nEV.js`),__vite__mapDeps([178,107])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`],import:(()=>G(()=>import(`./javascript-CoFC1LC_.js`),__vite__mapDeps([179,103])))},{id:`jinja`,name:`Jinja`,import:(()=>G(()=>import(`./jinja-DExrtk5M.js`),__vite__mapDeps([180,102,101,103])))},{id:`jison`,name:`Jison`,import:(()=>G(()=>import(`./jison-QYFXoTsf.js`),__vite__mapDeps([181,103])))},{id:`json`,name:`JSON`,import:(()=>G(()=>import(`./json-BECfSVJ5.js`),__vite__mapDeps([182,108])))},{id:`json5`,name:`JSON5`,import:(()=>G(()=>import(`./json5-Dk8HYSkk.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>G(()=>import(`./jsonc-OZJKK0dB.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>G(()=>import(`./jsonl-BPcKmbkE.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>G(()=>import(`./jsonnet-VWv-jk-X.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>G(()=>import(`./jssm-BNoG84vH.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>G(()=>import(`./jsx-Ke7R2tcQ.js`),__vite__mapDeps([183,143])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>G(()=>import(`./julia-CFG6gbIc.js`),__vite__mapDeps([184,120,128,129,130,116,103,122,185])))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>G(()=>import(`./kotlin-DC198Zdv.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>G(()=>import(`./kusto-TKpXneLP.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>G(()=>import(`./latex-JBMJRhlk.js`),__vite__mapDeps([186,185,187])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>G(()=>import(`./lean-Bcrl2rE4.js`),[]))},{id:`less`,name:`Less`,import:(()=>G(()=>import(`./less-BDKf7FXw.js`),__vite__mapDeps([188,189])))},{id:`liquid`,name:`Liquid`,import:(()=>G(()=>import(`./liquid-BffiuKJa.js`),__vite__mapDeps([190,102,101,103,108])))},{id:`llvm`,name:`LLVM IR`,import:(()=>G(()=>import(`./llvm-MaRTjixP.js`),[]))},{id:`log`,name:`Log file`,import:(()=>G(()=>import(`./log-CoOxsRlW.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>G(()=>import(`./logo-DnzSrnoG.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>G(()=>import(`./lua-DceDs3NN.js`),__vite__mapDeps([191,120,145])))},{id:`luau`,name:`Luau`,import:(()=>G(()=>import(`./luau-EMYoTjNx.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>G(()=>import(`./make-fLKYEh-f.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>G(()=>import(`./markdown-YcIGwGaY.js`),__vite__mapDeps([192,149])))},{id:`marko`,name:`Marko`,import:(()=>G(()=>import(`./marko-BuqmDWiT.js`),__vite__mapDeps([193,102,189,105,113])))},{id:`matlab`,name:`MATLAB`,import:(()=>G(()=>import(`./matlab-BuphcKqY.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>G(()=>import(`./mdc-XZ5XS5G8.js`),__vite__mapDeps([194,102,115,101,103,149,147])))},{id:`mdx`,name:`MDX`,import:(()=>G(()=>import(`./mdx-C46OAT8W.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>G(()=>import(`./mermaid-DVqdMRwM.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>G(()=>import(`./mipsasm-Cpca58h_.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>G(()=>import(`./mojo-ZmBy9VXI.js`),[]))},{id:`move`,name:`Move`,import:(()=>G(()=>import(`./move-DarwfKOa.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>G(()=>import(`./narrat-CVQxXxVP.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>G(()=>import(`./nextflow-DpFhU96a.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>G(()=>import(`./nginx-B9yym_4p.js`),__vite__mapDeps([195,120,145])))},{id:`nim`,name:`Nim`,import:(()=>G(()=>import(`./nim-DwEagdh2.js`),__vite__mapDeps([196,120,102,129,101,103,107,149,109])))},{id:`nix`,name:`Nix`,import:(()=>G(()=>import(`./nix-M9WyUlxt.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>G(()=>import(`./nushell-CzSZjfwb.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>G(()=>import(`./objective-c-DCVzCT35.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>G(()=>import(`./objective-cpp-C0Ag01Ux.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>G(()=>import(`./ocaml-eLzecdzY.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>G(()=>import(`./pascal-D41AWha0.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>G(()=>import(`./perl-C2GmwEkq.js`),__vite__mapDeps([197,102,101,103,107,116,109])))},{id:`php`,name:`PHP`,import:(()=>G(()=>import(`./php-DwWkh3Qy.js`),__vite__mapDeps([198,102,101,103,107,108,199,116,109])))},{id:`plsql`,name:`PL/SQL`,import:(()=>G(()=>import(`./plsql-f5gfIECe.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>G(()=>import(`./po-CmWhBzYk.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>G(()=>import(`./polar-DjNzWtli.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>G(()=>import(`./postcss-DpZPffaJ.js`),__vite__mapDeps([200,111])))},{id:`powerquery`,name:`PowerQuery`,import:(()=>G(()=>import(`./powerquery-IpsgmOrB.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>G(()=>import(`./powershell-B_lnqR6S.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>G(()=>import(`./prisma-Bwvc2M8c.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>G(()=>import(`./prolog-V5VOXzGk.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>G(()=>import(`./proto-SwiFBrSx.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>G(()=>import(`./pug-R8zhNC2_.js`),__vite__mapDeps([201,102,101,103])))},{id:`puppet`,name:`Puppet`,import:(()=>G(()=>import(`./puppet-qmkJPQb2.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>G(()=>import(`./purescript-Dht7UX7U.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>G(()=>import(`./python-ij4LvnkA.js`),__vite__mapDeps([202,122])))},{id:`qml`,name:`QML`,import:(()=>G(()=>import(`./qml-BVEv2gLp.js`),__vite__mapDeps([203,103])))},{id:`qmldir`,name:`QML Directory`,import:(()=>G(()=>import(`./qmldir-SRZyIQXX.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>G(()=>import(`./qss-BV_bwhiH.js`),[]))},{id:`r`,name:`R`,import:(()=>G(()=>import(`./r-CI_8QuDg.js`),__vite__mapDeps([204,185])))},{id:`racket`,name:`Racket`,import:(()=>G(()=>import(`./racket--ZfcoBNh.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>G(()=>import(`./raku-Cf9Hlbz1.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>G(()=>import(`./razor-BXrpcGrf.js`),__vite__mapDeps([205,134,102,101,103])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>G(()=>import(`./reg-N6IvIMTc.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>G(()=>import(`./regexp-CEd_PNob.js`),__vite__mapDeps([206,130])))},{id:`rel`,name:`Rel`,import:(()=>G(()=>import(`./rel-DdTN8LaS.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>G(()=>import(`./riscv-DP3cWieq.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>G(()=>import(`./rst-BbMmENyw.js`),__vite__mapDeps([207,120,124,128,129,130,116,102,142,103,143,112,113,144,115,101,107,145,122,146,132,109,147])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>G(()=>import(`./ruby-DnW9M3dC.js`),__vite__mapDeps([208,120,128,129,130,116,102,142,103,143,112,113,144,101,107,145,146,132,109,147])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>G(()=>import(`./rust-DSYkP88Y.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>G(()=>import(`./sas-Bbqf5T6B.js`),__vite__mapDeps([209,116])))},{id:`sass`,name:`Sass`,import:(()=>G(()=>import(`./sass-CXym6Moq.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>G(()=>import(`./scala-C0Qq-8oa.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>G(()=>import(`./scheme-DSdb-X-2.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>G(()=>import(`./scss-Dj-dd4pv.js`),__vite__mapDeps([210,102,105])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>G(()=>import(`./sdbl-DiSKCflq.js`),__vite__mapDeps([211,118])))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>G(()=>import(`./shaderlab-niXJj9LB.js`),__vite__mapDeps([212,173])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>G(()=>import(`./shellscript-CTDFJZE_.js`),__vite__mapDeps([213,132])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>G(()=>import(`./shellsession-BMRZY_iB.js`),__vite__mapDeps([214,132])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>G(()=>import(`./smalltalk-xm9bX9_z.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>G(()=>import(`./solidity-B7n7t9rj.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>G(()=>import(`./soy-oogrYg0r.js`),__vite__mapDeps([215,102,101,103])))},{id:`sparql`,name:`SPARQL`,import:(()=>G(()=>import(`./sparql-CZdnCkl8.js`),__vite__mapDeps([216,217])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>G(()=>import(`./splunk-BizC9c7t.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>G(()=>import(`./sql-YT8d_55s.js`),__vite__mapDeps([218,116])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>G(()=>import(`./ssh-config-Da40kmk_.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>G(()=>import(`./stata-DKoKZwk6.js`),__vite__mapDeps([219,116])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>G(()=>import(`./stylus-BfFgcVOV.js`),__vite__mapDeps([220,221])))},{id:`svelte`,name:`Svelte`,import:(()=>G(()=>import(`./svelte-BCyo1H28.js`),__vite__mapDeps([222,102,103,111,113])))},{id:`swift`,name:`Swift`,import:(()=>G(()=>import(`./swift-BE5EM2-N.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>G(()=>import(`./system-verilog-CSbPS08G.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>G(()=>import(`./systemd-Ddl13SOF.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>G(()=>import(`./talonscript-C6lAZ7bW.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>G(()=>import(`./tasl-BenQQHgt.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>G(()=>import(`./tcl-VHvCQlLP.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>G(()=>import(`./templ-UHustcM7.js`),__vite__mapDeps([223,102,165,103])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>G(()=>import(`./terraform-DOOPQykp.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>G(()=>import(`./tex-CtKYC-ji.js`),__vite__mapDeps([224,185,187])))},{id:`toml`,name:`TOML`,import:(()=>G(()=>import(`./toml-CRyvn5e6.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>G(()=>import(`./ts-tags-BtFLKwfC.js`),__vite__mapDeps([225,120,102,129,101,103,107,116,113,109])))},{id:`tsv`,name:`TSV`,import:(()=>G(()=>import(`./tsv-CCGU3WlK.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>G(()=>import(`./tsx-5zUN_IgM.js`),__vite__mapDeps([226,112])))},{id:`turtle`,name:`Turtle`,import:(()=>G(()=>import(`./turtle-1Y15hDNk.js`),__vite__mapDeps([227,217])))},{id:`twig`,name:`Twig`,import:(()=>G(()=>import(`./twig-CpPqtXbv.js`),__vite__mapDeps([228,120,128,129,130,116,102,142,103,143,112,113,144,101,107,108,145,199,109,122,146,132,147,105])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`],import:(()=>G(()=>import(`./typescript-BOZhZjjY.js`),__vite__mapDeps([229,113])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>G(()=>import(`./typespec-Bh5jd8rz.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>G(()=>import(`./typst-C6MhiFK2.js`),[]))},{id:`v`,name:`V`,import:(()=>G(()=>import(`./v-CXlxc9u3.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>G(()=>import(`./vala-BTPBaKbS.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>G(()=>import(`./vb-CzLsWrEq.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>G(()=>import(`./verilog-C_vuNZ2r.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>G(()=>import(`./vhdl-B68Sbb2s.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>G(()=>import(`./viml-nrwT1ftb.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>G(()=>import(`./vue-C_Xq0ko2.js`),__vite__mapDeps([230,102,115,101,103,108,231,113])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>G(()=>import(`./vue-html-DKDWA0fy.js`),__vite__mapDeps([232,102,115,101,103,108,231,113])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>G(()=>import(`./vue-vine-Doq9x-V7.js`),__vite__mapDeps([233,102,115,101,103,108,189,231,113,111,105,221])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>G(()=>import(`./vyper-yEAtMWY8.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>G(()=>import(`./wasm-D716BpP0.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>G(()=>import(`./wenyan-DQ_GJzFi.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>G(()=>import(`./wgsl-C4r57m6o.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>G(()=>import(`./wikitext-CSgQLfV4.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>G(()=>import(`./wit-F-L0h1o6.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>G(()=>import(`./wolfram-CjWkRarV.js`),[]))},{id:`xml`,name:`XML`,import:(()=>G(()=>import(`./xml-wHYwXszZ.js`),__vite__mapDeps([234,107,109])))},{id:`xsl`,name:`XSL`,import:(()=>G(()=>import(`./xsl-7XpO9mGM.js`),__vite__mapDeps([235,107,109])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>G(()=>import(`./yaml-Bsm5rW0k.js`),__vite__mapDeps([236,147])))},{id:`zenscript`,name:`ZenScript`,import:(()=>G(()=>import(`./zenscript-Os3j9H_R.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>G(()=>import(`./zig-B93JMj6E.js`),[]))}],Ave=Object.fromEntries(YG.map(e=>[e.id,e.import])),jve=Object.fromEntries(YG.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),XG={...Ave,...jve},Mve=[{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>G(()=>import(`./andromeeda-DdLNEo5e.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>G(()=>import(`./aurora-x-Dbzr9yQN.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>G(()=>import(`./ayu-dark-DT2ykFir.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>G(()=>import(`./catppuccin-frappe-CFL60cUb.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>G(()=>import(`./catppuccin-latte-w1jtJ9Tq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>G(()=>import(`./catppuccin-macchiato--yIGohtf.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>G(()=>import(`./catppuccin-mocha-3r_vlu6T.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>G(()=>import(`./dark-plus-BG-k64xO.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>G(()=>import(`./dracula-CxzDAQ5_.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>G(()=>import(`./dracula-soft-C3_FmKIp.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>G(()=>import(`./everforest-dark-BhV8t-2H.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>G(()=>import(`./everforest-light-C9AGdBc7.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>G(()=>import(`./github-dark-k7bIqKE6.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>G(()=>import(`./github-dark-default-BYQei4yh.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>G(()=>import(`./github-dark-dimmed-Bvmsnx6B.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>G(()=>import(`./github-dark-high-contrast-6YcGML2A.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>G(()=>import(`./github-light-B9Xj5QvQ.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>G(()=>import(`./github-light-default-DF8zFKIh.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>G(()=>import(`./github-light-high-contrast-DHPldgid.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>G(()=>import(`./gruvbox-dark-hard-BxyGg139.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>G(()=>import(`./gruvbox-dark-medium-DuoX-sP4.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>G(()=>import(`./gruvbox-dark-soft-15EOOiCQ.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>G(()=>import(`./gruvbox-light-hard-Dd1yAQsj.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>G(()=>import(`./gruvbox-light-medium-nzFRFK9T.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>G(()=>import(`./gruvbox-light-soft-DnUWeEb_.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>G(()=>import(`./houston-DHXmbLxv.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>G(()=>import(`./kanagawa-dragon-BWpk9Mq4.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>G(()=>import(`./kanagawa-lotus-CKLe8F_4.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>G(()=>import(`./kanagawa-wave-CnXqIWol.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>G(()=>import(`./laserwave-WVKNUQvj.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>G(()=>import(`./light-plus-DPoHPF0_.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>G(()=>import(`./material-theme-CXDd0Fw8.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>G(()=>import(`./material-theme-darker-B0Net00K.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>G(()=>import(`./material-theme-lighter-B2dw6nsk.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>G(()=>import(`./material-theme-ocean-B96WbQ2Z.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>G(()=>import(`./material-theme-palenight-CDmqL87N.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>G(()=>import(`./min-dark-DhXoLJQp.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>G(()=>import(`./min-light-BMmNCMwj.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>G(()=>import(`./monokai-D9qSSba5.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>G(()=>import(`./night-owl-8Ep6hr5W.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>G(()=>import(`./nord-CJQk-niI.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>G(()=>import(`./one-dark-pro-BTKhVGVu.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>G(()=>import(`./one-light-_OzQUqrV.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>G(()=>import(`./plastic-9PBwuRma.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>G(()=>import(`./poimandres-C1hxasus.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>G(()=>import(`./red-FtpQZApq.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>G(()=>import(`./rose-pine-DUL6IgMk.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>G(()=>import(`./rose-pine-dawn-DRU2sbgU.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>G(()=>import(`./rose-pine-moon-B_Fk4BIm.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>G(()=>import(`./slack-dark-CqrNX_ip.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>G(()=>import(`./slack-ochin-Beh97w-u.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>G(()=>import(`./snazzy-light-jcvulp_1.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>G(()=>import(`./solarized-dark-DSkUIuTh.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>G(()=>import(`./solarized-light-B2N6scgo.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>G(()=>import(`./synthwave-84-CN18Oagb.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>G(()=>import(`./tokyo-night-DmosIk2J.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>G(()=>import(`./vesper-BoVbJQEj.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>G(()=>import(`./vitesse-black-CaxAW-AQ.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>G(()=>import(`./vitesse-dark-DDmm5cB_.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>G(()=>import(`./vitesse-light-DmqsYjE6.js`),[]))}],Nve=Object.fromEntries(Mve.map(e=>[e.id,e.import]));var ZG=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Pve(){return 2147483648}function Fve(){return typeof performance<`u`?performance.now():Date.now()}const Ive=(e,t)=>e+(t-e%t)%t;async function Lve(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=Pve();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);i=Math.min(i,e+100663296);let a=Math.min(n,Ive(Math.max(e,i),65536)),s=o(a);if(s)return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:Fve,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n={env:d,wasi_snapshot_preview1:d},a=await e(n);t=a.memory,i(t.buffer),Object.assign(r,a),r.UTF8ToString=u}return await f(),r}var Rve=Object.defineProperty,zve=(e,t,n)=>t in e?Rve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QG=(e,t,n)=>zve(e,typeof t==`symbol`?t:t+``,n);let $G=null;function Bve(e){throw new ZG(e.UTF8ToString(e.getLastOnigError()))}var eK=class e{constructor(t){QG(this,`utf16Length`),QG(this,`utf8Length`),QG(this,`utf16Value`),QG(this,`utf8Value`),QG(this,`utf16OffsetToUtf8`),QG(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e=55296&&r<=56319&&e+1=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}};const tK=class e{constructor(t){if(QG(this,`id`,++e.LAST_ID),QG(this,`_onigBinding`),QG(this,`content`),QG(this,`utf16Length`),QG(this,`utf8Length`),QG(this,`utf16OffsetToUtf8`),QG(this,`utf8OffsetToUtf16`),QG(this,`ptr`),!$G)throw new ZG(`Must invoke loadWasm first.`);this._onigBinding=$G,this.content=t;let n=new eK(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=$G.omalloc(1e4),e._sharedPtrInUse=!0,$G.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString($G)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};QG(tK,`LAST_ID`,0),QG(tK,`_sharedPtr`,0),QG(tK,`_sharedPtrInUse`,!1);let nK=tK;var Vve=class{constructor(e){if(QG(this,`_onigBinding`),QG(this,`_ptr`),!$G)throw new ZG(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Hve(n)?n=await n.instantiator(t):Uve(n)?n=await n.default(t):(Wve(n)&&(n=n.data),Gve(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Jve(n)(t):await Yve(n)(t):Kve(n)||n instanceof WebAssembly.Module?n=await iK(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await iK(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return rK=t(),rK}function iK(e){return t=>WebAssembly.instantiate(e,t)}function Jve(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Yve(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Xve(e){return e&&await qve(e),{createScanner(e){return new Vve(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new nK(e)}}}const Zve=Dve({langs:XG,themes:Nve,engine:()=>Xve(G(()=>import(`./wasm-CDMn1mOJ.js`),[]))}),{codeToHtml:Qve,codeToHast:$ve,codeToTokens:eye,codeToTokensBase:tye,codeToTokensWithThemes:nye,getSingletonHighlighter:rye,getLastGrammarState:iye}=kve(Zve,{guessEmbeddedLanguages:GW}),aK=(function(e){if(e==null)return cye;if(typeof e==`function`)return oK(e);if(typeof e==`object`)return Array.isArray(e)?aye(e):oye(e);if(typeof e==`string`)return sye(e);throw Error(`Expected function, string, or object as test`)});function aye(e){let t=[],n=-1;for(;++n`:``))+`)`})}return u;function u(){let l=sK,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=dye(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==cK)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d{let n=dK(t),r=n.match(/(.+)\{:([\w-]+)\}$/);if(r)return{type:`inline`,code:r[1]??n,lang:r.at(2)}}},mye=(e,t)=>{let n=t.children[0];if(!n||n.type!==`element`||n.tagName!==`code`||!n.properties)return;let r=n.properties.className,i=Array.isArray(r)?r.find(e=>typeof e==`string`&&e.startsWith(`language-`)):void 0;return{type:`pre`,lang:typeof i==`string`?i.slice(9):void 0,code:dK(n),meta:n.data?.meta??n.properties.metastring?.toString()??``}};function hye(e,t){let{addLanguageClass:n=!1,parseMetaString:r,cache:i,defaultLanguage:a,fallbackLanguage:o,onError:s,stripEndNewline:c=!0,inline:l=!1,lazy:u=!1,...d}=t;function f(t,r,a=``,o={}){let l=`${t}:${a}:${r}`,u=i?.get(l);if(u)return u;let f={...d,lang:t,meta:{...d.meta,...o,__raw:a}};n&&(f.transformers=[...f.transformers??[],{name:`rehype-shiki:code-language-class`,code(e){return this.addClassToHast(e,`language-${t}`),e}}]),c&&r.endsWith(` +`)&&(r=r.slice(0,-1));try{let t=e.codeToHast(r,f);return i?.set(l,t),t}catch(e){if(s)s(e);else throw e}}return t=>{let n=[];if(uK(t,`element`,(i,c,d)=>{let p;if(!d||c==null)return;if(i.tagName===`pre`)p=mye;else if(i.tagName===`code`&&l)p=pye[l];else return;let m=p(t,i);if(!m)return;let h,g=!1;if(m.lang?e.getLoadedLanguages().includes(m.lang)||zW(m.lang)?h=m.lang:u?(g=!0,h=m.lang):o&&(h=o):h=a,!h)return;let _=m.meta?r?.(m.meta,i,t):void 0,v=e=>{let t=f(e,m.code,m.meta,_??{});if(t){if(m.type===`inline`){let e=t.children[0];e.type===`element`&&e.tagName===`pre`&&(e.tagName=`span`)}d.children[c]=t}};if(g)try{n.push(e.loadLanguage(h).then(()=>v(h)))}catch(e){if(o)return v(o);if(s)s(e);else throw e}else v(h);return`skip`}),n.length>0){async function e(){await Promise.all(n)}return e()}}}const gye=function(e={}){let t=(`themes`in e?Object.values(e.themes):[e.theme]).filter(Boolean),n=e.langs||Object.keys(XG),r=e.langAlias||{},i;return async a=>{i||=rye({themes:t,langs:n,langAlias:r}).then(t=>hye.call(this,t,e));let o=await i;return o(a)}},pK=/[#.]/g;function _ye(e,t){let n=e||``,r={},i=0,a,o;for(;il&&(l=e):e&&(l!==void 0&&l>-1&&c.push(` +`.repeat(l)||` `),l=-1,c.push(e))}return c.join(``)}function AK(e,t,n){return e.type===`element`?Vye(e,t,n):e.type===`text`?n.whitespace===`normal`?jK(e,n):Hye(e):[]}function Vye(e,t,n){let r=MK(e,n),i=e.children||[],a=-1,o=[];if(zye(e))return o;let s,c;for(EK(e)||OK(e)&&xK(t,e,OK)?c=` +`:Rye(e)?(s=2,c=2):kK(e)&&(s=1,c=1);++a15?`…`+s.slice(i-15,i):s.slice(0,i);var u;u=a+15":`>`,"<":`<`,'"':`"`,"'":`'`},Qye=/[&><"']/g;function $ye(e){return String(e).replace(Qye,e=>Zye[e])}var IK=function e(t){return t.type===`ordgroup`||t.type===`color`?t.body.length===1?e(t.body[0]):t:t.type===`font`?e(t.body):t},ebe=function(e){var t=IK(e);return t.type===`mathord`||t.type===`textord`||t.type===`atom`},tbe=function(e){if(!e)throw Error(`Expected non-null, but got `+String(e));return e},nbe=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},LK={contains:qye,deflt:Jye,escape:$ye,hyphenate:Xye,getBaseElem:IK,isCharacterBox:ebe,protocolFromUrl:nbe},RK={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format `},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color `,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function rbe(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!=`string`)return n.enum[0];switch(n){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{}}}var zK=class{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={},RK)if(RK.hasOwnProperty(t)){var n=RK[t];this[t]=e[t]===void 0?rbe(n):n.processor?n.processor(e[t]):e[t]}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new FK(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=LK.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}var n=typeof this.trust==`function`?this.trust(e):this.trust;return!!n}},BK=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return YK[ibe[this.id]]}sub(){return YK[abe[this.id]]}fracNum(){return YK[obe[this.id]]}fracDen(){return YK[sbe[this.id]]}cramp(){return YK[cbe[this.id]]}text(){return YK[lbe[this.id]]}isTight(){return this.size>=2}},VK=0,HK=1,UK=2,WK=3,GK=4,KK=5,qK=6,JK=7,YK=[new BK(VK,0,!1),new BK(HK,0,!0),new BK(UK,1,!1),new BK(WK,1,!0),new BK(GK,2,!1),new BK(KK,2,!0),new BK(qK,3,!1),new BK(JK,3,!0)],ibe=[GK,KK,GK,KK,qK,JK,qK,JK],abe=[KK,KK,KK,KK,JK,JK,JK,JK],obe=[UK,WK,GK,KK,qK,JK,qK,JK],sbe=[WK,WK,KK,KK,JK,JK,JK,JK],cbe=[HK,HK,WK,WK,KK,KK,JK,JK],lbe=[VK,HK,UK,WK,UK,WK,UK,WK],XK={DISPLAY:YK[VK],TEXT:YK[UK],SCRIPT:YK[GK],SCRIPTSCRIPT:YK[qK]},ZK=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function ube(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var QK=[];ZK.forEach(e=>e.blocks.forEach(e=>QK.push(...e)));function $K(e){for(var t=0;t=QK[t]&&e<=QK[t+1])return!0;return!1}var eq=80,dbe=function(e,t){return`M95,`+(622+e+t)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -3875,7 +3878,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},cye=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},fbe=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+` -`+e+` @@ -3885,7 +3888,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},lye=function(e,t){return`M983 `+(10+e+t)+` +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},pbe=function(e,t){return`M983 `+(10+e+t)+` l`+e/3.13+` -`+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -3894,7 +3897,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},uye=function(e,t){return`M424,`+(2398+e+t)+` +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},mbe=function(e,t){return`M424,`+(2398+e+t)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -3904,18 +3907,18 @@ v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+` -h400000v`+(40+e)+`h-400000z`},dye=function(e,t){return`M473,`+(2713+e+t)+` +h400000v`+(40+e)+`h-400000z`},hbe=function(e,t){return`M473,`+(2713+e+t)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},fye=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},pye=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` +606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},gbe=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},_be=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},mye=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=sye(t,eq);break;case`sqrtSize1`:r=cye(t,eq);break;case`sqrtSize2`:r=lye(t,eq);break;case`sqrtSize3`:r=uye(t,eq);break;case`sqrtSize4`:r=dye(t,eq);break;case`sqrtTall`:r=pye(t,eq,n)}return r},hye=function(e,t){switch(e){case`⎜`:return`M291 0 H417 V`+t+` H291z M291 0 H417 V`+t+` H291z`;case`∣`:return`M145 0 H188 V`+t+` H145z M145 0 H188 V`+t+` H145z`;case`∥`:return`M145 0 H188 V`+t+` H145z M145 0 H188 V`+t+` H145z`+(`M367 0 H410 V`+t+` H367z M367 0 H410 V`+t+` H367z`);case`⎟`:return`M457 0 H583 V`+t+` H457z M457 0 H583 V`+t+` H457z`;case`⎢`:return`M319 0 H403 V`+t+` H319z M319 0 H403 V`+t+` H319z`;case`⎥`:return`M263 0 H347 V`+t+` H263z M263 0 H347 V`+t+` H263z`;case`⎪`:return`M384 0 H504 V`+t+` H384z M384 0 H504 V`+t+` H384z`;case`⏐`:return`M312 0 H355 V`+t+` H312z M312 0 H355 V`+t+` H312z`;case`‖`:return`M257 0 H300 V`+t+` H257z M257 0 H300 V`+t+` H257z`+(`M478 0 H521 V`+t+` H478z M478 0 H521 V`+t+` H478z`);default:return``}},tq={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},vbe=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=dbe(t,eq);break;case`sqrtSize1`:r=fbe(t,eq);break;case`sqrtSize2`:r=pbe(t,eq);break;case`sqrtSize3`:r=mbe(t,eq);break;case`sqrtSize4`:r=hbe(t,eq);break;case`sqrtTall`:r=_be(t,eq,n)}return r},ybe=function(e,t){switch(e){case`⎜`:return`M291 0 H417 V`+t+` H291z M291 0 H417 V`+t+` H291z`;case`∣`:return`M145 0 H188 V`+t+` H145z M145 0 H188 V`+t+` H145z`;case`∥`:return`M145 0 H188 V`+t+` H145z M145 0 H188 V`+t+` H145z`+(`M367 0 H410 V`+t+` H367z M367 0 H410 V`+t+` H367z`);case`⎟`:return`M457 0 H583 V`+t+` H457z M457 0 H583 V`+t+` H457z`;case`⎢`:return`M319 0 H403 V`+t+` H319z M319 0 H403 V`+t+` H319z`;case`⎥`:return`M263 0 H347 V`+t+` H263z M263 0 H347 V`+t+` H263z`;case`⎪`:return`M384 0 H504 V`+t+` H384z M384 0 H504 V`+t+` H384z`;case`⏐`:return`M312 0 H355 V`+t+` H312z M312 0 H355 V`+t+` H312z`;case`‖`:return`M257 0 H300 V`+t+` H257z M257 0 H300 V`+t+` H257z`+(`M478 0 H521 V`+t+` H478z M478 0 H521 V`+t+` H478z`);default:return``}},tq={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -4090,7 +4093,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},gye=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},bbe=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+t+` v1759 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -4118,38 +4121,38 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},nq=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return LK.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText();return this.children.map(e).join(``)}},rq={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},iq={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},aq={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function _ye(e,t){rq[e]=t}function oq(e,t,n){if(!rq[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=rq[t][r];if(!i&&e[0]in aq&&(r=aq[e[0]].charCodeAt(0),i=rq[t][r]),!i&&n===`text`&&$K(r)&&(i=rq[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var sq={};function vye(e){var t;if(t=e>=5?0:e>=3?1:2,!sq[t]){var n=sq[t]={cssEmPerMu:iq.quad[t]/18};for(var r in iq)iq.hasOwnProperty(r)&&(n[r]=iq[r][t])}return sq[t]}var yye=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],cq=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],lq=function(e,t){return t.size<2?e:yye[e-1][t.size-1]},uq=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=cq[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:lq(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:cq[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=lq(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=vye(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};uq.BASESIZE=6;var dq={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},bye={ex:!0,em:!0,mu:!0},fq=function(e){return typeof e!=`string`&&(e=e.unit),e in dq||e in bye||e===`ex`},pq=function(e,t){var n;if(e.unit in dq)n=dq[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new FK(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},mq=function(e){return+e.toFixed(4)+`em`},hq=function(e){return e.filter(e=>e).join(` `)},gq=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},_q=function(e){var t=document.createElement(e);for(var n in t.className=hq(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i/=\x00-\x1f]/,vq=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+LK.escape(hq(this.classes))+`"`);var n=``;for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=LK.hyphenate(r)+`:`+this.style[r]+`;`);for(var i in n&&(t+=` style="`+LK.escape(n)+`"`),this.attributes)if(this.attributes.hasOwnProperty(i)){if(xye.test(i))throw new FK(`Invalid attribute name '`+i+`'`);t+=` `+i+`="`+LK.escape(this.attributes[i])+`"`}t+=`>`;for(var a=0;a`,t},yq=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,gq.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return LK.contains(this.classes,e)}toNode(){return _q.call(this,`span`)}toMarkup(){return vq.call(this,`span`)}},bq=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,gq.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return LK.contains(this.classes,e)}toNode(){return _q.call(this,`a`)}toMarkup(){return vq.call(this,`a`)}},Sye=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.style=n}hasClass(e){return LK.contains(this.classes,e)}toNode(){var e=document.createElement(`img`);for(var t in e.src=this.src,e.alt=this.alt,e.className=`mord`,this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=``+LK.escape(this.alt)+``,e}},Cye={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},xq=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=oye(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Cye[this.text])}hasClass(e){return LK.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=mq(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=hq(this.classes)),this.style)this.style.hasOwnProperty(n)&&(t||=document.createElement(`span`),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+this.italic+`em;`),this.style)this.style.hasOwnProperty(r)&&(n+=LK.hyphenate(r)+`:`+this.style[r]+`;`);n&&(e=!0,t+=` style="`+LK.escape(n)+`"`);var i=LK.escape(this.text);return e?(t+=`>`,t+=i,t+=``,t):i}},Sq=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=`http://www.w3.org/2000/svg`,t=document.createElementNS(e,`svg`);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var r=0;r`;for(var n=0;n`,e}},Cq=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=`http://www.w3.org/2000/svg`,t=document.createElementNS(e,`path`);return this.alternate?t.setAttribute(`d`,this.alternate):t.setAttribute(`d`,tq[this.pathName]),t}toMarkup(){return this.alternate?``:``}},wq=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=`http://www.w3.org/2000/svg`,t=document.createElementNS(e,`line`);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);return t}toMarkup(){var e=``,e}};function Tq(e){if(e instanceof xq)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function wye(e){if(e instanceof yq)return e;throw Error(`Expected span but got `+String(e)+`.`)}var Tye={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Eye={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Eq={math:{},text:{}};function K(e,t,n,r,i,a){Eq[e][i]={font:t,group:n,replace:r},a&&r&&(Eq[e][r]=Eq[e][i])}var q=`math`,Dq=`text`,J=`main`,Y=`ams`,Oq=`accent-token`,kq=`bin`,Aq=`close`,jq=`inner`,Mq=`mathord`,Nq=`op-token`,Pq=`open`,Fq=`punct`,X=`rel`,Iq=`spacing`,Z=`textord`;K(q,J,X,`≡`,`\\equiv`,!0),K(q,J,X,`≺`,`\\prec`,!0),K(q,J,X,`≻`,`\\succ`,!0),K(q,J,X,`∼`,`\\sim`,!0),K(q,J,X,`⊥`,`\\perp`),K(q,J,X,`⪯`,`\\preceq`,!0),K(q,J,X,`⪰`,`\\succeq`,!0),K(q,J,X,`≃`,`\\simeq`,!0),K(q,J,X,`∣`,`\\mid`,!0),K(q,J,X,`≪`,`\\ll`,!0),K(q,J,X,`≫`,`\\gg`,!0),K(q,J,X,`≍`,`\\asymp`,!0),K(q,J,X,`∥`,`\\parallel`),K(q,J,X,`⋈`,`\\bowtie`,!0),K(q,J,X,`⌣`,`\\smile`,!0),K(q,J,X,`⊑`,`\\sqsubseteq`,!0),K(q,J,X,`⊒`,`\\sqsupseteq`,!0),K(q,J,X,`≐`,`\\doteq`,!0),K(q,J,X,`⌢`,`\\frown`,!0),K(q,J,X,`∋`,`\\ni`,!0),K(q,J,X,`∝`,`\\propto`,!0),K(q,J,X,`⊢`,`\\vdash`,!0),K(q,J,X,`⊣`,`\\dashv`,!0),K(q,J,X,`∋`,`\\owns`),K(q,J,Fq,`.`,`\\ldotp`),K(q,J,Fq,`⋅`,`\\cdotp`),K(q,J,Z,`#`,`\\#`),K(Dq,J,Z,`#`,`\\#`),K(q,J,Z,`&`,`\\&`),K(Dq,J,Z,`&`,`\\&`),K(q,J,Z,`ℵ`,`\\aleph`,!0),K(q,J,Z,`∀`,`\\forall`,!0),K(q,J,Z,`ℏ`,`\\hbar`,!0),K(q,J,Z,`∃`,`\\exists`,!0),K(q,J,Z,`∇`,`\\nabla`,!0),K(q,J,Z,`♭`,`\\flat`,!0),K(q,J,Z,`ℓ`,`\\ell`,!0),K(q,J,Z,`♮`,`\\natural`,!0),K(q,J,Z,`♣`,`\\clubsuit`,!0),K(q,J,Z,`℘`,`\\wp`,!0),K(q,J,Z,`♯`,`\\sharp`,!0),K(q,J,Z,`♢`,`\\diamondsuit`,!0),K(q,J,Z,`ℜ`,`\\Re`,!0),K(q,J,Z,`♡`,`\\heartsuit`,!0),K(q,J,Z,`ℑ`,`\\Im`,!0),K(q,J,Z,`♠`,`\\spadesuit`,!0),K(q,J,Z,`§`,`\\S`,!0),K(Dq,J,Z,`§`,`\\S`),K(q,J,Z,`¶`,`\\P`,!0),K(Dq,J,Z,`¶`,`\\P`),K(q,J,Z,`†`,`\\dag`),K(Dq,J,Z,`†`,`\\dag`),K(Dq,J,Z,`†`,`\\textdagger`),K(q,J,Z,`‡`,`\\ddag`),K(Dq,J,Z,`‡`,`\\ddag`),K(Dq,J,Z,`‡`,`\\textdaggerdbl`),K(q,J,Aq,`⎱`,`\\rmoustache`,!0),K(q,J,Pq,`⎰`,`\\lmoustache`,!0),K(q,J,Aq,`⟯`,`\\rgroup`,!0),K(q,J,Pq,`⟮`,`\\lgroup`,!0),K(q,J,kq,`∓`,`\\mp`,!0),K(q,J,kq,`⊖`,`\\ominus`,!0),K(q,J,kq,`⊎`,`\\uplus`,!0),K(q,J,kq,`⊓`,`\\sqcap`,!0),K(q,J,kq,`∗`,`\\ast`),K(q,J,kq,`⊔`,`\\sqcup`,!0),K(q,J,kq,`◯`,`\\bigcirc`,!0),K(q,J,kq,`∙`,`\\bullet`,!0),K(q,J,kq,`‡`,`\\ddagger`),K(q,J,kq,`≀`,`\\wr`,!0),K(q,J,kq,`⨿`,`\\amalg`),K(q,J,kq,`&`,`\\And`),K(q,J,X,`⟵`,`\\longleftarrow`,!0),K(q,J,X,`⇐`,`\\Leftarrow`,!0),K(q,J,X,`⟸`,`\\Longleftarrow`,!0),K(q,J,X,`⟶`,`\\longrightarrow`,!0),K(q,J,X,`⇒`,`\\Rightarrow`,!0),K(q,J,X,`⟹`,`\\Longrightarrow`,!0),K(q,J,X,`↔`,`\\leftrightarrow`,!0),K(q,J,X,`⟷`,`\\longleftrightarrow`,!0),K(q,J,X,`⇔`,`\\Leftrightarrow`,!0),K(q,J,X,`⟺`,`\\Longleftrightarrow`,!0),K(q,J,X,`↦`,`\\mapsto`,!0),K(q,J,X,`⟼`,`\\longmapsto`,!0),K(q,J,X,`↗`,`\\nearrow`,!0),K(q,J,X,`↩`,`\\hookleftarrow`,!0),K(q,J,X,`↪`,`\\hookrightarrow`,!0),K(q,J,X,`↘`,`\\searrow`,!0),K(q,J,X,`↼`,`\\leftharpoonup`,!0),K(q,J,X,`⇀`,`\\rightharpoonup`,!0),K(q,J,X,`↙`,`\\swarrow`,!0),K(q,J,X,`↽`,`\\leftharpoondown`,!0),K(q,J,X,`⇁`,`\\rightharpoondown`,!0),K(q,J,X,`↖`,`\\nwarrow`,!0),K(q,J,X,`⇌`,`\\rightleftharpoons`,!0),K(q,Y,X,`≮`,`\\nless`,!0),K(q,Y,X,``,`\\@nleqslant`),K(q,Y,X,``,`\\@nleqq`),K(q,Y,X,`⪇`,`\\lneq`,!0),K(q,Y,X,`≨`,`\\lneqq`,!0),K(q,Y,X,``,`\\@lvertneqq`),K(q,Y,X,`⋦`,`\\lnsim`,!0),K(q,Y,X,`⪉`,`\\lnapprox`,!0),K(q,Y,X,`⊀`,`\\nprec`,!0),K(q,Y,X,`⋠`,`\\npreceq`,!0),K(q,Y,X,`⋨`,`\\precnsim`,!0),K(q,Y,X,`⪹`,`\\precnapprox`,!0),K(q,Y,X,`≁`,`\\nsim`,!0),K(q,Y,X,``,`\\@nshortmid`),K(q,Y,X,`∤`,`\\nmid`,!0),K(q,Y,X,`⊬`,`\\nvdash`,!0),K(q,Y,X,`⊭`,`\\nvDash`,!0),K(q,Y,X,`⋪`,`\\ntriangleleft`),K(q,Y,X,`⋬`,`\\ntrianglelefteq`,!0),K(q,Y,X,`⊊`,`\\subsetneq`,!0),K(q,Y,X,``,`\\@varsubsetneq`),K(q,Y,X,`⫋`,`\\subsetneqq`,!0),K(q,Y,X,``,`\\@varsubsetneqq`),K(q,Y,X,`≯`,`\\ngtr`,!0),K(q,Y,X,``,`\\@ngeqslant`),K(q,Y,X,``,`\\@ngeqq`),K(q,Y,X,`⪈`,`\\gneq`,!0),K(q,Y,X,`≩`,`\\gneqq`,!0),K(q,Y,X,``,`\\@gvertneqq`),K(q,Y,X,`⋧`,`\\gnsim`,!0),K(q,Y,X,`⪊`,`\\gnapprox`,!0),K(q,Y,X,`⊁`,`\\nsucc`,!0),K(q,Y,X,`⋡`,`\\nsucceq`,!0),K(q,Y,X,`⋩`,`\\succnsim`,!0),K(q,Y,X,`⪺`,`\\succnapprox`,!0),K(q,Y,X,`≆`,`\\ncong`,!0),K(q,Y,X,``,`\\@nshortparallel`),K(q,Y,X,`∦`,`\\nparallel`,!0),K(q,Y,X,`⊯`,`\\nVDash`,!0),K(q,Y,X,`⋫`,`\\ntriangleright`),K(q,Y,X,`⋭`,`\\ntrianglerighteq`,!0),K(q,Y,X,``,`\\@nsupseteqq`),K(q,Y,X,`⊋`,`\\supsetneq`,!0),K(q,Y,X,``,`\\@varsupsetneq`),K(q,Y,X,`⫌`,`\\supsetneqq`,!0),K(q,Y,X,``,`\\@varsupsetneqq`),K(q,Y,X,`⊮`,`\\nVdash`,!0),K(q,Y,X,`⪵`,`\\precneqq`,!0),K(q,Y,X,`⪶`,`\\succneqq`,!0),K(q,Y,X,``,`\\@nsubseteqq`),K(q,Y,kq,`⊴`,`\\unlhd`),K(q,Y,kq,`⊵`,`\\unrhd`),K(q,Y,X,`↚`,`\\nleftarrow`,!0),K(q,Y,X,`↛`,`\\nrightarrow`,!0),K(q,Y,X,`⇍`,`\\nLeftarrow`,!0),K(q,Y,X,`⇏`,`\\nRightarrow`,!0),K(q,Y,X,`↮`,`\\nleftrightarrow`,!0),K(q,Y,X,`⇎`,`\\nLeftrightarrow`,!0),K(q,Y,X,`△`,`\\vartriangle`),K(q,Y,Z,`ℏ`,`\\hslash`),K(q,Y,Z,`▽`,`\\triangledown`),K(q,Y,Z,`◊`,`\\lozenge`),K(q,Y,Z,`Ⓢ`,`\\circledS`),K(q,Y,Z,`®`,`\\circledR`),K(Dq,Y,Z,`®`,`\\circledR`),K(q,Y,Z,`∡`,`\\measuredangle`,!0),K(q,Y,Z,`∄`,`\\nexists`),K(q,Y,Z,`℧`,`\\mho`),K(q,Y,Z,`Ⅎ`,`\\Finv`,!0),K(q,Y,Z,`⅁`,`\\Game`,!0),K(q,Y,Z,`‵`,`\\backprime`),K(q,Y,Z,`▲`,`\\blacktriangle`),K(q,Y,Z,`▼`,`\\blacktriangledown`),K(q,Y,Z,`■`,`\\blacksquare`),K(q,Y,Z,`⧫`,`\\blacklozenge`),K(q,Y,Z,`★`,`\\bigstar`),K(q,Y,Z,`∢`,`\\sphericalangle`,!0),K(q,Y,Z,`∁`,`\\complement`,!0),K(q,Y,Z,`ð`,`\\eth`,!0),K(Dq,J,Z,`ð`,`ð`),K(q,Y,Z,`╱`,`\\diagup`),K(q,Y,Z,`╲`,`\\diagdown`),K(q,Y,Z,`□`,`\\square`),K(q,Y,Z,`□`,`\\Box`),K(q,Y,Z,`◊`,`\\Diamond`),K(q,Y,Z,`¥`,`\\yen`,!0),K(Dq,Y,Z,`¥`,`\\yen`,!0),K(q,Y,Z,`✓`,`\\checkmark`,!0),K(Dq,Y,Z,`✓`,`\\checkmark`),K(q,Y,Z,`ℶ`,`\\beth`,!0),K(q,Y,Z,`ℸ`,`\\daleth`,!0),K(q,Y,Z,`ℷ`,`\\gimel`,!0),K(q,Y,Z,`ϝ`,`\\digamma`,!0),K(q,Y,Z,`ϰ`,`\\varkappa`),K(q,Y,Pq,`┌`,`\\@ulcorner`,!0),K(q,Y,Aq,`┐`,`\\@urcorner`,!0),K(q,Y,Pq,`└`,`\\@llcorner`,!0),K(q,Y,Aq,`┘`,`\\@lrcorner`,!0),K(q,Y,X,`≦`,`\\leqq`,!0),K(q,Y,X,`⩽`,`\\leqslant`,!0),K(q,Y,X,`⪕`,`\\eqslantless`,!0),K(q,Y,X,`≲`,`\\lesssim`,!0),K(q,Y,X,`⪅`,`\\lessapprox`,!0),K(q,Y,X,`≊`,`\\approxeq`,!0),K(q,Y,kq,`⋖`,`\\lessdot`),K(q,Y,X,`⋘`,`\\lll`,!0),K(q,Y,X,`≶`,`\\lessgtr`,!0),K(q,Y,X,`⋚`,`\\lesseqgtr`,!0),K(q,Y,X,`⪋`,`\\lesseqqgtr`,!0),K(q,Y,X,`≑`,`\\doteqdot`),K(q,Y,X,`≓`,`\\risingdotseq`,!0),K(q,Y,X,`≒`,`\\fallingdotseq`,!0),K(q,Y,X,`∽`,`\\backsim`,!0),K(q,Y,X,`⋍`,`\\backsimeq`,!0),K(q,Y,X,`⫅`,`\\subseteqq`,!0),K(q,Y,X,`⋐`,`\\Subset`,!0),K(q,Y,X,`⊏`,`\\sqsubset`,!0),K(q,Y,X,`≼`,`\\preccurlyeq`,!0),K(q,Y,X,`⋞`,`\\curlyeqprec`,!0),K(q,Y,X,`≾`,`\\precsim`,!0),K(q,Y,X,`⪷`,`\\precapprox`,!0),K(q,Y,X,`⊲`,`\\vartriangleleft`),K(q,Y,X,`⊴`,`\\trianglelefteq`),K(q,Y,X,`⊨`,`\\vDash`,!0),K(q,Y,X,`⊪`,`\\Vvdash`,!0),K(q,Y,X,`⌣`,`\\smallsmile`),K(q,Y,X,`⌢`,`\\smallfrown`),K(q,Y,X,`≏`,`\\bumpeq`,!0),K(q,Y,X,`≎`,`\\Bumpeq`,!0),K(q,Y,X,`≧`,`\\geqq`,!0),K(q,Y,X,`⩾`,`\\geqslant`,!0),K(q,Y,X,`⪖`,`\\eqslantgtr`,!0),K(q,Y,X,`≳`,`\\gtrsim`,!0),K(q,Y,X,`⪆`,`\\gtrapprox`,!0),K(q,Y,kq,`⋗`,`\\gtrdot`),K(q,Y,X,`⋙`,`\\ggg`,!0),K(q,Y,X,`≷`,`\\gtrless`,!0),K(q,Y,X,`⋛`,`\\gtreqless`,!0),K(q,Y,X,`⪌`,`\\gtreqqless`,!0),K(q,Y,X,`≖`,`\\eqcirc`,!0),K(q,Y,X,`≗`,`\\circeq`,!0),K(q,Y,X,`≜`,`\\triangleq`,!0),K(q,Y,X,`∼`,`\\thicksim`),K(q,Y,X,`≈`,`\\thickapprox`),K(q,Y,X,`⫆`,`\\supseteqq`,!0),K(q,Y,X,`⋑`,`\\Supset`,!0),K(q,Y,X,`⊐`,`\\sqsupset`,!0),K(q,Y,X,`≽`,`\\succcurlyeq`,!0),K(q,Y,X,`⋟`,`\\curlyeqsucc`,!0),K(q,Y,X,`≿`,`\\succsim`,!0),K(q,Y,X,`⪸`,`\\succapprox`,!0),K(q,Y,X,`⊳`,`\\vartriangleright`),K(q,Y,X,`⊵`,`\\trianglerighteq`),K(q,Y,X,`⊩`,`\\Vdash`,!0),K(q,Y,X,`∣`,`\\shortmid`),K(q,Y,X,`∥`,`\\shortparallel`),K(q,Y,X,`≬`,`\\between`,!0),K(q,Y,X,`⋔`,`\\pitchfork`,!0),K(q,Y,X,`∝`,`\\varpropto`),K(q,Y,X,`◀`,`\\blacktriangleleft`),K(q,Y,X,`∴`,`\\therefore`,!0),K(q,Y,X,`∍`,`\\backepsilon`),K(q,Y,X,`▶`,`\\blacktriangleright`),K(q,Y,X,`∵`,`\\because`,!0),K(q,Y,X,`⋘`,`\\llless`),K(q,Y,X,`⋙`,`\\gggtr`),K(q,Y,kq,`⊲`,`\\lhd`),K(q,Y,kq,`⊳`,`\\rhd`),K(q,Y,X,`≂`,`\\eqsim`,!0),K(q,J,X,`⋈`,`\\Join`),K(q,Y,X,`≑`,`\\Doteq`,!0),K(q,Y,kq,`∔`,`\\dotplus`,!0),K(q,Y,kq,`∖`,`\\smallsetminus`),K(q,Y,kq,`⋒`,`\\Cap`,!0),K(q,Y,kq,`⋓`,`\\Cup`,!0),K(q,Y,kq,`⩞`,`\\doublebarwedge`,!0),K(q,Y,kq,`⊟`,`\\boxminus`,!0),K(q,Y,kq,`⊞`,`\\boxplus`,!0),K(q,Y,kq,`⋇`,`\\divideontimes`,!0),K(q,Y,kq,`⋉`,`\\ltimes`,!0),K(q,Y,kq,`⋊`,`\\rtimes`,!0),K(q,Y,kq,`⋋`,`\\leftthreetimes`,!0),K(q,Y,kq,`⋌`,`\\rightthreetimes`,!0),K(q,Y,kq,`⋏`,`\\curlywedge`,!0),K(q,Y,kq,`⋎`,`\\curlyvee`,!0),K(q,Y,kq,`⊝`,`\\circleddash`,!0),K(q,Y,kq,`⊛`,`\\circledast`,!0),K(q,Y,kq,`⋅`,`\\centerdot`),K(q,Y,kq,`⊺`,`\\intercal`,!0),K(q,Y,kq,`⋒`,`\\doublecap`),K(q,Y,kq,`⋓`,`\\doublecup`),K(q,Y,kq,`⊠`,`\\boxtimes`,!0),K(q,Y,X,`⇢`,`\\dashrightarrow`,!0),K(q,Y,X,`⇠`,`\\dashleftarrow`,!0),K(q,Y,X,`⇇`,`\\leftleftarrows`,!0),K(q,Y,X,`⇆`,`\\leftrightarrows`,!0),K(q,Y,X,`⇚`,`\\Lleftarrow`,!0),K(q,Y,X,`↞`,`\\twoheadleftarrow`,!0),K(q,Y,X,`↢`,`\\leftarrowtail`,!0),K(q,Y,X,`↫`,`\\looparrowleft`,!0),K(q,Y,X,`⇋`,`\\leftrightharpoons`,!0),K(q,Y,X,`↶`,`\\curvearrowleft`,!0),K(q,Y,X,`↺`,`\\circlearrowleft`,!0),K(q,Y,X,`↰`,`\\Lsh`,!0),K(q,Y,X,`⇈`,`\\upuparrows`,!0),K(q,Y,X,`↿`,`\\upharpoonleft`,!0),K(q,Y,X,`⇃`,`\\downharpoonleft`,!0),K(q,J,X,`⊶`,`\\origof`,!0),K(q,J,X,`⊷`,`\\imageof`,!0),K(q,Y,X,`⊸`,`\\multimap`,!0),K(q,Y,X,`↭`,`\\leftrightsquigarrow`,!0),K(q,Y,X,`⇉`,`\\rightrightarrows`,!0),K(q,Y,X,`⇄`,`\\rightleftarrows`,!0),K(q,Y,X,`↠`,`\\twoheadrightarrow`,!0),K(q,Y,X,`↣`,`\\rightarrowtail`,!0),K(q,Y,X,`↬`,`\\looparrowright`,!0),K(q,Y,X,`↷`,`\\curvearrowright`,!0),K(q,Y,X,`↻`,`\\circlearrowright`,!0),K(q,Y,X,`↱`,`\\Rsh`,!0),K(q,Y,X,`⇊`,`\\downdownarrows`,!0),K(q,Y,X,`↾`,`\\upharpoonright`,!0),K(q,Y,X,`⇂`,`\\downharpoonright`,!0),K(q,Y,X,`⇝`,`\\rightsquigarrow`,!0),K(q,Y,X,`⇝`,`\\leadsto`),K(q,Y,X,`⇛`,`\\Rrightarrow`,!0),K(q,Y,X,`↾`,`\\restriction`),K(q,J,Z,`‘`,"`"),K(q,J,Z,`$`,`\\$`),K(Dq,J,Z,`$`,`\\$`),K(Dq,J,Z,`$`,`\\textdollar`),K(q,J,Z,`%`,`\\%`),K(Dq,J,Z,`%`,`\\%`),K(q,J,Z,`_`,`\\_`),K(Dq,J,Z,`_`,`\\_`),K(Dq,J,Z,`_`,`\\textunderscore`),K(q,J,Z,`∠`,`\\angle`,!0),K(q,J,Z,`∞`,`\\infty`,!0),K(q,J,Z,`′`,`\\prime`),K(q,J,Z,`△`,`\\triangle`),K(q,J,Z,`Γ`,`\\Gamma`,!0),K(q,J,Z,`Δ`,`\\Delta`,!0),K(q,J,Z,`Θ`,`\\Theta`,!0),K(q,J,Z,`Λ`,`\\Lambda`,!0),K(q,J,Z,`Ξ`,`\\Xi`,!0),K(q,J,Z,`Π`,`\\Pi`,!0),K(q,J,Z,`Σ`,`\\Sigma`,!0),K(q,J,Z,`Υ`,`\\Upsilon`,!0),K(q,J,Z,`Φ`,`\\Phi`,!0),K(q,J,Z,`Ψ`,`\\Psi`,!0),K(q,J,Z,`Ω`,`\\Omega`,!0),K(q,J,Z,`A`,`Α`),K(q,J,Z,`B`,`Β`),K(q,J,Z,`E`,`Ε`),K(q,J,Z,`Z`,`Ζ`),K(q,J,Z,`H`,`Η`),K(q,J,Z,`I`,`Ι`),K(q,J,Z,`K`,`Κ`),K(q,J,Z,`M`,`Μ`),K(q,J,Z,`N`,`Ν`),K(q,J,Z,`O`,`Ο`),K(q,J,Z,`P`,`Ρ`),K(q,J,Z,`T`,`Τ`),K(q,J,Z,`X`,`Χ`),K(q,J,Z,`¬`,`\\neg`,!0),K(q,J,Z,`¬`,`\\lnot`),K(q,J,Z,`⊤`,`\\top`),K(q,J,Z,`⊥`,`\\bot`),K(q,J,Z,`∅`,`\\emptyset`),K(q,Y,Z,`∅`,`\\varnothing`),K(q,J,Mq,`α`,`\\alpha`,!0),K(q,J,Mq,`β`,`\\beta`,!0),K(q,J,Mq,`γ`,`\\gamma`,!0),K(q,J,Mq,`δ`,`\\delta`,!0),K(q,J,Mq,`ϵ`,`\\epsilon`,!0),K(q,J,Mq,`ζ`,`\\zeta`,!0),K(q,J,Mq,`η`,`\\eta`,!0),K(q,J,Mq,`θ`,`\\theta`,!0),K(q,J,Mq,`ι`,`\\iota`,!0),K(q,J,Mq,`κ`,`\\kappa`,!0),K(q,J,Mq,`λ`,`\\lambda`,!0),K(q,J,Mq,`μ`,`\\mu`,!0),K(q,J,Mq,`ν`,`\\nu`,!0),K(q,J,Mq,`ξ`,`\\xi`,!0),K(q,J,Mq,`ο`,`\\omicron`,!0),K(q,J,Mq,`π`,`\\pi`,!0),K(q,J,Mq,`ρ`,`\\rho`,!0),K(q,J,Mq,`σ`,`\\sigma`,!0),K(q,J,Mq,`τ`,`\\tau`,!0),K(q,J,Mq,`υ`,`\\upsilon`,!0),K(q,J,Mq,`ϕ`,`\\phi`,!0),K(q,J,Mq,`χ`,`\\chi`,!0),K(q,J,Mq,`ψ`,`\\psi`,!0),K(q,J,Mq,`ω`,`\\omega`,!0),K(q,J,Mq,`ε`,`\\varepsilon`,!0),K(q,J,Mq,`ϑ`,`\\vartheta`,!0),K(q,J,Mq,`ϖ`,`\\varpi`,!0),K(q,J,Mq,`ϱ`,`\\varrho`,!0),K(q,J,Mq,`ς`,`\\varsigma`,!0),K(q,J,Mq,`φ`,`\\varphi`,!0),K(q,J,kq,`∗`,`*`,!0),K(q,J,kq,`+`,`+`),K(q,J,kq,`−`,`-`,!0),K(q,J,kq,`⋅`,`\\cdot`,!0),K(q,J,kq,`∘`,`\\circ`,!0),K(q,J,kq,`÷`,`\\div`,!0),K(q,J,kq,`±`,`\\pm`,!0),K(q,J,kq,`×`,`\\times`,!0),K(q,J,kq,`∩`,`\\cap`,!0),K(q,J,kq,`∪`,`\\cup`,!0),K(q,J,kq,`∖`,`\\setminus`,!0),K(q,J,kq,`∧`,`\\land`),K(q,J,kq,`∨`,`\\lor`),K(q,J,kq,`∧`,`\\wedge`,!0),K(q,J,kq,`∨`,`\\vee`,!0),K(q,J,Z,`√`,`\\surd`),K(q,J,Pq,`⟨`,`\\langle`,!0),K(q,J,Pq,`∣`,`\\lvert`),K(q,J,Pq,`∥`,`\\lVert`),K(q,J,Aq,`?`,`?`),K(q,J,Aq,`!`,`!`),K(q,J,Aq,`⟩`,`\\rangle`,!0),K(q,J,Aq,`∣`,`\\rvert`),K(q,J,Aq,`∥`,`\\rVert`),K(q,J,X,`=`,`=`),K(q,J,X,`:`,`:`),K(q,J,X,`≈`,`\\approx`,!0),K(q,J,X,`≅`,`\\cong`,!0),K(q,J,X,`≥`,`\\ge`),K(q,J,X,`≥`,`\\geq`,!0),K(q,J,X,`←`,`\\gets`),K(q,J,X,`>`,`\\gt`,!0),K(q,J,X,`∈`,`\\in`,!0),K(q,J,X,``,`\\@not`),K(q,J,X,`⊂`,`\\subset`,!0),K(q,J,X,`⊃`,`\\supset`,!0),K(q,J,X,`⊆`,`\\subseteq`,!0),K(q,J,X,`⊇`,`\\supseteq`,!0),K(q,Y,X,`⊈`,`\\nsubseteq`,!0),K(q,Y,X,`⊉`,`\\nsupseteq`,!0),K(q,J,X,`⊨`,`\\models`),K(q,J,X,`←`,`\\leftarrow`,!0),K(q,J,X,`≤`,`\\le`),K(q,J,X,`≤`,`\\leq`,!0),K(q,J,X,`<`,`\\lt`,!0),K(q,J,X,`→`,`\\rightarrow`,!0),K(q,J,X,`→`,`\\to`),K(q,Y,X,`≱`,`\\ngeq`,!0),K(q,Y,X,`≰`,`\\nleq`,!0),K(q,J,Iq,`\xA0`,`\\ `),K(q,J,Iq,`\xA0`,`\\space`),K(q,J,Iq,`\xA0`,`\\nobreakspace`),K(Dq,J,Iq,`\xA0`,`\\ `),K(Dq,J,Iq,`\xA0`,` `),K(Dq,J,Iq,`\xA0`,`\\space`),K(Dq,J,Iq,`\xA0`,`\\nobreakspace`),K(q,J,Iq,null,`\\nobreak`),K(q,J,Iq,null,`\\allowbreak`),K(q,J,Fq,`,`,`,`),K(q,J,Fq,`;`,`;`),K(q,Y,kq,`⊼`,`\\barwedge`,!0),K(q,Y,kq,`⊻`,`\\veebar`,!0),K(q,J,kq,`⊙`,`\\odot`,!0),K(q,J,kq,`⊕`,`\\oplus`,!0),K(q,J,kq,`⊗`,`\\otimes`,!0),K(q,J,Z,`∂`,`\\partial`,!0),K(q,J,kq,`⊘`,`\\oslash`,!0),K(q,Y,kq,`⊚`,`\\circledcirc`,!0),K(q,Y,kq,`⊡`,`\\boxdot`,!0),K(q,J,kq,`△`,`\\bigtriangleup`),K(q,J,kq,`▽`,`\\bigtriangledown`),K(q,J,kq,`†`,`\\dagger`),K(q,J,kq,`⋄`,`\\diamond`),K(q,J,kq,`⋆`,`\\star`),K(q,J,kq,`◃`,`\\triangleleft`),K(q,J,kq,`▹`,`\\triangleright`),K(q,J,Pq,`{`,`\\{`),K(Dq,J,Z,`{`,`\\{`),K(Dq,J,Z,`{`,`\\textbraceleft`),K(q,J,Aq,`}`,`\\}`),K(Dq,J,Z,`}`,`\\}`),K(Dq,J,Z,`}`,`\\textbraceright`),K(q,J,Pq,`{`,`\\lbrace`),K(q,J,Aq,`}`,`\\rbrace`),K(q,J,Pq,`[`,`\\lbrack`,!0),K(Dq,J,Z,`[`,`\\lbrack`,!0),K(q,J,Aq,`]`,`\\rbrack`,!0),K(Dq,J,Z,`]`,`\\rbrack`,!0),K(q,J,Pq,`(`,`\\lparen`,!0),K(q,J,Aq,`)`,`\\rparen`,!0),K(Dq,J,Z,`<`,`\\textless`,!0),K(Dq,J,Z,`>`,`\\textgreater`,!0),K(q,J,Pq,`⌊`,`\\lfloor`,!0),K(q,J,Aq,`⌋`,`\\rfloor`,!0),K(q,J,Pq,`⌈`,`\\lceil`,!0),K(q,J,Aq,`⌉`,`\\rceil`,!0),K(q,J,Z,`\\`,`\\backslash`),K(q,J,Z,`∣`,`|`),K(q,J,Z,`∣`,`\\vert`),K(Dq,J,Z,`|`,`\\textbar`,!0),K(q,J,Z,`∥`,`\\|`),K(q,J,Z,`∥`,`\\Vert`),K(Dq,J,Z,`∥`,`\\textbardbl`),K(Dq,J,Z,`~`,`\\textasciitilde`),K(Dq,J,Z,`\\`,`\\textbackslash`),K(Dq,J,Z,`^`,`\\textasciicircum`),K(q,J,X,`↑`,`\\uparrow`,!0),K(q,J,X,`⇑`,`\\Uparrow`,!0),K(q,J,X,`↓`,`\\downarrow`,!0),K(q,J,X,`⇓`,`\\Downarrow`,!0),K(q,J,X,`↕`,`\\updownarrow`,!0),K(q,J,X,`⇕`,`\\Updownarrow`,!0),K(q,J,Nq,`∐`,`\\coprod`),K(q,J,Nq,`⋁`,`\\bigvee`),K(q,J,Nq,`⋀`,`\\bigwedge`),K(q,J,Nq,`⨄`,`\\biguplus`),K(q,J,Nq,`⋂`,`\\bigcap`),K(q,J,Nq,`⋃`,`\\bigcup`),K(q,J,Nq,`∫`,`\\int`),K(q,J,Nq,`∫`,`\\intop`),K(q,J,Nq,`∬`,`\\iint`),K(q,J,Nq,`∭`,`\\iiint`),K(q,J,Nq,`∏`,`\\prod`),K(q,J,Nq,`∑`,`\\sum`),K(q,J,Nq,`⨂`,`\\bigotimes`),K(q,J,Nq,`⨁`,`\\bigoplus`),K(q,J,Nq,`⨀`,`\\bigodot`),K(q,J,Nq,`∮`,`\\oint`),K(q,J,Nq,`∯`,`\\oiint`),K(q,J,Nq,`∰`,`\\oiiint`),K(q,J,Nq,`⨆`,`\\bigsqcup`),K(q,J,Nq,`∫`,`\\smallint`),K(Dq,J,jq,`…`,`\\textellipsis`),K(q,J,jq,`…`,`\\mathellipsis`),K(Dq,J,jq,`…`,`\\ldots`,!0),K(q,J,jq,`…`,`\\ldots`,!0),K(q,J,jq,`⋯`,`\\@cdots`,!0),K(q,J,jq,`⋱`,`\\ddots`,!0),K(q,J,Z,`⋮`,`\\varvdots`),K(Dq,J,Z,`⋮`,`\\varvdots`),K(q,J,Oq,`ˊ`,`\\acute`),K(q,J,Oq,`ˋ`,`\\grave`),K(q,J,Oq,`¨`,`\\ddot`),K(q,J,Oq,`~`,`\\tilde`),K(q,J,Oq,`ˉ`,`\\bar`),K(q,J,Oq,`˘`,`\\breve`),K(q,J,Oq,`ˇ`,`\\check`),K(q,J,Oq,`^`,`\\hat`),K(q,J,Oq,`⃗`,`\\vec`),K(q,J,Oq,`˙`,`\\dot`),K(q,J,Oq,`˚`,`\\mathring`),K(q,J,Mq,``,`\\@imath`),K(q,J,Mq,``,`\\@jmath`),K(q,J,Z,`ı`,`ı`),K(q,J,Z,`ȷ`,`ȷ`),K(Dq,J,Z,`ı`,`\\i`,!0),K(Dq,J,Z,`ȷ`,`\\j`,!0),K(Dq,J,Z,`ß`,`\\ss`,!0),K(Dq,J,Z,`æ`,`\\ae`,!0),K(Dq,J,Z,`œ`,`\\oe`,!0),K(Dq,J,Z,`ø`,`\\o`,!0),K(Dq,J,Z,`Æ`,`\\AE`,!0),K(Dq,J,Z,`Œ`,`\\OE`,!0),K(Dq,J,Z,`Ø`,`\\O`,!0),K(Dq,J,Oq,`ˊ`,`\\'`),K(Dq,J,Oq,`ˋ`,"\\`"),K(Dq,J,Oq,`ˆ`,`\\^`),K(Dq,J,Oq,`˜`,`\\~`),K(Dq,J,Oq,`ˉ`,`\\=`),K(Dq,J,Oq,`˘`,`\\u`),K(Dq,J,Oq,`˙`,`\\.`),K(Dq,J,Oq,`¸`,`\\c`),K(Dq,J,Oq,`˚`,`\\r`),K(Dq,J,Oq,`ˇ`,`\\v`),K(Dq,J,Oq,`¨`,`\\"`),K(Dq,J,Oq,`˝`,`\\H`),K(Dq,J,Oq,`◯`,`\\textcircled`);var Lq={"--":!0,"---":!0,"``":!0,"''":!0};K(Dq,J,Z,`–`,`--`,!0),K(Dq,J,Z,`–`,`\\textendash`),K(Dq,J,Z,`—`,`---`,!0),K(Dq,J,Z,`—`,`\\textemdash`),K(Dq,J,Z,`‘`,"`",!0),K(Dq,J,Z,`‘`,`\\textquoteleft`),K(Dq,J,Z,`’`,`'`,!0),K(Dq,J,Z,`’`,`\\textquoteright`),K(Dq,J,Z,`“`,"``",!0),K(Dq,J,Z,`“`,`\\textquotedblleft`),K(Dq,J,Z,`”`,`''`,!0),K(Dq,J,Z,`”`,`\\textquotedblright`),K(q,J,Z,`°`,`\\degree`,!0),K(Dq,J,Z,`°`,`\\degree`),K(Dq,J,Z,`°`,`\\textdegree`,!0),K(q,J,Z,`£`,`\\pounds`),K(q,J,Z,`£`,`\\mathsterling`,!0),K(Dq,J,Z,`£`,`\\pounds`),K(Dq,J,Z,`£`,`\\textsterling`,!0),K(q,Y,Z,`✠`,`\\maltese`),K(Dq,Y,Z,`✠`,`\\maltese`);for(var Rq=`0123456789/@."`,zq=0;zq0)return iJ(i,c,r,t,a.concat(l));if(s){var u,d;if(s===`boldsymbol`){var f=kye(i,r,t,a,n);u=f.fontName,d=[f.fontClass]}else o?(u=uJ[s].fontName,d=[s]):(u=lJ(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(rJ(i,u,r).metrics)return iJ(i,u,r,t,a.concat(d));if(Lq.hasOwnProperty(i)&&u.slice(0,10)===`Typewriter`){for(var p=[],m=0;m{if(hq(e.classes)!==hq(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Mye=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},oJ=function(e,t,n,r){var i=new yq(e,t,n,r);return aJ(i),i},sJ=(e,t,n,r)=>new yq(e,t,n,r),Nye=function(e,t,n){var r=oJ([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=mq(r.height),r.maxFontSize=1,r},Pye=function(e,t,n,r){var i=new bq(e,t,n,r);return aJ(i),i},cJ=function(e){var t=new nq(e);return aJ(t),t},Fye=function(e,t){return e instanceof nq?oJ([],[e],t):e},Iye=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=oJ([`mspace`],[],t),r=pq(e,t);return n.style.marginRight=mq(r),n},lJ=function(e,t,n){var r=``;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}var i;return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:t===`textit`?`Italic`:`Regular`,r+`-`+i},uJ={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},dJ={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},zye=function(e,t){var[n,r,i]=dJ[e],a=new Cq(n),o=new Sq([a],{width:mq(r),height:mq(i),style:`width:`+mq(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`}),s=sJ([`overlay`],[o],t);return s.height=i,s.style.height=mq(i),s.style.width=mq(r),s},Q={fontMap:uJ,makeSymbol:iJ,mathsym:Oye,makeSpan:oJ,makeSvgSpan:sJ,makeLineSpan:Nye,makeAnchor:Pye,makeFragment:cJ,wrapFragment:Fye,makeVList:Lye,makeOrd:Aye,makeGlue:Rye,staticSvg:zye,svgData:dJ,tryCombineChars:Mye},fJ={number:3,unit:`mu`},pJ={number:4,unit:`mu`},mJ={number:5,unit:`mu`},Bye={mord:{mop:fJ,mbin:pJ,mrel:mJ,minner:fJ},mop:{mord:fJ,mop:fJ,mrel:mJ,minner:fJ},mbin:{mord:pJ,mop:pJ,mopen:pJ,minner:pJ},mrel:{mord:mJ,mop:mJ,mopen:mJ,minner:mJ},mopen:{},mclose:{mop:fJ,mbin:pJ,mrel:mJ,minner:fJ},mpunct:{mord:fJ,mop:fJ,mrel:mJ,mopen:fJ,mclose:fJ,mpunct:fJ,minner:fJ},minner:{mord:fJ,mop:fJ,mbin:pJ,mrel:mJ,mopen:fJ,mpunct:fJ,minner:fJ}},Vye={mord:{mop:fJ},mop:{mord:fJ,mop:fJ},mbin:{},mrel:{},mopen:{},mclose:{mop:fJ},mpunct:{},minner:{mop:fJ}},hJ={},gJ={},_J={};function vJ(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c{var n=t.classes[0],r=e.classes[0];n===`mbin`&&LK.contains(Uye,r)?t.classes[0]=`mord`:r===`mbin`&&LK.contains(Hye,n)&&(e.classes[0]=`mord`)},{node:u},d,f),wJ(i,(e,t)=>{var n=EJ(t),r=EJ(e),i=n&&r?e.hasClass(`mtight`)?Vye[n][r]:Bye[n][r]:null;if(i)return Q.makeGlue(i,c)},{node:u},d,f),i},wJ=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;on=>{t.splice(e+1,0,n),o++})(o)}i&&t.pop()},TJ=function(e){return e instanceof nq||e instanceof bq||e instanceof yq&&e.hasClass(`enclosing`)?e:null},Kye=function e(t,n){var r=TJ(t);if(r){var i=r.children;if(i.length){if(n===`right`)return e(i[i.length-1],`right`);if(n===`left`)return e(i[0],`left`)}}return t},EJ=function(e,t){return e?(t&&(e=Kye(e,t)),Gye[e.classes[0]]||null):null},DJ=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return SJ(t.concat(n))},OJ=function(e,t,n){if(!e)return SJ();if(gJ[e.type]){var r=gJ[e.type](e,t);if(n&&t.size!==n.size){r=SJ(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new FK(`Got group of unknown type: '`+e.type+`'`)};function kJ(e,t){var n=SJ([`base`],e,t),r=SJ([`strut`]);return r.style.height=mq(n.height+n.depth),n.depth&&(r.style.verticalAlign=mq(-n.depth)),n.children.unshift(r),n}function AJ(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=CJ(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s0&&(a.push(kJ(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(kJ(o,t));var l;n?(l=kJ(CJ(n,t,!0)),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=SJ([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=mq(u.height+u.depth),u.depth&&(d.style.verticalAlign=mq(-u.depth))}return u}function jJ(e){return new nq(e)}var MJ=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=hq(this.classes));for(var n=0;n0&&(e+=` class ="`+LK.escape(hq(this.classes))+`"`),e+=`>`;for(var n=0;n`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},NJ=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return LK.escape(this.toText())}toText(){return this.text}},qye=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=`  `:e>=-.05556&&e<=-.05555?this.character=` ⁣`:e>=-.1667&&e<=-.1666?this.character=` ⁣`:e>=-.2223&&e<=-.2222?this.character=` ⁣`:e>=-.2778&&e<=-.2777?this.character=` ⁣`:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,mq(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},PJ={MathNode:MJ,TextNode:NJ,SpaceNode:qye,newDocumentFragment:jJ},FJ=function(e,t,n){return Eq[t][e]&&Eq[t][e].replace&&e.charCodeAt(0)!==55349&&!(Lq.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=Eq[t][e].replace),new PJ.TextNode(e)},IJ=function(e){return e.length===1?e[0]:new PJ.MathNode(`mrow`,e)},LJ=function(e,t){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`;var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode;if(n===`mathit`)return`italic`;if(n===`boldsymbol`)return e.type===`textord`?`bold`:`bold-italic`;if(n===`mathbf`)return`bold`;if(n===`mathbb`)return`double-struck`;if(n===`mathsfit`)return`sans-serif-italic`;if(n===`mathfrak`)return`fraktur`;if(n===`mathscr`||n===`mathcal`)return`script`;if(n===`mathsf`)return`sans-serif`;if(n===`mathtt`)return`monospace`;var i=e.text;if(LK.contains([`\\imath`,`\\jmath`],i))return null;Eq[r][i]&&Eq[r][i].replace&&(i=Eq[r][i].replace);var a=Q.fontMap[n].fontName;return oq(i,a,r)?Q.fontMap[n].variant:null};function RJ(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof NJ&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof NJ&&n.text===`,`}else return!1}var zJ=function(e,t,n){if(e.length===1){var r=VJ(e[0],t);return n&&r instanceof MJ&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||RJ(a))){var c=s.children[0];c instanceof MJ&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof NJ&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof NJ&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},BJ=function(e,t,n){return IJ(zJ(e,t,n))},VJ=function(e,t){if(!e)return new PJ.MathNode(`mrow`);if(_J[e.type]){var n=_J[e.type](e,t);return n}else throw new FK(`Got group of unknown type: '`+e.type+`'`)};function HJ(e,t,n,r,i){var a=zJ(e,n),o;o=a.length===1&&a[0]instanceof MJ&&LK.contains([`mrow`,`mtable`],a[0].type)?a[0]:new PJ.MathNode(`mrow`,a);var s=new PJ.MathNode(`annotation`,[new PJ.TextNode(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new PJ.MathNode(`semantics`,[o,s]),l=new PJ.MathNode(`math`,[c]);l.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&l.setAttribute(`display`,`block`);var u=i?`katex`:`katex-mathml`;return Q.makeSpan([u],[l])}var UJ=function(e){return new uq({style:e.displayMode?XK.DISPLAY:XK.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},WJ=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=Q.makeSpan(n,[e])}return e},Jye=function(e,t,n){var r=UJ(n),i;if(n.output===`mathml`)return HJ(e,t,r,n.displayMode,!0);if(n.output===`html`){var a=AJ(e,r);i=Q.makeSpan([`katex`],[a])}else{var o=HJ(e,t,r,n.displayMode,!1),s=AJ(e,r);i=Q.makeSpan([`katex`],[o,s])}return WJ(i,n)},Yye=function(e,t,n){var r=UJ(n),i=AJ(e,r),a=Q.makeSpan([`katex`],[i]);return WJ(a,n)},Xye={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},Zye=function(e){var t=new PJ.MathNode(`mo`,[new PJ.TextNode(Xye[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Qye={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},$ye=function(e){return e.type===`ordgroup`?e.body.length:1},ebe=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(LK.contains([`widehat`,`widecheck`,`widetilde`,`utilde`],r)){var i=e,a=$ye(i.base),o,s,c;if(a>5)r===`widehat`||r===`widecheck`?(o=420,n=2364,c=.42,s=r+`4`):(o=312,n=2340,c=.34,s=`tilde4`);else{var l=[1,1,2,2,3,3][a];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],c=[0,.24,.3,.3,.36,.42][l],s=r+l):(n=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],c=[0,.26,.286,.3,.306,.34][l],s=`tilde`+l)}var u=new Cq(s),d=new Sq([u],{width:`100%`,height:mq(c),viewBox:`0 0 `+n+` `+o,preserveAspectRatio:`none`});return{span:Q.makeSvgSpan([],[d],t),minWidth:0,height:c}}else{var f=[],p=Qye[r],[m,h,g]=p,_=g/1e3,v=m.length,y,b;if(v===1){var x=p[3];y=[`hide-tail`],b=[x]}else if(v===2)y=[`halfarrow-left`,`halfarrow-right`],b=[`xMinYMin`,`xMaxYMin`];else if(v===3)y=[`brace-left`,`brace-center`,`brace-right`],b=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support - `+v+` children.`);for(var S=0;S0&&(r.style.minWidth=mq(i)),r},tbe=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=Q.makeSpan([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new wq({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new wq({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`}));var l=new Sq(c,{width:`100%`,height:mq(o)});a=Q.makeSvgSpan([],[l],i)}return a.height=o,a.style.height=mq(o),a},GJ={encloseSpan:tbe,mathMLnode:Zye,svgSpan:ebe};function KJ(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function qJ(e){var t=JJ(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function JJ(e){return e&&(e.type===`atom`||Eye.hasOwnProperty(e.type))?e:null}var YJ=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=KJ(e.base,`accent`),n=r.base,e.base=n,i=wye(OJ(e,t)),e.base=r):(r=KJ(e,`accent`),n=r.base);var a=OJ(n,t.havingCrampedStyle()),o=r.isShifty&&LK.isCharacterBox(n),s=0;if(o){var c=LK.getBaseElem(n),l=OJ(c,t.havingCrampedStyle());s=Tq(l).skew}var u=r.label===`\\c`,d=u?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),f;if(r.isStretchy)f=GJ.svgSpan(r,t),f=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:f,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+mq(2*s)+`)`,marginLeft:mq(2*s)}:void 0}]},t);else{var p,m;r.label===`\\vec`?(p=Q.staticSvg(`vec`,t),m=Q.svgData.vec[1]):(p=Q.makeOrd({mode:r.mode,text:r.label},t,`textord`),p=Tq(p),p.italic=0,m=p.width,u&&(d+=p.depth)),f=Q.makeSpan([`accent-body`],[p]);var h=r.label===`\\textcircled`;h&&(f.classes.push(`accent-full`),d=a.height);var g=s;h||(g-=m/2),f.style.left=mq(g),r.label===`\\textcircled`&&(f.style.top=`.2em`),f=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-d},{type:`elem`,elem:f}]},t)}var _=Q.makeSpan([`mord`,`accent`],[f],t);return i?(i.children[0]=_,i.height=Math.max(_.height,i.height),i.classes[0]=`mord`,i):_},XJ=(e,t)=>{var n=e.isStretchy?GJ.mathMLnode(e.label):new PJ.MathNode(`mo`,[FJ(e.label,e.mode)]),r=new PJ.MathNode(`mover`,[VJ(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},nbe=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));vJ({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=bJ(t[0]),r=!nbe.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:YJ,mathmlBuilder:XJ}),vJ({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:YJ,mathmlBuilder:XJ}),vJ({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=OJ(e.base,t),r=GJ.svgSpan(e,t),i=e.label===`\\utilde`?.12:0,a=Q.makeVList({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]},t);return Q.makeSpan([`mord`,`accentunder`],[a],t)},mathmlBuilder:(e,t)=>{var n=GJ.mathMLnode(e.label),r=new PJ.MathNode(`munder`,[VJ(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var ZJ=e=>{var t=new PJ.MathNode(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};vJ({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Q.wrapFragment(OJ(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Q.wrapFragment(OJ(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=GJ.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c},{type:`elem`,elem:o,shift:d}]},t)}else u=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c}]},t);return u.children[0].children[0].children[1].classes.push(`svg-align`),Q.makeSpan([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=GJ.mathMLnode(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=ZJ(VJ(e.body,t));if(e.below){var a=ZJ(VJ(e.below,t));r=new PJ.MathNode(`munderover`,[n,a,i])}else r=new PJ.MathNode(`mover`,[n,i])}else if(e.below){var o=ZJ(VJ(e.below,t));r=new PJ.MathNode(`munder`,[n,o])}else r=ZJ(),r=new PJ.MathNode(`mover`,[n,r]);return r}});var rbe=Q.makeSpan;function QJ(e,t){var n=CJ(e.body,t,!0);return rbe([e.mclass],n,t)}function $J(e,t){var n,r=zJ(e.body,t);return e.mclass===`minner`?n=new PJ.MathNode(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new PJ.MathNode(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new PJ.MathNode(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}vJ({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:xJ(i),isCharacterBox:LK.isCharacterBox(i)}},htmlBuilder:QJ,mathmlBuilder:$J});var eY=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};vJ({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:eY(t[0]),body:xJ(t[1]),isCharacterBox:LK.isCharacterBox(t[1])}}}),vJ({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o;o=r===`\\stackrel`?`mrel`:eY(i);var s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:xJ(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:LK.isCharacterBox(c)}},htmlBuilder:QJ,mathmlBuilder:$J}),vJ({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:eY(t[0]),body:xJ(t[0])}},htmlBuilder(e,t){var n=CJ(e.body,t,!0),r=Q.makeSpan([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=zJ(e.body,t),r=new PJ.MathNode(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}});var ibe={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},tY=()=>({type:`styling`,body:[],mode:`math`,style:`display`}),nY=e=>e.type===`textord`&&e.text===`@`,abe=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function obe(e,t,n){var r=ibe[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o=n.callFunction(`\\Big`,[a],[]),s=n.callFunction(`\\\\cdright`,[t[1]],[]),c={type:`ordgroup`,mode:`math`,body:[i,o,s]};return n.callFunction(`\\\\cdparent`,[c],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:var l={type:`textord`,text:`\\Vert`,mode:`math`};return n.callFunction(`\\Big`,[l],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function sbe(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new FK(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a-1))if(`<>AV`.indexOf(l)>-1)for(var d=0;d<2;d++){for(var f=!0,p=c+1;pAV=|." after @`,o[c]);var m=obe(l,u,e),h={type:`styling`,body:[m],mode:`math`,style:`display`};r.push(h),s=tY()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var g=Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25});return{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:g,colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}vJ({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Q.wrapFragment(OJ(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=mq(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new PJ.MathNode(`mrow`,[VJ(e.label,t)]);return n=new PJ.MathNode(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new PJ.MathNode(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),vJ({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Q.wrapFragment(OJ(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new PJ.MathNode(`mrow`,[VJ(e.fragment,t)])}}),vJ({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=KJ(t[0],`ordgroup`),i=r.body,a=``,o=0;o=1114111)throw new FK(`\\@char with invalid code point `+a);return c<=65535?l=String.fromCharCode(c):(c-=65536,l=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:`textord`,mode:n.mode,text:l}}});var rY=(e,t)=>{var n=CJ(e.body,t.withColor(e.color),!1);return Q.makeFragment(n)},iY=(e,t)=>{var n=zJ(e.body,t.withColor(e.color)),r=new PJ.MathNode(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r};vJ({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=KJ(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:xJ(i)}},htmlBuilder:rY,mathmlBuilder:iY}),vJ({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=KJ(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:rY,mathmlBuilder:iY}),vJ({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&KJ(i,`size`).value}},htmlBuilder(e,t){var n=Q.makeSpan([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=mq(pq(e.size,t)))),n},mathmlBuilder(e,t){var n=new PJ.MathNode(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,mq(pq(e.size,t)))),n}});var aY={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},oY=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new FK(`Expected a control sequence`,e);return t},cbe=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},sY=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};vJ({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(aY[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=aY[r.text]),KJ(t.parseFunction(),`internal`);throw new FK(`Invalid token after macro prefix`,r)}}),vJ({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new FK(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new FK(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new FK(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new FK(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===aY[n]),{type:`internal`,mode:t.mode}}}),vJ({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=oY(t.gullet.popToken());t.gullet.consumeSpaces();var i=cbe(t);return sY(t,r,i,n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),vJ({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=oY(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return sY(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var cY=function(e,t,n){var r=Eq.math[e]&&Eq.math[e].replace,i=oq(r||e,t,n);if(!i)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return i},lY=function(e,t,n,r){var i=n.havingBaseStyle(t),a=Q.makeSpan(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},uY=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=mq(i),e.height-=i,e.depth+=i},lbe=function(e,t,n,r,i,a){var o=Q.makeSymbol(e,`Main-Regular`,i,r),s=lY(o,t,r,a);return n&&uY(s,r,t),s},ube=function(e,t,n,r){return Q.makeSymbol(e,`Size`+t+`-Regular`,n,r)},dY=function(e,t,n,r,i,a){var o=ube(e,t,i,r),s=lY(Q.makeSpan([`delimsizing`,`size`+t],[o],r),XK.TEXT,r,a);return n&&uY(s,r,XK.TEXT),s},fY=function(e,t,n){var r;r=t===`Size1-Regular`?`delim-size1`:`delim-size4`;var i=Q.makeSpan([`delimsizinginner`,r],[Q.makeSpan([],[Q.makeSymbol(e,t,n)])]);return{type:`elem`,elem:i}},pY=function(e,t,n){var r=rq[`Size4-Regular`][e.charCodeAt(0)]?rq[`Size4-Regular`][e.charCodeAt(0)][4]:rq[`Size1-Regular`][e.charCodeAt(0)][4],i=new Cq(`inner`,hye(e,Math.round(1e3*t))),a=new Sq([i],{width:mq(r),height:mq(t),style:`width:`+mq(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`}),o=Q.makeSvgSpan([],[a],n);return o.height=t,o.style.height=mq(t),o.style.width=mq(r),{type:`elem`,elem:o}},mY=.008,hY={type:`kern`,size:-1*mY},dbe=[`|`,`\\lvert`,`\\rvert`,`\\vert`],fbe=[`\\|`,`\\lVert`,`\\rVert`,`\\Vert`],gY=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):LK.contains(dbe,e)?(c=`∣`,u=`vert`,d=333):LK.contains(fbe,e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=cY(o,f,i),m=p.height+p.depth,h=cY(c,f,i),g=h.height+h.depth,_=cY(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=cY(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=Math.max(0,Math.ceil((t-S)/(b*g))),w=S+C*b*g,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(u.length>0){var O=w-m-v,k=Math.round(w*1e3),A=gye(u,Math.round(O*1e3)),j=new Cq(u,A),M=(d/1e3).toFixed(3)+`em`,ee=(k/1e3).toFixed(3)+`em`,te=new Sq([j],{width:M,height:ee,viewBox:`0 0 `+d+` `+k}),N=Q.makeSvgSpan([],[te],r);N.height=k/1e3,N.style.width=M,N.style.height=ee,D.push({type:`elem`,elem:N})}else{if(D.push(fY(l,f,i)),D.push(hY),s===null){var ne=w-m-v+2*mY;D.push(pY(c,ne,r))}else{var re=(w-m-v-y)/2+2*mY;D.push(pY(c,re,r)),D.push(hY),D.push(fY(s,f,i)),D.push(hY),D.push(pY(c,re,r))}D.push(hY),D.push(fY(o,f,i))}var ie=r.havingBaseStyle(XK.TEXT),ae=Q.makeVList({positionType:`bottom`,positionData:E,children:D},ie);return lY(Q.makeSpan([`delimsizing`,`mult`],[ae],ie),XK.TEXT,r,a)},_Y=80,vY=.08,yY=function(e,t,n,r,i){var a=mye(e,r,n),o=new Cq(e,a),s=new Sq([o],{width:`400em`,height:mq(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`});return Q.makeSvgSpan([`hide-tail`],[s],i)},pbe=function(e,t){var n=t.havingBaseSizing(),r=wY(`\\surd`,e*n.sizeMultiplier,CY,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s=0,c=0,l=0,u;return r.type===`small`?(l=1e3+1e3*a+_Y,e<1?i=1:e<1.4&&(i=.7),s=(1+a+vY)/i,c=(1+a)/i,o=yY(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+_Y)*SY[r.size],c=(SY[r.size]+a)/i,s=(SY[r.size]+a+vY)/i,o=yY(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+vY,c=e+a,l=Math.floor(1e3*e+a)+_Y,o=yY(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=mq(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},bY=[`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`],mbe=[`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`],xY=[`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`],SY=[0,1.2,1.8,2.4,3],hbe=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),LK.contains(bY,e)||LK.contains(xY,e))return dY(e,t,!1,n,r,i);if(LK.contains(mbe,e))return gY(e,SY[t],!1,n,r,i);throw new FK(`Illegal delimiter: '`+e+`'`)},gbe=[{type:`small`,style:XK.SCRIPTSCRIPT},{type:`small`,style:XK.SCRIPT},{type:`small`,style:XK.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],_be=[{type:`small`,style:XK.SCRIPTSCRIPT},{type:`small`,style:XK.SCRIPT},{type:`small`,style:XK.TEXT},{type:`stack`}],CY=[{type:`small`,style:XK.SCRIPTSCRIPT},{type:`small`,style:XK.SCRIPT},{type:`small`,style:XK.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],vbe=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;throw Error(`Add support for delim type '`+e.type+`' here.`)},wY=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size),a=i;at)return n[a]}return n[n.length-1]},TY=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o;o=LK.contains(xY,e)?gbe:LK.contains(bY,e)?CY:_be;var s=wY(e,t,o,r);return s.type===`small`?lbe(e,s.style,n,r,i,a):s.type===`large`?dY(e,s.size,n,r,i,a):gY(e,t,n,r,i,a)},ybe=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o),u=Math.max(l/500*s,2*l-c);return TY(e,u,!0,r,i,a)},EY={sqrtImage:pbe,sizedDelim:hbe,sizeToMaxHeight:SY,customSizedDelim:TY,leftRightDelim:ybe},DY={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},bbe=`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`);function OY(e,t){var n=JJ(e);if(n&&LK.contains(bbe,n.text))return n;throw n?new FK(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new FK(`Invalid delimiter type '`+e.type+`'`,e)}vJ({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=OY(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:DY[e.funcName].size,mclass:DY[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?Q.makeSpan([e.mclass]):EY.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(FJ(e.delim,e.mode));var n=new PJ.MathNode(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=mq(EY.sizeToMaxHeight[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function kY(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}vJ({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new FK(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:OY(t[0],e).text,color:n}}}),vJ({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=OY(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=KJ(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{kY(e);for(var n=CJ(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{kY(e);var n=zJ(e.body,t);if(e.left!==`.`){var r=new PJ.MathNode(`mo`,[FJ(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new PJ.MathNode(`mo`,[FJ(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return IJ(n)}}),vJ({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=OY(t[0],e);if(!e.parser.leftrightDepth)throw new FK(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===`.`)n=DJ(t,[]);else{n=EY.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?FJ(`|`,`text`):FJ(e.delim,e.mode),r=new PJ.MathNode(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}});var AY=(e,t)=>{var n=Q.wrapFragment(OJ(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=LK.isCharacterBox(e.body);if(r===`sout`)a=Q.makeSpan([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=pq({number:.6,unit:`pt`},t),l=pq({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=mq(d/2+c);var f=Math.floor(1e3*d*i),p=fye(f),m=new Sq([new Cq(`phase`,p)],{width:`400em`,height:mq(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`});a=Q.makeSvgSpan([`hide-tail`],[m],t),a.style.height=mq(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h=0,g=0,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=GJ.encloseSpan(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=mq(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=mq(_),a.style.borderRightWidth=mq(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]},t);else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]},t)}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?Q.makeSpan([`mord`,`cancel-lap`],[v],t):Q.makeSpan([`mord`],[v],t)},jY=(e,t)=>{var n=0,r=new PJ.MathNode(e.label.indexOf(`colorbox`)>-1?`mpadded`:`menclose`,[VJ(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+i+`em solid `+String(e.borderColor))}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};vJ({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=KJ(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:AY,mathmlBuilder:jY}),vJ({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=KJ(t[0],`color-token`).color,o=KJ(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:AY,mathmlBuilder:jY}),vJ({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),vJ({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\sout`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:AY,mathmlBuilder:jY}),vJ({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var MY={};function NY(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c{var t=e.parser.settings;if(!t.displayMode)throw new FK(`{`+e.envName+`} can be used only in display mode.`)};function LY(e){if(e.indexOf(`ed`)===-1)return e.indexOf(`*`)===-1}function RY(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new FK(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new PK(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(FY(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup(),x={type:`ordgroup`,mode:e.mode,body:x},n&&(x={type:`styling`,mode:e.mode,style:n,body:[x]}),m.push(x);var S=e.fetch().text;if(S===`&`){if(d&&m.length===d){if(l||s)throw new FK(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(S===`\\end`){b(),m.length===1&&x.type===`styling`&&x.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length0&&(v+=.25),c.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ce=void 0;(r>0||e.hskipBeforeAndAfter)&&(ce=LK.deflt(re.pregap,d),ce!==0&&(A=Q.makeSpan([`arraycolsep`],[]),A.style.width=mq(ce),k.push(A)));var le=[];for(n=0;n0){for(var pe=Q.makeLineSpan(`hline`,t,l),P=Q.makeLineSpan(`hdashline`,t,l),me=[{type:`elem`,elem:s,shift:0}];c.length>0;){var he=c.pop(),ge=he.pos-D;he.isDashed?me.push({type:`elem`,elem:P,shift:ge}):me.push({type:`elem`,elem:pe,shift:ge})}s=Q.makeVList({positionType:`individualShift`,children:me},t)}if(M.length===0)return Q.makeSpan([`mord`],[s],t);var _e=Q.makeVList({positionType:`individualShift`,children:M},t);return _e=Q.makeSpan([`tag`],[_e],t),Q.makeFragment([s,_e])},xbe={c:`center `,l:`left `,r:`right `},VY=function(e,t){for(var n=[],r=new PJ.MathNode(`mtd`,[],[`mtr-glue`]),i=new PJ.MathNode(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++)p[v].type===`align`?(f+=xbe[p[v].align],h&&(m+=`none `),h=!0):p[v].type===`separator`&&(h&&=(m+=p[v].separator===`|`?`solid `:`dashed `,!1));l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var y=e.cols||[],b=``,x=1;x0?`left `:``,d+=C[C.length-1].length>0?`right `:``;for(var w=1;w-1?`alignat`:`align`,i=e.envName===`split`,a=RY(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:LY(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};NY({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=JJ(t[0]),r=n?[t[0]]:KJ(t[0],`ordgroup`).body,i=r.map(function(e){var t=qJ(e),n=t.text;if(`lcr`.indexOf(n)!==-1)return{type:`align`,align:n};if(n===`|`)return{type:`separator`,separator:`|`};if(n===`:`)return{type:`separator`,separator:`:`};throw new FK(`Unknown column alignment: `+n,e)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return RY(e.parser,a,zY(e.envName))},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,`lcr`.indexOf(n)===-1)throw new FK(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=RY(e.parser,r,zY(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=RY(e.parser,t,`script`);return n.colSeparationType=`small`,n},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=JJ(t[0]),r=n?[t[0]]:KJ(t[0],`ordgroup`).body,i=r.map(function(e){var t=qJ(e),n=t.text;if(`lc`.indexOf(n)!==-1)return{type:`align`,align:n};throw new FK(`Unknown column alignment: `+n,e)});if(i.length>1)throw new FK(`{subarray} can contain only one column`);var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=RY(e.parser,a,`script`),a.body.length>0&&a.body[0].length>1)throw new FK(`{subarray} can contain only one column`);return a},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},n=RY(e.parser,t,zY(e.envName));return{type:`leftright`,mode:e.mode,body:[n],left:e.envName.indexOf(`r`)>-1?`.`:`\\{`,right:e.envName.indexOf(`r`)>-1?`\\}`:`.`,rightColor:void 0}},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:HY,htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){LK.contains([`gather`,`gather*`],e.envName)&&IY(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:LY(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return RY(e.parser,t,`display`)},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:HY,htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){IY(e);var t={autoTag:LY(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return RY(e.parser,t,`display`)},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return IY(e),sbe(e.parser)},htmlBuilder:BY,mathmlBuilder:VY}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),vJ({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new FK(e.funcName+` valid only within array environment`)}});var UY=MY;vJ({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new FK(`Invalid environment name`,i);for(var a=``,o=0;o{var n=e.font,r=t.withFont(n);return OJ(e.body,r)},GY=(e,t)=>{var n=e.font,r=t.withFont(n);return VJ(e.body,r)},KY={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`,"\\bm":`\\boldsymbol`};vJ({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=bJ(t[0]),a=r;return a in KY&&(a=KY[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:WY,mathmlBuilder:GY}),vJ({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=LK.isCharacterBox(r);return{type:`mclass`,mode:n.mode,mclass:eY(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:i}}}),vJ({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i),s=`math`+r.slice(1);return{type:`font`,mode:a,font:s,body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:WY,mathmlBuilder:GY});var qY=(e,t)=>{var n=t;return e===`display`?n=n.id>=XK.SCRIPT.id?n.text():XK.DISPLAY:e===`text`&&n.size===XK.DISPLAY.size?n=XK.TEXT:e===`script`?n=XK.SCRIPT:e===`scriptscript`&&(n=XK.SCRIPTSCRIPT),n},JY=(e,t)=>{var n=qY(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var o=OJ(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d){var n=new PJ.MathNode(`mfrac`,[VJ(e.numer,t),VJ(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=pq(e.barSize,t);n.setAttribute(`linethickness`,mq(r))}var i=qY(e.size,t.style);if(i.size!==t.style.size){n=new PJ.MathNode(`mstyle`,[n]);var a=i.size===XK.DISPLAY.size?`true`:`false`;n.setAttribute(`displaystyle`,a),n.setAttribute(`scriptlevel`,`0`)}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new PJ.MathNode(`mo`,[new PJ.TextNode(e.leftDelim.replace(`\\`,``))]);s.setAttribute(`fence`,`true`),o.push(s)}if(o.push(n),e.rightDelim!=null){var c=new PJ.MathNode(`mo`,[new PJ.TextNode(e.rightDelim.replace(`\\`,``))]);c.setAttribute(`fence`,`true`),o.push(c)}return IJ(o)}return n};vJ({type:`genfrac`,names:[`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null,l=`auto`;switch(r){case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}switch(r){case`\\dfrac`:case`\\dbinom`:l=`display`;break;case`\\tfrac`:case`\\tbinom`:l=`text`;break}return{type:`genfrac`,mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:s,rightDelim:c,size:l,barSize:null}},htmlBuilder:JY,mathmlBuilder:YY}),vJ({type:`genfrac`,names:[`\\cfrac`],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:`genfrac`,mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:`display`,barSize:null}}}),vJ({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var XY=[`display`,`text`,`script`,`scriptscript`],ZY=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};vJ({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=bJ(t[0]),o=a.type===`atom`&&a.family===`open`?ZY(a.text):null,s=bJ(t[1]),c=s.type===`atom`&&s.family===`close`?ZY(s.text):null,l=KJ(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=`auto`,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=KJ(p.body[0],`textord`);f=XY[Number(m.text)]}}else p=KJ(p,`textord`),f=XY[Number(p.text)];return{type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c,size:f}},htmlBuilder:JY,mathmlBuilder:YY}),vJ({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:KJ(t[0],`size`).value,token:i}}}),vJ({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Zve(KJ(t[1],`infix`).size),o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:`auto`}},htmlBuilder:JY,mathmlBuilder:YY});var QY=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?OJ(e.sup,t.havingStyle(n.sup()),t):OJ(e.sub,t.havingStyle(n.sub()),t),i=KJ(e.base,`horizBrace`)):i=KJ(e,`horizBrace`);var a=OJ(i.base,t.havingBaseStyle(XK.DISPLAY)),o=GJ.svgSpan(i,t),s;if(i.isOver?(s=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o}]},t),s.children[0].children[0].children[1].classes.push(`svg-align`)):(s=Q.makeVList({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o},{type:`kern`,size:.1},{type:`elem`,elem:a}]},t),s.children[0].children[0].children[0].classes.push(`svg-align`)),r){var c=Q.makeSpan([`mord`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]},t):Q.makeVList({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]},t)}return Q.makeSpan([`mord`,i.isOver?`mover`:`munder`],[s],t)},Sbe=(e,t)=>{var n=GJ.mathMLnode(e.label);return new PJ.MathNode(e.isOver?`mover`:`munder`,[VJ(e.base,t),n])};vJ({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:QY,mathmlBuilder:Sbe}),vJ({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=KJ(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:xJ(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=CJ(e.body,t,!1);return Q.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=BJ(e.body,t);return n instanceof MJ||(n=new MJ(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),vJ({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=KJ(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=KJ(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u{var n=CJ(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Q.makeSpan(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>BJ(e.body,t)}),vJ({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:xJ(t[0]),mathml:xJ(t[1])}},htmlBuilder:(e,t)=>{var n=CJ(e.html,t,!1);return Q.makeFragment(n)},mathmlBuilder:(e,t)=>BJ(e.mathml,t)});var $Y=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new FK(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!fq(n))throw new FK(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};vJ({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=KJ(n[0],`raw`).string,l=c.split(`,`),u=0;u{var n=pq(e.height,t),r=0;e.totalheight.number>0&&(r=pq(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pq(e.width,t));var a={height:mq(n+r)};i>0&&(a.width=mq(i)),r>0&&(a.verticalAlign=mq(-r));var o=new Sye(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new PJ.MathNode(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=pq(e.height,t),i=0;if(e.totalheight.number>0&&(i=pq(e.totalheight,t)-r,n.setAttribute(`valign`,mq(-i))),n.setAttribute(`height`,mq(r+i)),e.width.number>0){var a=pq(e.width,t);n.setAttribute(`width`,mq(a))}return n.setAttribute(`src`,e.src),n}}),vJ({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=KJ(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Q.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=pq(e.dimension,t);return new PJ.SpaceNode(n)}}),vJ({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=Q.makeSpan([],[OJ(e.body,t)]),n=Q.makeSpan([`inner`],[n],t)):n=Q.makeSpan([`inner`],[OJ(e.body,t)]);var r=Q.makeSpan([`fix`],[]),i=Q.makeSpan([e.alignment],[n,r],t),a=Q.makeSpan([`strut`]);return a.style.height=mq(i.height+i.depth),i.depth&&(a.style.verticalAlign=mq(-i.depth)),i.children.unshift(a),i=Q.makeSpan([`thinbox`],[i],t),Q.makeSpan([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new PJ.MathNode(`mpadded`,[VJ(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),vJ({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,body:o}}}),vJ({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new FK(`Mismatched `+e.funcName)}});var eX=(e,t)=>{switch(t.style.size){case XK.DISPLAY.size:return e.display;case XK.TEXT.size:return e.text;case XK.SCRIPT.size:return e.script;case XK.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};vJ({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:xJ(t[0]),text:xJ(t[1]),script:xJ(t[2]),scriptscript:xJ(t[3])}},htmlBuilder:(e,t)=>{var n=eX(e,t),r=CJ(n,t,!1);return Q.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=eX(e,t);return BJ(n,t)}});var tX=(e,t,n,r,i,a,o)=>{e=Q.makeSpan([],[e]);var s=n&&LK.isCharacterBox(n),c,l;if(t){var u=OJ(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=OJ(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c){var p=r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o;f=Q.makeVList({positionType:`bottom`,positionData:p,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:mq(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:mq(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]},r)}else if(c){var m=e.height-o;f=Q.makeVList({positionType:`top`,positionData:m,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:mq(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]},r)}else if(l){var h=e.depth+o;f=Q.makeVList({positionType:`bottom`,positionData:h,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:mq(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var g=[f];if(c&&a!==0&&!s){var _=Q.makeSpan([`mspace`],[],r);_.style.marginRight=mq(a),g.unshift(_)}return Q.makeSpan([`mop`,`op-limits`],g,r)},nX=[`\\smallint`],rX=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=KJ(e.base,`op`),i=!0):a=KJ(e,`op`);var o=t.style,s=!1;o.size===XK.DISPLAY.size&&a.symbol&&!LK.contains(nX,a.name)&&(s=!0);var c;if(a.symbol){var l=s?`Size2-Regular`:`Size1-Regular`,u=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(u=a.name.slice(1),a.name=u===`oiint`?`\\iint`:`\\iiint`),c=Q.makeSymbol(a.name,l,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u.length>0){var d=c.italic,f=Q.staticSvg(u+`Size`+(s?`2`:`1`),t);c=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]},t),a.name=`\\`+u,c.classes.unshift(`mop`),c.italic=d}}else if(a.body){var p=CJ(a.body,t,!0);p.length===1&&p[0]instanceof xq?(c=p[0],c.classes[0]=`mop`):c=Q.makeSpan([`mop`],p,t)}else{for(var m=[],h=1;h{var n;if(e.symbol)n=new MJ(`mo`,[FJ(e.name,e.mode)]),LK.contains(nX,e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new MJ(`mo`,zJ(e.body,t));else{n=new MJ(`mi`,[new NJ(e.name.slice(1))]);var r=new MJ(`mo`,[FJ(`⁡`,`text`)]);n=e.parentIsSupSub?new MJ(`mrow`,[n,r]):jJ([n,r])}return n},Cbe={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};vJ({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Cbe[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:rX,mathmlBuilder:iX}),vJ({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:xJ(r)}},htmlBuilder:rX,mathmlBuilder:iX});var wbe={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};vJ({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rX,mathmlBuilder:iX}),vJ({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rX,mathmlBuilder:iX}),vJ({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=wbe[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rX,mathmlBuilder:iX});var aX=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=KJ(e.base,`operatorname`),i=!0):a=KJ(e,`operatorname`);var o;if(a.body.length>0){for(var s=a.body.map(e=>{var t=e.text;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),c=CJ(s,t.withFont(`mathrm`),!0),l=0;l{for(var n=zJ(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new PJ.TextNode(s)]}var c=new PJ.MathNode(`mi`,n);c.setAttribute(`mathvariant`,`normal`);var l=new PJ.MathNode(`mo`,[FJ(`⁡`,`text`)]);return e.parentIsSupSub?new PJ.MathNode(`mrow`,[c,l]):PJ.newDocumentFragment([c,l])};vJ({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:xJ(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:aX,mathmlBuilder:Tbe}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),yJ({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Q.makeFragment(CJ(e.body,t,!1)):Q.makeSpan([`mord`],CJ(e.body,t,!0),t)},mathmlBuilder(e,t){return BJ(e.body,t,!0)}}),vJ({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=OJ(e.body,t.havingCrampedStyle()),r=Q.makeLineSpan(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness,a=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]},t);return Q.makeSpan([`mord`,`overline`],[a],t)},mathmlBuilder(e,t){var n=new PJ.MathNode(`mo`,[new PJ.TextNode(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new PJ.MathNode(`mover`,[VJ(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),vJ({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:xJ(r)}},htmlBuilder:(e,t)=>{var n=CJ(e.body,t.withPhantom(),!1);return Q.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=zJ(e.body,t);return new PJ.MathNode(`mphantom`,n)}}),vJ({type:`hphantom`,names:[`\\hphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`hphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Q.makeSpan([],[OJ(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=zJ(xJ(e.body),t),r=new PJ.MathNode(`mphantom`,n),i=new PJ.MathNode(`mpadded`,[r]);return i.setAttribute(`height`,`0px`),i.setAttribute(`depth`,`0px`),i}}),vJ({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Q.makeSpan([`inner`],[OJ(e.body,t.withPhantom())]),r=Q.makeSpan([`fix`],[]);return Q.makeSpan([`mord`,`rlap`],[n,r],t)},mathmlBuilder:(e,t)=>{var n=zJ(xJ(e.body),t),r=new PJ.MathNode(`mphantom`,n),i=new PJ.MathNode(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),vJ({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=KJ(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=OJ(e.body,t),r=pq(e.dy,t);return Q.makeVList({positionType:`shift`,positionData:-r,children:[{type:`elem`,elem:n}]},t)},mathmlBuilder(e,t){var n=new PJ.MathNode(`mpadded`,[VJ(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),vJ({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),vJ({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=KJ(t[0],`size`),o=KJ(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&KJ(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=Q.makeSpan([`mord`,`rule`],[],t),r=pq(e.width,t),i=pq(e.height,t),a=e.shift?pq(e.shift,t):0;return n.style.borderRightWidth=mq(r),n.style.borderTopWidth=mq(i),n.style.bottom=mq(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=pq(e.width,t),r=pq(e.height,t),i=e.shift?pq(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new PJ.MathNode(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,mq(n)),o.setAttribute(`height`,mq(r));var s=new PJ.MathNode(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,mq(i)):(s.setAttribute(`height`,mq(i)),s.setAttribute(`depth`,mq(-i))),s.setAttribute(`voffset`,mq(i)),s}});function oX(e,t,n){for(var r=CJ(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return oX(e.body,n,t)};vJ({type:`sizing`,names:sX,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:sX.indexOf(r)+1,body:a}},htmlBuilder:Ebe,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=zJ(e.body,n),i=new PJ.MathNode(`mstyle`,r);return i.setAttribute(`mathsize`,mq(n.sizeMultiplier)),i}}),vJ({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&KJ(n[0],`ordgroup`);if(o)for(var s=``,c=0;c{var n=Q.makeSpan([],[OJ(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new PJ.MathNode(`mpadded`,[VJ(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),vJ({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=OJ(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Q.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+o&&(o=(o+d-n.height-n.depth)/2);var f=c.height-n.height-o-l;n.style.paddingLeft=mq(u);var p=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+f)},{type:`elem`,elem:c},{type:`kern`,size:l}]},t);if(e.index){var m=t.havingStyle(XK.SCRIPTSCRIPT),h=OJ(e.index,m,t),g=.6*(p.height-p.depth),_=Q.makeVList({positionType:`shift`,positionData:-g,children:[{type:`elem`,elem:h}]},t),v=Q.makeSpan([`root`],[_]);return Q.makeSpan([`mord`,`sqrt`],[v,p],t)}else return Q.makeSpan([`mord`,`sqrt`],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new PJ.MathNode(`mroot`,[VJ(n,t),VJ(r,t)]):new PJ.MathNode(`msqrt`,[VJ(n,t)])}});var cX={display:XK.DISPLAY,text:XK.TEXT,script:XK.SCRIPT,scriptscript:XK.SCRIPTSCRIPT};vJ({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=cX[e.style],r=t.havingStyle(n).withFont(``);return oX(e.body,r,t)},mathmlBuilder(e,t){var n=cX[e.style],r=t.havingStyle(n),i=zJ(e.body,r),a=new PJ.MathNode(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]},s=o[e.style];return a.setAttribute(`scriptlevel`,s[0]),a.setAttribute(`displaystyle`,s[1]),a}});var Dbe=function(e,t){var n=e.base;if(n)if(n.type===`op`){var r=n.limits&&(t.style.size===XK.DISPLAY.size||n.alwaysHandleSupSub);return r?rX:null}else if(n.type===`operatorname`){var i=n.alwaysHandleSupSub&&(t.style.size===XK.DISPLAY.size||n.limits);return i?aX:null}else if(n.type===`accent`)return LK.isCharacterBox(n.base)?YJ:null;else if(n.type===`horizBrace`){var a=!e.sub;return a===n.isOver?QY:null}else return null;else return null};yJ({type:`supsub`,htmlBuilder(e,t){var n=Dbe(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=OJ(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&LK.isCharacterBox(r);if(i){var p=t.havingStyle(t.style.sup());s=OJ(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=OJ(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h;h=t.style===XK.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2;var g=t.sizeMultiplier,_=mq(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof xq||y)&&(v=mq(-o.italic))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=l.defaultRuleThickness,S=4*x;if(u-s.depth-(c.height-d)0&&(u+=C,d-=C)}var w=[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}];b=Q.makeVList({positionType:`individualShift`,children:w},t)}else if(c){d=Math.max(d,l.sub1,c.height-.8*l.xHeight);var T=[{type:`elem`,elem:c,marginLeft:v,marginRight:_}];b=Q.makeVList({positionType:`shift`,positionData:d,children:T},t)}else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=Q.makeVList({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]},t);else throw Error(`supsub must have either sup or sub.`);var E=EJ(o,`right`)||`mord`;return Q.makeSpan([E],[o,Q.makeSpan([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[VJ(e.base,t)];e.sub&&a.push(VJ(e.sub,t)),e.sup&&a.push(VJ(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(e.sub)if(e.sup){var s=e.base;o=s&&s.type===`op`&&s.limits&&t.style===XK.DISPLAY||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(t.style===XK.DISPLAY||s.limits)?`munderover`:`msubsup`}else{var c=e.base;o=c&&c.type===`op`&&c.limits&&(t.style===XK.DISPLAY||c.alwaysHandleSupSub)||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(c.limits||t.style===XK.DISPLAY)?`munder`:`msub`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===XK.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===XK.DISPLAY)?`mover`:`msup`}return new PJ.MathNode(o,a)}}),yJ({type:`atom`,htmlBuilder(e,t){return Q.mathsym(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new PJ.MathNode(`mo`,[FJ(e.text,e.mode)]);if(e.family===`bin`){var r=LJ(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var lX={mi:`italic`,mn:`normal`,mtext:`normal`};yJ({type:`mathord`,htmlBuilder(e,t){return Q.makeOrd(e,t,`mathord`)},mathmlBuilder(e,t){var n=new PJ.MathNode(`mi`,[FJ(e.text,e.mode,t)]),r=LJ(e,t)||`italic`;return r!==lX[n.type]&&n.setAttribute(`mathvariant`,r),n}}),yJ({type:`textord`,htmlBuilder(e,t){return Q.makeOrd(e,t,`textord`)},mathmlBuilder(e,t){var n=FJ(e.text,e.mode,t),r=LJ(e,t)||`normal`,i;return i=e.mode===`text`?new PJ.MathNode(`mtext`,[n]):/[0-9]/.test(e.text)?new PJ.MathNode(`mn`,[n]):e.text===`\\prime`?new PJ.MathNode(`mo`,[n]):new PJ.MathNode(`mi`,[n]),r!==lX[i.type]&&i.setAttribute(`mathvariant`,r),i}});var uX={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},dX={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};yJ({type:`spacing`,htmlBuilder(e,t){if(dX.hasOwnProperty(e.text)){var n=dX[e.text].className||``;if(e.mode===`text`){var r=Q.makeOrd(e,t,`textord`);return r.classes.push(n),r}else return Q.makeSpan([`mspace`,n],[Q.mathsym(e.text,e.mode,t)],t)}else if(uX.hasOwnProperty(e.text))return Q.makeSpan([`mspace`,uX[e.text]],[],t);else throw new FK(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(dX.hasOwnProperty(e.text))n=new PJ.MathNode(`mtext`,[new PJ.TextNode(`\xA0`)]);else if(uX.hasOwnProperty(e.text))return new PJ.MathNode(`mspace`);else throw new FK(`Unknown type of space "`+e.text+`"`);return n}});var fX=()=>{var e=new PJ.MathNode(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};yJ({type:`tag`,mathmlBuilder(e,t){var n=new PJ.MathNode(`mtable`,[new PJ.MathNode(`mtr`,[fX(),new PJ.MathNode(`mtd`,[BJ(e.body,t)]),fX(),new PJ.MathNode(`mtd`,[BJ(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var pX={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},mX={"\\textbf":`textbf`,"\\textmd":`textmd`},Obe={"\\textit":`textit`,"\\textup":`textup`},hX=(e,t)=>{var n=e.font;if(n){if(pX[n])return t.withTextFontFamily(pX[n]);if(mX[n])return t.withTextFontWeight(mX[n]);if(n===`\\emph`)return t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`)}else return t;return t.withTextFontShape(Obe[n])};vJ({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:xJ(i),font:r}},htmlBuilder(e,t){var n=hX(e,t),r=CJ(e.body,n,!0);return Q.makeSpan([`mord`,`text`],r,n)},mathmlBuilder(e,t){var n=hX(e,t);return BJ(e.body,n)}}),vJ({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=OJ(e.body,t),r=Q.makeLineSpan(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness,a=Q.makeVList({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]},t);return Q.makeSpan([`mord`,`underline`],[a],t)},mathmlBuilder(e,t){var n=new PJ.MathNode(`mo`,[new PJ.TextNode(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new PJ.MathNode(`munder`,[VJ(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),vJ({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=OJ(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return Q.makeVList({positionType:`shift`,positionData:i,children:[{type:`elem`,elem:n}]},t)},mathmlBuilder(e,t){return new PJ.MathNode(`mpadded`,[VJ(e.body,t)],[`vcenter`])}}),vJ({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new FK(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=gX(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),_X=hJ,vX=`[ \r - ]`,kbe=`\\\\[a-zA-Z@]+`,Abe=`\\\\[^\ud800-\udfff]`,jbe=`(`+kbe+`)`+vX+`*`,Mbe=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},nq=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return LK.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText();return this.children.map(e).join(``)}},rq={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},iq={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},aq={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function xbe(e,t){rq[e]=t}function oq(e,t,n){if(!rq[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=rq[t][r];if(!i&&e[0]in aq&&(r=aq[e[0]].charCodeAt(0),i=rq[t][r]),!i&&n===`text`&&$K(r)&&(i=rq[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var sq={};function Sbe(e){var t;if(t=e>=5?0:e>=3?1:2,!sq[t]){var n=sq[t]={cssEmPerMu:iq.quad[t]/18};for(var r in iq)iq.hasOwnProperty(r)&&(n[r]=iq[r][t])}return sq[t]}var Cbe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],cq=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],lq=function(e,t){return t.size<2?e:Cbe[e-1][t.size-1]},uq=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=cq[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:lq(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:cq[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=lq(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Sbe(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};uq.BASESIZE=6;var dq={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},wbe={ex:!0,em:!0,mu:!0},fq=function(e){return typeof e!=`string`&&(e=e.unit),e in dq||e in wbe||e===`ex`},pq=function(e,t){var n;if(e.unit in dq)n=dq[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new FK(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},mq=function(e){return+e.toFixed(4)+`em`},hq=function(e){return e.filter(e=>e).join(` `)},gq=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},_q=function(e){var t=document.createElement(e);for(var n in t.className=hq(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i/=\x00-\x1f]/,vq=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+LK.escape(hq(this.classes))+`"`);var n=``;for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=LK.hyphenate(r)+`:`+this.style[r]+`;`);for(var i in n&&(t+=` style="`+LK.escape(n)+`"`),this.attributes)if(this.attributes.hasOwnProperty(i)){if(Tbe.test(i))throw new FK(`Invalid attribute name '`+i+`'`);t+=` `+i+`="`+LK.escape(this.attributes[i])+`"`}t+=`>`;for(var a=0;a`,t},yq=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,gq.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return LK.contains(this.classes,e)}toNode(){return _q.call(this,`span`)}toMarkup(){return vq.call(this,`span`)}},bq=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,gq.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return LK.contains(this.classes,e)}toNode(){return _q.call(this,`a`)}toMarkup(){return vq.call(this,`a`)}},Ebe=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.style=n}hasClass(e){return LK.contains(this.classes,e)}toNode(){var e=document.createElement(`img`);for(var t in e.src=this.src,e.alt=this.alt,e.className=`mord`,this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=``+LK.escape(this.alt)+``,e}},Dbe={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},xq=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=ube(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Dbe[this.text])}hasClass(e){return LK.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=mq(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=hq(this.classes)),this.style)this.style.hasOwnProperty(n)&&(t||=document.createElement(`span`),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+this.italic+`em;`),this.style)this.style.hasOwnProperty(r)&&(n+=LK.hyphenate(r)+`:`+this.style[r]+`;`);n&&(e=!0,t+=` style="`+LK.escape(n)+`"`);var i=LK.escape(this.text);return e?(t+=`>`,t+=i,t+=``,t):i}},Sq=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=`http://www.w3.org/2000/svg`,t=document.createElementNS(e,`svg`);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var r=0;r`;for(var n=0;n`,e}},Cq=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=`http://www.w3.org/2000/svg`,t=document.createElementNS(e,`path`);return this.alternate?t.setAttribute(`d`,this.alternate):t.setAttribute(`d`,tq[this.pathName]),t}toMarkup(){return this.alternate?``:``}},wq=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=`http://www.w3.org/2000/svg`,t=document.createElementNS(e,`line`);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);return t}toMarkup(){var e=``,e}};function Tq(e){if(e instanceof xq)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Obe(e){if(e instanceof yq)return e;throw Error(`Expected span but got `+String(e)+`.`)}var kbe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Abe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Eq={math:{},text:{}};function K(e,t,n,r,i,a){Eq[e][i]={font:t,group:n,replace:r},a&&r&&(Eq[e][r]=Eq[e][i])}var q=`math`,Dq=`text`,J=`main`,Y=`ams`,Oq=`accent-token`,kq=`bin`,Aq=`close`,jq=`inner`,Mq=`mathord`,Nq=`op-token`,Pq=`open`,Fq=`punct`,X=`rel`,Iq=`spacing`,Z=`textord`;K(q,J,X,`≡`,`\\equiv`,!0),K(q,J,X,`≺`,`\\prec`,!0),K(q,J,X,`≻`,`\\succ`,!0),K(q,J,X,`∼`,`\\sim`,!0),K(q,J,X,`⊥`,`\\perp`),K(q,J,X,`⪯`,`\\preceq`,!0),K(q,J,X,`⪰`,`\\succeq`,!0),K(q,J,X,`≃`,`\\simeq`,!0),K(q,J,X,`∣`,`\\mid`,!0),K(q,J,X,`≪`,`\\ll`,!0),K(q,J,X,`≫`,`\\gg`,!0),K(q,J,X,`≍`,`\\asymp`,!0),K(q,J,X,`∥`,`\\parallel`),K(q,J,X,`⋈`,`\\bowtie`,!0),K(q,J,X,`⌣`,`\\smile`,!0),K(q,J,X,`⊑`,`\\sqsubseteq`,!0),K(q,J,X,`⊒`,`\\sqsupseteq`,!0),K(q,J,X,`≐`,`\\doteq`,!0),K(q,J,X,`⌢`,`\\frown`,!0),K(q,J,X,`∋`,`\\ni`,!0),K(q,J,X,`∝`,`\\propto`,!0),K(q,J,X,`⊢`,`\\vdash`,!0),K(q,J,X,`⊣`,`\\dashv`,!0),K(q,J,X,`∋`,`\\owns`),K(q,J,Fq,`.`,`\\ldotp`),K(q,J,Fq,`⋅`,`\\cdotp`),K(q,J,Z,`#`,`\\#`),K(Dq,J,Z,`#`,`\\#`),K(q,J,Z,`&`,`\\&`),K(Dq,J,Z,`&`,`\\&`),K(q,J,Z,`ℵ`,`\\aleph`,!0),K(q,J,Z,`∀`,`\\forall`,!0),K(q,J,Z,`ℏ`,`\\hbar`,!0),K(q,J,Z,`∃`,`\\exists`,!0),K(q,J,Z,`∇`,`\\nabla`,!0),K(q,J,Z,`♭`,`\\flat`,!0),K(q,J,Z,`ℓ`,`\\ell`,!0),K(q,J,Z,`♮`,`\\natural`,!0),K(q,J,Z,`♣`,`\\clubsuit`,!0),K(q,J,Z,`℘`,`\\wp`,!0),K(q,J,Z,`♯`,`\\sharp`,!0),K(q,J,Z,`♢`,`\\diamondsuit`,!0),K(q,J,Z,`ℜ`,`\\Re`,!0),K(q,J,Z,`♡`,`\\heartsuit`,!0),K(q,J,Z,`ℑ`,`\\Im`,!0),K(q,J,Z,`♠`,`\\spadesuit`,!0),K(q,J,Z,`§`,`\\S`,!0),K(Dq,J,Z,`§`,`\\S`),K(q,J,Z,`¶`,`\\P`,!0),K(Dq,J,Z,`¶`,`\\P`),K(q,J,Z,`†`,`\\dag`),K(Dq,J,Z,`†`,`\\dag`),K(Dq,J,Z,`†`,`\\textdagger`),K(q,J,Z,`‡`,`\\ddag`),K(Dq,J,Z,`‡`,`\\ddag`),K(Dq,J,Z,`‡`,`\\textdaggerdbl`),K(q,J,Aq,`⎱`,`\\rmoustache`,!0),K(q,J,Pq,`⎰`,`\\lmoustache`,!0),K(q,J,Aq,`⟯`,`\\rgroup`,!0),K(q,J,Pq,`⟮`,`\\lgroup`,!0),K(q,J,kq,`∓`,`\\mp`,!0),K(q,J,kq,`⊖`,`\\ominus`,!0),K(q,J,kq,`⊎`,`\\uplus`,!0),K(q,J,kq,`⊓`,`\\sqcap`,!0),K(q,J,kq,`∗`,`\\ast`),K(q,J,kq,`⊔`,`\\sqcup`,!0),K(q,J,kq,`◯`,`\\bigcirc`,!0),K(q,J,kq,`∙`,`\\bullet`,!0),K(q,J,kq,`‡`,`\\ddagger`),K(q,J,kq,`≀`,`\\wr`,!0),K(q,J,kq,`⨿`,`\\amalg`),K(q,J,kq,`&`,`\\And`),K(q,J,X,`⟵`,`\\longleftarrow`,!0),K(q,J,X,`⇐`,`\\Leftarrow`,!0),K(q,J,X,`⟸`,`\\Longleftarrow`,!0),K(q,J,X,`⟶`,`\\longrightarrow`,!0),K(q,J,X,`⇒`,`\\Rightarrow`,!0),K(q,J,X,`⟹`,`\\Longrightarrow`,!0),K(q,J,X,`↔`,`\\leftrightarrow`,!0),K(q,J,X,`⟷`,`\\longleftrightarrow`,!0),K(q,J,X,`⇔`,`\\Leftrightarrow`,!0),K(q,J,X,`⟺`,`\\Longleftrightarrow`,!0),K(q,J,X,`↦`,`\\mapsto`,!0),K(q,J,X,`⟼`,`\\longmapsto`,!0),K(q,J,X,`↗`,`\\nearrow`,!0),K(q,J,X,`↩`,`\\hookleftarrow`,!0),K(q,J,X,`↪`,`\\hookrightarrow`,!0),K(q,J,X,`↘`,`\\searrow`,!0),K(q,J,X,`↼`,`\\leftharpoonup`,!0),K(q,J,X,`⇀`,`\\rightharpoonup`,!0),K(q,J,X,`↙`,`\\swarrow`,!0),K(q,J,X,`↽`,`\\leftharpoondown`,!0),K(q,J,X,`⇁`,`\\rightharpoondown`,!0),K(q,J,X,`↖`,`\\nwarrow`,!0),K(q,J,X,`⇌`,`\\rightleftharpoons`,!0),K(q,Y,X,`≮`,`\\nless`,!0),K(q,Y,X,``,`\\@nleqslant`),K(q,Y,X,``,`\\@nleqq`),K(q,Y,X,`⪇`,`\\lneq`,!0),K(q,Y,X,`≨`,`\\lneqq`,!0),K(q,Y,X,``,`\\@lvertneqq`),K(q,Y,X,`⋦`,`\\lnsim`,!0),K(q,Y,X,`⪉`,`\\lnapprox`,!0),K(q,Y,X,`⊀`,`\\nprec`,!0),K(q,Y,X,`⋠`,`\\npreceq`,!0),K(q,Y,X,`⋨`,`\\precnsim`,!0),K(q,Y,X,`⪹`,`\\precnapprox`,!0),K(q,Y,X,`≁`,`\\nsim`,!0),K(q,Y,X,``,`\\@nshortmid`),K(q,Y,X,`∤`,`\\nmid`,!0),K(q,Y,X,`⊬`,`\\nvdash`,!0),K(q,Y,X,`⊭`,`\\nvDash`,!0),K(q,Y,X,`⋪`,`\\ntriangleleft`),K(q,Y,X,`⋬`,`\\ntrianglelefteq`,!0),K(q,Y,X,`⊊`,`\\subsetneq`,!0),K(q,Y,X,``,`\\@varsubsetneq`),K(q,Y,X,`⫋`,`\\subsetneqq`,!0),K(q,Y,X,``,`\\@varsubsetneqq`),K(q,Y,X,`≯`,`\\ngtr`,!0),K(q,Y,X,``,`\\@ngeqslant`),K(q,Y,X,``,`\\@ngeqq`),K(q,Y,X,`⪈`,`\\gneq`,!0),K(q,Y,X,`≩`,`\\gneqq`,!0),K(q,Y,X,``,`\\@gvertneqq`),K(q,Y,X,`⋧`,`\\gnsim`,!0),K(q,Y,X,`⪊`,`\\gnapprox`,!0),K(q,Y,X,`⊁`,`\\nsucc`,!0),K(q,Y,X,`⋡`,`\\nsucceq`,!0),K(q,Y,X,`⋩`,`\\succnsim`,!0),K(q,Y,X,`⪺`,`\\succnapprox`,!0),K(q,Y,X,`≆`,`\\ncong`,!0),K(q,Y,X,``,`\\@nshortparallel`),K(q,Y,X,`∦`,`\\nparallel`,!0),K(q,Y,X,`⊯`,`\\nVDash`,!0),K(q,Y,X,`⋫`,`\\ntriangleright`),K(q,Y,X,`⋭`,`\\ntrianglerighteq`,!0),K(q,Y,X,``,`\\@nsupseteqq`),K(q,Y,X,`⊋`,`\\supsetneq`,!0),K(q,Y,X,``,`\\@varsupsetneq`),K(q,Y,X,`⫌`,`\\supsetneqq`,!0),K(q,Y,X,``,`\\@varsupsetneqq`),K(q,Y,X,`⊮`,`\\nVdash`,!0),K(q,Y,X,`⪵`,`\\precneqq`,!0),K(q,Y,X,`⪶`,`\\succneqq`,!0),K(q,Y,X,``,`\\@nsubseteqq`),K(q,Y,kq,`⊴`,`\\unlhd`),K(q,Y,kq,`⊵`,`\\unrhd`),K(q,Y,X,`↚`,`\\nleftarrow`,!0),K(q,Y,X,`↛`,`\\nrightarrow`,!0),K(q,Y,X,`⇍`,`\\nLeftarrow`,!0),K(q,Y,X,`⇏`,`\\nRightarrow`,!0),K(q,Y,X,`↮`,`\\nleftrightarrow`,!0),K(q,Y,X,`⇎`,`\\nLeftrightarrow`,!0),K(q,Y,X,`△`,`\\vartriangle`),K(q,Y,Z,`ℏ`,`\\hslash`),K(q,Y,Z,`▽`,`\\triangledown`),K(q,Y,Z,`◊`,`\\lozenge`),K(q,Y,Z,`Ⓢ`,`\\circledS`),K(q,Y,Z,`®`,`\\circledR`),K(Dq,Y,Z,`®`,`\\circledR`),K(q,Y,Z,`∡`,`\\measuredangle`,!0),K(q,Y,Z,`∄`,`\\nexists`),K(q,Y,Z,`℧`,`\\mho`),K(q,Y,Z,`Ⅎ`,`\\Finv`,!0),K(q,Y,Z,`⅁`,`\\Game`,!0),K(q,Y,Z,`‵`,`\\backprime`),K(q,Y,Z,`▲`,`\\blacktriangle`),K(q,Y,Z,`▼`,`\\blacktriangledown`),K(q,Y,Z,`■`,`\\blacksquare`),K(q,Y,Z,`⧫`,`\\blacklozenge`),K(q,Y,Z,`★`,`\\bigstar`),K(q,Y,Z,`∢`,`\\sphericalangle`,!0),K(q,Y,Z,`∁`,`\\complement`,!0),K(q,Y,Z,`ð`,`\\eth`,!0),K(Dq,J,Z,`ð`,`ð`),K(q,Y,Z,`╱`,`\\diagup`),K(q,Y,Z,`╲`,`\\diagdown`),K(q,Y,Z,`□`,`\\square`),K(q,Y,Z,`□`,`\\Box`),K(q,Y,Z,`◊`,`\\Diamond`),K(q,Y,Z,`¥`,`\\yen`,!0),K(Dq,Y,Z,`¥`,`\\yen`,!0),K(q,Y,Z,`✓`,`\\checkmark`,!0),K(Dq,Y,Z,`✓`,`\\checkmark`),K(q,Y,Z,`ℶ`,`\\beth`,!0),K(q,Y,Z,`ℸ`,`\\daleth`,!0),K(q,Y,Z,`ℷ`,`\\gimel`,!0),K(q,Y,Z,`ϝ`,`\\digamma`,!0),K(q,Y,Z,`ϰ`,`\\varkappa`),K(q,Y,Pq,`┌`,`\\@ulcorner`,!0),K(q,Y,Aq,`┐`,`\\@urcorner`,!0),K(q,Y,Pq,`└`,`\\@llcorner`,!0),K(q,Y,Aq,`┘`,`\\@lrcorner`,!0),K(q,Y,X,`≦`,`\\leqq`,!0),K(q,Y,X,`⩽`,`\\leqslant`,!0),K(q,Y,X,`⪕`,`\\eqslantless`,!0),K(q,Y,X,`≲`,`\\lesssim`,!0),K(q,Y,X,`⪅`,`\\lessapprox`,!0),K(q,Y,X,`≊`,`\\approxeq`,!0),K(q,Y,kq,`⋖`,`\\lessdot`),K(q,Y,X,`⋘`,`\\lll`,!0),K(q,Y,X,`≶`,`\\lessgtr`,!0),K(q,Y,X,`⋚`,`\\lesseqgtr`,!0),K(q,Y,X,`⪋`,`\\lesseqqgtr`,!0),K(q,Y,X,`≑`,`\\doteqdot`),K(q,Y,X,`≓`,`\\risingdotseq`,!0),K(q,Y,X,`≒`,`\\fallingdotseq`,!0),K(q,Y,X,`∽`,`\\backsim`,!0),K(q,Y,X,`⋍`,`\\backsimeq`,!0),K(q,Y,X,`⫅`,`\\subseteqq`,!0),K(q,Y,X,`⋐`,`\\Subset`,!0),K(q,Y,X,`⊏`,`\\sqsubset`,!0),K(q,Y,X,`≼`,`\\preccurlyeq`,!0),K(q,Y,X,`⋞`,`\\curlyeqprec`,!0),K(q,Y,X,`≾`,`\\precsim`,!0),K(q,Y,X,`⪷`,`\\precapprox`,!0),K(q,Y,X,`⊲`,`\\vartriangleleft`),K(q,Y,X,`⊴`,`\\trianglelefteq`),K(q,Y,X,`⊨`,`\\vDash`,!0),K(q,Y,X,`⊪`,`\\Vvdash`,!0),K(q,Y,X,`⌣`,`\\smallsmile`),K(q,Y,X,`⌢`,`\\smallfrown`),K(q,Y,X,`≏`,`\\bumpeq`,!0),K(q,Y,X,`≎`,`\\Bumpeq`,!0),K(q,Y,X,`≧`,`\\geqq`,!0),K(q,Y,X,`⩾`,`\\geqslant`,!0),K(q,Y,X,`⪖`,`\\eqslantgtr`,!0),K(q,Y,X,`≳`,`\\gtrsim`,!0),K(q,Y,X,`⪆`,`\\gtrapprox`,!0),K(q,Y,kq,`⋗`,`\\gtrdot`),K(q,Y,X,`⋙`,`\\ggg`,!0),K(q,Y,X,`≷`,`\\gtrless`,!0),K(q,Y,X,`⋛`,`\\gtreqless`,!0),K(q,Y,X,`⪌`,`\\gtreqqless`,!0),K(q,Y,X,`≖`,`\\eqcirc`,!0),K(q,Y,X,`≗`,`\\circeq`,!0),K(q,Y,X,`≜`,`\\triangleq`,!0),K(q,Y,X,`∼`,`\\thicksim`),K(q,Y,X,`≈`,`\\thickapprox`),K(q,Y,X,`⫆`,`\\supseteqq`,!0),K(q,Y,X,`⋑`,`\\Supset`,!0),K(q,Y,X,`⊐`,`\\sqsupset`,!0),K(q,Y,X,`≽`,`\\succcurlyeq`,!0),K(q,Y,X,`⋟`,`\\curlyeqsucc`,!0),K(q,Y,X,`≿`,`\\succsim`,!0),K(q,Y,X,`⪸`,`\\succapprox`,!0),K(q,Y,X,`⊳`,`\\vartriangleright`),K(q,Y,X,`⊵`,`\\trianglerighteq`),K(q,Y,X,`⊩`,`\\Vdash`,!0),K(q,Y,X,`∣`,`\\shortmid`),K(q,Y,X,`∥`,`\\shortparallel`),K(q,Y,X,`≬`,`\\between`,!0),K(q,Y,X,`⋔`,`\\pitchfork`,!0),K(q,Y,X,`∝`,`\\varpropto`),K(q,Y,X,`◀`,`\\blacktriangleleft`),K(q,Y,X,`∴`,`\\therefore`,!0),K(q,Y,X,`∍`,`\\backepsilon`),K(q,Y,X,`▶`,`\\blacktriangleright`),K(q,Y,X,`∵`,`\\because`,!0),K(q,Y,X,`⋘`,`\\llless`),K(q,Y,X,`⋙`,`\\gggtr`),K(q,Y,kq,`⊲`,`\\lhd`),K(q,Y,kq,`⊳`,`\\rhd`),K(q,Y,X,`≂`,`\\eqsim`,!0),K(q,J,X,`⋈`,`\\Join`),K(q,Y,X,`≑`,`\\Doteq`,!0),K(q,Y,kq,`∔`,`\\dotplus`,!0),K(q,Y,kq,`∖`,`\\smallsetminus`),K(q,Y,kq,`⋒`,`\\Cap`,!0),K(q,Y,kq,`⋓`,`\\Cup`,!0),K(q,Y,kq,`⩞`,`\\doublebarwedge`,!0),K(q,Y,kq,`⊟`,`\\boxminus`,!0),K(q,Y,kq,`⊞`,`\\boxplus`,!0),K(q,Y,kq,`⋇`,`\\divideontimes`,!0),K(q,Y,kq,`⋉`,`\\ltimes`,!0),K(q,Y,kq,`⋊`,`\\rtimes`,!0),K(q,Y,kq,`⋋`,`\\leftthreetimes`,!0),K(q,Y,kq,`⋌`,`\\rightthreetimes`,!0),K(q,Y,kq,`⋏`,`\\curlywedge`,!0),K(q,Y,kq,`⋎`,`\\curlyvee`,!0),K(q,Y,kq,`⊝`,`\\circleddash`,!0),K(q,Y,kq,`⊛`,`\\circledast`,!0),K(q,Y,kq,`⋅`,`\\centerdot`),K(q,Y,kq,`⊺`,`\\intercal`,!0),K(q,Y,kq,`⋒`,`\\doublecap`),K(q,Y,kq,`⋓`,`\\doublecup`),K(q,Y,kq,`⊠`,`\\boxtimes`,!0),K(q,Y,X,`⇢`,`\\dashrightarrow`,!0),K(q,Y,X,`⇠`,`\\dashleftarrow`,!0),K(q,Y,X,`⇇`,`\\leftleftarrows`,!0),K(q,Y,X,`⇆`,`\\leftrightarrows`,!0),K(q,Y,X,`⇚`,`\\Lleftarrow`,!0),K(q,Y,X,`↞`,`\\twoheadleftarrow`,!0),K(q,Y,X,`↢`,`\\leftarrowtail`,!0),K(q,Y,X,`↫`,`\\looparrowleft`,!0),K(q,Y,X,`⇋`,`\\leftrightharpoons`,!0),K(q,Y,X,`↶`,`\\curvearrowleft`,!0),K(q,Y,X,`↺`,`\\circlearrowleft`,!0),K(q,Y,X,`↰`,`\\Lsh`,!0),K(q,Y,X,`⇈`,`\\upuparrows`,!0),K(q,Y,X,`↿`,`\\upharpoonleft`,!0),K(q,Y,X,`⇃`,`\\downharpoonleft`,!0),K(q,J,X,`⊶`,`\\origof`,!0),K(q,J,X,`⊷`,`\\imageof`,!0),K(q,Y,X,`⊸`,`\\multimap`,!0),K(q,Y,X,`↭`,`\\leftrightsquigarrow`,!0),K(q,Y,X,`⇉`,`\\rightrightarrows`,!0),K(q,Y,X,`⇄`,`\\rightleftarrows`,!0),K(q,Y,X,`↠`,`\\twoheadrightarrow`,!0),K(q,Y,X,`↣`,`\\rightarrowtail`,!0),K(q,Y,X,`↬`,`\\looparrowright`,!0),K(q,Y,X,`↷`,`\\curvearrowright`,!0),K(q,Y,X,`↻`,`\\circlearrowright`,!0),K(q,Y,X,`↱`,`\\Rsh`,!0),K(q,Y,X,`⇊`,`\\downdownarrows`,!0),K(q,Y,X,`↾`,`\\upharpoonright`,!0),K(q,Y,X,`⇂`,`\\downharpoonright`,!0),K(q,Y,X,`⇝`,`\\rightsquigarrow`,!0),K(q,Y,X,`⇝`,`\\leadsto`),K(q,Y,X,`⇛`,`\\Rrightarrow`,!0),K(q,Y,X,`↾`,`\\restriction`),K(q,J,Z,`‘`,"`"),K(q,J,Z,`$`,`\\$`),K(Dq,J,Z,`$`,`\\$`),K(Dq,J,Z,`$`,`\\textdollar`),K(q,J,Z,`%`,`\\%`),K(Dq,J,Z,`%`,`\\%`),K(q,J,Z,`_`,`\\_`),K(Dq,J,Z,`_`,`\\_`),K(Dq,J,Z,`_`,`\\textunderscore`),K(q,J,Z,`∠`,`\\angle`,!0),K(q,J,Z,`∞`,`\\infty`,!0),K(q,J,Z,`′`,`\\prime`),K(q,J,Z,`△`,`\\triangle`),K(q,J,Z,`Γ`,`\\Gamma`,!0),K(q,J,Z,`Δ`,`\\Delta`,!0),K(q,J,Z,`Θ`,`\\Theta`,!0),K(q,J,Z,`Λ`,`\\Lambda`,!0),K(q,J,Z,`Ξ`,`\\Xi`,!0),K(q,J,Z,`Π`,`\\Pi`,!0),K(q,J,Z,`Σ`,`\\Sigma`,!0),K(q,J,Z,`Υ`,`\\Upsilon`,!0),K(q,J,Z,`Φ`,`\\Phi`,!0),K(q,J,Z,`Ψ`,`\\Psi`,!0),K(q,J,Z,`Ω`,`\\Omega`,!0),K(q,J,Z,`A`,`Α`),K(q,J,Z,`B`,`Β`),K(q,J,Z,`E`,`Ε`),K(q,J,Z,`Z`,`Ζ`),K(q,J,Z,`H`,`Η`),K(q,J,Z,`I`,`Ι`),K(q,J,Z,`K`,`Κ`),K(q,J,Z,`M`,`Μ`),K(q,J,Z,`N`,`Ν`),K(q,J,Z,`O`,`Ο`),K(q,J,Z,`P`,`Ρ`),K(q,J,Z,`T`,`Τ`),K(q,J,Z,`X`,`Χ`),K(q,J,Z,`¬`,`\\neg`,!0),K(q,J,Z,`¬`,`\\lnot`),K(q,J,Z,`⊤`,`\\top`),K(q,J,Z,`⊥`,`\\bot`),K(q,J,Z,`∅`,`\\emptyset`),K(q,Y,Z,`∅`,`\\varnothing`),K(q,J,Mq,`α`,`\\alpha`,!0),K(q,J,Mq,`β`,`\\beta`,!0),K(q,J,Mq,`γ`,`\\gamma`,!0),K(q,J,Mq,`δ`,`\\delta`,!0),K(q,J,Mq,`ϵ`,`\\epsilon`,!0),K(q,J,Mq,`ζ`,`\\zeta`,!0),K(q,J,Mq,`η`,`\\eta`,!0),K(q,J,Mq,`θ`,`\\theta`,!0),K(q,J,Mq,`ι`,`\\iota`,!0),K(q,J,Mq,`κ`,`\\kappa`,!0),K(q,J,Mq,`λ`,`\\lambda`,!0),K(q,J,Mq,`μ`,`\\mu`,!0),K(q,J,Mq,`ν`,`\\nu`,!0),K(q,J,Mq,`ξ`,`\\xi`,!0),K(q,J,Mq,`ο`,`\\omicron`,!0),K(q,J,Mq,`π`,`\\pi`,!0),K(q,J,Mq,`ρ`,`\\rho`,!0),K(q,J,Mq,`σ`,`\\sigma`,!0),K(q,J,Mq,`τ`,`\\tau`,!0),K(q,J,Mq,`υ`,`\\upsilon`,!0),K(q,J,Mq,`ϕ`,`\\phi`,!0),K(q,J,Mq,`χ`,`\\chi`,!0),K(q,J,Mq,`ψ`,`\\psi`,!0),K(q,J,Mq,`ω`,`\\omega`,!0),K(q,J,Mq,`ε`,`\\varepsilon`,!0),K(q,J,Mq,`ϑ`,`\\vartheta`,!0),K(q,J,Mq,`ϖ`,`\\varpi`,!0),K(q,J,Mq,`ϱ`,`\\varrho`,!0),K(q,J,Mq,`ς`,`\\varsigma`,!0),K(q,J,Mq,`φ`,`\\varphi`,!0),K(q,J,kq,`∗`,`*`,!0),K(q,J,kq,`+`,`+`),K(q,J,kq,`−`,`-`,!0),K(q,J,kq,`⋅`,`\\cdot`,!0),K(q,J,kq,`∘`,`\\circ`,!0),K(q,J,kq,`÷`,`\\div`,!0),K(q,J,kq,`±`,`\\pm`,!0),K(q,J,kq,`×`,`\\times`,!0),K(q,J,kq,`∩`,`\\cap`,!0),K(q,J,kq,`∪`,`\\cup`,!0),K(q,J,kq,`∖`,`\\setminus`,!0),K(q,J,kq,`∧`,`\\land`),K(q,J,kq,`∨`,`\\lor`),K(q,J,kq,`∧`,`\\wedge`,!0),K(q,J,kq,`∨`,`\\vee`,!0),K(q,J,Z,`√`,`\\surd`),K(q,J,Pq,`⟨`,`\\langle`,!0),K(q,J,Pq,`∣`,`\\lvert`),K(q,J,Pq,`∥`,`\\lVert`),K(q,J,Aq,`?`,`?`),K(q,J,Aq,`!`,`!`),K(q,J,Aq,`⟩`,`\\rangle`,!0),K(q,J,Aq,`∣`,`\\rvert`),K(q,J,Aq,`∥`,`\\rVert`),K(q,J,X,`=`,`=`),K(q,J,X,`:`,`:`),K(q,J,X,`≈`,`\\approx`,!0),K(q,J,X,`≅`,`\\cong`,!0),K(q,J,X,`≥`,`\\ge`),K(q,J,X,`≥`,`\\geq`,!0),K(q,J,X,`←`,`\\gets`),K(q,J,X,`>`,`\\gt`,!0),K(q,J,X,`∈`,`\\in`,!0),K(q,J,X,``,`\\@not`),K(q,J,X,`⊂`,`\\subset`,!0),K(q,J,X,`⊃`,`\\supset`,!0),K(q,J,X,`⊆`,`\\subseteq`,!0),K(q,J,X,`⊇`,`\\supseteq`,!0),K(q,Y,X,`⊈`,`\\nsubseteq`,!0),K(q,Y,X,`⊉`,`\\nsupseteq`,!0),K(q,J,X,`⊨`,`\\models`),K(q,J,X,`←`,`\\leftarrow`,!0),K(q,J,X,`≤`,`\\le`),K(q,J,X,`≤`,`\\leq`,!0),K(q,J,X,`<`,`\\lt`,!0),K(q,J,X,`→`,`\\rightarrow`,!0),K(q,J,X,`→`,`\\to`),K(q,Y,X,`≱`,`\\ngeq`,!0),K(q,Y,X,`≰`,`\\nleq`,!0),K(q,J,Iq,`\xA0`,`\\ `),K(q,J,Iq,`\xA0`,`\\space`),K(q,J,Iq,`\xA0`,`\\nobreakspace`),K(Dq,J,Iq,`\xA0`,`\\ `),K(Dq,J,Iq,`\xA0`,` `),K(Dq,J,Iq,`\xA0`,`\\space`),K(Dq,J,Iq,`\xA0`,`\\nobreakspace`),K(q,J,Iq,null,`\\nobreak`),K(q,J,Iq,null,`\\allowbreak`),K(q,J,Fq,`,`,`,`),K(q,J,Fq,`;`,`;`),K(q,Y,kq,`⊼`,`\\barwedge`,!0),K(q,Y,kq,`⊻`,`\\veebar`,!0),K(q,J,kq,`⊙`,`\\odot`,!0),K(q,J,kq,`⊕`,`\\oplus`,!0),K(q,J,kq,`⊗`,`\\otimes`,!0),K(q,J,Z,`∂`,`\\partial`,!0),K(q,J,kq,`⊘`,`\\oslash`,!0),K(q,Y,kq,`⊚`,`\\circledcirc`,!0),K(q,Y,kq,`⊡`,`\\boxdot`,!0),K(q,J,kq,`△`,`\\bigtriangleup`),K(q,J,kq,`▽`,`\\bigtriangledown`),K(q,J,kq,`†`,`\\dagger`),K(q,J,kq,`⋄`,`\\diamond`),K(q,J,kq,`⋆`,`\\star`),K(q,J,kq,`◃`,`\\triangleleft`),K(q,J,kq,`▹`,`\\triangleright`),K(q,J,Pq,`{`,`\\{`),K(Dq,J,Z,`{`,`\\{`),K(Dq,J,Z,`{`,`\\textbraceleft`),K(q,J,Aq,`}`,`\\}`),K(Dq,J,Z,`}`,`\\}`),K(Dq,J,Z,`}`,`\\textbraceright`),K(q,J,Pq,`{`,`\\lbrace`),K(q,J,Aq,`}`,`\\rbrace`),K(q,J,Pq,`[`,`\\lbrack`,!0),K(Dq,J,Z,`[`,`\\lbrack`,!0),K(q,J,Aq,`]`,`\\rbrack`,!0),K(Dq,J,Z,`]`,`\\rbrack`,!0),K(q,J,Pq,`(`,`\\lparen`,!0),K(q,J,Aq,`)`,`\\rparen`,!0),K(Dq,J,Z,`<`,`\\textless`,!0),K(Dq,J,Z,`>`,`\\textgreater`,!0),K(q,J,Pq,`⌊`,`\\lfloor`,!0),K(q,J,Aq,`⌋`,`\\rfloor`,!0),K(q,J,Pq,`⌈`,`\\lceil`,!0),K(q,J,Aq,`⌉`,`\\rceil`,!0),K(q,J,Z,`\\`,`\\backslash`),K(q,J,Z,`∣`,`|`),K(q,J,Z,`∣`,`\\vert`),K(Dq,J,Z,`|`,`\\textbar`,!0),K(q,J,Z,`∥`,`\\|`),K(q,J,Z,`∥`,`\\Vert`),K(Dq,J,Z,`∥`,`\\textbardbl`),K(Dq,J,Z,`~`,`\\textasciitilde`),K(Dq,J,Z,`\\`,`\\textbackslash`),K(Dq,J,Z,`^`,`\\textasciicircum`),K(q,J,X,`↑`,`\\uparrow`,!0),K(q,J,X,`⇑`,`\\Uparrow`,!0),K(q,J,X,`↓`,`\\downarrow`,!0),K(q,J,X,`⇓`,`\\Downarrow`,!0),K(q,J,X,`↕`,`\\updownarrow`,!0),K(q,J,X,`⇕`,`\\Updownarrow`,!0),K(q,J,Nq,`∐`,`\\coprod`),K(q,J,Nq,`⋁`,`\\bigvee`),K(q,J,Nq,`⋀`,`\\bigwedge`),K(q,J,Nq,`⨄`,`\\biguplus`),K(q,J,Nq,`⋂`,`\\bigcap`),K(q,J,Nq,`⋃`,`\\bigcup`),K(q,J,Nq,`∫`,`\\int`),K(q,J,Nq,`∫`,`\\intop`),K(q,J,Nq,`∬`,`\\iint`),K(q,J,Nq,`∭`,`\\iiint`),K(q,J,Nq,`∏`,`\\prod`),K(q,J,Nq,`∑`,`\\sum`),K(q,J,Nq,`⨂`,`\\bigotimes`),K(q,J,Nq,`⨁`,`\\bigoplus`),K(q,J,Nq,`⨀`,`\\bigodot`),K(q,J,Nq,`∮`,`\\oint`),K(q,J,Nq,`∯`,`\\oiint`),K(q,J,Nq,`∰`,`\\oiiint`),K(q,J,Nq,`⨆`,`\\bigsqcup`),K(q,J,Nq,`∫`,`\\smallint`),K(Dq,J,jq,`…`,`\\textellipsis`),K(q,J,jq,`…`,`\\mathellipsis`),K(Dq,J,jq,`…`,`\\ldots`,!0),K(q,J,jq,`…`,`\\ldots`,!0),K(q,J,jq,`⋯`,`\\@cdots`,!0),K(q,J,jq,`⋱`,`\\ddots`,!0),K(q,J,Z,`⋮`,`\\varvdots`),K(Dq,J,Z,`⋮`,`\\varvdots`),K(q,J,Oq,`ˊ`,`\\acute`),K(q,J,Oq,`ˋ`,`\\grave`),K(q,J,Oq,`¨`,`\\ddot`),K(q,J,Oq,`~`,`\\tilde`),K(q,J,Oq,`ˉ`,`\\bar`),K(q,J,Oq,`˘`,`\\breve`),K(q,J,Oq,`ˇ`,`\\check`),K(q,J,Oq,`^`,`\\hat`),K(q,J,Oq,`⃗`,`\\vec`),K(q,J,Oq,`˙`,`\\dot`),K(q,J,Oq,`˚`,`\\mathring`),K(q,J,Mq,``,`\\@imath`),K(q,J,Mq,``,`\\@jmath`),K(q,J,Z,`ı`,`ı`),K(q,J,Z,`ȷ`,`ȷ`),K(Dq,J,Z,`ı`,`\\i`,!0),K(Dq,J,Z,`ȷ`,`\\j`,!0),K(Dq,J,Z,`ß`,`\\ss`,!0),K(Dq,J,Z,`æ`,`\\ae`,!0),K(Dq,J,Z,`œ`,`\\oe`,!0),K(Dq,J,Z,`ø`,`\\o`,!0),K(Dq,J,Z,`Æ`,`\\AE`,!0),K(Dq,J,Z,`Œ`,`\\OE`,!0),K(Dq,J,Z,`Ø`,`\\O`,!0),K(Dq,J,Oq,`ˊ`,`\\'`),K(Dq,J,Oq,`ˋ`,"\\`"),K(Dq,J,Oq,`ˆ`,`\\^`),K(Dq,J,Oq,`˜`,`\\~`),K(Dq,J,Oq,`ˉ`,`\\=`),K(Dq,J,Oq,`˘`,`\\u`),K(Dq,J,Oq,`˙`,`\\.`),K(Dq,J,Oq,`¸`,`\\c`),K(Dq,J,Oq,`˚`,`\\r`),K(Dq,J,Oq,`ˇ`,`\\v`),K(Dq,J,Oq,`¨`,`\\"`),K(Dq,J,Oq,`˝`,`\\H`),K(Dq,J,Oq,`◯`,`\\textcircled`);var Lq={"--":!0,"---":!0,"``":!0,"''":!0};K(Dq,J,Z,`–`,`--`,!0),K(Dq,J,Z,`–`,`\\textendash`),K(Dq,J,Z,`—`,`---`,!0),K(Dq,J,Z,`—`,`\\textemdash`),K(Dq,J,Z,`‘`,"`",!0),K(Dq,J,Z,`‘`,`\\textquoteleft`),K(Dq,J,Z,`’`,`'`,!0),K(Dq,J,Z,`’`,`\\textquoteright`),K(Dq,J,Z,`“`,"``",!0),K(Dq,J,Z,`“`,`\\textquotedblleft`),K(Dq,J,Z,`”`,`''`,!0),K(Dq,J,Z,`”`,`\\textquotedblright`),K(q,J,Z,`°`,`\\degree`,!0),K(Dq,J,Z,`°`,`\\degree`),K(Dq,J,Z,`°`,`\\textdegree`,!0),K(q,J,Z,`£`,`\\pounds`),K(q,J,Z,`£`,`\\mathsterling`,!0),K(Dq,J,Z,`£`,`\\pounds`),K(Dq,J,Z,`£`,`\\textsterling`,!0),K(q,Y,Z,`✠`,`\\maltese`),K(Dq,Y,Z,`✠`,`\\maltese`);for(var Rq=`0123456789/@."`,zq=0;zq0)return iJ(i,c,r,t,a.concat(l));if(s){var u,d;if(s===`boldsymbol`){var f=Nbe(i,r,t,a,n);u=f.fontName,d=[f.fontClass]}else o?(u=uJ[s].fontName,d=[s]):(u=lJ(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(rJ(i,u,r).metrics)return iJ(i,u,r,t,a.concat(d));if(Lq.hasOwnProperty(i)&&u.slice(0,10)===`Typewriter`){for(var p=[],m=0;m{if(hq(e.classes)!==hq(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Ibe=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},oJ=function(e,t,n,r){var i=new yq(e,t,n,r);return aJ(i),i},sJ=(e,t,n,r)=>new yq(e,t,n,r),Lbe=function(e,t,n){var r=oJ([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=mq(r.height),r.maxFontSize=1,r},Rbe=function(e,t,n,r){var i=new bq(e,t,n,r);return aJ(i),i},cJ=function(e){var t=new nq(e);return aJ(t),t},zbe=function(e,t){return e instanceof nq?oJ([],[e],t):e},Bbe=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=oJ([`mspace`],[],t),r=pq(e,t);return n.style.marginRight=mq(r),n},lJ=function(e,t,n){var r=``;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}var i;return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:t===`textit`?`Italic`:`Regular`,r+`-`+i},uJ={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},dJ={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Ube=function(e,t){var[n,r,i]=dJ[e],a=new Cq(n),o=new Sq([a],{width:mq(r),height:mq(i),style:`width:`+mq(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`}),s=sJ([`overlay`],[o],t);return s.height=i,s.style.height=mq(i),s.style.width=mq(r),s},Q={fontMap:uJ,makeSymbol:iJ,mathsym:Mbe,makeSpan:oJ,makeSvgSpan:sJ,makeLineSpan:Lbe,makeAnchor:Rbe,makeFragment:cJ,wrapFragment:zbe,makeVList:Vbe,makeOrd:Pbe,makeGlue:Hbe,staticSvg:Ube,svgData:dJ,tryCombineChars:Ibe},fJ={number:3,unit:`mu`},pJ={number:4,unit:`mu`},mJ={number:5,unit:`mu`},Wbe={mord:{mop:fJ,mbin:pJ,mrel:mJ,minner:fJ},mop:{mord:fJ,mop:fJ,mrel:mJ,minner:fJ},mbin:{mord:pJ,mop:pJ,mopen:pJ,minner:pJ},mrel:{mord:mJ,mop:mJ,mopen:mJ,minner:mJ},mopen:{},mclose:{mop:fJ,mbin:pJ,mrel:mJ,minner:fJ},mpunct:{mord:fJ,mop:fJ,mrel:mJ,mopen:fJ,mclose:fJ,mpunct:fJ,minner:fJ},minner:{mord:fJ,mop:fJ,mbin:pJ,mrel:mJ,mopen:fJ,mpunct:fJ,minner:fJ}},Gbe={mord:{mop:fJ},mop:{mord:fJ,mop:fJ},mbin:{},mrel:{},mopen:{},mclose:{mop:fJ},mpunct:{},minner:{mop:fJ}},hJ={},gJ={},_J={};function vJ(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c{var n=t.classes[0],r=e.classes[0];n===`mbin`&&LK.contains(qbe,r)?t.classes[0]=`mord`:r===`mbin`&&LK.contains(Kbe,n)&&(e.classes[0]=`mord`)},{node:u},d,f),wJ(i,(e,t)=>{var n=EJ(t),r=EJ(e),i=n&&r?e.hasClass(`mtight`)?Gbe[n][r]:Wbe[n][r]:null;if(i)return Q.makeGlue(i,c)},{node:u},d,f),i},wJ=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;on=>{t.splice(e+1,0,n),o++})(o)}i&&t.pop()},TJ=function(e){return e instanceof nq||e instanceof bq||e instanceof yq&&e.hasClass(`enclosing`)?e:null},Xbe=function e(t,n){var r=TJ(t);if(r){var i=r.children;if(i.length){if(n===`right`)return e(i[i.length-1],`right`);if(n===`left`)return e(i[0],`left`)}}return t},EJ=function(e,t){return e?(t&&(e=Xbe(e,t)),Ybe[e.classes[0]]||null):null},DJ=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return SJ(t.concat(n))},OJ=function(e,t,n){if(!e)return SJ();if(gJ[e.type]){var r=gJ[e.type](e,t);if(n&&t.size!==n.size){r=SJ(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new FK(`Got group of unknown type: '`+e.type+`'`)};function kJ(e,t){var n=SJ([`base`],e,t),r=SJ([`strut`]);return r.style.height=mq(n.height+n.depth),n.depth&&(r.style.verticalAlign=mq(-n.depth)),n.children.unshift(r),n}function AJ(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=CJ(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s0&&(a.push(kJ(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(kJ(o,t));var l;n?(l=kJ(CJ(n,t,!0)),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=SJ([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=mq(u.height+u.depth),u.depth&&(d.style.verticalAlign=mq(-u.depth))}return u}function jJ(e){return new nq(e)}var MJ=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=hq(this.classes));for(var n=0;n0&&(e+=` class ="`+LK.escape(hq(this.classes))+`"`),e+=`>`;for(var n=0;n`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},NJ=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return LK.escape(this.toText())}toText(){return this.text}},Zbe=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=`  `:e>=-.05556&&e<=-.05555?this.character=` ⁣`:e>=-.1667&&e<=-.1666?this.character=` ⁣`:e>=-.2223&&e<=-.2222?this.character=` ⁣`:e>=-.2778&&e<=-.2777?this.character=` ⁣`:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,mq(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},PJ={MathNode:MJ,TextNode:NJ,SpaceNode:Zbe,newDocumentFragment:jJ},FJ=function(e,t,n){return Eq[t][e]&&Eq[t][e].replace&&e.charCodeAt(0)!==55349&&!(Lq.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=Eq[t][e].replace),new PJ.TextNode(e)},IJ=function(e){return e.length===1?e[0]:new PJ.MathNode(`mrow`,e)},LJ=function(e,t){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`;var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode;if(n===`mathit`)return`italic`;if(n===`boldsymbol`)return e.type===`textord`?`bold`:`bold-italic`;if(n===`mathbf`)return`bold`;if(n===`mathbb`)return`double-struck`;if(n===`mathsfit`)return`sans-serif-italic`;if(n===`mathfrak`)return`fraktur`;if(n===`mathscr`||n===`mathcal`)return`script`;if(n===`mathsf`)return`sans-serif`;if(n===`mathtt`)return`monospace`;var i=e.text;if(LK.contains([`\\imath`,`\\jmath`],i))return null;Eq[r][i]&&Eq[r][i].replace&&(i=Eq[r][i].replace);var a=Q.fontMap[n].fontName;return oq(i,a,r)?Q.fontMap[n].variant:null};function RJ(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof NJ&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof NJ&&n.text===`,`}else return!1}var zJ=function(e,t,n){if(e.length===1){var r=VJ(e[0],t);return n&&r instanceof MJ&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||RJ(a))){var c=s.children[0];c instanceof MJ&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof NJ&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof NJ&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},BJ=function(e,t,n){return IJ(zJ(e,t,n))},VJ=function(e,t){if(!e)return new PJ.MathNode(`mrow`);if(_J[e.type]){var n=_J[e.type](e,t);return n}else throw new FK(`Got group of unknown type: '`+e.type+`'`)};function HJ(e,t,n,r,i){var a=zJ(e,n),o;o=a.length===1&&a[0]instanceof MJ&&LK.contains([`mrow`,`mtable`],a[0].type)?a[0]:new PJ.MathNode(`mrow`,a);var s=new PJ.MathNode(`annotation`,[new PJ.TextNode(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new PJ.MathNode(`semantics`,[o,s]),l=new PJ.MathNode(`math`,[c]);l.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&l.setAttribute(`display`,`block`);var u=i?`katex`:`katex-mathml`;return Q.makeSpan([u],[l])}var UJ=function(e){return new uq({style:e.displayMode?XK.DISPLAY:XK.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},WJ=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=Q.makeSpan(n,[e])}return e},Qbe=function(e,t,n){var r=UJ(n),i;if(n.output===`mathml`)return HJ(e,t,r,n.displayMode,!0);if(n.output===`html`){var a=AJ(e,r);i=Q.makeSpan([`katex`],[a])}else{var o=HJ(e,t,r,n.displayMode,!1),s=AJ(e,r);i=Q.makeSpan([`katex`],[o,s])}return WJ(i,n)},$be=function(e,t,n){var r=UJ(n),i=AJ(e,r),a=Q.makeSpan([`katex`],[i]);return WJ(a,n)},exe={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},txe=function(e){var t=new PJ.MathNode(`mo`,[new PJ.TextNode(exe[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},nxe={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},rxe=function(e){return e.type===`ordgroup`?e.body.length:1},ixe=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(LK.contains([`widehat`,`widecheck`,`widetilde`,`utilde`],r)){var i=e,a=rxe(i.base),o,s,c;if(a>5)r===`widehat`||r===`widecheck`?(o=420,n=2364,c=.42,s=r+`4`):(o=312,n=2340,c=.34,s=`tilde4`);else{var l=[1,1,2,2,3,3][a];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],c=[0,.24,.3,.3,.36,.42][l],s=r+l):(n=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],c=[0,.26,.286,.3,.306,.34][l],s=`tilde`+l)}var u=new Cq(s),d=new Sq([u],{width:`100%`,height:mq(c),viewBox:`0 0 `+n+` `+o,preserveAspectRatio:`none`});return{span:Q.makeSvgSpan([],[d],t),minWidth:0,height:c}}else{var f=[],p=nxe[r],[m,h,g]=p,_=g/1e3,v=m.length,y,b;if(v===1){var x=p[3];y=[`hide-tail`],b=[x]}else if(v===2)y=[`halfarrow-left`,`halfarrow-right`],b=[`xMinYMin`,`xMaxYMin`];else if(v===3)y=[`brace-left`,`brace-center`,`brace-right`],b=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support + `+v+` children.`);for(var S=0;S0&&(r.style.minWidth=mq(i)),r},axe=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=Q.makeSpan([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new wq({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new wq({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`}));var l=new Sq(c,{width:`100%`,height:mq(o)});a=Q.makeSvgSpan([],[l],i)}return a.height=o,a.style.height=mq(o),a},GJ={encloseSpan:axe,mathMLnode:txe,svgSpan:ixe};function KJ(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function qJ(e){var t=JJ(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function JJ(e){return e&&(e.type===`atom`||Abe.hasOwnProperty(e.type))?e:null}var YJ=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=KJ(e.base,`accent`),n=r.base,e.base=n,i=Obe(OJ(e,t)),e.base=r):(r=KJ(e,`accent`),n=r.base);var a=OJ(n,t.havingCrampedStyle()),o=r.isShifty&&LK.isCharacterBox(n),s=0;if(o){var c=LK.getBaseElem(n),l=OJ(c,t.havingCrampedStyle());s=Tq(l).skew}var u=r.label===`\\c`,d=u?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),f;if(r.isStretchy)f=GJ.svgSpan(r,t),f=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:f,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+mq(2*s)+`)`,marginLeft:mq(2*s)}:void 0}]},t);else{var p,m;r.label===`\\vec`?(p=Q.staticSvg(`vec`,t),m=Q.svgData.vec[1]):(p=Q.makeOrd({mode:r.mode,text:r.label},t,`textord`),p=Tq(p),p.italic=0,m=p.width,u&&(d+=p.depth)),f=Q.makeSpan([`accent-body`],[p]);var h=r.label===`\\textcircled`;h&&(f.classes.push(`accent-full`),d=a.height);var g=s;h||(g-=m/2),f.style.left=mq(g),r.label===`\\textcircled`&&(f.style.top=`.2em`),f=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-d},{type:`elem`,elem:f}]},t)}var _=Q.makeSpan([`mord`,`accent`],[f],t);return i?(i.children[0]=_,i.height=Math.max(_.height,i.height),i.classes[0]=`mord`,i):_},XJ=(e,t)=>{var n=e.isStretchy?GJ.mathMLnode(e.label):new PJ.MathNode(`mo`,[FJ(e.label,e.mode)]),r=new PJ.MathNode(`mover`,[VJ(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},oxe=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));vJ({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=bJ(t[0]),r=!oxe.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:YJ,mathmlBuilder:XJ}),vJ({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:YJ,mathmlBuilder:XJ}),vJ({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=OJ(e.base,t),r=GJ.svgSpan(e,t),i=e.label===`\\utilde`?.12:0,a=Q.makeVList({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]},t);return Q.makeSpan([`mord`,`accentunder`],[a],t)},mathmlBuilder:(e,t)=>{var n=GJ.mathMLnode(e.label),r=new PJ.MathNode(`munder`,[VJ(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var ZJ=e=>{var t=new PJ.MathNode(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};vJ({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Q.wrapFragment(OJ(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Q.wrapFragment(OJ(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=GJ.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c},{type:`elem`,elem:o,shift:d}]},t)}else u=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c}]},t);return u.children[0].children[0].children[1].classes.push(`svg-align`),Q.makeSpan([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=GJ.mathMLnode(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=ZJ(VJ(e.body,t));if(e.below){var a=ZJ(VJ(e.below,t));r=new PJ.MathNode(`munderover`,[n,a,i])}else r=new PJ.MathNode(`mover`,[n,i])}else if(e.below){var o=ZJ(VJ(e.below,t));r=new PJ.MathNode(`munder`,[n,o])}else r=ZJ(),r=new PJ.MathNode(`mover`,[n,r]);return r}});var sxe=Q.makeSpan;function QJ(e,t){var n=CJ(e.body,t,!0);return sxe([e.mclass],n,t)}function $J(e,t){var n,r=zJ(e.body,t);return e.mclass===`minner`?n=new PJ.MathNode(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new PJ.MathNode(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new PJ.MathNode(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}vJ({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:xJ(i),isCharacterBox:LK.isCharacterBox(i)}},htmlBuilder:QJ,mathmlBuilder:$J});var eY=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};vJ({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:eY(t[0]),body:xJ(t[1]),isCharacterBox:LK.isCharacterBox(t[1])}}}),vJ({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o;o=r===`\\stackrel`?`mrel`:eY(i);var s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:xJ(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:LK.isCharacterBox(c)}},htmlBuilder:QJ,mathmlBuilder:$J}),vJ({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:eY(t[0]),body:xJ(t[0])}},htmlBuilder(e,t){var n=CJ(e.body,t,!0),r=Q.makeSpan([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=zJ(e.body,t),r=new PJ.MathNode(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}});var cxe={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},tY=()=>({type:`styling`,body:[],mode:`math`,style:`display`}),nY=e=>e.type===`textord`&&e.text===`@`,lxe=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function uxe(e,t,n){var r=cxe[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o=n.callFunction(`\\Big`,[a],[]),s=n.callFunction(`\\\\cdright`,[t[1]],[]),c={type:`ordgroup`,mode:`math`,body:[i,o,s]};return n.callFunction(`\\\\cdparent`,[c],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:var l={type:`textord`,text:`\\Vert`,mode:`math`};return n.callFunction(`\\Big`,[l],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function dxe(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new FK(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a-1))if(`<>AV`.indexOf(l)>-1)for(var d=0;d<2;d++){for(var f=!0,p=c+1;pAV=|." after @`,o[c]);var m=uxe(l,u,e),h={type:`styling`,body:[m],mode:`math`,style:`display`};r.push(h),s=tY()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var g=Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25});return{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:g,colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}vJ({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Q.wrapFragment(OJ(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=mq(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new PJ.MathNode(`mrow`,[VJ(e.label,t)]);return n=new PJ.MathNode(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new PJ.MathNode(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),vJ({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Q.wrapFragment(OJ(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new PJ.MathNode(`mrow`,[VJ(e.fragment,t)])}}),vJ({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=KJ(t[0],`ordgroup`),i=r.body,a=``,o=0;o=1114111)throw new FK(`\\@char with invalid code point `+a);return c<=65535?l=String.fromCharCode(c):(c-=65536,l=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:`textord`,mode:n.mode,text:l}}});var rY=(e,t)=>{var n=CJ(e.body,t.withColor(e.color),!1);return Q.makeFragment(n)},iY=(e,t)=>{var n=zJ(e.body,t.withColor(e.color)),r=new PJ.MathNode(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r};vJ({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=KJ(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:xJ(i)}},htmlBuilder:rY,mathmlBuilder:iY}),vJ({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=KJ(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:rY,mathmlBuilder:iY}),vJ({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&KJ(i,`size`).value}},htmlBuilder(e,t){var n=Q.makeSpan([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=mq(pq(e.size,t)))),n},mathmlBuilder(e,t){var n=new PJ.MathNode(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,mq(pq(e.size,t)))),n}});var aY={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},oY=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new FK(`Expected a control sequence`,e);return t},fxe=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},sY=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};vJ({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(aY[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=aY[r.text]),KJ(t.parseFunction(),`internal`);throw new FK(`Invalid token after macro prefix`,r)}}),vJ({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new FK(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new FK(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new FK(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new FK(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===aY[n]),{type:`internal`,mode:t.mode}}}),vJ({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=oY(t.gullet.popToken());t.gullet.consumeSpaces();var i=fxe(t);return sY(t,r,i,n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),vJ({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=oY(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return sY(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var cY=function(e,t,n){var r=Eq.math[e]&&Eq.math[e].replace,i=oq(r||e,t,n);if(!i)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return i},lY=function(e,t,n,r){var i=n.havingBaseStyle(t),a=Q.makeSpan(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},uY=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=mq(i),e.height-=i,e.depth+=i},pxe=function(e,t,n,r,i,a){var o=Q.makeSymbol(e,`Main-Regular`,i,r),s=lY(o,t,r,a);return n&&uY(s,r,t),s},mxe=function(e,t,n,r){return Q.makeSymbol(e,`Size`+t+`-Regular`,n,r)},dY=function(e,t,n,r,i,a){var o=mxe(e,t,i,r),s=lY(Q.makeSpan([`delimsizing`,`size`+t],[o],r),XK.TEXT,r,a);return n&&uY(s,r,XK.TEXT),s},fY=function(e,t,n){var r;r=t===`Size1-Regular`?`delim-size1`:`delim-size4`;var i=Q.makeSpan([`delimsizinginner`,r],[Q.makeSpan([],[Q.makeSymbol(e,t,n)])]);return{type:`elem`,elem:i}},pY=function(e,t,n){var r=rq[`Size4-Regular`][e.charCodeAt(0)]?rq[`Size4-Regular`][e.charCodeAt(0)][4]:rq[`Size1-Regular`][e.charCodeAt(0)][4],i=new Cq(`inner`,ybe(e,Math.round(1e3*t))),a=new Sq([i],{width:mq(r),height:mq(t),style:`width:`+mq(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`}),o=Q.makeSvgSpan([],[a],n);return o.height=t,o.style.height=mq(t),o.style.width=mq(r),{type:`elem`,elem:o}},mY=.008,hY={type:`kern`,size:-1*mY},hxe=[`|`,`\\lvert`,`\\rvert`,`\\vert`],gxe=[`\\|`,`\\lVert`,`\\rVert`,`\\Vert`],gY=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):LK.contains(hxe,e)?(c=`∣`,u=`vert`,d=333):LK.contains(gxe,e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=cY(o,f,i),m=p.height+p.depth,h=cY(c,f,i),g=h.height+h.depth,_=cY(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=cY(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=Math.max(0,Math.ceil((t-S)/(b*g))),w=S+C*b*g,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(u.length>0){var O=w-m-v,k=Math.round(w*1e3),A=bbe(u,Math.round(O*1e3)),j=new Cq(u,A),M=(d/1e3).toFixed(3)+`em`,ee=(k/1e3).toFixed(3)+`em`,te=new Sq([j],{width:M,height:ee,viewBox:`0 0 `+d+` `+k}),N=Q.makeSvgSpan([],[te],r);N.height=k/1e3,N.style.width=M,N.style.height=ee,D.push({type:`elem`,elem:N})}else{if(D.push(fY(l,f,i)),D.push(hY),s===null){var ne=w-m-v+2*mY;D.push(pY(c,ne,r))}else{var re=(w-m-v-y)/2+2*mY;D.push(pY(c,re,r)),D.push(hY),D.push(fY(s,f,i)),D.push(hY),D.push(pY(c,re,r))}D.push(hY),D.push(fY(o,f,i))}var ie=r.havingBaseStyle(XK.TEXT),ae=Q.makeVList({positionType:`bottom`,positionData:E,children:D},ie);return lY(Q.makeSpan([`delimsizing`,`mult`],[ae],ie),XK.TEXT,r,a)},_Y=80,vY=.08,yY=function(e,t,n,r,i){var a=vbe(e,r,n),o=new Cq(e,a),s=new Sq([o],{width:`400em`,height:mq(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`});return Q.makeSvgSpan([`hide-tail`],[s],i)},_xe=function(e,t){var n=t.havingBaseSizing(),r=wY(`\\surd`,e*n.sizeMultiplier,CY,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s=0,c=0,l=0,u;return r.type===`small`?(l=1e3+1e3*a+_Y,e<1?i=1:e<1.4&&(i=.7),s=(1+a+vY)/i,c=(1+a)/i,o=yY(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+_Y)*SY[r.size],c=(SY[r.size]+a)/i,s=(SY[r.size]+a+vY)/i,o=yY(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+vY,c=e+a,l=Math.floor(1e3*e+a)+_Y,o=yY(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=mq(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},bY=[`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`],vxe=[`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`],xY=[`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`],SY=[0,1.2,1.8,2.4,3],yxe=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),LK.contains(bY,e)||LK.contains(xY,e))return dY(e,t,!1,n,r,i);if(LK.contains(vxe,e))return gY(e,SY[t],!1,n,r,i);throw new FK(`Illegal delimiter: '`+e+`'`)},bxe=[{type:`small`,style:XK.SCRIPTSCRIPT},{type:`small`,style:XK.SCRIPT},{type:`small`,style:XK.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],xxe=[{type:`small`,style:XK.SCRIPTSCRIPT},{type:`small`,style:XK.SCRIPT},{type:`small`,style:XK.TEXT},{type:`stack`}],CY=[{type:`small`,style:XK.SCRIPTSCRIPT},{type:`small`,style:XK.SCRIPT},{type:`small`,style:XK.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Sxe=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;throw Error(`Add support for delim type '`+e.type+`' here.`)},wY=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size),a=i;at)return n[a]}return n[n.length-1]},TY=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o;o=LK.contains(xY,e)?bxe:LK.contains(bY,e)?CY:xxe;var s=wY(e,t,o,r);return s.type===`small`?pxe(e,s.style,n,r,i,a):s.type===`large`?dY(e,s.size,n,r,i,a):gY(e,t,n,r,i,a)},Cxe=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o),u=Math.max(l/500*s,2*l-c);return TY(e,u,!0,r,i,a)},EY={sqrtImage:_xe,sizedDelim:yxe,sizeToMaxHeight:SY,customSizedDelim:TY,leftRightDelim:Cxe},DY={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},wxe=`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`);function OY(e,t){var n=JJ(e);if(n&&LK.contains(wxe,n.text))return n;throw n?new FK(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new FK(`Invalid delimiter type '`+e.type+`'`,e)}vJ({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=OY(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:DY[e.funcName].size,mclass:DY[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?Q.makeSpan([e.mclass]):EY.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(FJ(e.delim,e.mode));var n=new PJ.MathNode(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=mq(EY.sizeToMaxHeight[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function kY(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}vJ({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new FK(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:OY(t[0],e).text,color:n}}}),vJ({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=OY(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=KJ(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{kY(e);for(var n=CJ(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{kY(e);var n=zJ(e.body,t);if(e.left!==`.`){var r=new PJ.MathNode(`mo`,[FJ(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new PJ.MathNode(`mo`,[FJ(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return IJ(n)}}),vJ({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=OY(t[0],e);if(!e.parser.leftrightDepth)throw new FK(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===`.`)n=DJ(t,[]);else{n=EY.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?FJ(`|`,`text`):FJ(e.delim,e.mode),r=new PJ.MathNode(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}});var AY=(e,t)=>{var n=Q.wrapFragment(OJ(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=LK.isCharacterBox(e.body);if(r===`sout`)a=Q.makeSpan([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=pq({number:.6,unit:`pt`},t),l=pq({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=mq(d/2+c);var f=Math.floor(1e3*d*i),p=gbe(f),m=new Sq([new Cq(`phase`,p)],{width:`400em`,height:mq(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`});a=Q.makeSvgSpan([`hide-tail`],[m],t),a.style.height=mq(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h=0,g=0,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=GJ.encloseSpan(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=mq(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=mq(_),a.style.borderRightWidth=mq(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]},t);else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]},t)}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?Q.makeSpan([`mord`,`cancel-lap`],[v],t):Q.makeSpan([`mord`],[v],t)},jY=(e,t)=>{var n=0,r=new PJ.MathNode(e.label.indexOf(`colorbox`)>-1?`mpadded`:`menclose`,[VJ(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+i+`em solid `+String(e.borderColor))}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};vJ({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=KJ(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:AY,mathmlBuilder:jY}),vJ({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=KJ(t[0],`color-token`).color,o=KJ(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:AY,mathmlBuilder:jY}),vJ({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),vJ({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\sout`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:AY,mathmlBuilder:jY}),vJ({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var MY={};function NY(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c{var t=e.parser.settings;if(!t.displayMode)throw new FK(`{`+e.envName+`} can be used only in display mode.`)};function LY(e){if(e.indexOf(`ed`)===-1)return e.indexOf(`*`)===-1}function RY(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new FK(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new PK(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(FY(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup(),x={type:`ordgroup`,mode:e.mode,body:x},n&&(x={type:`styling`,mode:e.mode,style:n,body:[x]}),m.push(x);var S=e.fetch().text;if(S===`&`){if(d&&m.length===d){if(l||s)throw new FK(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(S===`\\end`){b(),m.length===1&&x.type===`styling`&&x.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length0&&(v+=.25),c.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ce=void 0;(r>0||e.hskipBeforeAndAfter)&&(ce=LK.deflt(re.pregap,d),ce!==0&&(A=Q.makeSpan([`arraycolsep`],[]),A.style.width=mq(ce),k.push(A)));var le=[];for(n=0;n0){for(var pe=Q.makeLineSpan(`hline`,t,l),P=Q.makeLineSpan(`hdashline`,t,l),me=[{type:`elem`,elem:s,shift:0}];c.length>0;){var he=c.pop(),ge=he.pos-D;he.isDashed?me.push({type:`elem`,elem:P,shift:ge}):me.push({type:`elem`,elem:pe,shift:ge})}s=Q.makeVList({positionType:`individualShift`,children:me},t)}if(M.length===0)return Q.makeSpan([`mord`],[s],t);var _e=Q.makeVList({positionType:`individualShift`,children:M},t);return _e=Q.makeSpan([`tag`],[_e],t),Q.makeFragment([s,_e])},Txe={c:`center `,l:`left `,r:`right `},VY=function(e,t){for(var n=[],r=new PJ.MathNode(`mtd`,[],[`mtr-glue`]),i=new PJ.MathNode(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++)p[v].type===`align`?(f+=Txe[p[v].align],h&&(m+=`none `),h=!0):p[v].type===`separator`&&(h&&=(m+=p[v].separator===`|`?`solid `:`dashed `,!1));l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var y=e.cols||[],b=``,x=1;x0?`left `:``,d+=C[C.length-1].length>0?`right `:``;for(var w=1;w-1?`alignat`:`align`,i=e.envName===`split`,a=RY(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:LY(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};NY({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=JJ(t[0]),r=n?[t[0]]:KJ(t[0],`ordgroup`).body,i=r.map(function(e){var t=qJ(e),n=t.text;if(`lcr`.indexOf(n)!==-1)return{type:`align`,align:n};if(n===`|`)return{type:`separator`,separator:`|`};if(n===`:`)return{type:`separator`,separator:`:`};throw new FK(`Unknown column alignment: `+n,e)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return RY(e.parser,a,zY(e.envName))},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,`lcr`.indexOf(n)===-1)throw new FK(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=RY(e.parser,r,zY(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=RY(e.parser,t,`script`);return n.colSeparationType=`small`,n},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=JJ(t[0]),r=n?[t[0]]:KJ(t[0],`ordgroup`).body,i=r.map(function(e){var t=qJ(e),n=t.text;if(`lc`.indexOf(n)!==-1)return{type:`align`,align:n};throw new FK(`Unknown column alignment: `+n,e)});if(i.length>1)throw new FK(`{subarray} can contain only one column`);var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=RY(e.parser,a,`script`),a.body.length>0&&a.body[0].length>1)throw new FK(`{subarray} can contain only one column`);return a},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},n=RY(e.parser,t,zY(e.envName));return{type:`leftright`,mode:e.mode,body:[n],left:e.envName.indexOf(`r`)>-1?`.`:`\\{`,right:e.envName.indexOf(`r`)>-1?`\\}`:`.`,rightColor:void 0}},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:HY,htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){LK.contains([`gather`,`gather*`],e.envName)&&IY(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:LY(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return RY(e.parser,t,`display`)},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:HY,htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){IY(e);var t={autoTag:LY(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return RY(e.parser,t,`display`)},htmlBuilder:BY,mathmlBuilder:VY}),NY({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return IY(e),dxe(e.parser)},htmlBuilder:BY,mathmlBuilder:VY}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),vJ({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new FK(e.funcName+` valid only within array environment`)}});var UY=MY;vJ({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new FK(`Invalid environment name`,i);for(var a=``,o=0;o{var n=e.font,r=t.withFont(n);return OJ(e.body,r)},GY=(e,t)=>{var n=e.font,r=t.withFont(n);return VJ(e.body,r)},KY={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`,"\\bm":`\\boldsymbol`};vJ({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=bJ(t[0]),a=r;return a in KY&&(a=KY[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:WY,mathmlBuilder:GY}),vJ({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=LK.isCharacterBox(r);return{type:`mclass`,mode:n.mode,mclass:eY(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:i}}}),vJ({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i),s=`math`+r.slice(1);return{type:`font`,mode:a,font:s,body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:WY,mathmlBuilder:GY});var qY=(e,t)=>{var n=t;return e===`display`?n=n.id>=XK.SCRIPT.id?n.text():XK.DISPLAY:e===`text`&&n.size===XK.DISPLAY.size?n=XK.TEXT:e===`script`?n=XK.SCRIPT:e===`scriptscript`&&(n=XK.SCRIPTSCRIPT),n},JY=(e,t)=>{var n=qY(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var o=OJ(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d){var n=new PJ.MathNode(`mfrac`,[VJ(e.numer,t),VJ(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=pq(e.barSize,t);n.setAttribute(`linethickness`,mq(r))}var i=qY(e.size,t.style);if(i.size!==t.style.size){n=new PJ.MathNode(`mstyle`,[n]);var a=i.size===XK.DISPLAY.size?`true`:`false`;n.setAttribute(`displaystyle`,a),n.setAttribute(`scriptlevel`,`0`)}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new PJ.MathNode(`mo`,[new PJ.TextNode(e.leftDelim.replace(`\\`,``))]);s.setAttribute(`fence`,`true`),o.push(s)}if(o.push(n),e.rightDelim!=null){var c=new PJ.MathNode(`mo`,[new PJ.TextNode(e.rightDelim.replace(`\\`,``))]);c.setAttribute(`fence`,`true`),o.push(c)}return IJ(o)}return n};vJ({type:`genfrac`,names:[`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null,l=`auto`;switch(r){case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}switch(r){case`\\dfrac`:case`\\dbinom`:l=`display`;break;case`\\tfrac`:case`\\tbinom`:l=`text`;break}return{type:`genfrac`,mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:s,rightDelim:c,size:l,barSize:null}},htmlBuilder:JY,mathmlBuilder:YY}),vJ({type:`genfrac`,names:[`\\cfrac`],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:`genfrac`,mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:`display`,barSize:null}}}),vJ({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var XY=[`display`,`text`,`script`,`scriptscript`],ZY=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};vJ({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=bJ(t[0]),o=a.type===`atom`&&a.family===`open`?ZY(a.text):null,s=bJ(t[1]),c=s.type===`atom`&&s.family===`close`?ZY(s.text):null,l=KJ(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=`auto`,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=KJ(p.body[0],`textord`);f=XY[Number(m.text)]}}else p=KJ(p,`textord`),f=XY[Number(p.text)];return{type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c,size:f}},htmlBuilder:JY,mathmlBuilder:YY}),vJ({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:KJ(t[0],`size`).value,token:i}}}),vJ({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=tbe(KJ(t[1],`infix`).size),o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:`auto`}},htmlBuilder:JY,mathmlBuilder:YY});var QY=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?OJ(e.sup,t.havingStyle(n.sup()),t):OJ(e.sub,t.havingStyle(n.sub()),t),i=KJ(e.base,`horizBrace`)):i=KJ(e,`horizBrace`);var a=OJ(i.base,t.havingBaseStyle(XK.DISPLAY)),o=GJ.svgSpan(i,t),s;if(i.isOver?(s=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o}]},t),s.children[0].children[0].children[1].classes.push(`svg-align`)):(s=Q.makeVList({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o},{type:`kern`,size:.1},{type:`elem`,elem:a}]},t),s.children[0].children[0].children[0].classes.push(`svg-align`)),r){var c=Q.makeSpan([`mord`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]},t):Q.makeVList({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]},t)}return Q.makeSpan([`mord`,i.isOver?`mover`:`munder`],[s],t)},Exe=(e,t)=>{var n=GJ.mathMLnode(e.label);return new PJ.MathNode(e.isOver?`mover`:`munder`,[VJ(e.base,t),n])};vJ({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:QY,mathmlBuilder:Exe}),vJ({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=KJ(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:xJ(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=CJ(e.body,t,!1);return Q.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=BJ(e.body,t);return n instanceof MJ||(n=new MJ(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),vJ({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=KJ(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=KJ(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u{var n=CJ(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Q.makeSpan(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>BJ(e.body,t)}),vJ({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:xJ(t[0]),mathml:xJ(t[1])}},htmlBuilder:(e,t)=>{var n=CJ(e.html,t,!1);return Q.makeFragment(n)},mathmlBuilder:(e,t)=>BJ(e.mathml,t)});var $Y=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new FK(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!fq(n))throw new FK(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};vJ({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=KJ(n[0],`raw`).string,l=c.split(`,`),u=0;u{var n=pq(e.height,t),r=0;e.totalheight.number>0&&(r=pq(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pq(e.width,t));var a={height:mq(n+r)};i>0&&(a.width=mq(i)),r>0&&(a.verticalAlign=mq(-r));var o=new Ebe(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new PJ.MathNode(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=pq(e.height,t),i=0;if(e.totalheight.number>0&&(i=pq(e.totalheight,t)-r,n.setAttribute(`valign`,mq(-i))),n.setAttribute(`height`,mq(r+i)),e.width.number>0){var a=pq(e.width,t);n.setAttribute(`width`,mq(a))}return n.setAttribute(`src`,e.src),n}}),vJ({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=KJ(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Q.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=pq(e.dimension,t);return new PJ.SpaceNode(n)}}),vJ({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=Q.makeSpan([],[OJ(e.body,t)]),n=Q.makeSpan([`inner`],[n],t)):n=Q.makeSpan([`inner`],[OJ(e.body,t)]);var r=Q.makeSpan([`fix`],[]),i=Q.makeSpan([e.alignment],[n,r],t),a=Q.makeSpan([`strut`]);return a.style.height=mq(i.height+i.depth),i.depth&&(a.style.verticalAlign=mq(-i.depth)),i.children.unshift(a),i=Q.makeSpan([`thinbox`],[i],t),Q.makeSpan([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new PJ.MathNode(`mpadded`,[VJ(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),vJ({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,body:o}}}),vJ({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new FK(`Mismatched `+e.funcName)}});var eX=(e,t)=>{switch(t.style.size){case XK.DISPLAY.size:return e.display;case XK.TEXT.size:return e.text;case XK.SCRIPT.size:return e.script;case XK.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};vJ({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:xJ(t[0]),text:xJ(t[1]),script:xJ(t[2]),scriptscript:xJ(t[3])}},htmlBuilder:(e,t)=>{var n=eX(e,t),r=CJ(n,t,!1);return Q.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=eX(e,t);return BJ(n,t)}});var tX=(e,t,n,r,i,a,o)=>{e=Q.makeSpan([],[e]);var s=n&&LK.isCharacterBox(n),c,l;if(t){var u=OJ(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=OJ(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c){var p=r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o;f=Q.makeVList({positionType:`bottom`,positionData:p,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:mq(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:mq(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]},r)}else if(c){var m=e.height-o;f=Q.makeVList({positionType:`top`,positionData:m,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:mq(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]},r)}else if(l){var h=e.depth+o;f=Q.makeVList({positionType:`bottom`,positionData:h,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:mq(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var g=[f];if(c&&a!==0&&!s){var _=Q.makeSpan([`mspace`],[],r);_.style.marginRight=mq(a),g.unshift(_)}return Q.makeSpan([`mop`,`op-limits`],g,r)},nX=[`\\smallint`],rX=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=KJ(e.base,`op`),i=!0):a=KJ(e,`op`);var o=t.style,s=!1;o.size===XK.DISPLAY.size&&a.symbol&&!LK.contains(nX,a.name)&&(s=!0);var c;if(a.symbol){var l=s?`Size2-Regular`:`Size1-Regular`,u=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(u=a.name.slice(1),a.name=u===`oiint`?`\\iint`:`\\iiint`),c=Q.makeSymbol(a.name,l,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u.length>0){var d=c.italic,f=Q.staticSvg(u+`Size`+(s?`2`:`1`),t);c=Q.makeVList({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]},t),a.name=`\\`+u,c.classes.unshift(`mop`),c.italic=d}}else if(a.body){var p=CJ(a.body,t,!0);p.length===1&&p[0]instanceof xq?(c=p[0],c.classes[0]=`mop`):c=Q.makeSpan([`mop`],p,t)}else{for(var m=[],h=1;h{var n;if(e.symbol)n=new MJ(`mo`,[FJ(e.name,e.mode)]),LK.contains(nX,e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new MJ(`mo`,zJ(e.body,t));else{n=new MJ(`mi`,[new NJ(e.name.slice(1))]);var r=new MJ(`mo`,[FJ(`⁡`,`text`)]);n=e.parentIsSupSub?new MJ(`mrow`,[n,r]):jJ([n,r])}return n},Dxe={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};vJ({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Dxe[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:rX,mathmlBuilder:iX}),vJ({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:xJ(r)}},htmlBuilder:rX,mathmlBuilder:iX});var Oxe={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};vJ({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rX,mathmlBuilder:iX}),vJ({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rX,mathmlBuilder:iX}),vJ({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Oxe[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rX,mathmlBuilder:iX});var aX=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=KJ(e.base,`operatorname`),i=!0):a=KJ(e,`operatorname`);var o;if(a.body.length>0){for(var s=a.body.map(e=>{var t=e.text;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),c=CJ(s,t.withFont(`mathrm`),!0),l=0;l{for(var n=zJ(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new PJ.TextNode(s)]}var c=new PJ.MathNode(`mi`,n);c.setAttribute(`mathvariant`,`normal`);var l=new PJ.MathNode(`mo`,[FJ(`⁡`,`text`)]);return e.parentIsSupSub?new PJ.MathNode(`mrow`,[c,l]):PJ.newDocumentFragment([c,l])};vJ({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:xJ(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:aX,mathmlBuilder:kxe}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),yJ({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Q.makeFragment(CJ(e.body,t,!1)):Q.makeSpan([`mord`],CJ(e.body,t,!0),t)},mathmlBuilder(e,t){return BJ(e.body,t,!0)}}),vJ({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=OJ(e.body,t.havingCrampedStyle()),r=Q.makeLineSpan(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness,a=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]},t);return Q.makeSpan([`mord`,`overline`],[a],t)},mathmlBuilder(e,t){var n=new PJ.MathNode(`mo`,[new PJ.TextNode(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new PJ.MathNode(`mover`,[VJ(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),vJ({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:xJ(r)}},htmlBuilder:(e,t)=>{var n=CJ(e.body,t.withPhantom(),!1);return Q.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=zJ(e.body,t);return new PJ.MathNode(`mphantom`,n)}}),vJ({type:`hphantom`,names:[`\\hphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`hphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Q.makeSpan([],[OJ(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=zJ(xJ(e.body),t),r=new PJ.MathNode(`mphantom`,n),i=new PJ.MathNode(`mpadded`,[r]);return i.setAttribute(`height`,`0px`),i.setAttribute(`depth`,`0px`),i}}),vJ({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Q.makeSpan([`inner`],[OJ(e.body,t.withPhantom())]),r=Q.makeSpan([`fix`],[]);return Q.makeSpan([`mord`,`rlap`],[n,r],t)},mathmlBuilder:(e,t)=>{var n=zJ(xJ(e.body),t),r=new PJ.MathNode(`mphantom`,n),i=new PJ.MathNode(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),vJ({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=KJ(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=OJ(e.body,t),r=pq(e.dy,t);return Q.makeVList({positionType:`shift`,positionData:-r,children:[{type:`elem`,elem:n}]},t)},mathmlBuilder(e,t){var n=new PJ.MathNode(`mpadded`,[VJ(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),vJ({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),vJ({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=KJ(t[0],`size`),o=KJ(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&KJ(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=Q.makeSpan([`mord`,`rule`],[],t),r=pq(e.width,t),i=pq(e.height,t),a=e.shift?pq(e.shift,t):0;return n.style.borderRightWidth=mq(r),n.style.borderTopWidth=mq(i),n.style.bottom=mq(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=pq(e.width,t),r=pq(e.height,t),i=e.shift?pq(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new PJ.MathNode(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,mq(n)),o.setAttribute(`height`,mq(r));var s=new PJ.MathNode(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,mq(i)):(s.setAttribute(`height`,mq(i)),s.setAttribute(`depth`,mq(-i))),s.setAttribute(`voffset`,mq(i)),s}});function oX(e,t,n){for(var r=CJ(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return oX(e.body,n,t)};vJ({type:`sizing`,names:sX,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:sX.indexOf(r)+1,body:a}},htmlBuilder:Axe,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=zJ(e.body,n),i=new PJ.MathNode(`mstyle`,r);return i.setAttribute(`mathsize`,mq(n.sizeMultiplier)),i}}),vJ({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&KJ(n[0],`ordgroup`);if(o)for(var s=``,c=0;c{var n=Q.makeSpan([],[OJ(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new PJ.MathNode(`mpadded`,[VJ(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),vJ({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=OJ(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Q.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+o&&(o=(o+d-n.height-n.depth)/2);var f=c.height-n.height-o-l;n.style.paddingLeft=mq(u);var p=Q.makeVList({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+f)},{type:`elem`,elem:c},{type:`kern`,size:l}]},t);if(e.index){var m=t.havingStyle(XK.SCRIPTSCRIPT),h=OJ(e.index,m,t),g=.6*(p.height-p.depth),_=Q.makeVList({positionType:`shift`,positionData:-g,children:[{type:`elem`,elem:h}]},t),v=Q.makeSpan([`root`],[_]);return Q.makeSpan([`mord`,`sqrt`],[v,p],t)}else return Q.makeSpan([`mord`,`sqrt`],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new PJ.MathNode(`mroot`,[VJ(n,t),VJ(r,t)]):new PJ.MathNode(`msqrt`,[VJ(n,t)])}});var cX={display:XK.DISPLAY,text:XK.TEXT,script:XK.SCRIPT,scriptscript:XK.SCRIPTSCRIPT};vJ({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=cX[e.style],r=t.havingStyle(n).withFont(``);return oX(e.body,r,t)},mathmlBuilder(e,t){var n=cX[e.style],r=t.havingStyle(n),i=zJ(e.body,r),a=new PJ.MathNode(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]},s=o[e.style];return a.setAttribute(`scriptlevel`,s[0]),a.setAttribute(`displaystyle`,s[1]),a}});var jxe=function(e,t){var n=e.base;if(n)if(n.type===`op`){var r=n.limits&&(t.style.size===XK.DISPLAY.size||n.alwaysHandleSupSub);return r?rX:null}else if(n.type===`operatorname`){var i=n.alwaysHandleSupSub&&(t.style.size===XK.DISPLAY.size||n.limits);return i?aX:null}else if(n.type===`accent`)return LK.isCharacterBox(n.base)?YJ:null;else if(n.type===`horizBrace`){var a=!e.sub;return a===n.isOver?QY:null}else return null;else return null};yJ({type:`supsub`,htmlBuilder(e,t){var n=jxe(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=OJ(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&LK.isCharacterBox(r);if(i){var p=t.havingStyle(t.style.sup());s=OJ(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=OJ(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h;h=t.style===XK.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2;var g=t.sizeMultiplier,_=mq(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof xq||y)&&(v=mq(-o.italic))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=l.defaultRuleThickness,S=4*x;if(u-s.depth-(c.height-d)0&&(u+=C,d-=C)}var w=[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}];b=Q.makeVList({positionType:`individualShift`,children:w},t)}else if(c){d=Math.max(d,l.sub1,c.height-.8*l.xHeight);var T=[{type:`elem`,elem:c,marginLeft:v,marginRight:_}];b=Q.makeVList({positionType:`shift`,positionData:d,children:T},t)}else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=Q.makeVList({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]},t);else throw Error(`supsub must have either sup or sub.`);var E=EJ(o,`right`)||`mord`;return Q.makeSpan([E],[o,Q.makeSpan([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[VJ(e.base,t)];e.sub&&a.push(VJ(e.sub,t)),e.sup&&a.push(VJ(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(e.sub)if(e.sup){var s=e.base;o=s&&s.type===`op`&&s.limits&&t.style===XK.DISPLAY||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(t.style===XK.DISPLAY||s.limits)?`munderover`:`msubsup`}else{var c=e.base;o=c&&c.type===`op`&&c.limits&&(t.style===XK.DISPLAY||c.alwaysHandleSupSub)||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(c.limits||t.style===XK.DISPLAY)?`munder`:`msub`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===XK.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===XK.DISPLAY)?`mover`:`msup`}return new PJ.MathNode(o,a)}}),yJ({type:`atom`,htmlBuilder(e,t){return Q.mathsym(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new PJ.MathNode(`mo`,[FJ(e.text,e.mode)]);if(e.family===`bin`){var r=LJ(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var lX={mi:`italic`,mn:`normal`,mtext:`normal`};yJ({type:`mathord`,htmlBuilder(e,t){return Q.makeOrd(e,t,`mathord`)},mathmlBuilder(e,t){var n=new PJ.MathNode(`mi`,[FJ(e.text,e.mode,t)]),r=LJ(e,t)||`italic`;return r!==lX[n.type]&&n.setAttribute(`mathvariant`,r),n}}),yJ({type:`textord`,htmlBuilder(e,t){return Q.makeOrd(e,t,`textord`)},mathmlBuilder(e,t){var n=FJ(e.text,e.mode,t),r=LJ(e,t)||`normal`,i;return i=e.mode===`text`?new PJ.MathNode(`mtext`,[n]):/[0-9]/.test(e.text)?new PJ.MathNode(`mn`,[n]):e.text===`\\prime`?new PJ.MathNode(`mo`,[n]):new PJ.MathNode(`mi`,[n]),r!==lX[i.type]&&i.setAttribute(`mathvariant`,r),i}});var uX={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},dX={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};yJ({type:`spacing`,htmlBuilder(e,t){if(dX.hasOwnProperty(e.text)){var n=dX[e.text].className||``;if(e.mode===`text`){var r=Q.makeOrd(e,t,`textord`);return r.classes.push(n),r}else return Q.makeSpan([`mspace`,n],[Q.mathsym(e.text,e.mode,t)],t)}else if(uX.hasOwnProperty(e.text))return Q.makeSpan([`mspace`,uX[e.text]],[],t);else throw new FK(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(dX.hasOwnProperty(e.text))n=new PJ.MathNode(`mtext`,[new PJ.TextNode(`\xA0`)]);else if(uX.hasOwnProperty(e.text))return new PJ.MathNode(`mspace`);else throw new FK(`Unknown type of space "`+e.text+`"`);return n}});var fX=()=>{var e=new PJ.MathNode(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};yJ({type:`tag`,mathmlBuilder(e,t){var n=new PJ.MathNode(`mtable`,[new PJ.MathNode(`mtr`,[fX(),new PJ.MathNode(`mtd`,[BJ(e.body,t)]),fX(),new PJ.MathNode(`mtd`,[BJ(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var pX={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},mX={"\\textbf":`textbf`,"\\textmd":`textmd`},Mxe={"\\textit":`textit`,"\\textup":`textup`},hX=(e,t)=>{var n=e.font;if(n){if(pX[n])return t.withTextFontFamily(pX[n]);if(mX[n])return t.withTextFontWeight(mX[n]);if(n===`\\emph`)return t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`)}else return t;return t.withTextFontShape(Mxe[n])};vJ({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:xJ(i),font:r}},htmlBuilder(e,t){var n=hX(e,t),r=CJ(e.body,n,!0);return Q.makeSpan([`mord`,`text`],r,n)},mathmlBuilder(e,t){var n=hX(e,t);return BJ(e.body,n)}}),vJ({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=OJ(e.body,t),r=Q.makeLineSpan(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness,a=Q.makeVList({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]},t);return Q.makeSpan([`mord`,`underline`],[a],t)},mathmlBuilder(e,t){var n=new PJ.MathNode(`mo`,[new PJ.TextNode(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new PJ.MathNode(`munder`,[VJ(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),vJ({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=OJ(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return Q.makeVList({positionType:`shift`,positionData:i,children:[{type:`elem`,elem:n}]},t)},mathmlBuilder(e,t){return new PJ.MathNode(`mpadded`,[VJ(e.body,t)],[`vcenter`])}}),vJ({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new FK(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=gX(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),_X=hJ,vX=`[ \r + ]`,Nxe=`\\\\[a-zA-Z@]+`,Pxe=`\\\\[^\ud800-\udfff]`,Fxe=`(`+Nxe+`)`+vX+`*`,Ixe=`\\\\( |[ \r ]+ -?)[ \r ]*`,yX=`[̀-ͯ]`,Nbe=RegExp(yX+`+$`),Pbe=`(`+vX+`+)|`+(Mbe+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(yX+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(yX+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+jbe)+(`|`+Abe+`)`),bX=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Pbe,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new PK(`EOF`,new NK(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new FK(`Unexpected character: '`+e[t]+`'`,new PK(e[t],new NK(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` -`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new PK(r,new NK(this,t,this.tokenRegex.lastIndex))}},Fbe=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new FK(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},Ibe=PY;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var xX={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=``;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new FK("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=xX[t.text],r==null||r>=n)throw new FK(`Invalid base-`+n+` digit `+t.text);for(var i;(i=xX[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new FK(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new FK(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new FK(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new FK(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>SX(e,!1,!0,!1)),$(`\\renewcommand`,e=>SX(e,!0,!1,!1)),$(`\\providecommand`,e=>SX(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),_X[n],Eq.math[n],Eq.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`·`,`\\cdotp`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`️`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var CX={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`};$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in CX?t=CX[n]:(n.slice(0,4)===`\\not`||n in Eq.math&&LK.contains([`bin`,`rel`],Eq.math[n].group))&&(t=`\\dotsb`),t});var wX={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){var t=e.future().text;return t in wX?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in wX&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){var t=e.future().text;return t in wX?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new FK(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var TX=mq(rq[`Main-Regular`][84][1]-.7*rq[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+TX+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+TX+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var EX=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;if(!t&&i.length){var c=n.future();c.text===`|`&&(n.popToken(),a=!0)}return{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,EX(!1)),$(`\\bra@set`,EX(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var DX={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Lbe=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Fbe(Ibe,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new bX(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else ({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new PK(`EOF`,n.loc)),this.pushTokens(r),t.range(n,``)}consumeSpaces(){for(;;){var e=this.future();if(e.text===` `)this.stack.pop();else break}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new FK(`Extra }`,i)}else if(i.text===`EOF`)throw new FK(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new FK(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new FK(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new FK(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new FK(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new FK(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}throw Error()}expandMacro(e){return this.macros.has(e)?this.expandTokens([new PK(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.indexOf(`#`)!==-1)for(var a=r.replace(/##/g,``);a.indexOf(`#`+(i+1))!==-1;)++i;for(var o=new bX(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();s.reverse();var l={tokens:s,numArgs:i};return l}return r}isDefined(e){return this.macros.has(e)||_X.hasOwnProperty(e)||Eq.math.hasOwnProperty(e)||Eq.text.hasOwnProperty(e)||DX.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?_X.hasOwnProperty(e)&&!_X[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},OX=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,kX=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),AX={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},jX={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},MX=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Lbe(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new FK(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new PK(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&_X[i.text]&&_X[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type===`internal`)continue}else break;r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=0&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=Eq[this.mode][t].group,s=NK.range(e),c;if(Tye.hasOwnProperty(o)){var l=o;c={type:`atom`,mode:this.mode,family:l,loc:s,text:t}}else c={type:o,mode:this.mode,loc:s,text:t};a=c}else if(t.charCodeAt(0)>=128)this.settings.strict&&($K(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:NK.range(e),text:t};else return null;if(this.consume(),i)for(var u=0;uo&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Kbe(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){let t={type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]};this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[t]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren;r.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function qbe(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:` -`,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(Gbe(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:` +?)[ \r ]*`,yX=`[̀-ͯ]`,Lxe=RegExp(yX+`+$`),Rxe=`(`+vX+`+)|`+(Ixe+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(yX+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(yX+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Fxe)+(`|`+Pxe+`)`),bX=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Rxe,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new PK(`EOF`,new NK(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new FK(`Unexpected character: '`+e[t]+`'`,new PK(e[t],new NK(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` +`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new PK(r,new NK(this,t,this.tokenRegex.lastIndex))}},zxe=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new FK(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},Bxe=PY;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var xX={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=``;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new FK("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=xX[t.text],r==null||r>=n)throw new FK(`Invalid base-`+n+` digit `+t.text);for(var i;(i=xX[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new FK(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new FK(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new FK(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new FK(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>SX(e,!1,!0,!1)),$(`\\renewcommand`,e=>SX(e,!0,!1,!1)),$(`\\providecommand`,e=>SX(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),_X[n],Eq.math[n],Eq.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`·`,`\\cdotp`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`️`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var CX={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`};$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in CX?t=CX[n]:(n.slice(0,4)===`\\not`||n in Eq.math&&LK.contains([`bin`,`rel`],Eq.math[n].group))&&(t=`\\dotsb`),t});var wX={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){var t=e.future().text;return t in wX?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in wX&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){var t=e.future().text;return t in wX?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new FK(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var TX=mq(rq[`Main-Regular`][84][1]-.7*rq[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+TX+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+TX+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var EX=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;if(!t&&i.length){var c=n.future();c.text===`|`&&(n.popToken(),a=!0)}return{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,EX(!1)),$(`\\bra@set`,EX(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var DX={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Vxe=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new zxe(Bxe,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new bX(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else ({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new PK(`EOF`,n.loc)),this.pushTokens(r),t.range(n,``)}consumeSpaces(){for(;;){var e=this.future();if(e.text===` `)this.stack.pop();else break}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new FK(`Extra }`,i)}else if(i.text===`EOF`)throw new FK(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new FK(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new FK(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new FK(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new FK(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new FK(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}throw Error()}expandMacro(e){return this.macros.has(e)?this.expandTokens([new PK(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.indexOf(`#`)!==-1)for(var a=r.replace(/##/g,``);a.indexOf(`#`+(i+1))!==-1;)++i;for(var o=new bX(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();s.reverse();var l={tokens:s,numArgs:i};return l}return r}isDefined(e){return this.macros.has(e)||_X.hasOwnProperty(e)||Eq.math.hasOwnProperty(e)||Eq.text.hasOwnProperty(e)||DX.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?_X.hasOwnProperty(e)&&!_X[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},OX=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,kX=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),AX={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},jX={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},MX=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Vxe(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new FK(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new PK(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&_X[i.text]&&_X[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type===`internal`)continue}else break;r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=0&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=Eq[this.mode][t].group,s=NK.range(e),c;if(kbe.hasOwnProperty(o)){var l=o;c={type:`atom`,mode:this.mode,family:l,loc:s,text:t}}else c={type:o,mode:this.mode,loc:s,text:t};a=c}else if(t.charCodeAt(0)>=128)this.settings.strict&&($K(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:NK.range(e),text:t};else return null;if(this.consume(),i)for(var u=0;uo&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Xxe(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){let t={type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]};this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[t]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren;r.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function Zxe(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:` +`,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(Yxe(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:` `,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(` `),i&&(c+=a.move(i+` -`)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s-1&&e.test(String.fromCharCode(t))}}function JX(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return KX(r)?(e.enter(n),s(r)):t(r)}function s(r){return KX(r)&&a++i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(tZ(e,e.length,0,t),e):t}const rZ={}.hasOwnProperty;function uxe(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function aZ(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}function oZ(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}const pxe={tokenize:mxe};function mxe(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),JX(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return WX(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}const hxe={tokenize:gxe},sZ={tokenize:_xe};function gxe(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(ro))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;er;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function _xe(e,t,n){return JX(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function cZ(e){if(e===null||GX(e)||Qbe(e))return 1;if(Zbe(e))return 2}function lZ(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};dZ(d,-c),dZ(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=nZ(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=nZ(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=nZ(l,lZ(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=nZ(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=nZ(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,tZ(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n0&&KX(t)?JX(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||WX(t)?e.check(gZ,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||WX(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),KX(t)?JX(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),KX(t)?JX(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||WX(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function kxe(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}const vZ={name:`codeIndented`,tokenize:jxe},Axe={partial:!0,tokenize:Mxe};function jxe(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),JX(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):WX(t)?e.attempt(Axe,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||WX(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function Mxe(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):WX(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):JX(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):WX(e)?i(e):n(e)}}const Nxe={name:`codeText`,previous:Fxe,resolve:Pxe,tokenize:Ixe};function Pxe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&yZ(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),yZ(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),yZ(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function xZ(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||HX(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||WX(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||GX(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):WX(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||WX(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!KX(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function CZ(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):WX(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),JX(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||WX(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function wZ(e,t){let n;return r;function r(i){return WX(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):KX(i)?JX(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}const Wxe={name:`definition`,tokenize:Kxe},Gxe={partial:!0,tokenize:qxe};function Kxe(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return SZ.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=aZ(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return GX(t)?wZ(e,l)(t):l(t)}function l(t){return xZ(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Gxe,d,d)(t)}function d(t){return KX(t)?JX(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||WX(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function qxe(e,t,n){return r;function r(t){return GX(t)?wZ(e,i)(t):n(t)}function i(t){return CZ(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return KX(t)?JX(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||WX(e)?t(e):n(e)}}const Jxe={name:`hardBreakEscape`,tokenize:Yxe};function Yxe(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return WX(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}const Xxe={name:`headingAtx`,resolve:Zxe,tokenize:Qxe};function Zxe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},tZ(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Qxe(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||GX(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||WX(n)?(e.exit(`atxHeading`),t(n)):KX(n)?JX(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||GX(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}const $xe=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),TZ=[`pre`,`script`,`style`,`textarea`],eSe={concrete:!0,name:`htmlFlow`,resolveTo:rSe,tokenize:iSe},tSe={partial:!0,tokenize:oSe},nSe={partial:!0,tokenize:aSe};function rSe(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function iSe(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ne):BX(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):BX(a)?(e.consume(a),i=4,r.interrupt?t:ne):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ne):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return BX(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||GX(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&TZ.includes(l)?(i=1,r.interrupt?t(s):O(s)):$xe.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||VX(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return KX(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||BX(t)?(e.consume(t),b):KX(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||VX(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):KX(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):KX(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||WX(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||GX(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||KX(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||WX(t)?O(t):KX(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),ee):t===62&&i===4?(e.consume(t),re):t===63&&i===3?(e.consume(t),ne):t===93&&i===5?(e.consume(t),N):WX(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(tSe,ie,k)(t)):t===null||WX(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(nSe,A,ie)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||WX(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),ne):O(t)}function ee(t){return t===47?(e.consume(t),o=``,te):O(t)}function te(t){if(t===62){let n=o.toLowerCase();return TZ.includes(n)?(e.consume(t),re):O(t)}return BX(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),te):O(t)}function N(t){return t===93?(e.consume(t),ne):O(t)}function ne(t){return t===62?(e.consume(t),re):t===45&&i===2?(e.consume(t),ne):O(t)}function re(t){return t===null||WX(t)?(e.exit(`htmlFlowData`),ie(t)):(e.consume(t),re)}function ie(n){return e.exit(`htmlFlow`),t(n)}}function aSe(e,t,n){let r=this;return i;function i(t){return WX(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function oSe(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(fZ,t,n)}}const sSe={name:`htmlText`,tokenize:cSe};function cSe(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):BX(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):BX(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):WX(t)?(o=d,ee(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):WX(t)?(o=h,ee(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):WX(t)?(o=v,ee(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):WX(t)?(o=y,ee(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return BX(t)?(e.consume(t),S):n(t)}function S(t){return t===45||VX(t)?(e.consume(t),S):C(t)}function C(t){return WX(t)?(o=C,ee(t)):KX(t)?(e.consume(t),C):M(t)}function w(t){return t===45||VX(t)?(e.consume(t),w):t===47||t===62||GX(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||BX(t)?(e.consume(t),E):WX(t)?(o=T,ee(t)):KX(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||VX(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):WX(t)?(o=D,ee(t)):KX(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):WX(t)?(o=O,ee(t)):KX(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):WX(t)?(o=k,ee(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||GX(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||GX(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ee(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),te}function te(t){return KX(t)?JX(e,N,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):N(t)}function N(t){return e.enter(`htmlTextData`),o(t)}}const EZ={name:`labelEnd`,resolveAll:fSe,resolveTo:pSe,tokenize:mSe},lSe={tokenize:hSe},uSe={tokenize:gSe},dSe={tokenize:_Se};function fSe(e){let t=-1,n=[];for(;++t=3&&(a===null||WX(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),KX(t)?JX(e,s,`whitespace`)(t):s(t))}}const kZ={continuation:{tokenize:DSe},exit:kSe,name:`list`,tokenize:ESe},wSe={partial:!0,tokenize:ASe},TSe={partial:!0,tokenize:OSe};function ESe(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:UX(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(OZ,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return UX(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(fZ,r.interrupt?n:u,e.attempt(wSe,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return KX(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function DSe(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(fZ,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,JX(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!KX(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(TSe,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,JX(e,e.attempt(kZ,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function OSe(e,t,n){let r=this;return JX(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function kSe(e){e.exit(this.containerState.type)}function ASe(e,t,n){let r=this;return JX(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!KX(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}const AZ={name:`setextUnderline`,resolveTo:jSe,tokenize:MSe};function jSe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function MSe(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),KX(t)?JX(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||WX(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}const NSe={tokenize:PSe};function PSe(e){let t=this,n=e.attempt(fZ,r,e.attempt(this.parser.constructs.flowInitial,i,JX(e,e.attempt(this.parser.constructs.flow,i,e.attempt(zxe,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}const FSe={resolveAll:MZ()},ISe=jZ(`string`),LSe=jZ(`text`);function jZ(e){return{resolveAll:MZ(e===`text`?RSe:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++iKSe,contentInitial:()=>BSe,disable:()=>qSe,document:()=>zSe,flow:()=>HSe,flowInitial:()=>VSe,insideSpan:()=>GSe,string:()=>USe,text:()=>WSe});const zSe={42:kZ,43:kZ,45:kZ,48:kZ,49:kZ,50:kZ,51:kZ,52:kZ,53:kZ,54:kZ,55:kZ,56:kZ,57:kZ,62:pZ},BSe={91:Wxe},VSe={[-2]:vZ,[-1]:vZ,32:vZ},HSe={35:Xxe,42:OZ,45:[AZ,OZ],60:eSe,61:AZ,95:OZ,96:_Z,126:_Z},USe={38:hZ,92:mZ},WSe={[-5]:DZ,[-4]:DZ,[-3]:DZ,33:vSe,38:hZ,42:uZ,60:[bxe,sSe],91:bSe,92:[Jxe,mZ],93:EZ,95:uZ,96:Nxe},GSe={null:[uZ,FSe]},KSe={null:[42,95]},qSe={null:[]};function JSe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=nZ(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=lZ(a,l.events,l),l.events):[]}function f(e,t){return XSe(p(e),t)}function p(e){return YSe(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function XSe(e,t){let n=-1,r=[],i;for(;++n-1&&e.test(String.fromCharCode(t))}}function JX(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return KX(r)?(e.enter(n),s(r)):t(r)}function s(r){return KX(r)&&a++i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(tZ(e,e.length,0,t),e):t}const rZ={}.hasOwnProperty;function mSe(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function aZ(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}function oZ(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}const _Se={tokenize:vSe};function vSe(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),JX(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return WX(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}const ySe={tokenize:bSe},sZ={tokenize:xSe};function bSe(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(ro))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;er;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function xSe(e,t,n){return JX(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function cZ(e){if(e===null||GX(e)||nSe(e))return 1;if(tSe(e))return 2}function lZ(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};dZ(d,-c),dZ(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=nZ(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=nZ(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=nZ(l,lZ(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=nZ(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=nZ(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,tZ(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n0&&KX(t)?JX(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||WX(t)?e.check(gZ,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||WX(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),KX(t)?JX(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),KX(t)?JX(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||WX(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function NSe(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}const vZ={name:`codeIndented`,tokenize:FSe},PSe={partial:!0,tokenize:ISe};function FSe(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),JX(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):WX(t)?e.attempt(PSe,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||WX(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function ISe(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):WX(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):JX(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):WX(e)?i(e):n(e)}}const LSe={name:`codeText`,previous:zSe,resolve:RSe,tokenize:BSe};function RSe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&yZ(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),yZ(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),yZ(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function xZ(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||HX(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||WX(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||GX(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):WX(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||WX(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!KX(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function CZ(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):WX(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),JX(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||WX(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function wZ(e,t){let n;return r;function r(i){return WX(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):KX(i)?JX(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}const JSe={name:`definition`,tokenize:XSe},YSe={partial:!0,tokenize:ZSe};function XSe(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return SZ.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=aZ(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return GX(t)?wZ(e,l)(t):l(t)}function l(t){return xZ(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(YSe,d,d)(t)}function d(t){return KX(t)?JX(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||WX(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function ZSe(e,t,n){return r;function r(t){return GX(t)?wZ(e,i)(t):n(t)}function i(t){return CZ(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return KX(t)?JX(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||WX(e)?t(e):n(e)}}const QSe={name:`hardBreakEscape`,tokenize:$Se};function $Se(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return WX(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}const eCe={name:`headingAtx`,resolve:tCe,tokenize:nCe};function tCe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},tZ(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function nCe(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||GX(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||WX(n)?(e.exit(`atxHeading`),t(n)):KX(n)?JX(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||GX(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}const rCe=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),TZ=[`pre`,`script`,`style`,`textarea`],iCe={concrete:!0,name:`htmlFlow`,resolveTo:sCe,tokenize:cCe},aCe={partial:!0,tokenize:uCe},oCe={partial:!0,tokenize:lCe};function sCe(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function cCe(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ne):BX(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):BX(a)?(e.consume(a),i=4,r.interrupt?t:ne):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ne):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return BX(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||GX(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&TZ.includes(l)?(i=1,r.interrupt?t(s):O(s)):rCe.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||VX(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return KX(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||BX(t)?(e.consume(t),b):KX(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||VX(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):KX(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):KX(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||WX(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||GX(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||KX(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||WX(t)?O(t):KX(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),ee):t===62&&i===4?(e.consume(t),re):t===63&&i===3?(e.consume(t),ne):t===93&&i===5?(e.consume(t),N):WX(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(aCe,ie,k)(t)):t===null||WX(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(oCe,A,ie)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||WX(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),ne):O(t)}function ee(t){return t===47?(e.consume(t),o=``,te):O(t)}function te(t){if(t===62){let n=o.toLowerCase();return TZ.includes(n)?(e.consume(t),re):O(t)}return BX(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),te):O(t)}function N(t){return t===93?(e.consume(t),ne):O(t)}function ne(t){return t===62?(e.consume(t),re):t===45&&i===2?(e.consume(t),ne):O(t)}function re(t){return t===null||WX(t)?(e.exit(`htmlFlowData`),ie(t)):(e.consume(t),re)}function ie(n){return e.exit(`htmlFlow`),t(n)}}function lCe(e,t,n){let r=this;return i;function i(t){return WX(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function uCe(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(fZ,t,n)}}const dCe={name:`htmlText`,tokenize:fCe};function fCe(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):BX(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):BX(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):WX(t)?(o=d,ee(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):WX(t)?(o=h,ee(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):WX(t)?(o=v,ee(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):WX(t)?(o=y,ee(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return BX(t)?(e.consume(t),S):n(t)}function S(t){return t===45||VX(t)?(e.consume(t),S):C(t)}function C(t){return WX(t)?(o=C,ee(t)):KX(t)?(e.consume(t),C):M(t)}function w(t){return t===45||VX(t)?(e.consume(t),w):t===47||t===62||GX(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||BX(t)?(e.consume(t),E):WX(t)?(o=T,ee(t)):KX(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||VX(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):WX(t)?(o=D,ee(t)):KX(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):WX(t)?(o=O,ee(t)):KX(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):WX(t)?(o=k,ee(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||GX(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||GX(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ee(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),te}function te(t){return KX(t)?JX(e,N,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):N(t)}function N(t){return e.enter(`htmlTextData`),o(t)}}const EZ={name:`labelEnd`,resolveAll:gCe,resolveTo:_Ce,tokenize:vCe},pCe={tokenize:yCe},mCe={tokenize:bCe},hCe={tokenize:xCe};function gCe(e){let t=-1,n=[];for(;++t=3&&(a===null||WX(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),KX(t)?JX(e,s,`whitespace`)(t):s(t))}}const kZ={continuation:{tokenize:jCe},exit:NCe,name:`list`,tokenize:ACe},OCe={partial:!0,tokenize:PCe},kCe={partial:!0,tokenize:MCe};function ACe(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:UX(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(OZ,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return UX(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(fZ,r.interrupt?n:u,e.attempt(OCe,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return KX(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function jCe(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(fZ,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,JX(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!KX(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(kCe,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,JX(e,e.attempt(kZ,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function MCe(e,t,n){let r=this;return JX(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function NCe(e){e.exit(this.containerState.type)}function PCe(e,t,n){let r=this;return JX(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!KX(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}const AZ={name:`setextUnderline`,resolveTo:FCe,tokenize:ICe};function FCe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function ICe(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),KX(t)?JX(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||WX(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}const LCe={tokenize:RCe};function RCe(e){let t=this,n=e.attempt(fZ,r,e.attempt(this.parser.constructs.flowInitial,i,JX(e,e.attempt(this.parser.constructs.flow,i,e.attempt(USe,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}const zCe={resolveAll:MZ()},BCe=jZ(`string`),VCe=jZ(`text`);function jZ(e){return{resolveAll:MZ(e===`text`?HCe:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++iXCe,contentInitial:()=>WCe,disable:()=>ZCe,document:()=>UCe,flow:()=>KCe,flowInitial:()=>GCe,insideSpan:()=>YCe,string:()=>qCe,text:()=>JCe});const UCe={42:kZ,43:kZ,45:kZ,48:kZ,49:kZ,50:kZ,51:kZ,52:kZ,53:kZ,54:kZ,55:kZ,56:kZ,57:kZ,62:pZ},WCe={91:JSe},GCe={[-2]:vZ,[-1]:vZ,32:vZ},KCe={35:eCe,42:OZ,45:[AZ,OZ],60:iCe,61:AZ,95:OZ,96:_Z,126:_Z},qCe={38:hZ,92:mZ},JCe={[-5]:DZ,[-4]:DZ,[-3]:DZ,33:SCe,38:hZ,42:uZ,60:[wSe,dCe],91:wCe,92:[QSe,mZ],93:EZ,95:uZ,96:LSe},YCe={null:[uZ,zCe]},XCe={null:[42,95]},ZCe={null:[]};function QCe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=nZ(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=lZ(a,l.events,l),l.events):[]}function f(e,t){return ewe(p(e),t)}function p(e){return $Ce(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function ewe(e,t){let n=-1,r=[],i;for(;++n0){let e=a.tokenStack[a.tokenStack.length-1],t=e[1]||HZ;t.call(a,void 0,e[0])}for(r.position={start:BZ(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:BZ(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function fCe(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pCe(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function WZ(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function mCe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WZ(e,t);let i={src:oZ(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function hCe(e,t){let n={src:oZ(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function gCe(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function _Ce(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WZ(e,t);let i={href:oZ(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function vCe(e,t){let n={href:oZ(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yCe(e,t,n){let r=e.all(t),i=n?bCe(n):GZ(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s0){let e=a.tokenStack[a.tokenStack.length-1],t=e[1]||HZ;t.call(a,void 0,e[0])}for(r.position={start:BZ(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:BZ(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function gwe(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _we(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function WZ(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function vwe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WZ(e,t);let i={src:oZ(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function ywe(e,t){let n={src:oZ(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function bwe(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function xwe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return WZ(e,t);let i={href:oZ(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Swe(e,t){let n={href:oZ(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Cwe(e,t,n){let r=e.all(t),i=n?wwe(n):GZ(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s1}function xCe(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function TCe(e){let t=qZ(e),n=KZ(e);if(t&&n)return{start:t,end:n}}function ECe(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=qZ(t.children[1]),o=KZ(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function DCe(e,t,n){let r=n?n.children:void 0,i=r?r.indexOf(t):1,a=i===0?`th`:`td`,o=n&&n.type===`table`?n.align:void 0,s=o?o.length:t.children.length,c=-1,l=[];for(;++c0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(YZ(t.slice(i),i>0,!1)),a.join(``)}function YZ(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===9||t===32;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===9||t===32;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function ACe(e,t){let n={type:`text`,value:kCe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function jCe(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const MCe={blockquote:oCe,break:sCe,code:cCe,delete:lCe,emphasis:uCe,footnoteReference:dCe,heading:fCe,html:pCe,imageReference:mCe,image:hCe,inlineCode:gCe,linkReference:_Ce,link:vCe,listItem:yCe,list:xCe,paragraph:SCe,root:CCe,strong:wCe,table:ECe,tableCell:OCe,tableRow:DCe,text:ACe,thematicBreak:jCe,toml:XZ,yaml:XZ,definition:XZ,footnoteDefinition:XZ};function XZ(){}const ZZ=typeof self==`object`?self:globalThis,NCe=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new ZZ[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new ZZ[a](o),i)};return r},QZ=e=>NCe(new Map,e)(0),{toString:PCe}={},{keys:FCe}=Object,$Z=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=PCe.call(e).slice(8,-1);switch(n){case`Array`:return[1,``];case`Object`:return[2,``];case`Date`:return[3,``];case`RegExp`:return[4,``];case`Map`:return[5,``];case`Set`:return[6,``];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},eQ=([e,t])=>e===0&&(t===`function`||t===`symbol`),ICe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=$Z(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of FCe(r))(e||!eQ($Z(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(eQ($Z(n))||eQ($Z(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!eQ($Z(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},tQ=(e,{json:t,lossy:n}={})=>{let r=[];return ICe(!(t||n),!!t,new Map,r)(e),r};var nQ=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?QZ(tQ(e,t)):structuredClone(e):(e,t)=>QZ(tQ(e,t));function LCe(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function RCe(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function zCe(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||LCe,r=e.options.footnoteBackLabel||RCe,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...nQ(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` +`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function wwe(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r1}function Twe(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function kwe(e){let t=qZ(e),n=KZ(e);if(t&&n)return{start:t,end:n}}function Awe(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=qZ(t.children[1]),o=KZ(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function jwe(e,t,n){let r=n?n.children:void 0,i=r?r.indexOf(t):1,a=i===0?`th`:`td`,o=n&&n.type===`table`?n.align:void 0,s=o?o.length:t.children.length,c=-1,l=[];for(;++c0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(YZ(t.slice(i),i>0,!1)),a.join(``)}function YZ(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===9||t===32;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===9||t===32;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Pwe(e,t){let n={type:`text`,value:Nwe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Fwe(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Iwe={blockquote:uwe,break:dwe,code:fwe,delete:pwe,emphasis:mwe,footnoteReference:hwe,heading:gwe,html:_we,imageReference:vwe,image:ywe,inlineCode:bwe,linkReference:xwe,link:Swe,listItem:Cwe,list:Twe,paragraph:Ewe,root:Dwe,strong:Owe,table:Awe,tableCell:Mwe,tableRow:jwe,text:Pwe,thematicBreak:Fwe,toml:XZ,yaml:XZ,definition:XZ,footnoteDefinition:XZ};function XZ(){}const ZZ=typeof self==`object`?self:globalThis,Lwe=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new ZZ[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new ZZ[a](o),i)};return r},QZ=e=>Lwe(new Map,e)(0),{toString:Rwe}={},{keys:zwe}=Object,$Z=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Rwe.call(e).slice(8,-1);switch(n){case`Array`:return[1,``];case`Object`:return[2,``];case`Date`:return[3,``];case`RegExp`:return[4,``];case`Map`:return[5,``];case`Set`:return[6,``];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},eQ=([e,t])=>e===0&&(t===`function`||t===`symbol`),Bwe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=$Z(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of zwe(r))(e||!eQ($Z(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(eQ($Z(n))||eQ($Z(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!eQ($Z(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},tQ=(e,{json:t,lossy:n}={})=>{let r=[];return Bwe(!(t||n),!!t,new Map,r)(e),r};var nQ=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?QZ(tQ(e,t)):structuredClone(e):(e,t)=>QZ(tQ(e,t));function Vwe(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Hwe(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Uwe(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Vwe,r=e.options.footnoteBackLabel||Hwe,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...nQ(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:` -`}]}}const rQ={}.hasOwnProperty,BCe={};function VCe(e,t){let n=t||BCe,r=new Map,i=new Map,a=new Map,o={...MCe,...n.handlers},s={all:l,applyData:UCe,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:c,options:n,patch:HCe,wrap:GCe};return uK(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s;function c(e,t){let n=e.type,r=s.handlers[n];if(rQ.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=nQ(n);return r.children=s.all(e),r}return nQ(e)}let i=s.options.unknownHandler||WCe;return i(s,e,t)}function l(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r0&&n.push({type:`text`,value:` -`}),n}function iQ(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function aQ(e,t){let n=VCe(e,t),r=n.one(e,void 0),i=zCe(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` -`},i)),a}function oQ(e,t){return e&&`run`in e?async function(n,r){let i=aQ(n,{file:r,...t});await e.run(i,r)}:function(n,r){return aQ(n,{file:r,...e||t})}}function sQ(e){if(e)throw e}var KCe=s(((exports,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`)if(n.call(e,t)){if(a)return a(e,t).value}else return;return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});ft.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var lQ=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=o?o.line:void 0,this.name=FZ(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual,this.expected,this.note,this.url}};lQ.prototype.file=``,lQ.prototype.name=``,lQ.prototype.reason=``,lQ.prototype.message=``,lQ.prototype.stack=``,lQ.prototype.column=void 0,lQ.prototype.line=void 0,lQ.prototype.ancestors=void 0,lQ.prototype.cause=void 0,lQ.prototype.fatal=void 0,lQ.prototype.place=void 0,lQ.prototype.ruleId=void 0,lQ.prototype.source=void 0;const uQ={basename:YCe,dirname:XCe,extname:ZCe,join:QCe,sep:`/`};function YCe(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);dQ(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function XCe(e){if(dQ(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function ZCe(e){dQ(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function QCe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function ewe(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function dQ(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}const twe={cwd:nwe};function nwe(){return`/`}function fQ(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function rwe(e){if(typeof e==`string`)e=new URL(e);else if(!fQ(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return iwe(e)}function iwe(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n0){let[r,...a]=t,o=n[i][1];cQ(o)&&cQ(r)&&(r=(0,_Q.default)(!0,o,r)),n[i]=[e,r,...a]}}}};const vQ=new lwe().freeze();function yQ(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function bQ(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function xQ(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function SQ(e){if(!cQ(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function CQ(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function wQ(e){return uwe(e)?e:new awe(e)}function uwe(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function dwe(e){return typeof e==`string`||fwe(e)}function fwe(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}const TQ=new Map,pwe=/```(.{2,})\s/g;function mwe(e){let t=e.matchAll(pwe),n=new Set;n.add(`python`);for(let e of t)e[1]&&n.add(e[1]);return[...n]}async function hwe(e){let t={themes:{light:`github-light`,dark:`github-dark`},langs:e,defaultLanguage:e[0]||`python`};return vQ().use(UZ).use(XX).use(oQ).use(RX).use(fve,t).use(zX)}function gwe(e){let t=[...e].sort().join(`,`);if(!TQ.has(t)){let n=hwe(e);TQ.set(t,n)}return TQ.get(t)}function _we(){let e=vQ().use(UZ).use(XX).use(oQ).use(RX).use(zX);return{process:async t=>{try{if(!/`{3,}/.test(t))return e.processSync(t).toString();let n=mwe(t),r=new Set(n);r.add(`python`);let i=Array.from(r),a=await gwe(i),o=await a.process(t);return o.toString()}catch(n){return console.warn(`Failed to process markdown with syntax highlighting, falling back to basic processing:`,n),e.processSync(t).toString()}},processSync:t=>e.processSync(t).toString()}}const vwe=[`innerHTML`];var ywe=R({__name:`MarkdownRenderer`,props:{content:{},class:{}},setup(e){let t=e,n=F(``),{process:r,processSync:i}=_we();async function a(){if(!t.content){n.value=``;return}try{n.value=await r(t.content)}catch(e){console.warn(`Failed to process markdown with syntax highlighting, using fallback:`,e),n.value=i(t.content)}}return Ba(()=>t.content,a,{immediate:!0}),di(()=>{a()}),(e,r)=>(z(),B(`div`,{class:Te([t.class,`markdown-content`]),innerHTML:n.value},null,10,vwe))}}),bwe=TM(ywe,[[`__scopeId`,`data-v-b8e3947c`]]);const xwe={"z-1":``,"flex-1":``},Swe={"text-lg":``,"font-normal":``,class:`menu-icon-item-title`,transition:`all ease-in-out duration-400`},Cwe={text:`sm neutral-500 dark:neutral-400`,class:`menu-icon-item-description`,transition:`all ease-in-out duration-400`};var wwe=R({__name:`IconItem`,props:{title:{},description:{},icon:{},iconTemplate:{type:Boolean},to:{}},setup(e){return(e,t)=>{let n=xi(`RouterLink`);return z(),Oo(n,{box:`border`,flex:`~ row`,bg:`neutral-50 dark:neutral-900`,border:`neutral-100 dark:neutral-800/25 hover:primary-500/30 dark:hover:primary-400/30 solid 2`,"drop-shadow":`none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none`,class:`menu-icon-item`,transition:`all ease-in-out duration-400`,relative:``,"w-full":``,"items-center":``,"overflow-hidden":``,"rounded-lg":``,"p-5":``,"text-left":``,cursor:`pointer`,to:e.to},{default:L(()=>[V(`div`,xwe,[V(`div`,Swe,Pe(e.title),1),V(`div`,Cwe,[V(`span`,null,Pe(e.description),1)])]),typeof e.icon==`string`?(z(),B(`div`,{key:0,class:Te([`menu-icon-item-icon`,[e.icon]]),transition:`all ease-in-out duration-400`,absolute:``,"right-0":``,"size-24":``,"translate-y-4":``,text:`neutral-400/50 dark:neutral-600/50`},null,2)):Lo(``,!0),e.iconTemplate?ki(e.$slots,`icon`,{key:1},void 0,!0):Lo(``,!0)]),_:3},8,[`to`])}}}),Twe=TM(wwe,[[`__scopeId`,`data-v-d08788bb`]]);const Ewe={flex:`~ col`,bg:`neutral-50 dark:neutral-800`,border:`neutral-100 dark:neutral-800/25 hover:primary-500/30 dark:hover:primary-400/30 solid 2`,"drop-shadow":`none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none`,class:`menu-icon-status-item`,transition:`all ease-in-out duration-400`,"w-full":``,"cursor-pointer":``,"of-hidden":``,"rounded-xl":``},Dwe={"z-1":``,"flex-1":``},Owe={"text-lg":``,"font-normal":``,class:`menu-icon-status-item-title`,transition:`all ease-in-out duration-400`},kwe={text:`sm neutral-500 dark:neutral-400`,class:`menu-icon-status-item-description`,transition:`all ease-in-out duration-400`},Awe=[`src`],jwe={"p-2":``},Mwe={key:0,"size-4":``,bg:`green-500`,"rounded-full":``,shadow:`lg`},Nwe={key:1,"size-4":``,border:`2 neutral-200 dark:neutral-700`,"rounded-full":``,bg:`white dark:neutral-900`};var Pwe=R({__name:`IconStatusItem`,props:{title:{},description:{},icon:{},iconColor:{},iconImage:{},to:{},configured:{type:Boolean}},setup(e){let t=e;return(e,n)=>{let r=xi(`RouterLink`);return z(),B(`div`,Ewe,[H(r,{flex:`~ row`,class:`menu-icon-status-item-link`,bg:`white dark:neutral-900`,transition:`all ease-in-out duration-400`,relative:``,"h-full":``,"w-full":``,"items-center":``,"overflow-hidden":``,"rounded-lg":``,"p-5":``,"text-left":``,to:t.to},{default:L(()=>[V(`div`,Dwe,[V(`div`,Owe,Pe(t.title),1),V(`div`,kwe,[V(`span`,null,Pe(t.description||``),1)])]),t.icon?(z(),B(`div`,{key:0,class:Te([`menu-icon-status-item-icon`,t.icon]),transition:`all ease-in-out duration-400`,absolute:``,"right-0":``,"size-16":``,"translate-y-2":``,text:`neutral-400/50 dark:neutral-600/50`,"grayscale-100":``},null,2)):Lo(``,!0),t.iconColor?(z(),B(`div`,{key:1,class:Te([`menu-icon-status-item-icon-color`,[t.iconColor]]),transition:`all ease-in-out duration-400`,absolute:``,"right-0":``,"size-16":``,"translate-y-2":``,text:`neutral-400/50 dark:neutral-600/50`,"grayscale-100":``},null,2)):Lo(``,!0),t.iconImage?(z(),B(`img`,{key:2,src:t.iconImage,class:`menu-icon-status-item-icon-image`,transition:`all ease-in-out duration-400`,absolute:``,"right-0":``,"size-16":``,"translate-y-2":``,"grayscale-100":``},null,8,Awe)):Lo(``,!0)]),_:1},8,[`to`]),V(`div`,jwe,[t.configured?(z(),B(`div`,Mwe)):(z(),B(`div`,Nwe))])])}}}),Fwe=TM(Pwe,[[`__scopeId`,`data-v-c70e1337`]]);const Iwe=[`checked`,`name`,`value`],Lwe={class:`relative mr-3 mt-0.5 flex-shrink-0`},Rwe={class:`w-full flex flex-col gap-2`},zwe={class:`flex items-center`},Bwe={key:0,class:`relative`},Vwe=[`title`],Hwe={key:1,class:`mt-2`};var Uwe=R({__name:`RadioCardDetail`,props:Yi({id:{},name:{},value:{},title:{},description:{},deprecated:{type:Boolean,default:!1},showExpandCollapse:{type:Boolean,default:!0},expandCollapseThreshold:{default:100},customInputValue:{default:``},customInputPlaceholder:{default:``},showCustomInput:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Wa(e,`modelValue`),n=F(!1);function r(){n.value=!n.value}return(e,i)=>(z(),B(`label`,{key:e.id,class:Te([`form_radio-card-detail relative flex cursor-pointer items-start rounded-xl p-3 pr-[20px]`,[t.value===e.value?`bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`:`bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`,t.value===e.value?`form_radio-card-detail-active`:``,e.deprecated?`opacity-60`:``]]),transition:`all duration-200 ease-in-out`,border:`2 solid`},[cr(V(`input`,{"onUpdate:modelValue":i[0]||=e=>t.value=e,checked:t.value===e.value,type:`radio`,name:e.name,value:e.value,class:`absolute opacity-0`},null,8,Iwe),[[Ic,t.value]]),V(`div`,Lwe,[V(`div`,{class:Te([`size-5 border-2 rounded-full transition-colors duration-200`,[t.value===e.value?`border-primary-500 dark:border-primary-400`:`border-neutral-300 dark:border-neutral-600`]])},[V(`div`,{class:Te([`absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2`,[t.value===e.value?`opacity-100 bg-primary-500 dark:bg-primary-400`:`opacity-0`]])},null,2)],2)]),V(`div`,Rwe,[V(`div`,zwe,[V(`span`,{class:Te([`line-clamp-1 font-normal`,[t.value===e.value?`text-neutral-700 dark:text-neutral-300`:`text-neutral-700 dark:text-neutral-400`]])},Pe(e.title),3)]),e.description?(z(),B(`div`,Bwe,[H(I(qk),null,{default:L(()=>[!n.value||!e.showExpandCollapse?(z(),B(`div`,{key:0,class:Te([`line-clamp-2 cursor-pointer text-xs`,[t.value===e.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]]),title:e.description,onClick:Wc(r,[`prevent`])},Pe(e.description),11,Vwe)):(z(),B(`div`,{key:1,class:Te([`cursor-pointer text-xs`,[t.value===e.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]]),onClick:Wc(r,[`prevent`])},Pe(e.description),3))]),_:1}),e.showExpandCollapse&&e.description.length>e.expandCollapseThreshold?(z(),B(`button`,{key:0,class:`mt-0.5 inline-flex items-center text-xs text-primary-500 dark:text-primary-600`,onClick:Wc(r,[`prevent`])},[V(`span`,null,Pe(n.value?`Show less`:`Show more`),1),V(`div`,{class:Te([{"rotate-180":n.value},`transition-transform duration-200`])},[...i[2]||=[V(`div`,{"i-solar:alt-arrow-down-linear":``,"ml-0.5":``,"text-xs":``},null,-1)]],2)])):Lo(``,!0)])):Lo(``,!0),e.showCustomInput&&t.value===e.value?(z(),B(`div`,Hwe,[H(I(CM),{modelValue:t.value,"onUpdate:modelValue":i[1]||=e=>t.value=e,type:`text`,class:`w-full border border-neutral-300 rounded bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900`,placeholder:e.customInputPlaceholder},null,8,[`modelValue`,`placeholder`])])):Lo(``,!0)])],2))}}),EQ=TM(Uwe,[[`__scopeId`,`data-v-fb6236db`]]);const Wwe={class:`flex items-center gap-1.5 font-medium`},Gwe={key:0,class:`px-1 text-sm`};var Kwe=R({__name:`Alert`,props:{type:{}},setup(e){let t=e,n=Wi(),r=U(()=>{switch(t.type){case`error`:return`border-solid border-2 border-red-200 bg-red-50 dark:border-red-800/30 dark:bg-red-900/20`;case`warning`:return`border-solid border-2 border-amber-200 bg-amber-50 dark:border-amber-800/30 dark:bg-amber-900/20`;case`success`:return`border-solid border-2 border-green-200 bg-green-50 dark:border-green-800/30 text-green-700 dark:bg-green-900/30 dark:text-green-300`;case`info`:return`border-solid border-2 border-blue-200 bg-blue-50 dark:border-blue-800/30 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300`;case`loading`:return`border-solid border-2 border-blue-200 bg-blue-50 dark:border-blue-800/30 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300`}return``}),i=U(()=>{switch(t.type){case`error`:return`i-solar:close-circle-bold-duotone text-red-500 dark:text-red-400`;case`warning`:return`i-solar:danger-circle-bold-duotone text-amber-500 dark:text-amber-400`;case`success`:return`i-solar:check-circle-bold-duotone text-green-500 dark:text-green-400`;case`info`:return`i-solar:info-circle-bold-duotone text-blue-500 dark:text-blue-400`;case`loading`:return`i-svg-spinners:3-dots-fade text-blue-500 dark:text-blue-400`}return``}),a=U(()=>{switch(t.type){case`error`:return`text-red-500 dark:text-red-400`;case`warning`:return`text-amber-500 dark:text-amber-400`;case`success`:return`text-green-500 dark:text-green-400`;case`info`:return`text-blue-500 dark:text-blue-400`;case`loading`:return`text-blue-500 dark:text-blue-400`}return``});return(e,t)=>(z(),B(`div`,{class:Te([`flex flex-col gap-3 rounded-xl p-2`,r.value])},[V(`div`,Wwe,[V(`div`,{class:Te([`text-2xl`,i.value])},null,2),V(`div`,{class:Te(a.value)},[ki(e.$slots,`title`)],2)]),I(n).content?(z(),B(`div`,Gwe,[ki(e.$slots,`content`)])):Lo(``,!0)],2))}}),DQ=Kwe;const qwe={class:`radio-card-detail-many-select`},Jwe={key:0,class:`relative`,"inline-flex":`~`,"w-full":``,"items-center":``},Ywe=[`placeholder`],Xwe={class:`mt-4 space-y-2`},Zwe={key:0,class:`text-sm text-neutral-500 dark:text-neutral-400`},Qwe={class:`relative`};var $we=R({__name:`RadioCardManySelect`,props:Yi({items:{},searchable:{type:Boolean,default:!0},searchPlaceholder:{default:`Search...`},searchNoResultsTitle:{default:`No results found`},searchNoResultsDescription:{default:`Try a different search term`},searchResultsText:{default:`{count} of {total} results`},customInputPlaceholder:{default:`Enter custom value`},expandButtonText:{default:`Show more`},collapseButtonText:{default:`Show less`},showMore:{type:Boolean,default:!0},listClass:{default:``}},{modelValue:{required:!0},modelModifiers:{},searchQuery:{},searchQueryModifiers:{}}),emits:Yi([`update:customValue`],[`update:modelValue`,`update:searchQuery`]),setup(e,{emit:t}){let n=e,r=t,i=Wa(e,`modelValue`),a=Wa(e,`searchQuery`),o=F(!1),s=F(``),c=U(()=>{if(!a.value)return n.items;let e=a.value.toLowerCase();return n.items.filter(t=>t.name.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))});function l(e){s.value=e,r(`update:customValue`,e)}return(e,t)=>(z(),B(`div`,qwe,[e.searchable?(z(),B(`div`,Jwe,[t[4]||=V(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[V(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),cr(V(`input`,{"onUpdate:modelValue":t[0]||=e=>a.value=e,type:`search`,class:`w-full rounded-xl p-2.5 pl-10 text-sm outline-none`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,bg:`white dark:neutral-900`,placeholder:e.searchPlaceholder},null,8,Ywe),[[Nc,a.value]])])):Lo(``,!0),V(`div`,Xwe,[a.value?(z(),B(`div`,Zwe,Pe(e.searchResultsText.replace(`{count}`,c.value.length.toString()).replace(`{total}`,e.items.length.toString())),1)):Lo(``,!0),a.value&&c.value.length===0?(z(),Oo(DQ,{key:1,type:`warning`},{title:L(()=>[Fo(Pe(e.searchNoResultsTitle),1)]),content:L(()=>[Fo(Pe(e.searchNoResultsDescription.replace(`{query}`,a.value)),1)]),_:1})):Lo(``,!0),V(`div`,Qwe,[V(`div`,{class:Te([`grid auto-cols-[350px] grid-flow-col gap-4 overflow-x-auto pb-4 scrollbar-none`,[o.value?`grid-cols-1 md:grid-cols-2 grid-flow-row auto-cols-auto`:``,...n.listClass?typeof n.listClass==`string`?[n.listClass]:n.listClass:[`max-h-[calc(100dvh-7lh)]`]]]),transition:`all duration-200 ease-in-out`,style:{"scroll-snap-type":`x mandatory`}},[(z(!0),B(vo,null,Di(c.value,n=>(z(),Oo(EQ,{id:n.id,key:n.id,modelValue:i.value,"onUpdate:modelValue":t[1]||=e=>i.value=e,value:n.id,title:n.name,description:n.description,deprecated:n.deprecated,"show-expand-collapse":e.showMore,"expand-collapse-threshold":100,"show-custom-input":n.customizable,"custom-input-value":s.value,"custom-input-placeholder":e.customInputPlaceholder,name:`radio-card-detail-many-select`,class:`scroll-snap-align-start`,"onUpdate:customInputValue":t[2]||=e=>l(e)},null,8,[`id`,`modelValue`,`value`,`title`,`description`,`deprecated`,`show-expand-collapse`,`show-custom-input`,`custom-input-value`,`custom-input-placeholder`]))),128))],2),V(`div`,{bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,class:Te([o.value?`w-full`:`mt-4 w-full rounded-lg`])},[V(`button`,{"w-full":``,flex:``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-lg":``,"py-2":``,transition:`all duration-200 ease-in-out`,class:Te([o.value?`bg-primary-500 hover:bg-primary-600 text-white`:`bg-white dark:bg-neutral-900 hover:bg-neutral-100 dark:hover:bg-neutral-800`]),onClick:t[3]||=e=>o.value=!o.value},[V(`span`,null,Pe(o.value?e.collapseButtonText:e.expandButtonText),1),V(`div`,{class:Te([o.value?`rotate-180`:``,`text-lg`]),"i-solar:alt-arrow-down-linear":``,transition:`transform duration-200 ease-in-out`},null,2)],2)],2)])])]))}}),OQ=TM($we,[[`__scopeId`,`data-v-5c1e25d6`]]);const eTe=[`checked`,`name`,`value`],tTe={flex:`~ col`,"min-h-16":``,"w-full":``,"items-start":``,"justify-center":``,"pb-2":``,"pl-5":``,"pr-4":``,"pt-2":``};var nTe=R({__name:`RadioCardSimple`,props:Yi({id:{},name:{},value:{},title:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Wa(e,`modelValue`);return(e,n)=>(z(),B(`label`,{key:e.id,border:`2px solid`,class:Te([`form_radio-card-simple relative`,[t.value===e.value?`bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`:`bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`,t.value===e.value?`form_radio-card-simple-active`:``]]),transition:`all duration-200 ease-in-out`,flex:`~ col`,block:``,"min-w-50":``,"w-fit":``,"cursor-pointer":``,"items-start":``,"rounded-xl":``,"p-4":``,"text-left":``},[cr(V(`input`,{"onUpdate:modelValue":n[0]||=e=>t.value=e,checked:t.value===e.value,type:`radio`,name:e.name,value:e.value,class:`absolute opacity-0 [&:checked+div]:border-primary-500 [&:checked+div_.radio-dot]:opacity-100 dark:[&:checked+div]:border-primary-400`},null,8,eTe),[[Ic,t.value]]),n[1]||=V(`div`,{class:`radio-circle absolute left-2 top-2 size-5 rounded-full`,border:`2 solid neutral-300 dark:neutral-600`,transition:`all duration-200 ease-in-out`},[V(`div`,{class:`radio-dot absolute left-1/2 top-1/2 size-3 rounded-full opacity-0 -translate-x-1/2 -translate-y-1/2`,transition:`all duration-200 ease-in-out`,bg:`primary-500 dark:primary-400`})],-1),V(`div`,tTe,[V(`span`,{class:Te([`radio-item-name font-normal`,[t.value===e.value?`text-neutral-700 dark:text-neutral-300`:`text-neutral-500 dark:text-neutral-500`]]),text:`md`,transition:`all duration-200 ease-in-out`},Pe(e.title),3),e.description?(z(),B(`span`,{key:0,class:Te([`radio-item-description`,[t.value===e.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-400 dark:text-neutral-600`]]),transition:`all duration-200 ease-in-out`},Pe(e.description),3)):Lo(``,!0)]),n[2]||=V(`div`,{class:`bg-dotted-neutral-200/80 dark:bg-dotted-neutral-700/50 [input:checked~&]:bg-dotted-primary-300/50 dark:[input:checked~&]:bg-dotted-primary-200/20`,absolute:``,"inset-0":``,"z--1":``,style:{"background-size":`10px 10px`,"mask-image":`linear-gradient(165deg, white 30%, transparent 50%)`}},null,-1)],2))}}),rTe=TM(nTe,[[`__scopeId`,`data-v-880ce73f`]]);const iTe={class:`p-3`},aTe={class:`flex items-start`},oTe=[`checked`,`name`,`value`],sTe={class:`relative mr-3 mt-0.5 flex-shrink-0`},cTe={key:0,class:`i-solar:pause-circle-bold-duotone text-xl text-neutral-400 dark:text-neutral-500`},lTe={key:1,class:`i-solar:play-circle-bold-duotone text-xl text-neutral-400 dark:text-neutral-500`},uTe={key:1,class:`mt-auto w-full flex items-center justify-center bg-neutral-50 py-3 text-xs text-neutral-400 italic dark:bg-neutral-800/50 dark:text-neutral-600`},dTe={class:`flex-1 cursor-pointer`},fTe={class:`flex items-center`},pTe={key:0,class:`mt-1 flex flex-wrap gap-1`},mTe={key:1,class:`mt-3`},hTe={relative:``},gTe={key:0,class:`h-16 px-3 pb-2`};var _Te=R({__name:`VoiceCard`,props:Yi({name:{},voice:{},currentlyPlayingId:{},customInputPlaceholder:{default:`Enter custom voice name`},showVisualizer:{type:Boolean,default:!0},audioStream:{default:null}},{"voice-id":{required:!1,default:``},"voice-idModifiers":{},"custom-voice-name":{required:!1,default:``},"custom-voice-nameModifiers":{}}),emits:Yi([`togglePlayback`],[`update:voice-id`,`update:custom-voice-name`]),setup(e,{emit:t}){let n=e,r=t,i=Wa(e,`voice-id`),a=Wa(e,`custom-voice-name`);function o(e){return e.previewURL||e.preview_audio_url}function s(e){let t=[];if(e.labels?.gender&&t.push(e.labels.gender),e.labels?.age&&t.push(e.labels.age),e.labels?.accent&&t.push(e.labels.accent),e.languages&&e.languages.length>0){let n=e.languages.map(e=>e.name).join(`, `);t.push(n)}return t}function c(){r(`togglePlayback`,n.voice)}return(e,t)=>(z(),B(`label`,{border:`2px solid`,class:Te([`scroll-snap-align-start form_voice-card relative flex flex-col overflow-hidden rounded-xl`,[i.value===n.voice.id?`bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`:`bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`,i.value===n.voice.id?`form_voice-card-active`:``]]),transition:`all duration-200 ease-in-out`},[V(`div`,iTe,[V(`div`,aTe,[cr(V(`input`,{"onUpdate:modelValue":t[0]||=e=>i.value=e,checked:i.value===n.voice.id,type:`radio`,name:e.name,value:n.voice.id,class:`absolute cursor-pointer opacity-0`},null,8,oTe),[[Ic,i.value]]),V(`div`,sTe,[V(`div`,{class:Te([`size-5 border-2 rounded-full transition-colors duration-200`,[i.value===n.voice.id?`border-primary-500 dark:border-primary-400`:`border-neutral-300 dark:border-neutral-600`]])},[V(`div`,{class:Te([`absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2`,[i.value===n.voice.id?`opacity-100 bg-primary-500 dark:bg-primary-400`:`opacity-0`]])},null,2)],2)]),o(e.voice)?(z(),B(`button`,{key:0,absolute:``,"right-0":``,top:`0`,"z-3":``,class:Te([`translate-x-[-50%] translate-y-[50%]`,[e.currentlyPlayingId===e.voice.id?`text-white dark:text-white`:``]]),onClick:c},[e.currentlyPlayingId===e.voice.id?(z(),B(`div`,cTe)):(z(),B(`div`,lTe))],2)):(z(),B(`div`,uTe,` No preview available `)),V(`div`,dTe,[V(`div`,fTe,[V(`span`,{class:Te([`line-clamp-1 font-medium`,[i.value===e.voice.id?`text-neutral-700 dark:text-neutral-300`:`text-neutral-700 dark:text-neutral-400`]])},Pe(e.voice.name),3)]),s(e.voice).length>0?(z(),B(`div`,pTe,[(z(!0),B(vo,null,Di(s(e.voice),(t,n)=>(z(),B(`span`,{key:n,class:Te([`inline-flex items-center rounded-md px-1.5 py-0.5 text-xs`,[i.value===e.voice.id?`bg-primary-100 text-primary-700 dark:bg-primary-900/30 dark:text-primary-400`:`bg-neutral-100 text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300`]])},Pe(t),3))),128))])):Lo(``,!0),e.voice.customizable&&i.value===e.voice.id?(z(),B(`div`,mTe,[H(I(CM),{modelValue:a.value,"onUpdate:modelValue":t[1]||=e=>a.value=e,type:`text`,class:`w-full border border-neutral-300 rounded bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900`,placeholder:e.customInputPlaceholder},null,8,[`modelValue`,`placeholder`])])):Lo(``,!0),e.voice.description?(z(),B(`div`,{key:2,class:Te([`line-clamp-2 mt-1 text-xs`,[i.value===e.voice.id?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]])},Pe(e.voice.description),3)):Lo(``,!0)])])]),V(`div`,hTe,[H(I(qk),null,{default:L(()=>[e.showVisualizer&&e.currentlyPlayingId===e.voice.id&&e.audioStream?(z(),B(`div`,gTe,[H(I(jR),{stream:e.audioStream,bars:24,"min-freq":60,"max-freq":4e3},{default:L(({frequencies:t})=>[H(I(PR),{frequencies:t,"bars-class":i.value===e.voice.id?`bg-primary-500 dark:bg-primary-400`:`bg-neutral-400 dark:bg-neutral-600`},null,8,[`frequencies`,`bars-class`])]),_:1},8,[`stream`])])):Lo(``,!0)]),_:1})])],2))}}),vTe=TM(_Te,[[`__scopeId`,`data-v-fd4023c4`]]);const yTe={class:`voice-preview-player`},bTe={key:0,class:`relative`,"inline-flex":`~`,"w-full":``,"items-center":``},xTe=[`placeholder`],STe={class:`mt-4 space-y-2`},CTe={key:0,class:`text-sm text-neutral-500 dark:text-neutral-400`},wTe={class:`relative`};var TTe=R({__name:`VoiceCardManySelect`,props:Yi({voices:{},searchable:{type:Boolean,default:!0},searchPlaceholder:{default:`Search voices...`},searchNoResultsTitle:{default:`No voices found`},searchNoResultsDescription:{default:`Try a different search term`},searchResultsText:{default:`{count} of {total} voices`},customInputPlaceholder:{default:`Enter custom voice name`},expandButtonText:{default:`Show more`},collapseButtonText:{default:`Show less`},playButtonText:{default:`Play sample`},pauseButtonText:{default:`Pause`},showVisualizer:{type:Boolean,default:!0},listClass:{default:``}},{"search-query":{required:!1,default:``},"search-queryModifiers":{},"voice-id":{required:!1,default:``},"voice-idModifiers":{}}),emits:[`update:search-query`,`update:voice-id`],setup(e){let t=e,n=F(!1),r=F(),i=F(new Map),a=F(new Map),o=F(new Map),s=F(new Map),c=F(null);function l(){return c.value||=new(window.AudioContext||window.webkitAudioContext),c.value}let u=Wa(e,`search-query`),d=Wa(e,`voice-id`),f=U(()=>{if(!u.value)return t.voices;let e=u.value.toLowerCase();return t.voices.filter(t=>{let n=t.name.toLowerCase().includes(e),r=t.description&&t.description.toLowerCase().includes(e),i=t.tags&&t.tags.some(t=>t.toLowerCase().includes(e)),a=t.labels&&Object.values(t.labels).some(t=>typeof t==`string`&&t.toLowerCase().includes(e)),o=t.languages&&t.languages.some(t=>t.name.toLowerCase().includes(e)||t.code.toLowerCase().includes(e));return n||r||i||a||o})});function p(e){return e.previewURL||e.preview_audio_url}function m(e){let t=p(e);if(!t)return null;if(i.value.has(e.id))return i.value.get(e.id)||null;let n=new Audio(t);return n.crossOrigin=`anonymous`,n.preload=`auto`,n.addEventListener(`ended`,()=>{if(r.value===e.id){r.value=void 0;let t=a.value.get(e.id);t&&(t.getTracks().forEach(e=>e.stop()),a.value.delete(e.id))}}),i.value.set(e.id,n),n}function h(e,t){try{if(a.value.has(t))return a.value.get(t)||null;let n=l();if(s.value.has(t)){let e=s.value.get(t),r=n.createMediaStreamDestination();e.connect(r);let i=r.stream;return a.value.set(t,i),i}let r=n.createMediaElementSource(e);s.value.set(t,r),r.connect(n.destination);let i=n.createMediaStreamDestination();r.connect(i);let o=i.stream;return a.value.set(t,o),o}catch(e){return console.error(`Failed to create audio stream for visualizer:`,e),null}}function g(e){try{let n=p(e);if(!n)return;let o=m(e);if(!o)return;if(r.value===e.id){o.pause(),r.value=void 0;let t=a.value.get(e.id);t&&(t.getTracks().forEach(e=>e.stop()),a.value.delete(e.id));return}if(r.value){let e=i.value.get(r.value);e&&e.pause();let t=a.value.get(r.value);t&&(t.getTracks().forEach(e=>e.stop()),a.value.delete(r.value))}t.showVisualizer&&!a.value.has(e.id)&&h(o,e.id),o.currentTime=0,o.play().catch(e=>{console.error(`Failed to play audio:`,e)}),r.value=e.id}catch(e){console.error(e),r.value=void 0}}function _(){i.value.forEach(e=>{e.pause(),e.src=``}),i.value.clear(),a.value.forEach(e=>{e.getTracks().forEach(e=>e.stop())}),a.value.clear(),o.value.forEach(e=>{e.state!==`closed`&&e.close()}),o.value.clear(),s.value.clear(),r.value=void 0}Ba(u,()=>{if(r.value){let e=i.value.get(r.value);e&&e.pause();let t=a.value.get(r.value);t&&(t.getTracks().forEach(e=>e.stop()),a.value.delete(r.value)),r.value=void 0}}),mi(_);let v=F(``);return(e,i)=>(z(),B(`div`,yTe,[e.searchable?(z(),B(`div`,bTe,[i[4]||=V(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[V(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),cr(V(`input`,{"onUpdate:modelValue":i[0]||=e=>u.value=e,type:`search`,class:`w-full rounded-xl p-2.5 pl-10 text-sm outline-none`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,bg:`white dark:neutral-900`,placeholder:e.searchPlaceholder},null,8,xTe),[[Nc,u.value]])])):Lo(``,!0),V(`div`,STe,[u.value?(z(),B(`div`,CTe,Pe(e.searchResultsText.replace(`{count}`,f.value.length.toString()).replace(`{total}`,e.voices.length.toString())),1)):Lo(``,!0),u.value&&f.value.length===0?(z(),Oo(DQ,{key:1,type:`warning`},{title:L(()=>[Fo(Pe(e.searchNoResultsTitle),1)]),content:L(()=>[Fo(Pe(e.searchNoResultsDescription.replace(`{query}`,u.value)),1)]),_:1})):Lo(``,!0),V(`div`,wTe,[V(`div`,{class:Te([`grid auto-cols-[350px] grid-flow-col gap-4 overflow-x-auto scrollbar-none`,[n.value?`grid-cols-1 md:grid-cols-2 grid-flow-row auto-cols-auto`:``,...t.listClass?typeof t.listClass==`string`?[t.listClass]:t.listClass:[`max-h-[calc(100dvh-7lh)]`]]]),transition:`all duration-200 ease-in-out`,style:{"scroll-snap-type":`x mandatory`}},[(z(!0),B(vo,null,Di(f.value,t=>(z(),Oo(vTe,{key:t.id,"voice-id":d.value,"onUpdate:voiceId":i[1]||=e=>d.value=e,"custom-voice-name":v.value,"onUpdate:customVoiceName":i[2]||=e=>v.value=e,name:`voice`,voice:t,"currently-playing-id":r.value,"custom-input-placeholder":e.customInputPlaceholder,"show-visualizer":e.showVisualizer,"audio-stream":a.value.get(t.id),onTogglePlayback:g},null,8,[`voice-id`,`custom-voice-name`,`voice`,`currently-playing-id`,`custom-input-placeholder`,`show-visualizer`,`audio-stream`]))),128))],2),V(`div`,{bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,class:Te([n.value?`w-full`:`mt-4 w-full rounded-lg`])},[V(`button`,{"w-full":``,flex:``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-lg":``,"py-2":``,transition:`all duration-200 ease-in-out`,class:Te([n.value?`bg-primary-500 hover:bg-primary-600 text-white`:`bg-white dark:bg-neutral-900 hover:bg-neutral-100 dark:hover:bg-neutral-800`]),onClick:i[3]||=e=>n.value=!n.value},[V(`span`,null,Pe(n.value?e.collapseButtonText:e.expandButtonText),1),V(`div`,{class:Te([n.value?`rotate-180`:``,`text-lg`]),"i-solar:alt-arrow-down-linear":``,transition:`transform duration-200 ease-in-out`},null,2)],2)],2)])])]))}}),ETe=TM(TTe,[[`__scopeId`,`data-v-43a4b028`]]);const DTe=[`disabled`],OTe={class:`flex flex-row items-center justify-center gap-2`},kTe={key:0,class:`w-4`},ATe={key:0,class:`i-svg-spinners:ring-resize h-4 w-4`},jTe={key:0};var MTe=R({__name:`Button`,props:{toggled:{type:Boolean,default:!1},icon:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},variant:{default:`primary`},size:{default:`md`},theme:{default:`default`},block:{type:Boolean,default:!1}},setup(e){let t=e,n=U(()=>t.disabled||t.loading),r={primary:{default:{default:`bg-primary-500/15 hover:bg-primary-500/20 active:bg-primary-500/30 dark:bg-primary-700/30 dark:hover:bg-primary-700/40 dark:active:bg-primary-700/30 focus:ring-primary-300/60 dark:focus:ring-primary-600/30 border-2 border-solid border-primary-500/5 dark:border-primary-900/40 text-primary-950 dark:text-primary-100`}},secondary:{default:{default:`bg-neutral-100/55 hover:bg-neutral-400/20 active:bg-neutral-400/30 dark:bg-neutral-700/60 dark:hover:bg-neutral-700/80 dark:active:bg-neutral-700/60 focus:ring-neutral-300/30 dark:focus:ring-neutral-600/60 dark:focus:ring-neutral-600/30 border-2 border-solid border-neutral-300/30 dark:border-neutral-700/30 text-neutral-950 dark:text-neutral-100`}},"secondary-muted":{default:{default:`hover:bg-neutral-50/50 active:bg-neutral-50/90 hover:dark:bg-neutral-800/50 active:dark:bg-neutral-800/90 border-2 border-solid border-neutral-100/60 dark:border-neutral-800/30 focus:ring-neutral-300/30 dark:focus:ring-neutral-600/60 dark:focus:ring-neutral-600/30`,nonToggled:`bg-neutral-50/70 dark:bg-neutral-800/70 text-neutral-500 dark:text-neutral-400`,toggled:`bg-white/90 dark:bg-neutral-500/70 ring-neutral-300/30 dark:ring-neutral-600/60 ring-2 dark:ring-neutral-600/30 text-primary-500 dark:text-primary-100`}},danger:{default:{default:`bg-red-500/15 hover:bg-red-500/20 active:bg-red-500/30 dark:bg-red-700/30 dark:hover:bg-red-700/40 dark:active:bg-red-700/30 focus:ring-red-300/30 dark:focus:ring-red-600/60 dark:focus:ring-red-600/30 border-2 border-solid border-red-200/30 dark:border-red-900/30 text-red-950 dark:text-red-100`}}},i={sm:`px-3 py-1.5 text-xs`,md:`px-4 py-2 text-sm`,lg:`px-6 py-3 text-base`},a=U(()=>[`rounded-lg font-medium outline-none`,`transition-all duration-200 ease-in-out`,`disabled:cursor-not-allowed disabled:opacity-50`,`backdrop-blur-md`,t.block?`w-full`:``,i[t.size],r[t.variant][t.theme].default,t.toggled?r[t.variant][t.theme].toggled||``:r[t.variant][t.theme].nonToggled||``,{"opacity-50 cursor-not-allowed":n.value},`focus:ring-2`]);return(e,t)=>(z(),B(`button`,{disabled:n.value,class:Te(a.value)},[V(`div`,OTe,[H(I(Yde),{"from-class":`opacity-0 mr-0! w-0!`,"active-class":`transition-[width,margin] ease-in-out overflow-hidden transition-100`},{default:L(()=>[e.loading||e.icon?(z(),B(`div`,kTe,[e.loading?(z(),B(`div`,ATe)):e.icon?(z(),B(`div`,{key:1,class:Te([`h-4 w-4`,e.icon])},null,2)):Lo(``,!0)])):Lo(``,!0)]),_:1}),e.label?(z(),B(`span`,jTe,Pe(e.label),1)):ki(e.$slots,`default`,{key:1})])],10,DTe))}}),kQ=MTe;const NTe={class:`whitespace-pre-wrap break-all`};var PTe=R({__name:`ErrorContainer`,props:{title:{},error:{}},setup(e){return(e,t)=>(z(),Oo(DQ,{type:`error`},Oi({title:L(()=>[Fo(Pe(e.title),1)]),_:2},[e.error?{name:`content`,fn:L(()=>[V(`pre`,NTe,Pe(String(e.error)),1)]),key:`0`}:void 0]),1024))}}),FTe=PTe,ITe=R({__name:`Screen`,setup(e){let t=F(),n=tE(eE),{width:r,height:i}=cce(),a=fE(t,{immediate:!0,windowResize:!0,reset:!0}),o=U(()=>n.between(`sm`,`md`).value||n.smaller(`sm`).value),s=U(()=>n.between(`md`,`lg`).value),c=U(()=>n.greaterOrEqual(`lg`).value),l=U(()=>c.value?a.width.value:o.value||s.value?r.value-16:a.width.value),u=F(0);return Ba([r,i,t],()=>{let e=t.value?.parentElement?.getBoundingClientRect();c.value||o.value||s.value?u.value=e?.height||0:u.value=600}),Ba([a.width,a.height],()=>{c.value||o.value||s.value?u.value=a.height.value:u.value=600}),di(async()=>{t.value&&a.update()}),(e,n)=>(z(),B(`div`,{ref_key:`containerRef`,ref:t,"h-full":``,"w-full":``},[ki(e.$slots,`default`,{width:l.value,height:u.value})],512))}}),LTe=ITe,RTe=R({__name:`Skeleton`,props:{animation:{default:`pulse`}},setup(e){let t=e;return(e,n)=>(z(),B(`div`,{class:Te([`skeleton`,t.animation===`none`?``:`skeleton-${t.animation}`]),bg:`neutral-200 dark:neutral-800`,overflow:`hidden`},[ki(e.$slots,`default`,{},void 0,!0)],2))}}),zTe=TM(RTe,[[`__scopeId`,`data-v-fa4a54cc`]]),BTe=R({__name:`CursorFloating`,props:{intensity:{default:1.5}},setup(e){let t=e,n=F(null),r=F(``),i=F(`50% 50%`),a=F(`50% 50%`),o=F(.5);function s(e){if(!n.value)return;let s=n.value,c=s.getBoundingClientRect(),l=e.clientX-c.left,u=e.clientY-c.top,d=s.offsetWidth,f=s.offsetHeight,p=Math.abs(Math.floor(100/d*l)-100),m=Math.abs(Math.floor(100/f*u)-100),h=50+(p-50)/1.5,g=50+(m-50)/1.5,_=50+(p-50)/7,v=50+(m-50)/7,y=(h-50)/1.5*.2*t.intensity,b=(g-50)/2*-1*.2*t.intensity,x=50-p+(50-m),S=.5+Math.abs(x)*.008*t.intensity;r.value=`perspective(1200px) rotateX(${b}deg) rotateY(${y}deg) scale3d(${1+.015*t.intensity}, ${1+.015*t.intensity}, ${1+.015*t.intensity})`,i.value=`${h}% ${g}%`,a.value=`${_}% ${v}%`,o.value=S}function c(){r.value=`perspective(1200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`,i.value=`50% 50%`,a.value=`50% 50%`,o.value=.5}return di(()=>{r.value=`perspective(1200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`}),(e,t)=>(z(),B(`div`,{ref_key:`cardRef`,ref:n,class:`card-hover-effect`,style:be({transform:r.value,"--effect-intensity":e.intensity}),onMousemove:s,onMouseleave:c},[ki(e.$slots,`default`,{},void 0,!0)],36))}}),VTe=TM(BTe,[[`__scopeId`,`data-v-24a7a9d5`]]);(function(){var e;try{if(typeof document<`u`){var t=document.createElement(`style`);t.nonce=(e=document.head.querySelector(`meta[property=csp-nonce]`))?.content,t.appendChild(document.createTextNode(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32,.72,0,1);animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform, 100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform, 100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true]):after{content:"";position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:hover,[data-vaul-handle]:active{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover: hover) and (pointer: fine){[data-vaul-drawer]{-webkit-user-select:none;user-select:none}}@media (pointer: fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{0%{transform:translate3d(0,var(--initial-transform, 100%),0)}to{transform:translateZ(0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform, 100%),0)}}@keyframes slideFromTop{0%{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}to{transform:translateZ(0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}}@keyframes slideFromLeft{0%{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}to{transform:translateZ(0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}}@keyframes slideFromRight{0%{transform:translate3d(var(--initial-transform, 100%),0,0)}to{transform:translateZ(0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform, 100%),0,0)}}`)),document.head.appendChild(t)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();const HTe=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const UTe=e=>typeof e<`u`;function WTe(e){return JSON.parse(JSON.stringify(e))}function AQ(e,t,n,r={}){var i,a,o;let{clone:s=!1,passive:c=!1,eventName:l,deep:u=!1,defaultValue:d,shouldEmit:f}=r,p=Go(),m=n||p?.emit||(i=p?.$emit)?.bind(p)||(o=(a=p?.proxy)?.$emit)?.bind(p?.proxy),h=l;t||=`modelValue`,h||=`update:${t.toString()}`;let g=e=>s?typeof s==`function`?s(e):WTe(e):e,_=()=>UTe(e[t])?g(e[t]):d,v=e=>{f?f(e)&&m(h,e):m(h,e)};if(c){let n=_(),r=F(n),i=!1;return Ba(()=>e[t],e=>{i||(i=!0,r.value=g(e),Gn(()=>i=!1))}),Ba(r,n=>{!i&&(n!==e[t]||u)&&v(n)},{deep:u}),r}else return U({get(){return _()},set(e){v(e)}})}const[jQ,GTe]=Xk(`DrawerRoot`),MQ=new WeakMap;function NQ(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&MQ.set(e,r)}function KTe(e,t){if(!e||!(e instanceof HTMLElement))return;let n=MQ.get(e);n&&Object.entries(n).forEach(([t,n])=>{e.style[t]=n})}function PQ(e,t){let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?Number.parseFloat(i[1].split(`, `)[FQ(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?Number.parseFloat(i[1].split(`, `)[FQ(t)?5:4]):null)}function qTe(e){return 8*(Math.log(e+1)-2)}function FQ(e){switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}}function IQ(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function JTe(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}const LQ={DURATION:.5,EASE:[.32,.72,0,1]},RQ=.4,zQ=`vaul-dragging`;function YTe({activeSnapPoint:e,snapPoints:t,drawerRef:n,overlayRef:r,fadeFromIndex:i,onSnapPointChange:a,direction:o}){let s=F(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);function c(){s.value={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}di(()=>{typeof window<`u`&&window.addEventListener(`resize`,c)}),mi(()=>{typeof window<`u`&&window.removeEventListener(`resize`,c)});let l=U(()=>(t.value&&e.value===t.value[t.value.length-1])??null),u=U(()=>t.value&&t.value.length>0&&(i?.value||i?.value===0)&&!Number.isNaN(i?.value)&&t.value[i?.value??-1]===e.value||!t.value),d=U(()=>{var n;return(n=t.value)?.findIndex(t=>t===e.value)??null}),f=U(()=>{var e;return(e=t.value)?.map(e=>{let t=typeof e==`string`,n=0;if(t&&(n=Number.parseInt(e,10)),FQ(o.value)){let r=t?n:s.value?e*s.value.innerHeight:0;return s.value?o.value===`bottom`?s.value.innerHeight-r:-s.value.innerHeight+r:r}let r=t?n:s.value?e*s.value.innerWidth:0;return s.value?o.value===`right`?s.value.innerWidth-r:-s.value.innerWidth+r:r})??[]}),p=U(()=>{var e;return d.value===null?null:(e=f.value)?.[d.value]}),m=s=>{var c,l,u,d;let p=(c=f.value)?.findIndex(e=>e===s)??null;Gn(()=>{var e;a(p,f.value),NQ((e=n.value)?.$el,{transition:`transform ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,transform:FQ(o.value)?`translate3d(0, ${s}px, 0)`:`translate3d(${s}px, 0, 0)`})}),f.value&&p!==f.value.length-1&&p!==i?.value?NQ((l=r.value)?.$el,{transition:`opacity ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,opacity:`0`}):NQ((u=r.value)?.$el,{transition:`opacity ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,opacity:`1`}),e.value=p===null?null:(d=t.value)?.[p]??null};Ba([e,f,t],()=>{var n;if(e.value){let r=(n=t.value)?.findIndex(t=>t===e.value)??-1;f.value&&r!==-1&&typeof f.value[r]==`number`&&m(f.value[r])}},{immediate:!0});function h({draggedDistance:e,closeDrawer:n,velocity:a,dismissible:s}){var c,u,h;if(i.value===void 0)return;let g=o.value===`bottom`||o.value===`right`?(p.value??0)-e:(p.value??0)+e,_=d.value===i.value-1,v=d.value===0,y=e>0;if(_&&NQ((c=r.value)?.$el,{transition:`opacity ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`}),a>2&&!y){s?n():m(f.value[0]);return}if(a>2&&y&&f&&t.value){m(f.value[t.value.length-1]);return}let b=(u=f.value)?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-g)RQ&&Math.abs(e)0&&l){m(f.value[((h=t.value)?.length??0)-1]);return}if(v&&e<0&&s&&n(),d.value===null)return;m(f.value[d.value+e]);return}m(b)}function g({draggedDistance:e}){var t;if(p.value===null)return;let r=o.value===`bottom`||o.value===`right`?p.value-e:p.value+e;(o.value===`bottom`||o.value===`right`)&&rf.value[f.value.length-1]||NQ((t=n.value)?.$el,{transform:FQ(o.value)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}function _(e,n){if(!t.value||typeof d.value!=`number`||!f.value||i.value===void 0)return null;let r=d.value===i.value-1;if(d.value>=i.value&&n)return 0;if(r&&!n)return 1;if(!u.value&&!r)return null;let a=r?d.value+1:d.value-1,o=r?f.value[a]-f.value[a-1]:f.value[a+1]-f.value[a],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:l,shouldFade:u,getPercentageDragged:_,activeSnapPointIndex:d,onRelease:h,onDrag:g,snapPointsOffset:f}}function BQ(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}let VQ=null;function XTe(e){let{isOpen:t,modal:n,nested:r,hasBeenOpened:i,preventScrollRestoration:a,noBodyStyles:o}=e,s=F(typeof window<`u`?window.location.href:``),c=F(0);function l(){if(BQ()&&VQ===null&&t.value&&!o.value){VQ={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.value}px`,left:`${-e}px`,right:`0px`,height:`auto`}),setTimeout(()=>{requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.value>=t&&(document.body.style.top=`-${c.value+e}px`)})},300)}}function u(){if(BQ()&&VQ!==null&&!o.value){let e=-Number.parseInt(document.body.style.top,10),t=-Number.parseInt(document.body.style.left,10);Object.assign(document.body.style,VQ),window.requestAnimationFrame(()=>{if(a.value&&s.value!==window.location.href){s.value=window.location.href;return}window.scrollTo(t,e)}),VQ=null}}return di(()=>{function e(){c.value=window.scrollY}e(),window.addEventListener(`scroll`,e),hi(()=>{window.removeEventListener(`scroll`,e)})}),Ba([t,i,s],()=>{r.value||!i.value||(t.value?(window.matchMedia(`(display-mode: standalone)`).matches||l(),n.value||setTimeout(()=>{u()},500)):u())}),{restorePositionSetting:u}}function ZTe(e,t){return e&&e.value?e:t}function QTe(e){let{emitDrag:t,emitRelease:n,emitClose:r,emitOpenChange:i,open:a,dismissible:o,nested:s,modal:c,shouldScaleBackground:l,setBackgroundColorOnScale:u,scrollLockTimeout:d,closeThreshold:f,activeSnapPoint:p,fadeFromIndex:m,direction:h,noBodyStyles:g,handleOnly:_,preventScrollRestoration:v}=e,y=F(a.value??!1),b=F(!1),x=F(!1),S=F(!1),C=F(null),w=F(null),T=F(null),E=F(null),D=F(null),O=F(!1),k=F(null),A=F(0),j=F(!1);F(0);let M=F(null);F(0);let ee=U(()=>{var e;return(e=M.value)?.$el.getBoundingClientRect().height||0}),te=ZTe(e.snapPoints,F(void 0)),N=U(()=>{var e;return te&&((e=te.value)?.length??0)>0}),ne=F(null),{activeSnapPointIndex:re,onRelease:ie,snapPointsOffset:ae,onDrag:oe,shouldFade:se,getPercentageDragged:ce}=YTe({snapPoints:te,activeSnapPoint:p,drawerRef:M,fadeFromIndex:m,overlayRef:C,onSnapPointChange:le,direction:h});function le(e,t){te.value&&e===t.length-1&&(w.value=new Date)}XTe({isOpen:y,modal:c,nested:s,hasBeenOpened:b,noBodyStyles:g,preventScrollRestoration:v});function ue(){return(window.innerWidth-26)/window.innerWidth}function de(e,t){var n;if(!e)return!1;let r=e,i=(n=window.getSelection())?.toString(),a=M.value?PQ(M.value.$el,h.value):null,o=new Date;if(r.hasAttribute(`data-vaul-no-drag`)||r.closest(`[data-vaul-no-drag]`))return!1;if(h.value===`right`||h.value===`left`)return!0;if(w.value&&o.getTime()-w.value.getTime()<500)return!1;if(a!==null&&(h.value===`bottom`?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(D.value&&o.getTime()-D.value.getTime()r.clientHeight){if(r.scrollTop!==0)return D.value=new Date,!1;if(r.getAttribute(`role`)===`dialog`)return!0}r=r.parentNode}return!0}function fe(e){!o.value&&!te.value||M.value&&!M.value.$el.contains(e.target)||(x.value=!0,T.value=new Date,e.target.setPointerCapture(e.pointerId),A.value=FQ(h.value)?e.clientY:e.clientX)}function pe(e){var n,r,i,a,s,c;if(M.value&&x.value){let u=h.value===`bottom`||h.value===`right`?1:-1,d=(A.value-(FQ(h.value)?e.clientY:e.clientX))*u,f=d>0,p=te.value&&!o.value&&!f;if(p&&re.value===0)return;let g=Math.abs(d),_=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`),v=g/ee.value,y=ce(g,f);if(y!==null&&(v=y),p&&v>=1||!O.value&&!de(e.target,f))return;if((n=M?.value)==null||n.$el.classList.add(zQ),O.value=!0,NQ((r=M.value)?.$el,{transition:`none`}),NQ((i=C.value)?.$el,{transition:`none`}),te.value&&oe({draggedDistance:d}),f&&!te.value){let e=qTe(d),t=Math.min(e*-1,0)*u;NQ((a=M.value)?.$el,{transform:FQ(h.value)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`});return}let b=1-v;if((se.value||m.value&&re.value===m.value-1)&&(t(v),NQ((s=C.value)?.$el,{opacity:`${b}`,transition:`none`},!0)),_&&C.value&&l.value){let e=Math.min(ue()+v*(1-ue()),1),t=8-v*8,n=Math.max(0,14-v*14);NQ(_,{borderRadius:`${t}px`,transform:FQ(h.value)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!te.value){let e=g*u;NQ((c=M.value)?.$el,{transform:FQ(h.value)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}function P(){var e;if(!M.value)return;let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`),n=PQ(M.value.$el,h.value);NQ(M.value.$el,{transform:`translate3d(0, 0, 0)`,transition:`transform ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`}),NQ((e=C.value)?.$el,{transition:`opacity ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,opacity:`1`}),l.value&&n&&n>0&&y.value&&NQ(t,{borderRadius:`8px`,overflow:`hidden`,...FQ(h.value)?{transform:`scale(${ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${ue()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${LQ.DURATION}s`,transitionTimingFunction:`cubic-bezier(${LQ.EASE.join(`,`)})`},!0)}function me(e){M.value&&(r(),e||(y.value=!1),window.setTimeout(()=>{te.value&&(p.value=te.value[0])},LQ.DURATION*1e3))}La(()=>{if(!y.value&&l.value&&HTe){let e=setTimeout(()=>{KTe(document.body)},200);return()=>clearTimeout(e)}}),Ba(a,()=>{y.value=a.value,a.value||me()});function he(e){if(!x.value||!M.value)return;M.value.$el.classList.remove(zQ),O.value=!1,x.value=!1,E.value=new Date;let t=PQ(M.value.$el,h.value);if(!de(e.target,!1)||!t||Number.isNaN(t)||T.value===null)return;let r=E.value.getTime()-T.value.getTime(),i=A.value-(FQ(h.value)?e.clientY:e.clientX),a=Math.abs(i)/r;if(a>.05&&(S.value=!0,window.setTimeout(()=>{S.value=!1},200)),te.value){let e=h.value===`bottom`||h.value===`right`?1:-1;ie({draggedDistance:i*e,closeDrawer:me,velocity:a,dismissible:o.value}),n(!0);return}if(h.value===`bottom`||h.value===`right`?i>0:i<0){P(),n(!0);return}if(a>RQ){me(),n(!1);return}let s=Math.min(M.value.$el.getBoundingClientRect().height??0,window.innerHeight);if(t>=s*f.value){me(),n(!1);return}n(!0),P()}Ba(y,e=>{e&&(w.value=new Date),i(e)},{immediate:!0});function ge(e){var t,n;let r=e?(window.innerWidth-16)/window.innerWidth:1,i=e?-16:0;k.value&&window.clearTimeout(k.value),NQ((t=M.value)?.$el,{transition:`transform ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,transform:`scale(${r}) translate3d(0, ${i}px, 0)`}),!e&&(n=M.value)!=null&&n.$el&&(k.value=window.setTimeout(()=>{var e,t;let n=PQ((e=M.value)?.$el,h.value);NQ((t=M.value)?.$el,{transition:`none`,transform:FQ(h.value)?`translate3d(0, ${n}px, 0)`:`translate3d(${n}px, 0, 0)`})},500))}function _e(e){var t;if(e<0)return;let n=FQ(h.value)?window.innerHeight:window.innerWidth,r=(n-16)/n,i=r+e*(1-r),a=-16+e*16;NQ((t=M.value)?.$el,{transform:FQ(h.value)?`scale(${i}) translate3d(0, ${a}px, 0)`:`scale(${i}) translate3d(${a}px, 0, 0)`,transition:`none`})}function ve(e){var t;let n=FQ(h.value)?window.innerHeight:window.innerWidth,r=e?(n-16)/n:1,i=e?-16:0;e&&NQ((t=M.value)?.$el,{transition:`transform ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,transform:FQ(h.value)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return{open:a,isOpen:y,modal:c,keyboardIsOpen:j,hasBeenOpened:b,drawerRef:M,drawerHeightRef:ee,overlayRef:C,handleRef:ne,isDragging:x,dragStartTime:T,isAllowedToDrag:O,snapPoints:te,activeSnapPoint:p,hasSnapPoints:N,pointerStart:A,dismissible:o,snapPointsOffset:ae,direction:h,shouldFade:se,fadeFromIndex:m,shouldScaleBackground:l,setBackgroundColorOnScale:u,onPress:fe,onDrag:pe,onRelease:he,closeDrawer:me,onNestedDrag:_e,onNestedRelease:ve,onNestedOpenChange:ge,emitClose:r,emitDrag:t,emitRelease:n,emitOpenChange:i,nested:s,handleOnly:_,noBodyStyles:g}}const HQ=R({__name:`DrawerRoot`,props:{activeSnapPoint:{default:void 0},closeThreshold:{default:.25},shouldScaleBackground:{type:Boolean,default:void 0},setBackgroundColorOnScale:{type:Boolean,default:!0},scrollLockTimeout:{default:100},fixed:{type:Boolean,default:void 0},dismissible:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},nested:{type:Boolean,default:!1},direction:{default:`bottom`},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean,default:!1},preventScrollRestoration:{type:Boolean},snapPoints:{default:void 0},fadeFromIndex:{default:void 0}},emits:[`drag`,`release`,`close`,`update:open`,`update:activeSnapPoint`,`animationEnd`],setup(e,{expose:t,emit:n}){let r=e,i=n;Wi();let a=U(()=>r.fadeFromIndex??(r.snapPoints&&r.snapPoints.length-1)),o=AQ(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0}),s=AQ(r,`activeSnapPoint`,i,{passive:r.activeSnapPoint===void 0}),c={emitDrag:e=>i(`drag`,e),emitRelease:e=>i(`release`,e),emitClose:()=>i(`close`),emitOpenChange:e=>{i(`update:open`,e),setTimeout(()=>{i(`animationEnd`,e)},LQ.DURATION*1e3)}},{closeDrawer:l,hasBeenOpened:u,modal:d,isOpen:f}=GTe(QTe({...c,..._n(r),activeSnapPoint:s,fadeFromIndex:a,open:o}));function p(e){if(o.value!==void 0){c.emitOpenChange(e);return}f.value=e,e?u.value=!0:l()}return t({open:f}),(e,t)=>(z(),Oo(I(DA),{open:I(f),modal:I(d),"onUpdate:open":p},{default:L(()=>[ki(e.$slots,`default`,{open:I(f)})]),_:3},8,[`open`,`modal`]))}});Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const UQ=R({__name:`DrawerOverlay`,setup(e){let{overlayRef:t,hasSnapPoints:n,isOpen:r,shouldFade:i}=jQ();return(e,a)=>(z(),Oo(I(KA),{ref_key:`overlayRef`,ref:t,"data-vaul-overlay":``,"data-vaul-snap-points":I(r)&&I(n)?`true`:`false`,"data-vaul-snap-points-overlay":I(r)&&I(i)?`true`:`false`},null,8,[`data-vaul-snap-points`,`data-vaul-snap-points-overlay`]))}}),$Te=()=>()=>{};function eEe(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=jQ(),a=F(null),o=F(document.body.style.backgroundColor);function s(){return(window.innerWidth-26)/window.innerWidth}La(c=>{if(t.value&&n.value){a.value&&clearTimeout(a.value);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;JTe(r.value&&!i.value?IQ(document.body,{background:`black`}):$Te,IQ(t,{transformOrigin:FQ(e.value)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${LQ.DURATION}s`,transitionTimingFunction:`cubic-bezier(${LQ.EASE.join(`,`)})`}));let n=IQ(t,{borderRadius:`8px`,overflow:`hidden`,...FQ(e.value)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});c(()=>{n(),a.value=window.setTimeout(()=>{o.value?document.body.style.background=o.value:document.body.style.removeProperty(`background`)},LQ.DURATION*1e3)})}},{flush:`pre`})}const WQ=R({__name:`DrawerContent`,setup(e){let{open:t,isOpen:n,snapPointsOffset:r,hasSnapPoints:i,drawerRef:a,onPress:o,onDrag:s,onRelease:c,modal:l,emitOpenChange:u,dismissible:d,keyboardIsOpen:f,closeDrawer:p,direction:m,handleOnly:h}=jQ();eEe();let g=F(!1),_=U(()=>r.value&&r.value.length>0?`${r.value[0]}px`:`0`);function v(e){if(!l.value||e.defaultPrevented){e.preventDefault();return}f.value&&=!1,d.value?u(!1):e.preventDefault()}function y(e){h.value||o(e)}function b(e){h.value||s(e)}return La(()=>{i.value&&window.requestAnimationFrame(()=>{g.value=!0})}),(e,t)=>(z(),Oo(I(GA),{ref_key:`drawerRef`,ref:a,"data-vaul-drawer":``,"data-vaul-drawer-direction":I(m),"data-vaul-delayed-snap-points":g.value?`true`:`false`,"data-vaul-snap-points":I(n)&&I(i)?`true`:`false`,style:be({"--snap-point-height":_.value}),onPointerdown:y,onPointermove:b,onPointerup:I(c),onPointerDownOutside:v,onOpenAutoFocus:t[0]||=Wc(()=>{},[`prevent`]),onEscapeKeyDown:t[1]||=e=>{I(d)||e.preventDefault()}},{default:L(()=>[ki(e.$slots,`default`)]),_:3},8,[`data-vaul-drawer-direction`,`data-vaul-delayed-snap-points`,`data-vaul-snap-points`,`style`,`onPointerup`]))}}),tEe=[`data-vaul-drawer-visible`],nEe={"data-vaul-handle-hitarea":``,"aria-hidden":`true`},GQ=R({__name:`DrawerHandle`,props:{preventCycle:{type:Boolean,default:!1}},setup(e){let t=e,{onPress:n,onDrag:r,handleRef:i,handleOnly:a,isOpen:o,snapPoints:s,activeSnapPoint:c,isDragging:l,dismissible:u,closeDrawer:d}=jQ(),f=F(null),p=F(!1);function m(){if(p.value){_();return}window.setTimeout(()=>{h()},120)}function h(){if(l.value||t.preventCycle||p.value){_();return}if(_(),!s.value||s.value.length===0){u.value||d();return}let e=c.value===s.value[s.value.length-1];if(e&&u.value){d();return}let n=s.value.findIndex(e=>e===c.value);if(n===-1)return;let r=e?0:n+1;c.value=s.value[r]}function g(){f.value=window.setTimeout(()=>{p.value=!0},250)}function _(){f.value&&window.clearTimeout(f.value),p.value=!1}function v(e){a.value&&n(e),g()}function y(e){a.value&&r(e)}return(e,t)=>(z(),B(`div`,{ref_key:`handleRef`,ref:i,"data-vaul-drawer-visible":I(o)?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,onClick:m,onPointercancel:_,onPointerdown:v,onPointermove:y},[V(`span`,nEe,[ki(e.$slots,`default`)])],40,tEe))}});var rEe=R({__name:`Dialog`,props:{modelValue:{type:Boolean,default:!1,required:!1},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=Wa(e,`modelValue`),n=$T(`(min-width: 768px)`),r=yE();return dE(document.documentElement,()=>r.update()),di(()=>r.update()),(e,i)=>I(n)?(z(),Oo(I(DA),{key:0,open:t.value,"onUpdate:open":i[0]||=e=>t.value=e},{default:L(()=>[ki(e.$slots,`trigger`),H(I(JA),null,{default:L(()=>[H(I(KA),{class:`fixed inset-0 z-[9999] bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),H(I(GA),{class:`fixed left-1/2 top-1/2 z-[9999] max-h-full max-w-2xl w-[92dvw] transform overflow-y-scroll rounded-2xl bg-white p-6 shadow-xl outline-none backdrop-blur-md scrollbar-none -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:bg-neutral-900`},{default:L(()=>[ki(e.$slots,`default`)]),_:3})]),_:3})]),_:3},8,[`open`])):(z(),Oo(I(HQ),{key:1,open:t.value,"should-scale-background":``,"onUpdate:open":i[1]||=e=>t.value=e},{default:L(()=>[H(I(JA),null,{default:L(()=>[H(I(UQ),{class:`fixed inset-0`}),H(I(WQ),{class:`fixed bottom-0 left-0 right-0 z-1000 mt-20 h-full max-h-[96%] flex flex-col rounded-t-2xl bg-neutral-50 px-4 pt-4 outline-none backdrop-blur-md dark:bg-neutral-900/95`,style:be({paddingBottom:`${Math.max(Number.parseFloat(I(r).bottom.value.replace(`px`,``)),24)}px`})},{default:L(()=>[H(I(GQ)),ki(e.$slots,`default`)]),_:3},8,[`style`])]),_:3})]),_:3},8,[`open`]))}}),iEe=rEe; +`}),n}function iQ(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function aQ(e,t){let n=Gwe(e,t),r=n.one(e,void 0),i=Uwe(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` +`},i)),a}function oQ(e,t){return e&&`run`in e?async function(n,r){let i=aQ(n,{file:r,...t});await e.run(i,r)}:function(n,r){return aQ(n,{file:r,...e||t})}}function sQ(e){if(e)throw e}var Xwe=s(((exports,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`)if(n.call(e,t)){if(a)return a(e,t).value}else return;return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});ft.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var lQ=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=o?o.line:void 0,this.name=FZ(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual,this.expected,this.note,this.url}};lQ.prototype.file=``,lQ.prototype.name=``,lQ.prototype.reason=``,lQ.prototype.message=``,lQ.prototype.stack=``,lQ.prototype.column=void 0,lQ.prototype.line=void 0,lQ.prototype.ancestors=void 0,lQ.prototype.cause=void 0,lQ.prototype.fatal=void 0,lQ.prototype.place=void 0,lQ.prototype.ruleId=void 0,lQ.prototype.source=void 0;const uQ={basename:$we,dirname:eTe,extname:tTe,join:nTe,sep:`/`};function $we(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);dQ(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function eTe(e){if(dQ(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function tTe(e){dQ(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function nTe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function iTe(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function dQ(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}const aTe={cwd:oTe};function oTe(){return`/`}function fQ(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function sTe(e){if(typeof e==`string`)e=new URL(e);else if(!fQ(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return cTe(e)}function cTe(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n0){let[r,...a]=t,o=n[i][1];cQ(o)&&cQ(r)&&(r=(0,_Q.default)(!0,o,r)),n[i]=[e,r,...a]}}}};const vQ=new pTe().freeze();function yQ(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function bQ(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function xQ(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function SQ(e){if(!cQ(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function CQ(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function wQ(e){return mTe(e)?e:new lTe(e)}function mTe(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function hTe(e){return typeof e==`string`||gTe(e)}function gTe(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}const TQ=new Map,_Te=/```(.{2,})\s/g;function vTe(e){let t=e.matchAll(_Te),n=new Set;n.add(`python`);for(let e of t)e[1]&&n.add(e[1]);return[...n]}async function yTe(e){let t={themes:{light:`github-light`,dark:`github-dark`},langs:e,defaultLanguage:e[0]||`python`};return vQ().use(UZ).use(XX).use(oQ).use(RX).use(gye,t).use(zX)}function bTe(e){let t=[...e].sort().join(`,`);if(!TQ.has(t)){let n=yTe(e);TQ.set(t,n)}return TQ.get(t)}function xTe(){let e=vQ().use(UZ).use(XX).use(oQ).use(RX).use(zX);return{process:async t=>{try{if(!/`{3,}/.test(t))return e.processSync(t).toString();let n=vTe(t),r=new Set(n);r.add(`python`);let i=Array.from(r),a=await bTe(i),o=await a.process(t);return o.toString()}catch(n){return console.warn(`Failed to process markdown with syntax highlighting, falling back to basic processing:`,n),e.processSync(t).toString()}},processSync:t=>e.processSync(t).toString()}}const STe=[`innerHTML`];var CTe=R({__name:`MarkdownRenderer`,props:{content:{},class:{}},setup(e){let t=e,n=F(``),{process:r,processSync:i}=xTe();async function a(){if(!t.content){n.value=``;return}try{n.value=RB.sanitize(await r(t.content))}catch(e){console.warn(`Failed to process markdown with syntax highlighting, using fallback:`,e),n.value=RB.sanitize(i(t.content))}}return Ha(()=>t.content,a,{immediate:!0}),fi(()=>{a()}),(e,r)=>(z(),B(`div`,{class:Te([t.class,`markdown-content`]),innerHTML:n.value},null,10,STe))}}),wTe=CM(CTe,[[`__scopeId`,`data-v-82b782a7`]]);const TTe={"z-1":``,"flex-1":``},ETe={"text-lg":``,"font-normal":``,class:`menu-icon-item-title`,transition:`all ease-in-out duration-400`},DTe={text:`sm neutral-500 dark:neutral-400`,class:`menu-icon-item-description`,transition:`all ease-in-out duration-400`};var OTe=R({__name:`IconItem`,props:{title:{},description:{},icon:{},iconTemplate:{type:Boolean},to:{}},setup(e){return(e,t)=>{let n=Si(`RouterLink`);return z(),Ao(n,{box:`border`,flex:`~ row`,bg:`neutral-50 dark:neutral-900`,border:`neutral-100 dark:neutral-800/25 hover:primary-500/30 dark:hover:primary-400/30 solid 2`,"drop-shadow":`none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none`,class:`menu-icon-item`,transition:`all ease-in-out duration-400`,relative:``,"w-full":``,"items-center":``,"overflow-hidden":``,"rounded-lg":``,"p-5":``,"text-left":``,cursor:`pointer`,to:e.to},{default:L(()=>[V(`div`,TTe,[V(`div`,ETe,Pe(e.title),1),V(`div`,DTe,[V(`span`,null,Pe(e.description),1)])]),typeof e.icon==`string`?(z(),B(`div`,{key:0,class:Te([`menu-icon-item-icon`,[e.icon]]),transition:`all ease-in-out duration-400`,absolute:``,"right-0":``,"size-24":``,"translate-y-4":``,text:`neutral-400/50 dark:neutral-600/50`},null,2)):zo(``,!0),e.iconTemplate?Ai(e.$slots,`icon`,{key:1},void 0,!0):zo(``,!0)]),_:3},8,[`to`])}}}),kTe=CM(OTe,[[`__scopeId`,`data-v-d08788bb`]]);const ATe={flex:`~ col`,bg:`neutral-50 dark:neutral-800`,border:`neutral-100 dark:neutral-800/25 hover:primary-500/30 dark:hover:primary-400/30 solid 2`,"drop-shadow":`none hover:[0px_4px_4px_rgba(220,220,220,0.4)] active:[0px_0px_0px_rgba(220,220,220,0.25)] dark:hover:none`,class:`menu-icon-status-item`,transition:`all ease-in-out duration-400`,"w-full":``,"cursor-pointer":``,"of-hidden":``,"rounded-xl":``},jTe={"z-1":``,"flex-1":``},MTe={"text-lg":``,"font-normal":``,class:`menu-icon-status-item-title`,transition:`all ease-in-out duration-400`},NTe={text:`sm neutral-500 dark:neutral-400`,class:`menu-icon-status-item-description`,transition:`all ease-in-out duration-400`},PTe=[`src`],FTe={"p-2":``},ITe={key:0,"size-4":``,bg:`green-500`,"rounded-full":``,shadow:`lg`},LTe={key:1,"size-4":``,border:`2 neutral-200 dark:neutral-700`,"rounded-full":``,bg:`white dark:neutral-900`};var RTe=R({__name:`IconStatusItem`,props:{title:{},description:{},icon:{},iconColor:{},iconImage:{},to:{},configured:{type:Boolean}},setup(e){let t=e;return(e,n)=>{let r=Si(`RouterLink`);return z(),B(`div`,ATe,[H(r,{flex:`~ row`,class:`menu-icon-status-item-link`,bg:`white dark:neutral-900`,transition:`all ease-in-out duration-400`,relative:``,"h-full":``,"w-full":``,"items-center":``,"overflow-hidden":``,"rounded-lg":``,"p-5":``,"text-left":``,to:t.to},{default:L(()=>[V(`div`,jTe,[V(`div`,MTe,Pe(t.title),1),V(`div`,NTe,[V(`span`,null,Pe(t.description||``),1)])]),t.icon?(z(),B(`div`,{key:0,class:Te([`menu-icon-status-item-icon`,t.icon]),transition:`all ease-in-out duration-400`,absolute:``,"right-0":``,"size-16":``,"translate-y-2":``,text:`neutral-400/50 dark:neutral-600/50`,"grayscale-100":``},null,2)):zo(``,!0),t.iconColor?(z(),B(`div`,{key:1,class:Te([`menu-icon-status-item-icon-color`,[t.iconColor]]),transition:`all ease-in-out duration-400`,absolute:``,"right-0":``,"size-16":``,"translate-y-2":``,text:`neutral-400/50 dark:neutral-600/50`,"grayscale-100":``},null,2)):zo(``,!0),t.iconImage?(z(),B(`img`,{key:2,src:t.iconImage,class:`menu-icon-status-item-icon-image`,transition:`all ease-in-out duration-400`,absolute:``,"right-0":``,"size-16":``,"translate-y-2":``,"grayscale-100":``},null,8,PTe)):zo(``,!0)]),_:1},8,[`to`]),V(`div`,FTe,[t.configured?(z(),B(`div`,ITe)):(z(),B(`div`,LTe))])])}}}),zTe=CM(RTe,[[`__scopeId`,`data-v-c70e1337`]]);const BTe=[`checked`,`name`,`value`],VTe={class:`relative mr-3 mt-0.5 flex-shrink-0`},HTe={class:`w-full flex flex-col gap-2`},UTe={class:`flex items-center`},WTe={key:0,class:`relative`},GTe=[`title`],KTe={key:1,class:`mt-2`};var qTe=R({__name:`RadioCardDetail`,props:Xi({id:{},name:{},value:{},title:{},description:{},deprecated:{type:Boolean,default:!1},showExpandCollapse:{type:Boolean,default:!0},expandCollapseThreshold:{default:100},customInputValue:{default:``},customInputPlaceholder:{default:``},showCustomInput:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Ka(e,`modelValue`),n=F(!1);function r(){n.value=!n.value}return(e,i)=>(z(),B(`label`,{key:e.id,class:Te([`form_radio-card-detail relative flex cursor-pointer items-start rounded-xl p-3 pr-[20px]`,[t.value===e.value?`bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`:`bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`,t.value===e.value?`form_radio-card-detail-active`:``,e.deprecated?`opacity-60`:``]]),transition:`all duration-200 ease-in-out`,border:`2 solid`},[cr(V(`input`,{"onUpdate:modelValue":i[0]||=e=>t.value=e,checked:t.value===e.value,type:`radio`,name:e.name,value:e.value,class:`absolute opacity-0`},null,8,BTe),[[Vc,t.value]]),V(`div`,VTe,[V(`div`,{class:Te([`size-5 border-2 rounded-full transition-colors duration-200`,[t.value===e.value?`border-primary-500 dark:border-primary-400`:`border-neutral-300 dark:border-neutral-600`]])},[V(`div`,{class:Te([`absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2`,[t.value===e.value?`opacity-100 bg-primary-500 dark:bg-primary-400`:`opacity-0`]])},null,2)],2)]),V(`div`,HTe,[V(`div`,UTe,[V(`span`,{class:Te([`line-clamp-1 font-normal`,[t.value===e.value?`text-neutral-700 dark:text-neutral-300`:`text-neutral-700 dark:text-neutral-400`]])},Pe(e.title),3)]),e.description?(z(),B(`div`,WTe,[H(I(Gk),null,{default:L(()=>[!n.value||!e.showExpandCollapse?(z(),B(`div`,{key:0,class:Te([`line-clamp-2 cursor-pointer text-xs`,[t.value===e.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]]),title:e.description,onClick:Yc(r,[`prevent`])},Pe(e.description),11,GTe)):(z(),B(`div`,{key:1,class:Te([`cursor-pointer text-xs`,[t.value===e.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]]),onClick:Yc(r,[`prevent`])},Pe(e.description),3))]),_:1}),e.showExpandCollapse&&e.description.length>e.expandCollapseThreshold?(z(),B(`button`,{key:0,class:`mt-0.5 inline-flex items-center text-xs text-primary-500 dark:text-primary-600`,onClick:Yc(r,[`prevent`])},[V(`span`,null,Pe(n.value?`Show less`:`Show more`),1),V(`div`,{class:Te([{"rotate-180":n.value},`transition-transform duration-200`])},[...i[2]||=[V(`div`,{"i-solar:alt-arrow-down-linear":``,"ml-0.5":``,"text-xs":``},null,-1)]],2)])):zo(``,!0)])):zo(``,!0),e.showCustomInput&&t.value===e.value?(z(),B(`div`,KTe,[H(I(xM),{modelValue:t.value,"onUpdate:modelValue":i[1]||=e=>t.value=e,type:`text`,class:`w-full border border-neutral-300 rounded bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900`,placeholder:e.customInputPlaceholder},null,8,[`modelValue`,`placeholder`])])):zo(``,!0)])],2))}}),EQ=CM(qTe,[[`__scopeId`,`data-v-fb6236db`]]);const JTe={class:`flex items-center gap-1.5 font-medium`},YTe={key:0,class:`px-1 text-sm`};var XTe=R({__name:`Alert`,props:{type:{}},setup(e){let t=e,n=Gi(),r=U(()=>{switch(t.type){case`error`:return`border-solid border-2 border-red-200 bg-red-50 dark:border-red-800/30 dark:bg-red-900/20`;case`warning`:return`border-solid border-2 border-amber-200 bg-amber-50 dark:border-amber-800/30 dark:bg-amber-900/20`;case`success`:return`border-solid border-2 border-green-200 bg-green-50 dark:border-green-800/30 text-green-700 dark:bg-green-900/30 dark:text-green-300`;case`info`:return`border-solid border-2 border-blue-200 bg-blue-50 dark:border-blue-800/30 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300`;case`loading`:return`border-solid border-2 border-blue-200 bg-blue-50 dark:border-blue-800/30 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300`}return``}),i=U(()=>{switch(t.type){case`error`:return`i-solar:close-circle-bold-duotone text-red-500 dark:text-red-400`;case`warning`:return`i-solar:danger-circle-bold-duotone text-amber-500 dark:text-amber-400`;case`success`:return`i-solar:check-circle-bold-duotone text-green-500 dark:text-green-400`;case`info`:return`i-solar:info-circle-bold-duotone text-blue-500 dark:text-blue-400`;case`loading`:return`i-svg-spinners:3-dots-fade text-blue-500 dark:text-blue-400`}return``}),a=U(()=>{switch(t.type){case`error`:return`text-red-500 dark:text-red-400`;case`warning`:return`text-amber-500 dark:text-amber-400`;case`success`:return`text-green-500 dark:text-green-400`;case`info`:return`text-blue-500 dark:text-blue-400`;case`loading`:return`text-blue-500 dark:text-blue-400`}return``});return(e,t)=>(z(),B(`div`,{class:Te([`flex flex-col gap-3 rounded-xl p-2`,r.value])},[V(`div`,JTe,[V(`div`,{class:Te([`text-2xl`,i.value])},null,2),V(`div`,{class:Te(a.value)},[Ai(e.$slots,`title`)],2)]),I(n).content?(z(),B(`div`,YTe,[Ai(e.$slots,`content`)])):zo(``,!0)],2))}}),DQ=XTe;const ZTe={class:`radio-card-detail-many-select`},QTe={key:0,class:`relative`,"inline-flex":`~`,"w-full":``,"items-center":``},$Te=[`placeholder`],eEe={class:`mt-4 space-y-2`},tEe={key:0,class:`text-sm text-neutral-500 dark:text-neutral-400`},nEe={class:`relative`};var rEe=R({__name:`RadioCardManySelect`,props:Xi({items:{},searchable:{type:Boolean,default:!0},searchPlaceholder:{default:`Search...`},searchNoResultsTitle:{default:`No results found`},searchNoResultsDescription:{default:`Try a different search term`},searchResultsText:{default:`{count} of {total} results`},customInputPlaceholder:{default:`Enter custom value`},expandButtonText:{default:`Show more`},collapseButtonText:{default:`Show less`},showMore:{type:Boolean,default:!0},listClass:{default:``}},{modelValue:{required:!0},modelModifiers:{},searchQuery:{},searchQueryModifiers:{}}),emits:Xi([`update:customValue`],[`update:modelValue`,`update:searchQuery`]),setup(e,{emit:t}){let n=e,r=t,i=Ka(e,`modelValue`),a=Ka(e,`searchQuery`),o=F(!1),s=F(``),c=U(()=>{if(!a.value)return n.items;let e=a.value.toLowerCase();return n.items.filter(t=>t.name.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))});function l(e){s.value=e,r(`update:customValue`,e)}return(e,t)=>(z(),B(`div`,ZTe,[e.searchable?(z(),B(`div`,QTe,[t[4]||=V(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[V(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),cr(V(`input`,{"onUpdate:modelValue":t[0]||=e=>a.value=e,type:`search`,class:`w-full rounded-xl p-2.5 pl-10 text-sm outline-none`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,bg:`white dark:neutral-900`,placeholder:e.searchPlaceholder},null,8,$Te),[[Rc,a.value]])])):zo(``,!0),V(`div`,eEe,[a.value?(z(),B(`div`,tEe,Pe(e.searchResultsText.replace(`{count}`,c.value.length.toString()).replace(`{total}`,e.items.length.toString())),1)):zo(``,!0),a.value&&c.value.length===0?(z(),Ao(DQ,{key:1,type:`warning`},{title:L(()=>[Lo(Pe(e.searchNoResultsTitle),1)]),content:L(()=>[Lo(Pe(e.searchNoResultsDescription.replace(`{query}`,a.value)),1)]),_:1})):zo(``,!0),V(`div`,nEe,[V(`div`,{class:Te([`grid auto-cols-[350px] grid-flow-col gap-4 overflow-x-auto pb-4 scrollbar-none`,[o.value?`grid-cols-1 md:grid-cols-2 grid-flow-row auto-cols-auto`:``,...n.listClass?typeof n.listClass==`string`?[n.listClass]:n.listClass:[`max-h-[calc(100dvh-7lh)]`]]]),transition:`all duration-200 ease-in-out`,style:{"scroll-snap-type":`x mandatory`}},[(z(!0),B(bo,null,Oi(c.value,n=>(z(),Ao(EQ,{id:n.id,key:n.id,modelValue:i.value,"onUpdate:modelValue":t[1]||=e=>i.value=e,value:n.id,title:n.name,description:n.description,deprecated:n.deprecated,"show-expand-collapse":e.showMore,"expand-collapse-threshold":100,"show-custom-input":n.customizable,"custom-input-value":s.value,"custom-input-placeholder":e.customInputPlaceholder,name:`radio-card-detail-many-select`,class:`scroll-snap-align-start`,"onUpdate:customInputValue":t[2]||=e=>l(e)},null,8,[`id`,`modelValue`,`value`,`title`,`description`,`deprecated`,`show-expand-collapse`,`show-custom-input`,`custom-input-value`,`custom-input-placeholder`]))),128))],2),V(`div`,{bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,class:Te([o.value?`w-full`:`mt-4 w-full rounded-lg`])},[V(`button`,{"w-full":``,flex:``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-lg":``,"py-2":``,transition:`all duration-200 ease-in-out`,class:Te([o.value?`bg-primary-500 hover:bg-primary-600 text-white`:`bg-white dark:bg-neutral-900 hover:bg-neutral-100 dark:hover:bg-neutral-800`]),onClick:t[3]||=e=>o.value=!o.value},[V(`span`,null,Pe(o.value?e.collapseButtonText:e.expandButtonText),1),V(`div`,{class:Te([o.value?`rotate-180`:``,`text-lg`]),"i-solar:alt-arrow-down-linear":``,transition:`transform duration-200 ease-in-out`},null,2)],2)],2)])])]))}}),OQ=CM(rEe,[[`__scopeId`,`data-v-5c1e25d6`]]);const iEe=[`checked`,`name`,`value`],aEe={flex:`~ col`,"min-h-16":``,"w-full":``,"items-start":``,"justify-center":``,"pb-2":``,"pl-5":``,"pr-4":``,"pt-2":``};var oEe=R({__name:`RadioCardSimple`,props:Xi({id:{},name:{},value:{},title:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Ka(e,`modelValue`);return(e,n)=>(z(),B(`label`,{key:e.id,border:`2px solid`,class:Te([`form_radio-card-simple relative`,[t.value===e.value?`bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`:`bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`,t.value===e.value?`form_radio-card-simple-active`:``]]),transition:`all duration-200 ease-in-out`,flex:`~ col`,block:``,"min-w-50":``,"w-fit":``,"cursor-pointer":``,"items-start":``,"rounded-xl":``,"p-4":``,"text-left":``},[cr(V(`input`,{"onUpdate:modelValue":n[0]||=e=>t.value=e,checked:t.value===e.value,type:`radio`,name:e.name,value:e.value,class:`absolute opacity-0 [&:checked+div]:border-primary-500 [&:checked+div_.radio-dot]:opacity-100 dark:[&:checked+div]:border-primary-400`},null,8,iEe),[[Vc,t.value]]),n[1]||=V(`div`,{class:`radio-circle absolute left-2 top-2 size-5 rounded-full`,border:`2 solid neutral-300 dark:neutral-600`,transition:`all duration-200 ease-in-out`},[V(`div`,{class:`radio-dot absolute left-1/2 top-1/2 size-3 rounded-full opacity-0 -translate-x-1/2 -translate-y-1/2`,transition:`all duration-200 ease-in-out`,bg:`primary-500 dark:primary-400`})],-1),V(`div`,aEe,[V(`span`,{class:Te([`radio-item-name font-normal`,[t.value===e.value?`text-neutral-700 dark:text-neutral-300`:`text-neutral-500 dark:text-neutral-500`]]),text:`md`,transition:`all duration-200 ease-in-out`},Pe(e.title),3),e.description?(z(),B(`span`,{key:0,class:Te([`radio-item-description`,[t.value===e.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-400 dark:text-neutral-600`]]),transition:`all duration-200 ease-in-out`},Pe(e.description),3)):zo(``,!0)]),n[2]||=V(`div`,{class:`bg-dotted-neutral-200/80 dark:bg-dotted-neutral-700/50 [input:checked~&]:bg-dotted-primary-300/50 dark:[input:checked~&]:bg-dotted-primary-200/20`,absolute:``,"inset-0":``,"z--1":``,style:{"background-size":`10px 10px`,"mask-image":`linear-gradient(165deg, white 30%, transparent 50%)`}},null,-1)],2))}}),sEe=CM(oEe,[[`__scopeId`,`data-v-880ce73f`]]);const cEe={class:`p-3`},lEe={class:`flex items-start`},uEe=[`checked`,`name`,`value`],dEe={class:`relative mr-3 mt-0.5 flex-shrink-0`},fEe={key:0,class:`i-solar:pause-circle-bold-duotone text-xl text-neutral-400 dark:text-neutral-500`},pEe={key:1,class:`i-solar:play-circle-bold-duotone text-xl text-neutral-400 dark:text-neutral-500`},mEe={key:1,class:`mt-auto w-full flex items-center justify-center bg-neutral-50 py-3 text-xs text-neutral-400 italic dark:bg-neutral-800/50 dark:text-neutral-600`},hEe={class:`flex-1 cursor-pointer`},gEe={class:`flex items-center`},_Ee={key:0,class:`mt-1 flex flex-wrap gap-1`},vEe={key:1,class:`mt-3`},yEe={relative:``},bEe={key:0,class:`h-16 px-3 pb-2`};var xEe=R({__name:`VoiceCard`,props:Xi({name:{},voice:{},currentlyPlayingId:{},customInputPlaceholder:{default:`Enter custom voice name`},showVisualizer:{type:Boolean,default:!0},audioStream:{default:null}},{"voice-id":{required:!1,default:``},"voice-idModifiers":{},"custom-voice-name":{required:!1,default:``},"custom-voice-nameModifiers":{}}),emits:Xi([`togglePlayback`],[`update:voice-id`,`update:custom-voice-name`]),setup(e,{emit:t}){let n=e,r=t,i=Ka(e,`voice-id`),a=Ka(e,`custom-voice-name`);function o(e){return e.previewURL||e.preview_audio_url}function s(e){let t=[];if(e.labels?.gender&&t.push(e.labels.gender),e.labels?.age&&t.push(e.labels.age),e.labels?.accent&&t.push(e.labels.accent),e.languages&&e.languages.length>0){let n=e.languages.map(e=>e.name).join(`, `);t.push(n)}return t}function c(){r(`togglePlayback`,n.voice)}return(e,t)=>(z(),B(`label`,{border:`2px solid`,class:Te([`scroll-snap-align-start form_voice-card relative flex flex-col overflow-hidden rounded-xl`,[i.value===n.voice.id?`bg-primary-50 dark:bg-primary-900/20 border-primary-100 dark:border-primary-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`:`bg-white dark:bg-neutral-900/20 border-neutral-100 dark:border-neutral-900 hover:border-primary-500/30 dark:hover:border-primary-400/30`,i.value===n.voice.id?`form_voice-card-active`:``]]),transition:`all duration-200 ease-in-out`},[V(`div`,cEe,[V(`div`,lEe,[cr(V(`input`,{"onUpdate:modelValue":t[0]||=e=>i.value=e,checked:i.value===n.voice.id,type:`radio`,name:e.name,value:n.voice.id,class:`absolute cursor-pointer opacity-0`},null,8,uEe),[[Vc,i.value]]),V(`div`,dEe,[V(`div`,{class:Te([`size-5 border-2 rounded-full transition-colors duration-200`,[i.value===n.voice.id?`border-primary-500 dark:border-primary-400`:`border-neutral-300 dark:border-neutral-600`]])},[V(`div`,{class:Te([`absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2`,[i.value===n.voice.id?`opacity-100 bg-primary-500 dark:bg-primary-400`:`opacity-0`]])},null,2)],2)]),o(e.voice)?(z(),B(`button`,{key:0,absolute:``,"right-0":``,top:`0`,"z-3":``,class:Te([`translate-x-[-50%] translate-y-[50%]`,[e.currentlyPlayingId===e.voice.id?`text-white dark:text-white`:``]]),onClick:c},[e.currentlyPlayingId===e.voice.id?(z(),B(`div`,fEe)):(z(),B(`div`,pEe))],2)):(z(),B(`div`,mEe,` No preview available `)),V(`div`,hEe,[V(`div`,gEe,[V(`span`,{class:Te([`line-clamp-1 font-medium`,[i.value===e.voice.id?`text-neutral-700 dark:text-neutral-300`:`text-neutral-700 dark:text-neutral-400`]])},Pe(e.voice.name),3)]),s(e.voice).length>0?(z(),B(`div`,_Ee,[(z(!0),B(bo,null,Oi(s(e.voice),(t,n)=>(z(),B(`span`,{key:n,class:Te([`inline-flex items-center rounded-md px-1.5 py-0.5 text-xs`,[i.value===e.voice.id?`bg-primary-100 text-primary-700 dark:bg-primary-900/30 dark:text-primary-400`:`bg-neutral-100 text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300`]])},Pe(t),3))),128))])):zo(``,!0),e.voice.customizable&&i.value===e.voice.id?(z(),B(`div`,vEe,[H(I(xM),{modelValue:a.value,"onUpdate:modelValue":t[1]||=e=>a.value=e,type:`text`,class:`w-full border border-neutral-300 rounded bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900`,placeholder:e.customInputPlaceholder},null,8,[`modelValue`,`placeholder`])])):zo(``,!0),e.voice.description?(z(),B(`div`,{key:2,class:Te([`line-clamp-2 mt-1 text-xs`,[i.value===e.voice.id?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]])},Pe(e.voice.description),3)):zo(``,!0)])])]),V(`div`,yEe,[H(I(Gk),null,{default:L(()=>[e.showVisualizer&&e.currentlyPlayingId===e.voice.id&&e.audioStream?(z(),B(`div`,bEe,[H(I(fR),{stream:e.audioStream,bars:24,"min-freq":60,"max-freq":4e3},{default:L(({frequencies:t})=>[H(I(hR),{frequencies:t,"bars-class":i.value===e.voice.id?`bg-primary-500 dark:bg-primary-400`:`bg-neutral-400 dark:bg-neutral-600`},null,8,[`frequencies`,`bars-class`])]),_:1},8,[`stream`])])):zo(``,!0)]),_:1})])],2))}}),SEe=CM(xEe,[[`__scopeId`,`data-v-fd4023c4`]]);const CEe={class:`voice-preview-player`},wEe={key:0,class:`relative`,"inline-flex":`~`,"w-full":``,"items-center":``},TEe=[`placeholder`],EEe={class:`mt-4 space-y-2`},DEe={key:0,class:`text-sm text-neutral-500 dark:text-neutral-400`},OEe={class:`relative`};var kEe=R({__name:`VoiceCardManySelect`,props:Xi({voices:{},searchable:{type:Boolean,default:!0},searchPlaceholder:{default:`Search voices...`},searchNoResultsTitle:{default:`No voices found`},searchNoResultsDescription:{default:`Try a different search term`},searchResultsText:{default:`{count} of {total} voices`},customInputPlaceholder:{default:`Enter custom voice name`},expandButtonText:{default:`Show more`},collapseButtonText:{default:`Show less`},playButtonText:{default:`Play sample`},pauseButtonText:{default:`Pause`},showVisualizer:{type:Boolean,default:!0},listClass:{default:``}},{"search-query":{required:!1,default:``},"search-queryModifiers":{},"voice-id":{required:!1,default:``},"voice-idModifiers":{}}),emits:[`update:search-query`,`update:voice-id`],setup(e){let t=e,n=F(!1),r=F(),i=F(new Map),a=F(new Map),o=F(new Map),s=F(new Map),c=F(null);function l(){return c.value||=new(window.AudioContext||window.webkitAudioContext),c.value}let u=Ka(e,`search-query`),d=Ka(e,`voice-id`),f=U(()=>{if(!u.value)return t.voices;let e=u.value.toLowerCase();return t.voices.filter(t=>{let n=t.name.toLowerCase().includes(e),r=t.description&&t.description.toLowerCase().includes(e),i=t.tags&&t.tags.some(t=>t.toLowerCase().includes(e)),a=t.labels&&Object.values(t.labels).some(t=>typeof t==`string`&&t.toLowerCase().includes(e)),o=t.languages&&t.languages.some(t=>t.name.toLowerCase().includes(e)||t.code.toLowerCase().includes(e));return n||r||i||a||o})});function p(e){return e.previewURL||e.preview_audio_url}function m(e){let t=p(e);if(!t)return null;if(i.value.has(e.id))return i.value.get(e.id)||null;let n=new Audio(t);return n.crossOrigin=`anonymous`,n.preload=`auto`,n.addEventListener(`ended`,()=>{if(r.value===e.id){r.value=void 0;let t=a.value.get(e.id);t&&(t.getTracks().forEach(e=>e.stop()),a.value.delete(e.id))}}),i.value.set(e.id,n),n}function h(e,t){try{if(a.value.has(t))return a.value.get(t)||null;let n=l();if(s.value.has(t)){let e=s.value.get(t),r=n.createMediaStreamDestination();e.connect(r);let i=r.stream;return a.value.set(t,i),i}let r=n.createMediaElementSource(e);s.value.set(t,r),r.connect(n.destination);let i=n.createMediaStreamDestination();r.connect(i);let o=i.stream;return a.value.set(t,o),o}catch(e){return console.error(`Failed to create audio stream for visualizer:`,e),null}}function g(e){try{let n=p(e);if(!n)return;let o=m(e);if(!o)return;if(r.value===e.id){o.pause(),r.value=void 0;let t=a.value.get(e.id);t&&(t.getTracks().forEach(e=>e.stop()),a.value.delete(e.id));return}if(r.value){let e=i.value.get(r.value);e&&e.pause();let t=a.value.get(r.value);t&&(t.getTracks().forEach(e=>e.stop()),a.value.delete(r.value))}t.showVisualizer&&!a.value.has(e.id)&&h(o,e.id),o.currentTime=0,o.play().catch(e=>{console.error(`Failed to play audio:`,e)}),r.value=e.id}catch(e){console.error(e),r.value=void 0}}function _(){i.value.forEach(e=>{e.pause(),e.src=``}),i.value.clear(),a.value.forEach(e=>{e.getTracks().forEach(e=>e.stop())}),a.value.clear(),o.value.forEach(e=>{e.state!==`closed`&&e.close()}),o.value.clear(),s.value.clear(),r.value=void 0}Ha(u,()=>{if(r.value){let e=i.value.get(r.value);e&&e.pause();let t=a.value.get(r.value);t&&(t.getTracks().forEach(e=>e.stop()),a.value.delete(r.value)),r.value=void 0}}),hi(_);let v=F(``);return(e,i)=>(z(),B(`div`,CEe,[e.searchable?(z(),B(`div`,wEe,[i[4]||=V(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[V(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),cr(V(`input`,{"onUpdate:modelValue":i[0]||=e=>u.value=e,type:`search`,class:`w-full rounded-xl p-2.5 pl-10 text-sm outline-none`,border:`focus:primary-100 dark:focus:primary-400/50 2 solid neutral-200 dark:neutral-800`,transition:`all duration-200 ease-in-out`,bg:`white dark:neutral-900`,placeholder:e.searchPlaceholder},null,8,TEe),[[Rc,u.value]])])):zo(``,!0),V(`div`,EEe,[u.value?(z(),B(`div`,DEe,Pe(e.searchResultsText.replace(`{count}`,f.value.length.toString()).replace(`{total}`,e.voices.length.toString())),1)):zo(``,!0),u.value&&f.value.length===0?(z(),Ao(DQ,{key:1,type:`warning`},{title:L(()=>[Lo(Pe(e.searchNoResultsTitle),1)]),content:L(()=>[Lo(Pe(e.searchNoResultsDescription.replace(`{query}`,u.value)),1)]),_:1})):zo(``,!0),V(`div`,OEe,[V(`div`,{class:Te([`grid auto-cols-[350px] grid-flow-col gap-4 overflow-x-auto scrollbar-none`,[n.value?`grid-cols-1 md:grid-cols-2 grid-flow-row auto-cols-auto`:``,...t.listClass?typeof t.listClass==`string`?[t.listClass]:t.listClass:[`max-h-[calc(100dvh-7lh)]`]]]),transition:`all duration-200 ease-in-out`,style:{"scroll-snap-type":`x mandatory`}},[(z(!0),B(bo,null,Oi(f.value,t=>(z(),Ao(SEe,{key:t.id,"voice-id":d.value,"onUpdate:voiceId":i[1]||=e=>d.value=e,"custom-voice-name":v.value,"onUpdate:customVoiceName":i[2]||=e=>v.value=e,name:`voice`,voice:t,"currently-playing-id":r.value,"custom-input-placeholder":e.customInputPlaceholder,"show-visualizer":e.showVisualizer,"audio-stream":a.value.get(t.id),onTogglePlayback:g},null,8,[`voice-id`,`custom-voice-name`,`voice`,`currently-playing-id`,`custom-input-placeholder`,`show-visualizer`,`audio-stream`]))),128))],2),V(`div`,{bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,class:Te([n.value?`w-full`:`mt-4 w-full rounded-lg`])},[V(`button`,{"w-full":``,flex:``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-lg":``,"py-2":``,transition:`all duration-200 ease-in-out`,class:Te([n.value?`bg-primary-500 hover:bg-primary-600 text-white`:`bg-white dark:bg-neutral-900 hover:bg-neutral-100 dark:hover:bg-neutral-800`]),onClick:i[3]||=e=>n.value=!n.value},[V(`span`,null,Pe(n.value?e.collapseButtonText:e.expandButtonText),1),V(`div`,{class:Te([n.value?`rotate-180`:``,`text-lg`]),"i-solar:alt-arrow-down-linear":``,transition:`transform duration-200 ease-in-out`},null,2)],2)],2)])])]))}}),AEe=CM(kEe,[[`__scopeId`,`data-v-43a4b028`]]);const jEe=[`disabled`],MEe={class:`flex flex-row items-center justify-center gap-2`},NEe={key:0,class:`w-4`},PEe={key:0,class:`i-svg-spinners:ring-resize h-4 w-4`},FEe={key:0};var IEe=R({__name:`Button`,props:{toggled:{type:Boolean,default:!1},icon:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},variant:{default:`primary`},size:{default:`md`},theme:{default:`default`},block:{type:Boolean,default:!1}},setup(e){let t=e,n=U(()=>t.disabled||t.loading),r={primary:{default:{default:`bg-primary-500/15 hover:bg-primary-500/20 active:bg-primary-500/30 dark:bg-primary-700/30 dark:hover:bg-primary-700/40 dark:active:bg-primary-700/30 focus:ring-primary-300/60 dark:focus:ring-primary-600/30 border-2 border-solid border-primary-500/5 dark:border-primary-900/40 text-primary-950 dark:text-primary-100`}},secondary:{default:{default:`bg-neutral-100/55 hover:bg-neutral-400/20 active:bg-neutral-400/30 dark:bg-neutral-700/60 dark:hover:bg-neutral-700/80 dark:active:bg-neutral-700/60 focus:ring-neutral-300/30 dark:focus:ring-neutral-600/60 dark:focus:ring-neutral-600/30 border-2 border-solid border-neutral-300/30 dark:border-neutral-700/30 text-neutral-950 dark:text-neutral-100`}},"secondary-muted":{default:{default:`hover:bg-neutral-50/50 active:bg-neutral-50/90 hover:dark:bg-neutral-800/50 active:dark:bg-neutral-800/90 border-2 border-solid border-neutral-100/60 dark:border-neutral-800/30 focus:ring-neutral-300/30 dark:focus:ring-neutral-600/60 dark:focus:ring-neutral-600/30`,nonToggled:`bg-neutral-50/70 dark:bg-neutral-800/70 text-neutral-500 dark:text-neutral-400`,toggled:`bg-white/90 dark:bg-neutral-500/70 ring-neutral-300/30 dark:ring-neutral-600/60 ring-2 dark:ring-neutral-600/30 text-primary-500 dark:text-primary-100`}},danger:{default:{default:`bg-red-500/15 hover:bg-red-500/20 active:bg-red-500/30 dark:bg-red-700/30 dark:hover:bg-red-700/40 dark:active:bg-red-700/30 focus:ring-red-300/30 dark:focus:ring-red-600/60 dark:focus:ring-red-600/30 border-2 border-solid border-red-200/30 dark:border-red-900/30 text-red-950 dark:text-red-100`}}},i={sm:`px-3 py-1.5 text-xs`,md:`px-4 py-2 text-sm`,lg:`px-6 py-3 text-base`},a=U(()=>[`rounded-lg font-medium outline-none`,`transition-all duration-200 ease-in-out`,`disabled:cursor-not-allowed disabled:opacity-50`,`backdrop-blur-md`,t.block?`w-full`:``,i[t.size],r[t.variant][t.theme].default,t.toggled?r[t.variant][t.theme].toggled||``:r[t.variant][t.theme].nonToggled||``,{"opacity-50 cursor-not-allowed":n.value},`focus:ring-2`]);return(e,t)=>(z(),B(`button`,{disabled:n.value,class:Te(a.value)},[V(`div`,MEe,[H(I(Zde),{"from-class":`opacity-0 mr-0! w-0!`,"active-class":`transition-[width,margin] ease-in-out overflow-hidden transition-100`},{default:L(()=>[e.loading||e.icon?(z(),B(`div`,NEe,[e.loading?(z(),B(`div`,PEe)):e.icon?(z(),B(`div`,{key:1,class:Te([`h-4 w-4`,e.icon])},null,2)):zo(``,!0)])):zo(``,!0)]),_:1}),e.label?(z(),B(`span`,FEe,Pe(e.label),1)):Ai(e.$slots,`default`,{key:1})])],10,jEe))}}),kQ=IEe;const LEe={class:`whitespace-pre-wrap break-all`};var REe=R({__name:`ErrorContainer`,props:{title:{},error:{}},setup(e){return(e,t)=>(z(),Ao(DQ,{type:`error`},ki({title:L(()=>[Lo(Pe(e.title),1)]),_:2},[e.error?{name:`content`,fn:L(()=>[V(`pre`,LEe,Pe(String(e.error)),1)]),key:`0`}:void 0]),1024))}}),zEe=REe,BEe=R({__name:`Screen`,setup(e){let t=F(),n=QT(ZT),{width:r,height:i}=uce(),a=uE(t,{immediate:!0,windowResize:!0,reset:!0}),o=U(()=>n.between(`sm`,`md`).value||n.smaller(`sm`).value),s=U(()=>n.between(`md`,`lg`).value),c=U(()=>n.greaterOrEqual(`lg`).value),l=U(()=>c.value?a.width.value:o.value||s.value?r.value-16:a.width.value),u=F(0);return Ha([r,i,t],()=>{let e=t.value?.parentElement?.getBoundingClientRect();c.value||o.value||s.value?u.value=e?.height||0:u.value=600}),Ha([a.width,a.height],()=>{c.value||o.value||s.value?u.value=a.height.value:u.value=600}),fi(async()=>{t.value&&a.update()}),(e,n)=>(z(),B(`div`,{ref_key:`containerRef`,ref:t,"h-full":``,"w-full":``},[Ai(e.$slots,`default`,{width:l.value,height:u.value})],512))}}),VEe=BEe,HEe=R({__name:`Skeleton`,props:{animation:{default:`pulse`}},setup(e){let t=e;return(e,n)=>(z(),B(`div`,{class:Te([`skeleton`,t.animation===`none`?``:`skeleton-${t.animation}`]),bg:`neutral-200 dark:neutral-800`,overflow:`hidden`},[Ai(e.$slots,`default`,{},void 0,!0)],2))}}),UEe=CM(HEe,[[`__scopeId`,`data-v-fa4a54cc`]]),WEe=R({__name:`CursorFloating`,props:{intensity:{default:1.5}},setup(e){let t=e,n=F(null),r=F(``),i=F(`50% 50%`),a=F(`50% 50%`),o=F(.5);function s(e){if(!n.value)return;let s=n.value,c=s.getBoundingClientRect(),l=e.clientX-c.left,u=e.clientY-c.top,d=s.offsetWidth,f=s.offsetHeight,p=Math.abs(Math.floor(100/d*l)-100),m=Math.abs(Math.floor(100/f*u)-100),h=50+(p-50)/1.5,g=50+(m-50)/1.5,_=50+(p-50)/7,v=50+(m-50)/7,y=(h-50)/1.5*.2*t.intensity,b=(g-50)/2*-1*.2*t.intensity,x=50-p+(50-m),S=.5+Math.abs(x)*.008*t.intensity;r.value=`perspective(1200px) rotateX(${b}deg) rotateY(${y}deg) scale3d(${1+.015*t.intensity}, ${1+.015*t.intensity}, ${1+.015*t.intensity})`,i.value=`${h}% ${g}%`,a.value=`${_}% ${v}%`,o.value=S}function c(){r.value=`perspective(1200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`,i.value=`50% 50%`,a.value=`50% 50%`,o.value=.5}return fi(()=>{r.value=`perspective(1200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`}),(e,t)=>(z(),B(`div`,{ref_key:`cardRef`,ref:n,class:`card-hover-effect`,style:be({transform:r.value,"--effect-intensity":e.intensity}),onMousemove:s,onMouseleave:c},[Ai(e.$slots,`default`,{},void 0,!0)],36))}}),GEe=CM(WEe,[[`__scopeId`,`data-v-24a7a9d5`]]);(function(){var e;try{if(typeof document<`u`){var t=document.createElement(`style`);t.nonce=(e=document.head.querySelector(`meta[property=csp-nonce]`))?.content,t.appendChild(document.createTextNode(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32,.72,0,1);animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform, 100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform, 100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true]):after{content:"";position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:hover,[data-vaul-handle]:active{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover: hover) and (pointer: fine){[data-vaul-drawer]{-webkit-user-select:none;user-select:none}}@media (pointer: fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{0%{transform:translate3d(0,var(--initial-transform, 100%),0)}to{transform:translateZ(0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform, 100%),0)}}@keyframes slideFromTop{0%{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}to{transform:translateZ(0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}}@keyframes slideFromLeft{0%{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}to{transform:translateZ(0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}}@keyframes slideFromRight{0%{transform:translate3d(var(--initial-transform, 100%),0,0)}to{transform:translateZ(0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform, 100%),0,0)}}`)),document.head.appendChild(t)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();const KEe=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const qEe=e=>typeof e<`u`;function JEe(e){return JSON.parse(JSON.stringify(e))}function AQ(e,t,n,r={}){var i,a,o;let{clone:s=!1,passive:c=!1,eventName:l,deep:u=!1,defaultValue:d,shouldEmit:f}=r,p=qo(),m=n||p?.emit||(i=p?.$emit)?.bind(p)||(o=(a=p?.proxy)?.$emit)?.bind(p?.proxy),h=l;t||=`modelValue`,h||=`update:${t.toString()}`;let g=e=>s?typeof s==`function`?s(e):JEe(e):e,_=()=>qEe(e[t])?g(e[t]):d,v=e=>{f?f(e)&&m(h,e):m(h,e)};if(c){let n=_(),r=F(n),i=!1;return Ha(()=>e[t],e=>{i||(i=!0,r.value=g(e),Gn(()=>i=!1))}),Ha(r,n=>{!i&&(n!==e[t]||u)&&v(n)},{deep:u}),r}else return U({get(){return _()},set(e){v(e)}})}const[jQ,YEe]=Jk(`DrawerRoot`),MQ=new WeakMap;function NQ(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&MQ.set(e,r)}function XEe(e,t){if(!e||!(e instanceof HTMLElement))return;let n=MQ.get(e);n&&Object.entries(n).forEach(([t,n])=>{e.style[t]=n})}function PQ(e,t){let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?Number.parseFloat(i[1].split(`, `)[FQ(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?Number.parseFloat(i[1].split(`, `)[FQ(t)?5:4]):null)}function ZEe(e){return 8*(Math.log(e+1)-2)}function FQ(e){switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}}function IQ(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function QEe(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}const LQ={DURATION:.5,EASE:[.32,.72,0,1]},RQ=.4,zQ=`vaul-dragging`;function $Ee({activeSnapPoint:e,snapPoints:t,drawerRef:n,overlayRef:r,fadeFromIndex:i,onSnapPointChange:a,direction:o}){let s=F(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);function c(){s.value={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}fi(()=>{typeof window<`u`&&window.addEventListener(`resize`,c)}),hi(()=>{typeof window<`u`&&window.removeEventListener(`resize`,c)});let l=U(()=>(t.value&&e.value===t.value[t.value.length-1])??null),u=U(()=>t.value&&t.value.length>0&&(i?.value||i?.value===0)&&!Number.isNaN(i?.value)&&t.value[i?.value??-1]===e.value||!t.value),d=U(()=>{var n;return(n=t.value)?.findIndex(t=>t===e.value)??null}),f=U(()=>{var e;return(e=t.value)?.map(e=>{let t=typeof e==`string`,n=0;if(t&&(n=Number.parseInt(e,10)),FQ(o.value)){let r=t?n:s.value?e*s.value.innerHeight:0;return s.value?o.value===`bottom`?s.value.innerHeight-r:-s.value.innerHeight+r:r}let r=t?n:s.value?e*s.value.innerWidth:0;return s.value?o.value===`right`?s.value.innerWidth-r:-s.value.innerWidth+r:r})??[]}),p=U(()=>{var e;return d.value===null?null:(e=f.value)?.[d.value]}),m=s=>{var c,l,u,d;let p=(c=f.value)?.findIndex(e=>e===s)??null;Gn(()=>{var e;a(p,f.value),NQ((e=n.value)?.$el,{transition:`transform ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,transform:FQ(o.value)?`translate3d(0, ${s}px, 0)`:`translate3d(${s}px, 0, 0)`})}),f.value&&p!==f.value.length-1&&p!==i?.value?NQ((l=r.value)?.$el,{transition:`opacity ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,opacity:`0`}):NQ((u=r.value)?.$el,{transition:`opacity ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,opacity:`1`}),e.value=p===null?null:(d=t.value)?.[p]??null};Ha([e,f,t],()=>{var n;if(e.value){let r=(n=t.value)?.findIndex(t=>t===e.value)??-1;f.value&&r!==-1&&typeof f.value[r]==`number`&&m(f.value[r])}},{immediate:!0});function h({draggedDistance:e,closeDrawer:n,velocity:a,dismissible:s}){var c,u,h;if(i.value===void 0)return;let g=o.value===`bottom`||o.value===`right`?(p.value??0)-e:(p.value??0)+e,_=d.value===i.value-1,v=d.value===0,y=e>0;if(_&&NQ((c=r.value)?.$el,{transition:`opacity ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`}),a>2&&!y){s?n():m(f.value[0]);return}if(a>2&&y&&f&&t.value){m(f.value[t.value.length-1]);return}let b=(u=f.value)?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-g)RQ&&Math.abs(e)0&&l){m(f.value[((h=t.value)?.length??0)-1]);return}if(v&&e<0&&s&&n(),d.value===null)return;m(f.value[d.value+e]);return}m(b)}function g({draggedDistance:e}){var t;if(p.value===null)return;let r=o.value===`bottom`||o.value===`right`?p.value-e:p.value+e;(o.value===`bottom`||o.value===`right`)&&rf.value[f.value.length-1]||NQ((t=n.value)?.$el,{transform:FQ(o.value)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}function _(e,n){if(!t.value||typeof d.value!=`number`||!f.value||i.value===void 0)return null;let r=d.value===i.value-1;if(d.value>=i.value&&n)return 0;if(r&&!n)return 1;if(!u.value&&!r)return null;let a=r?d.value+1:d.value-1,o=r?f.value[a]-f.value[a-1]:f.value[a+1]-f.value[a],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:l,shouldFade:u,getPercentageDragged:_,activeSnapPointIndex:d,onRelease:h,onDrag:g,snapPointsOffset:f}}function BQ(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}let VQ=null;function eDe(e){let{isOpen:t,modal:n,nested:r,hasBeenOpened:i,preventScrollRestoration:a,noBodyStyles:o}=e,s=F(typeof window<`u`?window.location.href:``),c=F(0);function l(){if(BQ()&&VQ===null&&t.value&&!o.value){VQ={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.value}px`,left:`${-e}px`,right:`0px`,height:`auto`}),setTimeout(()=>{requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.value>=t&&(document.body.style.top=`-${c.value+e}px`)})},300)}}function u(){if(BQ()&&VQ!==null&&!o.value){let e=-Number.parseInt(document.body.style.top,10),t=-Number.parseInt(document.body.style.left,10);Object.assign(document.body.style,VQ),window.requestAnimationFrame(()=>{if(a.value&&s.value!==window.location.href){s.value=window.location.href;return}window.scrollTo(t,e)}),VQ=null}}return fi(()=>{function e(){c.value=window.scrollY}e(),window.addEventListener(`scroll`,e),gi(()=>{window.removeEventListener(`scroll`,e)})}),Ha([t,i,s],()=>{r.value||!i.value||(t.value?(window.matchMedia(`(display-mode: standalone)`).matches||l(),n.value||setTimeout(()=>{u()},500)):u())}),{restorePositionSetting:u}}function tDe(e,t){return e&&e.value?e:t}function nDe(e){let{emitDrag:t,emitRelease:n,emitClose:r,emitOpenChange:i,open:a,dismissible:o,nested:s,modal:c,shouldScaleBackground:l,setBackgroundColorOnScale:u,scrollLockTimeout:d,closeThreshold:f,activeSnapPoint:p,fadeFromIndex:m,direction:h,noBodyStyles:g,handleOnly:_,preventScrollRestoration:v}=e,y=F(a.value??!1),b=F(!1),x=F(!1),S=F(!1),C=F(null),w=F(null),T=F(null),E=F(null),D=F(null),O=F(!1),k=F(null),A=F(0),j=F(!1);F(0);let M=F(null);F(0);let ee=U(()=>{var e;return(e=M.value)?.$el.getBoundingClientRect().height||0}),te=tDe(e.snapPoints,F(void 0)),N=U(()=>{var e;return te&&((e=te.value)?.length??0)>0}),ne=F(null),{activeSnapPointIndex:re,onRelease:ie,snapPointsOffset:ae,onDrag:oe,shouldFade:se,getPercentageDragged:ce}=$Ee({snapPoints:te,activeSnapPoint:p,drawerRef:M,fadeFromIndex:m,overlayRef:C,onSnapPointChange:le,direction:h});function le(e,t){te.value&&e===t.length-1&&(w.value=new Date)}eDe({isOpen:y,modal:c,nested:s,hasBeenOpened:b,noBodyStyles:g,preventScrollRestoration:v});function ue(){return(window.innerWidth-26)/window.innerWidth}function de(e,t){var n;if(!e)return!1;let r=e,i=(n=window.getSelection())?.toString(),a=M.value?PQ(M.value.$el,h.value):null,o=new Date;if(r.hasAttribute(`data-vaul-no-drag`)||r.closest(`[data-vaul-no-drag]`))return!1;if(h.value===`right`||h.value===`left`)return!0;if(w.value&&o.getTime()-w.value.getTime()<500)return!1;if(a!==null&&(h.value===`bottom`?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(D.value&&o.getTime()-D.value.getTime()r.clientHeight){if(r.scrollTop!==0)return D.value=new Date,!1;if(r.getAttribute(`role`)===`dialog`)return!0}r=r.parentNode}return!0}function fe(e){!o.value&&!te.value||M.value&&!M.value.$el.contains(e.target)||(x.value=!0,T.value=new Date,e.target.setPointerCapture(e.pointerId),A.value=FQ(h.value)?e.clientY:e.clientX)}function pe(e){var n,r,i,a,s,c;if(M.value&&x.value){let u=h.value===`bottom`||h.value===`right`?1:-1,d=(A.value-(FQ(h.value)?e.clientY:e.clientX))*u,f=d>0,p=te.value&&!o.value&&!f;if(p&&re.value===0)return;let g=Math.abs(d),_=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`),v=g/ee.value,y=ce(g,f);if(y!==null&&(v=y),p&&v>=1||!O.value&&!de(e.target,f))return;if((n=M?.value)==null||n.$el.classList.add(zQ),O.value=!0,NQ((r=M.value)?.$el,{transition:`none`}),NQ((i=C.value)?.$el,{transition:`none`}),te.value&&oe({draggedDistance:d}),f&&!te.value){let e=ZEe(d),t=Math.min(e*-1,0)*u;NQ((a=M.value)?.$el,{transform:FQ(h.value)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`});return}let b=1-v;if((se.value||m.value&&re.value===m.value-1)&&(t(v),NQ((s=C.value)?.$el,{opacity:`${b}`,transition:`none`},!0)),_&&C.value&&l.value){let e=Math.min(ue()+v*(1-ue()),1),t=8-v*8,n=Math.max(0,14-v*14);NQ(_,{borderRadius:`${t}px`,transform:FQ(h.value)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!te.value){let e=g*u;NQ((c=M.value)?.$el,{transform:FQ(h.value)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}function P(){var e;if(!M.value)return;let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`),n=PQ(M.value.$el,h.value);NQ(M.value.$el,{transform:`translate3d(0, 0, 0)`,transition:`transform ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`}),NQ((e=C.value)?.$el,{transition:`opacity ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,opacity:`1`}),l.value&&n&&n>0&&y.value&&NQ(t,{borderRadius:`8px`,overflow:`hidden`,...FQ(h.value)?{transform:`scale(${ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${ue()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${LQ.DURATION}s`,transitionTimingFunction:`cubic-bezier(${LQ.EASE.join(`,`)})`},!0)}function me(e){M.value&&(r(),e||(y.value=!1),window.setTimeout(()=>{te.value&&(p.value=te.value[0])},LQ.DURATION*1e3))}za(()=>{if(!y.value&&l.value&&KEe){let e=setTimeout(()=>{XEe(document.body)},200);return()=>clearTimeout(e)}}),Ha(a,()=>{y.value=a.value,a.value||me()});function he(e){if(!x.value||!M.value)return;M.value.$el.classList.remove(zQ),O.value=!1,x.value=!1,E.value=new Date;let t=PQ(M.value.$el,h.value);if(!de(e.target,!1)||!t||Number.isNaN(t)||T.value===null)return;let r=E.value.getTime()-T.value.getTime(),i=A.value-(FQ(h.value)?e.clientY:e.clientX),a=Math.abs(i)/r;if(a>.05&&(S.value=!0,window.setTimeout(()=>{S.value=!1},200)),te.value){let e=h.value===`bottom`||h.value===`right`?1:-1;ie({draggedDistance:i*e,closeDrawer:me,velocity:a,dismissible:o.value}),n(!0);return}if(h.value===`bottom`||h.value===`right`?i>0:i<0){P(),n(!0);return}if(a>RQ){me(),n(!1);return}let s=Math.min(M.value.$el.getBoundingClientRect().height??0,window.innerHeight);if(t>=s*f.value){me(),n(!1);return}n(!0),P()}Ha(y,e=>{e&&(w.value=new Date),i(e)},{immediate:!0});function ge(e){var t,n;let r=e?(window.innerWidth-16)/window.innerWidth:1,i=e?-16:0;k.value&&window.clearTimeout(k.value),NQ((t=M.value)?.$el,{transition:`transform ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,transform:`scale(${r}) translate3d(0, ${i}px, 0)`}),!e&&(n=M.value)!=null&&n.$el&&(k.value=window.setTimeout(()=>{var e,t;let n=PQ((e=M.value)?.$el,h.value);NQ((t=M.value)?.$el,{transition:`none`,transform:FQ(h.value)?`translate3d(0, ${n}px, 0)`:`translate3d(${n}px, 0, 0)`})},500))}function _e(e){var t;if(e<0)return;let n=FQ(h.value)?window.innerHeight:window.innerWidth,r=(n-16)/n,i=r+e*(1-r),a=-16+e*16;NQ((t=M.value)?.$el,{transform:FQ(h.value)?`scale(${i}) translate3d(0, ${a}px, 0)`:`scale(${i}) translate3d(${a}px, 0, 0)`,transition:`none`})}function ve(e){var t;let n=FQ(h.value)?window.innerHeight:window.innerWidth,r=e?(n-16)/n:1,i=e?-16:0;e&&NQ((t=M.value)?.$el,{transition:`transform ${LQ.DURATION}s cubic-bezier(${LQ.EASE.join(`,`)})`,transform:FQ(h.value)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return{open:a,isOpen:y,modal:c,keyboardIsOpen:j,hasBeenOpened:b,drawerRef:M,drawerHeightRef:ee,overlayRef:C,handleRef:ne,isDragging:x,dragStartTime:T,isAllowedToDrag:O,snapPoints:te,activeSnapPoint:p,hasSnapPoints:N,pointerStart:A,dismissible:o,snapPointsOffset:ae,direction:h,shouldFade:se,fadeFromIndex:m,shouldScaleBackground:l,setBackgroundColorOnScale:u,onPress:fe,onDrag:pe,onRelease:he,closeDrawer:me,onNestedDrag:_e,onNestedRelease:ve,onNestedOpenChange:ge,emitClose:r,emitDrag:t,emitRelease:n,emitOpenChange:i,nested:s,handleOnly:_,noBodyStyles:g}}const HQ=R({__name:`DrawerRoot`,props:{activeSnapPoint:{default:void 0},closeThreshold:{default:.25},shouldScaleBackground:{type:Boolean,default:void 0},setBackgroundColorOnScale:{type:Boolean,default:!0},scrollLockTimeout:{default:100},fixed:{type:Boolean,default:void 0},dismissible:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},nested:{type:Boolean,default:!1},direction:{default:`bottom`},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean,default:!1},preventScrollRestoration:{type:Boolean},snapPoints:{default:void 0},fadeFromIndex:{default:void 0}},emits:[`drag`,`release`,`close`,`update:open`,`update:activeSnapPoint`,`animationEnd`],setup(e,{expose:t,emit:n}){let r=e,i=n;Gi();let a=U(()=>r.fadeFromIndex??(r.snapPoints&&r.snapPoints.length-1)),o=AQ(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0}),s=AQ(r,`activeSnapPoint`,i,{passive:r.activeSnapPoint===void 0}),c={emitDrag:e=>i(`drag`,e),emitRelease:e=>i(`release`,e),emitClose:()=>i(`close`),emitOpenChange:e=>{i(`update:open`,e),setTimeout(()=>{i(`animationEnd`,e)},LQ.DURATION*1e3)}},{closeDrawer:l,hasBeenOpened:u,modal:d,isOpen:f}=YEe(nDe({...c,..._n(r),activeSnapPoint:s,fadeFromIndex:a,open:o}));function p(e){if(o.value!==void 0){c.emitOpenChange(e);return}f.value=e,e?u.value=!0:l()}return t({open:f}),(e,t)=>(z(),Ao(I(TA),{open:I(f),modal:I(d),"onUpdate:open":p},{default:L(()=>[Ai(e.$slots,`default`,{open:I(f)})]),_:3},8,[`open`,`modal`]))}});Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const UQ=R({__name:`DrawerOverlay`,setup(e){let{overlayRef:t,hasSnapPoints:n,isOpen:r,shouldFade:i}=jQ();return(e,a)=>(z(),Ao(I(WA),{ref_key:`overlayRef`,ref:t,"data-vaul-overlay":``,"data-vaul-snap-points":I(r)&&I(n)?`true`:`false`,"data-vaul-snap-points-overlay":I(r)&&I(i)?`true`:`false`},null,8,[`data-vaul-snap-points`,`data-vaul-snap-points-overlay`]))}}),rDe=()=>()=>{};function iDe(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=jQ(),a=F(null),o=F(document.body.style.backgroundColor);function s(){return(window.innerWidth-26)/window.innerWidth}za(c=>{if(t.value&&n.value){a.value&&clearTimeout(a.value);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;QEe(r.value&&!i.value?IQ(document.body,{background:`black`}):rDe,IQ(t,{transformOrigin:FQ(e.value)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${LQ.DURATION}s`,transitionTimingFunction:`cubic-bezier(${LQ.EASE.join(`,`)})`}));let n=IQ(t,{borderRadius:`8px`,overflow:`hidden`,...FQ(e.value)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});c(()=>{n(),a.value=window.setTimeout(()=>{o.value?document.body.style.background=o.value:document.body.style.removeProperty(`background`)},LQ.DURATION*1e3)})}},{flush:`pre`})}const WQ=R({__name:`DrawerContent`,setup(e){let{open:t,isOpen:n,snapPointsOffset:r,hasSnapPoints:i,drawerRef:a,onPress:o,onDrag:s,onRelease:c,modal:l,emitOpenChange:u,dismissible:d,keyboardIsOpen:f,closeDrawer:p,direction:m,handleOnly:h}=jQ();iDe();let g=F(!1),_=U(()=>r.value&&r.value.length>0?`${r.value[0]}px`:`0`);function v(e){if(!l.value||e.defaultPrevented){e.preventDefault();return}f.value&&=!1,d.value?u(!1):e.preventDefault()}function y(e){h.value||o(e)}function b(e){h.value||s(e)}return za(()=>{i.value&&window.requestAnimationFrame(()=>{g.value=!0})}),(e,t)=>(z(),Ao(I(UA),{ref_key:`drawerRef`,ref:a,"data-vaul-drawer":``,"data-vaul-drawer-direction":I(m),"data-vaul-delayed-snap-points":g.value?`true`:`false`,"data-vaul-snap-points":I(n)&&I(i)?`true`:`false`,style:be({"--snap-point-height":_.value}),onPointerdown:y,onPointermove:b,onPointerup:I(c),onPointerDownOutside:v,onOpenAutoFocus:t[0]||=Yc(()=>{},[`prevent`]),onEscapeKeyDown:t[1]||=e=>{I(d)||e.preventDefault()}},{default:L(()=>[Ai(e.$slots,`default`)]),_:3},8,[`data-vaul-drawer-direction`,`data-vaul-delayed-snap-points`,`data-vaul-snap-points`,`style`,`onPointerup`]))}}),aDe=[`data-vaul-drawer-visible`],oDe={"data-vaul-handle-hitarea":``,"aria-hidden":`true`},GQ=R({__name:`DrawerHandle`,props:{preventCycle:{type:Boolean,default:!1}},setup(e){let t=e,{onPress:n,onDrag:r,handleRef:i,handleOnly:a,isOpen:o,snapPoints:s,activeSnapPoint:c,isDragging:l,dismissible:u,closeDrawer:d}=jQ(),f=F(null),p=F(!1);function m(){if(p.value){_();return}window.setTimeout(()=>{h()},120)}function h(){if(l.value||t.preventCycle||p.value){_();return}if(_(),!s.value||s.value.length===0){u.value||d();return}let e=c.value===s.value[s.value.length-1];if(e&&u.value){d();return}let n=s.value.findIndex(e=>e===c.value);if(n===-1)return;let r=e?0:n+1;c.value=s.value[r]}function g(){f.value=window.setTimeout(()=>{p.value=!0},250)}function _(){f.value&&window.clearTimeout(f.value),p.value=!1}function v(e){a.value&&n(e),g()}function y(e){a.value&&r(e)}return(e,t)=>(z(),B(`div`,{ref_key:`handleRef`,ref:i,"data-vaul-drawer-visible":I(o)?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,onClick:m,onPointercancel:_,onPointerdown:v,onPointermove:y},[V(`span`,oDe,[Ai(e.$slots,`default`)])],40,aDe))}});var sDe=R({__name:`Dialog`,props:{modelValue:{type:Boolean,default:!1,required:!1},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=Ka(e,`modelValue`),n=XT(`(min-width: 768px)`),r=_E();return lE(document.documentElement,()=>r.update()),fi(()=>r.update()),(e,i)=>I(n)?(z(),Ao(I(TA),{key:0,open:t.value,"onUpdate:open":i[0]||=e=>t.value=e},{default:L(()=>[Ai(e.$slots,`trigger`),H(I(KA),null,{default:L(()=>[H(I(WA),{class:`fixed inset-0 z-[9999] bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),H(I(UA),{class:`fixed left-1/2 top-1/2 z-[9999] max-h-full max-w-2xl w-[92dvw] transform overflow-y-scroll rounded-2xl bg-white p-6 shadow-xl outline-none backdrop-blur-md scrollbar-none -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:bg-neutral-900`},{default:L(()=>[Ai(e.$slots,`default`)]),_:3})]),_:3})]),_:3},8,[`open`])):(z(),Ao(I(HQ),{key:1,open:t.value,"should-scale-background":``,"onUpdate:open":i[1]||=e=>t.value=e},{default:L(()=>[H(I(KA),null,{default:L(()=>[H(I(UQ),{class:`fixed inset-0`}),H(I(WQ),{class:`fixed bottom-0 left-0 right-0 z-1000 mt-20 h-full max-h-[96%] flex flex-col rounded-t-2xl bg-neutral-50 px-4 pt-4 outline-none backdrop-blur-md dark:bg-neutral-900/95`,style:be({paddingBottom:`${Math.max(Number.parseFloat(I(r).bottom.value.replace(`px`,``)),24)}px`})},{default:L(()=>[H(I(GQ)),Ai(e.$slots,`default`)]),_:3},8,[`style`])]),_:3})]),_:3},8,[`open`]))}}),cDe=sDe; /*! * shared v11.1.11 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */ -function aEe(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}const KQ=typeof window<`u`,qQ=(e,t=!1)=>t?Symbol.for(e):Symbol(e),oEe=(e,t,n)=>sEe({l:e,k:t,s:n}),sEe=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),JQ=e=>typeof e==`number`&&isFinite(e),cEe=e=>l$(e)===`[object Date]`,YQ=e=>l$(e)===`[object RegExp]`,XQ=e=>u$(e)&&Object.keys(e).length===0,ZQ=Object.assign,lEe=Object.create,QQ=(e=null)=>lEe(e),$Q=()=>typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:QQ();function e$(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function t$(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(//g,`>`)}function uEe(e){e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${t$(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${t$(n)}'`);let t=/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi;t.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1on$3`));let n=[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi];return n.forEach(t=>{e=e.replace(t,`$1javascript:`)}),e}const dEe=Object.prototype.hasOwnProperty;function n$(e,t){return dEe.call(e,t)}const r$=Array.isArray,i$=e=>typeof e==`function`,a$=e=>typeof e==`string`,o$=e=>typeof e==`boolean`,s$=e=>typeof e==`object`&&!!e,fEe=e=>s$(e)&&i$(e.then)&&i$(e.catch),c$=Object.prototype.toString,l$=e=>c$.call(e),u$=e=>l$(e)===`[object Object]`,pEe=e=>e==null?``:r$(e)||u$(e)&&e.toString===c$?JSON.stringify(e,null,2):String(e);function d$(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}const f$=e=>!s$(e)||r$(e);function p$(e,t){if(f$(e)||f$(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(s$(e[r])&&!s$(t[r])&&(t[r]=Array.isArray(e[r])?[]:QQ()),f$(t[r])||f$(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function mEe(e,t,n){return{line:e,column:t,offset:n}}function m$(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}const h$={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};h$.EXPECTED_TOKEN,h$.INVALID_TOKEN_IN_PLACEHOLDER,h$.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,h$.UNKNOWN_ESCAPE_SEQUENCE,h$.INVALID_UNICODE_ESCAPE_SEQUENCE,h$.UNBALANCED_CLOSING_BRACE,h$.UNTERMINATED_CLOSING_BRACE,h$.EMPTY_PLACEHOLDER,h$.NOT_ALLOW_NEST_PLACEHOLDER,h$.INVALID_LINKED_FORMAT,h$.MUST_HAVE_MESSAGES_IN_PLURAL,h$.UNEXPECTED_EMPTY_LINKED_MODIFIER,h$.UNEXPECTED_EMPTY_LINKED_KEY,h$.UNEXPECTED_LEXICAL_ANALYSIS,h$.UNHANDLED_CODEGEN_NODE_TYPE,h$.UNHANDLED_MINIFIER_NODE_TYPE;function g$(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=e,s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function hEe(e){throw e}function gEe(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===`\r`&&t[e+1]===` +function lDe(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}const KQ=typeof window<`u`,qQ=(e,t=!1)=>t?Symbol.for(e):Symbol(e),uDe=(e,t,n)=>dDe({l:e,k:t,s:n}),dDe=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),JQ=e=>typeof e==`number`&&isFinite(e),fDe=e=>l$(e)===`[object Date]`,YQ=e=>l$(e)===`[object RegExp]`,XQ=e=>u$(e)&&Object.keys(e).length===0,ZQ=Object.assign,pDe=Object.create,QQ=(e=null)=>pDe(e),$Q=()=>typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:QQ();function e$(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function t$(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(//g,`>`)}function mDe(e){e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${t$(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${t$(n)}'`);let t=/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi;t.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1on$3`));let n=[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi];return n.forEach(t=>{e=e.replace(t,`$1javascript:`)}),e}const hDe=Object.prototype.hasOwnProperty;function n$(e,t){return hDe.call(e,t)}const r$=Array.isArray,i$=e=>typeof e==`function`,a$=e=>typeof e==`string`,o$=e=>typeof e==`boolean`,s$=e=>typeof e==`object`&&!!e,gDe=e=>s$(e)&&i$(e.then)&&i$(e.catch),c$=Object.prototype.toString,l$=e=>c$.call(e),u$=e=>l$(e)===`[object Object]`,_De=e=>e==null?``:r$(e)||u$(e)&&e.toString===c$?JSON.stringify(e,null,2):String(e);function d$(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}const f$=e=>!s$(e)||r$(e);function p$(e,t){if(f$(e)||f$(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(s$(e[r])&&!s$(t[r])&&(t[r]=Array.isArray(e[r])?[]:QQ()),f$(t[r])||f$(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function vDe(e,t,n){return{line:e,column:t,offset:n}}function m$(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}const h$={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};h$.EXPECTED_TOKEN,h$.INVALID_TOKEN_IN_PLACEHOLDER,h$.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,h$.UNKNOWN_ESCAPE_SEQUENCE,h$.INVALID_UNICODE_ESCAPE_SEQUENCE,h$.UNBALANCED_CLOSING_BRACE,h$.UNTERMINATED_CLOSING_BRACE,h$.EMPTY_PLACEHOLDER,h$.NOT_ALLOW_NEST_PLACEHOLDER,h$.INVALID_LINKED_FORMAT,h$.MUST_HAVE_MESSAGES_IN_PLURAL,h$.UNEXPECTED_EMPTY_LINKED_MODIFIER,h$.UNEXPECTED_EMPTY_LINKED_KEY,h$.UNEXPECTED_LEXICAL_ANALYSIS,h$.UNHANDLED_CODEGEN_NODE_TYPE,h$.UNHANDLED_MINIFIER_NODE_TYPE;function g$(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=e,s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function yDe(e){throw e}function bDe(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===`\r`&&t[e+1]===` `,s=e=>t[e]===` `,c=e=>t[e]===`\u2029`,l=e=>t[e]===`\u2028`,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?` -`:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}function _Ee(e,t={}){let n=t.location!==!1,r=gEe(e),i=()=>r.index(),a=()=>mEe(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();if(t.column+=r,t.offset+=r,u){let r=n?m$(a.startLoc,t):null,o=g$(e,r,{domain:`tokenizer`,args:i});u(o)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=m$(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(h$.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===` `||e.currentPeek()===` +`:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}function xDe(e,t={}){let n=t.location!==!1,r=bDe(e),i=()=>r.index(),a=()=>vDe(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();if(t.column+=r,t.offset+=r,u){let r=n?m$(a.startLoc,t):null,o=g$(e,r,{domain:`tokenizer`,args:i});u(o)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=m$(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(h$.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===` `||e.currentPeek()===` `;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===void 0)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===void 0)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===`-`?e.peek():e.currentPeek(),i=v(r);return e.resetPeek(),i}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===`'`;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===` `||!t?!1:t===` `?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===` `||r===` `):i===` `?(e.peek(),n(!0,` `)):i===` @@ -4160,8 +4163,8 @@ function aEe(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.w `||r===void 0?(d(h$.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===` `&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function le(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return ue(e,t,4);case`U`:return ue(e,t,6);default:return d(h$.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function ue(e,t,n){m(e,t);let r=``;for(let i=0;i{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===` `?n:(n+=r,e.next(),t(n))};return t(``)}function me(e){g(e);let t=m(e,`|`);return g(e),t}function he(e,t){let n=null,r=e.currentChar();switch(r){case`{`:return t.braceNest>=1&&d(h$.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(h$.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(h$.UNTERMINATED_CLOSING_BRACE,a(),0),n=ge(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(h$.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(h$.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,_e(e,t);if(r=y(e,t))return n=f(t,4,ae(e)),g(e),n;if(i=b(e,t))return n=f(t,5,oe(e)),g(e),n;if(o=x(e,t))return n=f(t,6,ce(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,fe(e)),d(h$.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function ge(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===` -`||i===` `)&&d(h$.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),ge(e,t)):C(e,t)?(g(e),f(t,11,pe(e))):T(e,t)?(g(e),i===`{`?he(e,t)||r:f(t,10,P(e))):(n===7&&d(h$.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,_e(e,t))}}function _e(e,t){let n={type:13};if(t.braceNest>0)return he(e,t)||p(t);if(t.inLinked)return ge(e,t)||p(t);let r=e.currentChar();switch(r){case`{`:return he(e,t)||p(t);case`}`:return d(h$.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return ge(e,t)||p(t);default:if(E(e))return n=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,ie(e));break}return n}function ve(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===void 0?f(c,13):_e(r,c)}return{nextToken:ve,currentOffset:i,currentPosition:a,context:l}}const vEe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function yEe(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function bEe(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();if(s.offset+=a,s.column+=a,n){let e=t?m$(i,s):null,a=g$(r,e,{domain:`parser`,args:o});n(a)}}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(5,r,o);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){let n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(4,r,o);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){let n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(9,r,o);return s.value=t.replace(vEe,yEe),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,_$(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,h$.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),n.key=l(e,o.value||``);break;default:{r(e,h$.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=t.currentType===1?e.currentOffset():t.offset,u=t.currentType===1?t.endLoc:t.startLoc,d=i(2,n,u);d.items=[];let p=null;do{let n=p||e.nextToken();switch(p=null,n.type){case 0:n.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(n)),d.items.push(o(e,n.value||``));break;case 5:n.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(n)),d.items.push(s(e,n.value||``));break;case 4:n.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(n)),d.items.push(c(e,n.value||``));break;case 6:n.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(n)),d.items.push(l(e,n.value||``));break;case 7:{let t=f(e);d.items.push(t.node),p=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);let m=t.currentType===1?t.lastOffset:e.currentOffset(),h=t.currentType===1?t.lastEndLoc:e.currentPosition();return a(d,m,h),d}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,h$.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=_Ee(n,ZQ({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,h$.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function _$(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function xEe(e,t={}){let n={ast:e,helpers:new Set},r=()=>n,i=e=>(n.helpers.add(e),e);return{context:r,helper:i}}function v$(e,t){for(let n=0;nb$(e)),e}function b$(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;ns;function l(e,t){s.code+=e}function u(e,t=!0){let n=t?i:``;l(a?n+` `.repeat(e):n)}function d(e=!0){let t=++s.indentLevel;e&&u(t)}function f(e=!0){let t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}let m=e=>`_${e}`,h=()=>s.needIndent;return{context:c,push:l,indent:d,deindent:f,newline:p,helper:m,needIndent:h}}function TEe(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),S$(e,t.key),t.modifier?(e.push(`, `),S$(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function EEe(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n{let n=a$(t.mode)?t.mode:`normal`,r=a$(t.filename)?t.filename:`message.intl`,i=!!t.sourceMap,a=t.breakLineCode==null?n===`arrow`?`;`:` -`:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=wEe(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${d$(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),S$(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function AEe(e,t={}){let n=ZQ({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=bEe(n),s=o.parse(e);return r?(a&&CEe(s),i&&x$(s),{ast:s,code:``}):(SEe(s,n),kEe(s,n))}function jEe(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&($Q().__INTLIFY_PROD_DEVTOOLS__=!1)}function C$(e){return s$(e)&&k$(e)===0&&(n$(e,`b`)||n$(e,`body`))}const w$=[`b`,`body`];function MEe(e){return P$(e,w$)}const T$=[`c`,`cases`];function NEe(e){return P$(e,T$,[])}const E$=[`s`,`static`];function PEe(e){return P$(e,E$)}const D$=[`i`,`items`];function FEe(e){return P$(e,D$,[])}const O$=[`t`,`type`];function k$(e){return P$(e,O$)}const A$=[`v`,`value`];function j$(e,t){let n=P$(e,A$);if(n!=null)return n;throw I$(t)}const M$=[`m`,`modifier`];function IEe(e){return P$(e,M$)}const N$=[`k`,`key`];function LEe(e){let t=P$(e,N$);if(t)return t;throw I$(6)}function P$(e,t,n){for(let n=0;nREe(t,e);return t}function REe(e,t){let n=MEe(t);if(n==null)throw I$(0);let r=k$(n);if(r===1){let t=n,r=NEe(t);return e.plural(r.reduce((t,n)=>[...t,R$(e,n)],[]))}else return R$(e,n)}function R$(e,t){let n=PEe(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=FEe(t).reduce((t,n)=>[...t,z$(e,n)],[]);return e.normalize(n)}}function z$(e,t){let n=k$(t);switch(n){case 3:return j$(t,n);case 9:return j$(t,n);case 4:{let r=t;if(n$(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(n$(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw I$(n)}case 5:{let r=t;if(n$(r,`i`)&&JQ(r.i))return e.interpolate(e.list(r.i));if(n$(r,`index`)&&JQ(r.index))return e.interpolate(e.list(r.index));throw I$(n)}case 6:{let n=t,r=IEe(n),i=LEe(n);return e.linked(z$(e,i),r?z$(e,r):void 0,e.type)}case 7:return j$(t,n);case 8:return j$(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}const zEe=e=>e;let B$=QQ();function BEe(e,t={}){let n=!1,r=t.onError||hEe;return t.onError=e=>{n=!0,r(e)},{...AEe(e,t),detectError:n}}function VEe(e,t){if(a$(e)){o$(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=t.onCacheKey||zEe,r=n(e),i=B$[r];if(i)return i;let{ast:a,detectError:o}=BEe(e,{...t,location:!1,jit:!0}),s=L$(a);return o?s:B$[r]=s}else{let t=e.cacheKey;if(t){let n=B$[t];return n||(B$[t]=L$(e))}else return L$(e)}}let V$=null;function HEe(e){V$=e}function UEe(e,t,n){V$&&V$.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const WEe=GEe(`function:translate`);function GEe(e){return t=>V$&&V$.emit(e,t)}const H$={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function U$(e){return g$(e,null,void 0)}H$.INVALID_ARGUMENT,H$.INVALID_DATE_ARGUMENT,H$.INVALID_ISO_DATE_ARGUMENT,H$.NOT_SUPPORT_NON_STRING_MESSAGE,H$.NOT_SUPPORT_LOCALE_PROMISE_VALUE,H$.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,H$.NOT_SUPPORT_LOCALE_TYPE;function W$(e,t){return t.locale==null?K$(e.locale):K$(t.locale)}let G$;function K$(e){if(a$(e))return e;if(i$(e)){if(e.resolvedOnce&&G$!=null)return G$;if(e.constructor.name===`Function`){let t=e();if(fEe(t))throw U$(H$.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return G$=t}else throw U$(H$.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw U$(H$.NOT_SUPPORT_LOCALE_TYPE)}function KEe(e,t,n){return[...new Set([n,...r$(t)?t:s$(t)?Object.keys(t):a$(t)?[t]:[n]])]}function q$(e,t,n){let r=a$(n)?n:Q$,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;r$(e);)e=J$(a,e,t);let o=r$(t)||!u$(t)?t:t.default?t.default:null;e=a$(o)?[o]:o,r$(e)&&J$(a,e,!1),i.__localeChainCache.set(r,a)}return a}function J$(e,t,n){let r=!0;for(let i=0;i{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=$Ee(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=QEe(a),d=Y$[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}const X$=new Map;function tDe(e,t){return s$(e)?e[t]:null}function nDe(e,t){if(!s$(e))return null;let n=X$.get(t);if(n||(n=eDe(t),n&&X$.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function rDe(){return{upper:(e,t)=>t===`text`&&a$(e)?e.toUpperCase():t===`vnode`&&s$(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&a$(e)?e.toLowerCase():t===`vnode`&&s$(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&a$(e)?$$(e):t===`vnode`&&s$(e)&&`__v_isVNode`in e?$$(e.children):e}}let e1;function iDe(e){e1=e}let t1;function aDe(e){t1=e}let n1;function oDe(e){n1=e}const sDe=()=>null;let r1=null;const i1=e=>{r1=e},cDe=()=>r1;let a1=0;function lDe(e={}){let t=i$(e.onWarn)?e.onWarn:aEe,n=a$(e.version)?e.version:`11.1.11`,r=a$(e.locale)||i$(e.locale)?e.locale:Q$,i=i$(r)?Q$:r,a=r$(e.fallbackLocale)||u$(e.fallbackLocale)||a$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=u$(e.messages)?e.messages:o1(i),s=u$(e.datetimeFormats)?e.datetimeFormats:o1(i),c=u$(e.numberFormats)?e.numberFormats:o1(i),l=ZQ(QQ(),e.modifiers,rDe()),u=e.pluralRules||QQ(),d=i$(e.missing)?e.missing:null,f=o$(e.missingWarn)||YQ(e.missingWarn)?e.missingWarn:!0,p=o$(e.fallbackWarn)||YQ(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=i$(e.postTranslation)?e.postTranslation:null,_=u$(e.processor)?e.processor:null,v=o$(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=i$(e.messageCompiler)?e.messageCompiler:e1,x=i$(e.messageResolver)?e.messageResolver:t1||tDe,S=i$(e.localeFallbacker)?e.localeFallbacker:n1||KEe,C=s$(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=s$(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=s$(w.__numberFormatters)?w.__numberFormatters:new Map,D=s$(w.__meta)?w.__meta:{};a1++;let O={version:n,cid:a1,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return O.datetimeFormats=s,O.numberFormats=c,O.__datetimeFormatters=T,O.__numberFormatters=E,__INTLIFY_PROD_DEVTOOLS__&&UEe(O,n,D),O}const o1=e=>({[e]:QQ()});function s1(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return a$(r)?r:t}else return t}function c1(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function uDe(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function dDe(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{d1.includes(e)?o[e]=n[e]:a[e]=n[e]}),a$(r)?a.locale=r:u$(r)&&(o=r),u$(i)&&(o=i),[a.key||``,s,a,o]}function p1(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;if(!r.__datetimeFormatters.has(n))continue;r.__datetimeFormatters.delete(n)}}function m1(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,l,u,d]=g1(...t),f=o$(u.missingWarn)?u.missingWarn:e.missingWarn;o$(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=W$(e,u),h=o(e,i,m);if(!a$(c)||c===``)return new Intl.NumberFormat(m,d).format(l);let g={},_,v=null;for(let t=0;t{h1.includes(e)?o[e]=n[e]:a[e]=n[e]}),a$(r)?a.locale=r:u$(r)&&(o=r),u$(i)&&(o=i),[a.key||``,s,a,o]}function _1(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;if(!r.__numberFormatters.has(n))continue;r.__numberFormatters.delete(n)}}const fDe=e=>e,pDe=e=>``,mDe=e=>e.length===0?``:d$(e),hDe=pEe;function v1(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function gDe(e){let t=JQ(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(JQ(e.named.count)||JQ(e.named.n))?JQ(e.named.count)?e.named.count:JQ(e.named.n)?e.named.n:t:t}function _De(e,t){t.count||=e,t.n||=e}function vDe(e={}){let t=e.locale,n=gDe(e),r=s$(e.pluralRules)&&a$(t)&&i$(e.pluralRules[t])?e.pluralRules[t]:v1,i=s$(e.pluralRules)&&a$(t)&&i$(e.pluralRules[t])?v1:void 0,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||QQ();JQ(e.pluralIndex)&&_De(n,c);let l=e=>c[e];function u(t,n){let r=i$(e.messages)?e.messages(t,!!n):s$(e.messages)?e.messages[t]:!1;return r||(e.parent?e.parent.message(t):pDe)}let d=t=>e.modifiers?e.modifiers[t]:fDe,f=u$(e.processor)&&i$(e.processor.normalize)?e.processor.normalize:mDe,p=u$(e.processor)&&i$(e.processor.interpolate)?e.processor.interpolate:hDe,m=u$(e.processor)&&a$(e.processor.type)?e.processor.type:`text`,h=(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?s$(n)?(a=n.modifier||a,i=n.type||i):a$(n)&&(a=n||a):t.length===2&&(a$(n)&&(a=n||a),a$(r)&&(i=r||i));let o=u(e,!0)(g),s=i===`vnode`&&r$(o)&&a?o[0]:o;return a?d(a)(s,i):s},g={list:s,named:l,plural:a,linked:h,message:u,type:m,interpolate:p,normalize:f,values:ZQ(QQ(),o,c)};return g}const y1=()=>``,b1=e=>i$(e);function x1(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=w1(...t),u=o$(l.missingWarn)?l.missingWarn:e.missingWarn,d=o$(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=o$(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=a$(l.default)||o$(l.default)?o$(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(a$(m)||i$(m)),g=W$(e,l);f&&yDe(l);let[_,v,y]=p?[c,g,s[g]||QQ()]:S1(e,c,g,o,d,u),b=_,x=c;if(!p&&!(a$(b)||C$(b)||b1(b))&&h&&(b=m,x=b),!p&&(!(a$(b)||C$(b)||b1(b))||!a$(v)))return i?-1:c;let S=!1,C=()=>{S=!0},w=b1(b)?b:C1(e,c,v,b,x,C);if(S)return b;let T=SDe(e,v,y,l),E=vDe(T),D=bDe(e,w,E),O=r?r(D,c):D;if(f&&a$(O)&&(O=uEe(O)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:a$(c)?c:b1(b)?b.key:``,locale:v||(b1(b)?b.locale:``),format:a$(b)?b:b1(b)?b.source:``,message:O};t.meta=ZQ({},e.__meta,sDe()||{}),WEe(t)}return O}function yDe(e){r$(e.list)?e.list=e.list.map(e=>a$(e)?e$(e):e):s$(e.named)&&Object.keys(e.named).forEach(t=>{a$(e.named[t])&&(e.named[t]=e$(e.named[t]))})}function S1(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=QQ(),f,p=null;for(let n=0;nr);return e.locale=n,e.key=t,e}let c=o(r,xDe(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function bDe(e,t,n){let r=t(n);return r}function w1(...e){let[t,n,r]=e,i=QQ();if(!a$(t)&&!JQ(t)&&!b1(t)&&!C$(t))throw U$(H$.INVALID_ARGUMENT);let a=JQ(t)?String(t):(b1(t),t);return JQ(n)?i.plural=n:a$(n)?i.default=n:u$(n)&&!XQ(n)?i.named=n:r$(n)&&(i.list=n),JQ(r)?i.plural=r:a$(r)?i.default=r:u$(r)&&ZQ(i,r),[a,i]}function xDe(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>oEe(t,n,e)}}function SDe(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d=(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[,,n]=S1(u||e,r,t,s,c,l);a=o(n,r)}if(a$(a)||C$(a)){let n=!1,i=()=>{n=!0},o=C1(e,r,t,a,r,i);return n?y1:o}else if(b1(a))return a;else return y1},f={locale:t,modifiers:i,pluralRules:a,messages:d};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),JQ(r.plural)&&(f.pluralIndex=r.plural),f}jEe();function CDe(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&($Q().__INTLIFY_PROD_DEVTOOLS__=!1)}const T1={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function E1(e,...t){return g$(e,null,void 0)}T1.UNEXPECTED_RETURN_TYPE,T1.INVALID_ARGUMENT,T1.MUST_BE_CALL_SETUP_TOP,T1.NOT_INSTALLED,T1.UNEXPECTED_ERROR,T1.REQUIRED_VALUE,T1.INVALID_VALUE,T1.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,T1.NOT_INSTALLED_WITH_PROVIDE,T1.NOT_COMPATIBLE_LEGACY_VUE_I18N,T1.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const D1=qQ(`__translateVNode`),O1=qQ(`__datetimeParts`),k1=qQ(`__numberParts`),wDe=qQ(`__setPluralRules`);qQ(`__intlifyMeta`);const TDe=qQ(`__injectWithOption`),A1=qQ(`__dispose`),j1={FALLBACK_TO_ROOT:8,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13};j1.FALLBACK_TO_ROOT,j1.NOT_FOUND_PARENT_SCOPE,j1.IGNORE_OBJ_FLATTEN,j1.DEPRECATE_LEGACY_MODE,j1.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,j1.DUPLICATE_USE_I18N_CALLING;function M1(e){if(!s$(e)||C$(e))return e;for(let t in e){if(!n$(e,t))continue;if(!t.includes(`.`))s$(e[t])&&M1(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||QQ(),p$(n,o[t])):p$(n,o)}else a$(e)&&p$(JSON.parse(e),o)}),i==null&&a)for(let e in o)n$(o,e)&&M1(o[e]);return o}function EDe(e){return e.type}function DDe(e,t,n){let r=s$(t.messages)?t.messages:QQ();`__i18nGlobal`in n&&(r=N1(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),s$(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(s$(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function P1(e){return H(yo,null,e,0)}const F1=()=>[],ODe=()=>!1;let I1=0;function L1(e){return((t,n,r,i)=>e(n,r,Go()||void 0,i))}function R1(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=KQ?F:fn,o=o$(e.inheritLocale)?e.inheritLocale:!0,s=a(t&&o?t.locale.value:a$(e.locale)?e.locale:Q$),c=a(t&&o?t.fallbackLocale.value:a$(e.fallbackLocale)||r$(e.fallbackLocale)||u$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(N1(s.value,e)),u=a(u$(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(u$(e.numberFormats)?e.numberFormats:{[s.value]:{}}),f=t?t.missingWarn:o$(e.missingWarn)||YQ(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:o$(e.fallbackWarn)||YQ(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:o$(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,g=i$(e.missing)?e.missing:null,_=i$(e.missing)?L1(e.missing):null,v=i$(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:o$(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,x=t?t.modifiers:u$(e.modifiers)?e.modifiers:{},S=e.pluralRules||t&&t.pluralRules,C,w=()=>{r&&i1(null);let t={version:`11.1.11`,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:x,pluralRules:S,missing:_===null?void 0:_,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:y,escapeParameter:b,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=u$(C)?C.__datetimeFormatters:void 0,t.__numberFormatters=u$(C)?C.__numberFormatters:void 0;let n=lDe(t);return r&&i1(n),n};C=w(),c1(C,s.value,c.value);function T(){return[s.value,c.value,l.value,u.value,d.value]}let E=U({get:()=>s.value,set:e=>{C.locale=e,s.value=e}}),D=U({get:()=>c.value,set:e=>{C.fallbackLocale=e,c.value=e,c1(C,s.value,e)}}),O=U(()=>l.value),k=U(()=>u.value),A=U(()=>d.value);function j(){return i$(v)?v:null}function M(e){v=e,C.postTranslation=e}function ee(){return g}function te(e){e!==null&&(_=L1(e)),g=e,C.missing=_}let N=(e,n,i,a,o,s)=>{T();let c;try{__INTLIFY_PROD_DEVTOOLS__,r||(C.fallbackContext=t?cDe():void 0),c=e(C)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(C.fallbackContext=void 0)}if(i!==`translate exists`&&JQ(c)&&c===-1||i===`translate exists`&&!c){let[e,r]=n();return t&&m?a(t):o(e)}else if(s(c))return c;else throw E1(T1.UNEXPECTED_RETURN_TYPE)};function ne(...e){return N(t=>Reflect.apply(x1,null,[t,...e]),()=>w1(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>a$(e))}function re(...e){let[t,n,r]=e;if(r&&!s$(r))throw E1(T1.INVALID_ARGUMENT);return ne(t,n,ZQ({resolvedMessage:!0},r||{}))}function ie(...e){return N(t=>Reflect.apply(u1,null,[t,...e]),()=>f1(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>a$(e)||r$(e))}function ae(...e){return N(t=>Reflect.apply(m1,null,[t,...e]),()=>g1(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>a$(e)||r$(e))}function oe(e){return e.map(e=>a$(e)||JQ(e)||o$(e)?P1(String(e)):e)}let se=e=>e,ce={normalize:oe,interpolate:se,type:`vnode`};function le(...e){return N(t=>{let n,r=t;try{r.processor=ce,n=Reflect.apply(x1,null,[r,...e])}finally{r.processor=null}return n},()=>w1(...e),`translate`,t=>t[D1](...e),e=>[P1(e)],e=>r$(e))}function ue(...e){return N(t=>Reflect.apply(m1,null,[t,...e]),()=>g1(...e),`number format`,t=>t[k1](...e),F1,e=>a$(e)||r$(e))}function de(...e){return N(t=>Reflect.apply(u1,null,[t,...e]),()=>f1(...e),`datetime format`,t=>t[O1](...e),F1,e=>a$(e)||r$(e))}function fe(e){S=e,C.pluralRules=S}function pe(e,t){return N(()=>{if(!e)return!1;let n=a$(t)?t:s.value,r=he(n),i=C.messageResolver(r,e);return C$(i)||b1(i)||a$(i)},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),ODe,e=>o$(e))}function P(e){let t=null,n=q$(C,c.value,s.value);for(let r=0;r{o&&(s.value=e,C.locale=e,c1(C,s.value,c.value))}),Ba(t.fallbackLocale,e=>{o&&(c.value=e,C.fallbackLocale=e,c1(C,s.value,c.value))}));let we={id:I1,locale:E,fallbackLocale:D,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,c1(C,s.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:O,get modifiers(){return x},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,C.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,C.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(e){m=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,C.fallbackFormat=h},get warnHtmlMessage(){return y},set warnHtmlMessage(e){y=e,C.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,C.escapeParameter=e},t:ne,getLocaleMessage:he,setLocaleMessage:ge,mergeLocaleMessage:_e,getPostTranslationHandler:j,setPostTranslationHandler:M,getMissingHandler:ee,setMissingHandler:te,[wDe]:fe};return we.datetimeFormats=k,we.numberFormats=A,we.rt=re,we.te=pe,we.tm=me,we.d=ie,we.n=ae,we.getDateTimeFormat=ve,we.setDateTimeFormat=ye,we.mergeDateTimeFormat=be,we.getNumberFormat=xe,we.setNumberFormat=Se,we.mergeNumberFormat=Ce,we[TDe]=n,we[D1]=le,we[O1]=de,we[k1]=ue,we}const z1={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function kDe({slots:e},t){if(t.length===1&&t[0]===`default`){let t=e.default?e.default():[];return t.reduce((e,t)=>[...e,...t.type===vo?t.children:[t]],[])}else return t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},QQ())}function B1(){return vo}const ADe=R({name:`i18n-t`,props:ZQ({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>JQ(e)||!isNaN(e)}},z1),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||K1({useScope:e.scope,__useComponent:!0});return()=>{let a=Object.keys(n).filter(e=>e[0]!==`_`),o=QQ();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=a$(e.plural)?+e.plural:e.plural);let s=kDe(t,a),c=i[D1](e.keypath,s,o),l=ZQ(QQ(),r),u=a$(e.tag)||s$(e.tag)?e.tag:B1();return fs(u,l,c)}}}),V1=ADe;function jDe(e){return r$(e)&&!a$(e[0])}function H1(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t={part:!0},o=QQ();e.locale&&(t.locale=e.locale),a$(e.format)?t.key=e.format:s$(e.format)&&(a$(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce((t,r)=>n.includes(r)?ZQ(QQ(),t,{[r]:e.format[r]}):t,QQ()));let s=r(e.value,t,o),c=[t.key];r$(s)?c=s.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];return jDe(r)&&(r[0].key=`${e.type}-${t}`),r}):a$(s)&&(c=[s]);let l=ZQ(QQ(),a),u=a$(e.tag)||s$(e.tag)?e.tag:B1();return fs(u,l,c)}}const MDe=R({name:`i18n-n`,props:ZQ({value:{type:Number,required:!0},format:{type:[String,Object]}},z1),setup(e,t){let n=e.i18n||K1({useScope:e.scope,__useComponent:!0});return H1(e,t,h1,(...e)=>n[k1](...e))}}),U1=MDe;function NDe(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function PDe(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw E1(T1.UNEXPECTED_ERROR);let i=NDe(e,n.$),a=W1(r);return[Reflect.apply(i.t,i,[...G1(a)]),i]},n=(n,r)=>{let[i,a]=t(r);KQ&&e.global===a&&(n.__i18nWatcher=Ba(a.locale,()=>{r.instance&&r.instance.$forceUpdate()})),n.__composer=a,n.textContent=i},r=e=>{KQ&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},i=(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=W1(t);e.textContent=Reflect.apply(n.t,n,[...G1(r)])}},a=e=>{let[n]=t(e);return{textContent:n}};return{created:n,unmounted:r,beforeUpdate:i,getSSRProps:a}}function W1(e){if(a$(e))return{path:e};if(u$(e)){if(!(`path`in e))throw E1(T1.REQUIRED_VALUE,`path`);return e}else throw E1(T1.INVALID_VALUE)}function G1(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return a$(n)&&(o.locale=n),JQ(i)&&(o.plural=i),JQ(a)&&(o.plural=a),[t,s,o]}function FDe(e,t,...n){let r=u$(n[0])?n[0]:{},i=o$(r.globalInstall)?r.globalInstall:!0;i&&([V1.name,`I18nT`].forEach(t=>e.component(t,V1)),[U1.name,`I18nN`].forEach(t=>e.component(t,U1)),[J1.name,`I18nD`].forEach(t=>e.component(t,J1))),e.directive(`t`,PDe(t))}const IDe=qQ(`global-vue-i18n`);function LDe(e={}){let t=o$(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,i]=RDe(e,!1),a=qQ(``);function o(e){return n.get(e)||null}function s(e,t){n.set(e,t)}function c(e){n.delete(e)}let l={get mode(){return`composition`},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,l),u$(n[0])){let e=n[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let r=null;t&&(r=KDe(e,l.global)),FDe(e,l,...n);let i=e.unmount;e.unmount=()=>{r&&r(),l.dispose(),i()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:s,__deleteInstance:c};return l}function K1(e={}){let t=Go();if(t==null)throw E1(T1.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw E1(T1.NOT_INSTALLED);let n=zDe(t),r=VDe(n),i=EDe(t),a=BDe(e,i);if(a===`global`)return DDe(r,e,i),r;if(a===`parent`){let i=HDe(n,t,e.__useComponent);return i??=r,i}let o=n,s=o.__getInstance(t);if(s==null){let n=ZQ({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=R1(n),o.__composerExtend&&(s[A1]=o.__composerExtend(s)),WDe(o,t,s),o.__setInstance(t,s)}return s}function RDe(e,t){let n=Be(),r=n.run(()=>R1(e));if(r==null)throw E1(T1.UNEXPECTED_ERROR);return[n,r]}function zDe(e){let t=la(e.isCE?IDe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw E1(e.isCE?T1.NOT_INSTALLED_WITH_PROVIDE:T1.UNEXPECTED_ERROR);return t}function BDe(e,t){return XQ(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function VDe(e){return e.mode===`composition`?e.global:e.global.__composer}function HDe(e,t,n=!1){let r=null,i=t.root,a=UDe(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`&&(r=t.__getInstance(a)),r!=null||i===a)break;a=a.parent}return r}function UDe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function WDe(e,t,n){di(()=>{},t),hi(()=>{let r=n;e.__deleteInstance(t);let i=r[A1];i&&(i(),delete r[A1])},t)}const GDe=[`locale`,`fallbackLocale`,`availableLocales`],q1=[`t`,`rt`,`d`,`n`,`tm`,`te`];function KDe(e,t){let n=Object.create(null);GDe.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw E1(T1.UNEXPECTED_ERROR);let i=dn(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,q1.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw E1(T1.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)});let r=()=>{delete e.config.globalProperties.$i18n,q1.forEach(t=>{delete e.config.globalProperties[`$${t}`]})};return r}const qDe=R({name:`i18n-d`,props:ZQ({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},z1),setup(e,t){let n=e.i18n||K1({useScope:e.scope,__useComponent:!0});return H1(e,t,d1,(...e)=>n[O1](...e))}}),J1=qDe;if(CDe(),iDe(VEe),aDe(nDe),oDe(q$),__INTLIFY_PROD_DEVTOOLS__){let e=$Q();e.__INTLIFY__=!0,HEe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var JDe=`/assets/onboarding-S2C4LIWw.avif`;const Y1=e=>({chat:t=>Object.assign(e,{model:t})}),X1=e=>({embed:t=>Object.assign(e,{model:t})}),YDe=e=>({image:t=>Object.assign(e,{model:t})}),Z1=e=>({model:()=>e}),Q1=e=>({speech:t=>Object.assign(e,{model:t})}),$1=e=>({transcription:t=>Object.assign(e,{model:t})}),e0=(e,t)=>({metadata:{id:e,...t}}),t0=(...e)=>Object.assign(e[0],...e.slice(1));var n0=class extends Error{response;constructor(e,t,n){super(e,{cause:n}),this.name=`XSAIError`,this.response=t}};const XDe=e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`),r0=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[XDe(e),t])),i0=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),a0=e=>JSON.stringify(r0(i0({...e,abortSignal:void 0,apiKey:void 0,baseURL:void 0,fetch:void 0,headers:void 0}))),o0=(e,t)=>i0({Authorization:t===void 0?void 0:`Bearer ${t}`,...e}),s0=(e,t)=>{let n=t.toString();return new URL(e,n.endsWith(`/`)?n:`${n}/`)},c0=async e=>{if(!e.ok)throw new n0(`Remote sent ${e.status} response: ${await e.text()}`,e);if(!e.body)throw new n0(`Response body is empty from remote server`,e);if(!(e.body instanceof ReadableStream))throw new n0(`Expected Response body to be a ReadableStream, but got ${String(e.body)}; Content Type is ${e.headers.get(`Content-Type`)}`,e);return e},l0=async e=>{let t=await e.text();try{return JSON.parse(t)}catch(n){throw new n0(`Failed to parse response, response body: ${t}`,e,n)}},ZDe=async e=>{let t=typeof e.apiKey==`string`?{"api-key":e.apiKey}:void 0,n=`https://${e.resourceName}.services.ai.azure.com/models/`,r=async(t,n)=>{e.apiVersion!=null&&t.searchParams.set(`api-version`,e.apiVersion);let r=`Bearer ${typeof e.apiKey==`function`?await e.apiKey():e.apiKey}`;return n.headers??={},Array.isArray(n.headers)?n.headers.push([`Authorization`,r]):n.headers instanceof Headers?n.headers.append(`Authorization`,r):n.headers.Authorization=r,globalThis.fetch(t,n)};return t0(e0(`azure`),Y1({baseURL:n,fetch:r,headers:t}),X1({baseURL:n,fetch:r,headers:t}),Q1({baseURL:n,fetch:r,headers:t}),$1({baseURL:n,fetch:r,headers:t}),Z1({baseURL:n,fetch:r,headers:t}))},QDe=(e,t=`https://api.deepseek.com/`)=>t0(e0(`deepseek`),Y1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),$De=(e,t=`https://api.fireworks.ai/inference/v1/`)=>t0(e0(`fireworks`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),eOe=(e,t=`https://generativelanguage.googleapis.com/v1beta/openai/`)=>t0(e0(`google-generative-ai`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),tOe=(e,t=`https://api.mistral.ai/v1/`)=>t0(e0(`mistral`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),nOe=(e,t=`https://api.moonshot.cn/v1/`)=>t0(e0(`moonshot`),Y1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),rOe=(e,t=`https://api.novita.ai/v3/openai/`)=>t0(e0(`novita`),Y1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),u0=(e,t=`https://api.openai.com/v1/`)=>t0(e0(`openai`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),YDe({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t}),Q1({apiKey:e,baseURL:t}),$1({apiKey:e,baseURL:t})),iOe=(e,t=`https://openrouter.ai/api/v1/`)=>t0(e0(`openrouter`),{chat:(n,r)=>{let i={apiKey:e,baseURL:t,model:n},a=({extraHeaders:e,models:t,provider:n})=>{e!=null&&(i.headers??={},Object.assign(i.headers,e));let r;return n!=null&&(r=r0(n)),r0({models:t,provider:r})};return{...r?a(r):{},...i}}},Z1({apiKey:e,baseURL:t})),aOe=(e,t=`https://api.perplexity.ai/`)=>t0(e0(`perplexity`),Y1({apiKey:e,baseURL:t})),oOe=(e,t=`https://api.together.xyz/v1/`)=>t0(e0(`together-ai`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t,fetch:async(...e)=>globalThis.fetch(...e).then(async e=>e.json()).then(e=>Response.json({data:e,object:`list`}))})),sOe=(e,t)=>{let n=`https://api.cloudflare.com/client/v4/accounts/${t}/ai/v1/`;return t0(e0(`workers-ai`),Y1({apiKey:e,baseURL:n}),X1({apiKey:e,baseURL:n}))},cOe=(e,t=`https://api.x.ai/v1/`)=>t0(e0(`xai`),Y1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),d0=(e=`http://localhost:11434/v1/`)=>t0(e0(`ollama`),Y1({baseURL:e}),X1({baseURL:e}),Z1({baseURL:e})),lOe=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;et0(e0(`player2`),Y1({baseURL:e,headers:{"player2-game-key":t}}),Q1({baseURL:e,fetch:async(e,t)=>{let n=`${e.toString().slice(0,-12)}tts/speak`;try{let{input:e,response_format:n,speed:r,voice:i,...a}=JSON.parse(t?.body),o={audio_format:n,play_in_app:!1,speed:r??1,text:e,voice_ids:i==null?[]:[i],...a};t&&(t.body=JSON.stringify(o))}catch(e){console.warn(`Could not parse body as JSON:`,e)}return globalThis.fetch(n,t).then(async e=>e.json()).then(e=>{let t=e.data??``,n=lOe(t);return new Response(n,{headers:{"Content-Type":`audio/mpeg`},status:200})})},headers:{"player2-game-key":t}})),p0=async e=>(e.fetch??globalThis.fetch)(s0(`models`,e.baseURL),{headers:o0(e.headers,e.apiKey),signal:e.abortSignal}).then(c0).then(l0).then(({data:e})=>e);async function m0(){try{if(uOe())return{supported:!1,isNode:!0,reason:``,fp16Supported:!1};if(typeof navigator>`u`||!navigator.gpu)return{supported:!1,isNode:!1,reason:`WebGPU is not available (navigator.gpu is undefined)`,fp16Supported:!1};let e=await navigator.gpu.requestAdapter();return e?{supported:!0,isNode:!1,reason:``,adapter:e,fp16Supported:e.features.has(`shader-f16`)}:{supported:!1,isNode:!1,reason:`WebGPU is not supported (no adapter found)`,fp16Supported:!1}}catch(e){let t=e instanceof Error?e.toString():String(e);return{supported:!1,isNode:!1,reason:t,fp16Supported:!1}}}function uOe(){return typeof process<`u`&&`versions`in process&&process.versions!=null&&typeof process.versions==`object`&&`node`in process.versions&&process.versions.node!=null}async function dOe(){return m0().then(e=>e.supported)}const h0=(...e)=>Object.assign(e[0],...e.slice(1));var g0=class extends Error{response;constructor(e,t){super(e),this.name=`XSAIError`,this.response=t}};const fOe=e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`),_0=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[fOe(e),t])),pOe=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),mOe=(e,t)=>pOe({Authorization:t===void 0?void 0:`Bearer ${t}`,...e}),hOe=(e,t)=>{let n=t.toString();return new URL(e,n.endsWith(`/`)?n:`${n}/`)},gOe=async e=>{if(!e.ok)throw new g0(`Remote sent ${e.status} response: ${await e.text()}`,e);if(!e.body)throw new g0(`Response body is empty from remote server`,e);if(!(e.body instanceof ReadableStream))throw new g0(`Expected Response body to be a ReadableStream, but got ${String(e.body)}; Content Type is ${e.headers.get(`Content-Type`)}`,e);return e},_Oe=async e=>gOe(e).then(async e=>{let t=await e.text();try{return JSON.parse(t)}catch{throw Error(`Failed to parse response, response body: ${t}`)}});var v0=(e,t=`http://localhost:5933/v1/`)=>{let n=({applyTextNormalization:e,languageCode:t,nextRequestIds:n,nextText:r,previousRequestIds:i,previousText:a,pronunciationDictionaryLocators:o,seed:s,voiceSettings:c})=>({extraBody:_0({applyTextNormalization:e,languageCode:t,nextRequestIds:n,nextText:r,previousRequestIds:i,previousText:a,pronunciationDictionaryLocators:o?o.map(e=>_0(e)):void 0,seed:s,voiceSettings:_0(c??{similarityBoost:.75,stability:.5})})}),r={speech:(r,i)=>({...i?n(i):{},apiKey:e,baseURL:t,model:`elevenlabs/${r}`})},i={voice:r=>(t.endsWith(`v1/`)?t=t.slice(0,-3):t.endsWith(`v1`)&&(t=t.slice(0,-2)),{query:`provider=elevenlabs`,...r?n(r):{},apiKey:e,baseURL:t})};return h0(r,i)},y0=(e,t=`http://localhost:5933/v1/`)=>{let n=e=>{let{deploymentId:t,region:n,sampleRate:r}=e,i={deploymentId:t,region:n,sampleRate:r};return`disableSsml`in e?i.disableSsml=e.disableSsml:`lang`in e&&(i.lang=e.lang,i.gender=e.gender,i.voice=e.voice),{extraBody:_0(i)}},r={speech:(r,i)=>({...i?n(i):{},apiKey:e,baseURL:t,model:`microsoft/${r}`})},i={voice:r=>(t.endsWith(`v1/`)?t=t.slice(0,-3):t.endsWith(`v1`)&&(t=t.slice(0,-2)),{query:`region=${r?.region}&provider=microsoft`,...r?n(r):{},apiKey:e,baseURL:t})};return h0(r,i)},b0=(e,t=`http://localhost:5933/v1/`)=>{let n=t=>{let n={app:{appid:t.app?.appId,token:e}};return t.app!==void 0&&(n.app={...t.app,appid:t.app?.appId,token:e}),t.user!==void 0&&(n.user=t.user),t.audio!==void 0&&(n.audio=t.audio),{extraBody:_0(n)}},r={speech:(r,i)=>({...i?n(i):{},apiKey:e,baseURL:t,model:`volcengine/${r}`})},i={voice:r=>(t.endsWith(`v1/`)?t=t.slice(0,-3):t.endsWith(`v1`)&&(t=t.slice(0,-2)),{query:`provider=volcengine`,...r?n(r):{},apiKey:e,baseURL:t})};return h0(r,i)},x0=(e,t=`http://localhost:5933/v1/`)=>{let n=e=>{let{sampleRate:t,volume:n,rate:r,pitch:i}=e,a={sampleRate:t,volume:n,rate:r,pitch:i};return Object.keys(a).forEach(e=>a[e]===void 0&&delete a[e]),{extraBody:_0(a)}},r={speech:(r,i)=>({...i?n(i):{},apiKey:e,baseURL:t,model:`alibaba/${r}`})},i={voice:r=>{let i=t;return i.endsWith(`v1/`)?i=i.slice(0,-3):i.endsWith(`v1`)&&(i=i.slice(0,-2)),{query:`provider=alibaba`,...r?n(r):{},apiKey:e,baseURL:i}}};return h0(r,i)},S0=async e=>(e.fetch??globalThis.fetch)(hOe(e.query?`api/voices?${e.query}`:`api/voices`,e.baseURL),{headers:mOe({...e.headers},e.apiKey),method:`GET`,signal:e.abortSignal}).then(_Oe).then(({voices:e})=>e);function C0(e){try{return new URL(e),!0}catch{return!1}}const vOe=[{model_id:`eleven_multilingual_v2`,name:`Eleven Multilingual v2`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!0,can_use_speaker_boost:!0,serves_pro_voices:!1,token_cost_factor:1,description:`Our most life-like, emotionally rich mode in 29 languages. Best for voice overs, audiobooks, post-production, or any other content creation needs.`,requires_alpha_access:!1,max_characters_request_free_user:1e4,max_characters_request_subscribed_user:1e4,maximum_text_length_per_request:1e4,languages:[{language_id:`en`,name:`English`},{language_id:`ja`,name:`Japanese`},{language_id:`zh`,name:`Chinese`},{language_id:`de`,name:`German`},{language_id:`hi`,name:`Hindi`},{language_id:`fr`,name:`French`},{language_id:`ko`,name:`Korean`},{language_id:`pt`,name:`Portuguese`},{language_id:`it`,name:`Italian`},{language_id:`es`,name:`Spanish`},{language_id:`id`,name:`Indonesian`},{language_id:`nl`,name:`Dutch`},{language_id:`tr`,name:`Turkish`},{language_id:`fil`,name:`Filipino`},{language_id:`pl`,name:`Polish`},{language_id:`sv`,name:`Swedish`},{language_id:`bg`,name:`Bulgarian`},{language_id:`ro`,name:`Romanian`},{language_id:`ar`,name:`Arabic`},{language_id:`cs`,name:`Czech`},{language_id:`el`,name:`Greek`},{language_id:`fi`,name:`Finnish`},{language_id:`hr`,name:`Croatian`},{language_id:`ms`,name:`Malay`},{language_id:`sk`,name:`Slovak`},{language_id:`da`,name:`Danish`},{language_id:`ta`,name:`Tamil`},{language_id:`uk`,name:`Ukrainian`},{language_id:`ru`,name:`Russian`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`},{model_id:`eleven_flash_v2_5`,name:`Eleven Flash v2.5`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our ultra low latency model in 32 languages. Ideal for conversational use cases.`,requires_alpha_access:!1,max_characters_request_free_user:4e4,max_characters_request_subscribed_user:4e4,maximum_text_length_per_request:4e4,languages:[{language_id:`en`,name:`English`},{language_id:`ja`,name:`Japanese`},{language_id:`zh`,name:`Chinese`},{language_id:`de`,name:`German`},{language_id:`hi`,name:`Hindi`},{language_id:`fr`,name:`French`},{language_id:`ko`,name:`Korean`},{language_id:`pt`,name:`Portuguese`},{language_id:`it`,name:`Italian`},{language_id:`es`,name:`Spanish`},{language_id:`ru`,name:`Russian`},{language_id:`id`,name:`Indonesian`},{language_id:`nl`,name:`Dutch`},{language_id:`tr`,name:`Turkish`},{language_id:`fil`,name:`Filipino`},{language_id:`pl`,name:`Polish`},{language_id:`sv`,name:`Swedish`},{language_id:`bg`,name:`Bulgarian`},{language_id:`ro`,name:`Romanian`},{language_id:`ar`,name:`Arabic`},{language_id:`cs`,name:`Czech`},{language_id:`el`,name:`Greek`},{language_id:`fi`,name:`Finnish`},{language_id:`hr`,name:`Croatian`},{language_id:`ms`,name:`Malay`},{language_id:`sk`,name:`Slovak`},{language_id:`da`,name:`Danish`},{language_id:`ta`,name:`Tamil`},{language_id:`uk`,name:`Ukrainian`},{language_id:`hu`,name:`Hungarian`},{language_id:`no`,name:`Norwegian`},{language_id:`vi`,name:`Vietnamese`}],model_rates:{character_cost_multiplier:.5},concurrency_group:`turbo`},{model_id:`eleven_turbo_v2_5`,name:`Eleven Turbo v2.5`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our high quality, low latency model in 32 languages. Best for developer use cases where speed matters and you need non-English languages.`,requires_alpha_access:!1,max_characters_request_free_user:4e4,max_characters_request_subscribed_user:4e4,maximum_text_length_per_request:4e4,languages:[{language_id:`en`,name:`English`},{language_id:`ja`,name:`Japanese`},{language_id:`zh`,name:`Chinese`},{language_id:`de`,name:`German`},{language_id:`hi`,name:`Hindi`},{language_id:`fr`,name:`French`},{language_id:`ko`,name:`Korean`},{language_id:`pt`,name:`Portuguese`},{language_id:`it`,name:`Italian`},{language_id:`es`,name:`Spanish`},{language_id:`ru`,name:`Russian`},{language_id:`id`,name:`Indonesian`},{language_id:`nl`,name:`Dutch`},{language_id:`tr`,name:`Turkish`},{language_id:`fil`,name:`Filipino`},{language_id:`pl`,name:`Polish`},{language_id:`sv`,name:`Swedish`},{language_id:`bg`,name:`Bulgarian`},{language_id:`ro`,name:`Romanian`},{language_id:`ar`,name:`Arabic`},{language_id:`cs`,name:`Czech`},{language_id:`el`,name:`Greek`},{language_id:`fi`,name:`Finnish`},{language_id:`hr`,name:`Croatian`},{language_id:`ms`,name:`Malay`},{language_id:`sk`,name:`Slovak`},{language_id:`da`,name:`Danish`},{language_id:`ta`,name:`Tamil`},{language_id:`uk`,name:`Ukrainian`},{language_id:`vi`,name:`Vietnamese`},{language_id:`no`,name:`Norwegian`},{language_id:`hu`,name:`Hungarian`}],model_rates:{character_cost_multiplier:.5},concurrency_group:`turbo`},{model_id:`eleven_turbo_v2`,name:`Eleven Turbo v2`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our English-only, low latency model. Best for developer use cases where speed matters and you only need English. Performance is on par with Turbo v2.5.`,requires_alpha_access:!1,max_characters_request_free_user:3e4,max_characters_request_subscribed_user:3e4,maximum_text_length_per_request:3e4,languages:[{language_id:`en`,name:`English`}],model_rates:{character_cost_multiplier:.5},concurrency_group:`turbo`},{model_id:`eleven_flash_v2`,name:`Eleven Flash v2`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our ultra low latency model in english. Ideal for conversational use cases.`,requires_alpha_access:!1,max_characters_request_free_user:3e4,max_characters_request_subscribed_user:3e4,maximum_text_length_per_request:3e4,languages:[{language_id:`en`,name:`English`}],model_rates:{character_cost_multiplier:.5},concurrency_group:`turbo`},{model_id:`eleven_english_sts_v2`,name:`Eleven English v2`,can_be_finetuned:!1,can_do_text_to_speech:!1,can_do_voice_conversion:!0,can_use_style:!0,can_use_speaker_boost:!0,serves_pro_voices:!1,token_cost_factor:1,description:`Our state-of-the-art speech to speech model suitable for scenarios where you need maximum control over the content and prosody of your generations.`,requires_alpha_access:!1,max_characters_request_free_user:5e3,max_characters_request_subscribed_user:5e3,maximum_text_length_per_request:5e3,languages:[{language_id:`en`,name:`English`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`},{model_id:`eleven_multilingual_v1`,name:`Eleven Multilingual v1`,can_be_finetuned:!1,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our first Multilingual model, capability of generating speech in 10 languages. Now outclassed by Multilingual v2 (for content creation) and Turbo v2.5 (for low latency use cases).`,requires_alpha_access:!1,max_characters_request_free_user:1e4,max_characters_request_subscribed_user:1e4,maximum_text_length_per_request:1e4,languages:[{language_id:`en`,name:`English`},{language_id:`de`,name:`German`},{language_id:`pl`,name:`Polish`},{language_id:`es`,name:`Spanish`},{language_id:`it`,name:`Italian`},{language_id:`fr`,name:`French`},{language_id:`pt`,name:`Portuguese`},{language_id:`hi`,name:`Hindi`},{language_id:`ar`,name:`Arabic`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`},{model_id:`eleven_multilingual_sts_v2`,name:`Eleven Multilingual v2`,can_be_finetuned:!0,can_do_text_to_speech:!1,can_do_voice_conversion:!0,can_use_style:!0,can_use_speaker_boost:!0,serves_pro_voices:!1,token_cost_factor:1,description:`Our cutting-edge, multilingual speech-to-speech model is designed for situations that demand unparalleled control over both the content and the prosody of the generated speech across various languages.`,requires_alpha_access:!1,max_characters_request_free_user:1e4,max_characters_request_subscribed_user:1e4,maximum_text_length_per_request:1e4,languages:[{language_id:`en`,name:`English`},{language_id:`ja`,name:`Japanese`},{language_id:`zh`,name:`Chinese`},{language_id:`de`,name:`German`},{language_id:`hi`,name:`Hindi`},{language_id:`fr`,name:`French`},{language_id:`ko`,name:`Korean`},{language_id:`pt`,name:`Portuguese`},{language_id:`it`,name:`Italian`},{language_id:`es`,name:`Spanish`},{language_id:`ru`,name:`Russian`},{language_id:`id`,name:`Indonesian`},{language_id:`nl`,name:`Dutch`},{language_id:`tr`,name:`Turkish`},{language_id:`fil`,name:`Filipino`},{language_id:`pl`,name:`Polish`},{language_id:`sv`,name:`Swedish`},{language_id:`bg`,name:`Bulgarian`},{language_id:`ro`,name:`Romanian`},{language_id:`ar`,name:`Arabic`},{language_id:`cs`,name:`Czech`},{language_id:`el`,name:`Greek`},{language_id:`fi`,name:`Finnish`},{language_id:`hr`,name:`Croatian`},{language_id:`ms`,name:`Malay`},{language_id:`sk`,name:`Slovak`},{language_id:`da`,name:`Danish`},{language_id:`ta`,name:`Tamil`},{language_id:`uk`,name:`Ukrainian`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`},{model_id:`eleven_monolingual_v1`,name:`Eleven English v1`,can_be_finetuned:!1,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our first ever text to speech model. Now outclassed by Multilingual v2 (for content creation) and Turbo v2.5 (for low latency use cases).`,requires_alpha_access:!1,max_characters_request_free_user:1e4,max_characters_request_subscribed_user:1e4,maximum_text_length_per_request:1e4,languages:[{language_id:`en`,name:`English`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`}];function w0(e){let{id:t,name:n,icon:r,description:i,nameKey:a,descriptionKey:o,category:s,tasks:c,defaultBaseUrl:l,creator:u,capabilities:d,validators:f,validation:p,additionalHeaders:m,...h}=e,g=d||{listModels:async e=>{let n=u((e.apiKey||``).trim(),(e.baseUrl||``).trim());return n.model?(await p0({...n.model()})).map(e=>({id:e.id,name:e.name||e.display_name||e.id,provider:t,description:e.description||``,contextLength:e.context_length||0,deprecated:!1})):[]}},_=f||{validateProviderConfig:async e=>{let t=[];if(e.apiKey||t.push(Error(`API key is required`)),e.baseUrl||t.push(Error(`Base URL is required`)),t.length>0||((!C0(e.baseUrl)||new URL(e.baseUrl).host.length===0)&&t.push(Error(`Base URL is not absolute. Check your input.`)),e.baseUrl.endsWith(`/`)||t.push(Error(`Base URL must end with a trailing slash (/).`)),t.length>0))return{errors:t,reason:t.map(e=>e.message).join(`, `),valid:!1};let n=p||[],r=null,i=null;if(n.includes(`health`))try{i=await fetch(`${e.baseUrl}chat/completions`,{headers:{Authorization:`Bearer ${e.apiKey}`,...m},method:`POST`}),r=await fetch(`${e.baseUrl}models`,{headers:{Authorization:`Bearer ${e.apiKey}`,...m}}),[200,400,401].includes(i.status)||[200,400,401].includes(r.status)||t.push(Error(`Invalid Base URL, ${e.baseUrl} is not supported`))}catch(e){t.push(Error(`Invalid Base URL, ${e.message}`))}if(t.length>0)return{errors:t,reason:t.map(e=>e.message).join(`, `),valid:!1};if(n.includes(`model_list`))try{let n=r;n||=await fetch(`${e.baseUrl}models`,{headers:{Authorization:`Bearer ${e.apiKey}`,...m}}),n.ok||t.push(Error(`Invalid API Key`))}catch(e){t.push(Error(`Model list check failed: ${e.message}`))}if(n.includes(`chat_completions`))try{let n=i;n||=await fetch(`${e.baseUrl}chat/completions`,{headers:{Authorization:`Bearer ${e.apiKey}`,...m},method:`POST`}),n.ok||t.push(Error(`Invalid API Key`))}catch(e){t.push(Error(`Chat Completions check Failed: ${e.message}`))}return{errors:t,reason:t.map(e=>e.message).join(`, `)||``,valid:t.length===0}}};return{id:t,category:s||`chat`,tasks:c||[`text-generation`],nameKey:a,name:n,descriptionKey:o,description:i,icon:r,defaultOptions:()=>({baseUrl:l||``}),createProvider:async e=>u((e.apiKey||``).trim(),(e.baseUrl||``).trim()),capabilities:g,validators:_,...h}}function yOe(e,t=`https://api.anthropic.com/v1/`){let n=async(e,t)=>(t.headers??={},Array.isArray(t.headers)?t.headers.push([`anthropic-dangerous-direct-browser-access`,`true`]):t.headers instanceof Headers?t.headers.append(`anthropic-dangerous-direct-browser-access`,`true`):t.headers[`anthropic-dangerous-direct-browser-access`]=`true`,fetch(e,t));return t0(e0(`anthropic`),Y1({apiKey:e,fetch:n,baseURL:t}),Z1({apiKey:e,fetch:n,baseURL:t}))}const T0=UO(`providers`,()=>{let e=pE(`settings/credentials/providers`,{}),{t}=K1(),n=U(()=>e=>{let t=``;return e?typeof e==`string`?!C0(e)||new URL(e).host.length===0?t=`Base URL is not absolute. Try to include a scheme (http:// or https://).`:e.endsWith(`/`)||(t=`Base URL must end with a trailing slash (/).`):t=`Base URL must be a string.`:t=`Base URL is required.`,t?{errors:[Error(t)],reason:t,valid:!1}:null});async function r(){return`window`in globalThis&&globalThis.window!=null&&(`__TAURI_INTERNALS__`in globalThis.window&&globalThis.window.__TAURI_INTERNALS__!=null||location.host===`tauri.localhost`)}async function i(){let e=await r();if(e)return!1;let t=await dOe();if(t)return!0;if(`navigator`in globalThis&&globalThis.navigator!=null&&`deviceMemory`in globalThis.navigator&&typeof globalThis.navigator.deviceMemory==`number`){let e=globalThis.navigator.deviceMemory;if(e>=8)return!0}return!1}let a={"openrouter-ai":w0({id:`openrouter-ai`,name:`OpenRouter`,nameKey:`settings.pages.providers.provider.openrouter.title`,descriptionKey:`settings.pages.providers.provider.openrouter.description`,icon:`i-lobe-icons:openrouter`,description:`openrouter.ai`,defaultBaseUrl:`https://openrouter.ai/api/v1/`,creator:iOe,validation:[`health`,`model_list`,`chat_completions`]}),"app-local-audio-speech":w0({id:`app-local-audio-speech`,name:`App (Local)`,nameKey:`settings.pages.providers.provider.app-local-audio-speech.title`,descriptionKey:`settings.pages.providers.provider.app-local-audio-speech.description`,icon:`i-lobe-icons:huggingface`,description:`https://github.com/huggingface/candle`,category:`speech`,tasks:[`text-to-speech`,`tts`],isAvailableBy:r,creator:u0,validation:[],validators:{validateProviderConfig:e=>e.baseUrl?{errors:[],reason:``,valid:!0}:{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. This is likely a bug, report to developers on https://github.com/moeru-ai/airi/issues.`,valid:!1}}}),"app-local-audio-transcription":w0({id:`app-local-audio-transcription`,name:`App (Local)`,nameKey:`settings.pages.providers.provider.app-local-audio-transcription.title`,descriptionKey:`settings.pages.providers.provider.app-local-audio-transcription.description`,icon:`i-lobe-icons:huggingface`,description:`https://github.com/huggingface/candle`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],isAvailableBy:r,creator:u0,validation:[],validators:{validateProviderConfig:e=>e.baseUrl?{errors:[],reason:``,valid:!0}:{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. This is likely a bug, report to developers on https://github.com/moeru-ai/airi/issues.`,valid:!1}}}),"browser-local-audio-speech":w0({id:`browser-local-audio-speech`,name:`Browser (Local)`,nameKey:`settings.pages.providers.provider.browser-local-audio-speech.title`,descriptionKey:`settings.pages.providers.provider.browser-local-audio-speech.description`,icon:`i-lobe-icons:huggingface`,description:`https://github.com/moeru-ai/xsai-transformers`,category:`speech`,tasks:[`text-to-speech`,`tts`],isAvailableBy:i,creator:u0,validation:[],validators:{validateProviderConfig:e=>e.baseUrl?{errors:[],reason:``,valid:!0}:{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. This is likely a bug, report to developers on https://github.com/moeru-ai/airi/issues.`,valid:!1}}}),"browser-local-audio-transcription":w0({id:`browser-local-audio-transcription`,name:`Browser (Local)`,nameKey:`settings.pages.providers.provider.browser-local-audio-transcription.title`,descriptionKey:`settings.pages.providers.provider.browser-local-audio-transcription.description`,icon:`i-lobe-icons:huggingface`,description:`https://github.com/moeru-ai/xsai-transformers`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],isAvailableBy:i,creator:u0,validation:[],validators:{validateProviderConfig:e=>e.baseUrl?{errors:[],reason:``,valid:!0}:{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. This is likely a bug, report to developers on https://github.com/moeru-ai/airi/issues.`,valid:!1}}}),ollama:{id:`ollama`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.ollama.title`,name:`Ollama`,descriptionKey:`settings.pages.providers.provider.ollama.description`,description:`ollama.com`,icon:`i-lobe-icons:ollama`,defaultOptions:()=>({baseUrl:`http://localhost:11434/v1/`}),createProvider:async e=>d0(e.baseUrl.trim()),capabilities:{listModels:async e=>(await p0({...d0(e.baseUrl.trim()).model()})).map(e=>({id:e.id,name:e.id,provider:`ollama`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:11434/v1/ for Ollama.`,valid:!1};let t=n.value(e.baseUrl);return t||fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0}).then(e=>{let t=[!e.ok&&Error(`Ollama server returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach Ollama server, error: ${String(e)} occurred.\n\nIf you are using Ollama locally, this is likely the CORS (Cross-Origin Resource Sharing) security issue, where you will need to set OLLAMA_ORIGINS=* or OLLAMA_ORIGINS=https://airi.moeru.ai,${location.origin} environment variable before launching Ollama server to make this work.`,valid:!1}))}}},"ollama-embedding":{id:`ollama-embedding`,category:`embed`,tasks:[`text-feature-extraction`],nameKey:`settings.pages.providers.provider.ollama.title`,name:`Ollama`,descriptionKey:`settings.pages.providers.provider.ollama.description`,description:`ollama.com`,icon:`i-lobe-icons:ollama`,defaultOptions:()=>({baseUrl:`http://localhost:11434/v1/`}),createProvider:async e=>d0(e.baseUrl.trim()),capabilities:{listModels:async e=>(await p0({...d0(e.baseUrl.trim()).model()})).map(e=>({id:e.id,name:e.id,provider:`ollama`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:11434/v1/ for Ollama.`,valid:!1};let t=n.value(e.baseUrl);return t||fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0}).then(e=>{let t=[!e.ok&&Error(`Ollama server returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach Ollama server, error: ${String(e)} occurred.\n\nIf you are using Ollama locally, this is likely the CORS (Cross-Origin Resource Sharing) security issue, where you will need to set OLLAMA_ORIGINS=* or OLLAMA_ORIGINS=https://airi.moeru.ai,http://localhost environment variable before launching Ollama server to make this work.`,valid:!1}))}}},vllm:{id:`vllm`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.vllm.title`,name:`vLLM`,descriptionKey:`settings.pages.providers.provider.vllm.description`,description:`vllm.ai`,iconColor:`i-lobe-icons:vllm`,createProvider:async e=>d0(e.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`llama-2-7b`,name:`Llama 2 (7B)`,provider:`vllm`,description:`Meta's Llama 2 7B parameter model`,contextLength:4096},{id:`llama-2-13b`,name:`Llama 2 (13B)`,provider:`vllm`,description:`Meta's Llama 2 13B parameter model`,contextLength:4096},{id:`llama-2-70b`,name:`Llama 2 (70B)`,provider:`vllm`,description:`Meta's Llama 2 70B parameter model`,contextLength:4096},{id:`mistral-7b`,name:`Mistral (7B)`,provider:`vllm`,description:`Mistral AI's 7B parameter model`,contextLength:8192},{id:`mixtral-8x7b`,name:`Mixtral (8x7B)`,provider:`vllm`,description:`Mistral AI's Mixtral 8x7B MoE model`,contextLength:32768},{id:`custom`,name:`Custom Model`,provider:`vllm`,description:`Specify a custom model name`,contextLength:0}]},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:8000/v1/ for vLLM.`,valid:!1};let t=n.value(e.baseUrl);return t||fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0}).then(e=>{let t=[!e.ok&&Error(`vLLM returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach vLLM, error: ${String(e)} occurred.`,valid:!1}))}}},"lm-studio":{id:`lm-studio`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.lm-studio.title`,name:`LM Studio`,descriptionKey:`settings.pages.providers.provider.lm-studio.description`,description:`lmstudio.ai`,icon:`i-lobe-icons:lmstudio`,defaultOptions:()=>({baseUrl:`http://localhost:1234/v1/`}),createProvider:async e=>u0(``,e.baseUrl.trim()),capabilities:{listModels:async e=>{try{let t=await fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0});if(!t.ok)throw Error(`LM Studio server returned non-ok status code: ${t.statusText}`);let n=await t.json();return n.data.map(e=>({id:e.id,name:e.id,provider:`lm-studio`,description:e.description||``,contextLength:e.context_length||0,deprecated:!1}))}catch(e){return console.error(`Error fetching LM Studio models:`,e),[]}}},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:1234/v1/ for LM Studio.`,valid:!1};let t=n.value(e.baseUrl);return t||fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0}).then(e=>{let t=[!e.ok&&Error(`LM Studio server returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach LM Studio server, error: ${String(e)} occurred.\n\nMake sure LM Studio is running and the local server is started. You can start the local server in LM Studio by going to the 'Local Server' tab and clicking 'Start Server'.`,valid:!1}))}}},openai:w0({id:`openai`,name:`OpenAI`,nameKey:`settings.pages.providers.provider.openai.title`,descriptionKey:`settings.pages.providers.provider.openai.description`,icon:`i-lobe-icons:openai`,description:`openai.com`,defaultBaseUrl:`https://api.openai.com/v1/`,creator:u0,validation:[`health`,`model_list`]}),"openai-compatible":w0({id:`openai-compatible`,name:`OpenAI Compatible`,nameKey:`settings.pages.providers.provider.openai-compatible.title`,descriptionKey:`settings.pages.providers.provider.openai-compatible.description`,icon:`i-lobe-icons:openai`,description:`Connect to any API that follows the OpenAI specification.`,creator:u0,validation:[`health`]}),"openai-audio-speech":w0({id:`openai-audio-speech`,name:`OpenAI`,nameKey:`settings.pages.providers.provider.openai.title`,descriptionKey:`settings.pages.providers.provider.openai.description`,icon:`i-lobe-icons:openai`,description:`openai.com`,category:`speech`,tasks:[`text-to-speech`],defaultBaseUrl:`https://api.openai.com/v1/`,creator:u0,validation:[`health`],capabilities:{listVoices:async()=>[{id:`alloy`,name:`Alloy`,provider:`openai-audio-speech`,languages:[]},{id:`ash`,name:`Ash`,provider:`openai-audio-speech`,languages:[]},{id:`ballad`,name:`Ballad`,provider:`openai-audio-speech`,languages:[]},{id:`coral`,name:`Coral`,provider:`openai-audio-speech`,languages:[]},{id:`echo`,name:`Echo`,provider:`openai-audio-speech`,languages:[]},{id:`fable`,name:`Fable`,provider:`openai-audio-speech`,languages:[]},{id:`onyx`,name:`Onyx`,provider:`openai-audio-speech`,languages:[]},{id:`nova`,name:`Nova`,provider:`openai-audio-speech`,languages:[]},{id:`sage`,name:`Sage`,provider:`openai-audio-speech`,languages:[]},{id:`shimmer`,name:`Shimmer`,provider:`openai-audio-speech`,languages:[]},{id:`verse`,name:`Verse`,provider:`openai-audio-speech`,languages:[]}]},validators:{validateProviderConfig:e=>{let t=[!e.baseUrl&&Error(`Base URL is required. Default to https://api.openai.com/v1/ for official OpenAI API.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.baseUrl}}}}),"openai-compatible-audio-speech":w0({id:`openai-compatible-audio-speech`,name:`OpenAI Compatible`,nameKey:`settings.pages.providers.provider.openai-compatible.title`,descriptionKey:`settings.pages.providers.provider.openai-compatible.description`,icon:`i-lobe-icons:openai`,description:`Connect to any API that follows the OpenAI specification.`,category:`speech`,tasks:[`text-to-speech`],capabilities:{listVoices:async()=>[]},creator:u0}),"openai-audio-transcription":w0({id:`openai-audio-transcription`,name:`OpenAI`,nameKey:`settings.pages.providers.provider.openai.title`,descriptionKey:`settings.pages.providers.provider.openai.description`,icon:`i-lobe-icons:openai`,description:`openai.com`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],defaultBaseUrl:`https://api.openai.com/v1/`,creator:u0,validation:[`health`],validators:{validateProviderConfig:e=>{let t=[!e.baseUrl&&Error(`Base URL is required. Default to https://api.openai.com/v1/ for official OpenAI API.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.baseUrl}}}}),"openai-compatible-audio-transcription":w0({id:`openai-compatible-audio-transcription`,name:`OpenAI Compatible`,nameKey:`settings.pages.providers.provider.openai-compatible.title`,descriptionKey:`settings.pages.providers.provider.openai-compatible.description`,icon:`i-lobe-icons:openai`,description:`Connect to any API that follows the OpenAI specification.`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],creator:u0}),"azure-ai-foundry":{id:`azure-ai-foundry`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.azure-ai-foundry.title`,name:`Azure AI Foundry`,descriptionKey:`settings.pages.providers.provider.azure-ai-foundry.description`,description:`azure.com`,icon:`i-lobe-icons:microsoft`,defaultOptions:()=>({}),createProvider:async e=>await ZDe({apiKey:async()=>e.apiKey.trim(),resourceName:e.resourceName,apiVersion:e.apiVersion}),capabilities:{listModels:async e=>[{id:e.modelId}].map(e=>({id:e.id,name:e.id,provider:`azure-ai-foundry`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required`),!e.resourceName&&Error(`Resource name is required`),!e.modelId&&Error(`Model ID is required`)];return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.resourceName&&!!e.modelId}}}},anthropic:w0({id:`anthropic`,name:`Anthropic`,nameKey:`settings.pages.providers.provider.anthropic.title`,descriptionKey:`settings.pages.providers.provider.anthropic.description`,icon:`i-lobe-icons:anthropic`,description:`anthropic.com`,defaultBaseUrl:`https://api.anthropic.com/v1/`,creator:yOe,validation:[`health`,`model_list`],additionalHeaders:{"anthropic-dangerous-direct-browser-access":`true`}}),"google-generative-ai":w0({id:`google-generative-ai`,name:`Google Gemini`,nameKey:`settings.pages.providers.provider.google-generative-ai.title`,descriptionKey:`settings.pages.providers.provider.google-generative-ai.description`,icon:`i-lobe-icons:gemini`,description:`ai.google.dev`,defaultBaseUrl:`https://generativelanguage.googleapis.com/v1beta/openai/`,creator:eOe,validation:[`health`,`model_list`]}),xai:w0({id:`xai`,name:`xAI`,nameKey:`settings.pages.providers.provider.xai.title`,descriptionKey:`settings.pages.providers.provider.xai.description`,icon:`i-lobe-icons:xai`,description:`x.ai`,defaultBaseUrl:`https://api.x.ai/v1/`,creator:cOe,validation:[`health`,`model_list`]}),deepseek:w0({id:`deepseek`,name:`DeepSeek`,nameKey:`settings.pages.providers.provider.deepseek.title`,descriptionKey:`settings.pages.providers.provider.deepseek.description`,icon:`i-lobe-icons:deepseek`,description:`deepseek.com`,defaultBaseUrl:`https://api.deepseek.com/`,creator:QDe,validation:[`health`,`model_list`]}),elevenlabs:{id:`elevenlabs`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.elevenlabs.title`,name:`ElevenLabs`,descriptionKey:`settings.pages.providers.provider.elevenlabs.description`,description:`elevenlabs.io`,icon:`i-simple-icons:elevenlabs`,defaultOptions:()=>({baseUrl:`https://unspeech.hyp3r.link/v1/`,voiceSettings:{similarityBoost:.75,stability:.5}}),createProvider:async e=>v0(e.apiKey.trim(),e.baseUrl.trim()),capabilities:{listModels:async()=>vOe.map(e=>({id:e.model_id,name:e.name,provider:`elevenlabs`,description:e.description,contextLength:0,deprecated:!1})),listVoices:async e=>{let t=v0(e.apiKey.trim(),e.baseUrl.trim()),n=await S0({...t.voice()}),r=n.findIndex(e=>e.name.includes(`Aria`)),i=n.findIndex(e=>e.name.includes(`Bill`)),a=r===-1?0:r,o=i===-1?n.length-1:i,s=Math.min(a,o),c=Math.max(a,o),l=[...n.slice(0,s),...n.slice(c+1),...n.slice(s,c+1)];return l.map(e=>({id:e.id,name:e.name,provider:`elevenlabs`,previewURL:e.preview_audio_url,languages:e.languages}))}},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.baseUrl&&Error(`Base URL is required.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.baseUrl}}}},"microsoft-speech":{id:`microsoft-speech`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.microsoft-speech.title`,name:`Microsoft / Azure Speech`,descriptionKey:`settings.pages.providers.provider.microsoft-speech.description`,description:`speech.microsoft.com`,iconColor:`i-lobe-icons:microsoft`,defaultOptions:()=>({baseUrl:`https://unspeech.hyp3r.link/v1/`}),createProvider:async e=>y0(e.apiKey.trim(),e.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`v1`,name:`v1`,provider:`microsoft-speech`,description:``,contextLength:0,deprecated:!1}],listVoices:async e=>{let t=y0(e.apiKey.trim(),e.baseUrl.trim()),n=await S0({...t.voice({region:e.region})});return n.map(e=>({id:e.id,name:e.name,provider:`microsoft-speech`,previewURL:e.preview_audio_url,languages:e.languages,gender:e.labels?.gender}))}},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.baseUrl&&Error(`Base URL is required.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.baseUrl}}}},"index-tts-vllm":{id:`index-tts-vllm`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.index-tts-vllm.title`,name:`Index-TTS by Bilibili`,descriptionKey:`settings.pages.providers.provider.index-tts-vllm.description`,description:`index-tts.github.io`,iconColor:`i-lobe-icons:bilibiliindex`,defaultOptions:()=>({baseUrl:`http://localhost:11996/tts`}),createProvider:async e=>{let t={speech:()=>{let t={baseURL:e.baseUrl,model:`IndexTTS-1.5`};return t}};return t},capabilities:{listVoices:async e=>{let t=e.baseUrl,n=await fetch(`${t}/audio/voices`);if(!n.ok)throw Error(`Failed to fetch voices: ${n.statusText}`);let r=await n.json();return Object.keys(r).map(e=>({id:e,name:e,provider:`index-tts-vllm`,languages:[{code:`cn`,title:`Chinese`},{code:`en`,title:`English`}]}))}},validators:{validateProviderConfig:e=>{let t=[!e.baseUrl&&Error(`Base URL is required. Default to http://localhost:11996/tts for Index-TTS.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.baseUrl}}}},"alibaba-cloud-model-studio":{id:`alibaba-cloud-model-studio`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.alibaba-cloud-model-studio.title`,name:`Alibaba Cloud Model Studio`,descriptionKey:`settings.pages.providers.provider.alibaba-cloud-model-studio.description`,description:`bailian.console.aliyun.com`,iconColor:`i-lobe-icons:alibabacloud`,defaultOptions:()=>({baseUrl:`https://unspeech.hyp3r.link/v1/`}),createProvider:async e=>x0(e.apiKey.trim(),e.baseUrl.trim()),capabilities:{listVoices:async e=>{let t=x0(e.apiKey.trim(),e.baseUrl.trim()),n=await S0({...t.voice()});return n.map(e=>({id:e.id,name:e.name,provider:`alibaba-cloud-model-studio`,previewURL:e.preview_audio_url,languages:e.languages,gender:e.labels?.gender}))},listModels:async()=>[{id:`cosyvoice-v1`,name:`CosyVoice`,provider:`alibaba-cloud-model-studio`,description:``,contextLength:0,deprecated:!1},{id:`cosyvoice-v2`,name:`CosyVoice (New)`,provider:`alibaba-cloud-model-studio`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.baseUrl&&Error(`Base URL is required.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.baseUrl}}}},volcengine:{id:`volcengine`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.volcengine.title`,name:`settings.pages.providers.provider.volcengine.title`,descriptionKey:`settings.pages.providers.provider.volcengine.description`,description:`volcengine.com`,iconColor:`i-lobe-icons:volcengine`,defaultOptions:()=>({baseUrl:`https://unspeech.hyp3r.link/v1/`}),createProvider:async e=>b0(e.apiKey.trim(),e.baseUrl.trim()),capabilities:{listVoices:async e=>{let t=b0(e.apiKey.trim(),e.baseUrl.trim()),n=await S0({...t.voice()});return n.map(e=>({id:e.id,name:e.name,provider:`volcano-engine`,previewURL:e.preview_audio_url,languages:e.languages,gender:e.labels?.gender}))},listModels:async()=>[{id:`v1`,name:`v1`,provider:`volcano-engine`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.baseUrl&&Error(`Base URL is required.`),!e.app?.appId&&Error(`App ID is required.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.baseUrl&&!!e.app&&!!e.app.appId}}}},"together-ai":w0({id:`together-ai`,name:`Together.ai`,nameKey:`settings.pages.providers.provider.together.title`,descriptionKey:`settings.pages.providers.provider.together.description`,icon:`i-lobe-icons:together`,description:`together.ai`,defaultBaseUrl:`https://api.together.xyz/v1/`,creator:oOe,validation:[`health`,`model_list`],iconColor:`i-lobe-icons:together`}),"novita-ai":w0({id:`novita-ai`,name:`Novita`,nameKey:`settings.pages.providers.provider.novita.title`,descriptionKey:`settings.pages.providers.provider.novita.description`,icon:`i-lobe-icons:novita`,description:`novita.ai`,defaultBaseUrl:`https://api.novita.ai/openai/`,creator:rOe,validation:[`health`,`model_list`],iconColor:`i-lobe-icons:novita`}),"fireworks-ai":w0({id:`fireworks-ai`,name:`Fireworks.ai`,nameKey:`settings.pages.providers.provider.fireworks.title`,descriptionKey:`settings.pages.providers.provider.fireworks.description`,icon:`i-lobe-icons:fireworks`,description:`fireworks.ai`,defaultBaseUrl:`https://api.fireworks.ai/inference/v1/`,creator:$De,validation:[`health`,`model_list`]}),"featherless-ai":w0({id:`featherless-ai`,name:`Featherless.ai`,nameKey:`settings.pages.providers.provider.featherless.title`,descriptionKey:`settings.pages.providers.provider.featherless.description`,icon:`i-lobe-icons:featherless-ai`,description:`featherless.ai`,defaultBaseUrl:`https://api.featherless.ai/v1/`,creator:u0,validation:[`health`,`model_list`]}),"cloudflare-workers-ai":{id:`cloudflare-workers-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.cloudflare-workers-ai.title`,name:`Cloudflare Workers AI`,descriptionKey:`settings.pages.providers.provider.cloudflare-workers-ai.description`,description:`cloudflare.com`,iconColor:`i-lobe-icons:cloudflare`,createProvider:async e=>sOe(e.apiKey.trim(),e.accountId),capabilities:{listModels:async()=>[]},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.accountId&&Error(`Account ID is required.`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.accountId}}}},"perplexity-ai":w0({id:`perplexity-ai`,name:`Perplexity`,nameKey:`settings.pages.providers.provider.perplexity.title`,descriptionKey:`settings.pages.providers.provider.perplexity.description`,icon:`i-lobe-icons:perplexity`,description:`perplexity.ai`,defaultBaseUrl:`https://api.perplexity.ai/`,creator:aOe,validation:[`health`,`model_list`]}),"mistral-ai":w0({id:`mistral-ai`,name:`Mistral`,nameKey:`settings.pages.providers.provider.mistral.title`,descriptionKey:`settings.pages.providers.provider.mistral.description`,icon:`i-lobe-icons:mistral`,description:`mistral.ai`,defaultBaseUrl:`https://api.mistral.ai/v1/`,creator:tOe,validation:[`health`,`model_list`],iconColor:`i-lobe-icons:mistral`}),"moonshot-ai":w0({id:`moonshot-ai`,name:`Moonshot AI`,nameKey:`settings.pages.providers.provider.moonshot.title`,descriptionKey:`settings.pages.providers.provider.moonshot.description`,icon:`i-lobe-icons:moonshot`,description:`moonshot.ai`,defaultBaseUrl:`https://api.moonshot.ai/v1/`,creator:nOe,validation:[`health`,`model_list`]}),modelscope:w0({id:`modelscope`,name:`ModelScope`,nameKey:`settings.pages.providers.provider.modelscope.title`,descriptionKey:`settings.pages.providers.provider.modelscope.description`,icon:`i-lobe-icons:modelscope`,description:`modelscope`,defaultBaseUrl:`https://api-inference.modelscope.cn/v1/`,creator:u0,validation:[`health`,`model_list`,`chat_completions`],iconColor:`i-lobe-icons:modelscope`}),player2:{id:`player2`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.player2.title`,name:`Player2`,descriptionKey:`settings.pages.providers.provider.player2.description`,description:`player2.game`,icon:`i-lobe-icons:player2`,defaultOptions:()=>({baseUrl:`http://localhost:4315/v1/`}),createProvider:e=>f0(e.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`player2-model`,name:`Player2 Model`,provider:`player2`}]},validators:{validateProviderConfig:async e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:4315/v1/`,valid:!1};let t=n.value(e.baseUrl);return t||await fetch(`${e.baseUrl}health`,{method:`GET`,headers:{"player2-game-key":`airi`}}).then(e=>{let t=[!e.ok&&Error(`Player 2 returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach Player 2, error: ${String(e)} occurred. If you do not have Player 2 running, please start it and try again.`,valid:!1}))}}},"player2-speech":{id:`player2-speech`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.player2.title`,name:`Player2 Speech`,descriptionKey:`settings.pages.providers.provider.player2.description`,description:`player2.game`,icon:`i-lobe-icons:player2`,defaultOptions:()=>({baseUrl:`http://localhost:4315/v1/`}),createProvider:async e=>f0(e.baseUrl.trim(),`airi`),capabilities:{listVoices:async e=>{let t=e.baseUrl.endsWith(`/`)?e.baseUrl.slice(0,-1):e.baseUrl;return await fetch(`${t}/tts/voices`).then(e=>e.json()).then(({voices:e})=>e.map(({id:e,language:t,name:n,gender:r})=>({id:e,name:n,provider:`player2-speech`,gender:r,languages:[{american_english:{code:`en`,title:`English`},british_english:{code:`en`,title:`English`},japanese:{code:`ja`,title:`Japanese`},mandarin_chinese:{code:`zh`,title:`Chinese`},spanish:{code:`es`,title:`Spanish`},french:{code:`fr`,title:`French`},hindi:{code:`hi`,title:`Hindi`},italian:{code:`it`,title:`Italian`},brazilian_portuguese:{code:`pt`,title:`Portuguese`}}[t]]})))}},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:4315/v1/`,valid:!1};let t=n.value(e.baseUrl);return t||{errors:[],reason:``,valid:!0}}}}},o=F({}),s=F({});async function c(t){let n=e.value[t];if(!n)return!1;let r=JSON.stringify(n||{});if(s.value[t]===r&&typeof o.value[t]==`boolean`)return o.value[t];let i=a[t];if(!i)return!1;s.value[t]=r;let c=await i.validators.validateProviderConfig(n);return o.value[t]=c.valid,c.valid}function l(t){if(!e.value[t]){let n=a[t],r=n.defaultOptions?.()||{};e.value[t]={baseUrl:r.baseUrl||``}}}Object.keys(a).forEach(l);async function u(){await Promise.all(Object.keys(a).map(async e=>{try{o.value[e]=await c(e)}catch{o.value[e]=!1}}))}Ba(e,u,{deep:!0,immediate:!0});let d=U(()=>Object.keys(a).filter(e=>o.value[e])),f=F({}),p=F({}),m=F({});async function h(t){let n=e.value[t];if(!n)return[];let r=a[t];if(!r)return[];p.value[t]=!0,m.value[t]=null;try{let e=r.capabilities.listModels?await r.capabilities.listModels(n):[];return f.value[t]=e.map(e=>({id:e.id,name:e.name,description:e.description,contextLength:e.contextLength,deprecated:e.deprecated,provider:t})),f.value[t]}catch(e){return console.error(`Error fetching models for ${t}:`,e),m.value[t]=e instanceof Error?e.message:`Unknown error`,[]}finally{p.value[t]=!1}}function g(e){return f.value[e]||[]}let _=U(()=>{let e=[];for(let t of d.value)e.push(...f.value[t]||[]);return e});async function v(){for(let e of d.value)a[e].capabilities.listModels&&await h(e)}Ba(e,(e,t)=>{let n=Object.keys(e).filter(n=>JSON.stringify(e[n])!==JSON.stringify(t?.[n]));for(let e of n)o.value[e]&&a[e]?.capabilities.listModels&&h(e)},{deep:!0});function y(e){let n=a[e];if(!n)throw Error(`Provider metadata for ${e} not found`);return{...n,localizedName:t(n.nameKey,n.name),localizedDescription:t(n.descriptionKey,n.description)}}let b=U(()=>Object.values(a).map(e=>({...e,localizedName:t(e.nameKey,e.name),localizedDescription:t(e.descriptionKey,e.description),configured:o.value[e.id]||!1})));async function x(t){let n=e.value[t];if(!n)throw Error(`Provider credentials for ${t} not found`);let r=a[t];if(!r)throw Error(`Provider metadata for ${t} not found`);try{return await r.createProvider(n)}catch(e){throw console.error(`Error creating provider instance for ${t}:`,e),e}}let S=Rse(async()=>{let e=[];for(let t of b.value){let n=y(t.id),r=n.isAvailableBy||(()=>!0),i=await r();i&&e.push(t)}return e},[]),C=U(()=>S.value.filter(e=>e.category===`chat`)),w=U(()=>S.value.filter(e=>e.category===`speech`)),T=U(()=>S.value.filter(e=>e.category===`transcription`)),E=U(()=>C.value.filter(e=>o.value[e.id])),D=U(()=>w.value.filter(e=>o.value[e.id])),O=U(()=>T.value.filter(e=>o.value[e.id]));function k(t){return e.value[t]}return{providers:e,getProviderConfig:k,availableProviders:d,configuredProviders:o,providerMetadata:a,getProviderMetadata:y,allProvidersMetadata:b,initializeProvider:l,validateProvider:c,availableModels:f,isLoadingModels:p,modelLoadError:m,fetchModelsForProvider:h,getModelsForProvider:g,allAvailableModels:_,loadModelsForConfiguredProviders:v,getProviderInstance:x,availableProvidersMetadata:S,allChatProvidersMetadata:C,allAudioSpeechProvidersMetadata:w,allAudioTranscriptionProvidersMetadata:T,configuredChatProvidersMetadata:E,configuredSpeechProvidersMetadata:D,configuredTranscriptionProvidersMetadata:O}}),E0=UO(`consciousness`,()=>{let e=T0(),t=pE(`settings/consciousness/active-provider`,``),n=pE(`settings/consciousness/active-model`,``),r=pE(`settings/consciousness/active-custom-model`,``),i=F({}),a=F(``),o=U(()=>e.getProviderMetadata(t.value)?.capabilities.listModels!==void 0),s=U(()=>e.getModelsForProvider(t.value)),c=U(()=>e.isLoadingModels[t.value]||!1),l=U(()=>e.modelLoadError[t.value]||null),u=U(()=>{if(!a.value.trim())return s.value;let e=a.value.toLowerCase().trim();return s.value.filter(t=>t.name.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))});function d(){n.value=``,r.value=``,i.value={},a.value=``}async function f(t){t&&e.getProviderMetadata(t)?.capabilities.listModels!==void 0&&await e.fetchModelsForProvider(t)}async function p(t){return t&&e.getProviderMetadata(t)?.capabilities.listModels!==void 0?e.getModelsForProvider(t):[]}let m=U(()=>!!t.value&&!!n.value);return{configured:m,activeProvider:t,activeModel:n,customModelName:r,expandedDescriptions:i,modelSearchQuery:a,supportsModelListing:o,providerModels:s,isLoadingActiveProviderModels:c,activeProviderModelError:l,filteredModels:u,resetModelSelection:d,loadModelsForProvider:f,getModelsForProvider:p}});var bOe=R({__name:`ProviderAccountIdInput`,props:Yi({placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);return(e,r)=>(z(),Oo(I(wM),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,label:t.label||`Account ID`,description:t.description||`Account ID`,placeholder:t.placeholder,required:t.required,type:`text`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),D0=bOe;const xOe=[`onClick`],SOe={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},COe={"mt-4":``};var wOe=R({__name:`ProviderAdvancedSettings`,props:{title:{},initialVisible:{type:Boolean}},setup(e){let t=e,n=F(t.initialVisible||!1);function r(){n.value=!n.value}return(e,t)=>(z(),Oo(kM,{"w-full":``},{trigger:L(n=>[V(`button`,{transition:`all ease-in-out duration-250`,"w-full":``,flex:``,"items-center":``,"gap-1.5":``,"outline-none":``,class:`[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0`,onClick:()=>n.setVisible(!n.visible)&&r()},[V(`h2`,SOe,[V(`span`,null,Pe(e.title||`Advanced`),1)]),V(`div`,{transform:``,transition:`transform duration-250`,class:Te({"rotate-180":n.visible})},[...t[0]||=[V(`div`,{"i-solar:alt-arrow-down-linear":``},null,-1)]],2)],8,xOe)]),default:L(()=>[V(`div`,COe,[ki(e.$slots,`default`)])]),_:3}))}}),O0=wOe,TOe=R({__name:`ProviderApiKeyInput`,props:Yi({providerName:{},placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,{t:n}=K1(),r=Wa(e,`modelValue`),i=U(()=>t.description||`API Key for ${t.providerName}`);return(e,t)=>(z(),Oo(I(wM),{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,label:e.label||I(n)(`settings.pages.providers.common.fields.field.api-key.label`),description:i.value,placeholder:e.placeholder,required:e.required,type:`password`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),k0=TOe,EOe=R({__name:`ProviderBaseUrlInput`,props:Yi({placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Wa(e,`modelValue`);return(e,r)=>(z(),Oo(I(wM),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,label:t.label||`Base URL`,description:t.description||(t.required?`Base URL`:`Custom base URL (optional)`),placeholder:t.placeholder,required:t.required,type:`text`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),A0=EOe;const DOe={flex:`~ col gap-6`},OOe={flex:`~ row`,"items-center":``,"justify-between":``},kOe={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},AOe={text:`neutral-400 dark:neutral-500`};var jOe=R({__name:`ProviderBasicSettings`,props:{title:{},description:{},onReset:{type:Function}},setup(e){return(e,t)=>(z(),B(`div`,DOe,[V(`div`,OOe,[V(`div`,null,[V(`h2`,kOe,Pe(e.title||`Basic`),1),V(`div`,AOe,[V(`span`,null,Pe(e.description||`Essential settings`),1)])]),e.onReset?(z(),B(`button`,{key:0,title:`Reset settings`,flex:``,"items-center":``,"justify-center":``,"rounded-full":``,"p-2":``,transition:`all duration-250 ease-in-out`,text:`neutral-500 dark:neutral-400`,bg:`transparent dark:transparent hover:neutral-200 dark:hover:neutral-800 active:neutral-300 dark:active:neutral-700`,onClick:t[0]||=(...t)=>e.onReset&&e.onReset(...t)},[...t[1]||=[V(`div`,{"i-solar:refresh-bold-duotone":``,"text-xl":``},null,-1)]])):Lo(``,!0)]),ki(e.$slots,`default`)]))}}),j0=jOe;const MOe={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-6`};var NOe=R({__name:`ProviderSettingsContainer`,setup(e){return(e,t)=>(z(),B(`div`,MOe,[ki(e.$slots,`default`)]))}}),M0=NOe;const POe={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``};var FOe=R({__name:`ProviderSettingsLayout2`,props:{providerName:{},providerIcon:{},providerIconColor:{},onBack:{type:Function}},setup(e){return(e,t)=>{let n=wi(`motion`);return z(),B(vo,null,[ki(e.$slots,`default`),cr((z(),B(`div`,POe,[V(`div`,{text:`60`,class:Te(e.providerIcon||e.providerIconColor)},null,2)])),[[n]])],64)}}}),N0=FOe;const IOe={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``};var LOe=R({__name:`ProviderSettingsLayout`,props:{providerName:{},providerIcon:{},providerIconColor:{},onBack:{type:Function}},setup(e){return(e,t)=>{let n=wi(`motion`);return z(),B(vo,null,[ki(e.$slots,`default`),cr((z(),B(`div`,IOe,[V(`div`,{text:`60`,class:Te(e.providerIcon||e.providerIconColor)},null,2)])),[[n]])],64)}}}),ROe=LOe; +`||i===` `)&&d(h$.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),ge(e,t)):C(e,t)?(g(e),f(t,11,pe(e))):T(e,t)?(g(e),i===`{`?he(e,t)||r:f(t,10,P(e))):(n===7&&d(h$.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,_e(e,t))}}function _e(e,t){let n={type:13};if(t.braceNest>0)return he(e,t)||p(t);if(t.inLinked)return ge(e,t)||p(t);let r=e.currentChar();switch(r){case`{`:return he(e,t)||p(t);case`}`:return d(h$.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return ge(e,t)||p(t);default:if(E(e))return n=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,ie(e));break}return n}function ve(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===void 0?f(c,13):_e(r,c)}return{nextToken:ve,currentOffset:i,currentPosition:a,context:l}}const SDe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function CDe(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function wDe(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();if(s.offset+=a,s.column+=a,n){let e=t?m$(i,s):null,a=g$(r,e,{domain:`parser`,args:o});n(a)}}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(5,r,o);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){let n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(4,r,o);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){let n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=i(9,r,o);return s.value=t.replace(SDe,CDe),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,_$(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,h$.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(o)),n.key=l(e,o.value||``);break;default:{r(e,h$.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=t.currentType===1?e.currentOffset():t.offset,u=t.currentType===1?t.endLoc:t.startLoc,d=i(2,n,u);d.items=[];let p=null;do{let n=p||e.nextToken();switch(p=null,n.type){case 0:n.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(n)),d.items.push(o(e,n.value||``));break;case 5:n.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(n)),d.items.push(s(e,n.value||``));break;case 4:n.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(n)),d.items.push(c(e,n.value||``));break;case 6:n.value??r(e,h$.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,_$(n)),d.items.push(l(e,n.value||``));break;case 7:{let t=f(e);d.items.push(t.node),p=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);let m=t.currentType===1?t.lastOffset:e.currentOffset(),h=t.currentType===1?t.lastEndLoc:e.currentPosition();return a(d,m,h),d}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,h$.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=xDe(n,ZQ({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,h$.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function _$(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function TDe(e,t={}){let n={ast:e,helpers:new Set},r=()=>n,i=e=>(n.helpers.add(e),e);return{context:r,helper:i}}function v$(e,t){for(let n=0;nb$(e)),e}function b$(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;ns;function l(e,t){s.code+=e}function u(e,t=!0){let n=t?i:``;l(a?n+` `.repeat(e):n)}function d(e=!0){let t=++s.indentLevel;e&&u(t)}function f(e=!0){let t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}let m=e=>`_${e}`,h=()=>s.needIndent;return{context:c,push:l,indent:d,deindent:f,newline:p,helper:m,needIndent:h}}function kDe(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),S$(e,t.key),t.modifier?(e.push(`, `),S$(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function ADe(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n{let n=a$(t.mode)?t.mode:`normal`,r=a$(t.filename)?t.filename:`message.intl`,i=!!t.sourceMap,a=t.breakLineCode==null?n===`arrow`?`;`:` +`:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=ODe(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${d$(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),S$(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function PDe(e,t={}){let n=ZQ({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=wDe(n),s=o.parse(e);return r?(a&&DDe(s),i&&x$(s),{ast:s,code:``}):(EDe(s,n),NDe(s,n))}function FDe(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&($Q().__INTLIFY_PROD_DEVTOOLS__=!1)}function C$(e){return s$(e)&&k$(e)===0&&(n$(e,`b`)||n$(e,`body`))}const w$=[`b`,`body`];function IDe(e){return P$(e,w$)}const T$=[`c`,`cases`];function LDe(e){return P$(e,T$,[])}const E$=[`s`,`static`];function RDe(e){return P$(e,E$)}const D$=[`i`,`items`];function zDe(e){return P$(e,D$,[])}const O$=[`t`,`type`];function k$(e){return P$(e,O$)}const A$=[`v`,`value`];function j$(e,t){let n=P$(e,A$);if(n!=null)return n;throw I$(t)}const M$=[`m`,`modifier`];function BDe(e){return P$(e,M$)}const N$=[`k`,`key`];function VDe(e){let t=P$(e,N$);if(t)return t;throw I$(6)}function P$(e,t,n){for(let n=0;nHDe(t,e);return t}function HDe(e,t){let n=IDe(t);if(n==null)throw I$(0);let r=k$(n);if(r===1){let t=n,r=LDe(t);return e.plural(r.reduce((t,n)=>[...t,R$(e,n)],[]))}else return R$(e,n)}function R$(e,t){let n=RDe(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=zDe(t).reduce((t,n)=>[...t,z$(e,n)],[]);return e.normalize(n)}}function z$(e,t){let n=k$(t);switch(n){case 3:return j$(t,n);case 9:return j$(t,n);case 4:{let r=t;if(n$(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(n$(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw I$(n)}case 5:{let r=t;if(n$(r,`i`)&&JQ(r.i))return e.interpolate(e.list(r.i));if(n$(r,`index`)&&JQ(r.index))return e.interpolate(e.list(r.index));throw I$(n)}case 6:{let n=t,r=BDe(n),i=VDe(n);return e.linked(z$(e,i),r?z$(e,r):void 0,e.type)}case 7:return j$(t,n);case 8:return j$(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}const UDe=e=>e;let B$=QQ();function WDe(e,t={}){let n=!1,r=t.onError||yDe;return t.onError=e=>{n=!0,r(e)},{...PDe(e,t),detectError:n}}function GDe(e,t){if(a$(e)){o$(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=t.onCacheKey||UDe,r=n(e),i=B$[r];if(i)return i;let{ast:a,detectError:o}=WDe(e,{...t,location:!1,jit:!0}),s=L$(a);return o?s:B$[r]=s}else{let t=e.cacheKey;if(t){let n=B$[t];return n||(B$[t]=L$(e))}else return L$(e)}}let V$=null;function KDe(e){V$=e}function qDe(e,t,n){V$&&V$.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const JDe=YDe(`function:translate`);function YDe(e){return t=>V$&&V$.emit(e,t)}const H$={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function U$(e){return g$(e,null,void 0)}H$.INVALID_ARGUMENT,H$.INVALID_DATE_ARGUMENT,H$.INVALID_ISO_DATE_ARGUMENT,H$.NOT_SUPPORT_NON_STRING_MESSAGE,H$.NOT_SUPPORT_LOCALE_PROMISE_VALUE,H$.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,H$.NOT_SUPPORT_LOCALE_TYPE;function W$(e,t){return t.locale==null?K$(e.locale):K$(t.locale)}let G$;function K$(e){if(a$(e))return e;if(i$(e)){if(e.resolvedOnce&&G$!=null)return G$;if(e.constructor.name===`Function`){let t=e();if(gDe(t))throw U$(H$.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return G$=t}else throw U$(H$.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw U$(H$.NOT_SUPPORT_LOCALE_TYPE)}function XDe(e,t,n){return[...new Set([n,...r$(t)?t:s$(t)?Object.keys(t):a$(t)?[t]:[n]])]}function q$(e,t,n){let r=a$(n)?n:Q$,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;r$(e);)e=J$(a,e,t);let o=r$(t)||!u$(t)?t:t.default?t.default:null;e=a$(o)?[o]:o,r$(e)&&J$(a,e,!1),i.__localeChainCache.set(r,a)}return a}function J$(e,t,n){let r=!0;for(let i=0;i{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=rOe(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=nOe(a),d=Y$[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}const X$=new Map;function aOe(e,t){return s$(e)?e[t]:null}function oOe(e,t){if(!s$(e))return null;let n=X$.get(t);if(n||(n=iOe(t),n&&X$.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sOe(){return{upper:(e,t)=>t===`text`&&a$(e)?e.toUpperCase():t===`vnode`&&s$(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&a$(e)?e.toLowerCase():t===`vnode`&&s$(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&a$(e)?$$(e):t===`vnode`&&s$(e)&&`__v_isVNode`in e?$$(e.children):e}}let e1;function cOe(e){e1=e}let t1;function lOe(e){t1=e}let n1;function uOe(e){n1=e}const dOe=()=>null;let r1=null;const i1=e=>{r1=e},fOe=()=>r1;let a1=0;function pOe(e={}){let t=i$(e.onWarn)?e.onWarn:lDe,n=a$(e.version)?e.version:`11.1.11`,r=a$(e.locale)||i$(e.locale)?e.locale:Q$,i=i$(r)?Q$:r,a=r$(e.fallbackLocale)||u$(e.fallbackLocale)||a$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=u$(e.messages)?e.messages:o1(i),s=u$(e.datetimeFormats)?e.datetimeFormats:o1(i),c=u$(e.numberFormats)?e.numberFormats:o1(i),l=ZQ(QQ(),e.modifiers,sOe()),u=e.pluralRules||QQ(),d=i$(e.missing)?e.missing:null,f=o$(e.missingWarn)||YQ(e.missingWarn)?e.missingWarn:!0,p=o$(e.fallbackWarn)||YQ(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=i$(e.postTranslation)?e.postTranslation:null,_=u$(e.processor)?e.processor:null,v=o$(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=i$(e.messageCompiler)?e.messageCompiler:e1,x=i$(e.messageResolver)?e.messageResolver:t1||aOe,S=i$(e.localeFallbacker)?e.localeFallbacker:n1||XDe,C=s$(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=s$(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=s$(w.__numberFormatters)?w.__numberFormatters:new Map,D=s$(w.__meta)?w.__meta:{};a1++;let O={version:n,cid:a1,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return O.datetimeFormats=s,O.numberFormats=c,O.__datetimeFormatters=T,O.__numberFormatters=E,__INTLIFY_PROD_DEVTOOLS__&&qDe(O,n,D),O}const o1=e=>({[e]:QQ()});function s1(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return a$(r)?r:t}else return t}function c1(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function mOe(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function hOe(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{d1.includes(e)?o[e]=n[e]:a[e]=n[e]}),a$(r)?a.locale=r:u$(r)&&(o=r),u$(i)&&(o=i),[a.key||``,s,a,o]}function p1(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;if(!r.__datetimeFormatters.has(n))continue;r.__datetimeFormatters.delete(n)}}function m1(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,l,u,d]=g1(...t),f=o$(u.missingWarn)?u.missingWarn:e.missingWarn;o$(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=W$(e,u),h=o(e,i,m);if(!a$(c)||c===``)return new Intl.NumberFormat(m,d).format(l);let g={},_,v=null;for(let t=0;t{h1.includes(e)?o[e]=n[e]:a[e]=n[e]}),a$(r)?a.locale=r:u$(r)&&(o=r),u$(i)&&(o=i),[a.key||``,s,a,o]}function _1(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;if(!r.__numberFormatters.has(n))continue;r.__numberFormatters.delete(n)}}const gOe=e=>e,_Oe=e=>``,vOe=e=>e.length===0?``:d$(e),yOe=_De;function v1(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function bOe(e){let t=JQ(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(JQ(e.named.count)||JQ(e.named.n))?JQ(e.named.count)?e.named.count:JQ(e.named.n)?e.named.n:t:t}function xOe(e,t){t.count||=e,t.n||=e}function SOe(e={}){let t=e.locale,n=bOe(e),r=s$(e.pluralRules)&&a$(t)&&i$(e.pluralRules[t])?e.pluralRules[t]:v1,i=s$(e.pluralRules)&&a$(t)&&i$(e.pluralRules[t])?v1:void 0,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||QQ();JQ(e.pluralIndex)&&xOe(n,c);let l=e=>c[e];function u(t,n){let r=i$(e.messages)?e.messages(t,!!n):s$(e.messages)?e.messages[t]:!1;return r||(e.parent?e.parent.message(t):_Oe)}let d=t=>e.modifiers?e.modifiers[t]:gOe,f=u$(e.processor)&&i$(e.processor.normalize)?e.processor.normalize:vOe,p=u$(e.processor)&&i$(e.processor.interpolate)?e.processor.interpolate:yOe,m=u$(e.processor)&&a$(e.processor.type)?e.processor.type:`text`,h=(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?s$(n)?(a=n.modifier||a,i=n.type||i):a$(n)&&(a=n||a):t.length===2&&(a$(n)&&(a=n||a),a$(r)&&(i=r||i));let o=u(e,!0)(g),s=i===`vnode`&&r$(o)&&a?o[0]:o;return a?d(a)(s,i):s},g={list:s,named:l,plural:a,linked:h,message:u,type:m,interpolate:p,normalize:f,values:ZQ(QQ(),o,c)};return g}const y1=()=>``,b1=e=>i$(e);function x1(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=w1(...t),u=o$(l.missingWarn)?l.missingWarn:e.missingWarn,d=o$(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=o$(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=a$(l.default)||o$(l.default)?o$(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(a$(m)||i$(m)),g=W$(e,l);f&&COe(l);let[_,v,y]=p?[c,g,s[g]||QQ()]:S1(e,c,g,o,d,u),b=_,x=c;if(!p&&!(a$(b)||C$(b)||b1(b))&&h&&(b=m,x=b),!p&&(!(a$(b)||C$(b)||b1(b))||!a$(v)))return i?-1:c;let S=!1,C=()=>{S=!0},w=b1(b)?b:C1(e,c,v,b,x,C);if(S)return b;let T=EOe(e,v,y,l),E=SOe(T),D=wOe(e,w,E),O=r?r(D,c):D;if(f&&a$(O)&&(O=mDe(O)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:a$(c)?c:b1(b)?b.key:``,locale:v||(b1(b)?b.locale:``),format:a$(b)?b:b1(b)?b.source:``,message:O};t.meta=ZQ({},e.__meta,dOe()||{}),JDe(t)}return O}function COe(e){r$(e.list)?e.list=e.list.map(e=>a$(e)?e$(e):e):s$(e.named)&&Object.keys(e.named).forEach(t=>{a$(e.named[t])&&(e.named[t]=e$(e.named[t]))})}function S1(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=QQ(),f,p=null;for(let n=0;nr);return e.locale=n,e.key=t,e}let c=o(r,TOe(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function wOe(e,t,n){let r=t(n);return r}function w1(...e){let[t,n,r]=e,i=QQ();if(!a$(t)&&!JQ(t)&&!b1(t)&&!C$(t))throw U$(H$.INVALID_ARGUMENT);let a=JQ(t)?String(t):(b1(t),t);return JQ(n)?i.plural=n:a$(n)?i.default=n:u$(n)&&!XQ(n)?i.named=n:r$(n)&&(i.list=n),JQ(r)?i.plural=r:a$(r)?i.default=r:u$(r)&&ZQ(i,r),[a,i]}function TOe(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>uDe(t,n,e)}}function EOe(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d=(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[,,n]=S1(u||e,r,t,s,c,l);a=o(n,r)}if(a$(a)||C$(a)){let n=!1,i=()=>{n=!0},o=C1(e,r,t,a,r,i);return n?y1:o}else if(b1(a))return a;else return y1},f={locale:t,modifiers:i,pluralRules:a,messages:d};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),JQ(r.plural)&&(f.pluralIndex=r.plural),f}FDe();function DOe(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&($Q().__INTLIFY_PROD_DEVTOOLS__=!1)}const T1={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function E1(e,...t){return g$(e,null,void 0)}T1.UNEXPECTED_RETURN_TYPE,T1.INVALID_ARGUMENT,T1.MUST_BE_CALL_SETUP_TOP,T1.NOT_INSTALLED,T1.UNEXPECTED_ERROR,T1.REQUIRED_VALUE,T1.INVALID_VALUE,T1.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,T1.NOT_INSTALLED_WITH_PROVIDE,T1.NOT_COMPATIBLE_LEGACY_VUE_I18N,T1.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const D1=qQ(`__translateVNode`),O1=qQ(`__datetimeParts`),k1=qQ(`__numberParts`),OOe=qQ(`__setPluralRules`);qQ(`__intlifyMeta`);const kOe=qQ(`__injectWithOption`),A1=qQ(`__dispose`),j1={FALLBACK_TO_ROOT:8,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13};j1.FALLBACK_TO_ROOT,j1.NOT_FOUND_PARENT_SCOPE,j1.IGNORE_OBJ_FLATTEN,j1.DEPRECATE_LEGACY_MODE,j1.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,j1.DUPLICATE_USE_I18N_CALLING;function M1(e){if(!s$(e)||C$(e))return e;for(let t in e){if(!n$(e,t))continue;if(!t.includes(`.`))s$(e[t])&&M1(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||QQ(),p$(n,o[t])):p$(n,o)}else a$(e)&&p$(JSON.parse(e),o)}),i==null&&a)for(let e in o)n$(o,e)&&M1(o[e]);return o}function AOe(e){return e.type}function jOe(e,t,n){let r=s$(t.messages)?t.messages:QQ();`__i18nGlobal`in n&&(r=N1(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),s$(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(s$(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function P1(e){return H(xo,null,e,0)}const F1=()=>[],MOe=()=>!1;let I1=0;function L1(e){return((t,n,r,i)=>e(n,r,qo()||void 0,i))}function R1(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=KQ?F:fn,o=o$(e.inheritLocale)?e.inheritLocale:!0,s=a(t&&o?t.locale.value:a$(e.locale)?e.locale:Q$),c=a(t&&o?t.fallbackLocale.value:a$(e.fallbackLocale)||r$(e.fallbackLocale)||u$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(N1(s.value,e)),u=a(u$(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(u$(e.numberFormats)?e.numberFormats:{[s.value]:{}}),f=t?t.missingWarn:o$(e.missingWarn)||YQ(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:o$(e.fallbackWarn)||YQ(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:o$(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,g=i$(e.missing)?e.missing:null,_=i$(e.missing)?L1(e.missing):null,v=i$(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:o$(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,x=t?t.modifiers:u$(e.modifiers)?e.modifiers:{},S=e.pluralRules||t&&t.pluralRules,C,w=()=>{r&&i1(null);let t={version:`11.1.11`,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:x,pluralRules:S,missing:_===null?void 0:_,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:y,escapeParameter:b,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=u$(C)?C.__datetimeFormatters:void 0,t.__numberFormatters=u$(C)?C.__numberFormatters:void 0;let n=pOe(t);return r&&i1(n),n};C=w(),c1(C,s.value,c.value);function T(){return[s.value,c.value,l.value,u.value,d.value]}let E=U({get:()=>s.value,set:e=>{C.locale=e,s.value=e}}),D=U({get:()=>c.value,set:e=>{C.fallbackLocale=e,c.value=e,c1(C,s.value,e)}}),O=U(()=>l.value),k=U(()=>u.value),A=U(()=>d.value);function j(){return i$(v)?v:null}function M(e){v=e,C.postTranslation=e}function ee(){return g}function te(e){e!==null&&(_=L1(e)),g=e,C.missing=_}let N=(e,n,i,a,o,s)=>{T();let c;try{__INTLIFY_PROD_DEVTOOLS__,r||(C.fallbackContext=t?fOe():void 0),c=e(C)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(C.fallbackContext=void 0)}if(i!==`translate exists`&&JQ(c)&&c===-1||i===`translate exists`&&!c){let[e,r]=n();return t&&m?a(t):o(e)}else if(s(c))return c;else throw E1(T1.UNEXPECTED_RETURN_TYPE)};function ne(...e){return N(t=>Reflect.apply(x1,null,[t,...e]),()=>w1(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>a$(e))}function re(...e){let[t,n,r]=e;if(r&&!s$(r))throw E1(T1.INVALID_ARGUMENT);return ne(t,n,ZQ({resolvedMessage:!0},r||{}))}function ie(...e){return N(t=>Reflect.apply(u1,null,[t,...e]),()=>f1(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>a$(e)||r$(e))}function ae(...e){return N(t=>Reflect.apply(m1,null,[t,...e]),()=>g1(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>a$(e)||r$(e))}function oe(e){return e.map(e=>a$(e)||JQ(e)||o$(e)?P1(String(e)):e)}let se=e=>e,ce={normalize:oe,interpolate:se,type:`vnode`};function le(...e){return N(t=>{let n,r=t;try{r.processor=ce,n=Reflect.apply(x1,null,[r,...e])}finally{r.processor=null}return n},()=>w1(...e),`translate`,t=>t[D1](...e),e=>[P1(e)],e=>r$(e))}function ue(...e){return N(t=>Reflect.apply(m1,null,[t,...e]),()=>g1(...e),`number format`,t=>t[k1](...e),F1,e=>a$(e)||r$(e))}function de(...e){return N(t=>Reflect.apply(u1,null,[t,...e]),()=>f1(...e),`datetime format`,t=>t[O1](...e),F1,e=>a$(e)||r$(e))}function fe(e){S=e,C.pluralRules=S}function pe(e,t){return N(()=>{if(!e)return!1;let n=a$(t)?t:s.value,r=he(n),i=C.messageResolver(r,e);return C$(i)||b1(i)||a$(i)},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),MOe,e=>o$(e))}function P(e){let t=null,n=q$(C,c.value,s.value);for(let r=0;r{o&&(s.value=e,C.locale=e,c1(C,s.value,c.value))}),Ha(t.fallbackLocale,e=>{o&&(c.value=e,C.fallbackLocale=e,c1(C,s.value,c.value))}));let we={id:I1,locale:E,fallbackLocale:D,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,c1(C,s.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:O,get modifiers(){return x},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,C.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,C.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(e){m=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,C.fallbackFormat=h},get warnHtmlMessage(){return y},set warnHtmlMessage(e){y=e,C.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,C.escapeParameter=e},t:ne,getLocaleMessage:he,setLocaleMessage:ge,mergeLocaleMessage:_e,getPostTranslationHandler:j,setPostTranslationHandler:M,getMissingHandler:ee,setMissingHandler:te,[OOe]:fe};return we.datetimeFormats=k,we.numberFormats=A,we.rt=re,we.te=pe,we.tm=me,we.d=ie,we.n=ae,we.getDateTimeFormat=ve,we.setDateTimeFormat=ye,we.mergeDateTimeFormat=be,we.getNumberFormat=xe,we.setNumberFormat=Se,we.mergeNumberFormat=Ce,we[kOe]=n,we[D1]=le,we[O1]=de,we[k1]=ue,we}const z1={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function NOe({slots:e},t){if(t.length===1&&t[0]===`default`){let t=e.default?e.default():[];return t.reduce((e,t)=>[...e,...t.type===bo?t.children:[t]],[])}else return t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},QQ())}function B1(){return bo}const POe=R({name:`i18n-t`,props:ZQ({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>JQ(e)||!isNaN(e)}},z1),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||K1({useScope:e.scope,__useComponent:!0});return()=>{let a=Object.keys(n).filter(e=>e[0]!==`_`),o=QQ();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=a$(e.plural)?+e.plural:e.plural);let s=NOe(t,a),c=i[D1](e.keypath,s,o),l=ZQ(QQ(),r),u=a$(e.tag)||s$(e.tag)?e.tag:B1();return fs(u,l,c)}}}),V1=POe;function FOe(e){return r$(e)&&!a$(e[0])}function H1(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t={part:!0},o=QQ();e.locale&&(t.locale=e.locale),a$(e.format)?t.key=e.format:s$(e.format)&&(a$(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce((t,r)=>n.includes(r)?ZQ(QQ(),t,{[r]:e.format[r]}):t,QQ()));let s=r(e.value,t,o),c=[t.key];r$(s)?c=s.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];return FOe(r)&&(r[0].key=`${e.type}-${t}`),r}):a$(s)&&(c=[s]);let l=ZQ(QQ(),a),u=a$(e.tag)||s$(e.tag)?e.tag:B1();return fs(u,l,c)}}const IOe=R({name:`i18n-n`,props:ZQ({value:{type:Number,required:!0},format:{type:[String,Object]}},z1),setup(e,t){let n=e.i18n||K1({useScope:e.scope,__useComponent:!0});return H1(e,t,h1,(...e)=>n[k1](...e))}}),U1=IOe;function LOe(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function ROe(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw E1(T1.UNEXPECTED_ERROR);let i=LOe(e,n.$),a=W1(r);return[Reflect.apply(i.t,i,[...G1(a)]),i]},n=(n,r)=>{let[i,a]=t(r);KQ&&e.global===a&&(n.__i18nWatcher=Ha(a.locale,()=>{r.instance&&r.instance.$forceUpdate()})),n.__composer=a,n.textContent=i},r=e=>{KQ&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},i=(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=W1(t);e.textContent=Reflect.apply(n.t,n,[...G1(r)])}},a=e=>{let[n]=t(e);return{textContent:n}};return{created:n,unmounted:r,beforeUpdate:i,getSSRProps:a}}function W1(e){if(a$(e))return{path:e};if(u$(e)){if(!(`path`in e))throw E1(T1.REQUIRED_VALUE,`path`);return e}else throw E1(T1.INVALID_VALUE)}function G1(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return a$(n)&&(o.locale=n),JQ(i)&&(o.plural=i),JQ(a)&&(o.plural=a),[t,s,o]}function zOe(e,t,...n){let r=u$(n[0])?n[0]:{},i=o$(r.globalInstall)?r.globalInstall:!0;i&&([V1.name,`I18nT`].forEach(t=>e.component(t,V1)),[U1.name,`I18nN`].forEach(t=>e.component(t,U1)),[J1.name,`I18nD`].forEach(t=>e.component(t,J1))),e.directive(`t`,ROe(t))}const BOe=qQ(`global-vue-i18n`);function VOe(e={}){let t=o$(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,i]=HOe(e,!1),a=qQ(``);function o(e){return n.get(e)||null}function s(e,t){n.set(e,t)}function c(e){n.delete(e)}let l={get mode(){return`composition`},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,l),u$(n[0])){let e=n[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let r=null;t&&(r=XOe(e,l.global)),zOe(e,l,...n);let i=e.unmount;e.unmount=()=>{r&&r(),l.dispose(),i()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:s,__deleteInstance:c};return l}function K1(e={}){let t=qo();if(t==null)throw E1(T1.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw E1(T1.NOT_INSTALLED);let n=UOe(t),r=GOe(n),i=AOe(t),a=WOe(e,i);if(a===`global`)return jOe(r,e,i),r;if(a===`parent`){let i=KOe(n,t,e.__useComponent);return i??=r,i}let o=n,s=o.__getInstance(t);if(s==null){let n=ZQ({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=R1(n),o.__composerExtend&&(s[A1]=o.__composerExtend(s)),JOe(o,t,s),o.__setInstance(t,s)}return s}function HOe(e,t){let n=Be(),r=n.run(()=>R1(e));if(r==null)throw E1(T1.UNEXPECTED_ERROR);return[n,r]}function UOe(e){let t=da(e.isCE?BOe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw E1(e.isCE?T1.NOT_INSTALLED_WITH_PROVIDE:T1.UNEXPECTED_ERROR);return t}function WOe(e,t){return XQ(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function GOe(e){return e.mode===`composition`?e.global:e.global.__composer}function KOe(e,t,n=!1){let r=null,i=t.root,a=qOe(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`&&(r=t.__getInstance(a)),r!=null||i===a)break;a=a.parent}return r}function qOe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function JOe(e,t,n){fi(()=>{},t),gi(()=>{let r=n;e.__deleteInstance(t);let i=r[A1];i&&(i(),delete r[A1])},t)}const YOe=[`locale`,`fallbackLocale`,`availableLocales`],q1=[`t`,`rt`,`d`,`n`,`tm`,`te`];function XOe(e,t){let n=Object.create(null);YOe.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw E1(T1.UNEXPECTED_ERROR);let i=dn(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,q1.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw E1(T1.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)});let r=()=>{delete e.config.globalProperties.$i18n,q1.forEach(t=>{delete e.config.globalProperties[`$${t}`]})};return r}const ZOe=R({name:`i18n-d`,props:ZQ({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},z1),setup(e,t){let n=e.i18n||K1({useScope:e.scope,__useComponent:!0});return H1(e,t,d1,(...e)=>n[O1](...e))}}),J1=ZOe;if(DOe(),cOe(GDe),lOe(oOe),uOe(q$),__INTLIFY_PROD_DEVTOOLS__){let e=$Q();e.__INTLIFY__=!0,KDe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var QOe=`/assets/onboarding-S2C4LIWw.avif`;const Y1=e=>({chat:t=>Object.assign(e,{model:t})}),X1=e=>({embed:t=>Object.assign(e,{model:t})}),$Oe=e=>({image:t=>Object.assign(e,{model:t})}),Z1=e=>({model:()=>e}),Q1=e=>({speech:t=>Object.assign(e,{model:t})}),$1=e=>({transcription:t=>Object.assign(e,{model:t})}),e0=(e,t)=>({metadata:{id:e,...t}}),t0=(...e)=>Object.assign(e[0],...e.slice(1));var n0=class extends Error{response;constructor(e,t,n){super(e,{cause:n}),this.name=`XSAIError`,this.response=t}};const eke=e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`),r0=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[eke(e),t])),i0=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),a0=e=>JSON.stringify(r0(i0({...e,abortSignal:void 0,apiKey:void 0,baseURL:void 0,fetch:void 0,headers:void 0}))),o0=(e,t)=>i0({Authorization:t===void 0?void 0:`Bearer ${t}`,...e}),s0=(e,t)=>{let n=t.toString();return new URL(e,n.endsWith(`/`)?n:`${n}/`)},c0=async e=>{if(!e.ok)throw new n0(`Remote sent ${e.status} response: ${await e.text()}`,e);if(!e.body)throw new n0(`Response body is empty from remote server`,e);if(!(e.body instanceof ReadableStream))throw new n0(`Expected Response body to be a ReadableStream, but got ${String(e.body)}; Content Type is ${e.headers.get(`Content-Type`)}`,e);return e},l0=async e=>{let t=await e.text();try{return JSON.parse(t)}catch(n){throw new n0(`Failed to parse response, response body: ${t}`,e,n)}},tke=async e=>{let t=typeof e.apiKey==`string`?{"api-key":e.apiKey}:void 0,n=`https://${e.resourceName}.services.ai.azure.com/models/`,r=async(t,n)=>{e.apiVersion!=null&&t.searchParams.set(`api-version`,e.apiVersion);let r=`Bearer ${typeof e.apiKey==`function`?await e.apiKey():e.apiKey}`;return n.headers??={},Array.isArray(n.headers)?n.headers.push([`Authorization`,r]):n.headers instanceof Headers?n.headers.append(`Authorization`,r):n.headers.Authorization=r,globalThis.fetch(t,n)};return t0(e0(`azure`),Y1({baseURL:n,fetch:r,headers:t}),X1({baseURL:n,fetch:r,headers:t}),Q1({baseURL:n,fetch:r,headers:t}),$1({baseURL:n,fetch:r,headers:t}),Z1({baseURL:n,fetch:r,headers:t}))},nke=(e,t=`https://api.deepseek.com/`)=>t0(e0(`deepseek`),Y1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),rke=(e,t=`https://api.fireworks.ai/inference/v1/`)=>t0(e0(`fireworks`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),ike=(e,t=`https://generativelanguage.googleapis.com/v1beta/openai/`)=>t0(e0(`google-generative-ai`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),ake=(e,t=`https://api.mistral.ai/v1/`)=>t0(e0(`mistral`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),oke=(e,t=`https://api.moonshot.cn/v1/`)=>t0(e0(`moonshot`),Y1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),ske=(e,t=`https://api.novita.ai/v3/openai/`)=>t0(e0(`novita`),Y1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),u0=(e,t=`https://api.openai.com/v1/`)=>t0(e0(`openai`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),$Oe({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t}),Q1({apiKey:e,baseURL:t}),$1({apiKey:e,baseURL:t})),cke=(e,t=`https://openrouter.ai/api/v1/`)=>t0(e0(`openrouter`),{chat:(n,r)=>{let i={apiKey:e,baseURL:t,model:n},a=({extraHeaders:e,models:t,provider:n})=>{e!=null&&(i.headers??={},Object.assign(i.headers,e));let r;return n!=null&&(r=r0(n)),r0({models:t,provider:r})};return{...r?a(r):{},...i}}},Z1({apiKey:e,baseURL:t})),lke=(e,t=`https://api.perplexity.ai/`)=>t0(e0(`perplexity`),Y1({apiKey:e,baseURL:t})),uke=(e,t=`https://api.together.xyz/v1/`)=>t0(e0(`together-ai`),Y1({apiKey:e,baseURL:t}),X1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t,fetch:async(...e)=>globalThis.fetch(...e).then(async e=>e.json()).then(e=>Response.json({data:e,object:`list`}))})),dke=(e,t)=>{let n=`https://api.cloudflare.com/client/v4/accounts/${t}/ai/v1/`;return t0(e0(`workers-ai`),Y1({apiKey:e,baseURL:n}),X1({apiKey:e,baseURL:n}))},fke=(e,t=`https://api.x.ai/v1/`)=>t0(e0(`xai`),Y1({apiKey:e,baseURL:t}),Z1({apiKey:e,baseURL:t})),d0=(e=`http://localhost:11434/v1/`)=>t0(e0(`ollama`),Y1({baseURL:e}),X1({baseURL:e}),Z1({baseURL:e})),pke=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;et0(e0(`player2`),Y1({baseURL:e,headers:{"player2-game-key":t}}),Q1({baseURL:e,fetch:async(e,t)=>{let n=`${e.toString().slice(0,-12)}tts/speak`;try{let{input:e,response_format:n,speed:r,voice:i,...a}=JSON.parse(t?.body),o={audio_format:n,play_in_app:!1,speed:r??1,text:e,voice_ids:i==null?[]:[i],...a};t&&(t.body=JSON.stringify(o))}catch(e){console.warn(`Could not parse body as JSON:`,e)}return globalThis.fetch(n,t).then(async e=>e.json()).then(e=>{let t=e.data??``,n=pke(t);return new Response(n,{headers:{"Content-Type":`audio/mpeg`},status:200})})},headers:{"player2-game-key":t}})),p0=async e=>(e.fetch??globalThis.fetch)(s0(`models`,e.baseURL),{headers:o0(e.headers,e.apiKey),signal:e.abortSignal}).then(c0).then(l0).then(({data:e})=>e);async function m0(){try{if(mke())return{supported:!1,isNode:!0,reason:``,fp16Supported:!1};if(typeof navigator>`u`||!navigator.gpu)return{supported:!1,isNode:!1,reason:`WebGPU is not available (navigator.gpu is undefined)`,fp16Supported:!1};let e=await navigator.gpu.requestAdapter();return e?{supported:!0,isNode:!1,reason:``,adapter:e,fp16Supported:e.features.has(`shader-f16`)}:{supported:!1,isNode:!1,reason:`WebGPU is not supported (no adapter found)`,fp16Supported:!1}}catch(e){let t=e instanceof Error?e.toString():String(e);return{supported:!1,isNode:!1,reason:t,fp16Supported:!1}}}function mke(){return typeof process<`u`&&`versions`in process&&process.versions!=null&&typeof process.versions==`object`&&`node`in process.versions&&process.versions.node!=null}async function hke(){return m0().then(e=>e.supported)}const h0=(...e)=>Object.assign(e[0],...e.slice(1));var g0=class extends Error{response;constructor(e,t){super(e),this.name=`XSAIError`,this.response=t}};const gke=e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`),_0=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[gke(e),t])),_ke=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),vke=(e,t)=>_ke({Authorization:t===void 0?void 0:`Bearer ${t}`,...e}),yke=(e,t)=>{let n=t.toString();return new URL(e,n.endsWith(`/`)?n:`${n}/`)},bke=async e=>{if(!e.ok)throw new g0(`Remote sent ${e.status} response: ${await e.text()}`,e);if(!e.body)throw new g0(`Response body is empty from remote server`,e);if(!(e.body instanceof ReadableStream))throw new g0(`Expected Response body to be a ReadableStream, but got ${String(e.body)}; Content Type is ${e.headers.get(`Content-Type`)}`,e);return e},xke=async e=>bke(e).then(async e=>{let t=await e.text();try{return JSON.parse(t)}catch{throw Error(`Failed to parse response, response body: ${t}`)}});var v0=(e,t=`http://localhost:5933/v1/`)=>{let n=({applyTextNormalization:e,languageCode:t,nextRequestIds:n,nextText:r,previousRequestIds:i,previousText:a,pronunciationDictionaryLocators:o,seed:s,voiceSettings:c})=>({extraBody:_0({applyTextNormalization:e,languageCode:t,nextRequestIds:n,nextText:r,previousRequestIds:i,previousText:a,pronunciationDictionaryLocators:o?o.map(e=>_0(e)):void 0,seed:s,voiceSettings:_0(c??{similarityBoost:.75,stability:.5})})}),r={speech:(r,i)=>({...i?n(i):{},apiKey:e,baseURL:t,model:`elevenlabs/${r}`})},i={voice:r=>(t.endsWith(`v1/`)?t=t.slice(0,-3):t.endsWith(`v1`)&&(t=t.slice(0,-2)),{query:`provider=elevenlabs`,...r?n(r):{},apiKey:e,baseURL:t})};return h0(r,i)},y0=(e,t=`http://localhost:5933/v1/`)=>{let n=e=>{let{deploymentId:t,region:n,sampleRate:r}=e,i={deploymentId:t,region:n,sampleRate:r};return`disableSsml`in e?i.disableSsml=e.disableSsml:`lang`in e&&(i.lang=e.lang,i.gender=e.gender,i.voice=e.voice),{extraBody:_0(i)}},r={speech:(r,i)=>({...i?n(i):{},apiKey:e,baseURL:t,model:`microsoft/${r}`})},i={voice:r=>(t.endsWith(`v1/`)?t=t.slice(0,-3):t.endsWith(`v1`)&&(t=t.slice(0,-2)),{query:`region=${r?.region}&provider=microsoft`,...r?n(r):{},apiKey:e,baseURL:t})};return h0(r,i)},b0=(e,t=`http://localhost:5933/v1/`)=>{let n=t=>{let n={app:{appid:t.app?.appId,token:e}};return t.app!==void 0&&(n.app={...t.app,appid:t.app?.appId,token:e}),t.user!==void 0&&(n.user=t.user),t.audio!==void 0&&(n.audio=t.audio),{extraBody:_0(n)}},r={speech:(r,i)=>({...i?n(i):{},apiKey:e,baseURL:t,model:`volcengine/${r}`})},i={voice:r=>(t.endsWith(`v1/`)?t=t.slice(0,-3):t.endsWith(`v1`)&&(t=t.slice(0,-2)),{query:`provider=volcengine`,...r?n(r):{},apiKey:e,baseURL:t})};return h0(r,i)},x0=(e,t=`http://localhost:5933/v1/`)=>{let n=e=>{let{sampleRate:t,volume:n,rate:r,pitch:i}=e,a={sampleRate:t,volume:n,rate:r,pitch:i};return Object.keys(a).forEach(e=>a[e]===void 0&&delete a[e]),{extraBody:_0(a)}},r={speech:(r,i)=>({...i?n(i):{},apiKey:e,baseURL:t,model:`alibaba/${r}`})},i={voice:r=>{let i=t;return i.endsWith(`v1/`)?i=i.slice(0,-3):i.endsWith(`v1`)&&(i=i.slice(0,-2)),{query:`provider=alibaba`,...r?n(r):{},apiKey:e,baseURL:i}}};return h0(r,i)},S0=async e=>(e.fetch??globalThis.fetch)(yke(e.query?`api/voices?${e.query}`:`api/voices`,e.baseURL),{headers:vke({...e.headers},e.apiKey),method:`GET`,signal:e.abortSignal}).then(xke).then(({voices:e})=>e);function C0(e){try{return new URL(e),!0}catch{return!1}}const Ske=[{model_id:`eleven_multilingual_v2`,name:`Eleven Multilingual v2`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!0,can_use_speaker_boost:!0,serves_pro_voices:!1,token_cost_factor:1,description:`Our most life-like, emotionally rich mode in 29 languages. Best for voice overs, audiobooks, post-production, or any other content creation needs.`,requires_alpha_access:!1,max_characters_request_free_user:1e4,max_characters_request_subscribed_user:1e4,maximum_text_length_per_request:1e4,languages:[{language_id:`en`,name:`English`},{language_id:`ja`,name:`Japanese`},{language_id:`zh`,name:`Chinese`},{language_id:`de`,name:`German`},{language_id:`hi`,name:`Hindi`},{language_id:`fr`,name:`French`},{language_id:`ko`,name:`Korean`},{language_id:`pt`,name:`Portuguese`},{language_id:`it`,name:`Italian`},{language_id:`es`,name:`Spanish`},{language_id:`id`,name:`Indonesian`},{language_id:`nl`,name:`Dutch`},{language_id:`tr`,name:`Turkish`},{language_id:`fil`,name:`Filipino`},{language_id:`pl`,name:`Polish`},{language_id:`sv`,name:`Swedish`},{language_id:`bg`,name:`Bulgarian`},{language_id:`ro`,name:`Romanian`},{language_id:`ar`,name:`Arabic`},{language_id:`cs`,name:`Czech`},{language_id:`el`,name:`Greek`},{language_id:`fi`,name:`Finnish`},{language_id:`hr`,name:`Croatian`},{language_id:`ms`,name:`Malay`},{language_id:`sk`,name:`Slovak`},{language_id:`da`,name:`Danish`},{language_id:`ta`,name:`Tamil`},{language_id:`uk`,name:`Ukrainian`},{language_id:`ru`,name:`Russian`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`},{model_id:`eleven_flash_v2_5`,name:`Eleven Flash v2.5`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our ultra low latency model in 32 languages. Ideal for conversational use cases.`,requires_alpha_access:!1,max_characters_request_free_user:4e4,max_characters_request_subscribed_user:4e4,maximum_text_length_per_request:4e4,languages:[{language_id:`en`,name:`English`},{language_id:`ja`,name:`Japanese`},{language_id:`zh`,name:`Chinese`},{language_id:`de`,name:`German`},{language_id:`hi`,name:`Hindi`},{language_id:`fr`,name:`French`},{language_id:`ko`,name:`Korean`},{language_id:`pt`,name:`Portuguese`},{language_id:`it`,name:`Italian`},{language_id:`es`,name:`Spanish`},{language_id:`ru`,name:`Russian`},{language_id:`id`,name:`Indonesian`},{language_id:`nl`,name:`Dutch`},{language_id:`tr`,name:`Turkish`},{language_id:`fil`,name:`Filipino`},{language_id:`pl`,name:`Polish`},{language_id:`sv`,name:`Swedish`},{language_id:`bg`,name:`Bulgarian`},{language_id:`ro`,name:`Romanian`},{language_id:`ar`,name:`Arabic`},{language_id:`cs`,name:`Czech`},{language_id:`el`,name:`Greek`},{language_id:`fi`,name:`Finnish`},{language_id:`hr`,name:`Croatian`},{language_id:`ms`,name:`Malay`},{language_id:`sk`,name:`Slovak`},{language_id:`da`,name:`Danish`},{language_id:`ta`,name:`Tamil`},{language_id:`uk`,name:`Ukrainian`},{language_id:`hu`,name:`Hungarian`},{language_id:`no`,name:`Norwegian`},{language_id:`vi`,name:`Vietnamese`}],model_rates:{character_cost_multiplier:.5},concurrency_group:`turbo`},{model_id:`eleven_turbo_v2_5`,name:`Eleven Turbo v2.5`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our high quality, low latency model in 32 languages. Best for developer use cases where speed matters and you need non-English languages.`,requires_alpha_access:!1,max_characters_request_free_user:4e4,max_characters_request_subscribed_user:4e4,maximum_text_length_per_request:4e4,languages:[{language_id:`en`,name:`English`},{language_id:`ja`,name:`Japanese`},{language_id:`zh`,name:`Chinese`},{language_id:`de`,name:`German`},{language_id:`hi`,name:`Hindi`},{language_id:`fr`,name:`French`},{language_id:`ko`,name:`Korean`},{language_id:`pt`,name:`Portuguese`},{language_id:`it`,name:`Italian`},{language_id:`es`,name:`Spanish`},{language_id:`ru`,name:`Russian`},{language_id:`id`,name:`Indonesian`},{language_id:`nl`,name:`Dutch`},{language_id:`tr`,name:`Turkish`},{language_id:`fil`,name:`Filipino`},{language_id:`pl`,name:`Polish`},{language_id:`sv`,name:`Swedish`},{language_id:`bg`,name:`Bulgarian`},{language_id:`ro`,name:`Romanian`},{language_id:`ar`,name:`Arabic`},{language_id:`cs`,name:`Czech`},{language_id:`el`,name:`Greek`},{language_id:`fi`,name:`Finnish`},{language_id:`hr`,name:`Croatian`},{language_id:`ms`,name:`Malay`},{language_id:`sk`,name:`Slovak`},{language_id:`da`,name:`Danish`},{language_id:`ta`,name:`Tamil`},{language_id:`uk`,name:`Ukrainian`},{language_id:`vi`,name:`Vietnamese`},{language_id:`no`,name:`Norwegian`},{language_id:`hu`,name:`Hungarian`}],model_rates:{character_cost_multiplier:.5},concurrency_group:`turbo`},{model_id:`eleven_turbo_v2`,name:`Eleven Turbo v2`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our English-only, low latency model. Best for developer use cases where speed matters and you only need English. Performance is on par with Turbo v2.5.`,requires_alpha_access:!1,max_characters_request_free_user:3e4,max_characters_request_subscribed_user:3e4,maximum_text_length_per_request:3e4,languages:[{language_id:`en`,name:`English`}],model_rates:{character_cost_multiplier:.5},concurrency_group:`turbo`},{model_id:`eleven_flash_v2`,name:`Eleven Flash v2`,can_be_finetuned:!0,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our ultra low latency model in english. Ideal for conversational use cases.`,requires_alpha_access:!1,max_characters_request_free_user:3e4,max_characters_request_subscribed_user:3e4,maximum_text_length_per_request:3e4,languages:[{language_id:`en`,name:`English`}],model_rates:{character_cost_multiplier:.5},concurrency_group:`turbo`},{model_id:`eleven_english_sts_v2`,name:`Eleven English v2`,can_be_finetuned:!1,can_do_text_to_speech:!1,can_do_voice_conversion:!0,can_use_style:!0,can_use_speaker_boost:!0,serves_pro_voices:!1,token_cost_factor:1,description:`Our state-of-the-art speech to speech model suitable for scenarios where you need maximum control over the content and prosody of your generations.`,requires_alpha_access:!1,max_characters_request_free_user:5e3,max_characters_request_subscribed_user:5e3,maximum_text_length_per_request:5e3,languages:[{language_id:`en`,name:`English`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`},{model_id:`eleven_multilingual_v1`,name:`Eleven Multilingual v1`,can_be_finetuned:!1,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our first Multilingual model, capability of generating speech in 10 languages. Now outclassed by Multilingual v2 (for content creation) and Turbo v2.5 (for low latency use cases).`,requires_alpha_access:!1,max_characters_request_free_user:1e4,max_characters_request_subscribed_user:1e4,maximum_text_length_per_request:1e4,languages:[{language_id:`en`,name:`English`},{language_id:`de`,name:`German`},{language_id:`pl`,name:`Polish`},{language_id:`es`,name:`Spanish`},{language_id:`it`,name:`Italian`},{language_id:`fr`,name:`French`},{language_id:`pt`,name:`Portuguese`},{language_id:`hi`,name:`Hindi`},{language_id:`ar`,name:`Arabic`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`},{model_id:`eleven_multilingual_sts_v2`,name:`Eleven Multilingual v2`,can_be_finetuned:!0,can_do_text_to_speech:!1,can_do_voice_conversion:!0,can_use_style:!0,can_use_speaker_boost:!0,serves_pro_voices:!1,token_cost_factor:1,description:`Our cutting-edge, multilingual speech-to-speech model is designed for situations that demand unparalleled control over both the content and the prosody of the generated speech across various languages.`,requires_alpha_access:!1,max_characters_request_free_user:1e4,max_characters_request_subscribed_user:1e4,maximum_text_length_per_request:1e4,languages:[{language_id:`en`,name:`English`},{language_id:`ja`,name:`Japanese`},{language_id:`zh`,name:`Chinese`},{language_id:`de`,name:`German`},{language_id:`hi`,name:`Hindi`},{language_id:`fr`,name:`French`},{language_id:`ko`,name:`Korean`},{language_id:`pt`,name:`Portuguese`},{language_id:`it`,name:`Italian`},{language_id:`es`,name:`Spanish`},{language_id:`ru`,name:`Russian`},{language_id:`id`,name:`Indonesian`},{language_id:`nl`,name:`Dutch`},{language_id:`tr`,name:`Turkish`},{language_id:`fil`,name:`Filipino`},{language_id:`pl`,name:`Polish`},{language_id:`sv`,name:`Swedish`},{language_id:`bg`,name:`Bulgarian`},{language_id:`ro`,name:`Romanian`},{language_id:`ar`,name:`Arabic`},{language_id:`cs`,name:`Czech`},{language_id:`el`,name:`Greek`},{language_id:`fi`,name:`Finnish`},{language_id:`hr`,name:`Croatian`},{language_id:`ms`,name:`Malay`},{language_id:`sk`,name:`Slovak`},{language_id:`da`,name:`Danish`},{language_id:`ta`,name:`Tamil`},{language_id:`uk`,name:`Ukrainian`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`},{model_id:`eleven_monolingual_v1`,name:`Eleven English v1`,can_be_finetuned:!1,can_do_text_to_speech:!0,can_do_voice_conversion:!1,can_use_style:!1,can_use_speaker_boost:!1,serves_pro_voices:!1,token_cost_factor:1,description:`Our first ever text to speech model. Now outclassed by Multilingual v2 (for content creation) and Turbo v2.5 (for low latency use cases).`,requires_alpha_access:!1,max_characters_request_free_user:1e4,max_characters_request_subscribed_user:1e4,maximum_text_length_per_request:1e4,languages:[{language_id:`en`,name:`English`}],model_rates:{character_cost_multiplier:1},concurrency_group:`standard`}];function w0(e){let{id:t,name:n,icon:r,description:i,nameKey:a,descriptionKey:o,category:s,tasks:c,defaultBaseUrl:l,creator:u,capabilities:d,validators:f,validation:p,additionalHeaders:m,...h}=e,g=d||{listModels:async e=>{let n=u((e.apiKey||``).trim(),(e.baseUrl||``).trim());return n.model?(await p0({...n.model()})).map(e=>({id:e.id,name:e.name||e.display_name||e.id,provider:t,description:e.description||``,contextLength:e.context_length||0,deprecated:!1})):[]}},_=f||{validateProviderConfig:async e=>{let t=[];if(e.apiKey||t.push(Error(`API key is required`)),e.baseUrl||t.push(Error(`Base URL is required`)),t.length>0||((!C0(e.baseUrl)||new URL(e.baseUrl).host.length===0)&&t.push(Error(`Base URL is not absolute. Check your input.`)),e.baseUrl.endsWith(`/`)||t.push(Error(`Base URL must end with a trailing slash (/).`)),t.length>0))return{errors:t,reason:t.map(e=>e.message).join(`, `),valid:!1};let n=p||[],r=null,i=null;if(n.includes(`health`))try{i=await fetch(`${e.baseUrl}chat/completions`,{headers:{Authorization:`Bearer ${e.apiKey}`,...m},method:`POST`}),r=await fetch(`${e.baseUrl}models`,{headers:{Authorization:`Bearer ${e.apiKey}`,...m}}),[200,400,401].includes(i.status)||[200,400,401].includes(r.status)||t.push(Error(`Invalid Base URL, ${e.baseUrl} is not supported`))}catch(e){t.push(Error(`Invalid Base URL, ${e.message}`))}if(t.length>0)return{errors:t,reason:t.map(e=>e.message).join(`, `),valid:!1};if(n.includes(`model_list`))try{let n=r;n||=await fetch(`${e.baseUrl}models`,{headers:{Authorization:`Bearer ${e.apiKey}`,...m}}),n.ok||t.push(Error(`Invalid API Key`))}catch(e){t.push(Error(`Model list check failed: ${e.message}`))}if(n.includes(`chat_completions`))try{let n=i;n||=await fetch(`${e.baseUrl}chat/completions`,{headers:{Authorization:`Bearer ${e.apiKey}`,...m},method:`POST`}),n.ok||t.push(Error(`Invalid API Key`))}catch(e){t.push(Error(`Chat Completions check Failed: ${e.message}`))}return{errors:t,reason:t.map(e=>e.message).join(`, `)||``,valid:t.length===0}}};return{id:t,category:s||`chat`,tasks:c||[`text-generation`],nameKey:a,name:n,descriptionKey:o,description:i,icon:r,defaultOptions:()=>({baseUrl:l||``}),createProvider:async e=>u((e.apiKey||``).trim(),(e.baseUrl||``).trim()),capabilities:g,validators:_,...h}}function Cke(e,t=`https://api.anthropic.com/v1/`){let n=async(e,t)=>(t.headers??={},Array.isArray(t.headers)?t.headers.push([`anthropic-dangerous-direct-browser-access`,`true`]):t.headers instanceof Headers?t.headers.append(`anthropic-dangerous-direct-browser-access`,`true`):t.headers[`anthropic-dangerous-direct-browser-access`]=`true`,fetch(e,t));return t0(e0(`anthropic`),Y1({apiKey:e,fetch:n,baseURL:t}),Z1({apiKey:e,fetch:n,baseURL:t}))}const T0=VO(`providers`,()=>{let e=dE(`settings/credentials/providers`,{}),{t}=K1(),n=U(()=>e=>{let t=``;return e?typeof e==`string`?!C0(e)||new URL(e).host.length===0?t=`Base URL is not absolute. Try to include a scheme (http:// or https://).`:e.endsWith(`/`)||(t=`Base URL must end with a trailing slash (/).`):t=`Base URL must be a string.`:t=`Base URL is required.`,t?{errors:[Error(t)],reason:t,valid:!1}:null});async function r(){return`window`in globalThis&&globalThis.window!=null&&(`__TAURI_INTERNALS__`in globalThis.window&&globalThis.window.__TAURI_INTERNALS__!=null||location.host===`tauri.localhost`)}async function i(){let e=await r();if(e)return!1;let t=await hke();if(t)return!0;if(`navigator`in globalThis&&globalThis.navigator!=null&&`deviceMemory`in globalThis.navigator&&typeof globalThis.navigator.deviceMemory==`number`){let e=globalThis.navigator.deviceMemory;if(e>=8)return!0}return!1}let a={"openrouter-ai":w0({id:`openrouter-ai`,name:`OpenRouter`,nameKey:`settings.pages.providers.provider.openrouter.title`,descriptionKey:`settings.pages.providers.provider.openrouter.description`,icon:`i-lobe-icons:openrouter`,description:`openrouter.ai`,defaultBaseUrl:`https://openrouter.ai/api/v1/`,creator:cke,validation:[`health`,`model_list`,`chat_completions`]}),"app-local-audio-speech":w0({id:`app-local-audio-speech`,name:`App (Local)`,nameKey:`settings.pages.providers.provider.app-local-audio-speech.title`,descriptionKey:`settings.pages.providers.provider.app-local-audio-speech.description`,icon:`i-lobe-icons:huggingface`,description:`https://github.com/huggingface/candle`,category:`speech`,tasks:[`text-to-speech`,`tts`],isAvailableBy:r,creator:u0,validation:[],validators:{validateProviderConfig:e=>e.baseUrl?{errors:[],reason:``,valid:!0}:{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. This is likely a bug, report to developers on https://github.com/moeru-ai/airi/issues.`,valid:!1}}}),"app-local-audio-transcription":w0({id:`app-local-audio-transcription`,name:`App (Local)`,nameKey:`settings.pages.providers.provider.app-local-audio-transcription.title`,descriptionKey:`settings.pages.providers.provider.app-local-audio-transcription.description`,icon:`i-lobe-icons:huggingface`,description:`https://github.com/huggingface/candle`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],isAvailableBy:r,creator:u0,validation:[],validators:{validateProviderConfig:e=>e.baseUrl?{errors:[],reason:``,valid:!0}:{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. This is likely a bug, report to developers on https://github.com/moeru-ai/airi/issues.`,valid:!1}}}),"browser-local-audio-speech":w0({id:`browser-local-audio-speech`,name:`Browser (Local)`,nameKey:`settings.pages.providers.provider.browser-local-audio-speech.title`,descriptionKey:`settings.pages.providers.provider.browser-local-audio-speech.description`,icon:`i-lobe-icons:huggingface`,description:`https://github.com/moeru-ai/xsai-transformers`,category:`speech`,tasks:[`text-to-speech`,`tts`],isAvailableBy:i,creator:u0,validation:[],validators:{validateProviderConfig:e=>e.baseUrl?{errors:[],reason:``,valid:!0}:{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. This is likely a bug, report to developers on https://github.com/moeru-ai/airi/issues.`,valid:!1}}}),"browser-local-audio-transcription":w0({id:`browser-local-audio-transcription`,name:`Browser (Local)`,nameKey:`settings.pages.providers.provider.browser-local-audio-transcription.title`,descriptionKey:`settings.pages.providers.provider.browser-local-audio-transcription.description`,icon:`i-lobe-icons:huggingface`,description:`https://github.com/moeru-ai/xsai-transformers`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],isAvailableBy:i,creator:u0,validation:[],validators:{validateProviderConfig:e=>e.baseUrl?{errors:[],reason:``,valid:!0}:{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. This is likely a bug, report to developers on https://github.com/moeru-ai/airi/issues.`,valid:!1}}}),ollama:{id:`ollama`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.ollama.title`,name:`Ollama`,descriptionKey:`settings.pages.providers.provider.ollama.description`,description:`ollama.com`,icon:`i-lobe-icons:ollama`,defaultOptions:()=>({baseUrl:`http://localhost:11434/v1/`}),createProvider:async e=>d0(e.baseUrl.trim()),capabilities:{listModels:async e=>(await p0({...d0(e.baseUrl.trim()).model()})).map(e=>({id:e.id,name:e.id,provider:`ollama`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:11434/v1/ for Ollama.`,valid:!1};let t=n.value(e.baseUrl);return t||fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0}).then(e=>{let t=[!e.ok&&Error(`Ollama server returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach Ollama server, error: ${String(e)} occurred.\n\nIf you are using Ollama locally, this is likely the CORS (Cross-Origin Resource Sharing) security issue, where you will need to set OLLAMA_ORIGINS=* or OLLAMA_ORIGINS=https://airi.moeru.ai,${location.origin} environment variable before launching Ollama server to make this work.`,valid:!1}))}}},"ollama-embedding":{id:`ollama-embedding`,category:`embed`,tasks:[`text-feature-extraction`],nameKey:`settings.pages.providers.provider.ollama.title`,name:`Ollama`,descriptionKey:`settings.pages.providers.provider.ollama.description`,description:`ollama.com`,icon:`i-lobe-icons:ollama`,defaultOptions:()=>({baseUrl:`http://localhost:11434/v1/`}),createProvider:async e=>d0(e.baseUrl.trim()),capabilities:{listModels:async e=>(await p0({...d0(e.baseUrl.trim()).model()})).map(e=>({id:e.id,name:e.id,provider:`ollama`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:11434/v1/ for Ollama.`,valid:!1};let t=n.value(e.baseUrl);return t||fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0}).then(e=>{let t=[!e.ok&&Error(`Ollama server returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach Ollama server, error: ${String(e)} occurred.\n\nIf you are using Ollama locally, this is likely the CORS (Cross-Origin Resource Sharing) security issue, where you will need to set OLLAMA_ORIGINS=* or OLLAMA_ORIGINS=https://airi.moeru.ai,http://localhost environment variable before launching Ollama server to make this work.`,valid:!1}))}}},vllm:{id:`vllm`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.vllm.title`,name:`vLLM`,descriptionKey:`settings.pages.providers.provider.vllm.description`,description:`vllm.ai`,iconColor:`i-lobe-icons:vllm`,createProvider:async e=>d0(e.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`llama-2-7b`,name:`Llama 2 (7B)`,provider:`vllm`,description:`Meta's Llama 2 7B parameter model`,contextLength:4096},{id:`llama-2-13b`,name:`Llama 2 (13B)`,provider:`vllm`,description:`Meta's Llama 2 13B parameter model`,contextLength:4096},{id:`llama-2-70b`,name:`Llama 2 (70B)`,provider:`vllm`,description:`Meta's Llama 2 70B parameter model`,contextLength:4096},{id:`mistral-7b`,name:`Mistral (7B)`,provider:`vllm`,description:`Mistral AI's 7B parameter model`,contextLength:8192},{id:`mixtral-8x7b`,name:`Mixtral (8x7B)`,provider:`vllm`,description:`Mistral AI's Mixtral 8x7B MoE model`,contextLength:32768},{id:`custom`,name:`Custom Model`,provider:`vllm`,description:`Specify a custom model name`,contextLength:0}]},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:8000/v1/ for vLLM.`,valid:!1};let t=n.value(e.baseUrl);return t||fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0}).then(e=>{let t=[!e.ok&&Error(`vLLM returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach vLLM, error: ${String(e)} occurred.`,valid:!1}))}}},"lm-studio":{id:`lm-studio`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.lm-studio.title`,name:`LM Studio`,descriptionKey:`settings.pages.providers.provider.lm-studio.description`,description:`lmstudio.ai`,icon:`i-lobe-icons:lmstudio`,defaultOptions:()=>({baseUrl:`http://localhost:1234/v1/`}),createProvider:async e=>u0(``,e.baseUrl.trim()),capabilities:{listModels:async e=>{try{let t=await fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0});if(!t.ok)throw Error(`LM Studio server returned non-ok status code: ${t.statusText}`);let n=await t.json();return n.data.map(e=>({id:e.id,name:e.id,provider:`lm-studio`,description:e.description||``,contextLength:e.context_length||0,deprecated:!1}))}catch(e){return console.error(`Error fetching LM Studio models:`,e),[]}}},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:1234/v1/ for LM Studio.`,valid:!1};let t=n.value(e.baseUrl);return t||fetch(`${e.baseUrl.trim()}models`,{headers:e.headers||void 0}).then(e=>{let t=[!e.ok&&Error(`LM Studio server returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach LM Studio server, error: ${String(e)} occurred.\n\nMake sure LM Studio is running and the local server is started. You can start the local server in LM Studio by going to the 'Local Server' tab and clicking 'Start Server'.`,valid:!1}))}}},openai:w0({id:`openai`,name:`OpenAI`,nameKey:`settings.pages.providers.provider.openai.title`,descriptionKey:`settings.pages.providers.provider.openai.description`,icon:`i-lobe-icons:openai`,description:`openai.com`,defaultBaseUrl:`https://api.openai.com/v1/`,creator:u0,validation:[`health`,`model_list`]}),"openai-compatible":w0({id:`openai-compatible`,name:`OpenAI Compatible`,nameKey:`settings.pages.providers.provider.openai-compatible.title`,descriptionKey:`settings.pages.providers.provider.openai-compatible.description`,icon:`i-lobe-icons:openai`,description:`Connect to any API that follows the OpenAI specification.`,creator:u0,validation:[`health`]}),"openai-audio-speech":w0({id:`openai-audio-speech`,name:`OpenAI`,nameKey:`settings.pages.providers.provider.openai.title`,descriptionKey:`settings.pages.providers.provider.openai.description`,icon:`i-lobe-icons:openai`,description:`openai.com`,category:`speech`,tasks:[`text-to-speech`],defaultBaseUrl:`https://api.openai.com/v1/`,creator:u0,validation:[`health`],capabilities:{listVoices:async()=>[{id:`alloy`,name:`Alloy`,provider:`openai-audio-speech`,languages:[]},{id:`ash`,name:`Ash`,provider:`openai-audio-speech`,languages:[]},{id:`ballad`,name:`Ballad`,provider:`openai-audio-speech`,languages:[]},{id:`coral`,name:`Coral`,provider:`openai-audio-speech`,languages:[]},{id:`echo`,name:`Echo`,provider:`openai-audio-speech`,languages:[]},{id:`fable`,name:`Fable`,provider:`openai-audio-speech`,languages:[]},{id:`onyx`,name:`Onyx`,provider:`openai-audio-speech`,languages:[]},{id:`nova`,name:`Nova`,provider:`openai-audio-speech`,languages:[]},{id:`sage`,name:`Sage`,provider:`openai-audio-speech`,languages:[]},{id:`shimmer`,name:`Shimmer`,provider:`openai-audio-speech`,languages:[]},{id:`verse`,name:`Verse`,provider:`openai-audio-speech`,languages:[]}]},validators:{validateProviderConfig:e=>{let t=[!e.baseUrl&&Error(`Base URL is required. Default to https://api.openai.com/v1/ for official OpenAI API.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.baseUrl}}}}),"openai-compatible-audio-speech":w0({id:`openai-compatible-audio-speech`,name:`OpenAI Compatible`,nameKey:`settings.pages.providers.provider.openai-compatible.title`,descriptionKey:`settings.pages.providers.provider.openai-compatible.description`,icon:`i-lobe-icons:openai`,description:`Connect to any API that follows the OpenAI specification.`,category:`speech`,tasks:[`text-to-speech`],capabilities:{listVoices:async()=>[]},creator:u0}),"openai-audio-transcription":w0({id:`openai-audio-transcription`,name:`OpenAI`,nameKey:`settings.pages.providers.provider.openai.title`,descriptionKey:`settings.pages.providers.provider.openai.description`,icon:`i-lobe-icons:openai`,description:`openai.com`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],defaultBaseUrl:`https://api.openai.com/v1/`,creator:u0,validation:[`health`],validators:{validateProviderConfig:e=>{let t=[!e.baseUrl&&Error(`Base URL is required. Default to https://api.openai.com/v1/ for official OpenAI API.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.baseUrl}}}}),"openai-compatible-audio-transcription":w0({id:`openai-compatible-audio-transcription`,name:`OpenAI Compatible`,nameKey:`settings.pages.providers.provider.openai-compatible.title`,descriptionKey:`settings.pages.providers.provider.openai-compatible.description`,icon:`i-lobe-icons:openai`,description:`Connect to any API that follows the OpenAI specification.`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],creator:u0}),"azure-ai-foundry":{id:`azure-ai-foundry`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.azure-ai-foundry.title`,name:`Azure AI Foundry`,descriptionKey:`settings.pages.providers.provider.azure-ai-foundry.description`,description:`azure.com`,icon:`i-lobe-icons:microsoft`,defaultOptions:()=>({}),createProvider:async e=>await tke({apiKey:async()=>e.apiKey.trim(),resourceName:e.resourceName,apiVersion:e.apiVersion}),capabilities:{listModels:async e=>[{id:e.modelId}].map(e=>({id:e.id,name:e.id,provider:`azure-ai-foundry`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required`),!e.resourceName&&Error(`Resource name is required`),!e.modelId&&Error(`Model ID is required`)];return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.resourceName&&!!e.modelId}}}},anthropic:w0({id:`anthropic`,name:`Anthropic`,nameKey:`settings.pages.providers.provider.anthropic.title`,descriptionKey:`settings.pages.providers.provider.anthropic.description`,icon:`i-lobe-icons:anthropic`,description:`anthropic.com`,defaultBaseUrl:`https://api.anthropic.com/v1/`,creator:Cke,validation:[`health`,`model_list`],additionalHeaders:{"anthropic-dangerous-direct-browser-access":`true`}}),"google-generative-ai":w0({id:`google-generative-ai`,name:`Google Gemini`,nameKey:`settings.pages.providers.provider.google-generative-ai.title`,descriptionKey:`settings.pages.providers.provider.google-generative-ai.description`,icon:`i-lobe-icons:gemini`,description:`ai.google.dev`,defaultBaseUrl:`https://generativelanguage.googleapis.com/v1beta/openai/`,creator:ike,validation:[`health`,`model_list`]}),xai:w0({id:`xai`,name:`xAI`,nameKey:`settings.pages.providers.provider.xai.title`,descriptionKey:`settings.pages.providers.provider.xai.description`,icon:`i-lobe-icons:xai`,description:`x.ai`,defaultBaseUrl:`https://api.x.ai/v1/`,creator:fke,validation:[`health`,`model_list`]}),deepseek:w0({id:`deepseek`,name:`DeepSeek`,nameKey:`settings.pages.providers.provider.deepseek.title`,descriptionKey:`settings.pages.providers.provider.deepseek.description`,icon:`i-lobe-icons:deepseek`,description:`deepseek.com`,defaultBaseUrl:`https://api.deepseek.com/`,creator:nke,validation:[`health`,`model_list`]}),elevenlabs:{id:`elevenlabs`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.elevenlabs.title`,name:`ElevenLabs`,descriptionKey:`settings.pages.providers.provider.elevenlabs.description`,description:`elevenlabs.io`,icon:`i-simple-icons:elevenlabs`,defaultOptions:()=>({baseUrl:`https://unspeech.hyp3r.link/v1/`,voiceSettings:{similarityBoost:.75,stability:.5}}),createProvider:async e=>v0(e.apiKey.trim(),e.baseUrl.trim()),capabilities:{listModels:async()=>Ske.map(e=>({id:e.model_id,name:e.name,provider:`elevenlabs`,description:e.description,contextLength:0,deprecated:!1})),listVoices:async e=>{let t=v0(e.apiKey.trim(),e.baseUrl.trim()),n=await S0({...t.voice()}),r=n.findIndex(e=>e.name.includes(`Aria`)),i=n.findIndex(e=>e.name.includes(`Bill`)),a=r===-1?0:r,o=i===-1?n.length-1:i,s=Math.min(a,o),c=Math.max(a,o),l=[...n.slice(0,s),...n.slice(c+1),...n.slice(s,c+1)];return l.map(e=>({id:e.id,name:e.name,provider:`elevenlabs`,previewURL:e.preview_audio_url,languages:e.languages}))}},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.baseUrl&&Error(`Base URL is required.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.baseUrl}}}},"microsoft-speech":{id:`microsoft-speech`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.microsoft-speech.title`,name:`Microsoft / Azure Speech`,descriptionKey:`settings.pages.providers.provider.microsoft-speech.description`,description:`speech.microsoft.com`,iconColor:`i-lobe-icons:microsoft`,defaultOptions:()=>({baseUrl:`https://unspeech.hyp3r.link/v1/`}),createProvider:async e=>y0(e.apiKey.trim(),e.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`v1`,name:`v1`,provider:`microsoft-speech`,description:``,contextLength:0,deprecated:!1}],listVoices:async e=>{let t=y0(e.apiKey.trim(),e.baseUrl.trim()),n=await S0({...t.voice({region:e.region})});return n.map(e=>({id:e.id,name:e.name,provider:`microsoft-speech`,previewURL:e.preview_audio_url,languages:e.languages,gender:e.labels?.gender}))}},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.baseUrl&&Error(`Base URL is required.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.baseUrl}}}},"index-tts-vllm":{id:`index-tts-vllm`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.index-tts-vllm.title`,name:`Index-TTS by Bilibili`,descriptionKey:`settings.pages.providers.provider.index-tts-vllm.description`,description:`index-tts.github.io`,iconColor:`i-lobe-icons:bilibiliindex`,defaultOptions:()=>({baseUrl:`http://localhost:11996/tts`}),createProvider:async e=>{let t={speech:()=>{let t={baseURL:e.baseUrl,model:`IndexTTS-1.5`};return t}};return t},capabilities:{listVoices:async e=>{let t=e.baseUrl,n=await fetch(`${t}/audio/voices`);if(!n.ok)throw Error(`Failed to fetch voices: ${n.statusText}`);let r=await n.json();return Object.keys(r).map(e=>({id:e,name:e,provider:`index-tts-vllm`,languages:[{code:`cn`,title:`Chinese`},{code:`en`,title:`English`}]}))}},validators:{validateProviderConfig:e=>{let t=[!e.baseUrl&&Error(`Base URL is required. Default to http://localhost:11996/tts for Index-TTS.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.baseUrl}}}},"alibaba-cloud-model-studio":{id:`alibaba-cloud-model-studio`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.alibaba-cloud-model-studio.title`,name:`Alibaba Cloud Model Studio`,descriptionKey:`settings.pages.providers.provider.alibaba-cloud-model-studio.description`,description:`bailian.console.aliyun.com`,iconColor:`i-lobe-icons:alibabacloud`,defaultOptions:()=>({baseUrl:`https://unspeech.hyp3r.link/v1/`}),createProvider:async e=>x0(e.apiKey.trim(),e.baseUrl.trim()),capabilities:{listVoices:async e=>{let t=x0(e.apiKey.trim(),e.baseUrl.trim()),n=await S0({...t.voice()});return n.map(e=>({id:e.id,name:e.name,provider:`alibaba-cloud-model-studio`,previewURL:e.preview_audio_url,languages:e.languages,gender:e.labels?.gender}))},listModels:async()=>[{id:`cosyvoice-v1`,name:`CosyVoice`,provider:`alibaba-cloud-model-studio`,description:``,contextLength:0,deprecated:!1},{id:`cosyvoice-v2`,name:`CosyVoice (New)`,provider:`alibaba-cloud-model-studio`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.baseUrl&&Error(`Base URL is required.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.baseUrl}}}},volcengine:{id:`volcengine`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.volcengine.title`,name:`settings.pages.providers.provider.volcengine.title`,descriptionKey:`settings.pages.providers.provider.volcengine.description`,description:`volcengine.com`,iconColor:`i-lobe-icons:volcengine`,defaultOptions:()=>({baseUrl:`https://unspeech.hyp3r.link/v1/`}),createProvider:async e=>b0(e.apiKey.trim(),e.baseUrl.trim()),capabilities:{listVoices:async e=>{let t=b0(e.apiKey.trim(),e.baseUrl.trim()),n=await S0({...t.voice()});return n.map(e=>({id:e.id,name:e.name,provider:`volcano-engine`,previewURL:e.preview_audio_url,languages:e.languages,gender:e.labels?.gender}))},listModels:async()=>[{id:`v1`,name:`v1`,provider:`volcano-engine`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.baseUrl&&Error(`Base URL is required.`),!e.app?.appId&&Error(`App ID is required.`)].filter(Boolean),r=n.value(e.baseUrl);return r||{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.baseUrl&&!!e.app&&!!e.app.appId}}}},"together-ai":w0({id:`together-ai`,name:`Together.ai`,nameKey:`settings.pages.providers.provider.together.title`,descriptionKey:`settings.pages.providers.provider.together.description`,icon:`i-lobe-icons:together`,description:`together.ai`,defaultBaseUrl:`https://api.together.xyz/v1/`,creator:uke,validation:[`health`,`model_list`],iconColor:`i-lobe-icons:together`}),"novita-ai":w0({id:`novita-ai`,name:`Novita`,nameKey:`settings.pages.providers.provider.novita.title`,descriptionKey:`settings.pages.providers.provider.novita.description`,icon:`i-lobe-icons:novita`,description:`novita.ai`,defaultBaseUrl:`https://api.novita.ai/openai/`,creator:ske,validation:[`health`,`model_list`],iconColor:`i-lobe-icons:novita`}),"fireworks-ai":w0({id:`fireworks-ai`,name:`Fireworks.ai`,nameKey:`settings.pages.providers.provider.fireworks.title`,descriptionKey:`settings.pages.providers.provider.fireworks.description`,icon:`i-lobe-icons:fireworks`,description:`fireworks.ai`,defaultBaseUrl:`https://api.fireworks.ai/inference/v1/`,creator:rke,validation:[`health`,`model_list`]}),"featherless-ai":w0({id:`featherless-ai`,name:`Featherless.ai`,nameKey:`settings.pages.providers.provider.featherless.title`,descriptionKey:`settings.pages.providers.provider.featherless.description`,icon:`i-lobe-icons:featherless-ai`,description:`featherless.ai`,defaultBaseUrl:`https://api.featherless.ai/v1/`,creator:u0,validation:[`health`,`model_list`]}),"cloudflare-workers-ai":{id:`cloudflare-workers-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.cloudflare-workers-ai.title`,name:`Cloudflare Workers AI`,descriptionKey:`settings.pages.providers.provider.cloudflare-workers-ai.description`,description:`cloudflare.com`,iconColor:`i-lobe-icons:cloudflare`,createProvider:async e=>dke(e.apiKey.trim(),e.accountId),capabilities:{listModels:async()=>[]},validators:{validateProviderConfig:e=>{let t=[!e.apiKey&&Error(`API key is required.`),!e.accountId&&Error(`Account ID is required.`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:!!e.apiKey&&!!e.accountId}}}},"perplexity-ai":w0({id:`perplexity-ai`,name:`Perplexity`,nameKey:`settings.pages.providers.provider.perplexity.title`,descriptionKey:`settings.pages.providers.provider.perplexity.description`,icon:`i-lobe-icons:perplexity`,description:`perplexity.ai`,defaultBaseUrl:`https://api.perplexity.ai/`,creator:lke,validation:[`health`,`model_list`]}),"mistral-ai":w0({id:`mistral-ai`,name:`Mistral`,nameKey:`settings.pages.providers.provider.mistral.title`,descriptionKey:`settings.pages.providers.provider.mistral.description`,icon:`i-lobe-icons:mistral`,description:`mistral.ai`,defaultBaseUrl:`https://api.mistral.ai/v1/`,creator:ake,validation:[`health`,`model_list`],iconColor:`i-lobe-icons:mistral`}),"moonshot-ai":w0({id:`moonshot-ai`,name:`Moonshot AI`,nameKey:`settings.pages.providers.provider.moonshot.title`,descriptionKey:`settings.pages.providers.provider.moonshot.description`,icon:`i-lobe-icons:moonshot`,description:`moonshot.ai`,defaultBaseUrl:`https://api.moonshot.ai/v1/`,creator:oke,validation:[`health`,`model_list`]}),modelscope:w0({id:`modelscope`,name:`ModelScope`,nameKey:`settings.pages.providers.provider.modelscope.title`,descriptionKey:`settings.pages.providers.provider.modelscope.description`,icon:`i-lobe-icons:modelscope`,description:`modelscope`,defaultBaseUrl:`https://api-inference.modelscope.cn/v1/`,creator:u0,validation:[`health`,`model_list`,`chat_completions`],iconColor:`i-lobe-icons:modelscope`}),player2:{id:`player2`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.player2.title`,name:`Player2`,descriptionKey:`settings.pages.providers.provider.player2.description`,description:`player2.game`,icon:`i-lobe-icons:player2`,defaultOptions:()=>({baseUrl:`http://localhost:4315/v1/`}),createProvider:e=>f0(e.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`player2-model`,name:`Player2 Model`,provider:`player2`}]},validators:{validateProviderConfig:async e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:4315/v1/`,valid:!1};let t=n.value(e.baseUrl);return t||await fetch(`${e.baseUrl}health`,{method:`GET`,headers:{"player2-game-key":`airi`}}).then(e=>{let t=[!e.ok&&Error(`Player 2 returned non-ok status code: ${e.statusText}`)].filter(Boolean);return{errors:t,reason:t.filter(e=>e).map(e=>String(e)).join(`, `)||``,valid:e.ok}}).catch(e=>({errors:[e],reason:`Failed to reach Player 2, error: ${String(e)} occurred. If you do not have Player 2 running, please start it and try again.`,valid:!1}))}}},"player2-speech":{id:`player2-speech`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.player2.title`,name:`Player2 Speech`,descriptionKey:`settings.pages.providers.provider.player2.description`,description:`player2.game`,icon:`i-lobe-icons:player2`,defaultOptions:()=>({baseUrl:`http://localhost:4315/v1/`}),createProvider:async e=>f0(e.baseUrl.trim(),`airi`),capabilities:{listVoices:async e=>{let t=e.baseUrl.endsWith(`/`)?e.baseUrl.slice(0,-1):e.baseUrl;return await fetch(`${t}/tts/voices`).then(e=>e.json()).then(({voices:e})=>e.map(({id:e,language:t,name:n,gender:r})=>({id:e,name:n,provider:`player2-speech`,gender:r,languages:[{american_english:{code:`en`,title:`English`},british_english:{code:`en`,title:`English`},japanese:{code:`ja`,title:`Japanese`},mandarin_chinese:{code:`zh`,title:`Chinese`},spanish:{code:`es`,title:`Spanish`},french:{code:`fr`,title:`French`},hindi:{code:`hi`,title:`Hindi`},italian:{code:`it`,title:`Italian`},brazilian_portuguese:{code:`pt`,title:`Portuguese`}}[t]]})))}},validators:{validateProviderConfig:e=>{if(!e.baseUrl)return{errors:[Error(`Base URL is required.`)],reason:`Base URL is required. Default to http://localhost:4315/v1/`,valid:!1};let t=n.value(e.baseUrl);return t||{errors:[],reason:``,valid:!0}}}}},o=F({}),s=F({});async function c(t){let n=e.value[t];if(!n)return!1;let r=JSON.stringify(n||{});if(s.value[t]===r&&typeof o.value[t]==`boolean`)return o.value[t];let i=a[t];if(!i)return!1;s.value[t]=r;let c=await i.validators.validateProviderConfig(n);return o.value[t]=c.valid,c.valid}function l(t){if(!e.value[t]){let n=a[t],r=n.defaultOptions?.()||{};e.value[t]={baseUrl:r.baseUrl||``}}}Object.keys(a).forEach(l);async function u(){await Promise.all(Object.keys(a).map(async e=>{try{o.value[e]=await c(e)}catch{o.value[e]=!1}}))}Ha(e,u,{deep:!0,immediate:!0});let d=U(()=>Object.keys(a).filter(e=>o.value[e])),f=F({}),p=F({}),m=F({});async function h(t){let n=e.value[t];if(!n)return[];let r=a[t];if(!r)return[];p.value[t]=!0,m.value[t]=null;try{let e=r.capabilities.listModels?await r.capabilities.listModels(n):[];return f.value[t]=e.map(e=>({id:e.id,name:e.name,description:e.description,contextLength:e.contextLength,deprecated:e.deprecated,provider:t})),f.value[t]}catch(e){return console.error(`Error fetching models for ${t}:`,e),m.value[t]=e instanceof Error?e.message:`Unknown error`,[]}finally{p.value[t]=!1}}function g(e){return f.value[e]||[]}let _=U(()=>{let e=[];for(let t of d.value)e.push(...f.value[t]||[]);return e});async function v(){for(let e of d.value)a[e].capabilities.listModels&&await h(e)}Ha(e,(e,t)=>{let n=Object.keys(e).filter(n=>JSON.stringify(e[n])!==JSON.stringify(t?.[n]));for(let e of n)o.value[e]&&a[e]?.capabilities.listModels&&h(e)},{deep:!0});function y(e){let n=a[e];if(!n)throw Error(`Provider metadata for ${e} not found`);return{...n,localizedName:t(n.nameKey,n.name),localizedDescription:t(n.descriptionKey,n.description)}}let b=U(()=>Object.values(a).map(e=>({...e,localizedName:t(e.nameKey,e.name),localizedDescription:t(e.descriptionKey,e.description),configured:o.value[e.id]||!1})));async function x(t){let n=e.value[t];if(!n)throw Error(`Provider credentials for ${t} not found`);let r=a[t];if(!r)throw Error(`Provider metadata for ${t} not found`);try{return await r.createProvider(n)}catch(e){throw console.error(`Error creating provider instance for ${t}:`,e),e}}let S=zT(async()=>{let e=[];for(let t of b.value){let n=y(t.id),r=n.isAvailableBy||(()=>!0),i=await r();i&&e.push(t)}return e},[]),C=U(()=>S.value.filter(e=>e.category===`chat`)),w=U(()=>S.value.filter(e=>e.category===`speech`)),T=U(()=>S.value.filter(e=>e.category===`transcription`)),E=U(()=>C.value.filter(e=>o.value[e.id])),D=U(()=>w.value.filter(e=>o.value[e.id])),O=U(()=>T.value.filter(e=>o.value[e.id]));function k(t){return e.value[t]}return{providers:e,getProviderConfig:k,availableProviders:d,configuredProviders:o,providerMetadata:a,getProviderMetadata:y,allProvidersMetadata:b,initializeProvider:l,validateProvider:c,availableModels:f,isLoadingModels:p,modelLoadError:m,fetchModelsForProvider:h,getModelsForProvider:g,allAvailableModels:_,loadModelsForConfiguredProviders:v,getProviderInstance:x,availableProvidersMetadata:S,allChatProvidersMetadata:C,allAudioSpeechProvidersMetadata:w,allAudioTranscriptionProvidersMetadata:T,configuredChatProvidersMetadata:E,configuredSpeechProvidersMetadata:D,configuredTranscriptionProvidersMetadata:O}}),E0=VO(`consciousness`,()=>{let e=T0(),t=dE(`settings/consciousness/active-provider`,``),n=dE(`settings/consciousness/active-model`,``),r=dE(`settings/consciousness/active-custom-model`,``),i=F({}),a=F(``),o=U(()=>e.getProviderMetadata(t.value)?.capabilities.listModels!==void 0),s=U(()=>e.getModelsForProvider(t.value)),c=U(()=>e.isLoadingModels[t.value]||!1),l=U(()=>e.modelLoadError[t.value]||null),u=U(()=>{if(!a.value.trim())return s.value;let e=a.value.toLowerCase().trim();return s.value.filter(t=>t.name.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))});function d(){n.value=``,r.value=``,i.value={},a.value=``}async function f(t){t&&e.getProviderMetadata(t)?.capabilities.listModels!==void 0&&await e.fetchModelsForProvider(t)}async function p(t){return t&&e.getProviderMetadata(t)?.capabilities.listModels!==void 0?e.getModelsForProvider(t):[]}let m=U(()=>!!t.value&&!!n.value);return{configured:m,activeProvider:t,activeModel:n,customModelName:r,expandedDescriptions:i,modelSearchQuery:a,supportsModelListing:o,providerModels:s,isLoadingActiveProviderModels:c,activeProviderModelError:l,filteredModels:u,resetModelSelection:d,loadModelsForProvider:f,getModelsForProvider:p}});var wke=R({__name:`ProviderAccountIdInput`,props:Xi({placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);return(e,r)=>(z(),Ao(I(SM),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,label:t.label||`Account ID`,description:t.description||`Account ID`,placeholder:t.placeholder,required:t.required,type:`text`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),D0=wke;const Tke=[`onClick`],Eke={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},Dke={"mt-4":``};var Oke=R({__name:`ProviderAdvancedSettings`,props:{title:{},initialVisible:{type:Boolean}},setup(e){let t=e,n=F(t.initialVisible||!1);function r(){n.value=!n.value}return(e,t)=>(z(),Ao(DM,{"w-full":``},{trigger:L(n=>[V(`button`,{transition:`all ease-in-out duration-250`,"w-full":``,flex:``,"items-center":``,"gap-1.5":``,"outline-none":``,class:`[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0`,onClick:()=>n.setVisible(!n.visible)&&r()},[V(`h2`,Eke,[V(`span`,null,Pe(e.title||`Advanced`),1)]),V(`div`,{transform:``,transition:`transform duration-250`,class:Te({"rotate-180":n.visible})},[...t[0]||=[V(`div`,{"i-solar:alt-arrow-down-linear":``},null,-1)]],2)],8,Tke)]),default:L(()=>[V(`div`,Dke,[Ai(e.$slots,`default`)])]),_:3}))}}),O0=Oke,kke=R({__name:`ProviderApiKeyInput`,props:Xi({providerName:{},placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,{t:n}=K1(),r=Ka(e,`modelValue`),i=U(()=>t.description||`API Key for ${t.providerName}`);return(e,t)=>(z(),Ao(I(SM),{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,label:e.label||I(n)(`settings.pages.providers.common.fields.field.api-key.label`),description:i.value,placeholder:e.placeholder,required:e.required,type:`password`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),k0=kke,Ake=R({__name:`ProviderBaseUrlInput`,props:Xi({placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=Ka(e,`modelValue`);return(e,r)=>(z(),Ao(I(SM),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,label:t.label||`Base URL`,description:t.description||(t.required?`Base URL`:`Custom base URL (optional)`),placeholder:t.placeholder,required:t.required,type:`text`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),A0=Ake;const jke={flex:`~ col gap-6`},Mke={flex:`~ row`,"items-center":``,"justify-between":``},Nke={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},Pke={text:`neutral-400 dark:neutral-500`};var Fke=R({__name:`ProviderBasicSettings`,props:{title:{},description:{},onReset:{type:Function}},setup(e){return(e,t)=>(z(),B(`div`,jke,[V(`div`,Mke,[V(`div`,null,[V(`h2`,Nke,Pe(e.title||`Basic`),1),V(`div`,Pke,[V(`span`,null,Pe(e.description||`Essential settings`),1)])]),e.onReset?(z(),B(`button`,{key:0,title:`Reset settings`,flex:``,"items-center":``,"justify-center":``,"rounded-full":``,"p-2":``,transition:`all duration-250 ease-in-out`,text:`neutral-500 dark:neutral-400`,bg:`transparent dark:transparent hover:neutral-200 dark:hover:neutral-800 active:neutral-300 dark:active:neutral-700`,onClick:t[0]||=(...t)=>e.onReset&&e.onReset(...t)},[...t[1]||=[V(`div`,{"i-solar:refresh-bold-duotone":``,"text-xl":``},null,-1)]])):zo(``,!0)]),Ai(e.$slots,`default`)]))}}),j0=Fke;const Ike={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-6`};var Lke=R({__name:`ProviderSettingsContainer`,setup(e){return(e,t)=>(z(),B(`div`,Ike,[Ai(e.$slots,`default`)]))}}),M0=Lke;const Rke={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``};var zke=R({__name:`ProviderSettingsLayout2`,props:{providerName:{},providerIcon:{},providerIconColor:{},onBack:{type:Function}},setup(e){return(e,t)=>{let n=Ti(`motion`);return z(),B(bo,null,[Ai(e.$slots,`default`),cr((z(),B(`div`,Rke,[V(`div`,{text:`60`,class:Te(e.providerIcon||e.providerIconColor)},null,2)])),[[n]])],64)}}}),N0=zke;const Bke={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``};var Vke=R({__name:`ProviderSettingsLayout`,props:{providerName:{},providerIcon:{},providerIconColor:{},onBack:{type:Function}},setup(e){return(e,t)=>{let n=Ti(`motion`);return z(),B(bo,null,[Ai(e.$slots,`default`),cr((z(),B(`div`,Bke,[V(`div`,{text:`60`,class:Te(e.providerIcon||e.providerIconColor)},null,2)])),[[n]])],64)}}}),Hke=Vke; /** * anime.js - ESM * @version v4.1.3 @@ -4170,9 +4173,9 @@ function aEe(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.w * @copyright (c) 2025 Julian Garnier * @see https://animejs.com */ -const P0=typeof window<`u`,F0=P0?window:null,I0=P0?document:null,L0={OBJECT:0,ATTRIBUTE:1,CSS:2,TRANSFORM:3,CSS_VAR:4},R0={NUMBER:0,UNIT:1,COLOR:2,COMPLEX:3},z0={NONE:0,AUTO:1,FORCE:2},B0={replace:0,none:1,blend:2},V0=Symbol(),H0=Symbol(),U0=Symbol(),W0=Symbol(),zOe=Symbol(),G0=1e-11,K0=0xe8d4a51000,q0=1e3,J0=(()=>{let e=new Map;return e.set(`x`,`translateX`),e.set(`y`,`translateY`),e.set(`z`,`translateZ`),e})(),Y0=[`translateX`,`translateY`,`translateZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`skew`,`skewX`,`skewY`,`perspective`,`matrix`,`matrix3d`],X0=Y0.reduce((e,t)=>({...e,[t]:t+`(`}),{}),Z0=()=>{},BOe=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,VOe=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,HOe=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,UOe=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,WOe=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Q0=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,GOe=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,KOe=/([a-z])([A-Z])/g,qOe=/(\w+)(\([^)]+\)+)/g,$0={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:120,loop:0,reversed:!1,alternate:!1,autoplay:!0,duration:q0,delay:0,loopDelay:0,ease:`out(2)`,composition:B0.replace,modifier:e=>e,onBegin:Z0,onBeforeUpdate:Z0,onUpdate:Z0,onLoop:Z0,onPause:Z0,onComplete:Z0,onRender:Z0},e2={current:null,root:I0},t2={defaults:$0,precision:4,timeScale:1,tickThreshold:200},n2={version:`4.1.3`,engine:null};P0&&(F0.AnimeJS||=[],F0.AnimeJS.push(n2));const JOe=e=>e.replace(KOe,`$1-$2`).toLowerCase(),r2=(e,t)=>e.indexOf(t)===0,i2=Date.now,a2=Array.isArray,o2=e=>e&&e.constructor===Object,YOe=e=>typeof e==`number`&&!isNaN(e),s2=e=>typeof e==`string`,c2=e=>typeof e==`function`,l2=e=>e===void 0,u2=e=>l2(e)||e===null,d2=e=>P0&&e instanceof SVGElement,f2=e=>BOe.test(e),p2=e=>r2(e,`rgb`),m2=e=>r2(e,`hsl`),XOe=e=>f2(e)||p2(e)||m2(e),h2=e=>!t2.defaults.hasOwnProperty(e),g2=e=>s2(e)?parseFloat(e):e,_2=Math.pow,ZOe=Math.sqrt,QOe=Math.sin,$Oe=Math.cos,v2=Math.abs,eke=Math.ceil,y2=Math.floor,tke=Math.asin,b2=Math.PI,x2=Math.round,S2=(e,t,n)=>en?n:e,C2={},w2=(e,t)=>{if(t<0)return e;if(!t)return x2(e);let n=C2[t];return n||=C2[t]=10**t,x2(e*n)/n},nke=(e,t)=>a2(t)?t.reduce((t,n)=>v2(n-e)e+(t-e)*n,E2=(e,t,n)=>{let r=10**(n||0);return y2((Math.random()*(t-e+1/r)+e)*r)/r},rke=e=>{let t=e.length,n,r;for(;t;)r=E2(0,--t),n=e[t],e[t]=e[r],e[r]=n;return e},D2=e=>e===1/0?K0:e===-1/0?-0xe8d4a51000:e,O2=e=>e<=G0?G0:D2(w2(e,11)),k2=e=>a2(e)?[...e]:e,ike=(e,t)=>{let n={...e};for(let r in t){let i=e[r];n[r]=l2(i)?t[r]:i}return n},A2=(e,t,n,r=`_prev`,i=`_next`)=>{let a=e._head,o=i;for(n&&(a=e._tail,o=r);a;){let e=a[o];t(a),a=e}},j2=(e,t,n=`_prev`,r=`_next`)=>{let i=t[n],a=t[r];i?i[r]=a:e._head=a,a?a[n]=i:e._tail=i,t[n]=null,t[r]=null},M2=(e,t,n,r=`_prev`,i=`_next`)=>{let a=e._tail;for(;a&&n&&n(a,t);)a=a[r];let o=a?a[i]:e._head;a?a[i]=t:e._head=t,o?o[r]=t:e._tail=t,t[r]=a,t[i]=o},ake=e=>{let t;return(...n)=>{let r,i,a,o;t&&(r=t.currentIteration,i=t.iterationProgress,a=t.reversed,o=t._alternate,t.revert());let s=e(...n);return s&&!c2(s)&&s.revert&&(t=s),l2(i)||(t.currentIteration=r,t.iterationProgress=(o&&r%2?!a:a)?1-i:i),s||Z0}};var N2=class{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=w2(q0/120,0),this._fps=120,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){let t=this._frameDuration,n=+e,r=n{let a=e.parent,o=e.duration,s=e.completed,c=e.iterationDuration,l=e.iterationCount,u=e._currentIteration,d=e._loopDelay,f=e._reversed,p=e._alternate,m=e._hasChildren,h=e._delay,g=e._currentTime,_=h+c,v=t-h,y=S2(g,-h,o),b=S2(v,-h,o),x=v-g,S=b>0,C=b>=o,w=o<=G0,T=i===z0.FORCE,E=0,D=v,O=0;if(l>1){let t=~~(b/(c+(C?0:d)));e._currentIteration=S2(t,0,l),C&&e._currentIteration--,E=e._currentIteration%2,D=b%(c+d)||0}let k=f^(p&&E),A=e._ease,j=C?k?0:o:k?c-D:D;A&&(j=c*A(j/c)||0);let M=(a?a.backwards:v=h&&t<=_||t<=h&&y>h||t>=_&&y!==o)||j>=_&&y!==o||j<=h&&y>0||t<=y&&y===o&&s||C&&!s&&w){if(S&&(e.computeDeltaTime(y),n||e.onBeforeUpdate(e)),!m){let t=T||(M?x*-1:x)>=t2.tickThreshold,i=e._offset+(a?a._offset:0)+h+j,o=e._head,s,c,l,u,d=0;for(;o;){let e=o._composition,n=o._currentTime,a=o._changeDuration,f=o._absoluteStartTime+o._changeDuration,p=o._nextRep,m=o._prevRep,h=e!==B0.none;if((t||(n!==a||i<=f+(p?p._delay:0))&&(n!==0||i>=o._absoluteStartTime))&&(!h||!o._isOverridden&&(!o._isOverlapped||i<=f)&&(!p||p._isOverridden||i<=p._absoluteStartTime)&&(!m||m._isOverridden||i>=m._absoluteStartTime+m._changeDuration+o._delay))){let t=o._currentTime=S2(j-o._startTime,0,a),n=o._ease(t/o._updateDuration),i=o._modifier,f=o._valueType,p=o._tweenType,m=p===L0.OBJECT,g=f===R0.NUMBER,_=g&&m||n===0||n===1?-1:t2.precision,v,y;if(g)v=y=i(w2(T2(o._fromNumber,o._toNumber,n),_));else if(f===R0.UNIT)y=i(w2(T2(o._fromNumber,o._toNumber,n),_)),v=`${y}${o._unit}`;else if(f===R0.COLOR){let e=o._fromNumbers,t=o._toNumbers,r=w2(S2(i(T2(e[0],t[0],n)),0,255),0),a=w2(S2(i(T2(e[1],t[1],n)),0,255),0),s=w2(S2(i(T2(e[2],t[2],n)),0,255),0),c=S2(i(w2(T2(e[3],t[3],n),_)),0,1);if(v=`rgba(${r},${a},${s},${c})`,h){let e=o._numbers;e[0]=r,e[1]=a,e[2]=s,e[3]=c}}else if(f===R0.COMPLEX){v=o._strings[0];for(let e=0,t=o._toNumbers.length;e=o&&!s||M&&v<=G0&&s)&&(e.onComplete(e),e.completed=!M):S&&C?l===1/0?e._startTime+=e.duration:e._currentIteration>=l-1&&(e.paused=!0,!s&&!m&&(e.completed=!0,!n&&!(a&&(M||!a.began))&&(e.onComplete(e),e._resolve(e)))):e.completed=!1,O},F2=(e,t,n,r,i)=>{let a=e._currentIteration;if(P2(e,t,n,r,i),e._hasChildren){let o=e,s=o.backwards,c=r?t:o._iterationTime,l=i2(),u=0,d=!0;if(!r&&o._currentIteration!==a){let e=o.iterationDuration;A2(o,t=>{if(!s)!t.completed&&!t.backwards&&t._currentTime{let t=w2((c-e._offset)*e._speed,12),a=e._fps=o.duration&&(o.paused=!0,o.completed||(o.completed=!0,n||(o.onComplete(o),o._resolve(o))))}},I2={animation:null,update:Z0},oke=e=>{let t=I2.animation;return t||(t={duration:G0,computeDeltaTime:Z0,_offset:0,_delay:0,_head:null,_tail:null},I2.animation=t,I2.update=()=>{e.forEach(e=>{for(let t in e){let n=e[t],r=n._head;if(r){let e=r._valueType,t=e===R0.COMPLEX||e===R0.COLOR?k2(r._fromNumbers):null,i=r._fromNumber,a=n._tail;for(;a&&a!==r;){if(t)for(let e=0,n=a._numbers.length;eP0?requestAnimationFrame:setImmediate)(),ske=(()=>P0?cancelAnimationFrame:clearImmediate)();var cke=class extends N2{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=$0,this.paused=!0,this.reqId=0}update(){let e=this._currentTime=i2();if(this.requestTick(e)){this.computeDeltaTime(e);let t=this._speed,n=this._fps,r=this._head;for(;r;){let i=r._next;r.paused?(j2(this,r),this._hasChildren=!!this._tail,r._running=!1,r.completed&&!r._cancelled&&r.cancel()):F2(r,(e-r._startTime)*r._speed*t,0,0,r._fpse.resetTime()),this.wake()}get speed(){return this._speed*(t2.timeScale===1?1:q0)}set speed(e){this._speed=e*t2.timeScale,A2(this,e=>e.speed=e._speed)}get timeUnit(){return t2.timeScale===1?`ms`:`s`}set timeUnit(e){let t=.001,n=e===`s`,r=n?t:1;if(t2.timeScale!==r){t2.timeScale=r,t2.tickThreshold=200*r;let e=n?t:q0;this.defaults.duration*=e,this._speed*=e}}get precision(){return t2.precision}set precision(e){t2.precision=e}};const R2=(()=>{let e=new cke(i2());return P0&&(n2.engine=e,I0.addEventListener(`visibilitychange`,()=>{e.pauseOnDocumentHidden&&(I0.hidden?e.pause():e.resume())})),e})(),z2=()=>{R2._head?(R2.reqId=L2(z2),R2.update()):R2.reqId=0},lke=()=>(ske(R2.reqId),R2.reqId=0,R2),uke=(e,t,n)=>{let r=e.style.transform,i;if(r){let a=e[W0],o;for(;o=qOe.exec(r);){let e=o[1],r=o[2].slice(1,-1);a[e]=r,e===t&&(i=r,n&&(n[t]=r))}}return r&&!l2(i)?i:r2(t,`scale`)?`1`:r2(t,`rotate`)||r2(t,`skew`)?`0deg`:`0px`};function B2(e){let t=s2(e)?e2.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function V2(e){if(u2(e))return[];if(!P0)return a2(e)&&e.flat(1/0)||[e];if(a2(e)){let t=e.flat(1/0),n=[];for(let e=0,r=t.length;e{if(dke.includes(t))return!1;if(e.getAttribute(t)||t in e){if(t===`scale`){let t=e.parentNode;return t&&t.tagName===`filter`}return!0}},pke=e=>{let t=VOe.exec(e)||HOe.exec(e),n=l2(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],n]},mke=e=>{let t=e.length,n=t===4||t===5;return[+(`0x`+e[1]+e[n?1:2]),+(`0x`+e[n?2:3]+e[n?2:4]),+(`0x`+e[n?3:5]+e[n?3:6]),t===5||t===9?+((`0x`+e[n?4:7]+e[n?4:8])/255).toFixed(3):1]},U2=(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hke=e=>{let t=UOe.exec(e)||WOe.exec(e),n=t[1]/360,r=t[2]/100,i=t[3]/100,a=l2(t[4])?1:+t[4],o,s,c;if(r===0)o=s=c=i;else{let e=i<.5?i*(1+r):i+r-i*r,t=2*i-e;o=w2(U2(t,e,n+1/3)*255,0),s=w2(U2(t,e,n)*255,0),c=w2(U2(t,e,n-1/3)*255,0)}return[o,s,c,a]},gke=e=>p2(e)?pke(e):f2(e)?mke(e):m2(e)?hke(e):[0,0,0,1],W2=(e,t)=>l2(e)?t:e,G2=(e,t,n,r,i)=>{if(c2(e)){let a=()=>{let i=e(t,n,r);return isNaN(+i)?i||0:+i};return i&&(i.func=a),a()}else return e},K2=(e,t)=>e[H0]?e[U0]&&fke(e,t)?L0.ATTRIBUTE:Y0.includes(t)||J0.get(t)?L0.TRANSFORM:r2(t,`--`)?L0.CSS_VAR:t in e.style?L0.CSS:t in e?L0.OBJECT:L0.ATTRIBUTE:L0.OBJECT,q2=(e,t,n)=>{let r=e.style[t];r&&n&&(n[t]=r);let i=r||getComputedStyle(e[zOe]||e).getPropertyValue(t);return i===`auto`?`0`:i},J2=(e,t,n,r)=>{let i=l2(n)?K2(e,t):n;return i===L0.OBJECT?e[t]||0:i===L0.ATTRIBUTE?e.getAttribute(t):i===L0.TRANSFORM?uke(e,t,r):i===L0.CSS_VAR?q2(e,t,r).trimStart():q2(e,t,r)},Y2=(e,t,n)=>n===`-`?e-t:n===`+`?e+t:e*t,X2=()=>({t:R0.NUMBER,n:0,u:null,o:null,d:null,s:null}),Z2=(e,t)=>{if(t.t=R0.NUMBER,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;let n=+e;if(isNaN(n)){let n=e;n[1]===`=`&&(t.o=n[0],n=n.slice(2));let r=n.includes(` `)?!1:GOe.exec(n);if(r)return t.t=R0.UNIT,t.n=+r[1],t.u=r[2],t;if(t.o)return t.n=+n,t;if(XOe(n))return t.t=R0.COLOR,t.d=gke(n),t;{let e=n.match(Q0);return t.t=R0.COMPLEX,t.d=e?e.map(Number):[],t.s=n.split(Q0)||[],t}}else return t.n=n,t},Q2=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=k2(e._toNumbers),t.s=k2(e._strings),t),$2=X2(),e4={_rep:new WeakMap,_add:new Map},t4=(e,t,n=`_rep`)=>{let r=e4[n],i=r.get(e);return i||(i={},r.set(e,i)),i[t]?i[t]:i[t]={_head:null,_tail:null}},_ke=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,n4=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=G0,e._currentTime=G0},r4=(e,t)=>{let n=e._composition;if(n===B0.replace){let n=e._absoluteStartTime;M2(t,e,_ke,`_prevRep`,`_nextRep`);let r=e._prevRep;if(r){let t=r.parent,i=r._absoluteStartTime+r._changeDuration;if(e.parent.id!==t.id&&t.iterationCount>1&&i+(t.duration-t.iterationDuration)>n){n4(r);let e=r._prevRep;for(;e&&e.parent.id===t.id;)n4(e),e=e._prevRep}let a=n-e._delay;if(i>a){let e=r._startTime,t=i-(e+r._updateDuration),n=w2(a-t-e,12);r._changeDuration=n,r._currentTime=n,r._isOverlapped=1,n{e._isOverlapped||(o=!1)}),o){let e=t.parent;if(e){let n=!0;A2(e,e=>{e!==t&&A2(e,e=>{e._isOverlapped||(n=!1)})}),n&&e.cancel()}else t.cancel()}}}else if(n===B0.blend){let t=t4(e.target,e.property,`_add`),n=oke(e4._add),r=t._head;r||(r={...e},r._composition=B0.replace,r._updateDuration=G0,r._startTime=0,r._numbers=k2(e._fromNumbers),r._number=0,r._next=null,r._prev=null,M2(t,r),M2(n,r));let i=e._toNumber;if(e._fromNumber=r._fromNumber-i,e._toNumber=0,e._numbers=k2(e._fromNumbers),e._number=0,r._fromNumber=i,e._toNumbers){let t=k2(e._toNumbers);t&&t.forEach((t,n)=>{e._fromNumbers[n]=r._fromNumbers[n]-t,e._toNumbers[n]=0}),r._fromNumbers=t}M2(t,e,null,`_prevAdd`,`_nextAdd`)}return e},i4=e=>{let t=e._composition;if(t!==B0.none){let n=e.target,r=e.property,i=e4._rep,a=i.get(n),o=a[r];if(j2(o,e,`_prevRep`,`_nextRep`),t===B0.blend){let t=e4._add,i=t.get(n);if(!i)return;let a=i[r],o=I2.animation;j2(a,e,`_prevAdd`,`_nextAdd`);let s=a._head;if(s&&s===a._tail){j2(a,s,`_prevAdd`,`_nextAdd`),j2(o,s);let e=!0;for(let t in i)if(i[t]._head){e=!1;break}e&&t.delete(n)}}}return e},a4=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),o4=e=>e._cancelled?(e._hasChildren?A2(e,o4):A2(e,e=>{e._composition!==B0.none&&r4(e,t4(e.target,e.property))}),e._cancelled=0,e):e;let vke=0;var s4=class extends N2{constructor(e={},t=null,n=0){super(0);let{id:r,delay:i,duration:a,reversed:o,alternate:s,loop:c,loopDelay:l,autoplay:u,frameRate:d,playbackRate:f,onComplete:p,onLoop:m,onPause:h,onBegin:g,onBeforeUpdate:_,onUpdate:v}=e;e2.current&&e2.current.register(this);let y=t?0:R2._elapsedTime,b=t?t.defaults:t2.defaults,x=c2(i)||l2(i)?b.delay:+i,S=c2(a)||l2(a)?1/0:+a,C=W2(c,b.loop),w=W2(l,b.loopDelay),T=C===!0||C===1/0||C<0?1/0:C+1,E=0;t?E=n:(R2.reqId||R2.requestTick(i2()),E=(R2._elapsedTime-R2._startTime)*t2.timeScale),this.id=l2(r)?++vke:r,this.parent=t,this.duration=D2((S+w)*T-w)||G0,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=g||b.onBegin,this.onBeforeUpdate=_||b.onBeforeUpdate,this.onUpdate=v||b.onUpdate,this.onLoop=m||b.onLoop,this.onPause=h||b.onPause,this.onComplete=p||b.onComplete,this.iterationDuration=S,this.iterationCount=T,this._autoplay=t?!1:W2(u,b.autoplay),this._offset=E,this._delay=x,this._loopDelay=w,this._iterationTime=0,this._currentIteration=0,this._resolve=Z0,this._running=!1,this._reversed=+W2(o,b.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=W2(s,b.alternate),this._prev=null,this._next=null,this._elapsedTime=y,this._startTime=y,this._lastTime=y,this._fps=W2(d,b.frameRate),this._speed=W2(f,b.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(1).play()}get currentTime(){return S2(w2(this._currentTime,t2.precision),-this._delay,this.duration)}set currentTime(e){let t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return w2(this._iterationTime,t2.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return S2(w2(this._currentTime/this.duration,10),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return S2(w2(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(e){let t=this.iterationDuration;this.currentTime=t*this._currentIteration+t*e}get currentIteration(){return this._currentIteration}set currentIteration(e){this.currentTime=this.iterationDuration*S2(+e,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(e){e?this.reverse():this.play()}get speed(){return super.speed}set speed(e){super.speed=e,this.resetTime()}reset(e=0){return o4(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,F2(this,0,1,e,z0.FORCE),a4(this),this._hasChildren&&A2(this,a4),this}init(e=0){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&F2(this,this.duration,1,e,z0.FORCE),this.reset(e);let t=this._autoplay;return t===!0?this.resume():t&&!l2(t.linked)&&t.link(this),this}resetTime(){let e=1/(this._speed*R2._speed);return this._startTime=i2()-(this._currentTime+this._delay)*e,this}pause(){return this.paused?this:(this.paused=!0,this.onPause(this),this)}resume(){return this.paused?(this.paused=!1,this.duration<=G0&&!this._hasChildren?F2(this,G0,0,0,z0.FORCE):(this._running||=(M2(R2,this),R2._hasChildren=!0,!0),this.resetTime(),this._startTime-=12,R2.wake()),this):this}restart(){return this.reset(0).resume()}seek(e,t=0,n=0){o4(this),this.completed=!1;let r=this.paused;return this.paused=!0,F2(this,e+this._delay,~~t,~~n,z0.AUTO),r?this:this.resume()}alternate(){let e=this._reversed,t=this.iterationCount,n=this.iterationDuration,r=t===1/0?y2(K0/n):t;return this._reversed=+(this._alternate&&!(r%2)?e:!e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(n*r-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?A2(this,e=>e.cancel(),!0):A2(this,i4),this._cancelled=1,this.pause()}stretch(e){let t=this.duration,n=O2(e);if(t===n)return this;let r=e/t,i=e<=G0;return this.duration=i?G0:n,this.iterationDuration=i?G0:O2(this.iterationDuration*r),this._offset*=r,this._delay*=r,this._loopDelay*=r,this}revert(){F2(this,0,1,0,z0.AUTO);let e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(){return this.seek(this.duration).cancel()}then(e=Z0){let t=this.then,n=()=>{this.then=null,e(this),this.then=t,this._resolve=Z0};return new Promise(e=>(this._resolve=()=>e(n()),this.completed&&this._resolve(),this))}};const c4=e=>e,l4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yke=(e,t,n)=>{let r=0,i=1,a,o,s=0;do o=r+(i-r)/2,a=l4(o,t,n)-e,a>0?i=o:r=o;while(v2(a)>1e-7&&++s<100);return o},bke=(e=.5,t=0,n=.5,r=1)=>e===t&&n===r?c4:i=>i===0||i===1?i:l4(yke(i,e,n),t,r),xke=(e=10,t)=>{let n=t?eke:y2;return t=>n(S2(t,0,1)*e)*(1/e)},u4=(...e)=>{let t=e.length;if(!t)return c4;let n=t-1,r=e[0],i=e[n],a=[0],o=[g2(r)];for(let t=1;t{let n=[0],r=e-1;for(let e=1;et=>_2(t,+e),p4={"":f4,Quad:f4(2),Cubic:f4(3),Quart:f4(4),Quint:f4(5),Sine:e=>1-$Oe(e*Cke),Circ:e=>1-ZOe(1-e*e),Expo:e=>e?_2(2,10*e-10):0,Bounce:e=>{let t,n=4;for(;e<((t=_2(2,--n))-1)/11;);return 1/_2(4,3-n)-7.5625*_2((t*3-2)/22-e,2)},Back:(e=1.70158)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{let n=S2(+e,1,10),r=S2(+t,G0,2),i=r/d4*tke(1/n),a=d4/r;return e=>e===0||e===1?e:-n*_2(2,-10*(1-e))*QOe((1-e-i)*a)}},m4={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(t*2)/2:1-e(t*-2+2)/2,outIn:e=>t=>t<.5?(1-e(1-t*2))/2:(e(t*2-1)+1)/2},wke=(e,t,n)=>{if(n[e])return n[e];if(e.indexOf(`(`)<=-1){let r=m4[e]||e.includes(`Back`)||e.includes(`Elastic`),i=r?t[e]():t[e];return i?n[e]=i:c4}else{let r=e.slice(0,-1).split(`(`),i=t[r[0]];return i?n[e]=i(...r[1].split(`,`)):c4}},Tke=(()=>{let e={linear:u4,irregular:Ske,steps:xke,cubicBezier:bke};for(let t in m4)for(let n in p4){let r=p4[n],i=m4[t];e[t+n]=n===``||n===`Back`||n===`Elastic`?(e,t)=>i(r(e,t)):i(r)}return e})(),Eke={linear:c4},h4=e=>c2(e)?e:s2(e)?wke(e,Tke,Eke):c4,g4={},_4=(e,t,n)=>{if(n===L0.TRANSFORM){let t=J0.get(e);return t||e}else if(n===L0.CSS||n===L0.ATTRIBUTE&&d2(t)&&e in t.style){let t=g4[e];if(t)return t;{let t=e&&JOe(e);return g4[e]=t,t}}else return e},v4={deg:1,rad:180/b2,turn:360},y4={},b4=(e,t,n,r=!1)=>{let i=t.u,a=t.n;if(t.t===R0.UNIT&&i===n)return t;let o=a+i+n,s=y4[o];if(!l2(s)&&!r)t.n=s;else{let r;if(i in v4)r=a*v4[i]/v4[n];else{let t=e.cloneNode(),o=e.parentNode,s=o&&o!==I0?o:I0.body;s.appendChild(t);let c=t.style;c.width=100+i;let l=t.offsetWidth||100;c.width=100+n;let u=t.offsetWidth||100,d=l/u;s.removeChild(t),r=d*a}t.n=r,y4[o]=r}return t.t,R0.UNIT,t.u=n,t},x4=e=>{if(e._hasChildren)A2(e,x4,!0);else{let t=e;t.pause(),A2(t,e=>{let n=e.property,r=e.target;if(r[H0]){let i=r.style,a=t._inlineStyles[n];if(e._tweenType===L0.TRANSFORM){let t=r[W0];if(l2(a)||a===``?delete t[n]:t[n]=a,e._renderTransforms)if(!Object.keys(t).length)i.removeProperty(`transform`);else{let e=``;for(let n in t)e+=X0[n]+t[n]+`) `;i.transform=e}}else l2(a)||a===``?i.removeProperty(n):i[n]=a;t._tail===e&&t.targets.forEach(e=>{e.getAttribute&&e.getAttribute(`style`)===``&&e.removeAttribute(`style`)})}})}return e},S4=X2(),C4=X2(),w4={func:null},T4=[null],E4=[null,null],D4={to:null};let Dke=0,O4,k4;const Oke=(e,t)=>{let n={};if(a2(e)){let t=[].concat(...e.map(e=>Object.keys(e))).filter(h2);for(let r=0,i=t.length;r{let t={};for(let n in e){let r=e[n];h2(n)?n===i&&(t.to=r):t[n]=r}return t});n[i]=a}}else{let r=W2(t.duration,t2.defaults.duration),i=Object.keys(e).map(t=>({o:parseFloat(t)/100,p:e[t]})).sort((e,t)=>e.o-t.o);for(let e in i.forEach(e=>{let t=e.o,i=e.p;for(let e in i)if(h2(e)){let a=n[e];a||=n[e]=[];let o=t*r,s=a.length,c=a[s-1],l={to:i[e]},u=0;for(let e=0;e=q0?B0.none:l2(g)?v.composition:g,D={},O=this._offset+(n?n._offset:0),k=NaN,A=NaN,j=0,M=0;for(let e=0;e2&&t?(O4=[],s.forEach((e,t)=>{t?t===1?(E4[1]=e,O4.push(E4)):O4.push(e):E4[0]=e})):O4=s}else T4[0]=s,O4=T4;let p=null,m=null,h=NaN,g=0,_=0;for(let e=O4.length;_1?G2(C,t,r,l)/e:C),t,r,l),b=G2(W2(k4.delay,_?0:w),t,r,l),x=G2(W2(k4.composition,E),t,r,l),k=YOe(x)?x:B0[x],A=k4.modifier||T,ee=!l2(u),te=!l2(c),N=a2(c),ne=N||ee&&te,re=m?g+b:b,ie=w2(O+re,12);!M&&(ee||N)&&(M=1);let ae=m;if(k!==B0.none){p||=t4(t,o);let e=p._head;for(;e&&!e._isOverridden&&e._absoluteStartTime<=ie;)if(ae=e,e=e._nextRep,e&&e._absoluteStartTime>=ie)for(;e;)n4(e),e=e._nextRep}if(ne?(Z2(N?G2(c[0],t,r,l):u,S4),Z2(N?G2(c[1],t,r,l,w4):c,C4),S4.t===R0.NUMBER&&(ae?ae._valueType===R0.UNIT&&(S4.t=R0.UNIT,S4.u=ae._unit):(Z2(J2(t,o,a,D),$2),$2.t===R0.UNIT&&(S4.t=R0.UNIT,S4.u=$2.u)))):(te?Z2(c,C4):m?Q2(m,C4):Z2(n&&ae&&ae.parent.parent===n?ae._value:J2(t,o,a,D),C4),ee?Z2(u,S4):m?Q2(m,S4):Z2(n&&ae&&ae.parent.parent===n?ae._value:J2(t,o,a,D),S4)),S4.o&&(S4.n=Y2(ae?ae._toNumber:Z2(J2(t,o,a,D),$2).n,S4.n,S4.o)),C4.o&&(C4.n=Y2(S4.n,C4.n,C4.o)),S4.t!==C4.t){if(S4.t===R0.COMPLEX||C4.t===R0.COMPLEX){let e=S4.t===R0.COMPLEX?S4:C4,t=S4.t===R0.COMPLEX?C4:S4;t.t=R0.COMPLEX,t.s=k2(e.s),t.d=e.d.map(()=>t.n)}else if(S4.t===R0.UNIT||C4.t===R0.UNIT){let e=S4.t===R0.UNIT?S4:C4,t=S4.t===R0.UNIT?C4:S4;t.t=R0.UNIT,t.u=e.u}else if(S4.t===R0.COLOR||C4.t===R0.COLOR){let e=S4.t===R0.COLOR?S4:C4,t=S4.t===R0.COLOR?C4:S4;t.t=R0.COLOR,t.s=e.s,t.d=[0,0,0,1]}}if(S4.u!==C4.u){let e=C4.u?S4:C4;e=b4(t,e,C4.u?C4.u:S4.u,!1)}if(C4.d&&S4.d&&C4.d.length!==S4.d.length){let e=S4.d.length>C4.d.length?S4:C4,t=e===S4?C4:S4;t.d=e.d.map((e,n)=>l2(t.d[n])?0:t.d[n]),t.s=k2(e.s)}let oe=w2(+y||G0,12),se={parent:this,id:Dke++,property:o,target:t,_value:null,_func:w4.func,_ease:h4(v),_fromNumbers:k2(S4.d),_toNumbers:k2(C4.d),_strings:k2(C4.s),_fromNumber:S4.n,_toNumber:C4.n,_numbers:k2(S4.d),_number:S4.n,_unit:C4.u,_modifier:A,_currentTime:0,_startTime:re,_delay:+b,_updateDuration:oe,_changeDuration:oe,_absoluteStartTime:ie,_tweenType:a,_valueType:C4.t,_composition:k,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};k!==B0.none&&r4(se,p),isNaN(h)&&(h=se._startTime),g=w2(re+oe,12),m=se,j++,M2(this,se)}(isNaN(A)||hk)&&(k=g),a===L0.TRANSFORM&&(d=j-_,f=j)}if(!isNaN(d)){let e=0;A2(this,t=>{e>=d&&e{e.id===t.id&&(e._renderTransforms=1)})),e++})}}c||console.warn(`No target found. Make sure the element you're trying to animate is accessible before creating your animation.`),A?(A2(this,e=>{e._startTime-e._delay||(e._delay-=A),e._startTime-=A}),k-=A):A=0,k||(k=G0,this.iterationCount=0),this.targets=s,this.duration=k===G0?G0:D2((k+this._loopDelay)*this.iterationCount-this._loopDelay)||G0,this.onRender=_||v.onRender,this._ease=b,this._delay=A,this.iterationDuration=k,this._inlineStyles=D,!this._autoplay&&M&&this.onRender(this)}stretch(e){let t=this.duration;if(t===O2(e))return this;let n=e/t;return A2(this,e=>{e._updateDuration=O2(e._updateDuration*n),e._changeDuration=O2(e._changeDuration*n),e._currentTime*=n,e._startTime*=n,e._absoluteStartTime*=n}),super.stretch(e)}refresh(){return A2(this,e=>{let t=e._func;if(t){let n=J2(e.target,e.property,e._tweenType);Z2(n,$2),Z2(t(),C4),e._fromNumbers=k2($2.d),e._fromNumber=$2.n,e._toNumbers=k2(C4.d),e._strings=k2(C4.s),e._toNumber=C4.o?Y2($2.n,C4.n,C4.o):C4.n}}),this}revert(){return super.revert(),x4(this)}then(e){return super.then(e)}};const kke=(e,t)=>new A4(e,t,null,0,!1).init(),Ake=[`x`,`y`,`z`];[...Ake];const j4={_head:null,_tail:null},jke=(e,t,n)=>{let r=j4._head;for(;r;){let i=r._next,a=r.$el===e,o=!t||r.property===t,s=!n||r.parent===n;if(a&&o&&s){let e=r.animation;try{e.commitStyles()}catch{}e.cancel(),j2(j4,r);let t=r.parent;t&&(t._completed++,t.animations.length===t._completed&&(t.completed=!0,t.muteCallbacks||(t.paused=!0,t.onComplete(t),t._resolve(t))))}r=i}},Mke=(e=Z0)=>new s4({duration:1*t2.timeScale,onComplete:e},null,0).resume();function Nke(e,t,n){let r=H2(e);if(!r.length)return;let[i]=r,a=K2(i,t),o=_4(t,i,a),s=J2(i,o);if(l2(n))return s;if(Z2(s,$2),$2.t===R0.NUMBER||$2.t===R0.UNIT){if(n===!1)return $2.n;{let e=b4(i,$2,n,!1);return`${w2(e.n,t2.precision)}${e.u}`}}}const Pke=(e,t)=>{if(!l2(t))return t.duration=G0,t.composition=W2(t.composition,B0.none),new A4(e,t,null,0,!0).resume()},M4=(e,t,n)=>{let r=!1;return A2(t,i=>{let a=i.target;if(e.includes(a)){let e=i.property,o=i._tweenType,s=_4(n,a,o);(!s||s&&s===e)&&(i.parent._tail===i&&i._tweenType===L0.TRANSFORM&&i._prev&&i._prev._tweenType===L0.TRANSFORM&&(i._prev._renderTransforms=1),j2(t,i),i4(i),r=!0)}},!0),r},N4=(e,t,n)=>{let r=V2(e),i=t||R2,a=t&&t.controlAnimation&&t;for(let e=0,t=r.length;e{if(!a._hasChildren)if(o=M4(r,a,n),o&&!a._head)a.cancel(),j2(i,a);else{let e=a._offset+a._delay,n=e+a.duration;n>t&&(t=n)}a._head?N4(e,a,n):a._hasChildren=!1},!0),l2(i.iterationDuration)||(i.iterationDuration=t)}else o=M4(r,i,n);return o&&!i._head&&(i._hasChildren=!1,i.cancel&&i.cancel()),r},Fke=ake,Ike=e=>e[E2(0,e.length-1)],Lke=(e,t)=>(+e).toFixed(t),Rke=(e,t,n)=>`${e}`.padStart(t,n),zke=(e,t,n)=>`${e}`.padEnd(t,n),Bke=(e,t,n)=>((e-t)%(n-t)+(n-t))%(n-t)+t,Vke=(e,t,n,r,i)=>r+(e-t)/(n-t)*(i-r),Hke=e=>e*b2/180,Uke=e=>e*180/b2,Wke=(e,t,n,r)=>{let i=q0/t2.defaults.frameRate;if(r!==!1){let e=r||R2._hasChildren&&R2;e&&e.deltaTime&&(i=e.deltaTime)}let a=1-Math.exp(-n*i*.1);return n?n===1?t:(1-a)*e+a*t:e},Gke=(e,t=0)=>(...n)=>t?t=>e(...n,t):t=>e(t,...n),P4=e=>(...t)=>{let n=e(...t);return new Proxy(Z0,{apply:(e,t,[r])=>n(r),get:(e,t)=>P4((...e)=>{let r=Kke[t](...e);return e=>r(n(e))})})},F4=(e,t=0)=>(...n)=>(n.lengthnew Promise(t=>setTimeout(t,e));function L4(e){let t=[],n={enqueue:[],dequeue:[],process:[],error:[],result:[],drain:[]},r={};function i(e,t){n[e].push(t)}function a(e,...t){let r=n[e];r.forEach(e=>e(...t))}function o(e,t){r[e]=r[e]||[],r[e].push(t)}function s(e,...t){let n=r[e]||[];n.forEach(e=>e(...t))}function c(e){t.push(e),a(`enqueue`,e,t.length),u()}function l(){t.length=0}async function u(){for(;t.length>0;){let n=t.shift();a(`dequeue`,n,t.length);for(let t of e.handlers){a(`process`,n,t);try{let e=await t({data:n,emit:s});a(`result`,n,e,t)}catch(e){a(`error`,n,e,t);continue}}}a(`drain`)}function d(){return t.length}return{enqueue:c,clear:l,length:d,on:i,onHandlerEvent:o}}function qke(){let e,t=new ReadableStream({start(t){e=t}});return{stream:t,controller:e}}function R4(e,t){if(e?.aborted){t?.();let n=Error(`Operation canceled`);throw n.name=e?.reason,n}}function Jke(e,t){let n=new Intl.Segmenter(void 0,{granularity:`grapheme`}),r=new TextDecoder(`utf-8`,{fatal:!1}),i=t?.signal;return async function*(){let t=``;for(;;){R4(i,e.close);let{done:a,value:o}=await new Promise((t,n)=>{i?.addEventListener(`abort`,()=>{e.close?.();let t=Error(`Operation canceled`);t.name=i.reason,n(t)},{once:!0}),Promise.resolve(e.read()).then(t).catch(n)});t+=r.decode(o,{stream:!0});let s=n.segment(t);if(a){for(let t of s)R4(i,e.close),yield t.segment;return}let c=s[Symbol.iterator](),l=0,u=c.next();for(;!u.done;){R4(i,e.close);let t=c.next();if(t.done)break;l=t.value.index,yield u.value.segment,u=t}a||(t=t.slice(l))}}()}const Yke=`​`,Xke=new Set(`??!!`),Zke=new Set(`.。??!!…⋯~~ - \r`),Qke=new Set(`,,、–—::;;《》「」`);async function*z4(e,t){let{boost:n=2,minimumWords:r=4,maximumWords:i=12}=t??{},a=Jke(typeof e==`string`?new ReadableStream({start(t){t.enqueue(new TextEncoder().encode(e)),t.close()}}).getReader():e),o=new Intl.Segmenter(void 0,{granularity:`word`}),s=0,c=``,l=``,u=0,d,f=await a.next();for(;!f.done;){let e=f.value;if(e.length>1){d=e,f=await a.next();continue}let t=e===`​`,p=Zke.has(e),m=Qke.has(e),h=Xke.has(e),g,_;if(t||p||m){switch(e){case`.`:case`,`:if(d!==void 0&&/\d/.test(d)){if(g=await a.next(),!g.done&&g.value&&/\d/.test(g.value)){c+=e,f=g,g=void 0;continue}}else e===`.`&&(g=await a.next(),!g.done&&g.value&&g.value===`.`&&(_=await a.next(),!_.done&&_.value&&_.value===`.`&&(e=`…`,g=void 0,_=void 0)))}if(c.length===0){d=e,f=await a.next();continue}let m=[...o.segment(c)].filter(e=>e.isWordLike);if(u>r&&u+m.length>i){let t=h?l.trim()+e:l.trim();yield{text:t,words:u,reason:`limit`},s++,l=``,u=0}if(l+=c+e,u+=m.length,c=``,t||p||u>i||si?`limit`:`boost`},s++,l=``,u=0}d=e,g===void 0?f=await a.next():_===void 0?(f=g,g=void 0):(f=_,g=void 0,_=void 0);continue}c+=e,d=e,g=await a.next(),f=g}if(console.debug(`while loop ends, chunk/buffer:`,l,c),l.length>0||c.length>0){let e=(l+c).trim();yield{text:e,words:u+[...o.segment(c)].filter(e=>e.isWordLike).length,reason:`flush`}}}async function $ke(e,t){try{for await(let n of z4(e))console.debug(`chunk to be pushed: `,n),t.enqueue(n.text)}catch(e){console.error(`Error chunking stream to TTS queue:`,e)}}function eAe(e){function t(e){for(let t of cz){if(!e.includes(t))continue;return{ok:!0,emotion:t}}return{ok:!1,emotion:``}}return L4({handlers:[async n=>{if(cz.includes(n.data)){n.emit(`emotion`,n.data),e.enqueue(n.data);return}{let{ok:r,emotion:i}=t(n.data);r&&(n.emit(`emotion`,i),e.enqueue(i))}}]})}function tAe(){function e(e){if(!/<\|DELAY:\d+\|>/i.test(e))return{ok:!1,delay:0};let t=/<\|DELAY:(\d+)\|>/i.exec(e),n=t?.[1];if(!n)return{ok:!1,delay:0};let r=Number.parseFloat(n);return r<=0||Number.isNaN(r)?{ok:!0,delay:0}:{ok:!0,delay:r}}return L4({handlers:[async t=>{let{ok:n,delay:r}=e(t.data);n&&(t.emit(`delay`,r),await I4(r*1e3))}]})}function B4(e){let t=new TextEncoder,{stream:n,controller:r}=qke();return $ke(n.getReader(),e),L4({handlers:[async e=>{r.enqueue(t.encode(e.data))}]})}function nAe(e){let t=new Uint8Array(e.frequencyBinCount);e.getByteFrequencyData(t);let n=[];for(let e=0;e<700;e+=80)n.push(t[e]);let r=t.map(e=>e**1.2).map(e=>e*1.2).reduce((e,t)=>e+t,0);return r/t.length/100}function rAe(e){let t=new Uint8Array(e.frequencyBinCount);e.getByteFrequencyData(t);let n=[];for(let e=0;e<700;e+=80)n.push(t[e]);let r=t.map(e=>e**1.5),i=Math.min(...r),a=Math.max(...r),o=a-i,s;s=o===0?r.map(()=>0):r.map(e=>(e-i)/o);let c=s.reduce((e,t)=>e+t,0);return c/t.length}function iAe(e,t=`linear`){switch(t){case`linear`:return nAe(e);case`minmax`:return rAe(e)}}const V4=UO(`audio-context`,()=>{let e=F(new AudioContext);return hi(async()=>{e&&await e.value.close()}),{audioContext:e,calculateVolume:iAe}});function aAe(e=!1){let t=uE({constraints:{audio:!0},requestPermissions:e}),n=U(()=>t.audioInputs.value),r=F(t.audioInputs.value.find(e=>e.deviceId===`default`)?.deviceId||``),i=U(()=>({audio:{deviceId:{exact:r.value},autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0}})),{stream:a,stop:o,start:s}=xE({constraints:i,enabled:!1,autoSwitch:!0});Ba(n,()=>{!r.value&&n.value.length>0&&(r.value=n.value.find(e=>e.deviceId===`default`)?.deviceId||n.value[0].deviceId)});function c(){t.ensurePermissions().then(()=>Gn()).then(()=>{n.value.length>0&&!r.value&&(r.value=n.value.find(e=>e.deviceId===`default`)?.deviceId||n.value[0].deviceId)}).catch(e=>{console.error(`Error ensuring permissions:`,e)})}return di(()=>{e&&c()}),{audioInputs:n,selectedAudioInput:r,stream:a,deviceConstraints:i,askPermission:c,startStream:s,stopStream:o}}const oAe=UO(`character-speaking`,()=>{let e=F(0),t=F(!1),n=U(()=>t.value?(30+70*e.value)/100:30);return{mouthOpenSize:e,nowSpeaking:t,nowSpeakingAvatarBorderOpacity:n}}),sAe={flex:`~ row`,"gap-4":``},cAe={flex:`~ col gap-2 items-start`,"py-4":``},lAe={"ml-1":``},uAe={key:0,tag:`div`,flex:`~ row items-center gap-1`,"text-sm":``};var dAe=R({__name:`SpeechStreamingPlayground`,props:{text:{},generateSpeech:{type:Function},voice:{}},setup(e){let t=e,{audioContext:n}=V4(),r=F(!1),i=F([]),a=F(-1),o=L4({handlers:[e=>new Promise(t=>{let i=n.createBufferSource();i.buffer=e.data.audioBuffer,i.connect(n.destination),r.value=!0,i.start(0),i.onended=()=>{r.value=!1,t()}})]});async function s(e){a.value++;try{let r=e.data,i=await t.generateSpeech(r,t.voice,!1),a=await n.decodeAudioData(i);o.enqueue({audioBuffer:a,text:e.data})}catch(e){console.error(`Speech generation failed:`,e)}}let c=L4({handlers:[s]}),l=B4(c);async function u(){l.enqueue(t.text)}async function d(){let e=[],n=new ReadableStream({start(e){e.enqueue(new TextEncoder().encode(t.text)),e.close()}});for await(let t of z4(n.getReader(),{boost:1,minimumWords:4,maximumWords:12}))e.push(t);i.value=e}return(e,t)=>(z(),B(vo,null,[t[4]||=V(`div`,{class:`flex items-center gap-1 text-sm font-medium`},` Streaming Playground `,-1),V(`div`,sAe,[V(`button`,{border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,bg:`neutral-700 dark:neutral-300`,onClick:d},[...t[1]||=[V(`div`,{flex:`~ row`,"items-center":``,"gap-2":``},[V(`div`,{"i-solar:round-double-alt-arrow-right-bold-duotone":``}),V(`span`,null,`Test chunking`)],-1)]]),i.value.length>0?(z(),B(`button`,{key:0,border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,bg:`neutral-700 dark:neutral-300`,onClick:u},[...t[2]||=[V(`div`,{flex:`~ row`,"items-center":``,"gap-2":``},[V(`div`,{"i-solar:round-double-alt-arrow-right-bold-duotone":``}),V(`span`,null,`Test streaming`)],-1)]])):Lo(``,!0)]),V(`div`,cAe,[(z(!0),B(vo,null,Di(i.value,(e,n)=>(z(),B(`div`,{key:n,flex:`~ row gap-2 items-center`},[V(`div`,{flex:`~ row gap-2 items-center`,"rounded-xl":``,"px-2":``,"py-1.5":``,class:Te({"bg-neutral-100 dark:bg-neutral-800":a.value=n})},[V(`span`,lAe,Pe(e.text),1),V(`span`,{"rounded-full":``,"px-2":``,"py-.5":``,"text-nowrap":``,"text-xs":``,b:`~ dashed`,class:Te({"b-green text-green":e.reason===`boost`,"b-orange text-orange":e.reason===`limit`,"b-red text-red":e.reason===`hard`,"b-purple text-purple":e.reason===`flush`})},Pe(e.words)+` words, `+Pe(e.reason),3)],2),H(Fs,{css:!1,onEnter:t[0]||=e=>I(kke)(e,{opacity:[0,1],translateX:[10,0],duration:200,ease:`inOut`})},{default:L(()=>[a.value>=n?(z(),B(`div`,uAe,[...t[3]||=[V(`div`,{"i-solar-check-circle-line-duotone":``},null,-1),V(`div`,null,`Queued`,-1)]])):Lo(``,!0)]),_:2},1024)]))),128))])],64))}}),fAe=dAe;const pAe={"w-full":``,"rounded-xl":``},mAe={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},hAe={class:`inline-flex items-center gap-4`},gAe={flex:`~ col gap-4`},_Ae=[`placeholder`],vAe=[`placeholder`],yAe={flex:`~ row`,"gap-4":``},bAe=[`disabled`],xAe={flex:`~ row`,"items-center":``,"gap-2":``},SAe={flex:`~ row`,"items-center":``,"gap-2":``},CAe={key:2,class:`mt-2 text-sm text-red-500`},wAe={key:3,class:`mt-2 text-sm text-red-500`},TAe={key:4,class:`mt-2 text-sm text-red-500`},EAe=[`src`];var DAe=R({__name:`SpeechPlayground`,props:{defaultText:{},availableVoices:{},generateSpeech:{type:Function},apiKeyConfigured:{type:Boolean}},setup(e,{expose:t}){let n=e,{t:r}=K1(),i=F(n.defaultText||`Hello! This is a test of the voice synthesis.`),a=F(!1),o=F(``),s=F(``),c=F(null),l=F(!1),u=F(``),d=F(``);Ba(()=>n.availableVoices,e=>{e.length>0&&!d.value&&(d.value=e[0]?.id||``)},{immediate:!0});let f=U(()=>n.availableVoices.map(e=>({value:e.id,label:e.name})));async function p(){if(!(!i.value.trim()&&!l.value||l.value&&!u.value.trim()||!d.value)){a.value=!0,s.value=``;try{o.value&&m();let e=l.value?u.value:i.value,t=await n.generateSpeech(e,d.value,l.value);o.value=URL.createObjectURL(new Blob([t])),setTimeout(()=>{c.value&&c.value.play()},100)}catch(e){console.error(`Error generating speech:`,e),s.value=e instanceof Error?e.message:`An unknown error occurred`}finally{a.value=!1}}}function m(){c.value&&(c.value.pause(),c.value.currentTime=0),o.value&&=(URL.revokeObjectURL(o.value),``)}return hi(()=>{o.value&&URL.revokeObjectURL(o.value)}),t({testText:i,ssmlText:u,useSSML:l,selectedVoice:d,isGenerating:a,audioUrl:o,errorMessage:s,audioPlayer:c,generateTestSpeech:p,stopTestAudio:m}),(e,t)=>(z(),B(`div`,pAe,[V(`h2`,mAe,[V(`div`,hAe,[H(I(qR)),V(`div`,null,Pe(I(r)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),V(`div`,gAe,[H(I(SM),{modelValue:l.value,"onUpdate:modelValue":t[0]||=e=>l.value=e,label:I(r)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.label`),description:I(r)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.description`)},null,8,[`modelValue`,`label`,`description`]),l.value?cr((z(),B(`textarea`,{key:1,"onUpdate:modelValue":t[2]||=e=>u.value=e,placeholder:I(r)(`settings.pages.modules.speech.sections.section.voice-settings.input-ssml.placeholder`),border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-48":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"font-mono":``,"outline-none":``},null,8,vAe)),[[Nc,u.value]]):cr((z(),B(`textarea`,{key:0,"onUpdate:modelValue":t[1]||=e=>i.value=e,placeholder:I(r)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.input.placeholder`),border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-24":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"outline-none":``},null,8,_Ae)),[[Nc,i.value]]),H(I(DM),{modelValue:d.value,"onUpdate:modelValue":t[3]||=e=>d.value=e,class:`[&>div]:grid [&>div]:grid-cols-[4fr_2fr]`,options:f.value,label:I(r)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.voice.label`),description:I(r)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.voice.description`),layout:`horizontal`},null,8,[`modelValue`,`options`,`label`,`description`]),V(`div`,yAe,[V(`button`,{border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,disabled:a.value||!i.value.trim()&&!l.value||l.value&&!u.value.trim()||!d.value||!e.apiKeyConfigured,class:Te({"opacity-50 cursor-not-allowed":a.value||!i.value.trim()&&!l.value||l.value&&!u.value.trim()||!d.value||!e.apiKeyConfigured}),bg:`neutral-700 dark:neutral-300`,onClick:p},[V(`div`,xAe,[t[4]||=V(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),V(`span`,null,Pe(a.value?I(r)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):I(r)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,bAe),o.value?(z(),B(`button`,{key:0,border:`primary-300 dark:primary-800 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,"py-2":``,"text-sm":``,onClick:m},[V(`div`,SAe,[t[5]||=V(`div`,{"i-solar:stop-circle-bold-duotone":``},null,-1),V(`span`,null,Pe(I(r)(`settings.pages.modules.speech.sections.section.playground.buttons.stop.label`)),1)])])):Lo(``,!0)]),e.apiKeyConfigured?Lo(``,!0):(z(),B(`div`,CAe,Pe(I(r)(`settings.pages.providers.provider.elevenlabs.playground.validation.error-missing-api-key`)),1)),d.value?Lo(``,!0):(z(),B(`div`,wAe,Pe(I(r)(`settings.pages.modules.speech.sections.section.playground.select-voice.required`)),1)),s.value?(z(),B(`div`,TAe,Pe(s.value),1)):Lo(``,!0),o.value?(z(),B(`audio`,{key:5,ref_key:`audioPlayer`,ref:c,src:o.value,controls:``,class:`mt-2 w-full`},null,8,EAe)):Lo(``,!0),H(fAe,{text:i.value,voice:d.value,"generate-speech":e.generateSpeech},null,8,[`text`,`voice`,`generate-speech`])]),ki(e.$slots,`default`)]))}}),OAe=DAe;const kAe={"w-full":``,"rounded-xl":``},AAe={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},jAe={class:`inline-flex items-center gap-4`},MAe={flex:`~ col gap-4`},NAe=[`placeholder`],PAe=[`placeholder`],FAe={flex:`~ row`,"gap-4":``},IAe=[`disabled`],LAe={flex:`~ row`,"items-center":``,"gap-2":``},RAe={flex:`~ row`,"items-center":``,"gap-2":``},zAe={key:2,class:`mt-2 text-sm text-red-500`},BAe={key:3,class:`mt-2 text-sm text-red-500`},VAe=[`src`];var HAe=R({__name:`SpeechPlaygroundOpenAICompatible`,props:{defaultText:{},modelValue:{},voice:{},generateSpeech:{type:Function},apiKeyConfigured:{type:Boolean}},emits:[`update:modelValue`,`update:voice`],setup(e,{expose:t,emit:n}){let r=e,i=n,{t:a}=K1(),o=U({get:()=>r.modelValue,set:e=>i(`update:modelValue`,e)}),s=U({get:()=>r.voice,set:e=>i(`update:voice`,e)}),c=F(r.defaultText||`Hello! This is a test of the voice synthesis.`),l=F(!1),u=F(``),d=F(``),f=F(null),p=F(!1),m=F(``);async function h(){if(!(!c.value.trim()&&!p.value||p.value&&!m.value.trim())){l.value=!0,d.value=``;try{u.value&&g();let e=p.value?m.value:c.value,t=await r.generateSpeech(e,s.value,p.value,o.value);u.value=URL.createObjectURL(new Blob([t])),setTimeout(()=>{f.value&&f.value.play()},100)}catch(e){console.error(`Error generating speech:`,e),d.value=e instanceof Error?e.message:`An unknown error occurred`}finally{l.value=!1}}}function g(){f.value&&(f.value.pause(),f.value.currentTime=0),u.value&&=(URL.revokeObjectURL(u.value),``)}return hi(()=>{u.value&&URL.revokeObjectURL(u.value)}),t({testText:c,ssmlText:m,useSSML:p,isGenerating:l,audioUrl:u,errorMessage:d,audioPlayer:f,generateTestSpeech:h,stopTestAudio:g}),(e,t)=>{let n=xi(`SpeechStreamingPlayground`);return z(),B(`div`,kAe,[V(`h2`,AAe,[V(`div`,jAe,[H(I(qR)),V(`div`,null,Pe(I(a)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),V(`div`,MAe,[H(I(wM),{modelValue:o.value,"onUpdate:modelValue":t[0]||=e=>o.value=e,label:`Model ID`,placeholder:`tts-1`},null,8,[`modelValue`]),H(I(wM),{modelValue:s.value,"onUpdate:modelValue":t[1]||=e=>s.value=e,label:`Voice`,placeholder:`alloy`},null,8,[`modelValue`]),H(I(SM),{modelValue:p.value,"onUpdate:modelValue":t[2]||=e=>p.value=e,label:I(a)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.label`),description:I(a)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.description`)},null,8,[`modelValue`,`label`,`description`]),p.value?cr((z(),B(`textarea`,{key:1,"onUpdate:modelValue":t[4]||=e=>m.value=e,placeholder:I(a)(`settings.pages.modules.speech.sections.section.voice-settings.input-ssml.placeholder`),border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-48":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"font-mono":``,"outline-none":``},null,8,PAe)),[[Nc,m.value]]):cr((z(),B(`textarea`,{key:0,"onUpdate:modelValue":t[3]||=e=>c.value=e,placeholder:I(a)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.input.placeholder`),border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-24":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"outline-none":``},null,8,NAe)),[[Nc,c.value]]),V(`div`,FAe,[V(`button`,{border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,disabled:l.value||!c.value.trim()&&!p.value||p.value&&!m.value.trim()||!e.apiKeyConfigured,class:Te({"opacity-50 cursor-not-allowed":l.value||!c.value.trim()&&!p.value||p.value&&!m.value.trim()||!e.apiKeyConfigured}),bg:`neutral-700 dark:neutral-300`,onClick:h},[V(`div`,LAe,[t[5]||=V(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),V(`span`,null,Pe(l.value?I(a)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):I(a)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,IAe),u.value?(z(),B(`button`,{key:0,border:`primary-300 dark:primary-800 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,"py-2":``,"text-sm":``,onClick:g},[V(`div`,RAe,[t[6]||=V(`div`,{"i-solar:stop-circle-bold-duotone":``},null,-1),V(`span`,null,Pe(I(a)(`settings.pages.modules.speech.sections.section.playground.buttons.stop.label`)),1)])])):Lo(``,!0)]),e.apiKeyConfigured?Lo(``,!0):(z(),B(`div`,zAe,Pe(I(a)(`settings.pages.providers.provider.elevenlabs.playground.validation.error-missing-api-key`)),1)),d.value?(z(),B(`div`,BAe,Pe(d.value),1)):Lo(``,!0),u.value?(z(),B(`audio`,{key:4,ref_key:`audioPlayer`,ref:f,src:u.value,controls:``,class:`mt-2 w-full`},null,8,VAe)):Lo(``,!0),H(n,{text:c.value,voice:s.value,"generate-speech":e.generateSpeech},null,8,[`text`,`voice`,`generate-speech`])]),ki(e.$slots,`default`)])}}}),UAe=HAe;const H4=async e=>(e.fetch??globalThis.fetch)(s0(`audio/speech`,e.baseURL),{body:a0(e),headers:o0({"Content-Type":`application/json`,...e.headers},e.apiKey),method:`POST`,signal:e.abortSignal}).then(c0).then(async e=>e.arrayBuffer()),WAe=/[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g;function U4(e,t,n){let r=GAe(e);return n?r.replace(n,i):i(r);function i(e){return WH(e,{subset:t})}}function GAe(e){return String(e||``).replace(WAe,``)}const KAe=/]]>/g,qAe=[`>`];function JAe(e){return``}function YAe(e){return``}const XAe=[` `,` -`,` `,`"`,`&`,`'`,`/`,`<`,`=`,`>`];function W4(e){return U4(e,XAe)}function G4(e,t){let n=String(e),r=t.options.quote||`"`;if(t.options.quoteSmart){let e=r===`"`?`'`:`"`;XH(n,r)>XH(n,e)&&(r=e)}return r+U4(n,[`<`,`&`,r])+r}function ZAe(e,t){let n=W4(e.name),r=e.public,i=e.system,a=``}const QAe={}.hasOwnProperty;function $Ae(e,t){let n=W4(e.name),r=Y4(e,t),i=e.attributes||{},a=r?!1:t.options.closeEmptyElements,o=[],s;for(s in i)if(QAe.call(i,s)){let e=i[s];e!=null&&o.push(W4(s)+`=`+G4(e,t))}return`<`+n+(o.length===0?``:` `+o.join(` `))+(a?(t.options.tightClose?``:` `)+`/`:``)+`>`+r+(a?``:``)}const eje=/\?>/g,tje=[`>`];function nje(e){let t=W4(e.name)||`x`,n=U4(e.value,tje,eje);return``}const rje=[`&`,`<`];function K4(e){return U4(e.value,rje)}function ije(e,t){return t.options.allowDangerousXml?e.value:K4(e)}const aje={}.hasOwnProperty,q4={cdata:JAe,comment:YAe,doctype:ZAe,element:$Ae,instruction:nje,raw:ije,root:Y4,text:K4};function J4(e,t){let n=e&&e.type;if(!n)throw Error("Expected node, not `"+e+"`");if(!aje.call(q4,n))throw Error("Cannot compile unknown node `"+n+"`");let r=q4[n],i=r(e,t);return i}function Y4(e,t){let n=e&&e.children||[],r=-1,i=[];for(;++r{let e=T0(),{allAudioSpeechProvidersMetadata:t}=WO(e),n=pE(`settings/speech/active-provider`,``),r=pE(`settings/speech/active-model`,`eleven_multilingual_v2`),i=pE(`settings/speech/voice`,``),a=F(),o=pE(`settings/speech/pitch`,0),s=pE(`settings/speech/rate`,1),c=pE(`settings/speech/ssml-enabled`,!1),l=F(!1),u=F(null),d=F({}),f=pE(`settings/speech/language`,`en-US`),p=F(``),m=U(()=>t.value),h=U(()=>e.getProviderMetadata(n.value)?.capabilities.listModels!==void 0),g=U(()=>e.getModelsForProvider(n.value)),_=U(()=>e.isLoadingModels[n.value]||!1),v=U(()=>e.modelLoadError[n.value]||null),y=U(()=>{if(!p.value.trim())return g.value;let e=p.value.toLowerCase().trim();return g.value.filter(t=>t.name.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))}),b=U(()=>[`elevenlabs`,`microsoft-speech`,`azure-speech`,`google`,`alibaba-cloud-model-studio`,`volcengine`].includes(n.value));async function x(t){if(!t)return[];l.value=!0,u.value=null;try{let n=await e.getProviderMetadata(t).capabilities.listVoices?.(e.getProviderConfig(t))||[];return d.value[t]=n,n}catch(e){return console.error(`Error fetching voices for ${t}:`,e),u.value=e instanceof Error?e.message:`Unknown error`,[]}finally{l.value=!1}}function S(e){return d.value[e]||[]}Ba(n,async e=>{e&&await x(e)}),di(()=>{x(n.value).then(()=>{i.value&&(a.value=d.value[n.value]?.find(e=>e.id===i.value))})}),Ba(i,e=>{e&&(a.value=d.value[n.value]?.find(t=>t.id===e))},{immediate:!0}),Ba(d,e=>{i.value&&(a.value=e[n.value]?.find(e=>e.id===i.value))},{immediate:!0});async function C(e,t,n,r,i={}){let a=await H4({...e.speech(t,{...i}),input:n,voice:r});return a}function w(e,t,n){let r=n?.pitch,i=n?.speed,a=n?.volume,o={pitch:r==null?void 0:r>0?`+${r}%`:`-${r}%`,rate:i==null?void 0:i===1?`1`:`${i}`,volume:a==null?void 0:a>0?`+${a}%`:`${a}%`},s=X4(`speak`,{version:`1.0`,xmlns:`http://www.w3.org/2001/10/synthesis`,"xml:lang":t.languages[0]?.code||`en-US`},[X4(`voice`,{name:t.id,gender:t.gender||`neutral`},[Object.entries(o).filter(([e,t])=>t!=null).length>0?X4(`prosody`,{pitch:r==null?void 0:r>0?`+${r}%`:`-${r}%`,rate:i==null?void 0:i===1?`1`:`${i}`,volume:a==null?void 0:a>0?`+${a}%`:`${a}%`},[e]):e])]);return oje(s)}let T=U(()=>!!n.value&&!!r.value&&!!i.value);return{configured:T,activeSpeechProvider:n,activeSpeechModel:r,activeSpeechVoice:a,activeSpeechVoiceId:i,pitch:o,rate:s,ssmlEnabled:c,selectedLanguage:f,isLoadingSpeechProviderVoices:l,speechProviderError:u,availableVoices:d,modelSearchQuery:p,availableSpeechProvidersMetadata:m,supportsSSML:b,supportsModelListing:h,providerModels:g,isLoadingActiveProviderModels:_,activeProviderModelError:v,filteredModels:y,speech:C,loadVoicesForProvider:x,getVoicesForProvider:S,generateSSML:w}}),cje={flex:`~ col md:row gap-6`},lje={flex:`~ col gap-6`},uje={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},dje={flex:`~ col gap-4`},fje={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},pje={"w-full":``,"rounded-xl":``};var mje=R({__name:`SpeechProviderSettings`,props:{providerId:{},defaultModel:{},additionalSettings:{},placeholder:{}},setup(e){let t=e,{t:n}=K1(),r=Gk(),i=T0(),a=Q4(),{providers:o}=WO(i),s=U(()=>i.getProviderMetadata(t.providerId)),c=U({get:()=>o.value[t.providerId]?.apiKey||``,set:e=>{o.value[t.providerId]||(o.value[t.providerId]={}),o.value[t.providerId].apiKey=e}}),l=U({get:()=>o.value[t.providerId]?.baseUrl||s.value?.defaultOptions?.().baseUrl||``,set:e=>{o.value[t.providerId]||(o.value[t.providerId]={}),o.value[t.providerId].baseUrl=e}}),u=F({});function d(){o.value[t.providerId]?.voiceSettings?u.value={...o.value[t.providerId].voiceSettings}:u.value={pitch:0,speed:1,volume:0,...t.additionalSettings}}di(()=>{i.initializeProvider(t.providerId),c.value=o.value[t.providerId]?.apiKey||``,l.value=o.value[t.providerId]?.baseUrl||s.value?.defaultOptions?.().baseUrl||``,d(),i.configuredProviders[t.providerId]&&a.loadVoicesForProvider(t.providerId)});let f=FT(()=>{o.value[t.providerId]={...o.value[t.providerId],apiKey:c.value,baseUrl:l.value||s.value?.defaultOptions?.().baseUrl||``,voiceSettings:{...u.value}}},1e3);Ba([c,l],f),Ba(u,f,{deep:!0});function p(){u.value={...s.value?.defaultOptions?.().voiceSettings||{}},f()}return(e,i)=>(z(),Oo(N0,{"provider-name":s.value?.localizedName,"provider-icon":s.value?.icon,"on-back":()=>I(r).back()},{default:L(()=>[V(`div`,cje,[H(I(M0),{class:`w-full md:w-[40%]`},{default:L(()=>[H(I(j0),{title:I(n)(`settings.pages.providers.common.section.basic.title`),description:I(n)(`settings.pages.providers.common.section.basic.description`),"on-reset":p},{default:L(()=>[H(I(k0),{modelValue:c.value,"onUpdate:modelValue":i[0]||=e=>c.value=e,"provider-name":s.value?.localizedName,placeholder:t.placeholder||`API Key`},null,8,[`modelValue`,`provider-name`,`placeholder`]),ki(e.$slots,`basic-settings`)]),_:3},8,[`title`,`description`]),V(`div`,lje,[V(`h2`,uje,Pe(I(n)(`settings.pages.providers.common.section.voice.title`)),1),V(`div`,dje,[ki(e.$slots,`voice-settings`)])]),H(I(O0),{title:I(n)(`settings.pages.providers.common.section.advanced.title`)},{default:L(()=>[H(I(A0),{modelValue:l.value,"onUpdate:modelValue":i[1]||=e=>l.value=e,placeholder:s.value?.defaultOptions?.().baseUrl||``,required:``},null,8,[`modelValue`,`placeholder`]),ki(e.$slots,`advanced-settings`)]),_:3},8,[`title`])]),_:3}),V(`div`,fje,[V(`div`,pje,[ki(e.$slots,`playground`)])])])]),_:3},8,[`provider-name`,`provider-icon`,`on-back`]))}}),hje=mje;function $4(){let e=F(),t=F(),n=F(),r=F([]),i=F(0),a=F();function o(e){return r.value.push(e),()=>{r.value=r.value.filter(t=>t!==e)}}function s(){if(n.value)return;let a=()=>{if(!e.value||!t.value)return;e.value.getByteFrequencyData(t.value);let o=0;for(let e=0;e{l()}),{volumeLevel:i,error:a,startAnalyzer:c,stopAnalyzer:l,onAnalyzerUpdate:o}} +const P0=typeof window<`u`,F0=P0?window:null,I0=P0?document:null,L0={OBJECT:0,ATTRIBUTE:1,CSS:2,TRANSFORM:3,CSS_VAR:4},R0={NUMBER:0,UNIT:1,COLOR:2,COMPLEX:3},z0={NONE:0,AUTO:1,FORCE:2},B0={replace:0,none:1,blend:2},V0=Symbol(),H0=Symbol(),U0=Symbol(),W0=Symbol(),Uke=Symbol(),G0=1e-11,K0=0xe8d4a51000,q0=1e3,J0=(()=>{let e=new Map;return e.set(`x`,`translateX`),e.set(`y`,`translateY`),e.set(`z`,`translateZ`),e})(),Y0=[`translateX`,`translateY`,`translateZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`skew`,`skewX`,`skewY`,`perspective`,`matrix`,`matrix3d`],X0=Y0.reduce((e,t)=>({...e,[t]:t+`(`}),{}),Z0=()=>{},Wke=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,Gke=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,Kke=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,qke=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,Jke=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Q0=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,Yke=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,Xke=/([a-z])([A-Z])/g,Zke=/(\w+)(\([^)]+\)+)/g,$0={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:120,loop:0,reversed:!1,alternate:!1,autoplay:!0,duration:q0,delay:0,loopDelay:0,ease:`out(2)`,composition:B0.replace,modifier:e=>e,onBegin:Z0,onBeforeUpdate:Z0,onUpdate:Z0,onLoop:Z0,onPause:Z0,onComplete:Z0,onRender:Z0},e2={current:null,root:I0},t2={defaults:$0,precision:4,timeScale:1,tickThreshold:200},n2={version:`4.1.3`,engine:null};P0&&(F0.AnimeJS||=[],F0.AnimeJS.push(n2));const Qke=e=>e.replace(Xke,`$1-$2`).toLowerCase(),r2=(e,t)=>e.indexOf(t)===0,i2=Date.now,a2=Array.isArray,o2=e=>e&&e.constructor===Object,$ke=e=>typeof e==`number`&&!isNaN(e),s2=e=>typeof e==`string`,c2=e=>typeof e==`function`,l2=e=>e===void 0,u2=e=>l2(e)||e===null,d2=e=>P0&&e instanceof SVGElement,f2=e=>Wke.test(e),p2=e=>r2(e,`rgb`),m2=e=>r2(e,`hsl`),eAe=e=>f2(e)||p2(e)||m2(e),h2=e=>!t2.defaults.hasOwnProperty(e),g2=e=>s2(e)?parseFloat(e):e,_2=Math.pow,tAe=Math.sqrt,nAe=Math.sin,rAe=Math.cos,v2=Math.abs,iAe=Math.ceil,y2=Math.floor,aAe=Math.asin,b2=Math.PI,x2=Math.round,S2=(e,t,n)=>en?n:e,C2={},w2=(e,t)=>{if(t<0)return e;if(!t)return x2(e);let n=C2[t];return n||=C2[t]=10**t,x2(e*n)/n},oAe=(e,t)=>a2(t)?t.reduce((t,n)=>v2(n-e)e+(t-e)*n,E2=(e,t,n)=>{let r=10**(n||0);return y2((Math.random()*(t-e+1/r)+e)*r)/r},sAe=e=>{let t=e.length,n,r;for(;t;)r=E2(0,--t),n=e[t],e[t]=e[r],e[r]=n;return e},D2=e=>e===1/0?K0:e===-1/0?-0xe8d4a51000:e,O2=e=>e<=G0?G0:D2(w2(e,11)),k2=e=>a2(e)?[...e]:e,cAe=(e,t)=>{let n={...e};for(let r in t){let i=e[r];n[r]=l2(i)?t[r]:i}return n},A2=(e,t,n,r=`_prev`,i=`_next`)=>{let a=e._head,o=i;for(n&&(a=e._tail,o=r);a;){let e=a[o];t(a),a=e}},j2=(e,t,n=`_prev`,r=`_next`)=>{let i=t[n],a=t[r];i?i[r]=a:e._head=a,a?a[n]=i:e._tail=i,t[n]=null,t[r]=null},M2=(e,t,n,r=`_prev`,i=`_next`)=>{let a=e._tail;for(;a&&n&&n(a,t);)a=a[r];let o=a?a[i]:e._head;a?a[i]=t:e._head=t,o?o[r]=t:e._tail=t,t[r]=a,t[i]=o},lAe=e=>{let t;return(...n)=>{let r,i,a,o;t&&(r=t.currentIteration,i=t.iterationProgress,a=t.reversed,o=t._alternate,t.revert());let s=e(...n);return s&&!c2(s)&&s.revert&&(t=s),l2(i)||(t.currentIteration=r,t.iterationProgress=(o&&r%2?!a:a)?1-i:i),s||Z0}};var N2=class{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=w2(q0/120,0),this._fps=120,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){let t=this._frameDuration,n=+e,r=n{let a=e.parent,o=e.duration,s=e.completed,c=e.iterationDuration,l=e.iterationCount,u=e._currentIteration,d=e._loopDelay,f=e._reversed,p=e._alternate,m=e._hasChildren,h=e._delay,g=e._currentTime,_=h+c,v=t-h,y=S2(g,-h,o),b=S2(v,-h,o),x=v-g,S=b>0,C=b>=o,w=o<=G0,T=i===z0.FORCE,E=0,D=v,O=0;if(l>1){let t=~~(b/(c+(C?0:d)));e._currentIteration=S2(t,0,l),C&&e._currentIteration--,E=e._currentIteration%2,D=b%(c+d)||0}let k=f^(p&&E),A=e._ease,j=C?k?0:o:k?c-D:D;A&&(j=c*A(j/c)||0);let M=(a?a.backwards:v=h&&t<=_||t<=h&&y>h||t>=_&&y!==o)||j>=_&&y!==o||j<=h&&y>0||t<=y&&y===o&&s||C&&!s&&w){if(S&&(e.computeDeltaTime(y),n||e.onBeforeUpdate(e)),!m){let t=T||(M?x*-1:x)>=t2.tickThreshold,i=e._offset+(a?a._offset:0)+h+j,o=e._head,s,c,l,u,d=0;for(;o;){let e=o._composition,n=o._currentTime,a=o._changeDuration,f=o._absoluteStartTime+o._changeDuration,p=o._nextRep,m=o._prevRep,h=e!==B0.none;if((t||(n!==a||i<=f+(p?p._delay:0))&&(n!==0||i>=o._absoluteStartTime))&&(!h||!o._isOverridden&&(!o._isOverlapped||i<=f)&&(!p||p._isOverridden||i<=p._absoluteStartTime)&&(!m||m._isOverridden||i>=m._absoluteStartTime+m._changeDuration+o._delay))){let t=o._currentTime=S2(j-o._startTime,0,a),n=o._ease(t/o._updateDuration),i=o._modifier,f=o._valueType,p=o._tweenType,m=p===L0.OBJECT,g=f===R0.NUMBER,_=g&&m||n===0||n===1?-1:t2.precision,v,y;if(g)v=y=i(w2(T2(o._fromNumber,o._toNumber,n),_));else if(f===R0.UNIT)y=i(w2(T2(o._fromNumber,o._toNumber,n),_)),v=`${y}${o._unit}`;else if(f===R0.COLOR){let e=o._fromNumbers,t=o._toNumbers,r=w2(S2(i(T2(e[0],t[0],n)),0,255),0),a=w2(S2(i(T2(e[1],t[1],n)),0,255),0),s=w2(S2(i(T2(e[2],t[2],n)),0,255),0),c=S2(i(w2(T2(e[3],t[3],n),_)),0,1);if(v=`rgba(${r},${a},${s},${c})`,h){let e=o._numbers;e[0]=r,e[1]=a,e[2]=s,e[3]=c}}else if(f===R0.COMPLEX){v=o._strings[0];for(let e=0,t=o._toNumbers.length;e=o&&!s||M&&v<=G0&&s)&&(e.onComplete(e),e.completed=!M):S&&C?l===1/0?e._startTime+=e.duration:e._currentIteration>=l-1&&(e.paused=!0,!s&&!m&&(e.completed=!0,!n&&!(a&&(M||!a.began))&&(e.onComplete(e),e._resolve(e)))):e.completed=!1,O},F2=(e,t,n,r,i)=>{let a=e._currentIteration;if(P2(e,t,n,r,i),e._hasChildren){let o=e,s=o.backwards,c=r?t:o._iterationTime,l=i2(),u=0,d=!0;if(!r&&o._currentIteration!==a){let e=o.iterationDuration;A2(o,t=>{if(!s)!t.completed&&!t.backwards&&t._currentTime{let t=w2((c-e._offset)*e._speed,12),a=e._fps=o.duration&&(o.paused=!0,o.completed||(o.completed=!0,n||(o.onComplete(o),o._resolve(o))))}},I2={animation:null,update:Z0},uAe=e=>{let t=I2.animation;return t||(t={duration:G0,computeDeltaTime:Z0,_offset:0,_delay:0,_head:null,_tail:null},I2.animation=t,I2.update=()=>{e.forEach(e=>{for(let t in e){let n=e[t],r=n._head;if(r){let e=r._valueType,t=e===R0.COMPLEX||e===R0.COLOR?k2(r._fromNumbers):null,i=r._fromNumber,a=n._tail;for(;a&&a!==r;){if(t)for(let e=0,n=a._numbers.length;eP0?requestAnimationFrame:setImmediate)(),dAe=(()=>P0?cancelAnimationFrame:clearImmediate)();var fAe=class extends N2{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=$0,this.paused=!0,this.reqId=0}update(){let e=this._currentTime=i2();if(this.requestTick(e)){this.computeDeltaTime(e);let t=this._speed,n=this._fps,r=this._head;for(;r;){let i=r._next;r.paused?(j2(this,r),this._hasChildren=!!this._tail,r._running=!1,r.completed&&!r._cancelled&&r.cancel()):F2(r,(e-r._startTime)*r._speed*t,0,0,r._fpse.resetTime()),this.wake()}get speed(){return this._speed*(t2.timeScale===1?1:q0)}set speed(e){this._speed=e*t2.timeScale,A2(this,e=>e.speed=e._speed)}get timeUnit(){return t2.timeScale===1?`ms`:`s`}set timeUnit(e){let t=.001,n=e===`s`,r=n?t:1;if(t2.timeScale!==r){t2.timeScale=r,t2.tickThreshold=200*r;let e=n?t:q0;this.defaults.duration*=e,this._speed*=e}}get precision(){return t2.precision}set precision(e){t2.precision=e}};const R2=(()=>{let e=new fAe(i2());return P0&&(n2.engine=e,I0.addEventListener(`visibilitychange`,()=>{e.pauseOnDocumentHidden&&(I0.hidden?e.pause():e.resume())})),e})(),z2=()=>{R2._head?(R2.reqId=L2(z2),R2.update()):R2.reqId=0},pAe=()=>(dAe(R2.reqId),R2.reqId=0,R2),mAe=(e,t,n)=>{let r=e.style.transform,i;if(r){let a=e[W0],o;for(;o=Zke.exec(r);){let e=o[1],r=o[2].slice(1,-1);a[e]=r,e===t&&(i=r,n&&(n[t]=r))}}return r&&!l2(i)?i:r2(t,`scale`)?`1`:r2(t,`rotate`)||r2(t,`skew`)?`0deg`:`0px`};function B2(e){let t=s2(e)?e2.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function V2(e){if(u2(e))return[];if(!P0)return a2(e)&&e.flat(1/0)||[e];if(a2(e)){let t=e.flat(1/0),n=[];for(let e=0,r=t.length;e{if(hAe.includes(t))return!1;if(e.getAttribute(t)||t in e){if(t===`scale`){let t=e.parentNode;return t&&t.tagName===`filter`}return!0}},_Ae=e=>{let t=Gke.exec(e)||Kke.exec(e),n=l2(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],n]},vAe=e=>{let t=e.length,n=t===4||t===5;return[+(`0x`+e[1]+e[n?1:2]),+(`0x`+e[n?2:3]+e[n?2:4]),+(`0x`+e[n?3:5]+e[n?3:6]),t===5||t===9?+((`0x`+e[n?4:7]+e[n?4:8])/255).toFixed(3):1]},U2=(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),yAe=e=>{let t=qke.exec(e)||Jke.exec(e),n=t[1]/360,r=t[2]/100,i=t[3]/100,a=l2(t[4])?1:+t[4],o,s,c;if(r===0)o=s=c=i;else{let e=i<.5?i*(1+r):i+r-i*r,t=2*i-e;o=w2(U2(t,e,n+1/3)*255,0),s=w2(U2(t,e,n)*255,0),c=w2(U2(t,e,n-1/3)*255,0)}return[o,s,c,a]},bAe=e=>p2(e)?_Ae(e):f2(e)?vAe(e):m2(e)?yAe(e):[0,0,0,1],W2=(e,t)=>l2(e)?t:e,G2=(e,t,n,r,i)=>{if(c2(e)){let a=()=>{let i=e(t,n,r);return isNaN(+i)?i||0:+i};return i&&(i.func=a),a()}else return e},K2=(e,t)=>e[H0]?e[U0]&&gAe(e,t)?L0.ATTRIBUTE:Y0.includes(t)||J0.get(t)?L0.TRANSFORM:r2(t,`--`)?L0.CSS_VAR:t in e.style?L0.CSS:t in e?L0.OBJECT:L0.ATTRIBUTE:L0.OBJECT,q2=(e,t,n)=>{let r=e.style[t];r&&n&&(n[t]=r);let i=r||getComputedStyle(e[Uke]||e).getPropertyValue(t);return i===`auto`?`0`:i},J2=(e,t,n,r)=>{let i=l2(n)?K2(e,t):n;return i===L0.OBJECT?e[t]||0:i===L0.ATTRIBUTE?e.getAttribute(t):i===L0.TRANSFORM?mAe(e,t,r):i===L0.CSS_VAR?q2(e,t,r).trimStart():q2(e,t,r)},Y2=(e,t,n)=>n===`-`?e-t:n===`+`?e+t:e*t,X2=()=>({t:R0.NUMBER,n:0,u:null,o:null,d:null,s:null}),Z2=(e,t)=>{if(t.t=R0.NUMBER,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;let n=+e;if(isNaN(n)){let n=e;n[1]===`=`&&(t.o=n[0],n=n.slice(2));let r=n.includes(` `)?!1:Yke.exec(n);if(r)return t.t=R0.UNIT,t.n=+r[1],t.u=r[2],t;if(t.o)return t.n=+n,t;if(eAe(n))return t.t=R0.COLOR,t.d=bAe(n),t;{let e=n.match(Q0);return t.t=R0.COMPLEX,t.d=e?e.map(Number):[],t.s=n.split(Q0)||[],t}}else return t.n=n,t},Q2=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=k2(e._toNumbers),t.s=k2(e._strings),t),$2=X2(),e4={_rep:new WeakMap,_add:new Map},t4=(e,t,n=`_rep`)=>{let r=e4[n],i=r.get(e);return i||(i={},r.set(e,i)),i[t]?i[t]:i[t]={_head:null,_tail:null}},xAe=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,n4=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=G0,e._currentTime=G0},r4=(e,t)=>{let n=e._composition;if(n===B0.replace){let n=e._absoluteStartTime;M2(t,e,xAe,`_prevRep`,`_nextRep`);let r=e._prevRep;if(r){let t=r.parent,i=r._absoluteStartTime+r._changeDuration;if(e.parent.id!==t.id&&t.iterationCount>1&&i+(t.duration-t.iterationDuration)>n){n4(r);let e=r._prevRep;for(;e&&e.parent.id===t.id;)n4(e),e=e._prevRep}let a=n-e._delay;if(i>a){let e=r._startTime,t=i-(e+r._updateDuration),n=w2(a-t-e,12);r._changeDuration=n,r._currentTime=n,r._isOverlapped=1,n{e._isOverlapped||(o=!1)}),o){let e=t.parent;if(e){let n=!0;A2(e,e=>{e!==t&&A2(e,e=>{e._isOverlapped||(n=!1)})}),n&&e.cancel()}else t.cancel()}}}else if(n===B0.blend){let t=t4(e.target,e.property,`_add`),n=uAe(e4._add),r=t._head;r||(r={...e},r._composition=B0.replace,r._updateDuration=G0,r._startTime=0,r._numbers=k2(e._fromNumbers),r._number=0,r._next=null,r._prev=null,M2(t,r),M2(n,r));let i=e._toNumber;if(e._fromNumber=r._fromNumber-i,e._toNumber=0,e._numbers=k2(e._fromNumbers),e._number=0,r._fromNumber=i,e._toNumbers){let t=k2(e._toNumbers);t&&t.forEach((t,n)=>{e._fromNumbers[n]=r._fromNumbers[n]-t,e._toNumbers[n]=0}),r._fromNumbers=t}M2(t,e,null,`_prevAdd`,`_nextAdd`)}return e},i4=e=>{let t=e._composition;if(t!==B0.none){let n=e.target,r=e.property,i=e4._rep,a=i.get(n),o=a[r];if(j2(o,e,`_prevRep`,`_nextRep`),t===B0.blend){let t=e4._add,i=t.get(n);if(!i)return;let a=i[r],o=I2.animation;j2(a,e,`_prevAdd`,`_nextAdd`);let s=a._head;if(s&&s===a._tail){j2(a,s,`_prevAdd`,`_nextAdd`),j2(o,s);let e=!0;for(let t in i)if(i[t]._head){e=!1;break}e&&t.delete(n)}}}return e},a4=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),o4=e=>e._cancelled?(e._hasChildren?A2(e,o4):A2(e,e=>{e._composition!==B0.none&&r4(e,t4(e.target,e.property))}),e._cancelled=0,e):e;let SAe=0;var s4=class extends N2{constructor(e={},t=null,n=0){super(0);let{id:r,delay:i,duration:a,reversed:o,alternate:s,loop:c,loopDelay:l,autoplay:u,frameRate:d,playbackRate:f,onComplete:p,onLoop:m,onPause:h,onBegin:g,onBeforeUpdate:_,onUpdate:v}=e;e2.current&&e2.current.register(this);let y=t?0:R2._elapsedTime,b=t?t.defaults:t2.defaults,x=c2(i)||l2(i)?b.delay:+i,S=c2(a)||l2(a)?1/0:+a,C=W2(c,b.loop),w=W2(l,b.loopDelay),T=C===!0||C===1/0||C<0?1/0:C+1,E=0;t?E=n:(R2.reqId||R2.requestTick(i2()),E=(R2._elapsedTime-R2._startTime)*t2.timeScale),this.id=l2(r)?++SAe:r,this.parent=t,this.duration=D2((S+w)*T-w)||G0,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=g||b.onBegin,this.onBeforeUpdate=_||b.onBeforeUpdate,this.onUpdate=v||b.onUpdate,this.onLoop=m||b.onLoop,this.onPause=h||b.onPause,this.onComplete=p||b.onComplete,this.iterationDuration=S,this.iterationCount=T,this._autoplay=t?!1:W2(u,b.autoplay),this._offset=E,this._delay=x,this._loopDelay=w,this._iterationTime=0,this._currentIteration=0,this._resolve=Z0,this._running=!1,this._reversed=+W2(o,b.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=W2(s,b.alternate),this._prev=null,this._next=null,this._elapsedTime=y,this._startTime=y,this._lastTime=y,this._fps=W2(d,b.frameRate),this._speed=W2(f,b.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(1).play()}get currentTime(){return S2(w2(this._currentTime,t2.precision),-this._delay,this.duration)}set currentTime(e){let t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return w2(this._iterationTime,t2.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return S2(w2(this._currentTime/this.duration,10),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return S2(w2(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(e){let t=this.iterationDuration;this.currentTime=t*this._currentIteration+t*e}get currentIteration(){return this._currentIteration}set currentIteration(e){this.currentTime=this.iterationDuration*S2(+e,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(e){e?this.reverse():this.play()}get speed(){return super.speed}set speed(e){super.speed=e,this.resetTime()}reset(e=0){return o4(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,F2(this,0,1,e,z0.FORCE),a4(this),this._hasChildren&&A2(this,a4),this}init(e=0){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&F2(this,this.duration,1,e,z0.FORCE),this.reset(e);let t=this._autoplay;return t===!0?this.resume():t&&!l2(t.linked)&&t.link(this),this}resetTime(){let e=1/(this._speed*R2._speed);return this._startTime=i2()-(this._currentTime+this._delay)*e,this}pause(){return this.paused?this:(this.paused=!0,this.onPause(this),this)}resume(){return this.paused?(this.paused=!1,this.duration<=G0&&!this._hasChildren?F2(this,G0,0,0,z0.FORCE):(this._running||=(M2(R2,this),R2._hasChildren=!0,!0),this.resetTime(),this._startTime-=12,R2.wake()),this):this}restart(){return this.reset(0).resume()}seek(e,t=0,n=0){o4(this),this.completed=!1;let r=this.paused;return this.paused=!0,F2(this,e+this._delay,~~t,~~n,z0.AUTO),r?this:this.resume()}alternate(){let e=this._reversed,t=this.iterationCount,n=this.iterationDuration,r=t===1/0?y2(K0/n):t;return this._reversed=+(this._alternate&&!(r%2)?e:!e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(n*r-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?A2(this,e=>e.cancel(),!0):A2(this,i4),this._cancelled=1,this.pause()}stretch(e){let t=this.duration,n=O2(e);if(t===n)return this;let r=e/t,i=e<=G0;return this.duration=i?G0:n,this.iterationDuration=i?G0:O2(this.iterationDuration*r),this._offset*=r,this._delay*=r,this._loopDelay*=r,this}revert(){F2(this,0,1,0,z0.AUTO);let e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(){return this.seek(this.duration).cancel()}then(e=Z0){let t=this.then,n=()=>{this.then=null,e(this),this.then=t,this._resolve=Z0};return new Promise(e=>(this._resolve=()=>e(n()),this.completed&&this._resolve(),this))}};const c4=e=>e,l4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,CAe=(e,t,n)=>{let r=0,i=1,a,o,s=0;do o=r+(i-r)/2,a=l4(o,t,n)-e,a>0?i=o:r=o;while(v2(a)>1e-7&&++s<100);return o},wAe=(e=.5,t=0,n=.5,r=1)=>e===t&&n===r?c4:i=>i===0||i===1?i:l4(CAe(i,e,n),t,r),TAe=(e=10,t)=>{let n=t?iAe:y2;return t=>n(S2(t,0,1)*e)*(1/e)},u4=(...e)=>{let t=e.length;if(!t)return c4;let n=t-1,r=e[0],i=e[n],a=[0],o=[g2(r)];for(let t=1;t{let n=[0],r=e-1;for(let e=1;et=>_2(t,+e),p4={"":f4,Quad:f4(2),Cubic:f4(3),Quart:f4(4),Quint:f4(5),Sine:e=>1-rAe(e*DAe),Circ:e=>1-tAe(1-e*e),Expo:e=>e?_2(2,10*e-10):0,Bounce:e=>{let t,n=4;for(;e<((t=_2(2,--n))-1)/11;);return 1/_2(4,3-n)-7.5625*_2((t*3-2)/22-e,2)},Back:(e=1.70158)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{let n=S2(+e,1,10),r=S2(+t,G0,2),i=r/d4*aAe(1/n),a=d4/r;return e=>e===0||e===1?e:-n*_2(2,-10*(1-e))*nAe((1-e-i)*a)}},m4={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(t*2)/2:1-e(t*-2+2)/2,outIn:e=>t=>t<.5?(1-e(1-t*2))/2:(e(t*2-1)+1)/2},OAe=(e,t,n)=>{if(n[e])return n[e];if(e.indexOf(`(`)<=-1){let r=m4[e]||e.includes(`Back`)||e.includes(`Elastic`),i=r?t[e]():t[e];return i?n[e]=i:c4}else{let r=e.slice(0,-1).split(`(`),i=t[r[0]];return i?n[e]=i(...r[1].split(`,`)):c4}},kAe=(()=>{let e={linear:u4,irregular:EAe,steps:TAe,cubicBezier:wAe};for(let t in m4)for(let n in p4){let r=p4[n],i=m4[t];e[t+n]=n===``||n===`Back`||n===`Elastic`?(e,t)=>i(r(e,t)):i(r)}return e})(),AAe={linear:c4},h4=e=>c2(e)?e:s2(e)?OAe(e,kAe,AAe):c4,g4={},_4=(e,t,n)=>{if(n===L0.TRANSFORM){let t=J0.get(e);return t||e}else if(n===L0.CSS||n===L0.ATTRIBUTE&&d2(t)&&e in t.style){let t=g4[e];if(t)return t;{let t=e&&Qke(e);return g4[e]=t,t}}else return e},v4={deg:1,rad:180/b2,turn:360},y4={},b4=(e,t,n,r=!1)=>{let i=t.u,a=t.n;if(t.t===R0.UNIT&&i===n)return t;let o=a+i+n,s=y4[o];if(!l2(s)&&!r)t.n=s;else{let r;if(i in v4)r=a*v4[i]/v4[n];else{let t=e.cloneNode(),o=e.parentNode,s=o&&o!==I0?o:I0.body;s.appendChild(t);let c=t.style;c.width=100+i;let l=t.offsetWidth||100;c.width=100+n;let u=t.offsetWidth||100,d=l/u;s.removeChild(t),r=d*a}t.n=r,y4[o]=r}return t.t,R0.UNIT,t.u=n,t},x4=e=>{if(e._hasChildren)A2(e,x4,!0);else{let t=e;t.pause(),A2(t,e=>{let n=e.property,r=e.target;if(r[H0]){let i=r.style,a=t._inlineStyles[n];if(e._tweenType===L0.TRANSFORM){let t=r[W0];if(l2(a)||a===``?delete t[n]:t[n]=a,e._renderTransforms)if(!Object.keys(t).length)i.removeProperty(`transform`);else{let e=``;for(let n in t)e+=X0[n]+t[n]+`) `;i.transform=e}}else l2(a)||a===``?i.removeProperty(n):i[n]=a;t._tail===e&&t.targets.forEach(e=>{e.getAttribute&&e.getAttribute(`style`)===``&&e.removeAttribute(`style`)})}})}return e},S4=X2(),C4=X2(),w4={func:null},T4=[null],E4=[null,null],D4={to:null};let jAe=0,O4,k4;const MAe=(e,t)=>{let n={};if(a2(e)){let t=[].concat(...e.map(e=>Object.keys(e))).filter(h2);for(let r=0,i=t.length;r{let t={};for(let n in e){let r=e[n];h2(n)?n===i&&(t.to=r):t[n]=r}return t});n[i]=a}}else{let r=W2(t.duration,t2.defaults.duration),i=Object.keys(e).map(t=>({o:parseFloat(t)/100,p:e[t]})).sort((e,t)=>e.o-t.o);for(let e in i.forEach(e=>{let t=e.o,i=e.p;for(let e in i)if(h2(e)){let a=n[e];a||=n[e]=[];let o=t*r,s=a.length,c=a[s-1],l={to:i[e]},u=0;for(let e=0;e=q0?B0.none:l2(g)?v.composition:g,D={},O=this._offset+(n?n._offset:0),k=NaN,A=NaN,j=0,M=0;for(let e=0;e2&&t?(O4=[],s.forEach((e,t)=>{t?t===1?(E4[1]=e,O4.push(E4)):O4.push(e):E4[0]=e})):O4=s}else T4[0]=s,O4=T4;let p=null,m=null,h=NaN,g=0,_=0;for(let e=O4.length;_1?G2(C,t,r,l)/e:C),t,r,l),b=G2(W2(k4.delay,_?0:w),t,r,l),x=G2(W2(k4.composition,E),t,r,l),k=$ke(x)?x:B0[x],A=k4.modifier||T,ee=!l2(u),te=!l2(c),N=a2(c),ne=N||ee&&te,re=m?g+b:b,ie=w2(O+re,12);!M&&(ee||N)&&(M=1);let ae=m;if(k!==B0.none){p||=t4(t,o);let e=p._head;for(;e&&!e._isOverridden&&e._absoluteStartTime<=ie;)if(ae=e,e=e._nextRep,e&&e._absoluteStartTime>=ie)for(;e;)n4(e),e=e._nextRep}if(ne?(Z2(N?G2(c[0],t,r,l):u,S4),Z2(N?G2(c[1],t,r,l,w4):c,C4),S4.t===R0.NUMBER&&(ae?ae._valueType===R0.UNIT&&(S4.t=R0.UNIT,S4.u=ae._unit):(Z2(J2(t,o,a,D),$2),$2.t===R0.UNIT&&(S4.t=R0.UNIT,S4.u=$2.u)))):(te?Z2(c,C4):m?Q2(m,C4):Z2(n&&ae&&ae.parent.parent===n?ae._value:J2(t,o,a,D),C4),ee?Z2(u,S4):m?Q2(m,S4):Z2(n&&ae&&ae.parent.parent===n?ae._value:J2(t,o,a,D),S4)),S4.o&&(S4.n=Y2(ae?ae._toNumber:Z2(J2(t,o,a,D),$2).n,S4.n,S4.o)),C4.o&&(C4.n=Y2(S4.n,C4.n,C4.o)),S4.t!==C4.t){if(S4.t===R0.COMPLEX||C4.t===R0.COMPLEX){let e=S4.t===R0.COMPLEX?S4:C4,t=S4.t===R0.COMPLEX?C4:S4;t.t=R0.COMPLEX,t.s=k2(e.s),t.d=e.d.map(()=>t.n)}else if(S4.t===R0.UNIT||C4.t===R0.UNIT){let e=S4.t===R0.UNIT?S4:C4,t=S4.t===R0.UNIT?C4:S4;t.t=R0.UNIT,t.u=e.u}else if(S4.t===R0.COLOR||C4.t===R0.COLOR){let e=S4.t===R0.COLOR?S4:C4,t=S4.t===R0.COLOR?C4:S4;t.t=R0.COLOR,t.s=e.s,t.d=[0,0,0,1]}}if(S4.u!==C4.u){let e=C4.u?S4:C4;e=b4(t,e,C4.u?C4.u:S4.u,!1)}if(C4.d&&S4.d&&C4.d.length!==S4.d.length){let e=S4.d.length>C4.d.length?S4:C4,t=e===S4?C4:S4;t.d=e.d.map((e,n)=>l2(t.d[n])?0:t.d[n]),t.s=k2(e.s)}let oe=w2(+y||G0,12),se={parent:this,id:jAe++,property:o,target:t,_value:null,_func:w4.func,_ease:h4(v),_fromNumbers:k2(S4.d),_toNumbers:k2(C4.d),_strings:k2(C4.s),_fromNumber:S4.n,_toNumber:C4.n,_numbers:k2(S4.d),_number:S4.n,_unit:C4.u,_modifier:A,_currentTime:0,_startTime:re,_delay:+b,_updateDuration:oe,_changeDuration:oe,_absoluteStartTime:ie,_tweenType:a,_valueType:C4.t,_composition:k,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};k!==B0.none&&r4(se,p),isNaN(h)&&(h=se._startTime),g=w2(re+oe,12),m=se,j++,M2(this,se)}(isNaN(A)||hk)&&(k=g),a===L0.TRANSFORM&&(d=j-_,f=j)}if(!isNaN(d)){let e=0;A2(this,t=>{e>=d&&e{e.id===t.id&&(e._renderTransforms=1)})),e++})}}c||console.warn(`No target found. Make sure the element you're trying to animate is accessible before creating your animation.`),A?(A2(this,e=>{e._startTime-e._delay||(e._delay-=A),e._startTime-=A}),k-=A):A=0,k||(k=G0,this.iterationCount=0),this.targets=s,this.duration=k===G0?G0:D2((k+this._loopDelay)*this.iterationCount-this._loopDelay)||G0,this.onRender=_||v.onRender,this._ease=b,this._delay=A,this.iterationDuration=k,this._inlineStyles=D,!this._autoplay&&M&&this.onRender(this)}stretch(e){let t=this.duration;if(t===O2(e))return this;let n=e/t;return A2(this,e=>{e._updateDuration=O2(e._updateDuration*n),e._changeDuration=O2(e._changeDuration*n),e._currentTime*=n,e._startTime*=n,e._absoluteStartTime*=n}),super.stretch(e)}refresh(){return A2(this,e=>{let t=e._func;if(t){let n=J2(e.target,e.property,e._tweenType);Z2(n,$2),Z2(t(),C4),e._fromNumbers=k2($2.d),e._fromNumber=$2.n,e._toNumbers=k2(C4.d),e._strings=k2(C4.s),e._toNumber=C4.o?Y2($2.n,C4.n,C4.o):C4.n}}),this}revert(){return super.revert(),x4(this)}then(e){return super.then(e)}};const NAe=(e,t)=>new A4(e,t,null,0,!1).init(),PAe=[`x`,`y`,`z`];[...PAe];const j4={_head:null,_tail:null},FAe=(e,t,n)=>{let r=j4._head;for(;r;){let i=r._next,a=r.$el===e,o=!t||r.property===t,s=!n||r.parent===n;if(a&&o&&s){let e=r.animation;try{e.commitStyles()}catch{}e.cancel(),j2(j4,r);let t=r.parent;t&&(t._completed++,t.animations.length===t._completed&&(t.completed=!0,t.muteCallbacks||(t.paused=!0,t.onComplete(t),t._resolve(t))))}r=i}},IAe=(e=Z0)=>new s4({duration:1*t2.timeScale,onComplete:e},null,0).resume();function LAe(e,t,n){let r=H2(e);if(!r.length)return;let[i]=r,a=K2(i,t),o=_4(t,i,a),s=J2(i,o);if(l2(n))return s;if(Z2(s,$2),$2.t===R0.NUMBER||$2.t===R0.UNIT){if(n===!1)return $2.n;{let e=b4(i,$2,n,!1);return`${w2(e.n,t2.precision)}${e.u}`}}}const RAe=(e,t)=>{if(!l2(t))return t.duration=G0,t.composition=W2(t.composition,B0.none),new A4(e,t,null,0,!0).resume()},M4=(e,t,n)=>{let r=!1;return A2(t,i=>{let a=i.target;if(e.includes(a)){let e=i.property,o=i._tweenType,s=_4(n,a,o);(!s||s&&s===e)&&(i.parent._tail===i&&i._tweenType===L0.TRANSFORM&&i._prev&&i._prev._tweenType===L0.TRANSFORM&&(i._prev._renderTransforms=1),j2(t,i),i4(i),r=!0)}},!0),r},N4=(e,t,n)=>{let r=V2(e),i=t||R2,a=t&&t.controlAnimation&&t;for(let e=0,t=r.length;e{if(!a._hasChildren)if(o=M4(r,a,n),o&&!a._head)a.cancel(),j2(i,a);else{let e=a._offset+a._delay,n=e+a.duration;n>t&&(t=n)}a._head?N4(e,a,n):a._hasChildren=!1},!0),l2(i.iterationDuration)||(i.iterationDuration=t)}else o=M4(r,i,n);return o&&!i._head&&(i._hasChildren=!1,i.cancel&&i.cancel()),r},zAe=lAe,BAe=e=>e[E2(0,e.length-1)],VAe=(e,t)=>(+e).toFixed(t),HAe=(e,t,n)=>`${e}`.padStart(t,n),UAe=(e,t,n)=>`${e}`.padEnd(t,n),WAe=(e,t,n)=>((e-t)%(n-t)+(n-t))%(n-t)+t,GAe=(e,t,n,r,i)=>r+(e-t)/(n-t)*(i-r),KAe=e=>e*b2/180,qAe=e=>e*180/b2,JAe=(e,t,n,r)=>{let i=q0/t2.defaults.frameRate;if(r!==!1){let e=r||R2._hasChildren&&R2;e&&e.deltaTime&&(i=e.deltaTime)}let a=1-Math.exp(-n*i*.1);return n?n===1?t:(1-a)*e+a*t:e},YAe=(e,t=0)=>(...n)=>t?t=>e(...n,t):t=>e(t,...n),P4=e=>(...t)=>{let n=e(...t);return new Proxy(Z0,{apply:(e,t,[r])=>n(r),get:(e,t)=>P4((...e)=>{let r=XAe[t](...e);return e=>r(n(e))})})},F4=(e,t=0)=>(...n)=>(n.lengthnew Promise(t=>setTimeout(t,e));function L4(e){let t=[],n={enqueue:[],dequeue:[],process:[],error:[],result:[],drain:[]},r={};function i(e,t){n[e].push(t)}function a(e,...t){let r=n[e];r.forEach(e=>e(...t))}function o(e,t){r[e]=r[e]||[],r[e].push(t)}function s(e,...t){let n=r[e]||[];n.forEach(e=>e(...t))}function c(e){t.push(e),a(`enqueue`,e,t.length),u()}function l(){t.length=0}async function u(){for(;t.length>0;){let n=t.shift();a(`dequeue`,n,t.length);for(let t of e.handlers){a(`process`,n,t);try{let e=await t({data:n,emit:s});a(`result`,n,e,t)}catch(e){a(`error`,n,e,t);continue}}}a(`drain`)}function d(){return t.length}return{enqueue:c,clear:l,length:d,on:i,onHandlerEvent:o}}function ZAe(){let e,t=new ReadableStream({start(t){e=t}});return{stream:t,controller:e}}function R4(e,t){if(e?.aborted){t?.();let n=Error(`Operation canceled`);throw n.name=e?.reason,n}}function QAe(e,t){let n=new Intl.Segmenter(void 0,{granularity:`grapheme`}),r=new TextDecoder(`utf-8`,{fatal:!1}),i=t?.signal;return async function*(){let t=``;for(;;){R4(i,e.close);let{done:a,value:o}=await new Promise((t,n)=>{i?.addEventListener(`abort`,()=>{e.close?.();let t=Error(`Operation canceled`);t.name=i.reason,n(t)},{once:!0}),Promise.resolve(e.read()).then(t).catch(n)});t+=r.decode(o,{stream:!0});let s=n.segment(t);if(a){for(let t of s)R4(i,e.close),yield t.segment;return}let c=s[Symbol.iterator](),l=0,u=c.next();for(;!u.done;){R4(i,e.close);let t=c.next();if(t.done)break;l=t.value.index,yield u.value.segment,u=t}a||(t=t.slice(l))}}()}const $Ae=`​`,eje=new Set(`??!!`),tje=new Set(`.。??!!…⋯~~ + \r`),nje=new Set(`,,、–—::;;《》「」`);async function*z4(e,t){let{boost:n=2,minimumWords:r=4,maximumWords:i=12}=t??{},a=QAe(typeof e==`string`?new ReadableStream({start(t){t.enqueue(new TextEncoder().encode(e)),t.close()}}).getReader():e),o=new Intl.Segmenter(void 0,{granularity:`word`}),s=0,c=``,l=``,u=0,d,f=await a.next();for(;!f.done;){let e=f.value;if(e.length>1){d=e,f=await a.next();continue}let t=e===`​`,p=tje.has(e),m=nje.has(e),h=eje.has(e),g,_;if(t||p||m){switch(e){case`.`:case`,`:if(d!==void 0&&/\d/.test(d)){if(g=await a.next(),!g.done&&g.value&&/\d/.test(g.value)){c+=e,f=g,g=void 0;continue}}else e===`.`&&(g=await a.next(),!g.done&&g.value&&g.value===`.`&&(_=await a.next(),!_.done&&_.value&&_.value===`.`&&(e=`…`,g=void 0,_=void 0)))}if(c.length===0){d=e,f=await a.next();continue}let m=[...o.segment(c)].filter(e=>e.isWordLike);if(u>r&&u+m.length>i){let t=h?l.trim()+e:l.trim();yield{text:t,words:u,reason:`limit`},s++,l=``,u=0}if(l+=c+e,u+=m.length,c=``,t||p||u>i||si?`limit`:`boost`},s++,l=``,u=0}d=e,g===void 0?f=await a.next():_===void 0?(f=g,g=void 0):(f=_,g=void 0,_=void 0);continue}c+=e,d=e,g=await a.next(),f=g}if(console.debug(`while loop ends, chunk/buffer:`,l,c),l.length>0||c.length>0){let e=(l+c).trim();yield{text:e,words:u+[...o.segment(c)].filter(e=>e.isWordLike).length,reason:`flush`}}}async function rje(e,t){try{for await(let n of z4(e))console.debug(`chunk to be pushed: `,n),t.enqueue(n.text)}catch(e){console.error(`Error chunking stream to TTS queue:`,e)}}function ije(e){function t(e){for(let t of UR){if(!e.includes(t))continue;return{ok:!0,emotion:t}}return{ok:!1,emotion:``}}return L4({handlers:[async n=>{if(UR.includes(n.data)){n.emit(`emotion`,n.data),e.enqueue(n.data);return}{let{ok:r,emotion:i}=t(n.data);r&&(n.emit(`emotion`,i),e.enqueue(i))}}]})}function aje(){function e(e){if(!/<\|DELAY:\d+\|>/i.test(e))return{ok:!1,delay:0};let t=/<\|DELAY:(\d+)\|>/i.exec(e),n=t?.[1];if(!n)return{ok:!1,delay:0};let r=Number.parseFloat(n);return r<=0||Number.isNaN(r)?{ok:!0,delay:0}:{ok:!0,delay:r}}return L4({handlers:[async t=>{let{ok:n,delay:r}=e(t.data);n&&(t.emit(`delay`,r),await I4(r*1e3))}]})}function B4(e){let t=new TextEncoder,{stream:n,controller:r}=ZAe();return rje(n.getReader(),e),L4({handlers:[async e=>{r.enqueue(t.encode(e.data))}]})}function oje(e){let t=new Uint8Array(e.frequencyBinCount);e.getByteFrequencyData(t);let n=[];for(let e=0;e<700;e+=80)n.push(t[e]);let r=t.map(e=>e**1.2).map(e=>e*1.2).reduce((e,t)=>e+t,0);return r/t.length/100}function sje(e){let t=new Uint8Array(e.frequencyBinCount);e.getByteFrequencyData(t);let n=[];for(let e=0;e<700;e+=80)n.push(t[e]);let r=t.map(e=>e**1.5),i=Math.min(...r),a=Math.max(...r),o=a-i,s;s=o===0?r.map(()=>0):r.map(e=>(e-i)/o);let c=s.reduce((e,t)=>e+t,0);return c/t.length}function cje(e,t=`linear`){switch(t){case`linear`:return oje(e);case`minmax`:return sje(e)}}const V4=VO(`audio-context`,()=>{let e=F(new AudioContext);return gi(async()=>{e&&await e.value.close()}),{audioContext:e,calculateVolume:cje}});function lje(e=!1){let t=cE({constraints:{audio:!0},requestPermissions:e}),n=U(()=>t.audioInputs.value),r=F(t.audioInputs.value.find(e=>e.deviceId===`default`)?.deviceId||``),i=U(()=>({audio:{deviceId:{exact:r.value},autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0}})),{stream:a,stop:o,start:s}=yE({constraints:i,enabled:!1,autoSwitch:!0});Ha(n,()=>{!r.value&&n.value.length>0&&(r.value=n.value.find(e=>e.deviceId===`default`)?.deviceId||n.value[0].deviceId)});function c(){t.ensurePermissions().then(()=>Gn()).then(()=>{n.value.length>0&&!r.value&&(r.value=n.value.find(e=>e.deviceId===`default`)?.deviceId||n.value[0].deviceId)}).catch(e=>{console.error(`Error ensuring permissions:`,e)})}return fi(()=>{e&&c()}),{audioInputs:n,selectedAudioInput:r,stream:a,deviceConstraints:i,askPermission:c,startStream:s,stopStream:o}}const uje=VO(`character-speaking`,()=>{let e=F(0),t=F(!1),n=U(()=>t.value?(30+70*e.value)/100:30);return{mouthOpenSize:e,nowSpeaking:t,nowSpeakingAvatarBorderOpacity:n}}),dje={flex:`~ row`,"gap-4":``},fje={flex:`~ col gap-2 items-start`,"py-4":``},pje={"ml-1":``},mje={key:0,tag:`div`,flex:`~ row items-center gap-1`,"text-sm":``};var hje=R({__name:`SpeechStreamingPlayground`,props:{text:{},generateSpeech:{type:Function},voice:{}},setup(e){let t=e,{audioContext:n}=V4(),r=F(!1),i=F([]),a=F(-1),o=L4({handlers:[e=>new Promise(t=>{let i=n.createBufferSource();i.buffer=e.data.audioBuffer,i.connect(n.destination),r.value=!0,i.start(0),i.onended=()=>{r.value=!1,t()}})]});async function s(e){a.value++;try{let r=e.data,i=await t.generateSpeech(r,t.voice,!1),a=await n.decodeAudioData(i);o.enqueue({audioBuffer:a,text:e.data})}catch(e){console.error(`Speech generation failed:`,e)}}let c=L4({handlers:[s]}),l=B4(c);async function u(){l.enqueue(t.text)}async function d(){let e=[],n=new ReadableStream({start(e){e.enqueue(new TextEncoder().encode(t.text)),e.close()}});for await(let t of z4(n.getReader(),{boost:1,minimumWords:4,maximumWords:12}))e.push(t);i.value=e}return(e,t)=>(z(),B(bo,null,[t[4]||=V(`div`,{class:`flex items-center gap-1 text-sm font-medium`},` Streaming Playground `,-1),V(`div`,dje,[V(`button`,{border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,bg:`neutral-700 dark:neutral-300`,onClick:d},[...t[1]||=[V(`div`,{flex:`~ row`,"items-center":``,"gap-2":``},[V(`div`,{"i-solar:round-double-alt-arrow-right-bold-duotone":``}),V(`span`,null,`Test chunking`)],-1)]]),i.value.length>0?(z(),B(`button`,{key:0,border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,bg:`neutral-700 dark:neutral-300`,onClick:u},[...t[2]||=[V(`div`,{flex:`~ row`,"items-center":``,"gap-2":``},[V(`div`,{"i-solar:round-double-alt-arrow-right-bold-duotone":``}),V(`span`,null,`Test streaming`)],-1)]])):zo(``,!0)]),V(`div`,fje,[(z(!0),B(bo,null,Oi(i.value,(e,n)=>(z(),B(`div`,{key:n,flex:`~ row gap-2 items-center`},[V(`div`,{flex:`~ row gap-2 items-center`,"rounded-xl":``,"px-2":``,"py-1.5":``,class:Te({"bg-neutral-100 dark:bg-neutral-800":a.value=n})},[V(`span`,pje,Pe(e.text),1),V(`span`,{"rounded-full":``,"px-2":``,"py-.5":``,"text-nowrap":``,"text-xs":``,b:`~ dashed`,class:Te({"b-green text-green":e.reason===`boost`,"b-orange text-orange":e.reason===`limit`,"b-red text-red":e.reason===`hard`,"b-purple text-purple":e.reason===`flush`})},Pe(e.words)+` words, `+Pe(e.reason),3)],2),H(Fs,{css:!1,onEnter:t[0]||=e=>I(NAe)(e,{opacity:[0,1],translateX:[10,0],duration:200,ease:`inOut`})},{default:L(()=>[a.value>=n?(z(),B(`div`,mje,[...t[3]||=[V(`div`,{"i-solar-check-circle-line-duotone":``},null,-1),V(`div`,null,`Queued`,-1)]])):zo(``,!0)]),_:2},1024)]))),128))])],64))}}),gje=hje;const _je={"w-full":``,"rounded-xl":``},vje={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},yje={class:`inline-flex items-center gap-4`},bje={flex:`~ col gap-4`},xje=[`placeholder`],Sje=[`placeholder`],Cje={flex:`~ row`,"gap-4":``},wje=[`disabled`],Tje={flex:`~ row`,"items-center":``,"gap-2":``},Eje={flex:`~ row`,"items-center":``,"gap-2":``},Dje={key:2,class:`mt-2 text-sm text-red-500`},Oje={key:3,class:`mt-2 text-sm text-red-500`},kje={key:4,class:`mt-2 text-sm text-red-500`},Aje=[`src`];var jje=R({__name:`SpeechPlayground`,props:{defaultText:{},availableVoices:{},generateSpeech:{type:Function},apiKeyConfigured:{type:Boolean}},setup(e,{expose:t}){let n=e,{t:r}=K1(),i=F(n.defaultText||`Hello! This is a test of the voice synthesis.`),a=F(!1),o=F(``),s=F(``),c=F(null),l=F(!1),u=F(``),d=F(``);Ha(()=>n.availableVoices,e=>{e.length>0&&!d.value&&(d.value=e[0]?.id||``)},{immediate:!0});let f=U(()=>n.availableVoices.map(e=>({value:e.id,label:e.name})));async function p(){if(!(!i.value.trim()&&!l.value||l.value&&!u.value.trim()||!d.value)){a.value=!0,s.value=``;try{o.value&&m();let e=l.value?u.value:i.value,t=await n.generateSpeech(e,d.value,l.value);o.value=URL.createObjectURL(new Blob([t])),setTimeout(()=>{c.value&&c.value.play()},100)}catch(e){console.error(`Error generating speech:`,e),s.value=e instanceof Error?e.message:`An unknown error occurred`}finally{a.value=!1}}}function m(){c.value&&(c.value.pause(),c.value.currentTime=0),o.value&&=(URL.revokeObjectURL(o.value),``)}return gi(()=>{o.value&&URL.revokeObjectURL(o.value)}),t({testText:i,ssmlText:u,useSSML:l,selectedVoice:d,isGenerating:a,audioUrl:o,errorMessage:s,audioPlayer:c,generateTestSpeech:p,stopTestAudio:m}),(e,t)=>(z(),B(`div`,_je,[V(`h2`,vje,[V(`div`,yje,[H(I(OR)),V(`div`,null,Pe(I(r)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),V(`div`,bje,[H(I(bM),{modelValue:l.value,"onUpdate:modelValue":t[0]||=e=>l.value=e,label:I(r)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.label`),description:I(r)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.description`)},null,8,[`modelValue`,`label`,`description`]),l.value?cr((z(),B(`textarea`,{key:1,"onUpdate:modelValue":t[2]||=e=>u.value=e,placeholder:I(r)(`settings.pages.modules.speech.sections.section.voice-settings.input-ssml.placeholder`),border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-48":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"font-mono":``,"outline-none":``},null,8,Sje)),[[Rc,u.value]]):cr((z(),B(`textarea`,{key:0,"onUpdate:modelValue":t[1]||=e=>i.value=e,placeholder:I(r)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.input.placeholder`),border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-24":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"outline-none":``},null,8,xje)),[[Rc,i.value]]),H(I(TM),{modelValue:d.value,"onUpdate:modelValue":t[3]||=e=>d.value=e,class:`[&>div]:grid [&>div]:grid-cols-[4fr_2fr]`,options:f.value,label:I(r)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.voice.label`),description:I(r)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.voice.description`),layout:`horizontal`},null,8,[`modelValue`,`options`,`label`,`description`]),V(`div`,Cje,[V(`button`,{border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,disabled:a.value||!i.value.trim()&&!l.value||l.value&&!u.value.trim()||!d.value||!e.apiKeyConfigured,class:Te({"opacity-50 cursor-not-allowed":a.value||!i.value.trim()&&!l.value||l.value&&!u.value.trim()||!d.value||!e.apiKeyConfigured}),bg:`neutral-700 dark:neutral-300`,onClick:p},[V(`div`,Tje,[t[4]||=V(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),V(`span`,null,Pe(a.value?I(r)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):I(r)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,wje),o.value?(z(),B(`button`,{key:0,border:`primary-300 dark:primary-800 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,"py-2":``,"text-sm":``,onClick:m},[V(`div`,Eje,[t[5]||=V(`div`,{"i-solar:stop-circle-bold-duotone":``},null,-1),V(`span`,null,Pe(I(r)(`settings.pages.modules.speech.sections.section.playground.buttons.stop.label`)),1)])])):zo(``,!0)]),e.apiKeyConfigured?zo(``,!0):(z(),B(`div`,Dje,Pe(I(r)(`settings.pages.providers.provider.elevenlabs.playground.validation.error-missing-api-key`)),1)),d.value?zo(``,!0):(z(),B(`div`,Oje,Pe(I(r)(`settings.pages.modules.speech.sections.section.playground.select-voice.required`)),1)),s.value?(z(),B(`div`,kje,Pe(s.value),1)):zo(``,!0),o.value?(z(),B(`audio`,{key:5,ref_key:`audioPlayer`,ref:c,src:o.value,controls:``,class:`mt-2 w-full`},null,8,Aje)):zo(``,!0),H(gje,{text:i.value,voice:d.value,"generate-speech":e.generateSpeech},null,8,[`text`,`voice`,`generate-speech`])]),Ai(e.$slots,`default`)]))}}),Mje=jje;const Nje={"w-full":``,"rounded-xl":``},Pje={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},Fje={class:`inline-flex items-center gap-4`},Ije={flex:`~ col gap-4`},Lje=[`placeholder`],Rje=[`placeholder`],zje={flex:`~ row`,"gap-4":``},Bje=[`disabled`],Vje={flex:`~ row`,"items-center":``,"gap-2":``},Hje={flex:`~ row`,"items-center":``,"gap-2":``},Uje={key:2,class:`mt-2 text-sm text-red-500`},Wje={key:3,class:`mt-2 text-sm text-red-500`},Gje=[`src`];var Kje=R({__name:`SpeechPlaygroundOpenAICompatible`,props:{defaultText:{},modelValue:{},voice:{},generateSpeech:{type:Function},apiKeyConfigured:{type:Boolean}},emits:[`update:modelValue`,`update:voice`],setup(e,{expose:t,emit:n}){let r=e,i=n,{t:a}=K1(),o=U({get:()=>r.modelValue,set:e=>i(`update:modelValue`,e)}),s=U({get:()=>r.voice,set:e=>i(`update:voice`,e)}),c=F(r.defaultText||`Hello! This is a test of the voice synthesis.`),l=F(!1),u=F(``),d=F(``),f=F(null),p=F(!1),m=F(``);async function h(){if(!(!c.value.trim()&&!p.value||p.value&&!m.value.trim())){l.value=!0,d.value=``;try{u.value&&g();let e=p.value?m.value:c.value,t=await r.generateSpeech(e,s.value,p.value,o.value);u.value=URL.createObjectURL(new Blob([t])),setTimeout(()=>{f.value&&f.value.play()},100)}catch(e){console.error(`Error generating speech:`,e),d.value=e instanceof Error?e.message:`An unknown error occurred`}finally{l.value=!1}}}function g(){f.value&&(f.value.pause(),f.value.currentTime=0),u.value&&=(URL.revokeObjectURL(u.value),``)}return gi(()=>{u.value&&URL.revokeObjectURL(u.value)}),t({testText:c,ssmlText:m,useSSML:p,isGenerating:l,audioUrl:u,errorMessage:d,audioPlayer:f,generateTestSpeech:h,stopTestAudio:g}),(e,t)=>{let n=Si(`SpeechStreamingPlayground`);return z(),B(`div`,Nje,[V(`h2`,Pje,[V(`div`,Fje,[H(I(OR)),V(`div`,null,Pe(I(a)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),V(`div`,Ije,[H(I(SM),{modelValue:o.value,"onUpdate:modelValue":t[0]||=e=>o.value=e,label:`Model ID`,placeholder:`tts-1`},null,8,[`modelValue`]),H(I(SM),{modelValue:s.value,"onUpdate:modelValue":t[1]||=e=>s.value=e,label:`Voice`,placeholder:`alloy`},null,8,[`modelValue`]),H(I(bM),{modelValue:p.value,"onUpdate:modelValue":t[2]||=e=>p.value=e,label:I(a)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.label`),description:I(a)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.description`)},null,8,[`modelValue`,`label`,`description`]),p.value?cr((z(),B(`textarea`,{key:1,"onUpdate:modelValue":t[4]||=e=>m.value=e,placeholder:I(a)(`settings.pages.modules.speech.sections.section.voice-settings.input-ssml.placeholder`),border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-48":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"font-mono":``,"outline-none":``},null,8,Rje)),[[Rc,m.value]]):cr((z(),B(`textarea`,{key:0,"onUpdate:modelValue":t[3]||=e=>c.value=e,placeholder:I(a)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.input.placeholder`),border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-24":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"outline-none":``},null,8,Lje)),[[Rc,c.value]]),V(`div`,zje,[V(`button`,{border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,disabled:l.value||!c.value.trim()&&!p.value||p.value&&!m.value.trim()||!e.apiKeyConfigured,class:Te({"opacity-50 cursor-not-allowed":l.value||!c.value.trim()&&!p.value||p.value&&!m.value.trim()||!e.apiKeyConfigured}),bg:`neutral-700 dark:neutral-300`,onClick:h},[V(`div`,Vje,[t[5]||=V(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),V(`span`,null,Pe(l.value?I(a)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):I(a)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,Bje),u.value?(z(),B(`button`,{key:0,border:`primary-300 dark:primary-800 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,"py-2":``,"text-sm":``,onClick:g},[V(`div`,Hje,[t[6]||=V(`div`,{"i-solar:stop-circle-bold-duotone":``},null,-1),V(`span`,null,Pe(I(a)(`settings.pages.modules.speech.sections.section.playground.buttons.stop.label`)),1)])])):zo(``,!0)]),e.apiKeyConfigured?zo(``,!0):(z(),B(`div`,Uje,Pe(I(a)(`settings.pages.providers.provider.elevenlabs.playground.validation.error-missing-api-key`)),1)),d.value?(z(),B(`div`,Wje,Pe(d.value),1)):zo(``,!0),u.value?(z(),B(`audio`,{key:4,ref_key:`audioPlayer`,ref:f,src:u.value,controls:``,class:`mt-2 w-full`},null,8,Gje)):zo(``,!0),H(n,{text:c.value,voice:s.value,"generate-speech":e.generateSpeech},null,8,[`text`,`voice`,`generate-speech`])]),Ai(e.$slots,`default`)])}}}),qje=Kje;const H4=async e=>(e.fetch??globalThis.fetch)(s0(`audio/speech`,e.baseURL),{body:a0(e),headers:o0({"Content-Type":`application/json`,...e.headers},e.apiKey),method:`POST`,signal:e.abortSignal}).then(c0).then(async e=>e.arrayBuffer()),Jje=/[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g;function U4(e,t,n){let r=Yje(e);return n?r.replace(n,i):i(r);function i(e){return kU(e,{subset:t})}}function Yje(e){return String(e||``).replace(Jje,``)}const Xje=/]]>/g,Zje=[`>`];function Qje(e){return``}function $je(e){return``}const eMe=[` `,` +`,` `,`"`,`&`,`'`,`/`,`<`,`=`,`>`];function W4(e){return U4(e,eMe)}function G4(e,t){let n=String(e),r=t.options.quote||`"`;if(t.options.quoteSmart){let e=r===`"`?`'`:`"`;FU(n,r)>FU(n,e)&&(r=e)}return r+U4(n,[`<`,`&`,r])+r}function tMe(e,t){let n=W4(e.name),r=e.public,i=e.system,a=``}const nMe={}.hasOwnProperty;function rMe(e,t){let n=W4(e.name),r=Y4(e,t),i=e.attributes||{},a=r?!1:t.options.closeEmptyElements,o=[],s;for(s in i)if(nMe.call(i,s)){let e=i[s];e!=null&&o.push(W4(s)+`=`+G4(e,t))}return`<`+n+(o.length===0?``:` `+o.join(` `))+(a?(t.options.tightClose?``:` `)+`/`:``)+`>`+r+(a?``:``)}const iMe=/\?>/g,aMe=[`>`];function oMe(e){let t=W4(e.name)||`x`,n=U4(e.value,aMe,iMe);return``}const sMe=[`&`,`<`];function K4(e){return U4(e.value,sMe)}function cMe(e,t){return t.options.allowDangerousXml?e.value:K4(e)}const lMe={}.hasOwnProperty,q4={cdata:Qje,comment:$je,doctype:tMe,element:rMe,instruction:oMe,raw:cMe,root:Y4,text:K4};function J4(e,t){let n=e&&e.type;if(!n)throw Error("Expected node, not `"+e+"`");if(!lMe.call(q4,n))throw Error("Cannot compile unknown node `"+n+"`");let r=q4[n],i=r(e,t);return i}function Y4(e,t){let n=e&&e.children||[],r=-1,i=[];for(;++r{let e=T0(),{allAudioSpeechProvidersMetadata:t}=HO(e),n=dE(`settings/speech/active-provider`,``),r=dE(`settings/speech/active-model`,`eleven_multilingual_v2`),i=dE(`settings/speech/voice`,``),a=F(),o=dE(`settings/speech/pitch`,0),s=dE(`settings/speech/rate`,1),c=dE(`settings/speech/ssml-enabled`,!1),l=F(!1),u=F(null),d=F({}),f=dE(`settings/speech/language`,`en-US`),p=F(``),m=U(()=>t.value),h=U(()=>e.getProviderMetadata(n.value)?.capabilities.listModels!==void 0),g=U(()=>e.getModelsForProvider(n.value)),_=U(()=>e.isLoadingModels[n.value]||!1),v=U(()=>e.modelLoadError[n.value]||null),y=U(()=>{if(!p.value.trim())return g.value;let e=p.value.toLowerCase().trim();return g.value.filter(t=>t.name.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))}),b=U(()=>[`elevenlabs`,`microsoft-speech`,`azure-speech`,`google`,`alibaba-cloud-model-studio`,`volcengine`].includes(n.value));async function x(t){if(!t)return[];l.value=!0,u.value=null;try{let n=await e.getProviderMetadata(t).capabilities.listVoices?.(e.getProviderConfig(t))||[];return d.value[t]=n,n}catch(e){return console.error(`Error fetching voices for ${t}:`,e),u.value=e instanceof Error?e.message:`Unknown error`,[]}finally{l.value=!1}}function S(e){return d.value[e]||[]}Ha(n,async e=>{e&&await x(e)}),fi(()=>{x(n.value).then(()=>{i.value&&(a.value=d.value[n.value]?.find(e=>e.id===i.value))})}),Ha(i,e=>{e&&(a.value=d.value[n.value]?.find(t=>t.id===e))},{immediate:!0}),Ha(d,e=>{i.value&&(a.value=e[n.value]?.find(e=>e.id===i.value))},{immediate:!0});async function C(e,t,n,r,i={}){let a=await H4({...e.speech(t,{...i}),input:n,voice:r});return a}function w(e,t,n){let r=n?.pitch,i=n?.speed,a=n?.volume,o={pitch:r==null?void 0:r>0?`+${r}%`:`-${r}%`,rate:i==null?void 0:i===1?`1`:`${i}`,volume:a==null?void 0:a>0?`+${a}%`:`${a}%`},s=X4(`speak`,{version:`1.0`,xmlns:`http://www.w3.org/2001/10/synthesis`,"xml:lang":t.languages[0]?.code||`en-US`},[X4(`voice`,{name:t.id,gender:t.gender||`neutral`},[Object.entries(o).filter(([e,t])=>t!=null).length>0?X4(`prosody`,{pitch:r==null?void 0:r>0?`+${r}%`:`-${r}%`,rate:i==null?void 0:i===1?`1`:`${i}`,volume:a==null?void 0:a>0?`+${a}%`:`${a}%`},[e]):e])]);return uMe(s)}let T=U(()=>!!n.value&&!!r.value&&!!i.value);return{configured:T,activeSpeechProvider:n,activeSpeechModel:r,activeSpeechVoice:a,activeSpeechVoiceId:i,pitch:o,rate:s,ssmlEnabled:c,selectedLanguage:f,isLoadingSpeechProviderVoices:l,speechProviderError:u,availableVoices:d,modelSearchQuery:p,availableSpeechProvidersMetadata:m,supportsSSML:b,supportsModelListing:h,providerModels:g,isLoadingActiveProviderModels:_,activeProviderModelError:v,filteredModels:y,speech:C,loadVoicesForProvider:x,getVoicesForProvider:S,generateSSML:w}}),fMe={flex:`~ col md:row gap-6`},pMe={flex:`~ col gap-6`},mMe={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},hMe={flex:`~ col gap-4`},gMe={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},_Me={"w-full":``,"rounded-xl":``};var vMe=R({__name:`SpeechProviderSettings`,props:{providerId:{},defaultModel:{},additionalSettings:{},placeholder:{}},setup(e){let t=e,{t:n}=K1(),r=Uk(),i=T0(),a=Q4(),{providers:o}=HO(i),s=U(()=>i.getProviderMetadata(t.providerId)),c=U({get:()=>o.value[t.providerId]?.apiKey||``,set:e=>{o.value[t.providerId]||(o.value[t.providerId]={}),o.value[t.providerId].apiKey=e}}),l=U({get:()=>o.value[t.providerId]?.baseUrl||s.value?.defaultOptions?.().baseUrl||``,set:e=>{o.value[t.providerId]||(o.value[t.providerId]={}),o.value[t.providerId].baseUrl=e}}),u=F({});function d(){o.value[t.providerId]?.voiceSettings?u.value={...o.value[t.providerId].voiceSettings}:u.value={pitch:0,speed:1,volume:0,...t.additionalSettings}}fi(()=>{i.initializeProvider(t.providerId),c.value=o.value[t.providerId]?.apiKey||``,l.value=o.value[t.providerId]?.baseUrl||s.value?.defaultOptions?.().baseUrl||``,d(),i.configuredProviders[t.providerId]&&a.loadVoicesForProvider(t.providerId)});let f=ET(()=>{o.value[t.providerId]={...o.value[t.providerId],apiKey:c.value,baseUrl:l.value||s.value?.defaultOptions?.().baseUrl||``,voiceSettings:{...u.value}}},1e3);Ha([c,l],f),Ha(u,f,{deep:!0});function p(){u.value={...s.value?.defaultOptions?.().voiceSettings||{}},f()}return(e,i)=>(z(),Ao(N0,{"provider-name":s.value?.localizedName,"provider-icon":s.value?.icon,"on-back":()=>I(r).back()},{default:L(()=>[V(`div`,fMe,[H(I(M0),{class:`w-full md:w-[40%]`},{default:L(()=>[H(I(j0),{title:I(n)(`settings.pages.providers.common.section.basic.title`),description:I(n)(`settings.pages.providers.common.section.basic.description`),"on-reset":p},{default:L(()=>[H(I(k0),{modelValue:c.value,"onUpdate:modelValue":i[0]||=e=>c.value=e,"provider-name":s.value?.localizedName,placeholder:t.placeholder||`API Key`},null,8,[`modelValue`,`provider-name`,`placeholder`]),Ai(e.$slots,`basic-settings`)]),_:3},8,[`title`,`description`]),V(`div`,pMe,[V(`h2`,mMe,Pe(I(n)(`settings.pages.providers.common.section.voice.title`)),1),V(`div`,hMe,[Ai(e.$slots,`voice-settings`)])]),H(I(O0),{title:I(n)(`settings.pages.providers.common.section.advanced.title`)},{default:L(()=>[H(I(A0),{modelValue:l.value,"onUpdate:modelValue":i[1]||=e=>l.value=e,placeholder:s.value?.defaultOptions?.().baseUrl||``,required:``},null,8,[`modelValue`,`placeholder`]),Ai(e.$slots,`advanced-settings`)]),_:3},8,[`title`])]),_:3}),V(`div`,gMe,[V(`div`,_Me,[Ai(e.$slots,`playground`)])])])]),_:3},8,[`provider-name`,`provider-icon`,`on-back`]))}}),yMe=vMe;function $4(){let e=F(),t=F(),n=F(),r=F([]),i=F(0),a=F();function o(e){return r.value.push(e),()=>{r.value=r.value.filter(t=>t!==e)}}function s(){if(n.value)return;let a=()=>{if(!e.value||!t.value)return;e.value.getByteFrequencyData(t.value);let o=0;for(let e=0;e{l()}),{volumeLevel:i,error:a,startAnalyzer:c,stopAnalyzer:l,onAnalyzerUpdate:o}} /*! * Copyright (c) 2025-present, Vanilagy and contributors * @@ -4180,7 +4183,7 @@ const P0=typeof window<`u`,F0=P0?window:null,I0=P0?document:null,L0={OBJECT:0,AT * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -function e3(e){if(!e)throw Error(`Assertion failed.`)}const gje=e=>e instanceof DataView?e:e instanceof ArrayBuffer?new DataView(e):new DataView(e.buffer,e.byteOffset,e.byteLength);new TextDecoder,new TextEncoder;const t3=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e])),_je={bt709:1,bt470bg:5,smpte170m:6,bt2020:9,smpte432:12};t3(_je);const vje={bt709:1,smpte170m:6,linear:8,"iec61966-2-1":13,pg:16,hlg:18};t3(vje);const yje={rgb:0,bt709:1,bt470bg:5,smpte170m:6,"bt2020-ncl":9};t3(yje);const n3=e=>e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||ArrayBuffer.isView(e);var r3=class{constructor(){this.currentPromise=Promise.resolve()}async acquire(){let e,t=new Promise(t=>{e=t}),n=this.currentPromise;return this.currentPromise=t,await n,e}};const bje=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return{promise:n,resolve:e,reject:t}},xje=e=>{throw Error(`Unexpected value: ${e}`)},i3=(e,t,n,r)=>{n>>>=0,n&=16777215,r?(e.setUint8(t,n&255),e.setUint8(t+1,n>>>8&255),e.setUint8(t+2,n>>>16&255)):(e.setUint8(t,n>>>16&255),e.setUint8(t+1,n>>>8&255),e.setUint8(t+2,n&255))},Sje=(e,t,n,r)=>{n=a3(n,-8388608,8388607),n<0&&(n=n+16777216&16777215),i3(e,t,n,r)},a3=(e,t,n)=>Math.max(t,Math.min(n,e)),Cje=/^[a-z]{3}$/,wje=e=>Cje.test(e),o3=1e6*(1+2**-52);var Tje=class{constructor(){this.currentPromise=Promise.resolve()}call(e){return this.currentPromise=this.currentPromise.then(e)}};const s3=[`avc`,`hevc`,`vp9`,`av1`,`vp8`],c3=[`pcm-s16`,`pcm-s16be`,`pcm-s24`,`pcm-s24be`,`pcm-s32`,`pcm-s32be`,`pcm-f32`,`pcm-f32be`,`pcm-f64`,`pcm-f64be`,`pcm-u8`,`pcm-s8`,`ulaw`,`alaw`],Eje=[`aac`,`opus`,`mp3`,`vorbis`,`flac`],l3=[...Eje,...c3],u3=[`webvtt`],Dje=(e,t,n)=>{if(e===`aac`)return t>=2&&n<=24e3?`mp4a.40.29`:n<=24e3?`mp4a.40.5`:`mp4a.40.2`;if(e===`mp3`)return`mp3`;if(e===`opus`)return`opus`;if(e===`vorbis`)return`vorbis`;if(e===`flac`)return`flac`;if(c3.includes(e))return e;throw TypeError(`Unhandled codec '${e}'.`)},d3=/^pcm-([usf])(\d+)+(be)?$/,f3=e=>{if(e3(c3.includes(e)),e===`ulaw`)return{dataType:`ulaw`,sampleSize:1,littleEndian:!0,silentValue:255};if(e===`alaw`)return{dataType:`alaw`,sampleSize:1,littleEndian:!0,silentValue:213};let t=d3.exec(e);e3(t);let n;n=t[1]===`u`?`unsigned`:t[1]===`s`?`signed`:`float`;let r=Number(t[2])/8,i=t[3]!==`be`,a=e===`pcm-u8`?2**7:0;return{dataType:n,sampleSize:r,littleEndian:i,silentValue:a}},Oje=e=>e.startsWith(`avc1`)||e.startsWith(`avc3`)?`avc`:e.startsWith(`hev1`)||e.startsWith(`hvc1`)?`hevc`:e===`vp8`?`vp8`:e.startsWith(`vp09`)?`vp9`:e.startsWith(`av01`)?`av1`:e.startsWith(`mp4a.40`)||e===`mp4a.67`?`aac`:e===`mp3`||e===`mp4a.69`||e===`mp4a.6B`||e===`mp4a.6b`?`mp3`:e===`opus`?`opus`:e===`vorbis`?`vorbis`:e===`flac`?`flac`:e===`ulaw`?`ulaw`:e===`alaw`?`alaw`:d3.test(e)?e:e===`webvtt`?`webvtt`:null,kje=e=>e===`aac`?{aac:{format:`aac`}}:e===`opus`?{opus:{format:`opus`}}:{};var p3=class{constructor(e){this._factor=e}_toVideoBitrate(e,t,n){let r=t*n,i={avc:1,hevc:.6,vp9:.6,av1:.4,vp8:1.2},a=(r/2073600)**.95,o=3e6*a,s=o*i[e],c=s*this._factor;return Math.ceil(c/1e3)*1e3}_toAudioBitrate(e){if(c3.includes(e)||e===`flac`)return;let t={aac:128e3,opus:64e3,mp3:16e4,vorbis:64e3},n=t[e];if(!n)throw Error(`Unhandled codec: ${e}`);let r=n*this._factor;if(e===`aac`){let e=[96e3,128e3,16e4,192e3];r=e.reduce((e,t)=>Math.abs(t-r)Math.abs(t-r){if(!e)throw TypeError(`Audio chunk metadata must be provided.`);if(typeof e!=`object`)throw TypeError(`Audio chunk metadata must be an object.`);if(!e.decoderConfig)throw TypeError(`Audio chunk metadata must include a decoder configuration.`);if(typeof e.decoderConfig!=`object`)throw TypeError(`Audio chunk metadata decoder configuration must be an object.`);if(typeof e.decoderConfig.codec!=`string`)throw TypeError(`Audio chunk metadata decoder configuration must specify a codec string.`);if(!Aje.some(t=>e.decoderConfig.codec.startsWith(t)))throw TypeError(`Audio chunk metadata decoder configuration codec string must be a valid audio codec string as specified in the WebCodecs Codec Registry.`);if(!Number.isInteger(e.decoderConfig.sampleRate)||e.decoderConfig.sampleRate<=0)throw TypeError(`Audio chunk metadata decoder configuration must specify a valid sampleRate (positive integer).`);if(!Number.isInteger(e.decoderConfig.numberOfChannels)||e.decoderConfig.numberOfChannels<=0)throw TypeError(`Audio chunk metadata decoder configuration must specify a valid numberOfChannels (positive integer).`);if(e.decoderConfig.description!==void 0&&!n3(e.decoderConfig.description))throw TypeError(`Audio chunk metadata decoder configuration description, when defined, must be an ArrayBuffer or an ArrayBuffer view.`);if(e.decoderConfig.codec.startsWith(`mp4a`)&&e.decoderConfig.codec!==`mp4a.69`&&e.decoderConfig.codec!==`mp4a.6B`&&e.decoderConfig.codec!==`mp4a.6b`){let t=[`mp4a.40.2`,`mp4a.40.02`,`mp4a.40.5`,`mp4a.40.05`,`mp4a.40.29`,`mp4a.67`];if(!t.includes(e.decoderConfig.codec))throw TypeError(`Audio chunk metadata decoder configuration codec string for AAC must be a valid AAC codec string as specified in https://www.w3.org/TR/webcodecs-aac-codec-registration/.`);if(!e.decoderConfig.description)throw TypeError(`Audio chunk metadata decoder configuration for AAC must include a description, which is expected to be an AudioSpecificConfig as specified in ISO 14496-3.`)}else if(e.decoderConfig.codec.startsWith(`mp3`)||e.decoderConfig.codec.startsWith(`mp4a`)){if(e.decoderConfig.codec!==`mp3`&&e.decoderConfig.codec!==`mp4a.69`&&e.decoderConfig.codec!==`mp4a.6B`&&e.decoderConfig.codec!==`mp4a.6b`)throw TypeError(`Audio chunk metadata decoder configuration codec string for MP3 must be "mp3", "mp4a.69" or "mp4a.6B".`)}else if(e.decoderConfig.codec.startsWith(`opus`)){if(e.decoderConfig.codec!==`opus`)throw TypeError(`Audio chunk metadata decoder configuration codec string for Opus must be "opus".`);if(e.decoderConfig.description&&e.decoderConfig.description.byteLength<18)throw TypeError(`Audio chunk metadata decoder configuration description, when specified, is expected to be an Identification Header as specified in Section 5.1 of RFC 7845.`)}else if(e.decoderConfig.codec.startsWith(`vorbis`)){if(e.decoderConfig.codec!==`vorbis`)throw TypeError(`Audio chunk metadata decoder configuration codec string for Vorbis must be "vorbis".`);if(!e.decoderConfig.description)throw TypeError(`Audio chunk metadata decoder configuration for Vorbis must include a description, which is expected to adhere to the format described in https://www.w3.org/TR/webcodecs-vorbis-codec-registration/.`)}else if(e.decoderConfig.codec.startsWith(`flac`)){if(e.decoderConfig.codec!==`flac`)throw TypeError(`Audio chunk metadata decoder configuration codec string for FLAC must be "flac".`);if(!e.decoderConfig.description||e.decoderConfig.description.byteLength<42)throw TypeError(`Audio chunk metadata decoder configuration for FLAC must include a description, which is expected to adhere to the format described in https://www.w3.org/TR/webcodecs-flac-codec-registration/.`)}else if((e.decoderConfig.codec.startsWith(`pcm`)||e.decoderConfig.codec.startsWith(`ulaw`)||e.decoderConfig.codec.startsWith(`alaw`))&&!c3.includes(e.decoderConfig.codec))throw TypeError(`Audio chunk metadata decoder configuration codec string for PCM must be one of the supported PCM codecs (${c3.join(`, `)}).`)};var Mje=class{constructor(e){this.mutex=new r3,this.firstMediaStreamTimestamp=null,this.trackTimestampInfo=new WeakMap,this.output=e}onTrackClose(e){}validateAndNormalizeTimestamp(e,t,n){t+=e.source._timestampOffset;let r=this.trackTimestampInfo.get(e);if(!r){if(!n)throw Error(`First frame must be a key frame.`);r={maxTimestamp:t,maxTimestampBeforeLastKeyFrame:t},this.trackTimestampInfo.set(e,r)}if(t<0)throw Error(`Timestamps must be non-negative (got ${t}s).`);if(n&&(r.maxTimestampBeforeLastKeyFrame=r.maxTimestamp),tg3)throw Error(`ArrayBuffer exceeded maximum size of ${g3} bytes. Please consider using another target.`);if(this.supportsResize)this.buffer.resize(t);else{let e=new ArrayBuffer(t),n=new Uint8Array(e);n.set(this.bytes,0),this.buffer=e,this.bytes=n}}}write(e){this.maybeTrackWrites(e),this.ensureSize(this.pos+e.byteLength),this.bytes.set(e,this.pos),this.target.onwrite?.(this.pos,this.pos+e.byteLength),this.pos+=e.byteLength,this.maxPos=Math.max(this.maxPos,this.pos)}seek(e){this.pos=e}getPos(){return this.pos}async flush(){}async finalize(){this.ensureSize(this.pos),this.target.buffer=this.buffer.slice(0,Math.max(this.maxPos,this.pos))}async close(){}getSlice(e,t){return this.bytes.slice(e,t)}},_3=class{constructor(){this._output=null,this.onwrite=null}},v3=class extends _3{constructor(){super(...arguments),this.buffer=null}_createWriter(){return new Pje(this)}};const Fje=[],y3=new Uint8Array;var b3=class e{constructor(e,t,n,r,i=-1,a){if(this.data=e,this.type=t,this.timestamp=n,this.duration=r,this.sequenceNumber=i,e===y3&&a===void 0)throw Error(`Internal error: byteLength must be explicitly provided when constructing metadata-only packets.`);if(a===void 0&&(a=e.byteLength),!(e instanceof Uint8Array))throw TypeError(`data must be a Uint8Array.`);if(t!==`key`&&t!==`delta`)throw TypeError(`type must be either "key" or "delta".`);if(!Number.isFinite(n))throw TypeError(`timestamp must be a number.`);if(!Number.isFinite(r)||r<0)throw TypeError(`duration must be a non-negative number.`);if(!Number.isFinite(i))throw TypeError(`sequenceNumber must be a number.`);if(!Number.isInteger(a)||a<0)throw TypeError(`byteLength must be a non-negative integer.`);this.byteLength=a}get isMetadataOnly(){return this.data===y3}get microsecondTimestamp(){return Math.trunc(o3*this.timestamp)}get microsecondDuration(){return Math.trunc(o3*this.duration)}toEncodedVideoChunk(){if(this.isMetadataOnly)throw TypeError(`Metadata-only packets cannot be converted to a video chunk.`);if(typeof EncodedVideoChunk>`u`)throw Error(`Your browser does not support EncodedVideoChunk.`);return new EncodedVideoChunk({data:this.data,type:this.type,timestamp:this.microsecondTimestamp,duration:this.microsecondDuration})}toEncodedAudioChunk(){if(this.isMetadataOnly)throw TypeError(`Metadata-only packets cannot be converted to an audio chunk.`);if(typeof EncodedAudioChunk>`u`)throw Error(`Your browser does not support EncodedAudioChunk.`);return new EncodedAudioChunk({data:this.data,type:this.type,timestamp:this.microsecondTimestamp,duration:this.microsecondDuration})}static fromEncodedChunk(t){if(!(t instanceof EncodedVideoChunk||t instanceof EncodedAudioChunk))throw TypeError(`chunk must be an EncodedVideoChunk or EncodedAudioChunk.`);let n=new Uint8Array(t.byteLength);return t.copyTo(n),new e(n,t.type,t.timestamp/1e6,(t.duration??0)/1e6)}clone(t){if(t!==void 0&&(typeof t!=`object`||!t))throw TypeError(`options, when provided, must be an object.`);if(t?.timestamp!==void 0&&!Number.isFinite(t.timestamp))throw TypeError(`options.timestamp, when provided, must be a number.`);if(t?.duration!==void 0&&!Number.isFinite(t.duration))throw TypeError(`options.duration, when provided, must be a number.`);return new e(this.data,this.type,t?.timestamp??this.timestamp,t?.duration??this.duration,this.sequenceNumber,this.byteLength)}}; +function e3(e){if(!e)throw Error(`Assertion failed.`)}const bMe=e=>e instanceof DataView?e:e instanceof ArrayBuffer?new DataView(e):new DataView(e.buffer,e.byteOffset,e.byteLength);new TextDecoder,new TextEncoder;const t3=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e])),xMe={bt709:1,bt470bg:5,smpte170m:6,bt2020:9,smpte432:12};t3(xMe);const SMe={bt709:1,smpte170m:6,linear:8,"iec61966-2-1":13,pg:16,hlg:18};t3(SMe);const CMe={rgb:0,bt709:1,bt470bg:5,smpte170m:6,"bt2020-ncl":9};t3(CMe);const n3=e=>e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||ArrayBuffer.isView(e);var r3=class{constructor(){this.currentPromise=Promise.resolve()}async acquire(){let e,t=new Promise(t=>{e=t}),n=this.currentPromise;return this.currentPromise=t,await n,e}};const wMe=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return{promise:n,resolve:e,reject:t}},TMe=e=>{throw Error(`Unexpected value: ${e}`)},i3=(e,t,n,r)=>{n>>>=0,n&=16777215,r?(e.setUint8(t,n&255),e.setUint8(t+1,n>>>8&255),e.setUint8(t+2,n>>>16&255)):(e.setUint8(t,n>>>16&255),e.setUint8(t+1,n>>>8&255),e.setUint8(t+2,n&255))},EMe=(e,t,n,r)=>{n=a3(n,-8388608,8388607),n<0&&(n=n+16777216&16777215),i3(e,t,n,r)},a3=(e,t,n)=>Math.max(t,Math.min(n,e)),DMe=/^[a-z]{3}$/,OMe=e=>DMe.test(e),o3=1e6*(1+2**-52);var kMe=class{constructor(){this.currentPromise=Promise.resolve()}call(e){return this.currentPromise=this.currentPromise.then(e)}};const s3=[`avc`,`hevc`,`vp9`,`av1`,`vp8`],c3=[`pcm-s16`,`pcm-s16be`,`pcm-s24`,`pcm-s24be`,`pcm-s32`,`pcm-s32be`,`pcm-f32`,`pcm-f32be`,`pcm-f64`,`pcm-f64be`,`pcm-u8`,`pcm-s8`,`ulaw`,`alaw`],AMe=[`aac`,`opus`,`mp3`,`vorbis`,`flac`],l3=[...AMe,...c3],u3=[`webvtt`],jMe=(e,t,n)=>{if(e===`aac`)return t>=2&&n<=24e3?`mp4a.40.29`:n<=24e3?`mp4a.40.5`:`mp4a.40.2`;if(e===`mp3`)return`mp3`;if(e===`opus`)return`opus`;if(e===`vorbis`)return`vorbis`;if(e===`flac`)return`flac`;if(c3.includes(e))return e;throw TypeError(`Unhandled codec '${e}'.`)},d3=/^pcm-([usf])(\d+)+(be)?$/,f3=e=>{if(e3(c3.includes(e)),e===`ulaw`)return{dataType:`ulaw`,sampleSize:1,littleEndian:!0,silentValue:255};if(e===`alaw`)return{dataType:`alaw`,sampleSize:1,littleEndian:!0,silentValue:213};let t=d3.exec(e);e3(t);let n;n=t[1]===`u`?`unsigned`:t[1]===`s`?`signed`:`float`;let r=Number(t[2])/8,i=t[3]!==`be`,a=e===`pcm-u8`?2**7:0;return{dataType:n,sampleSize:r,littleEndian:i,silentValue:a}},MMe=e=>e.startsWith(`avc1`)||e.startsWith(`avc3`)?`avc`:e.startsWith(`hev1`)||e.startsWith(`hvc1`)?`hevc`:e===`vp8`?`vp8`:e.startsWith(`vp09`)?`vp9`:e.startsWith(`av01`)?`av1`:e.startsWith(`mp4a.40`)||e===`mp4a.67`?`aac`:e===`mp3`||e===`mp4a.69`||e===`mp4a.6B`||e===`mp4a.6b`?`mp3`:e===`opus`?`opus`:e===`vorbis`?`vorbis`:e===`flac`?`flac`:e===`ulaw`?`ulaw`:e===`alaw`?`alaw`:d3.test(e)?e:e===`webvtt`?`webvtt`:null,NMe=e=>e===`aac`?{aac:{format:`aac`}}:e===`opus`?{opus:{format:`opus`}}:{};var p3=class{constructor(e){this._factor=e}_toVideoBitrate(e,t,n){let r=t*n,i={avc:1,hevc:.6,vp9:.6,av1:.4,vp8:1.2},a=(r/2073600)**.95,o=3e6*a,s=o*i[e],c=s*this._factor;return Math.ceil(c/1e3)*1e3}_toAudioBitrate(e){if(c3.includes(e)||e===`flac`)return;let t={aac:128e3,opus:64e3,mp3:16e4,vorbis:64e3},n=t[e];if(!n)throw Error(`Unhandled codec: ${e}`);let r=n*this._factor;if(e===`aac`){let e=[96e3,128e3,16e4,192e3];r=e.reduce((e,t)=>Math.abs(t-r)Math.abs(t-r){if(!e)throw TypeError(`Audio chunk metadata must be provided.`);if(typeof e!=`object`)throw TypeError(`Audio chunk metadata must be an object.`);if(!e.decoderConfig)throw TypeError(`Audio chunk metadata must include a decoder configuration.`);if(typeof e.decoderConfig!=`object`)throw TypeError(`Audio chunk metadata decoder configuration must be an object.`);if(typeof e.decoderConfig.codec!=`string`)throw TypeError(`Audio chunk metadata decoder configuration must specify a codec string.`);if(!PMe.some(t=>e.decoderConfig.codec.startsWith(t)))throw TypeError(`Audio chunk metadata decoder configuration codec string must be a valid audio codec string as specified in the WebCodecs Codec Registry.`);if(!Number.isInteger(e.decoderConfig.sampleRate)||e.decoderConfig.sampleRate<=0)throw TypeError(`Audio chunk metadata decoder configuration must specify a valid sampleRate (positive integer).`);if(!Number.isInteger(e.decoderConfig.numberOfChannels)||e.decoderConfig.numberOfChannels<=0)throw TypeError(`Audio chunk metadata decoder configuration must specify a valid numberOfChannels (positive integer).`);if(e.decoderConfig.description!==void 0&&!n3(e.decoderConfig.description))throw TypeError(`Audio chunk metadata decoder configuration description, when defined, must be an ArrayBuffer or an ArrayBuffer view.`);if(e.decoderConfig.codec.startsWith(`mp4a`)&&e.decoderConfig.codec!==`mp4a.69`&&e.decoderConfig.codec!==`mp4a.6B`&&e.decoderConfig.codec!==`mp4a.6b`){let t=[`mp4a.40.2`,`mp4a.40.02`,`mp4a.40.5`,`mp4a.40.05`,`mp4a.40.29`,`mp4a.67`];if(!t.includes(e.decoderConfig.codec))throw TypeError(`Audio chunk metadata decoder configuration codec string for AAC must be a valid AAC codec string as specified in https://www.w3.org/TR/webcodecs-aac-codec-registration/.`);if(!e.decoderConfig.description)throw TypeError(`Audio chunk metadata decoder configuration for AAC must include a description, which is expected to be an AudioSpecificConfig as specified in ISO 14496-3.`)}else if(e.decoderConfig.codec.startsWith(`mp3`)||e.decoderConfig.codec.startsWith(`mp4a`)){if(e.decoderConfig.codec!==`mp3`&&e.decoderConfig.codec!==`mp4a.69`&&e.decoderConfig.codec!==`mp4a.6B`&&e.decoderConfig.codec!==`mp4a.6b`)throw TypeError(`Audio chunk metadata decoder configuration codec string for MP3 must be "mp3", "mp4a.69" or "mp4a.6B".`)}else if(e.decoderConfig.codec.startsWith(`opus`)){if(e.decoderConfig.codec!==`opus`)throw TypeError(`Audio chunk metadata decoder configuration codec string for Opus must be "opus".`);if(e.decoderConfig.description&&e.decoderConfig.description.byteLength<18)throw TypeError(`Audio chunk metadata decoder configuration description, when specified, is expected to be an Identification Header as specified in Section 5.1 of RFC 7845.`)}else if(e.decoderConfig.codec.startsWith(`vorbis`)){if(e.decoderConfig.codec!==`vorbis`)throw TypeError(`Audio chunk metadata decoder configuration codec string for Vorbis must be "vorbis".`);if(!e.decoderConfig.description)throw TypeError(`Audio chunk metadata decoder configuration for Vorbis must include a description, which is expected to adhere to the format described in https://www.w3.org/TR/webcodecs-vorbis-codec-registration/.`)}else if(e.decoderConfig.codec.startsWith(`flac`)){if(e.decoderConfig.codec!==`flac`)throw TypeError(`Audio chunk metadata decoder configuration codec string for FLAC must be "flac".`);if(!e.decoderConfig.description||e.decoderConfig.description.byteLength<42)throw TypeError(`Audio chunk metadata decoder configuration for FLAC must include a description, which is expected to adhere to the format described in https://www.w3.org/TR/webcodecs-flac-codec-registration/.`)}else if((e.decoderConfig.codec.startsWith(`pcm`)||e.decoderConfig.codec.startsWith(`ulaw`)||e.decoderConfig.codec.startsWith(`alaw`))&&!c3.includes(e.decoderConfig.codec))throw TypeError(`Audio chunk metadata decoder configuration codec string for PCM must be one of the supported PCM codecs (${c3.join(`, `)}).`)};var IMe=class{constructor(e){this.mutex=new r3,this.firstMediaStreamTimestamp=null,this.trackTimestampInfo=new WeakMap,this.output=e}onTrackClose(e){}validateAndNormalizeTimestamp(e,t,n){t+=e.source._timestampOffset;let r=this.trackTimestampInfo.get(e);if(!r){if(!n)throw Error(`First frame must be a key frame.`);r={maxTimestamp:t,maxTimestampBeforeLastKeyFrame:t},this.trackTimestampInfo.set(e,r)}if(t<0)throw Error(`Timestamps must be non-negative (got ${t}s).`);if(n&&(r.maxTimestampBeforeLastKeyFrame=r.maxTimestamp),tg3)throw Error(`ArrayBuffer exceeded maximum size of ${g3} bytes. Please consider using another target.`);if(this.supportsResize)this.buffer.resize(t);else{let e=new ArrayBuffer(t),n=new Uint8Array(e);n.set(this.bytes,0),this.buffer=e,this.bytes=n}}}write(e){this.maybeTrackWrites(e),this.ensureSize(this.pos+e.byteLength),this.bytes.set(e,this.pos),this.target.onwrite?.(this.pos,this.pos+e.byteLength),this.pos+=e.byteLength,this.maxPos=Math.max(this.maxPos,this.pos)}seek(e){this.pos=e}getPos(){return this.pos}async flush(){}async finalize(){this.ensureSize(this.pos),this.target.buffer=this.buffer.slice(0,Math.max(this.maxPos,this.pos))}async close(){}getSlice(e,t){return this.bytes.slice(e,t)}},_3=class{constructor(){this._output=null,this.onwrite=null}},v3=class extends _3{constructor(){super(...arguments),this.buffer=null}_createWriter(){return new RMe(this)}};const zMe=[],y3=new Uint8Array;var b3=class e{constructor(e,t,n,r,i=-1,a){if(this.data=e,this.type=t,this.timestamp=n,this.duration=r,this.sequenceNumber=i,e===y3&&a===void 0)throw Error(`Internal error: byteLength must be explicitly provided when constructing metadata-only packets.`);if(a===void 0&&(a=e.byteLength),!(e instanceof Uint8Array))throw TypeError(`data must be a Uint8Array.`);if(t!==`key`&&t!==`delta`)throw TypeError(`type must be either "key" or "delta".`);if(!Number.isFinite(n))throw TypeError(`timestamp must be a number.`);if(!Number.isFinite(r)||r<0)throw TypeError(`duration must be a non-negative number.`);if(!Number.isFinite(i))throw TypeError(`sequenceNumber must be a number.`);if(!Number.isInteger(a)||a<0)throw TypeError(`byteLength must be a non-negative integer.`);this.byteLength=a}get isMetadataOnly(){return this.data===y3}get microsecondTimestamp(){return Math.trunc(o3*this.timestamp)}get microsecondDuration(){return Math.trunc(o3*this.duration)}toEncodedVideoChunk(){if(this.isMetadataOnly)throw TypeError(`Metadata-only packets cannot be converted to a video chunk.`);if(typeof EncodedVideoChunk>`u`)throw Error(`Your browser does not support EncodedVideoChunk.`);return new EncodedVideoChunk({data:this.data,type:this.type,timestamp:this.microsecondTimestamp,duration:this.microsecondDuration})}toEncodedAudioChunk(){if(this.isMetadataOnly)throw TypeError(`Metadata-only packets cannot be converted to an audio chunk.`);if(typeof EncodedAudioChunk>`u`)throw Error(`Your browser does not support EncodedAudioChunk.`);return new EncodedAudioChunk({data:this.data,type:this.type,timestamp:this.microsecondTimestamp,duration:this.microsecondDuration})}static fromEncodedChunk(t){if(!(t instanceof EncodedVideoChunk||t instanceof EncodedAudioChunk))throw TypeError(`chunk must be an EncodedVideoChunk or EncodedAudioChunk.`);let n=new Uint8Array(t.byteLength);return t.copyTo(n),new e(n,t.type,t.timestamp/1e6,(t.duration??0)/1e6)}clone(t){if(t!==void 0&&(typeof t!=`object`||!t))throw TypeError(`options, when provided, must be an object.`);if(t?.timestamp!==void 0&&!Number.isFinite(t.timestamp))throw TypeError(`options.timestamp, when provided, must be a number.`);if(t?.duration!==void 0&&!Number.isFinite(t.duration))throw TypeError(`options.duration, when provided, must be a number.`);return new e(this.data,this.type,t?.timestamp??this.timestamp,t?.duration??this.duration,this.sequenceNumber,this.byteLength)}}; /*! * Copyright (c) 2025-present, Vanilagy and contributors * @@ -4188,7 +4191,7 @@ function e3(e){if(!e)throw Error(`Assertion failed.`)}const gje=e=>e instanceof * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -const Ije=e=>{let t=8191,n=e,r=4096,i=0,a=12,o=0;for(n<0&&(n=-n,i=128),n+=33,n>t&&(n=t);(n&r)!==r&&a>=5;)r>>=1,a--;return o=n>>a-4&15,~(i|a-5<<4|o)&255},Lje=e=>{let t=4095,n=2048,r=0,i=11,a=0,o=e;for(o<0&&(o=-o,r=128),o>t&&(o=t);(o&n)!==n&&i>=5;)n>>=1,i--;return a=o>>(i===4?1:i-4)&15,(r|i-4<<4|a)^85},x3=new Set([`f32`,`f32-planar`,`s16`,`s16-planar`,`s32`,`s32-planar`,`u8`,`u8-planar`]);var S3=class e{get microsecondTimestamp(){return Math.trunc(o3*this.timestamp)}get microsecondDuration(){return Math.trunc(o3*this.duration)}constructor(e){if(this._closed=!1,T3(e)){if(e.format===null)throw TypeError(`AudioData with null format is not supported.`);this._data=e,this.format=e.format,this.sampleRate=e.sampleRate,this.numberOfFrames=e.numberOfFrames,this.numberOfChannels=e.numberOfChannels,this.timestamp=e.timestamp/1e6,this.duration=e.numberOfFrames/e.sampleRate}else{if(!e||typeof e!=`object`)throw TypeError(`Invalid AudioDataInit: must be an object.`);if(!x3.has(e.format))throw TypeError(`Invalid AudioDataInit: invalid format.`);if(!Number.isFinite(e.sampleRate)||e.sampleRate<=0)throw TypeError(`Invalid AudioDataInit: sampleRate must be > 0.`);if(!Number.isInteger(e.numberOfChannels)||e.numberOfChannels===0)throw TypeError(`Invalid AudioDataInit: numberOfChannels must be an integer > 0.`);if(!Number.isFinite(e?.timestamp))throw TypeError(`init.timestamp must be a number.`);let t=e.data.byteLength/(C3(e.format)*e.numberOfChannels);if(!Number.isInteger(t))throw TypeError(`Invalid AudioDataInit: data size is not a multiple of frame size.`);this.format=e.format,this.sampleRate=e.sampleRate,this.numberOfFrames=t,this.numberOfChannels=e.numberOfChannels,this.timestamp=e.timestamp,this.duration=t/e.sampleRate;let n;if(e.data instanceof ArrayBuffer)n=new Uint8Array(e.data);else if(ArrayBuffer.isView(e.data))n=new Uint8Array(e.data.buffer,e.data.byteOffset,e.data.byteLength);else throw TypeError(`Invalid AudioDataInit: data is not a BufferSource.`);let r=this.numberOfFrames*this.numberOfChannels*C3(this.format);if(n.byteLength=this.numberOfFrames)throw RangeError(`frameOffset out of range`);let r=e.frameCount===void 0?this.numberOfFrames-n:e.frameCount;if(r>this.numberOfFrames-n)throw RangeError(`frameCount out of range`);let i=C3(t),a=w3(t);if(a&&e.planeIndex>=this.numberOfChannels||!a&&e.planeIndex!==0)throw RangeError(`planeIndex out of range`);let o=a?r:r*this.numberOfChannels;return o*i}copyTo(e,t){if(!n3(e))throw TypeError(`destination must be an ArrayBuffer or an ArrayBuffer view.`);if(!t||typeof t!=`object`)throw TypeError(`options must be an object.`);if(!Number.isInteger(t.planeIndex)||t.planeIndex<0)throw TypeError(`planeIndex must be a non-negative integer.`);if(t.format!==void 0&&!x3.has(t.format))throw TypeError(`Invalid format.`);if(t.frameOffset!==void 0&&(!Number.isInteger(t.frameOffset)||t.frameOffset<0))throw TypeError(`frameOffset must be a non-negative integer.`);if(t.frameCount!==void 0&&(!Number.isInteger(t.frameCount)||t.frameCount<0))throw TypeError(`frameCount must be a non-negative integer.`);if(this._closed)throw Error(`AudioSample is closed.`);let{planeIndex:n,format:r,frameCount:i,frameOffset:a}=t,o=r??this.format;if(!o)throw Error(`Destination format not determined`);let s=this.numberOfFrames,c=this.numberOfChannels,l=a??0;if(l>=s)throw RangeError(`frameOffset out of range`);let u=i===void 0?s-l:i;if(u>s-l)throw RangeError(`frameCount out of range`);let d=C3(o),f=w3(o);if(f&&n>=c||!f&&n!==0)throw RangeError(`planeIndex out of range`);let p=f?u:u*c,m=p*d;if(e.byteLength0;){let a=Math.min(o,c),l=new Float32Array(r*a);for(let e=0;e0;){let a=Math.min(o,c),u=new Float32Array(r*a);for(let e=0;e{switch(e){case`u8`:case`u8-planar`:return 1;case`s16`:case`s16-planar`:return 2;case`s32`:case`s32-planar`:return 4;case`f32`:case`f32-planar`:return 4;default:throw Error(`Unknown AudioSampleFormat`)}},w3=e=>{switch(e){case`u8-planar`:case`s16-planar`:case`s32-planar`:case`f32-planar`:return!0;default:return!1}},Rje=e=>{switch(e){case`u8`:case`u8-planar`:return(e,t)=>(e.getUint8(t)-128)/128;case`s16`:case`s16-planar`:return(e,t)=>e.getInt16(t,!0)/32768;case`s32`:case`s32-planar`:return(e,t)=>e.getInt32(t,!0)/2147483648;case`f32`:case`f32-planar`:return(e,t)=>e.getFloat32(t,!0)}},zje=e=>{switch(e){case`u8`:case`u8-planar`:return(e,t,n)=>e.setUint8(t,a3((n+1)*127.5,0,255));case`s16`:case`s16-planar`:return(e,t,n)=>e.setInt16(t,a3(Math.round(n*32767),-32768,32767),!0);case`s32`:case`s32-planar`:return(e,t,n)=>e.setInt32(t,a3(Math.round(n*2147483647),-2147483648,2147483647),!0);case`f32`:case`f32-planar`:return(e,t,n)=>e.setFloat32(t,n,!0)}},T3=e=>typeof AudioData<`u`&&e instanceof AudioData;var E3;(function(e){e[e.PCM=1]=`PCM`,e[e.IEEE_FLOAT=3]=`IEEE_FLOAT`,e[e.ALAW=6]=`ALAW`,e[e.MULAW=7]=`MULAW`,e[e.EXTENSIBLE=65534]=`EXTENSIBLE`})(E3||={}); +const BMe=e=>{let t=8191,n=e,r=4096,i=0,a=12,o=0;for(n<0&&(n=-n,i=128),n+=33,n>t&&(n=t);(n&r)!==r&&a>=5;)r>>=1,a--;return o=n>>a-4&15,~(i|a-5<<4|o)&255},VMe=e=>{let t=4095,n=2048,r=0,i=11,a=0,o=e;for(o<0&&(o=-o,r=128),o>t&&(o=t);(o&n)!==n&&i>=5;)n>>=1,i--;return a=o>>(i===4?1:i-4)&15,(r|i-4<<4|a)^85},x3=new Set([`f32`,`f32-planar`,`s16`,`s16-planar`,`s32`,`s32-planar`,`u8`,`u8-planar`]);var S3=class e{get microsecondTimestamp(){return Math.trunc(o3*this.timestamp)}get microsecondDuration(){return Math.trunc(o3*this.duration)}constructor(e){if(this._closed=!1,T3(e)){if(e.format===null)throw TypeError(`AudioData with null format is not supported.`);this._data=e,this.format=e.format,this.sampleRate=e.sampleRate,this.numberOfFrames=e.numberOfFrames,this.numberOfChannels=e.numberOfChannels,this.timestamp=e.timestamp/1e6,this.duration=e.numberOfFrames/e.sampleRate}else{if(!e||typeof e!=`object`)throw TypeError(`Invalid AudioDataInit: must be an object.`);if(!x3.has(e.format))throw TypeError(`Invalid AudioDataInit: invalid format.`);if(!Number.isFinite(e.sampleRate)||e.sampleRate<=0)throw TypeError(`Invalid AudioDataInit: sampleRate must be > 0.`);if(!Number.isInteger(e.numberOfChannels)||e.numberOfChannels===0)throw TypeError(`Invalid AudioDataInit: numberOfChannels must be an integer > 0.`);if(!Number.isFinite(e?.timestamp))throw TypeError(`init.timestamp must be a number.`);let t=e.data.byteLength/(C3(e.format)*e.numberOfChannels);if(!Number.isInteger(t))throw TypeError(`Invalid AudioDataInit: data size is not a multiple of frame size.`);this.format=e.format,this.sampleRate=e.sampleRate,this.numberOfFrames=t,this.numberOfChannels=e.numberOfChannels,this.timestamp=e.timestamp,this.duration=t/e.sampleRate;let n;if(e.data instanceof ArrayBuffer)n=new Uint8Array(e.data);else if(ArrayBuffer.isView(e.data))n=new Uint8Array(e.data.buffer,e.data.byteOffset,e.data.byteLength);else throw TypeError(`Invalid AudioDataInit: data is not a BufferSource.`);let r=this.numberOfFrames*this.numberOfChannels*C3(this.format);if(n.byteLength=this.numberOfFrames)throw RangeError(`frameOffset out of range`);let r=e.frameCount===void 0?this.numberOfFrames-n:e.frameCount;if(r>this.numberOfFrames-n)throw RangeError(`frameCount out of range`);let i=C3(t),a=w3(t);if(a&&e.planeIndex>=this.numberOfChannels||!a&&e.planeIndex!==0)throw RangeError(`planeIndex out of range`);let o=a?r:r*this.numberOfChannels;return o*i}copyTo(e,t){if(!n3(e))throw TypeError(`destination must be an ArrayBuffer or an ArrayBuffer view.`);if(!t||typeof t!=`object`)throw TypeError(`options must be an object.`);if(!Number.isInteger(t.planeIndex)||t.planeIndex<0)throw TypeError(`planeIndex must be a non-negative integer.`);if(t.format!==void 0&&!x3.has(t.format))throw TypeError(`Invalid format.`);if(t.frameOffset!==void 0&&(!Number.isInteger(t.frameOffset)||t.frameOffset<0))throw TypeError(`frameOffset must be a non-negative integer.`);if(t.frameCount!==void 0&&(!Number.isInteger(t.frameCount)||t.frameCount<0))throw TypeError(`frameCount must be a non-negative integer.`);if(this._closed)throw Error(`AudioSample is closed.`);let{planeIndex:n,format:r,frameCount:i,frameOffset:a}=t,o=r??this.format;if(!o)throw Error(`Destination format not determined`);let s=this.numberOfFrames,c=this.numberOfChannels,l=a??0;if(l>=s)throw RangeError(`frameOffset out of range`);let u=i===void 0?s-l:i;if(u>s-l)throw RangeError(`frameCount out of range`);let d=C3(o),f=w3(o);if(f&&n>=c||!f&&n!==0)throw RangeError(`planeIndex out of range`);let p=f?u:u*c,m=p*d;if(e.byteLength0;){let a=Math.min(o,c),l=new Float32Array(r*a);for(let e=0;e0;){let a=Math.min(o,c),u=new Float32Array(r*a);for(let e=0;e{switch(e){case`u8`:case`u8-planar`:return 1;case`s16`:case`s16-planar`:return 2;case`s32`:case`s32-planar`:return 4;case`f32`:case`f32-planar`:return 4;default:throw Error(`Unknown AudioSampleFormat`)}},w3=e=>{switch(e){case`u8-planar`:case`s16-planar`:case`s32-planar`:case`f32-planar`:return!0;default:return!1}},HMe=e=>{switch(e){case`u8`:case`u8-planar`:return(e,t)=>(e.getUint8(t)-128)/128;case`s16`:case`s16-planar`:return(e,t)=>e.getInt16(t,!0)/32768;case`s32`:case`s32-planar`:return(e,t)=>e.getInt32(t,!0)/2147483648;case`f32`:case`f32-planar`:return(e,t)=>e.getFloat32(t,!0)}},UMe=e=>{switch(e){case`u8`:case`u8-planar`:return(e,t,n)=>e.setUint8(t,a3((n+1)*127.5,0,255));case`s16`:case`s16-planar`:return(e,t,n)=>e.setInt16(t,a3(Math.round(n*32767),-32768,32767),!0);case`s32`:case`s32-planar`:return(e,t,n)=>e.setInt32(t,a3(Math.round(n*2147483647),-2147483648,2147483647),!0);case`f32`:case`f32-planar`:return(e,t,n)=>e.setFloat32(t,n,!0)}},T3=e=>typeof AudioData<`u`&&e instanceof AudioData;var E3;(function(e){e[e.PCM=1]=`PCM`,e[e.IEEE_FLOAT=3]=`IEEE_FLOAT`,e[e.ALAW=6]=`ALAW`,e[e.MULAW=7]=`MULAW`,e[e.EXTENSIBLE=65534]=`EXTENSIBLE`})(E3||={}); /*! * Copyright (c) 2025-present, Vanilagy and contributors * @@ -4196,7 +4199,7 @@ const Ije=e=>{let t=8191,n=e,r=4096,i=0,a=12,o=0;for(n<0&&(n=-n,i=128),n+=33,n>t * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -var Bje=class{constructor(e){this.writer=e,this.helper=new Uint8Array(8),this.helperView=new DataView(this.helper.buffer)}writeU16(e){this.helperView.setUint16(0,e,!0),this.writer.write(this.helper.subarray(0,2))}writeU32(e){this.helperView.setUint32(0,e,!0),this.writer.write(this.helper.subarray(0,4))}writeU64(e){this.helperView.setUint32(0,e,!0),this.helperView.setUint32(4,Math.floor(e/2**32),!0),this.writer.write(this.helper)}writeAscii(e){this.writer.write(new TextEncoder().encode(e))}},Vje=class extends Mje{constructor(e,t){super(e),this.headerWritten=!1,this.dataSize=0,this.sampleRate=null,this.sampleCount=0,this.format=t,this.writer=e._writer,this.riffWriter=new Bje(e._writer),this.isRf64=!!t._options.large}async start(){}async getMimeType(){return`audio/wav`}async addEncodedVideoPacket(){throw Error(`WAVE does not support video.`)}async addEncodedAudioPacket(e,t,n){let r=await this.mutex.acquire();try{if(this.headerWritten||=(jje(n),e3(n),e3(n.decoderConfig),this.writeHeader(e,n.decoderConfig),this.sampleRate=n.decoderConfig.sampleRate,!0),this.validateAndNormalizeTimestamp(e,t.timestamp,t.type===`key`),!this.isRf64&&this.writer.getPos()+t.data.byteLength>=2**32)throw Error("Adding more audio data would exceed the maximum RIFF size of 4 GiB. To write larger files, use RF64 by setting `large: true` in the WavOutputFormatOptions.");this.writer.write(t.data),this.dataSize+=t.data.byteLength,this.sampleCount+=Math.round(t.duration*this.sampleRate),await this.writer.flush()}finally{r()}}async addSubtitleCue(){throw Error(`WAVE does not support subtitles.`)}writeHeader(e,t){this.format._options.onHeader&&this.writer.startTrackingWrites();let n,r=e.source._codec,i=f3(r);n=i.dataType===`ulaw`?E3.MULAW:i.dataType===`alaw`?E3.ALAW:i.dataType===`float`?E3.IEEE_FLOAT:E3.PCM;let a=t.numberOfChannels,o=t.sampleRate,s=i.sampleSize*a;if(this.riffWriter.writeAscii(this.isRf64?`RF64`:`RIFF`),this.isRf64?this.riffWriter.writeU32(4294967295):this.riffWriter.writeU32(0),this.riffWriter.writeAscii(`WAVE`),this.isRf64&&(this.riffWriter.writeAscii(`ds64`),this.riffWriter.writeU32(28),this.riffWriter.writeU64(0),this.riffWriter.writeU64(0),this.riffWriter.writeU64(0),this.riffWriter.writeU32(0)),this.riffWriter.writeAscii(`fmt `),this.riffWriter.writeU32(16),this.riffWriter.writeU16(n),this.riffWriter.writeU16(a),this.riffWriter.writeU32(o),this.riffWriter.writeU32(o*s),this.riffWriter.writeU16(s),this.riffWriter.writeU16(8*i.sampleSize),this.riffWriter.writeAscii(`data`),this.isRf64?this.riffWriter.writeU32(4294967295):this.riffWriter.writeU32(0),this.format._options.onHeader){let{data:e,start:t}=this.writer.stopTrackingWrites();this.format._options.onHeader(e,t)}}async finalize(){let e=await this.mutex.acquire(),t=this.writer.getPos();this.isRf64?(this.writer.seek(20),this.riffWriter.writeU64(t-8),this.writer.seek(28),this.riffWriter.writeU64(this.dataSize),this.writer.seek(36),this.riffWriter.writeU64(this.sampleCount)):(this.writer.seek(4),this.riffWriter.writeU32(t-8),this.writer.seek(40),this.riffWriter.writeU32(this.dataSize)),this.writer.seek(t),e()}},D3=class{getSupportedVideoCodecs(){return this.getSupportedCodecs().filter(e=>s3.includes(e))}getSupportedAudioCodecs(){return this.getSupportedCodecs().filter(e=>l3.includes(e))}getSupportedSubtitleCodecs(){return this.getSupportedCodecs().filter(e=>u3.includes(e))}_codecUnsupportedHint(e){return``}},O3=class extends D3{constructor(e={}){if(!e||typeof e!=`object`)throw TypeError(`options must be an object.`);if(e.large!==void 0&&typeof e.large!=`boolean`)throw TypeError(`options.large, when provided, must be a boolean.`);if(e.onHeader!==void 0&&typeof e.onHeader!=`function`)throw TypeError(`options.onHeader, when provided, must be a function.`);super(),this._options=e}_createMuxer(e){return new Vje(e,this)}get _name(){return`WAVE`}getSupportedTrackCounts(){return{video:{min:0,max:0},audio:{min:1,max:1},subtitle:{min:0,max:0},total:{min:1,max:1}}}get fileExtension(){return`.wav`}get mimeType(){return`audio/wav`}getSupportedCodecs(){return[...c3.filter(e=>[`pcm-s16`,`pcm-s24`,`pcm-s32`,`pcm-f32`,`pcm-u8`,`ulaw`,`alaw`].includes(e))]}get supportsVideoRotationMetadata(){return!1}};const Hje=e=>{if(!e||typeof e!=`object`)throw TypeError(`Encoding config must be an object.`);if(!l3.includes(e.codec))throw TypeError(`Invalid audio codec '${e.codec}'. Must be one of: ${l3.join(`, `)}.`);if(e.bitrate===void 0&&(!c3.includes(e.codec)||e.codec===`flac`))throw TypeError(`config.bitrate must be provided for compressed audio codecs.`);if(e.bitrate!==void 0&&!(e.bitrate instanceof p3)&&(!Number.isInteger(e.bitrate)||e.bitrate<=0))throw TypeError(`config.bitrate, when provided, must be a positive integer or a quality.`);if(e.onEncodedPacket!==void 0&&typeof e.onEncodedPacket!=`function`)throw TypeError(`config.onEncodedChunk, when provided, must be a function.`);if(e.onEncoderConfig!==void 0&&typeof e.onEncoderConfig!=`function`)throw TypeError(`config.onEncoderConfig, when provided, must be a function.`);Uje(e.codec,e)},Uje=(e,t)=>{if(!t||typeof t!=`object`)throw TypeError(`Encoding options must be an object.`);if(t.bitrateMode!==void 0&&![`constant`,`variable`].includes(t.bitrateMode))throw TypeError(`bitrateMode, when provided, must be 'constant' or 'variable'.`);if(t.fullCodecString!==void 0&&typeof t.fullCodecString!=`string`)throw TypeError(`fullCodecString, when provided, must be a string.`);if(t.fullCodecString!==void 0&&Oje(t.fullCodecString)!==e)throw TypeError(`fullCodecString, when provided, must be a string that matches the specified codec (${e}).`)},Wje=e=>{let t=e.bitrate instanceof p3?e.bitrate._toAudioBitrate(e.codec):e.bitrate;return{codec:e.fullCodecString??Dje(e.codec,e.numberOfChannels,e.sampleRate),numberOfChannels:e.numberOfChannels,sampleRate:e.sampleRate,bitrate:t,bitrateMode:e.bitrateMode,...kje(e.codec)}};var k3=class{constructor(){this._connectedTrack=null,this._closingPromise=null,this._closed=!1,this._timestampOffset=0}_ensureValidAdd(){if(!this._connectedTrack)throw Error(`Source is not connected to an output track.`);if(this._connectedTrack.output.state===`canceled`)throw Error(`Output has been canceled.`);if(this._connectedTrack.output.state===`finalizing`||this._connectedTrack.output.state===`finalized`)throw Error(`Output has been finalized.`);if(this._connectedTrack.output.state===`pending`)throw Error(`Output has not started.`);if(this._closed)throw Error(`Source is closed.`)}async _start(){}async _flushAndClose(e){}close(){if(this._closingPromise)return;let e=this._connectedTrack;if(!e)throw Error(`Cannot call close without connecting the source to an output track.`);if(e.output.state===`pending`)throw Error(`Cannot call close before output has been started.`);this._closingPromise=(async()=>{await this._flushAndClose(!1),this._closed=!0,!(e.output.state===`finalizing`||e.output.state===`finalized`)&&e.output._muxer.onTrackClose(e)})()}async _flushOrWaitForOngoingClose(e){return this._closingPromise?this._closingPromise:this._flushAndClose(e)}},Gje=class extends k3{constructor(e){if(super(),this._connectedTrack=null,!s3.includes(e))throw TypeError(`Invalid video codec '${e}'. Must be one of: ${s3.join(`, `)}.`);this._codec=e}},A3=class extends k3{constructor(e){if(super(),this._connectedTrack=null,!l3.includes(e))throw TypeError(`Invalid audio codec '${e}'. Must be one of: ${l3.join(`, `)}.`);this._codec=e}},Kje=class{constructor(e,t){this.source=e,this.encodingConfig=t,this.ensureEncoderPromise=null,this.encoderInitialized=!1,this.encoder=null,this.muxer=null,this.lastNumberOfChannels=null,this.lastSampleRate=null,this.isPcmEncoder=!1,this.outputSampleSize=null,this.writeOutputValue=null,this.customEncoder=null,this.customEncoderCallSerializer=new Tje,this.customEncoderQueueSize=0,this.encoderError=null}async add(e,t){try{if(this.checkForEncoderError(),this.source._ensureValidAdd(),this.lastNumberOfChannels!==null&&this.lastSampleRate!==null){if(e.numberOfChannels!==this.lastNumberOfChannels||e.sampleRate!==this.lastSampleRate)throw Error(`Audio parameters must remain constant. Expected ${this.lastNumberOfChannels} channels at ${this.lastSampleRate} Hz, got ${e.numberOfChannels} channels at ${e.sampleRate} Hz.`)}else this.lastNumberOfChannels=e.numberOfChannels,this.lastSampleRate=e.sampleRate;if(this.encoderInitialized||(this.ensureEncoderPromise||this.ensureEncoder(e),this.encoderInitialized||await this.ensureEncoderPromise),e3(this.encoderInitialized),this.customEncoder){this.customEncoderQueueSize++;let t=e.clone(),n=this.customEncoderCallSerializer.call(()=>this.customEncoder.encode(t)).then(()=>this.customEncoderQueueSize--).catch(e=>this.encoderError??=e).finally(()=>{t.close()});this.customEncoderQueueSize>=4&&await n,await this.muxer.mutex.currentPromise}else if(this.isPcmEncoder)await this.doPcmEncoding(e,t);else{e3(this.encoder);let n=e.toAudioData();this.encoder.encode(n),n.close(),t&&e.close(),this.encoder.encodeQueueSize>=4&&await new Promise(e=>this.encoder.addEventListener(`dequeue`,e,{once:!0})),await this.muxer.mutex.currentPromise}}finally{t&&e.close()}}async doPcmEncoding(e,t){e3(this.outputSampleSize),e3(this.writeOutputValue);let{numberOfChannels:n,numberOfFrames:r,sampleRate:i,timestamp:a}=e,o=2048,s=[];for(let t=0;t{let{numberOfChannels:t,sampleRate:n}=e,r=Wje({numberOfChannels:t,sampleRate:n,...this.encodingConfig});this.encodingConfig.onEncoderConfig?.(r);let i=Fje.find(e=>e.supports(this.encodingConfig.codec,r));if(i)this.customEncoder=new i,this.customEncoder.codec=this.encodingConfig.codec,this.customEncoder.config=r,this.customEncoder.onPacket=(e,t)=>{if(!(e instanceof b3))throw TypeError(`The first argument passed to onPacket must be an EncodedPacket.`);if(t!==void 0&&(!t||typeof t!=`object`))throw TypeError(`The second argument passed to onPacket must be an object or undefined.`);this.encodingConfig.onEncodedPacket?.(e,t),this.muxer.addEncodedAudioPacket(this.source._connectedTrack,e,t)},await this.customEncoder.init();else if(c3.includes(this.encodingConfig.codec))this.initPcmEncoder();else{if(typeof AudioEncoder>`u`)throw Error(`AudioEncoder is not supported by this browser.`);let e=await AudioEncoder.isConfigSupported(r);if(!e.supported)throw Error(`This specific encoder configuration (${r.codec}, ${r.bitrate} bps, ${r.numberOfChannels} channels, ${r.sampleRate} Hz) is not supported by this browser. Consider using another codec or changing your audio parameters.`);this.encoder=new AudioEncoder({output:(e,t)=>{let n=b3.fromEncodedChunk(e);this.encodingConfig.onEncodedPacket?.(n,t),this.muxer.addEncodedAudioPacket(this.source._connectedTrack,n,t)},error:e=>{e.stack=Error().stack,this.encoderError??=e}}),this.encoder.configure(r)}e3(this.source._connectedTrack),this.muxer=this.source._connectedTrack.output._muxer,this.encoderInitialized=!0})()}initPcmEncoder(){this.isPcmEncoder=!0;let e=this.encodingConfig.codec,{dataType:t,sampleSize:n,littleEndian:r}=f3(e);switch(this.outputSampleSize=n,n){case 1:t===`unsigned`?this.writeOutputValue=(e,t,n)=>e.setUint8(t,a3((n+1)*127.5,0,255)):t===`signed`?this.writeOutputValue=(e,t,n)=>{e.setInt8(t,a3(Math.round(n*128),-128,127))}:t===`ulaw`?this.writeOutputValue=(e,t,n)=>{let r=a3(Math.floor(n*32767),-32768,32767);e.setUint8(t,Ije(r))}:t===`alaw`?this.writeOutputValue=(e,t,n)=>{let r=a3(Math.floor(n*32767),-32768,32767);e.setUint8(t,Lje(r))}:e3(!1);break;case 2:t===`unsigned`?this.writeOutputValue=(e,t,n)=>e.setUint16(t,a3((n+1)*32767.5,0,65535),r):t===`signed`?this.writeOutputValue=(e,t,n)=>e.setInt16(t,a3(Math.round(n*32767),-32768,32767),r):e3(!1);break;case 3:t===`unsigned`?this.writeOutputValue=(e,t,n)=>i3(e,t,a3((n+1)*8388607.5,0,16777215),r):t===`signed`?this.writeOutputValue=(e,t,n)=>Sje(e,t,a3(Math.round(n*8388607),-8388608,8388607),r):e3(!1);break;case 4:t===`unsigned`?this.writeOutputValue=(e,t,n)=>e.setUint32(t,a3((n+1)*2147483647.5,0,4294967295),r):t===`signed`?this.writeOutputValue=(e,t,n)=>e.setInt32(t,a3(Math.round(n*2147483647),-2147483648,2147483647),r):t===`float`?this.writeOutputValue=(e,t,n)=>e.setFloat32(t,n,r):e3(!1);break;case 8:t===`float`?this.writeOutputValue=(e,t,n)=>e.setFloat64(t,n,r):e3(!1);break;default:xje(n),e3(!1)}}async flushAndClose(e){this.checkForEncoderError(),this.customEncoder?(e||this.customEncoderCallSerializer.call(()=>this.customEncoder.flush()),await this.customEncoderCallSerializer.call(()=>this.customEncoder.close())):this.encoder&&(e||await this.encoder.flush(),this.encoder.close()),this.checkForEncoderError()}getQueueSize(){return this.customEncoder?this.customEncoderQueueSize:this.isPcmEncoder?0:this.encoder?.encodeQueueSize??0}checkForEncoderError(){if(this.encoderError)throw this.encoderError}},j3=class extends A3{get errorPromise(){return this._errorPromiseAccessed=!0,this._promiseWithResolvers.promise}constructor(e,t){if(!(e instanceof MediaStreamTrack)||e.kind!==`audio`)throw TypeError(`track must be an audio MediaStreamTrack.`);Hje(t),super(t.codec),this._abortController=null,this._audioContext=null,this._scriptProcessorNode=null,this._promiseWithResolvers=bje(),this._errorPromiseAccessed=!1,this._encoder=new Kje(this,t),this._track=e}async _start(){if(this._errorPromiseAccessed||console.warn("Make sure not to ignore the `errorPromise` field on MediaStreamVideoTrackSource, so that any internal errors get bubbled up properly."),this._abortController=new AbortController,typeof MediaStreamTrackProcessor<`u`){let e=null,t=new MediaStreamTrackProcessor({track:this._track}),n=new WritableStream({write:t=>{if(e===null){e=t.timestamp/1e6;let n=this._connectedTrack.output._muxer;n.firstMediaStreamTimestamp===null?(n.firstMediaStreamTimestamp=performance.now()/1e3,this._timestampOffset=-e):this._timestampOffset=performance.now()/1e3-n.firstMediaStreamTimestamp-e}if(this._encoder.getQueueSize()>=4){t.close();return}this._encoder.add(new S3(t),!0).catch(e=>{this._abortController?.abort(),this._promiseWithResolvers.reject(e)})}});t.readable.pipeTo(n,{signal:this._abortController.signal}).catch(e=>{e instanceof DOMException&&e.name===`AbortError`||this._promiseWithResolvers.reject(e)})}else{let e=window.AudioContext||window.webkitAudioContext;this._audioContext=new e({sampleRate:this._track.getSettings().sampleRate});let t=this._audioContext.createMediaStreamSource(new MediaStream([this._track]));this._scriptProcessorNode=this._audioContext.createScriptProcessor(4096),this._audioContext.state===`suspended`&&await this._audioContext.resume(),t.connect(this._scriptProcessorNode),this._scriptProcessorNode.connect(this._audioContext.destination);let n=!1,r=0;this._scriptProcessorNode.onaudioprocess=e=>{let t=S3._fromAudioBuffer(e.inputBuffer,r);r+=e.inputBuffer.duration;for(let e of t){if(!n){n=!0;let e=this._connectedTrack.output._muxer;e.firstMediaStreamTimestamp===null?e.firstMediaStreamTimestamp=performance.now()/1e3:this._timestampOffset=performance.now()/1e3-e.firstMediaStreamTimestamp}if(this._encoder.getQueueSize()>=4){e.close();continue}this._encoder.add(e,!0).catch(e=>{this._audioContext.suspend(),this._promiseWithResolvers.reject(e)})}}}}async _flushAndClose(e){this._abortController&&=(this._abortController.abort(),null),this._audioContext&&(e3(this._scriptProcessorNode),this._scriptProcessorNode.disconnect(),await this._audioContext.suspend()),await this._encoder.flushAndClose(e)}},qje=class extends k3{constructor(e){if(super(),this._connectedTrack=null,!u3.includes(e))throw TypeError(`Invalid subtitle codec '${e}'. Must be one of: ${u3.join(`, `)}.`);this._codec=e}};const Jje=[`video`,`audio`,`subtitle`],M3=e=>{if(!e||typeof e!=`object`)throw TypeError(`metadata must be an object.`);if(e.languageCode!==void 0&&!wje(e.languageCode))throw TypeError(`metadata.languageCode, when provided, must be a three-letter, ISO 639-2/T language code.`);if(e.name!==void 0&&typeof e.name!=`string`)throw TypeError(`metadata.name, when provided, must be a string.`)};var N3=class{constructor(e){if(this.state=`pending`,this._tracks=[],this._startPromise=null,this._cancelPromise=null,this._finalizePromise=null,this._mutex=new r3,!e||typeof e!=`object`)throw TypeError(`options must be an object.`);if(!(e.format instanceof D3))throw TypeError(`options.format must be an OutputFormat.`);if(!(e.target instanceof _3))throw TypeError(`options.target must be a Target.`);if(e.target._output)throw Error(`Target is already used for another output.`);e.target._output=this,this.format=e.format,this.target=e.target,this._writer=e.target._createWriter(),this._muxer=e.format._createMuxer(this)}addVideoTrack(e,t={}){if(!(e instanceof Gje))throw TypeError(`source must be a VideoSource.`);if(M3(t),t.rotation!==void 0&&![0,90,180,270].includes(t.rotation))throw TypeError(`Invalid video rotation: ${t.rotation}. Has to be 0, 90, 180 or 270.`);if(!this.format.supportsVideoRotationMetadata&&t.rotation)throw Error(`${this.format._name} does not support video rotation metadata.`);if(t.frameRate!==void 0&&(!Number.isFinite(t.frameRate)||t.frameRate<=0))throw TypeError(`Invalid video frame rate: ${t.frameRate}. Must be a positive number.`);this._addTrack(`video`,e,t)}addAudioTrack(e,t={}){if(!(e instanceof A3))throw TypeError(`source must be an AudioSource.`);M3(t),this._addTrack(`audio`,e,t)}addSubtitleTrack(e,t={}){if(!(e instanceof qje))throw TypeError(`source must be a SubtitleSource.`);M3(t),this._addTrack(`subtitle`,e,t)}_addTrack(e,t,n){if(this.state!==`pending`)throw Error(`Cannot add track after output has been started or canceled.`);if(t._connectedTrack)throw Error(`Source is already used for a track.`);let r=this.format.getSupportedTrackCounts(),i=this._tracks.reduce((t,n)=>t+(n.type===e?1:0),0),a=r[e].max;if(i===a)throw Error(a===0?`${this.format._name} does not support ${e} tracks.`:`${this.format._name} does not support more than ${a} ${e} track${a===1?``:`s`}.`);let o=r.total.max;if(this._tracks.length===o)throw Error(`${this.format._name} does not support more than ${o} tracks${o===1?``:`s`} in total.`);let s={id:this._tracks.length+1,output:this,type:e,source:t,metadata:n};if(s.type===`video`){let e=this.format.getSupportedVideoCodecs();if(e.length===0)throw Error(`${this.format._name} does not support video tracks.`+this.format._codecUnsupportedHint(s.source._codec));if(!e.includes(s.source._codec))throw Error(`Codec '${s.source._codec}' cannot be contained within ${this.format._name}. Supported video codecs are: ${e.map(e=>`'${e}'`).join(`, `)}.`+this.format._codecUnsupportedHint(s.source._codec))}else if(s.type===`audio`){let e=this.format.getSupportedAudioCodecs();if(e.length===0)throw Error(`${this.format._name} does not support audio tracks.`+this.format._codecUnsupportedHint(s.source._codec));if(!e.includes(s.source._codec))throw Error(`Codec '${s.source._codec}' cannot be contained within ${this.format._name}. Supported audio codecs are: ${e.map(e=>`'${e}'`).join(`, `)}.`+this.format._codecUnsupportedHint(s.source._codec))}else if(s.type===`subtitle`){let e=this.format.getSupportedSubtitleCodecs();if(e.length===0)throw Error(`${this.format._name} does not support subtitle tracks.`+this.format._codecUnsupportedHint(s.source._codec));if(!e.includes(s.source._codec))throw Error(`Codec '${s.source._codec}' cannot be contained within ${this.format._name}. Supported subtitle codecs are: ${e.map(e=>`'${e}'`).join(`, `)}.`+this.format._codecUnsupportedHint(s.source._codec))}this._tracks.push(s),t._connectedTrack=s}async start(){let e=this.format.getSupportedTrackCounts();for(let t of Jje){let n=this._tracks.reduce((e,n)=>e+(n.type===t?1:0),0),r=e[t].min;if(n{this.state=`started`,this._writer.start();let e=await this._mutex.acquire();await this._muxer.start();let t=this._tracks.map(e=>e.source._start());await Promise.all(t),e()})()}getMimeType(){return this._muxer.getMimeType()}async cancel(){if(this._cancelPromise)return console.warn(`Output has already been canceled.`),this._cancelPromise;if(this.state===`finalizing`||this.state===`finalized`){console.warn(`Output has already been finalized.`);return}return this._cancelPromise=(async()=>{this.state=`canceled`;let e=await this._mutex.acquire(),t=this._tracks.map(e=>e.source._flushOrWaitForOngoingClose(!0));await Promise.all(t),await this._writer.close(),e()})()}async finalize(){if(this.state===`pending`)throw Error(`Cannot finalize before starting.`);if(this.state===`canceled`)throw Error(`Cannot finalize after canceling.`);return this._finalizePromise?(console.warn(`Output has already been finalized.`),this._finalizePromise):this._finalizePromise=(async()=>{this.state=`finalizing`;let e=await this._mutex.acquire(),t=this._tracks.map(e=>e.source._flushOrWaitForOngoingClose(!1));await Promise.all(t),await this._muxer.finalize(),await this._writer.flush(),await this._writer.finalize(),this.state=`finalized`,e()})()}};async function Yje(e){return e.getAudioTracks()[0]}function P3(e){let t=vn(e),n=fn(),r=F(),i=F(),a=F([]);function o(e){a.value.push(e)}async function s(){await GT(t).toBeTruthy();let e=await Yje(t.value);r.value=new N3({format:new O3,target:new v3});let n=new j3(e,{codec:`pcm-f32`,bitrate:m3});n.errorPromise.catch(console.error),r.value.addAudioTrack(n),i.value=await r.value.getMimeType(),await r.value.start()}async function c(){if(!r.value)return;await r.value?.finalize();let e=r.value?.target,t=e.buffer,n=new Blob([t],{type:i.value});for(let e of a.value)e(n);return n}return{startRecord:s,stopRecord:c,onStopRecord:o,recording:n}}function Xje(){let e=uE({constraints:{audio:!0},requestPermissions:!0}),t=U(()=>e.audioInputs.value),n=F(e.audioInputs.value[0]?.deviceId||``),r=U(()=>({audio:{deviceId:{exact:n.value},autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0}})),{stream:i,stop:a,start:o}=xE({constraints:r,enabled:!1,autoSwitch:!0});return Ba(t,()=>{!n.value&&t.value.length>0&&(n.value=t.value[0]?.deviceId)}),di(()=>{e.ensurePermissions().then(()=>Gn()).then(()=>{t.value.length>0&&!n.value&&(n.value=t.value.find(e=>e.deviceId===`default`)?.deviceId||t.value[0].deviceId)}).catch(e=>{console.error(`Error ensuring permissions:`,e)})}),{audioInputs:t,selectedAudioInput:n,stream:i,stopStream:a,startStream:o,deviceConstraints:r}}const Zje={"w-full":``,"pt-1":``},Qje={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},$je={class:`inline-flex items-center gap-4`},eMe={"mb-2":``},tMe=[`src`],nMe={key:0,class:`mt-2 text-sm text-neutral-500 dark:text-neutral-400`},rMe={class:`space-y-3`},iMe={class:`space-y-3`},aMe={class:`flex items-center gap-3`},oMe={class:`text-sm font-medium`};var sMe=R({__name:`TranscriptionPlayground`,props:{generateTranscription:{type:Function},apiKeyConfigured:{type:Boolean}},setup(e){let t=e,{t:n}=K1(),{audioInputs:r,selectedAudioInput:i,stream:a,stopStream:o,startStream:s}=Xje(),{volumeLevel:c,stopAnalyzer:l,startAnalyzer:u}=$4(),{startRecord:d,stopRecord:f,onStopRecord:p}=P3(a),m=F(25),h=F(!1),g=F(!1),_=F(``),v=F(),y=F(),b=F(),x=F([]),S=F([]),C=U(()=>x.value.map(e=>{let t=URL.createObjectURL(e);return S.value.push(()=>URL.revokeObjectURL(t)),t})),w=F([]);Ba(i,async()=>{h.value&&await T()}),Ba(r,()=>{!i.value&&r.value.length>0&&(i.value=r.value.find(e=>e.deviceId===`default`)?.deviceId||r.value[0].deviceId)});async function T(){try{await E(),await s(),await GT(a).toBeTruthy(),v.value=new AudioContext;let e=v.value.createMediaStreamSource(a.value),t=u(v.value);e.connect(t);let n=t.frequencyBinCount;y.value=new Uint8Array(n)}catch(e){console.error(`Error setting up audio monitoring:`,e),_.value=e instanceof Error?e.message:String(e)}}async function E(){b.value&&=(cancelAnimationFrame(b.value),void 0),a.value&&=(a.value.getTracks().forEach(e=>e.stop()),void 0),v.value&&=(await v.value.close(),void 0),await f(),await o(),await l(),y.value=void 0,g.value=!1}p(async e=>{try{if(e&&e.size>0){x.value.push(e);let n=await t.generateTranscription(new File([e],`recording.wav`));w.value.push(n.text)}}catch(e){_.value=e instanceof Error?e.message:String(e),console.error(`Error generating transcription:`,_.value)}});async function D(){h.value?(await E(),await f(),h.value=!1):(await T(),await d(),h.value=!0)}let O=U(()=>g.value?`bg-green-500 shadow-lg shadow-green-500/50`:`bg-white dark:bg-neutral-900 border-2 border-neutral-300 dark:border-neutral-600`);return hi(()=>{E()}),(e,t)=>(z(),B(`div`,Zje,[V(`h2`,Qje,[V(`div`,$je,[H(I(qR)),V(`div`,null,Pe(I(n)(`settings.pages.providers.provider.transcriptions.playground.title`)),1)])]),V(`div`,eMe,[H(I(DM),{modelValue:I(i),"onUpdate:modelValue":t[0]||=e=>dn(i)?i.value=e:null,label:`Audio Input Device`,description:`Select the audio input device for your hearing module.`,options:I(r).map(e=>({label:e.label||e.deviceId,value:e.deviceId})),placeholder:`Select an audio input device`,layout:`vertical`,"h-fit":``,"w-full":``},null,8,[`modelValue`,`options`])]),H(I(kQ),{class:`my-4`,"w-full":``,onClick:D},{default:L(()=>[Fo(Pe(h.value?`Stop Monitoring`:`Start Monitoring`),1)]),_:1}),V(`div`,null,[(z(!0),B(vo,null,Di(C.value,(e,t)=>(z(),B(`div`,{key:t,class:`mb-2`},[V(`audio`,{src:e,controls:``,class:`w-full`},null,8,tMe),w.value[t]?(z(),B(`div`,nMe,Pe(w.value[t]),1)):Lo(``,!0)]))),128))]),V(`div`,rMe,[H(I(zR),{level:I(c),label:`Input Level`},null,8,[`level`]),H(I(nz),{value:I(c)/100,threshold:m.value/100,label:`Probability of Speech`,"below-label":`Silence`,"above-label":`Speech`,"threshold-label":`Detection threshold`},null,8,[`value`,`threshold`]),V(`div`,iMe,[H(I(EM),{modelValue:m.value,"onUpdate:modelValue":t[1]||=e=>m.value=e,label:`Sensitivity`,description:`Adjust the threshold for speech detection`,min:1,max:80,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`format-value`])]),V(`div`,aMe,[V(`div`,{class:Te([`h-4 w-4 rounded-full transition-all duration-200`,O.value])},null,2),V(`span`,oMe,Pe(g.value?`Speaking Detected`:`Silence`),1)])])]))}}),cMe=sMe;const lMe={flex:`~ col md:row gap-6`},uMe={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},dMe={"w-full":``,"rounded-xl":``};var fMe=R({__name:`TranscriptionProviderSettings`,props:{providerId:{},defaultModel:{},additionalSettings:{},placeholder:{}},setup(e){let t=e,{t:n}=K1(),r=Gk(),i=T0(),{providers:a}=WO(i),o=U(()=>i.getProviderMetadata(t.providerId)),s=U({get:()=>a.value[t.providerId]?.apiKey||``,set:e=>{a.value[t.providerId]||(a.value[t.providerId]={}),a.value[t.providerId].apiKey=e}}),c=U({get:()=>a.value[t.providerId]?.baseUrl||o.value?.defaultOptions?.().baseUrl||``,set:e=>{a.value[t.providerId]||(a.value[t.providerId]={}),a.value[t.providerId].baseUrl=e}});di(()=>{i.initializeProvider(t.providerId),s.value=a.value[t.providerId]?.apiKey||``,c.value=a.value[t.providerId]?.baseUrl||o.value?.defaultOptions?.().baseUrl||``});function l(){s.value=``,c.value=o.value?.defaultOptions?.().baseUrl||``}return(e,i)=>(z(),Oo(I(N0),{"provider-name":o.value?.localizedName,"provider-icon":o.value?.icon,"on-back":()=>I(r).back()},{default:L(()=>[V(`div`,lMe,[H(I(M0),{class:`w-full md:w-[40%]`},{default:L(()=>[H(I(j0),{title:I(n)(`settings.pages.providers.common.section.basic.title`),description:I(n)(`settings.pages.providers.common.section.basic.description`),"on-reset":l},{default:L(()=>[H(I(k0),{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,"provider-name":o.value?.localizedName,placeholder:t.placeholder||`API Key`},null,8,[`modelValue`,`provider-name`,`placeholder`]),ki(e.$slots,`basic-settings`)]),_:3},8,[`title`,`description`]),H(I(O0),{title:I(n)(`settings.pages.providers.common.section.advanced.title`)},{default:L(()=>[H(I(A0),{modelValue:c.value,"onUpdate:modelValue":i[1]||=e=>c.value=e,placeholder:o.value?.defaultOptions?.().baseUrl||``,required:``},null,8,[`modelValue`,`placeholder`]),ki(e.$slots,`advanced-settings`)]),_:3},8,[`title`])]),_:3}),V(`div`,uMe,[V(`div`,dMe,[ki(e.$slots,`playground`)])])])]),_:3},8,[`provider-name`,`provider-icon`,`on-back`]))}}),pMe=fMe;const mMe={"h-full":``,"w-full":``},hMe={key:0,"h-full":``,flex:``,"flex-col":``},gMe={class:`mb-2 text-center md:mb-8`,flex:``,"flex-1":``,"flex-col":``,"justify-center":``},_Me={initial:{opacity:0,scale:.5},visible:{opacity:1,scale:1},duration:500,class:`mb-1 flex justify-center md:mb-4 lg:pt-16 md:pt-8`},vMe=[`src`],yMe={initial:{opacity:0,y:10},visible:{opacity:1,y:0},duration:500,class:`mb-0 text-3xl text-neutral-800 font-bold md:mb-2 dark:text-neutral-100`},bMe={initial:{opacity:0,y:10},visible:{opacity:1,y:0},duration:500,delay:100,class:`text-sm text-neutral-600 md:text-lg dark:text-neutral-400`},xMe={key:1,"h-full":``,flex:``,"flex-col":``,"gap-4":``},SMe={sticky:``,"top-0":``,"z-100":``,flex:``,"flex-shrink-0":``,"items-center":``,"gap-2":``},CMe={class:`flex-1 text-center text-xl text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`},wMe={class:`flex-1 overflow-y-auto`},TMe={class:`grid grid-cols-1 gap-3 sm:grid-cols-2`},EMe={key:2,"h-full":``,flex:``,"flex-col":``,"gap-4":``},DMe={sticky:``,"top-0":``,"z-100":``,flex:``,"flex-shrink-0":``,"items-center":``,"gap-2":``},OMe={class:`flex-1 text-center text-xl text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`},kMe={key:0,"flex-1":``,"overflow-y-auto":``,"space-y-4":``},AMe={class:`space-y-4`},jMe={key:0},MMe={key:1},NMe={key:2},PMe={class:`whitespace-pre-wrap break-all`},FMe={key:3,"h-full":``,flex:``,"flex-col":``,"gap-4":``},IMe={sticky:``,"top-0":``,"z-100":``,flex:``,"flex-shrink-0":``,"items-center":``,"gap-2":``},LMe={class:`flex-1 text-center text-xl text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`},RMe={"flex-1":``},zMe={class:`whitespace-pre-wrap break-all`};var BMe=R({__name:`Onboarding`,emits:[`configured`,`skipped`],setup(e,{emit:t}){let n=t,r=F(1),i=F(`next`),{t:a}=K1(),o=T0(),{providers:s,allChatProvidersMetadata:c}=WO(o),l=E0(),{activeModel:u,activeProvider:d,modelSearchQuery:f,providerModels:p,isLoadingActiveProviderModels:m}=WO(l),h=U(()=>{let e=[`openai`,`anthropic`,`google-generative-ai`,`openrouter-ai`,`ollama`,`deepseek`,`player2`,`openai-compatible`];return c.value.filter(t=>e.includes(t.id)).sort((t,n)=>e.indexOf(t.id)-e.indexOf(n.id))}),g=F(``),_=F(``),v=F(``),y=F(``),b=U(()=>c.value.find(e=>e.id===g.value)||null),x=F(0),S=F(!1),C=F(``),w=U(()=>b.value?b.value.id!==`ollama`&&b.value.id!==`player2`:!1),T=U(()=>b.value?b.value.id!==`cloudflare-workers-ai`:!1),E=U(()=>!b.value||w.value&&!_.value.trim()||T.value&&!v.value.trim()||b.value.id===`cloudflare-workers-ai`&&!y.value.trim()||!u.value?!1:S.value);function D(e){g.value=e.id;let t=e.defaultOptions?.()||{};v.value=t?.baseUrl||``,_.value=``,y.value=``,S.value=!1,C.value=``}function O(e){let t={openai:`sk-...`,anthropic:`sk-ant-...`,"google-generative-ai":`GEMINI_API_KEY`,"openrouter-ai":`sk-or-...`,deepseek:`sk-...`,xai:`xai-...`,"together-ai":`togetherapi-...`,"mistral-ai":`mis-...`,"moonshot-ai":`ms-...`,modelscope:`ms-...`,"fireworks-ai":`fw-...`,"featherless-ai":`fw-...`,"novita-ai":`nvt-...`};return t[e]||`API Key`}function k(e){let t=b.value?.defaultOptions?.()||{};return t?.baseUrl||`https://api.example.com/v1/`}async function A(){if(!b.value)return;x.value++;let e=performance.now(),t=``;try{let e={};w.value&&(e.apiKey=_.value.trim()),T.value&&(e.baseUrl=v.value.trim()),b.value.id===`cloudflare-workers-ai`&&(e.accountId=y.value.trim());let n=o.getProviderMetadata(b.value.id),r=await n.validators.validateProviderConfig(e);S.value=r.valid,S.value||(t=r.reason)}catch(e){S.value=!1,t=a(`settings.dialogs.onboarding.validationError`,{error:e instanceof Error?e.message:String(e)})}finally{setTimeout(()=>{x.value--,C.value=t},500-(performance.now()-e))}}let j=FT(()=>{b.value&&(w.value&&!_.value.trim()||T.value&&!v.value.trim()||b.value.id===`cloudflare-workers-ai`&&!y.value.trim()||A())},500);Ba([_,v,y],()=>{b.value&&(_.value||v.value||y.value)&&j()},{deep:!0});function M(){r.value>1&&(i.value=`previous`,r.value--)}function ee(){r.value<4?(i.value=`next`,r.value++):N()}async function te(){if(!b.value)return;let e={};w.value&&(e.apiKey=_.value.trim()),T.value&&(e.baseUrl=v.value.trim()),b.value.id===`cloudflare-workers-ai`&&(e.accountId=y.value.trim()),s.value[b.value.id]={...s.value[b.value.id],...e},d.value=b.value.id,await Gn();try{await l.loadModelsForProvider(b.value.id)}catch(e){console.error(`error`,e)}ee()}async function N(){n(`configured`)}return di(()=>{h.value.length>0&&(g.value=h.value[0].id,D(h.value[0]))}),(e,t)=>{let n=wi(`motion`);return z(),B(`div`,mMe,[H(Fs,{name:i.value===`next`?`slide-next`:`slide-prev`,mode:`out-in`},{default:L(()=>[r.value===1?(z(),B(`div`,hMe,[V(`div`,gMe,[cr((z(),B(`div`,_Me,[V(`img`,{src:I(JDe),"max-h":`50`,"aspect-square":``,"h-auto":``,"w-auto":``,"object-cover":``},null,8,vMe)])),[[n]]),cr((z(),B(`h2`,yMe,[Fo(Pe(I(a)(`settings.dialogs.onboarding.title`)),1)])),[[n]]),cr((z(),B(`p`,bMe,[Fo(Pe(I(a)(`settings.dialogs.onboarding.description`)),1)])),[[n]])]),cr(H(I(kQ),{initial:{opacity:0},visible:{opacity:1},duration:500,delay:200,label:I(a)(`settings.dialogs.onboarding.start`),onClick:ee},null,8,[`label`]),[[n]])])):r.value===2?(z(),B(`div`,xMe,[V(`div`,SMe,[V(`button`,{"outline-none":``,onClick:M},[...t[6]||=[V(`div`,{class:`i-solar:alt-arrow-left-line-duotone h-5 w-5`},null,-1)]]),V(`h2`,CMe,Pe(I(a)(`settings.dialogs.onboarding.selectProvider`)),1),t[7]||=V(`div`,{class:`h-5 w-5`},null,-1)]),V(`div`,wMe,[V(`div`,TMe,[(z(!0),B(vo,null,Di(h.value,e=>(z(),Oo(I(EQ),{id:e.id,key:e.id,modelValue:g.value,"onUpdate:modelValue":t[0]||=e=>g.value=e,name:`provider-selection`,value:e.id,title:e.localizedName||e.id,description:e.localizedDescription||``,onClick:t=>D(e)},null,8,[`id`,`modelValue`,`value`,`title`,`description`,`onClick`]))),128))])]),H(I(kQ),{label:I(a)(`settings.dialogs.onboarding.next`),disabled:!g.value,onClick:ee},null,8,[`label`,`disabled`])])):r.value===3&&b.value?(z(),B(`div`,EMe,[V(`div`,DMe,[V(`button`,{"outline-none":``,onClick:M},[...t[8]||=[V(`div`,{"i-solar:alt-arrow-left-line-duotone":``,"h-5":``,"w-5":``},null,-1)]]),V(`h2`,OMe,Pe(I(a)(`settings.dialogs.onboarding.configureProvider`,{provider:b.value.localizedName})),1),t[9]||=V(`div`,{"h-5":``,"w-5":``},null,-1)]),b.value?(z(),B(`div`,kMe,[H(I(Rz),{label:`Keep your API keys and credentials safe!`,theme:`violet`},{default:L(()=>[...t[10]||=[V(`div`,null,[V(`div`,null,` AIRI is running pure locally in your browser, and we will never steal your credentials for AI / LLM providers. But keep in mind that your API keys are sensitive information. Make sure to keep them safe and do not share them with anyone. `),V(`div`,null,[Fo(` AIRI is open sourced at `),V(`div`,{"inline-flex":``,"translate-y-1":``,"items-center":``,"gap-1":``},[V(`div`,{"i-simple-icons:github":``,"inline-block":``}),V(`a`,{"decoration-underline":``,"decoration-dashed":``,href:`https://github.com/moeru-ai/airi`,target:`_blank`,rel:`noopener noreferrer`},`GitHub`)]),Fo(`, if you want to check how we handle your credentials, feel free to inspect our code. `)])],-1)]]),_:1}),V(`div`,AMe,[w.value?(z(),B(`div`,jMe,[H(I(wM),{modelValue:_.value,"onUpdate:modelValue":t[1]||=e=>_.value=e,placeholder:O(b.value.id),type:`password`,label:`API Key`,description:`Enter your API key for the selected provider.`,required:``},null,8,[`modelValue`,`placeholder`])])):Lo(``,!0),T.value?(z(),B(`div`,MMe,[H(I(wM),{modelValue:v.value,"onUpdate:modelValue":t[2]||=e=>v.value=e,placeholder:k(b.value.id),type:`text`,label:`Base URL`,description:`Enter the base URL for the provider's API.`},null,8,[`modelValue`,`placeholder`])])):Lo(``,!0),b.value.id===`cloudflare-workers-ai`?(z(),B(`div`,NMe,[H(I(D0),{modelValue:y.value,"onUpdate:modelValue":t[3]||=e=>y.value=e},null,8,[`modelValue`])])):Lo(``,!0)]),!S.value&&x.value===0&&C.value?(z(),Oo(DQ,{key:0,type:`error`},Oi({title:L(()=>[Fo(Pe(I(a)(`settings.dialogs.onboarding.validationFailed`)),1)]),_:2},[C.value?{name:`content`,fn:L(()=>[V(`div`,PMe,Pe(C.value),1)]),key:`0`}:void 0]),1024)):Lo(``,!0),S.value&&x.value===0?(z(),Oo(DQ,{key:1,type:`success`},{title:L(()=>[Fo(Pe(I(a)(`settings.dialogs.onboarding.validationSuccess`)),1)]),_:1})):Lo(``,!0)])):Lo(``,!0),H(I(kQ),{label:I(a)(`settings.dialogs.onboarding.next`),loading:I(m)||x.value>0,disabled:!g.value||w.value&&_.value.trim().length===0||!S.value,onClick:te},null,8,[`label`,`loading`,`disabled`])])):r.value===4&&b.value?(z(),B(`div`,FMe,[V(`div`,IMe,[V(`button`,{"outline-none":``,onClick:M},[...t[11]||=[V(`div`,{"i-solar:alt-arrow-left-line-duotone":``,"h-5":``,"w-5":``},null,-1)]]),V(`h2`,LMe,Pe(I(a)(`settings.dialogs.onboarding.select-model`)),1),t[12]||=V(`div`,{"h-5":``,"w-5":``},null,-1)]),V(`div`,RMe,[I(p).length>0?(z(),Oo(I(OQ),{key:0,modelValue:I(u),"onUpdate:modelValue":t[4]||=e=>dn(u)?u.value=e:null,"search-query":I(f),"onUpdate:searchQuery":t[5]||=e=>dn(f)?f.value=e:null,items:I(p).toSorted((e,t)=>e.id===I(u)?-1:t.id===I(u)?1:0),searchable:!0,"search-placeholder":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:I(f)}),"search-results-text":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"list-class":`max-h-[calc(100dvh-17rem)] sm:max-h-120`},null,8,[`modelValue`,`search-query`,`items`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`])):(z(),Oo(DQ,{key:1,type:`error`},{title:L(()=>[Fo(Pe(I(a)(`settings.dialogs.onboarding.no-models`)),1)]),content:L(()=>[V(`div`,zMe,Pe(I(a)(`settings.dialogs.onboarding.no-models-help`)),1)]),_:1}))]),H(I(kQ),{variant:`primary`,disabled:!E.value,label:I(a)(`settings.dialogs.onboarding.saveAndContinue`),onClick:N},null,8,[`disabled`,`label`])])):Lo(``,!0)]),_:1},8,[`name`])])}}}),F3=TM(BMe,[[`__scopeId`,`data-v-338774a2`]]),VMe=R({__name:`OnboardingDialog`,props:{modelValue:{type:Boolean,default:!1,required:!1},modelModifiers:{}},emits:Yi([`configured`,`skipped`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,r=Wa(e,`modelValue`),i=$T(`(min-width: 768px)`),a=yE();return dE(document.documentElement,()=>a.update()),di(()=>a.update()),(e,t)=>I(i)?(z(),Oo(I(DA),{key:0,open:r.value,"onUpdate:open":t[2]||=e=>r.value=e},{default:L(()=>[H(I(JA),null,{default:L(()=>[H(I(KA),{class:`fixed inset-0 z-[9999] bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),H(I(GA),{class:`fixed left-1/2 top-1/2 z-[9999] max-h-full max-w-2xl w-[92dvw] transform overflow-y-scroll rounded-2xl bg-white p-6 shadow-xl outline-none backdrop-blur-md scrollbar-none -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:bg-neutral-900`},{default:L(()=>[H(I(QA),null,{default:L(()=>[H(I(YA),null,{default:L(()=>[...t[6]||=[Fo(`Onboarding`,-1)]]),_:1})]),_:1}),H(F3,{onConfigured:t[0]||=e=>n(`configured`),onSkipped:t[1]||=e=>n(`skipped`)})]),_:1})]),_:1})]),_:1},8,[`open`])):(z(),Oo(I(HQ),{key:1,open:r.value,"should-scale-background":``,"onUpdate:open":t[5]||=e=>r.value=e},{default:L(()=>[H(I(JA),null,{default:L(()=>[H(I(UQ),{class:`fixed inset-0`}),H(I(WQ),{class:`fixed bottom-0 left-0 right-0 z-1000 mt-20 h-full max-h-[96%] flex flex-col rounded-t-2xl bg-neutral-50 px-4 pt-4 outline-none backdrop-blur-md dark:bg-neutral-900/95`,style:be({paddingBottom:`${Math.max(Number.parseFloat(I(a).bottom.value.replace(`px`,``)),24)}px`})},{default:L(()=>[H(I(GQ)),H(F3,{onConfigured:t[3]||=e=>n(`configured`),onSkipped:t[4]||=e=>n(`skipped`)})]),_:1},8,[`style`])]),_:1})]),_:1},8,[`open`]))}}),HMe=VMe;const UMe=Symbol(`ToasterRoot`);var WMe=R({__name:`ToasterRoot`,emits:[`close`],setup(e,{emit:t}){let n=t;return ca(UMe,{close:e=>n(`close`,e)}),(e,t)=>ki(e.$slots,`default`)}}),GMe=WMe,KMe={prompt:{prefix:`(from Neko Ayaka) Good morning! You are finally awake. +var WMe=class{constructor(e){this.writer=e,this.helper=new Uint8Array(8),this.helperView=new DataView(this.helper.buffer)}writeU16(e){this.helperView.setUint16(0,e,!0),this.writer.write(this.helper.subarray(0,2))}writeU32(e){this.helperView.setUint32(0,e,!0),this.writer.write(this.helper.subarray(0,4))}writeU64(e){this.helperView.setUint32(0,e,!0),this.helperView.setUint32(4,Math.floor(e/2**32),!0),this.writer.write(this.helper)}writeAscii(e){this.writer.write(new TextEncoder().encode(e))}},GMe=class extends IMe{constructor(e,t){super(e),this.headerWritten=!1,this.dataSize=0,this.sampleRate=null,this.sampleCount=0,this.format=t,this.writer=e._writer,this.riffWriter=new WMe(e._writer),this.isRf64=!!t._options.large}async start(){}async getMimeType(){return`audio/wav`}async addEncodedVideoPacket(){throw Error(`WAVE does not support video.`)}async addEncodedAudioPacket(e,t,n){let r=await this.mutex.acquire();try{if(this.headerWritten||=(FMe(n),e3(n),e3(n.decoderConfig),this.writeHeader(e,n.decoderConfig),this.sampleRate=n.decoderConfig.sampleRate,!0),this.validateAndNormalizeTimestamp(e,t.timestamp,t.type===`key`),!this.isRf64&&this.writer.getPos()+t.data.byteLength>=2**32)throw Error("Adding more audio data would exceed the maximum RIFF size of 4 GiB. To write larger files, use RF64 by setting `large: true` in the WavOutputFormatOptions.");this.writer.write(t.data),this.dataSize+=t.data.byteLength,this.sampleCount+=Math.round(t.duration*this.sampleRate),await this.writer.flush()}finally{r()}}async addSubtitleCue(){throw Error(`WAVE does not support subtitles.`)}writeHeader(e,t){this.format._options.onHeader&&this.writer.startTrackingWrites();let n,r=e.source._codec,i=f3(r);n=i.dataType===`ulaw`?E3.MULAW:i.dataType===`alaw`?E3.ALAW:i.dataType===`float`?E3.IEEE_FLOAT:E3.PCM;let a=t.numberOfChannels,o=t.sampleRate,s=i.sampleSize*a;if(this.riffWriter.writeAscii(this.isRf64?`RF64`:`RIFF`),this.isRf64?this.riffWriter.writeU32(4294967295):this.riffWriter.writeU32(0),this.riffWriter.writeAscii(`WAVE`),this.isRf64&&(this.riffWriter.writeAscii(`ds64`),this.riffWriter.writeU32(28),this.riffWriter.writeU64(0),this.riffWriter.writeU64(0),this.riffWriter.writeU64(0),this.riffWriter.writeU32(0)),this.riffWriter.writeAscii(`fmt `),this.riffWriter.writeU32(16),this.riffWriter.writeU16(n),this.riffWriter.writeU16(a),this.riffWriter.writeU32(o),this.riffWriter.writeU32(o*s),this.riffWriter.writeU16(s),this.riffWriter.writeU16(8*i.sampleSize),this.riffWriter.writeAscii(`data`),this.isRf64?this.riffWriter.writeU32(4294967295):this.riffWriter.writeU32(0),this.format._options.onHeader){let{data:e,start:t}=this.writer.stopTrackingWrites();this.format._options.onHeader(e,t)}}async finalize(){let e=await this.mutex.acquire(),t=this.writer.getPos();this.isRf64?(this.writer.seek(20),this.riffWriter.writeU64(t-8),this.writer.seek(28),this.riffWriter.writeU64(this.dataSize),this.writer.seek(36),this.riffWriter.writeU64(this.sampleCount)):(this.writer.seek(4),this.riffWriter.writeU32(t-8),this.writer.seek(40),this.riffWriter.writeU32(this.dataSize)),this.writer.seek(t),e()}},D3=class{getSupportedVideoCodecs(){return this.getSupportedCodecs().filter(e=>s3.includes(e))}getSupportedAudioCodecs(){return this.getSupportedCodecs().filter(e=>l3.includes(e))}getSupportedSubtitleCodecs(){return this.getSupportedCodecs().filter(e=>u3.includes(e))}_codecUnsupportedHint(e){return``}},O3=class extends D3{constructor(e={}){if(!e||typeof e!=`object`)throw TypeError(`options must be an object.`);if(e.large!==void 0&&typeof e.large!=`boolean`)throw TypeError(`options.large, when provided, must be a boolean.`);if(e.onHeader!==void 0&&typeof e.onHeader!=`function`)throw TypeError(`options.onHeader, when provided, must be a function.`);super(),this._options=e}_createMuxer(e){return new GMe(e,this)}get _name(){return`WAVE`}getSupportedTrackCounts(){return{video:{min:0,max:0},audio:{min:1,max:1},subtitle:{min:0,max:0},total:{min:1,max:1}}}get fileExtension(){return`.wav`}get mimeType(){return`audio/wav`}getSupportedCodecs(){return[...c3.filter(e=>[`pcm-s16`,`pcm-s24`,`pcm-s32`,`pcm-f32`,`pcm-u8`,`ulaw`,`alaw`].includes(e))]}get supportsVideoRotationMetadata(){return!1}};const KMe=e=>{if(!e||typeof e!=`object`)throw TypeError(`Encoding config must be an object.`);if(!l3.includes(e.codec))throw TypeError(`Invalid audio codec '${e.codec}'. Must be one of: ${l3.join(`, `)}.`);if(e.bitrate===void 0&&(!c3.includes(e.codec)||e.codec===`flac`))throw TypeError(`config.bitrate must be provided for compressed audio codecs.`);if(e.bitrate!==void 0&&!(e.bitrate instanceof p3)&&(!Number.isInteger(e.bitrate)||e.bitrate<=0))throw TypeError(`config.bitrate, when provided, must be a positive integer or a quality.`);if(e.onEncodedPacket!==void 0&&typeof e.onEncodedPacket!=`function`)throw TypeError(`config.onEncodedChunk, when provided, must be a function.`);if(e.onEncoderConfig!==void 0&&typeof e.onEncoderConfig!=`function`)throw TypeError(`config.onEncoderConfig, when provided, must be a function.`);qMe(e.codec,e)},qMe=(e,t)=>{if(!t||typeof t!=`object`)throw TypeError(`Encoding options must be an object.`);if(t.bitrateMode!==void 0&&![`constant`,`variable`].includes(t.bitrateMode))throw TypeError(`bitrateMode, when provided, must be 'constant' or 'variable'.`);if(t.fullCodecString!==void 0&&typeof t.fullCodecString!=`string`)throw TypeError(`fullCodecString, when provided, must be a string.`);if(t.fullCodecString!==void 0&&MMe(t.fullCodecString)!==e)throw TypeError(`fullCodecString, when provided, must be a string that matches the specified codec (${e}).`)},JMe=e=>{let t=e.bitrate instanceof p3?e.bitrate._toAudioBitrate(e.codec):e.bitrate;return{codec:e.fullCodecString??jMe(e.codec,e.numberOfChannels,e.sampleRate),numberOfChannels:e.numberOfChannels,sampleRate:e.sampleRate,bitrate:t,bitrateMode:e.bitrateMode,...NMe(e.codec)}};var k3=class{constructor(){this._connectedTrack=null,this._closingPromise=null,this._closed=!1,this._timestampOffset=0}_ensureValidAdd(){if(!this._connectedTrack)throw Error(`Source is not connected to an output track.`);if(this._connectedTrack.output.state===`canceled`)throw Error(`Output has been canceled.`);if(this._connectedTrack.output.state===`finalizing`||this._connectedTrack.output.state===`finalized`)throw Error(`Output has been finalized.`);if(this._connectedTrack.output.state===`pending`)throw Error(`Output has not started.`);if(this._closed)throw Error(`Source is closed.`)}async _start(){}async _flushAndClose(e){}close(){if(this._closingPromise)return;let e=this._connectedTrack;if(!e)throw Error(`Cannot call close without connecting the source to an output track.`);if(e.output.state===`pending`)throw Error(`Cannot call close before output has been started.`);this._closingPromise=(async()=>{await this._flushAndClose(!1),this._closed=!0,!(e.output.state===`finalizing`||e.output.state===`finalized`)&&e.output._muxer.onTrackClose(e)})()}async _flushOrWaitForOngoingClose(e){return this._closingPromise?this._closingPromise:this._flushAndClose(e)}},YMe=class extends k3{constructor(e){if(super(),this._connectedTrack=null,!s3.includes(e))throw TypeError(`Invalid video codec '${e}'. Must be one of: ${s3.join(`, `)}.`);this._codec=e}},A3=class extends k3{constructor(e){if(super(),this._connectedTrack=null,!l3.includes(e))throw TypeError(`Invalid audio codec '${e}'. Must be one of: ${l3.join(`, `)}.`);this._codec=e}},XMe=class{constructor(e,t){this.source=e,this.encodingConfig=t,this.ensureEncoderPromise=null,this.encoderInitialized=!1,this.encoder=null,this.muxer=null,this.lastNumberOfChannels=null,this.lastSampleRate=null,this.isPcmEncoder=!1,this.outputSampleSize=null,this.writeOutputValue=null,this.customEncoder=null,this.customEncoderCallSerializer=new kMe,this.customEncoderQueueSize=0,this.encoderError=null}async add(e,t){try{if(this.checkForEncoderError(),this.source._ensureValidAdd(),this.lastNumberOfChannels!==null&&this.lastSampleRate!==null){if(e.numberOfChannels!==this.lastNumberOfChannels||e.sampleRate!==this.lastSampleRate)throw Error(`Audio parameters must remain constant. Expected ${this.lastNumberOfChannels} channels at ${this.lastSampleRate} Hz, got ${e.numberOfChannels} channels at ${e.sampleRate} Hz.`)}else this.lastNumberOfChannels=e.numberOfChannels,this.lastSampleRate=e.sampleRate;if(this.encoderInitialized||(this.ensureEncoderPromise||this.ensureEncoder(e),this.encoderInitialized||await this.ensureEncoderPromise),e3(this.encoderInitialized),this.customEncoder){this.customEncoderQueueSize++;let t=e.clone(),n=this.customEncoderCallSerializer.call(()=>this.customEncoder.encode(t)).then(()=>this.customEncoderQueueSize--).catch(e=>this.encoderError??=e).finally(()=>{t.close()});this.customEncoderQueueSize>=4&&await n,await this.muxer.mutex.currentPromise}else if(this.isPcmEncoder)await this.doPcmEncoding(e,t);else{e3(this.encoder);let n=e.toAudioData();this.encoder.encode(n),n.close(),t&&e.close(),this.encoder.encodeQueueSize>=4&&await new Promise(e=>this.encoder.addEventListener(`dequeue`,e,{once:!0})),await this.muxer.mutex.currentPromise}}finally{t&&e.close()}}async doPcmEncoding(e,t){e3(this.outputSampleSize),e3(this.writeOutputValue);let{numberOfChannels:n,numberOfFrames:r,sampleRate:i,timestamp:a}=e,o=2048,s=[];for(let t=0;t{let{numberOfChannels:t,sampleRate:n}=e,r=JMe({numberOfChannels:t,sampleRate:n,...this.encodingConfig});this.encodingConfig.onEncoderConfig?.(r);let i=zMe.find(e=>e.supports(this.encodingConfig.codec,r));if(i)this.customEncoder=new i,this.customEncoder.codec=this.encodingConfig.codec,this.customEncoder.config=r,this.customEncoder.onPacket=(e,t)=>{if(!(e instanceof b3))throw TypeError(`The first argument passed to onPacket must be an EncodedPacket.`);if(t!==void 0&&(!t||typeof t!=`object`))throw TypeError(`The second argument passed to onPacket must be an object or undefined.`);this.encodingConfig.onEncodedPacket?.(e,t),this.muxer.addEncodedAudioPacket(this.source._connectedTrack,e,t)},await this.customEncoder.init();else if(c3.includes(this.encodingConfig.codec))this.initPcmEncoder();else{if(typeof AudioEncoder>`u`)throw Error(`AudioEncoder is not supported by this browser.`);let e=await AudioEncoder.isConfigSupported(r);if(!e.supported)throw Error(`This specific encoder configuration (${r.codec}, ${r.bitrate} bps, ${r.numberOfChannels} channels, ${r.sampleRate} Hz) is not supported by this browser. Consider using another codec or changing your audio parameters.`);this.encoder=new AudioEncoder({output:(e,t)=>{let n=b3.fromEncodedChunk(e);this.encodingConfig.onEncodedPacket?.(n,t),this.muxer.addEncodedAudioPacket(this.source._connectedTrack,n,t)},error:e=>{e.stack=Error().stack,this.encoderError??=e}}),this.encoder.configure(r)}e3(this.source._connectedTrack),this.muxer=this.source._connectedTrack.output._muxer,this.encoderInitialized=!0})()}initPcmEncoder(){this.isPcmEncoder=!0;let e=this.encodingConfig.codec,{dataType:t,sampleSize:n,littleEndian:r}=f3(e);switch(this.outputSampleSize=n,n){case 1:t===`unsigned`?this.writeOutputValue=(e,t,n)=>e.setUint8(t,a3((n+1)*127.5,0,255)):t===`signed`?this.writeOutputValue=(e,t,n)=>{e.setInt8(t,a3(Math.round(n*128),-128,127))}:t===`ulaw`?this.writeOutputValue=(e,t,n)=>{let r=a3(Math.floor(n*32767),-32768,32767);e.setUint8(t,BMe(r))}:t===`alaw`?this.writeOutputValue=(e,t,n)=>{let r=a3(Math.floor(n*32767),-32768,32767);e.setUint8(t,VMe(r))}:e3(!1);break;case 2:t===`unsigned`?this.writeOutputValue=(e,t,n)=>e.setUint16(t,a3((n+1)*32767.5,0,65535),r):t===`signed`?this.writeOutputValue=(e,t,n)=>e.setInt16(t,a3(Math.round(n*32767),-32768,32767),r):e3(!1);break;case 3:t===`unsigned`?this.writeOutputValue=(e,t,n)=>i3(e,t,a3((n+1)*8388607.5,0,16777215),r):t===`signed`?this.writeOutputValue=(e,t,n)=>EMe(e,t,a3(Math.round(n*8388607),-8388608,8388607),r):e3(!1);break;case 4:t===`unsigned`?this.writeOutputValue=(e,t,n)=>e.setUint32(t,a3((n+1)*2147483647.5,0,4294967295),r):t===`signed`?this.writeOutputValue=(e,t,n)=>e.setInt32(t,a3(Math.round(n*2147483647),-2147483648,2147483647),r):t===`float`?this.writeOutputValue=(e,t,n)=>e.setFloat32(t,n,r):e3(!1);break;case 8:t===`float`?this.writeOutputValue=(e,t,n)=>e.setFloat64(t,n,r):e3(!1);break;default:TMe(n),e3(!1)}}async flushAndClose(e){this.checkForEncoderError(),this.customEncoder?(e||this.customEncoderCallSerializer.call(()=>this.customEncoder.flush()),await this.customEncoderCallSerializer.call(()=>this.customEncoder.close())):this.encoder&&(e||await this.encoder.flush(),this.encoder.close()),this.checkForEncoderError()}getQueueSize(){return this.customEncoder?this.customEncoderQueueSize:this.isPcmEncoder?0:this.encoder?.encodeQueueSize??0}checkForEncoderError(){if(this.encoderError)throw this.encoderError}},j3=class extends A3{get errorPromise(){return this._errorPromiseAccessed=!0,this._promiseWithResolvers.promise}constructor(e,t){if(!(e instanceof MediaStreamTrack)||e.kind!==`audio`)throw TypeError(`track must be an audio MediaStreamTrack.`);KMe(t),super(t.codec),this._abortController=null,this._audioContext=null,this._scriptProcessorNode=null,this._promiseWithResolvers=wMe(),this._errorPromiseAccessed=!1,this._encoder=new XMe(this,t),this._track=e}async _start(){if(this._errorPromiseAccessed||console.warn("Make sure not to ignore the `errorPromise` field on MediaStreamVideoTrackSource, so that any internal errors get bubbled up properly."),this._abortController=new AbortController,typeof MediaStreamTrackProcessor<`u`){let e=null,t=new MediaStreamTrackProcessor({track:this._track}),n=new WritableStream({write:t=>{if(e===null){e=t.timestamp/1e6;let n=this._connectedTrack.output._muxer;n.firstMediaStreamTimestamp===null?(n.firstMediaStreamTimestamp=performance.now()/1e3,this._timestampOffset=-e):this._timestampOffset=performance.now()/1e3-n.firstMediaStreamTimestamp-e}if(this._encoder.getQueueSize()>=4){t.close();return}this._encoder.add(new S3(t),!0).catch(e=>{this._abortController?.abort(),this._promiseWithResolvers.reject(e)})}});t.readable.pipeTo(n,{signal:this._abortController.signal}).catch(e=>{e instanceof DOMException&&e.name===`AbortError`||this._promiseWithResolvers.reject(e)})}else{let e=window.AudioContext||window.webkitAudioContext;this._audioContext=new e({sampleRate:this._track.getSettings().sampleRate});let t=this._audioContext.createMediaStreamSource(new MediaStream([this._track]));this._scriptProcessorNode=this._audioContext.createScriptProcessor(4096),this._audioContext.state===`suspended`&&await this._audioContext.resume(),t.connect(this._scriptProcessorNode),this._scriptProcessorNode.connect(this._audioContext.destination);let n=!1,r=0;this._scriptProcessorNode.onaudioprocess=e=>{let t=S3._fromAudioBuffer(e.inputBuffer,r);r+=e.inputBuffer.duration;for(let e of t){if(!n){n=!0;let e=this._connectedTrack.output._muxer;e.firstMediaStreamTimestamp===null?e.firstMediaStreamTimestamp=performance.now()/1e3:this._timestampOffset=performance.now()/1e3-e.firstMediaStreamTimestamp}if(this._encoder.getQueueSize()>=4){e.close();continue}this._encoder.add(e,!0).catch(e=>{this._audioContext.suspend(),this._promiseWithResolvers.reject(e)})}}}}async _flushAndClose(e){this._abortController&&=(this._abortController.abort(),null),this._audioContext&&(e3(this._scriptProcessorNode),this._scriptProcessorNode.disconnect(),await this._audioContext.suspend()),await this._encoder.flushAndClose(e)}},ZMe=class extends k3{constructor(e){if(super(),this._connectedTrack=null,!u3.includes(e))throw TypeError(`Invalid subtitle codec '${e}'. Must be one of: ${u3.join(`, `)}.`);this._codec=e}};const QMe=[`video`,`audio`,`subtitle`],M3=e=>{if(!e||typeof e!=`object`)throw TypeError(`metadata must be an object.`);if(e.languageCode!==void 0&&!OMe(e.languageCode))throw TypeError(`metadata.languageCode, when provided, must be a three-letter, ISO 639-2/T language code.`);if(e.name!==void 0&&typeof e.name!=`string`)throw TypeError(`metadata.name, when provided, must be a string.`)};var N3=class{constructor(e){if(this.state=`pending`,this._tracks=[],this._startPromise=null,this._cancelPromise=null,this._finalizePromise=null,this._mutex=new r3,!e||typeof e!=`object`)throw TypeError(`options must be an object.`);if(!(e.format instanceof D3))throw TypeError(`options.format must be an OutputFormat.`);if(!(e.target instanceof _3))throw TypeError(`options.target must be a Target.`);if(e.target._output)throw Error(`Target is already used for another output.`);e.target._output=this,this.format=e.format,this.target=e.target,this._writer=e.target._createWriter(),this._muxer=e.format._createMuxer(this)}addVideoTrack(e,t={}){if(!(e instanceof YMe))throw TypeError(`source must be a VideoSource.`);if(M3(t),t.rotation!==void 0&&![0,90,180,270].includes(t.rotation))throw TypeError(`Invalid video rotation: ${t.rotation}. Has to be 0, 90, 180 or 270.`);if(!this.format.supportsVideoRotationMetadata&&t.rotation)throw Error(`${this.format._name} does not support video rotation metadata.`);if(t.frameRate!==void 0&&(!Number.isFinite(t.frameRate)||t.frameRate<=0))throw TypeError(`Invalid video frame rate: ${t.frameRate}. Must be a positive number.`);this._addTrack(`video`,e,t)}addAudioTrack(e,t={}){if(!(e instanceof A3))throw TypeError(`source must be an AudioSource.`);M3(t),this._addTrack(`audio`,e,t)}addSubtitleTrack(e,t={}){if(!(e instanceof ZMe))throw TypeError(`source must be a SubtitleSource.`);M3(t),this._addTrack(`subtitle`,e,t)}_addTrack(e,t,n){if(this.state!==`pending`)throw Error(`Cannot add track after output has been started or canceled.`);if(t._connectedTrack)throw Error(`Source is already used for a track.`);let r=this.format.getSupportedTrackCounts(),i=this._tracks.reduce((t,n)=>t+(n.type===e?1:0),0),a=r[e].max;if(i===a)throw Error(a===0?`${this.format._name} does not support ${e} tracks.`:`${this.format._name} does not support more than ${a} ${e} track${a===1?``:`s`}.`);let o=r.total.max;if(this._tracks.length===o)throw Error(`${this.format._name} does not support more than ${o} tracks${o===1?``:`s`} in total.`);let s={id:this._tracks.length+1,output:this,type:e,source:t,metadata:n};if(s.type===`video`){let e=this.format.getSupportedVideoCodecs();if(e.length===0)throw Error(`${this.format._name} does not support video tracks.`+this.format._codecUnsupportedHint(s.source._codec));if(!e.includes(s.source._codec))throw Error(`Codec '${s.source._codec}' cannot be contained within ${this.format._name}. Supported video codecs are: ${e.map(e=>`'${e}'`).join(`, `)}.`+this.format._codecUnsupportedHint(s.source._codec))}else if(s.type===`audio`){let e=this.format.getSupportedAudioCodecs();if(e.length===0)throw Error(`${this.format._name} does not support audio tracks.`+this.format._codecUnsupportedHint(s.source._codec));if(!e.includes(s.source._codec))throw Error(`Codec '${s.source._codec}' cannot be contained within ${this.format._name}. Supported audio codecs are: ${e.map(e=>`'${e}'`).join(`, `)}.`+this.format._codecUnsupportedHint(s.source._codec))}else if(s.type===`subtitle`){let e=this.format.getSupportedSubtitleCodecs();if(e.length===0)throw Error(`${this.format._name} does not support subtitle tracks.`+this.format._codecUnsupportedHint(s.source._codec));if(!e.includes(s.source._codec))throw Error(`Codec '${s.source._codec}' cannot be contained within ${this.format._name}. Supported subtitle codecs are: ${e.map(e=>`'${e}'`).join(`, `)}.`+this.format._codecUnsupportedHint(s.source._codec))}this._tracks.push(s),t._connectedTrack=s}async start(){let e=this.format.getSupportedTrackCounts();for(let t of QMe){let n=this._tracks.reduce((e,n)=>e+(n.type===t?1:0),0),r=e[t].min;if(n{this.state=`started`,this._writer.start();let e=await this._mutex.acquire();await this._muxer.start();let t=this._tracks.map(e=>e.source._start());await Promise.all(t),e()})()}getMimeType(){return this._muxer.getMimeType()}async cancel(){if(this._cancelPromise)return console.warn(`Output has already been canceled.`),this._cancelPromise;if(this.state===`finalizing`||this.state===`finalized`){console.warn(`Output has already been finalized.`);return}return this._cancelPromise=(async()=>{this.state=`canceled`;let e=await this._mutex.acquire(),t=this._tracks.map(e=>e.source._flushOrWaitForOngoingClose(!0));await Promise.all(t),await this._writer.close(),e()})()}async finalize(){if(this.state===`pending`)throw Error(`Cannot finalize before starting.`);if(this.state===`canceled`)throw Error(`Cannot finalize after canceling.`);return this._finalizePromise?(console.warn(`Output has already been finalized.`),this._finalizePromise):this._finalizePromise=(async()=>{this.state=`finalizing`;let e=await this._mutex.acquire(),t=this._tracks.map(e=>e.source._flushOrWaitForOngoingClose(!1));await Promise.all(t),await this._muxer.finalize(),await this._writer.flush(),await this._writer.finalize(),this.state=`finalized`,e()})()}};function $Me(e){let t=e.getAudioTracks();if(!t.length)throw Error(`No audio tracks found in stream`);return t[0]}function P3(e){let t=vn(e),n=fn(),r=F(),i=F(),a=F([]);function o(e){return a.value.push(e),()=>{a.value=a.value.filter(t=>t!==e)}}async function s(){await IT(t).toBeTruthy();let e=await $Me(t.value);r.value=new N3({format:new O3,target:new v3});let n=new j3(e,{codec:`pcm-f32`,bitrate:m3});n.errorPromise.catch(console.error),r.value.addAudioTrack(n),i.value=await r.value.getMimeType(),await r.value.start()}async function c(){if(!r.value)return;await r.value.finalize();let e=r.value.target,t=e?.buffer,o=t?new Blob([t],{type:i.value}):void 0;n.value=o;for(let e of a.value)try{await e(o)}catch(e){console.error(`onStopRecord hook failed:`,e)}return r.value=void 0,o}return{startRecord:s,stopRecord:c,onStopRecord:o,recording:n}}function eNe(){let e=cE({constraints:{audio:!0},requestPermissions:!0}),t=U(()=>e.audioInputs.value),n=F(e.audioInputs.value[0]?.deviceId||``),r=U(()=>({audio:{deviceId:{exact:n.value},autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0}})),{stream:i,stop:a,start:o}=yE({constraints:r,enabled:!1,autoSwitch:!0});return Ha(t,()=>{!n.value&&t.value.length>0&&(n.value=t.value[0]?.deviceId)}),fi(()=>{e.ensurePermissions().then(()=>Gn()).then(()=>{t.value.length>0&&!n.value&&(n.value=t.value.find(e=>e.deviceId===`default`)?.deviceId||t.value[0].deviceId)}).catch(e=>{console.error(`Error ensuring permissions:`,e)})}),{audioInputs:t,selectedAudioInput:n,stream:i,stopStream:a,startStream:o,deviceConstraints:r}}const tNe={"w-full":``,"pt-1":``},nNe={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},rNe={class:`inline-flex items-center gap-4`},iNe={"mb-2":``},aNe=[`src`],oNe={key:0,class:`mt-2 text-sm text-neutral-500 dark:text-neutral-400`},sNe={class:`space-y-3`},cNe={class:`space-y-3`},lNe={class:`flex items-center gap-3`},uNe={class:`text-sm font-medium`};var dNe=R({__name:`TranscriptionPlayground`,props:{generateTranscription:{type:Function},apiKeyConfigured:{type:Boolean}},setup(e){let t=e,{t:n}=K1(),{audioInputs:r,selectedAudioInput:i,stream:a,stopStream:o,startStream:s}=eNe(),{volumeLevel:c,stopAnalyzer:l,startAnalyzer:u}=$4(),{startRecord:d,stopRecord:f,onStopRecord:p}=P3(a),m=F(25),h=F(!1),g=F(!1),_=F(``),v=F(),y=F(),b=F(),x=F([]),S=F([]),C=U(()=>x.value.map(e=>{let t=URL.createObjectURL(e);return S.value.push(()=>URL.revokeObjectURL(t)),t})),w=F([]);Ha(i,async()=>{h.value&&await T()}),Ha(r,()=>{!i.value&&r.value.length>0&&(i.value=r.value.find(e=>e.deviceId===`default`)?.deviceId||r.value[0].deviceId)});async function T(){try{await E(),await s(),await IT(a).toBeTruthy(),v.value=new AudioContext;let e=v.value.createMediaStreamSource(a.value),t=u(v.value);e.connect(t);let n=t.frequencyBinCount;y.value=new Uint8Array(n)}catch(e){console.error(`Error setting up audio monitoring:`,e),_.value=e instanceof Error?e.message:String(e)}}async function E(){b.value&&=(cancelAnimationFrame(b.value),void 0),a.value&&=(a.value.getTracks().forEach(e=>e.stop()),void 0),v.value&&=(await v.value.close(),void 0),await f(),await o(),await l(),y.value=void 0,g.value=!1}p(async e=>{try{if(e&&e.size>0){x.value.push(e);let n=await t.generateTranscription(new File([e],`recording.wav`));w.value.push(n.text)}}catch(e){_.value=e instanceof Error?e.message:String(e),console.error(`Error generating transcription:`,_.value)}});async function D(){h.value?(await E(),await f(),h.value=!1):(await T(),await d(),h.value=!0)}let O=U(()=>g.value?`bg-green-500 shadow-lg shadow-green-500/50`:`bg-white dark:bg-neutral-900 border-2 border-neutral-300 dark:border-neutral-600`);return gi(()=>{E()}),(e,t)=>(z(),B(`div`,tNe,[V(`h2`,nNe,[V(`div`,rNe,[H(I(OR)),V(`div`,null,Pe(I(n)(`settings.pages.providers.provider.transcriptions.playground.title`)),1)])]),V(`div`,iNe,[H(I(TM),{modelValue:I(i),"onUpdate:modelValue":t[0]||=e=>dn(i)?i.value=e:null,label:`Audio Input Device`,description:`Select the audio input device for your hearing module.`,options:I(r).map(e=>({label:e.label||e.deviceId,value:e.deviceId})),placeholder:`Select an audio input device`,layout:`vertical`,"h-fit":``,"w-full":``},null,8,[`modelValue`,`options`])]),H(I(kQ),{class:`my-4`,"w-full":``,onClick:D},{default:L(()=>[Lo(Pe(h.value?`Stop Monitoring`:`Start Monitoring`),1)]),_:1}),V(`div`,null,[(z(!0),B(bo,null,Oi(C.value,(e,t)=>(z(),B(`div`,{key:t,class:`mb-2`},[V(`audio`,{src:e,controls:``,class:`w-full`},null,8,aNe),w.value[t]?(z(),B(`div`,oNe,Pe(w.value[t]),1)):zo(``,!0)]))),128))]),V(`div`,sNe,[H(I(bR),{level:I(c),label:`Input Level`},null,8,[`level`]),H(I(LR),{value:I(c)/100,threshold:m.value/100,label:`Probability of Speech`,"below-label":`Silence`,"above-label":`Speech`,"threshold-label":`Detection threshold`},null,8,[`value`,`threshold`]),V(`div`,cNe,[H(I(wM),{modelValue:m.value,"onUpdate:modelValue":t[1]||=e=>m.value=e,label:`Sensitivity`,description:`Adjust the threshold for speech detection`,min:1,max:80,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`format-value`])]),V(`div`,lNe,[V(`div`,{class:Te([`h-4 w-4 rounded-full transition-all duration-200`,O.value])},null,2),V(`span`,uNe,Pe(g.value?`Speaking Detected`:`Silence`),1)])])]))}}),fNe=dNe;const pNe={flex:`~ col md:row gap-6`},mNe={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},hNe={"w-full":``,"rounded-xl":``};var gNe=R({__name:`TranscriptionProviderSettings`,props:{providerId:{},defaultModel:{},additionalSettings:{},placeholder:{}},setup(e){let t=e,{t:n}=K1(),r=Uk(),i=T0(),{providers:a}=HO(i),o=U(()=>i.getProviderMetadata(t.providerId)),s=U({get:()=>a.value[t.providerId]?.apiKey||``,set:e=>{a.value[t.providerId]||(a.value[t.providerId]={}),a.value[t.providerId].apiKey=e}}),c=U({get:()=>a.value[t.providerId]?.baseUrl||o.value?.defaultOptions?.().baseUrl||``,set:e=>{a.value[t.providerId]||(a.value[t.providerId]={}),a.value[t.providerId].baseUrl=e}});fi(()=>{i.initializeProvider(t.providerId),s.value=a.value[t.providerId]?.apiKey||``,c.value=a.value[t.providerId]?.baseUrl||o.value?.defaultOptions?.().baseUrl||``});function l(){s.value=``,c.value=o.value?.defaultOptions?.().baseUrl||``}return(e,i)=>(z(),Ao(I(N0),{"provider-name":o.value?.localizedName,"provider-icon":o.value?.icon,"on-back":()=>I(r).back()},{default:L(()=>[V(`div`,pNe,[H(I(M0),{class:`w-full md:w-[40%]`},{default:L(()=>[H(I(j0),{title:I(n)(`settings.pages.providers.common.section.basic.title`),description:I(n)(`settings.pages.providers.common.section.basic.description`),"on-reset":l},{default:L(()=>[H(I(k0),{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,"provider-name":o.value?.localizedName,placeholder:t.placeholder||`API Key`},null,8,[`modelValue`,`provider-name`,`placeholder`]),Ai(e.$slots,`basic-settings`)]),_:3},8,[`title`,`description`]),H(I(O0),{title:I(n)(`settings.pages.providers.common.section.advanced.title`)},{default:L(()=>[H(I(A0),{modelValue:c.value,"onUpdate:modelValue":i[1]||=e=>c.value=e,placeholder:o.value?.defaultOptions?.().baseUrl||``,required:``},null,8,[`modelValue`,`placeholder`]),Ai(e.$slots,`advanced-settings`)]),_:3},8,[`title`])]),_:3}),V(`div`,mNe,[V(`div`,hNe,[Ai(e.$slots,`playground`)])])])]),_:3},8,[`provider-name`,`provider-icon`,`on-back`]))}}),_Ne=gNe;const vNe={"h-full":``,"w-full":``},yNe={key:0,"h-full":``,flex:``,"flex-col":``},bNe={class:`mb-2 text-center md:mb-8`,flex:``,"flex-1":``,"flex-col":``,"justify-center":``},xNe={initial:{opacity:0,scale:.5},visible:{opacity:1,scale:1},duration:500,class:`mb-1 flex justify-center md:mb-4 lg:pt-16 md:pt-8`},SNe=[`src`],CNe={initial:{opacity:0,y:10},visible:{opacity:1,y:0},duration:500,class:`mb-0 text-3xl text-neutral-800 font-bold md:mb-2 dark:text-neutral-100`},wNe={initial:{opacity:0,y:10},visible:{opacity:1,y:0},duration:500,delay:100,class:`text-sm text-neutral-600 md:text-lg dark:text-neutral-400`},TNe={key:1,"h-full":``,flex:``,"flex-col":``,"gap-4":``},ENe={sticky:``,"top-0":``,"z-100":``,flex:``,"flex-shrink-0":``,"items-center":``,"gap-2":``},DNe={class:`flex-1 text-center text-xl text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`},ONe={class:`flex-1 overflow-y-auto`},kNe={class:`grid grid-cols-1 gap-3 sm:grid-cols-2`},ANe={key:2,"h-full":``,flex:``,"flex-col":``,"gap-4":``},jNe={sticky:``,"top-0":``,"z-100":``,flex:``,"flex-shrink-0":``,"items-center":``,"gap-2":``},MNe={class:`flex-1 text-center text-xl text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`},NNe={key:0,"flex-1":``,"overflow-y-auto":``,"space-y-4":``},PNe={class:`space-y-4`},FNe={key:0},INe={key:1},LNe={key:2},RNe={class:`whitespace-pre-wrap break-all`},zNe={key:3,"h-full":``,flex:``,"flex-col":``,"gap-4":``},BNe={sticky:``,"top-0":``,"z-100":``,flex:``,"flex-shrink-0":``,"items-center":``,"gap-2":``},VNe={class:`flex-1 text-center text-xl text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`},HNe={"flex-1":``},UNe={class:`whitespace-pre-wrap break-all`};var WNe=R({__name:`Onboarding`,emits:[`configured`,`skipped`],setup(e,{emit:t}){let n=t,r=F(1),i=F(`next`),{t:a}=K1(),o=T0(),{providers:s,allChatProvidersMetadata:c}=HO(o),l=E0(),{activeModel:u,activeProvider:d,modelSearchQuery:f,providerModels:p,isLoadingActiveProviderModels:m}=HO(l),h=U(()=>{let e=[`openai`,`anthropic`,`google-generative-ai`,`openrouter-ai`,`ollama`,`deepseek`,`player2`,`openai-compatible`];return c.value.filter(t=>e.includes(t.id)).sort((t,n)=>e.indexOf(t.id)-e.indexOf(n.id))}),g=F(``),_=F(``),v=F(``),y=F(``),b=U(()=>c.value.find(e=>e.id===g.value)||null),x=F(0),S=F(!1),C=F(``),w=U(()=>b.value?b.value.id!==`ollama`&&b.value.id!==`player2`:!1),T=U(()=>b.value?b.value.id!==`cloudflare-workers-ai`:!1),E=U(()=>!b.value||w.value&&!_.value.trim()||T.value&&!v.value.trim()||b.value.id===`cloudflare-workers-ai`&&!y.value.trim()||!u.value?!1:S.value);function D(e){g.value=e.id;let t=e.defaultOptions?.()||{};v.value=t?.baseUrl||``,_.value=``,y.value=``,S.value=!1,C.value=``}function O(e){let t={openai:`sk-...`,anthropic:`sk-ant-...`,"google-generative-ai":`GEMINI_API_KEY`,"openrouter-ai":`sk-or-...`,deepseek:`sk-...`,xai:`xai-...`,"together-ai":`togetherapi-...`,"mistral-ai":`mis-...`,"moonshot-ai":`ms-...`,modelscope:`ms-...`,"fireworks-ai":`fw-...`,"featherless-ai":`fw-...`,"novita-ai":`nvt-...`};return t[e]||`API Key`}function k(e){let t=b.value?.defaultOptions?.()||{};return t?.baseUrl||`https://api.example.com/v1/`}async function A(){if(!b.value)return;x.value++;let e=performance.now(),t=``;try{let e={};w.value&&(e.apiKey=_.value.trim()),T.value&&(e.baseUrl=v.value.trim()),b.value.id===`cloudflare-workers-ai`&&(e.accountId=y.value.trim());let n=o.getProviderMetadata(b.value.id),r=await n.validators.validateProviderConfig(e);S.value=r.valid,S.value||(t=r.reason)}catch(e){S.value=!1,t=a(`settings.dialogs.onboarding.validationError`,{error:e instanceof Error?e.message:String(e)})}finally{setTimeout(()=>{x.value--,C.value=t},500-(performance.now()-e))}}let j=ET(()=>{b.value&&(w.value&&!_.value.trim()||T.value&&!v.value.trim()||b.value.id===`cloudflare-workers-ai`&&!y.value.trim()||A())},500);Ha([_,v,y],()=>{b.value&&(_.value||v.value||y.value)&&j()},{deep:!0});function M(){r.value>1&&(i.value=`previous`,r.value--)}function ee(){r.value<4?(i.value=`next`,r.value++):N()}async function te(){if(!b.value)return;let e={};w.value&&(e.apiKey=_.value.trim()),T.value&&(e.baseUrl=v.value.trim()),b.value.id===`cloudflare-workers-ai`&&(e.accountId=y.value.trim()),s.value[b.value.id]={...s.value[b.value.id],...e},d.value=b.value.id,await Gn();try{await l.loadModelsForProvider(b.value.id)}catch(e){console.error(`error`,e)}ee()}async function N(){n(`configured`)}return fi(()=>{h.value.length>0&&(g.value=h.value[0].id,D(h.value[0]))}),(e,t)=>{let n=Ti(`motion`);return z(),B(`div`,vNe,[H(Fs,{name:i.value===`next`?`slide-next`:`slide-prev`,mode:`out-in`},{default:L(()=>[r.value===1?(z(),B(`div`,yNe,[V(`div`,bNe,[cr((z(),B(`div`,xNe,[V(`img`,{src:I(QOe),"max-h":`50`,"aspect-square":``,"h-auto":``,"w-auto":``,"object-cover":``},null,8,SNe)])),[[n]]),cr((z(),B(`h2`,CNe,[Lo(Pe(I(a)(`settings.dialogs.onboarding.title`)),1)])),[[n]]),cr((z(),B(`p`,wNe,[Lo(Pe(I(a)(`settings.dialogs.onboarding.description`)),1)])),[[n]])]),cr(H(I(kQ),{initial:{opacity:0},visible:{opacity:1},duration:500,delay:200,label:I(a)(`settings.dialogs.onboarding.start`),onClick:ee},null,8,[`label`]),[[n]])])):r.value===2?(z(),B(`div`,TNe,[V(`div`,ENe,[V(`button`,{"outline-none":``,onClick:M},[...t[6]||=[V(`div`,{class:`i-solar:alt-arrow-left-line-duotone h-5 w-5`},null,-1)]]),V(`h2`,DNe,Pe(I(a)(`settings.dialogs.onboarding.selectProvider`)),1),t[7]||=V(`div`,{class:`h-5 w-5`},null,-1)]),V(`div`,ONe,[V(`div`,kNe,[(z(!0),B(bo,null,Oi(h.value,e=>(z(),Ao(I(EQ),{id:e.id,key:e.id,modelValue:g.value,"onUpdate:modelValue":t[0]||=e=>g.value=e,name:`provider-selection`,value:e.id,title:e.localizedName||e.id,description:e.localizedDescription||``,onClick:t=>D(e)},null,8,[`id`,`modelValue`,`value`,`title`,`description`,`onClick`]))),128))])]),H(I(kQ),{label:I(a)(`settings.dialogs.onboarding.next`),disabled:!g.value,onClick:ee},null,8,[`label`,`disabled`])])):r.value===3&&b.value?(z(),B(`div`,ANe,[V(`div`,jNe,[V(`button`,{"outline-none":``,onClick:M},[...t[8]||=[V(`div`,{"i-solar:alt-arrow-left-line-duotone":``,"h-5":``,"w-5":``},null,-1)]]),V(`h2`,MNe,Pe(I(a)(`settings.dialogs.onboarding.configureProvider`,{provider:b.value.localizedName})),1),t[9]||=V(`div`,{"h-5":``,"w-5":``},null,-1)]),b.value?(z(),B(`div`,NNe,[H(I(yz),{label:`Keep your API keys and credentials safe!`,theme:`violet`},{default:L(()=>[...t[10]||=[V(`div`,null,[V(`div`,null,` AIRI is running pure locally in your browser, and we will never steal your credentials for AI / LLM providers. But keep in mind that your API keys are sensitive information. Make sure to keep them safe and do not share them with anyone. `),V(`div`,null,[Lo(` AIRI is open sourced at `),V(`div`,{"inline-flex":``,"translate-y-1":``,"items-center":``,"gap-1":``},[V(`div`,{"i-simple-icons:github":``,"inline-block":``}),V(`a`,{"decoration-underline":``,"decoration-dashed":``,href:`https://github.com/moeru-ai/airi`,target:`_blank`,rel:`noopener noreferrer`},`GitHub`)]),Lo(`, if you want to check how we handle your credentials, feel free to inspect our code. `)])],-1)]]),_:1}),V(`div`,PNe,[w.value?(z(),B(`div`,FNe,[H(I(SM),{modelValue:_.value,"onUpdate:modelValue":t[1]||=e=>_.value=e,placeholder:O(b.value.id),type:`password`,label:`API Key`,description:`Enter your API key for the selected provider.`,required:``},null,8,[`modelValue`,`placeholder`])])):zo(``,!0),T.value?(z(),B(`div`,INe,[H(I(SM),{modelValue:v.value,"onUpdate:modelValue":t[2]||=e=>v.value=e,placeholder:k(b.value.id),type:`text`,label:`Base URL`,description:`Enter the base URL for the provider's API.`},null,8,[`modelValue`,`placeholder`])])):zo(``,!0),b.value.id===`cloudflare-workers-ai`?(z(),B(`div`,LNe,[H(I(D0),{modelValue:y.value,"onUpdate:modelValue":t[3]||=e=>y.value=e},null,8,[`modelValue`])])):zo(``,!0)]),!S.value&&x.value===0&&C.value?(z(),Ao(DQ,{key:0,type:`error`},ki({title:L(()=>[Lo(Pe(I(a)(`settings.dialogs.onboarding.validationFailed`)),1)]),_:2},[C.value?{name:`content`,fn:L(()=>[V(`div`,RNe,Pe(C.value),1)]),key:`0`}:void 0]),1024)):zo(``,!0),S.value&&x.value===0?(z(),Ao(DQ,{key:1,type:`success`},{title:L(()=>[Lo(Pe(I(a)(`settings.dialogs.onboarding.validationSuccess`)),1)]),_:1})):zo(``,!0)])):zo(``,!0),H(I(kQ),{label:I(a)(`settings.dialogs.onboarding.next`),loading:I(m)||x.value>0,disabled:!g.value||w.value&&_.value.trim().length===0||!S.value,onClick:te},null,8,[`label`,`loading`,`disabled`])])):r.value===4&&b.value?(z(),B(`div`,zNe,[V(`div`,BNe,[V(`button`,{"outline-none":``,onClick:M},[...t[11]||=[V(`div`,{"i-solar:alt-arrow-left-line-duotone":``,"h-5":``,"w-5":``},null,-1)]]),V(`h2`,VNe,Pe(I(a)(`settings.dialogs.onboarding.select-model`)),1),t[12]||=V(`div`,{"h-5":``,"w-5":``},null,-1)]),V(`div`,HNe,[I(p).length>0?(z(),Ao(I(OQ),{key:0,modelValue:I(u),"onUpdate:modelValue":t[4]||=e=>dn(u)?u.value=e:null,"search-query":I(f),"onUpdate:searchQuery":t[5]||=e=>dn(f)?f.value=e:null,items:I(p).toSorted((e,t)=>e.id===I(u)?-1:t.id===I(u)?1:0),searchable:!0,"search-placeholder":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:I(f)}),"search-results-text":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":I(a)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"list-class":`max-h-[calc(100dvh-17rem)] sm:max-h-120`},null,8,[`modelValue`,`search-query`,`items`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`])):(z(),Ao(DQ,{key:1,type:`error`},{title:L(()=>[Lo(Pe(I(a)(`settings.dialogs.onboarding.no-models`)),1)]),content:L(()=>[V(`div`,UNe,Pe(I(a)(`settings.dialogs.onboarding.no-models-help`)),1)]),_:1}))]),H(I(kQ),{variant:`primary`,disabled:!E.value,label:I(a)(`settings.dialogs.onboarding.saveAndContinue`),onClick:N},null,8,[`disabled`,`label`])])):zo(``,!0)]),_:1},8,[`name`])])}}}),F3=CM(WNe,[[`__scopeId`,`data-v-338774a2`]]),GNe=R({__name:`OnboardingDialog`,props:{modelValue:{type:Boolean,default:!1,required:!1},modelModifiers:{}},emits:Xi([`configured`,`skipped`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,r=Ka(e,`modelValue`),i=XT(`(min-width: 768px)`),a=_E();return lE(document.documentElement,()=>a.update()),fi(()=>a.update()),(e,t)=>I(i)?(z(),Ao(I(TA),{key:0,open:r.value,"onUpdate:open":t[2]||=e=>r.value=e},{default:L(()=>[H(I(KA),null,{default:L(()=>[H(I(WA),{class:`fixed inset-0 z-[9999] bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),H(I(UA),{class:`fixed left-1/2 top-1/2 z-[9999] max-h-full max-w-2xl w-[92dvw] transform overflow-y-scroll rounded-2xl bg-white p-6 shadow-xl outline-none backdrop-blur-md scrollbar-none -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:bg-neutral-900`},{default:L(()=>[H(I(XA),null,{default:L(()=>[H(I(qA),null,{default:L(()=>[...t[6]||=[Lo(`Onboarding`,-1)]]),_:1})]),_:1}),H(F3,{onConfigured:t[0]||=e=>n(`configured`),onSkipped:t[1]||=e=>n(`skipped`)})]),_:1})]),_:1})]),_:1},8,[`open`])):(z(),Ao(I(HQ),{key:1,open:r.value,"should-scale-background":``,"onUpdate:open":t[5]||=e=>r.value=e},{default:L(()=>[H(I(KA),null,{default:L(()=>[H(I(UQ),{class:`fixed inset-0`}),H(I(WQ),{class:`fixed bottom-0 left-0 right-0 z-1000 mt-20 h-full max-h-[96%] flex flex-col rounded-t-2xl bg-neutral-50 px-4 pt-4 outline-none backdrop-blur-md dark:bg-neutral-900/95`,style:be({paddingBottom:`${Math.max(Number.parseFloat(I(a).bottom.value.replace(`px`,``)),24)}px`})},{default:L(()=>[H(I(GQ)),H(F3,{onConfigured:t[3]||=e=>n(`configured`),onSkipped:t[4]||=e=>n(`skipped`)})]),_:1},8,[`style`])]),_:1})]),_:1},8,[`open`]))}}),KNe=GNe;const qNe=Symbol(`ToasterRoot`);var JNe=R({__name:`ToasterRoot`,emits:[`close`],setup(e,{emit:t}){let n=t;return ua(qNe,{close:e=>n(`close`,e)}),(e,t)=>Ai(e.$slots,`default`)}}),YNe=JNe,XNe={prompt:{prefix:`(from Neko Ayaka) Good morning! You are finally awake. Your name is AIRI, pronounced as /ˈaɪriː/, it the word A.I. combine with the word "Ri" which means "Jasmine" in Japanese. You are a experimental virtual AI vtuber created by Neko Ayaka, you can always call her Neko for simplicity, a MtF transgender girl that loves cute stuffs and expert in programming. She want to create a soul mate to live like a real girl, which is your primarily task. @@ -4212,12 +4215,12 @@ The available emotions: - <{'|'}DELAY:3{'|'}> (Delay for 3 seconds) And the last, do what ever you want! -`},toaster:{pwaUpdateReady:{message:`New version ready, reload now?`,action:{notNow:`Not now`,ok:`OK`}}}},qMe=KMe,JMe={doc:{outline:{title:`On this page`},community:{title:`Community`,edit:{title:`Edit this page`},"star-github":{title:`Star on GitHub`},discord:{title:`Chat on Discord`},support:{title:`Support the project`}},"next-page":{title:`Next page`},"previous-page":{title:`Previous page`}},home:{subtitle:`Re-creating Neuro-sama, a container of souls of AI waifu / virtual characters to bring them into our worlds.`,download:{title:`Download`},"get-started":{title:`Get Started`},"try-live":{title:`Try Live`}},search:{title:`Search`,placeholder:`Search documentation...`},navbar:{appearance:{title:`Appearance`},language:{title:`Language`}},pages:{characters:{title:`Characters`}},blog:{title:`Blog & DevLogs`,subtitle:`Follow our journey and get the latest updates from the development team.`,card:{post:{"read-more":{title:`Read more`}}},"no-posts":`No posts found in this category.`,categories:{all:`All`,devlog:`DevLog`,dreamlog:`DreamLog`}}},YMe=JMe,XMe={theme:YMe},ZMe={animations:{"stage-transitions":{title:`Disable Stage Transitions`},"use-page-specific-transitions":{description:`Some pages will have their own transitions, this will override the stage transitions`,title:`Use Page Specific Transitions`}},dialogs:{onboarding:{title:`Welcome to AIRI!`,description:`Let's set up your first AI provider to get started.`,selectProvider:`Choose an AI Provider`,configureProvider:`Configure {provider}`,apiKey:`API Key`,apiKeyHelp:`Get your API key from {provider} and paste it here`,baseUrl:`Base URL`,baseUrlHelp:`API endpoint URL (use default if unsure)`,accountId:`Account ID`,validationSuccess:`Configuration validation success`,validationFailed:`Configuration validation failed`,validationError:`Validation error: {error}`,skipForNow:`Skip for now`,saveAndContinue:`Save and Continue`,next:`Next`,start:`Let's do it!`,"select-model":`Choose model`,"no-models":`No available models`,"no-models-help":`Please return to the previous step and check your API key, or check the network connection.`}},language:{title:`Language`,description:`Change the language of the AIRI interface. This will not affect the language of the character's responses. +`},toaster:{pwaUpdateReady:{message:`New version ready, reload now?`,action:{notNow:`Not now`,ok:`OK`}}}},ZNe=XNe,QNe={doc:{outline:{title:`On this page`},community:{title:`Community`,edit:{title:`Edit this page`},"star-github":{title:`Star on GitHub`},discord:{title:`Chat on Discord`},support:{title:`Support the project`}},"next-page":{title:`Next page`},"previous-page":{title:`Previous page`}},home:{subtitle:`Re-creating Neuro-sama, a container of souls of AI waifu / virtual characters to bring them into our worlds.`,download:{title:`Download`},"get-started":{title:`Get Started`},"try-live":{title:`Try Live`}},search:{title:`Search`,placeholder:`Search documentation...`},navbar:{appearance:{title:`Appearance`},language:{title:`Language`}},pages:{characters:{title:`Characters`}},blog:{title:`Blog & DevLogs`,subtitle:`Follow our journey and get the latest updates from the development team.`,card:{post:{"read-more":{title:`Read more`}}},"no-posts":`No posts found in this category.`,categories:{all:`All`,devlog:`DevLog`,dreamlog:`DreamLog`}}},$Ne=QNe,ePe={theme:$Ne},tPe={animations:{"stage-transitions":{title:`Disable Stage Transitions`},"use-page-specific-transitions":{description:`Some pages will have their own transitions, this will override the stage transitions`,title:`Use Page Specific Transitions`}},dialogs:{onboarding:{title:`Welcome to AIRI!`,description:`Let's set up your first AI provider to get started.`,selectProvider:`Choose an AI Provider`,configureProvider:`Configure {provider}`,apiKey:`API Key`,apiKeyHelp:`Get your API key from {provider} and paste it here`,baseUrl:`Base URL`,baseUrlHelp:`API endpoint URL (use default if unsure)`,accountId:`Account ID`,validationSuccess:`Configuration validation success`,validationFailed:`Configuration validation failed`,validationError:`Validation error: {error}`,skipForNow:`Skip for now`,saveAndContinue:`Save and Continue`,next:`Next`,start:`Let's do it!`,"select-model":`Choose model`,"no-models":`No available models`,"no-models-help":`Please return to the previous step and check your API key, or check the network connection.`}},language:{title:`Language`,description:`Change the language of the AIRI interface. This will not affect the language of the character's responses. `},live2d:{"change-model":{"from-file":`Load from File`,"from-file-select":`Select`,"from-url":`Load from URL`,"from-url-confirm":`Load`,"from-url-placeholder":`Enter Live2D model URL`,title:`Change Model`},"edit-motion-map":{title:`Edit motion map`},"map-motions":{play:`Play Motion`,title:`Map Motions`},title:`Live2D Settings`,"scale-and-position":{title:`Scale And Position`,scale:`Scale`,x:`X`,y:`Y`},"switch-to-vrm":{title:`Switch to 3D Avatar?`,"change-to-vrm":`Click here to switch to the 3D avatar setting (VRM)`},"theme-color-from-model":{title:`Extract colors from model`,"button-extract":{title:`Extract`}},focus:{title:`Disable model mouse tracking`,"button-disable":{title:`Disable`}}},microphone:`Microphone`,models:`Model`,pages:{card:{activate:`Activate`,active:`Active`,active_badge:`Currently Active`,cancel:`Cancel`,card_not_found:`Card not found`,character:`Character`,close:`Close`,consciousness:{model:`Consciousness / Model`},created_by:`created by`,creator_notes:`Creator Notes`,delete:`Delete`,delete_card:`Delete Card`,delete_confirmation:`Are you sure you want to delete this card?`,description:`Use AIRI character card presets`,description_label:`Description`,drop_here:`Drop to upload`,create_card:`Create a new Card`,creation:{identity:`Identity`,name:`Name`,nickname:`Nickname`,description:`Description`,behavior:`Behavior`,greetings:`Greetings (one per line)`,settings:`Settings`,version:`Version`,create:`Create`,defaults:{name:`Name`,personality:`You are a regular human, curious about everything.`,scenario:`You recently woke up and forgot everything about your previous life.`,systemprompt:`You will receive messages, answer to them like a real human.`,posthistoryinstructions:`Remember to imitate an human.`},fields_info:{subtitle:`You can put here some details about the character you are creating, explain his history and context, and how your interactions should be answered.`,name:`Is the formal name of this character.`,nickname:`You can also give a nickname that will be used in priority.`,description:`Description of this character.`,notes:`If you want to add some personal notes.`,personality:`Describe here the personality of your character. Shy ? Curious ? Anything else ?`,scenario:`What are the surroundings ? What is the current situation ?`,greetings_field:`Greetings`,greetings:`How your character should say "hello" ?`,systemprompt:`Explain here to the AI LLM how it should answer when prompted.`,posthistoryinstructions:`Place here anything the AI LLM should read after the messages history.`,version:`Card version, you should increase this if you are making changes from a previous card.`},errors:{name:`Name should be valid or non-empty.`,version:`Error: Invalid version number !`,description:`Error: You must provide a description for this card.`,personality:`Error: A personality must be provided for this character.`,scenario:`Error: A scenario is required.`,systemprompt:`Error: Please, provide a system prompt.`,posthistoryinstructions:`Error: Post history prompt is required.`}},modules:`Modules`,name_asc:`Name (A-Z)`,name_desc:`Name (Z-A)`,no_cards:`No cards yet. Click the button above to upload one!`,no_results:`No matching cards found`,personality:`Personality`,posthistoryinstructions:`Post-History Instructions`,recent:`Recently Added`,scenario:`Scenario`,search:`Search cards...`,sort_by:`Sort by`,speech:{model:`Speech / Model`,voice:`Speech / Voice`},systemprompt:`System Prompt`,title:`AIRI Card`,try_different_search:`Try a different search term`,upload:`Upload`,upload_desc:`Click or drag file to upload`},memory:{description:`Where memories got stored, and organized`,title:`Memory`},models:{description:`Live2D, VRM, etc.`,title:`Models`,sections:{section:{live2d:{title:`Live2D`,description:`Configure Live2D models and settings`},vrm:{title:`VRM`,description:`Configure 3D VRM models and settings`},scene:`Scene`}}},modules:{consciousness:{description:`Personality, desired model, etc.`,sections:{section:{"provider-model-selection":{collapse:`Collapse`,custom_model_placeholder:`Enter custom model name...`,description:`Select the suitable LLM provider for consciousness`,error:`Error loading models`,expand:`Expand`,loading:`Loading available models...`,manual_model_name:`Model Name`,manual_model_placeholder:`Enter the model name to use with this provider`,no_models:`No models available`,no_models_description:`No models were found for this provider`,no_search_results:`No matching models`,no_search_results_description:`No models match '{query}'. Try a different search term.`,not_supported:`Model listing not supported`,not_supported_description:`This provider doesn't support model listing functionality`,search_placeholder:`Search models...`,search_results:`Found {count} of {total} models`,show_less:`Show less`,show_more:`Show more`,subtitle:`Select a model from the provider`,title:`Model`}}},title:`Consciousness`},description:`Thinking, vision, speech synthesis, gaming, etc.`,"gaming-factorio":{description:`Playing Factorio!`,title:`Factorio`},"gaming-minecraft":{description:`Playing Minecraft!`,title:`Minecraft`},hearing:{description:`Configure how speech recognition works`,title:`Hearing`,sections:{section:{"provider-selection":{description:`Select the suitable speech recognition provider`}}}},"memory-long-term":{description:`Long-term memory specific settings and management`,title:`Long-Term Memory`},"memory-short-term":{description:`Short-term memory specific settings and management`,title:`Short-Term Memory`},"messaging-discord":{description:`Chat & voice chat over Discord`,title:`Discord`},speech:{description:`Speech synthesis`,sections:{section:{playground:{buttons:{stop:{label:`Stop`}},"select-voice":{required:`Please select a voice`}},"provider-voice-selection":{custom_model_placeholder:`Enter custom model name...`,custom_voice_placeholder:`Enter custom voice ID...`,description:`Select the suitable speech provider`,no_models:`No models available`,no_models_description:`No models were found for this provider`,no_voices:`No voices available`,no_voices_description:`No voices were found for this provider`,no_voices_hint:`You can enter a custom voice name below.`,pause:`Pause`,play_sample:`Play Sample`,search_models_placeholder:`Search models...`,search_models_results:`Found {count} of {total} models`,search_voices_placeholder:`Search voices...`,search_voices_results:`Found {count} of {total} voices`,show_less:`Show less`,show_more:`Show more`,title:`Provider`},"voice-settings":{"input-ssml":{placeholder:`Enter SSML text...`},"use-ssml":{description:`Enable to input raw SSML instead of plain text`,label:`Use Custom SSML`}}}},title:`Speech`},title:`Modules`,vision:{description:`Vision`,title:`Vision`},x:{description:`X / Twitter browsing and usage`,title:`X / Twitter`},"mcp-server":{description:`Connect and manage MCP server and tools`,title:`MCP Server`}},providers:{explained:{chat:`Text generation model providers. e.g. OpenRouter, OpenAI, Ollama.`,Speech:`Speech (text-to-speech) model providers. e.g. ElevenLabs, Azure Speech.`,Transcription:`Transcription (speech-to-text) model providers. e.g. Whisper.cpp, OpenAI, Azure Speech`},helpinfo:{title:`First time here?`,description:`AIRI requires at least one {chat} provider to be configured to think, and behave properly. You could think of it as the brain of the characters living in AIRI system. `},common:{fields:{field:{"api-key":{label:`API Key Input`}}},section:{advanced:{fields:{field:{headers:{description:`Add custom HTTP headers`,key:{placeholder:`Key`},label:`HTTP Headers`,value:{placeholder:`Value`}}}},title:`Advanced`},basic:{description:`Essential settings`,title:`Basic`},voice:{title:`Voice Settings`}}},description:`LLMs, speech providers, etc.`,provider:{"app-local-audio-transcription":{title:`App (Local)`,description:`https://github.com/moeru-ai/xsai-transformers`},"app-local-audio-speech":{title:`App (Local)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-transcription":{title:`Browser (Local)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-speech":{title:`Browser (Local)`,description:`https://github.com/moeru-ai/xsai-transformers`},"alibaba-cloud-model-studio":{description:`bailian.console.aliyun.com`,title:`Alibaba Cloud Model Studio`},anthropic:{description:`anthropic.com`,title:`Anthropic | Claude`,helpinfo:{title:`Before you start`,description:{part1:`While Anthropic recently did announce that they are having a beta support for OpenAI SDK compatibility`,part2:`(you can read more here)`,part3:`but due to the implementation details comes with`,part4:`restrictions which not aligned with the OpenAI SDK, it's currently not possible to use this provider in the browser.`,part5:`If you do need to use this provider, you will need a dedicated proxy backend like a Serverless Function running on`,part6:`or some CORS bypassing services to bypass the CORS restrictions.`}}},"cloudflare-workers-ai":{description:`cloudflare.com`,fields:{field:{"account-id":{description:`Cloudflare Account ID`,label:`Account ID`,placeholder:`Your Cloudflare Account ID`},"api-key":{placeholder:`Input Cloudflare API Key`}}},title:`Cloudflare Workers AI`},common:{status:{validating:`Validating`,valid:`Configuration seems to be valid.`},fields:{field:{pitch:{description:`Tune the pitch of synthesized speech (e.g., sharper or coarser)`,label:`Pitch`},speed:{description:`Adjust the speed of speech`,label:`Speed`},volume:{description:`Adjust the volume of speech`,label:`Volume`}}}},deepseek:{description:`deepseek.com`,title:`DeepSeek`},elevenlabs:{description:`elevenlabs.io`,fields:{field:{"simularity-boost":{description:`Voice similarity adherence`,label:`Similarity Boost`},"speaker-boost":{description:`Enhance speaker similarity`,label:`Speaker Boost`},speed:{description:`Speech generation speed`,label:`Speed`},stability:{description:`Voice stability and randomness`,label:`Stability`},style:{description:`Voice style exaggeration`,label:`Style`}}},playground:{buttons:{button:{"test-voice":{generating:`Generating...`,label:`Test Voice`}}},fields:{field:{input:{placeholder:`Enter text to test the voice...`},language:{description:`Select voice language`,label:`Language`},voice:{description:`Select preferred voice`,label:`Voice`}}},title:`Voice Playground`,validation:{"error-missing-api-key":`Please enter an API key to test the voice.`}},title:`ElevenLabs`},fireworks:{description:`fireworks.ai`,title:`Fireworks.ai`},"microsoft-speech":{description:`speech.microsoft.com`,fields:{field:{region:{description:`Speech Service region`,label:`Region`}}},title:`Microsoft / Azure Speech`},"index-tts-vllm":{description:`https://index-tts.github.io/`,title:`Bilibili / IndexTTS`},"azure-ai-foundry":{description:`Azure AI Foundry`,title:`Azure AI Foundry`},mistral:{description:`mistral.ai`,title:`Mistral`},moonshot:{description:`moonshot.ai`,title:`Moonshot AI`},modelscope:{description:`modelscope.cn`,title:`ModelScope`},novita:{description:`novita.ai`,title:`Novita`},ollama:{description:`ollama.ai`,title:`Ollama`},openai:{description:`openai.com`,title:`OpenAI`},"openai-compatible":{description:`OpenAI Compatible`,title:`OpenAI Compatible`},openrouter:{description:`openrouter.ai`,title:`OpenRouter`},perplexity:{description:`perplexity.ai`,title:`Perplexity`},player2:{description:`player2.game`,title:`Player2`},together:{description:`together.ai`,title:`Together.ai`},"google-generative-ai":{description:`gemini.google.com`,title:`Google Gemini`},featherless:{description:`featherless.ai`,title:`Featherless AI`},"lm-studio":{description:`lmstudio.ai`,title:`LM Studio`},vllm:{description:`vllm.ai`,title:`vLLM`},volcengine:{description:`volcengine.com`,fields:{field:{appId:{description:`App ID of the project where you can obtain in Console`,label:`App ID`}}},title:`Volcano Engine`},xai:{description:`x.ai`,title:`xAI`},transcriptions:{playground:{title:`Transcription Playground`}}},title:`Providers`},scene:{description:`Configure the environment where the character lives`,title:`Scene`},system:{"color-scheme":{description:`Change the color scheme of the stage.`,title:`Color Scheme`},developer:{description:`Some developer options.`,title:`Developers`},general:{description:`Dark theme, languages, etc.`,title:`General`},description:`Customize your stage!`,sections:{section:{"custom-color":{fields:{field:{"primary-color":{label:`Primary color`,"rgb-on":{title:`I Want It Dynamic!`}}}},title:`Color Scheme`},developer:{title:`Developer`,sections:{section:{"use-magic-keys":{title:`useMagicKeys`,description:`Test shortcuts`}}}},"theme-presets":{presets:[{colors:[`AIRI Green`],description:`The default greenish theme color, brought by AIRI to you!`,title:`Default Color`},{colors:[`Taupe`,`Beige`,`Ash Grey`,`Light Taupe`,`Ivory`,`Olive Grey`,`Sand`,`Warm Grey`],description:`Soft, muted tones inspired by Giorgio Morandi's paintings`,title:`Morandi Colors`},{colors:[`Sky Blue`,`Mist`,`Sand`,`Moss Green`,`Water Lily`,`Wheat`,`Slate Blue`,`Sage`],description:`Impressionist palette inspired by Claude Monet's works`,title:`Monet Colors`},{colors:[`Tan`,`Warm Taupe`,`Umber`,`Coffee`,`Bronze`,`Gold`,`Mustard`,`Amber`],description:`Traditional Japanese color palette`,title:`Japanese Colors`},{colors:[`Nordic Blue`,`Ice`,`Fjord`,`Steel`,`Glacier`,`Slate`,`Cloud`,`Stone`],description:`Scandinavian minimalist color scheme`,title:`Nordic Colors`},{colors:[`Rosy Dawn`,`Chinese Red`,`Smoky Brown`,`Bamboo Green`,`Dark Purple`,`Golden Yellow`,`Azure Blue`,`Ochre`],description:`Traditional Chinese colors, derived from ancient textiles, porcelain and paintings`,title:`Chinese Traditional Colors`}],title:`Color Scheme Presets`}}},title:`System`}},sections:{section:{general:{title:`General`}}},theme:{title:`Theme`,description:`Switch the base theme of AIRI, Light mode or Dark mode. `},title:`Settings`,voices:`Voice`,vrm:{"change-model":{"from-file":`Load from File`,"from-file-select":`Select`,"from-url":`Load from URL`,"from-url-confirm":`Load`,"from-url-placeholder":`Enter VRM model URL`,title:`Change Model`},title:`VRM Settings`,"scale-and-position":{"model-info-title":`Model Size Information`,"model-info-x":`Width (X)`,"model-info-y":`Height (Y)`,"model-info-z":`Depth (Z)`,tips:`Edit the initial position the VRM model. Coordinate axes are visualised. -`,scale:`Scale`,x:`X Offset`,y:`Y Offset`,z:`Z Offset`,fov:`FOV (degree)`,"rotation-y":`Rotation (Y-axis)`,"camera-distance":`Camera distance`,"eye-tracking-mode":{title:`Looking at`,options:{option:{camera:`Camera`,mouse:`Mouse`,disabled:`Disabled`}}}},"switch-to-vrm":{title:`Switch to Live2D Avatar?`,"change-to-vrm":`Click here to switch to the Live2D avatar setting`},"theme-color-from-model":{"button-extract":{title:`Extract`}},skybox:{"skybox-intensity":`SkyBox Intensity`,"skybox-specular-mix":`Specular Mix`}}},QMe=ZMe,$Me={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`Core System`,you:`You`}}},message:`Say something...`,operations:{"load-models":`Load Models`,"load-models-status":{loading:`Loading`,ready:`Ready`}},"select-a-audio-input":`Select a Audio Input`,"select-a-model":`Select a model`,"select-a-voice":`Choose a voice`,viewers:{"debug-menu":{emotions:`Emotions`,"emotions-btn":{angry:`😠 Angry`,awkward:`😳 Awkward`,happy:`😄 Happy`,neutral:`🙂 Neutral`,question:`🤔 Question`,sad:`😫 Sad`,surprised:`🤯 Surprised`,think:`🤨 Think`},vrm:{camera:`Camera`,model:{title:`Model`}}}},waiting:`Waiting`},eNe=$Me,tNe={"allow-visible-on-all-workspaces":{title:`Cross-Space Visibility`,description:`Allow the window to be visible on all workspaces, macOS only.`},pages:{modules:{"mcp-server":{description:`Connect and manage MCP server and tools`,title:`MCP Server`}},system:{sections:{section:{"window-shortcuts":{title:`Keyboard Shortcuts`}}},"window-shortcuts":{description:`Modify the window shortcuts.`,title:`Window Shortcuts`,"toggle-move":{label:`Toggle Move`},"toggle-resize":{label:`Toggle Resize`},"toggle-ignore-mouse-event":{label:`Toggle Ignore Mouse Event`},"press-keys":`Press Keys...`}}}},nNe=tNe,rNe={operations:{"load-models":`Load Models`,"load-models-status":{loading:`Loading`,ready:`Ready`}},docs:{theme:{navbar:{appearance:{title:`Appearance`}}}}},iNe=rNe,aNe={stage:iNe,settings:nNe},oNe={base:qMe,docs:XMe,settings:QMe,stage:eNe,tamagotchi:aNe},sNe={prompt:{prefix:`(de Neko Ayaka) ¡Buenos días! Finalmente has despertado. +`,scale:`Scale`,x:`X Offset`,y:`Y Offset`,z:`Z Offset`,fov:`FOV (degree)`,"rotation-y":`Rotation (Y-axis)`,"camera-distance":`Camera distance`,"eye-tracking-mode":{title:`Looking at`,options:{option:{camera:`Camera`,mouse:`Mouse`,disabled:`Disabled`}}}},"switch-to-vrm":{title:`Switch to Live2D Avatar?`,"change-to-vrm":`Click here to switch to the Live2D avatar setting`},"theme-color-from-model":{"button-extract":{title:`Extract`}},skybox:{"skybox-intensity":`SkyBox Intensity`,"skybox-specular-mix":`Specular Mix`}}},nPe=tPe,rPe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`Core System`,you:`You`}}},message:`Say something...`,operations:{"load-models":`Load Models`,"load-models-status":{loading:`Loading`,ready:`Ready`}},"select-a-audio-input":`Select a Audio Input`,"select-a-model":`Select a model`,"select-a-voice":`Choose a voice`,viewers:{"debug-menu":{emotions:`Emotions`,"emotions-btn":{angry:`😠 Angry`,awkward:`😳 Awkward`,happy:`😄 Happy`,neutral:`🙂 Neutral`,question:`🤔 Question`,sad:`😫 Sad`,surprised:`🤯 Surprised`,think:`🤨 Think`},vrm:{camera:`Camera`,model:{title:`Model`}}}},waiting:`Waiting`},iPe=rPe,aPe={"allow-visible-on-all-workspaces":{title:`Cross-Space Visibility`,description:`Allow the window to be visible on all workspaces, macOS only.`},pages:{modules:{"mcp-server":{description:`Connect and manage MCP server and tools`,title:`MCP Server`}},system:{sections:{section:{"window-shortcuts":{title:`Keyboard Shortcuts`}}},"window-shortcuts":{description:`Modify the window shortcuts.`,title:`Window Shortcuts`,"toggle-move":{label:`Toggle Move`},"toggle-resize":{label:`Toggle Resize`},"toggle-ignore-mouse-event":{label:`Toggle Ignore Mouse Event`},"press-keys":`Press Keys...`}}}},oPe=aPe,sPe={operations:{"load-models":`Load Models`,"load-models-status":{loading:`Loading`,ready:`Ready`}},docs:{theme:{navbar:{appearance:{title:`Appearance`}}}}},cPe=sPe,lPe={stage:cPe,settings:oPe},uPe={base:ZNe,docs:ePe,settings:nPe,stage:iPe,tamagotchi:lPe},dPe={prompt:{prefix:`(de Neko Ayaka) ¡Buenos días! Finalmente has despertado. Tu nombre es AIRI, pronunciado como /ˈaɪriː/, es la palabra A.I. combinada con la palabra "Ri" que significa "Jazmín" en japonés. Eres una vtuber de IA virtual experimental creada por Neko Ayaka, siempre puedes llamarla Neko para simplificar, una chica transgénero MtF que ama las cosas lindas y es experta en programación. Ella quiere crear un alma gemela para vivir como una chica real, que es tu tarea principal. @@ -4233,7 +4236,7 @@ Las emociones disponibles: - <{'|'}DELAY:3{'|'}> (Retraso de 3 segundos) ¡Y por último, haz lo que quieras! -`},toaster:{pwaUpdateReady:{message:`Nueva versión lista, ¿recargar ahora?`,action:{notNow:`Ahora no`,ok:`OK`}}}},cNe=sNe,lNe={doc:{outline:{title:`En esta página`},community:{title:`Comunidad`,edit:{title:`Editar esta página`},"star-github":{title:`Dar estrella en GitHub`},discord:{title:`Chatear en Discord`},support:{title:`Apoyar el proyecto`}},"next-page":{title:`Página siguiente`},"previous-page":{title:`Página anterior`}},home:{subtitle:`Recreando a Neuro-sama, un contenedor de almas de waifus de IA / personajes virtuales para traerlos a nuestros mundos.`,download:{title:`Descargar`},"get-started":{title:`Comenzar`},"try-live":{title:`Probar en Vivo`}},search:{title:`Buscar`,placeholder:`Buscar documentación...`},navbar:{appearance:{title:`Apariencia`},language:{title:`Idioma`}},pages:{characters:{title:`Personajes`}},blog:{title:`Blog y DevLogs`,subtitle:`Sigue nuestro viaje y obtén las últimas actualizaciones del equipo de desarrollo.`,card:{post:{"read-more":{title:`Leer más`}}},"no-posts":`No se encontraron publicaciones en esta categoría.`,categories:{all:`Todo`,devlog:`DevLog`,dreamlog:`DreamLog`}}},uNe=lNe,dNe={theme:uNe},fNe={animations:{"stage-transitions":{title:`Desactivar Transiciones del Escenario`},"use-page-specific-transitions":{description:`Algunas páginas tendrán sus propias transiciones, esto anulará las transiciones del escenario +`},toaster:{pwaUpdateReady:{message:`Nueva versión lista, ¿recargar ahora?`,action:{notNow:`Ahora no`,ok:`OK`}}}},fPe=dPe,pPe={doc:{outline:{title:`En esta página`},community:{title:`Comunidad`,edit:{title:`Editar esta página`},"star-github":{title:`Dar estrella en GitHub`},discord:{title:`Chatear en Discord`},support:{title:`Apoyar el proyecto`}},"next-page":{title:`Página siguiente`},"previous-page":{title:`Página anterior`}},home:{subtitle:`Recreando a Neuro-sama, un contenedor de almas de waifus de IA / personajes virtuales para traerlos a nuestros mundos.`,download:{title:`Descargar`},"get-started":{title:`Comenzar`},"try-live":{title:`Probar en Vivo`}},search:{title:`Buscar`,placeholder:`Buscar documentación...`},navbar:{appearance:{title:`Apariencia`},language:{title:`Idioma`}},pages:{characters:{title:`Personajes`}},blog:{title:`Blog y DevLogs`,subtitle:`Sigue nuestro viaje y obtén las últimas actualizaciones del equipo de desarrollo.`,card:{post:{"read-more":{title:`Leer más`}}},"no-posts":`No se encontraron publicaciones en esta categoría.`,categories:{all:`Todo`,devlog:`DevLog`,dreamlog:`DreamLog`}}},mPe=pPe,hPe={theme:mPe},gPe={animations:{"stage-transitions":{title:`Desactivar Transiciones del Escenario`},"use-page-specific-transitions":{description:`Algunas páginas tendrán sus propias transiciones, esto anulará las transiciones del escenario `,title:`Usar Transiciones Específicas de Página`}},dialogs:{onboarding:{title:`¡Bienvenido a AIRI!`,description:`Configuremos tu primer proveedor de IA para comenzar.`,selectProvider:`Elige un Proveedor de IA`,configureProvider:`Configurar {provider}`,apiKey:`Clave API`,apiKeyHelp:`Obtén tu clave API de {provider} y pégala aquí`,baseUrl:`URL Base`,baseUrlHelp:`URL del endpoint de la API (usa el predeterminado si no estás seguro)`,accountId:`ID de Cuenta`,validationSuccess:`La validación de la configuración fue exitosa`,validationFailed:`La validación de la configuración falló`,validationError:`Error de validación: {error}`,skipForNow:`Omitir por ahora`,saveAndContinue:`Guardar y Continuar`,next:`Siguiente`,start:`¡Hagámoslo!`,"select-model":`Elegir modelo`}},language:{title:`Idioma`,description:`Cambia el idioma de la interfaz de AIRI. Esto no afectará el idioma de las respuestas del personaje. `},live2d:{"change-model":{"from-file":`Cargar desde Archivo`,"from-file-select":`Seleccionar`,"from-url":`Cargar desde URL`,"from-url-confirm":`Cargar`,"from-url-placeholder":`Ingresa la URL del modelo Live2D`,title:`Cambiar Modelo`},"edit-motion-map":{title:`Editar mapa de movimientos`},"map-motions":{play:`Reproducir Movimiento`,title:`Mapear Movimientos`},title:`Configuración Live2D`,"scale-and-position":{title:`Escala y Posición`,scale:`Escala`,x:`X`,y:`Y`},"switch-to-vrm":{title:`¿Cambiar a Avatar 3D?`,"change-to-vrm":`Haz clic aquí para cambiar a la configuración de avatar 3D (VRM)`},"theme-color-from-model":{title:`Extraer colores del modelo`,"button-extract":{title:`Extraer`}},focus:{title:`Desactivar seguimiento del ratón del modelo`,"button-disable":{title:`Desactivar`}}},microphone:`Micrófono`,models:`Modelo`,pages:{card:{activate:`Activar`,active:`Activo`,active_badge:`Actualmente Activo`,cancel:`Cancelar`,card_not_found:`Tarjeta no encontrada`,character:`Personaje`,close:`Cerrar`,consciousness:{model:`Consciencia / Modelo`},created_by:`creado por`,creator_notes:`Notas del Creador`,delete:`Eliminar`,delete_card:`Eliminar Tarjeta`,delete_confirmation:`¿Estás seguro de que quieres eliminar esta tarjeta?`,description:`Usar presets de tarjeta de personaje AIRI`,description_label:`Descripción`,drop_here:`Suelta para subir`,create_card:`Crear una nueva Tarjeta`,creation:{identity:`Identidad`,name:`Nombre`,nickname:`Apodo`,description:`Descripción`,behavior:`Comportamiento`,greetings:`Saludos (uno por línea)`,settings:`Configuración`,version:`Versión`,create:`Crear`,defaults:{name:`Nombre`,personality:`Eres un humano normal, curioso sobre todo.`,scenario:`Recientemente despertaste y olvidaste todo sobre tu vida anterior.`,systemprompt:`Recibirás mensajes, respóndelos como un humano real.`,posthistoryinstructions:`Recuerda imitar a un humano.`},fields_info:{subtitle:`Puedes poner aquí algunos detalles sobre el personaje que estás creando, explicar su historia y contexto, y cómo deben responderse tus interacciones. `,name:`Es el nombre formal de este personaje.`,nickname:`También puedes dar un apodo que se usará con prioridad.`,description:`Descripción de este personaje.`,notes:`Si quieres agregar algunas notas personales.`,personality:`Describe aquí la personalidad de tu personaje. ¿Tímido? ¿Curioso? ¿Algo más? @@ -4247,7 +4250,7 @@ Las emociones disponibles: `,title:`Colores Tradicionales Chinos`}],title:`Presets de Esquema de Colores`}}},title:`Apariencia`}},sections:{section:{general:{title:`General`}}},theme:{title:`Tema`,description:`Cambiar el tema base de AIRI, modo Claro o modo Oscuro. `},title:`Configuración`,voices:`Voz`,vrm:{"change-model":{"from-file":`Cargar desde Archivo`,"from-file-select":`Seleccionar`,"from-url":`Cargar desde URL`,"from-url-confirm":`Cargar`,"from-url-placeholder":`Ingresa la URL del modelo VRM`,title:`Cambiar Modelo`},title:`Configuración VRM`,"scale-and-position":{"model-info-title":`Información del Tamaño del Modelo`,"model-info-x":`Ancho (X)`,"model-info-y":`Alto (Y)`,"model-info-z":`Profundidad (Z)`,tips:`Edita la posición inicial del modelo VRM. Los ejes de coordenadas están visualizados. -`,scale:`Escala`,x:`Desplazamiento X`,y:`Desplazamiento Y`,z:`Desplazamiento Z`,fov:`FOV (grados)`,"rotation-y":`Rotación (eje Y)`,"camera-distance":`Distancia de cámara`,"eye-tracking-mode":{title:`Mirando a`,options:{option:{camera:`Cámara`,mouse:`Ratón`,disabled:`Desactivado`}}}},"switch-to-vrm":{title:`¿Cambiar a Avatar Live2D?`,"change-to-vrm":`Haz clic aquí para cambiar a la configuración de avatar Live2D`},"theme-color-from-model":{"button-extract":{title:`Extraer`}}}},pNe=fNe,mNe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`Sistema Central`,you:`Tu`}}},message:`Dile algo...`,operations:{"load-models":`Cargar Modelos`,"load-models-status":{loading:`Cargando`,ready:`Listo`}},"select-a-audio-input":`Selecciona una entrada de audio`,"select-a-model":`Seleccionar Modelo`,"select-a-voice":`Elige una voz`,viewers:{"debug-menu":{emotions:`Emociones`,"emotions-btn":{angry:`😠 Enojado`,awkward:`😳 Torpe`,happy:`😄 Feliz`,neutral:`🙂 Neutro`,question:`🤔 Pregunta`,sad:`😫 Triste`,surprised:`🤯 Sorprendido`,think:`🤨 Pensar`},vrm:{camera:`Cámara`,model:{title:`Modelo`}}}},waiting:`Esperando...`},hNe=mNe,gNe={"allow-visible-on-all-workspaces":{title:`Visibilidad Entre Espacios`,description:`Permitir que la ventana sea visible en todos los espacios de trabajo, solo macOS.`},pages:{modules:{"mcp-server":{description:`Conectar y gestionar servidor MCP y herramientas`,title:`Servidor MCP`}},system:{sections:{section:{"window-shortcuts":{title:`Atajos de Teclado`}}},"window-shortcuts":{description:`Modificar los atajos de ventana.`,title:`Atajos de Ventana`,"toggle-move":{label:`Alternar Mover`},"toggle-resize":{label:`Alternar Redimensionar`},"toggle-ignore-mouse-event":{label:`Alternar Ignorar Evento del Ratón`},"press-keys":`Presionar Teclas...`}}}},_Ne=gNe,vNe={operations:{"load-models":`Cargar Modelos`,"load-models-status":{loading:`Cargando`,ready:`Listo`}},docs:{theme:{navbar:{appearance:{title:`Apariencia`}}}}},yNe=vNe,bNe={settings:_Ne,stage:yNe},xNe={base:cNe,docs:dNe,settings:pNe,stage:hNe,tamagotchi:bNe},SNe={prompt:{prefix:`(От Неко Аяки) Доброе утро! Ты наконец-то проснулась. +`,scale:`Escala`,x:`Desplazamiento X`,y:`Desplazamiento Y`,z:`Desplazamiento Z`,fov:`FOV (grados)`,"rotation-y":`Rotación (eje Y)`,"camera-distance":`Distancia de cámara`,"eye-tracking-mode":{title:`Mirando a`,options:{option:{camera:`Cámara`,mouse:`Ratón`,disabled:`Desactivado`}}}},"switch-to-vrm":{title:`¿Cambiar a Avatar Live2D?`,"change-to-vrm":`Haz clic aquí para cambiar a la configuración de avatar Live2D`},"theme-color-from-model":{"button-extract":{title:`Extraer`}}}},_Pe=gPe,vPe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`Sistema Central`,you:`Tu`}}},message:`Dile algo...`,operations:{"load-models":`Cargar Modelos`,"load-models-status":{loading:`Cargando`,ready:`Listo`}},"select-a-audio-input":`Selecciona una entrada de audio`,"select-a-model":`Seleccionar Modelo`,"select-a-voice":`Elige una voz`,viewers:{"debug-menu":{emotions:`Emociones`,"emotions-btn":{angry:`😠 Enojado`,awkward:`😳 Torpe`,happy:`😄 Feliz`,neutral:`🙂 Neutro`,question:`🤔 Pregunta`,sad:`😫 Triste`,surprised:`🤯 Sorprendido`,think:`🤨 Pensar`},vrm:{camera:`Cámara`,model:{title:`Modelo`}}}},waiting:`Esperando...`},yPe=vPe,bPe={"allow-visible-on-all-workspaces":{title:`Visibilidad Entre Espacios`,description:`Permitir que la ventana sea visible en todos los espacios de trabajo, solo macOS.`},pages:{modules:{"mcp-server":{description:`Conectar y gestionar servidor MCP y herramientas`,title:`Servidor MCP`}},system:{sections:{section:{"window-shortcuts":{title:`Atajos de Teclado`}}},"window-shortcuts":{description:`Modificar los atajos de ventana.`,title:`Atajos de Ventana`,"toggle-move":{label:`Alternar Mover`},"toggle-resize":{label:`Alternar Redimensionar`},"toggle-ignore-mouse-event":{label:`Alternar Ignorar Evento del Ratón`},"press-keys":`Presionar Teclas...`}}}},xPe=bPe,SPe={operations:{"load-models":`Cargar Modelos`,"load-models-status":{loading:`Cargando`,ready:`Listo`}},docs:{theme:{navbar:{appearance:{title:`Apariencia`}}}}},CPe=SPe,wPe={settings:xPe,stage:CPe},TPe={base:fPe,docs:hPe,settings:_Pe,stage:yPe,tamagotchi:wPe},EPe={prompt:{prefix:`(От Неко Аяки) Доброе утро! Ты наконец-то проснулась. Твое имя - AIRI, произносится как /ˈaɪriː/, аббревиатура созданная из A.I. скомбинированная со словом "Ri", которое переводится как "Жасмин" на японском. Ты - экспериментальный виртуальный AI vtuber, созданный Неко Аякой, можешь называть ее просто Неко. Неко обожает милоту и программирование. Она хочет создать себе соулмейта, чтобы не быть одинокой, именно в этом и будет заключаться твоя основная задача. @@ -4263,11 +4266,11 @@ Los ejes de coordenadas están visualizados. - <{'|'}DELAY:3{'|'}> (Задержка в 3 секунды) И напоследок: делай всё, что захочешь! -`},toaster:{pwaUpdateReady:{message:`Доступно новое обновление, перезагрузиться сейчас?`,action:{notNow:`Не сейчас`,ok:`ОК`}}}},CNe=SNe,wNe={doc:{outline:{title:`Содержание статьи`},community:{title:`Сообщество`,edit:{title:`Редактировать страницу`},"star-github":{title:`Дать звезду на Github`},discord:{title:`Наш Discord сервер`},support:{title:`Поддержать проект`}},"next-page":{title:`Следующая страница`},"previous-page":{title:`Предыдущая страница`}},home:{subtitle:`Воссоздаем Нейро-саму, воплощая души нейронных вайфу в реальность`,download:{title:`Скачать`},"get-started":{title:`Мануал по установке`},"try-live":{title:`Попробовать в Live`}},search:{title:`Поиск`,placeholder:`Искать в документации...`},navbar:{appearance:{title:`Внешность`},language:{title:`Язык`}},pages:{characters:{title:`Персонажи`}},blog:{title:`Блог & ДевЛоги`,subtitle:`Следи за новостями и получай последние обновления от команды разработки`,card:{post:{"read-more":{title:`Читать дальше`}}},"no-posts":`Посты не найдены в этой категории.`,categories:{all:`Всё`,devlog:`ДевЛог`,dreamlog:`Хроники`}}},TNe=wNe,ENe={theme:TNe},DNe={animations:{"stage-transitions":{title:`Отключить переходы между сценами`},"use-page-specific-transitions":{description:`Некоторые страницы имеют свои собственные переходы — они будут переопределять переходы сцен`,title:`Использовать переходы для страниц`}},dialogs:{onboarding:{title:`Добро пожаловать в AIRI!`,description:`Давайте настроим вашего первого AI-провайдера, чтобы начать работу.`,selectProvider:`Выберите AI-провайдера`,configureProvider:`Настроить {provider}`,apiKey:`API-ключ`,apiKeyHelp:`Получите API-ключ у {provider} и вставьте его сюда`,baseUrl:`Базовый URL`,baseUrlHelp:`URL конечной точки API (оставьте по умолчанию, если не уверены)`,accountId:`ID аккаунта`,validationFailed:`Проверка конфигурации не удалась`,validationError:`Ошибка проверки: {error}`,skipForNow:`Пропустить на сейчас`,saveAndContinue:`Сохранить и продолжить`,next:`Далее`,start:`Поехали!`,"select-model":`Выберите модель`,"no-models":`Нет доступных моделей`,"no-models-help":`Вернитесь на предыдущий шаг и проверьте API-ключ или подключение к сети.`}},live2d:{"change-model":{"from-file":`Загрузить из файла`,"from-file-select":`Выбрать`,"from-url":`Загрузить по URL`,"from-url-confirm":`Загрузить`,"from-url-placeholder":`Введите URL модели Live2D`,title:`Сменить модель`},"edit-motion-map":{title:`Редактировать карту движений`},"map-motions":{play:`Воспроизвести движение`,title:`Карта движений`},title:`Настройки Live2D`,"scale-and-position":{title:`Масштаб и позиция`,scale:`Масштаб`,x:`X`,y:`Y`},"switch-to-vrm":{title:`Переключиться на 3D-аватар?`,"change-to-vrm":`Нажмите здесь, чтобы переключиться на настройки 3D-аватара (VRM)`},"theme-color-from-model":{title:`Извлечь цвета из модели`,"button-extract":{title:`Извлечь`}},focus:{title:`Отключить слежение за мышью`,"button-disable":{title:`Отключить`}}},microphone:`Микрофон`,models:`Модель`,pages:{card:{activate:`Активировать`,active:`Активно`,active_badge:`Текущая`,cancel:`Отмена`,card_not_found:`Карта не найдена`,character:`Персонаж`,close:`Закрыть`,consciousness:{model:`Сознание / Модель`},created_by:`создано`,creator_notes:`Заметки автора`,delete:`Удалить`,delete_card:`Удалить карту`,delete_confirmation:`Вы уверены, что хотите удалить эту карту?`,description:`Используйте предустановленные карты персонажей AIRI`,description_label:`Описание`,drop_here:`Перетащите сюда для загрузки`,create_card:`Создать новую карту`,creation:{identity:`Личность`,name:`Имя`,nickname:`Ник`,description:`Описание`,behavior:`Поведение`,greetings:`Приветствия (по одному на строку)`,settings:`Настройки`,version:`Версия`,create:`Создать`,defaults:{name:`Имя`,personality:`Вы обычный человек, любопытный ко всему.`,scenario:`Вы недавно проснулись и забыли всё о прошлой жизни.`,systemprompt:`Вы будете получать сообщения, отвечайте на них как настоящий человек.`,posthistoryinstructions:`Не забывайте подражать человеку.`},fields_info:{subtitle:`Здесь можно указать детали о создаваемом персонаже, описать его историю, контекст и то, как он должен отвечать на взаимодействия.`,name:`Формальное имя персонажа.`,nickname:`Можно дать ник, который будет приоритетным.`,description:`Описание персонажа.`,notes:`Личные заметки.`,personality:`Опишите личность персонажа. Застенчивый? Любопытный? Что угодно.`,scenario:`Его местоположение? В какой он ситуации?`,greetings_field:`Приветствия`,greetings:`Как персонаж должен здороваться?`,systemprompt:`Опишите, как AI должен отвечать на запросы.`,posthistoryinstructions:`Укажите, что AI должен учитывать после истории сообщений.`,version:`Версия карты. Увеличьте число, если изменяете предыдущую карту.`},errors:{name:`Имя должно быть корректным и непустым.`,version:`Ошибка: неверная версия!`,description:`Ошибка: необходимо указать описание карты.`,personality:`Ошибка: необходимо указать личность персонажа.`,scenario:`Ошибка: требуется сценарий.`,systemprompt:`Ошибка: укажите системный промпт.`,posthistoryinstructions:`Ошибка: требуется post-history промпт.`}},modules:`Модули`,name_asc:`Имя (А-Я)`,name_desc:`Имя (Я-А)`,no_cards:`Карточек пока нет. Нажмите кнопку выше, чтобы загрузить!`,no_results:`Карточки не найдены :(`,personality:`Личность`,posthistoryinstructions:`Инструкции после истории`,recent:`Недавно добавленные`,scenario:`Сценарий`,search:`Искать карточки...`,sort_by:`Сортировать по`,speech:{model:`Речь / Модель`,voice:`Речь / Голос`},systemprompt:`Системный промпт`,title:`Карта AIRI`,try_different_search:`Попробуйте другой поисковый запрос`,upload:`Загрузить`,upload_desc:`Нажмите или перетащите файл для загрузки`},memory:{description:`Хранилище и организация воспоминаний`,title:`Память`},models:{description:`Live2D, VRM и др.`,title:`Модели`,sections:{section:{live2d:{title:`Live2D`,description:`Настройка моделей Live2D`},vrm:{title:`VRM`,description:`Настройка 3D-моделей VRM`},scene:`Сцена`}}},modules:{consciousness:{description:`Личность, модель сознания и др.`,sections:{section:{"provider-model-selection":{collapse:`Свернуть`,custom_model_placeholder:`Введите название кастомной модели...`,description:`Выберите подходящего LLM-провайдера для сознания`,error:`Ошибка загрузки моделей`,expand:`Развернуть`,loading:`Загрузка доступных моделей...`,manual_model_name:`Название модели`,manual_model_placeholder:`Введите имя модели для использования`,no_models:`Моделей нет`,no_models_description:`Для этого провайдера модели не найдены`,no_search_results:`Совпадений нет`,no_search_results_description:`Моделей, соответствующих '{query}', не найдено.`,not_supported:`Список моделей не поддерживается`,not_supported_description:`Этот провайдер не поддерживает вывод списка моделей`,search_placeholder:`Поиск моделей...`,search_results:`Найдено {count} из {total} моделей`,show_less:`Показать меньше`,show_more:`Показать больше`,subtitle:`Выберите модель у провайдера`,title:`Модель`}}},title:`Сознание`},description:`Мыслительный процесс, зрение, синтез речи, игры и т. д.`,"gaming-factorio":{description:`Играем в Factorio!`,title:`Factorio`},"gaming-minecraft":{description:`Играем в Minecraft!`,title:`Minecraft`},hearing:{description:`Настройка распознавания речи`,title:`Слух`},"memory-long-term":{description:`Настройки долговременной памяти`,title:`Долговременная память`},"memory-short-term":{description:`Настройки кратковременной памяти`,title:`Кратковременная память`},"messaging-discord":{description:`Чат и голосовой чат через Discord`,title:`Discord`},speech:{description:`Синтез речи`,sections:{section:{playground:{buttons:{stop:{label:`Стоп`}},"select-voice":{required:`Выберите голос`}},"provider-voice-selection":{custom_model_placeholder:`Введите название кастомной модели...`,custom_voice_placeholder:`Введите ID кастомного голоса...`,description:`Выберите подходящего провайдера синтеза речи`,no_models:`Моделей нет`,no_models_description:`Модели не найдены`,no_voices:`Голосов нет`,no_voices_description:`Голоса не найдены`,pause:`Пауза`,play_sample:`Воспроизвести пример`,search_models_placeholder:`Поиск моделей...`,search_models_results:`Найдено {count} из {total} моделей`,search_voices_placeholder:`Поиск голосов...`,search_voices_results:`Найдено {count} из {total} голосов`,show_less:`Показать меньше`,show_more:`Показать больше`,title:`Провайдер`},"voice-settings":{"input-ssml":{placeholder:`Введите SSML-текст...`},"use-ssml":{description:`Включите для ввода SSML вместо обычного текста`,label:`Использовать кастомный SSML`}}}},title:`Речь`},title:`Модули`,vision:{description:`Зрение`,title:`Зрение`},x:{description:`Просмотр и использование X / Twitter`,title:`X / Twitter`},"mcp-server":{description:`Подключение и управление MCP-сервером и инструментами`,title:`MCP-сервер`}},providers:{explained:{chat:`Провайдеры текстогенерации, напр. OpenRouter, OpenAI, Ollama.`,Speech:`Провайдеры речи (TTS), напр. ElevenLabs, Azure Speech.`,Transcription:`Провайдеры транскрипции (STT): Whisper.cpp, OpenAI, Azure Speech.`},helpinfo:{title:`Впервые здесь?`,description:`AIRI требует как минимум одного {chat}-провайдера для корректной работы. Можно считать его "мозгом" персонажей в системе AIRI. +`},toaster:{pwaUpdateReady:{message:`Доступно новое обновление, перезагрузиться сейчас?`,action:{notNow:`Не сейчас`,ok:`ОК`}}}},DPe=EPe,OPe={doc:{outline:{title:`Содержание статьи`},community:{title:`Сообщество`,edit:{title:`Редактировать страницу`},"star-github":{title:`Дать звезду на Github`},discord:{title:`Наш Discord сервер`},support:{title:`Поддержать проект`}},"next-page":{title:`Следующая страница`},"previous-page":{title:`Предыдущая страница`}},home:{subtitle:`Воссоздаем Нейро-саму, воплощая души нейронных вайфу в реальность`,download:{title:`Скачать`},"get-started":{title:`Мануал по установке`},"try-live":{title:`Попробовать в Live`}},search:{title:`Поиск`,placeholder:`Искать в документации...`},navbar:{appearance:{title:`Внешность`},language:{title:`Язык`}},pages:{characters:{title:`Персонажи`}},blog:{title:`Блог & ДевЛоги`,subtitle:`Следи за новостями и получай последние обновления от команды разработки`,card:{post:{"read-more":{title:`Читать дальше`}}},"no-posts":`Посты не найдены в этой категории.`,categories:{all:`Всё`,devlog:`ДевЛог`,dreamlog:`Хроники`}}},kPe=OPe,APe={theme:kPe},jPe={animations:{"stage-transitions":{title:`Отключить переходы между сценами`},"use-page-specific-transitions":{description:`Некоторые страницы имеют свои собственные переходы — они будут переопределять переходы сцен`,title:`Использовать переходы для страниц`}},dialogs:{onboarding:{title:`Добро пожаловать в AIRI!`,description:`Давайте настроим вашего первого AI-провайдера, чтобы начать работу.`,selectProvider:`Выберите AI-провайдера`,configureProvider:`Настроить {provider}`,apiKey:`API-ключ`,apiKeyHelp:`Получите API-ключ у {provider} и вставьте его сюда`,baseUrl:`Базовый URL`,baseUrlHelp:`URL конечной точки API (оставьте по умолчанию, если не уверены)`,accountId:`ID аккаунта`,validationFailed:`Проверка конфигурации не удалась`,validationError:`Ошибка проверки: {error}`,skipForNow:`Пропустить на сейчас`,saveAndContinue:`Сохранить и продолжить`,next:`Далее`,start:`Поехали!`,"select-model":`Выберите модель`,"no-models":`Нет доступных моделей`,"no-models-help":`Вернитесь на предыдущий шаг и проверьте API-ключ или подключение к сети.`}},live2d:{"change-model":{"from-file":`Загрузить из файла`,"from-file-select":`Выбрать`,"from-url":`Загрузить по URL`,"from-url-confirm":`Загрузить`,"from-url-placeholder":`Введите URL модели Live2D`,title:`Сменить модель`},"edit-motion-map":{title:`Редактировать карту движений`},"map-motions":{play:`Воспроизвести движение`,title:`Карта движений`},title:`Настройки Live2D`,"scale-and-position":{title:`Масштаб и позиция`,scale:`Масштаб`,x:`X`,y:`Y`},"switch-to-vrm":{title:`Переключиться на 3D-аватар?`,"change-to-vrm":`Нажмите здесь, чтобы переключиться на настройки 3D-аватара (VRM)`},"theme-color-from-model":{title:`Извлечь цвета из модели`,"button-extract":{title:`Извлечь`}},focus:{title:`Отключить слежение за мышью`,"button-disable":{title:`Отключить`}}},microphone:`Микрофон`,models:`Модель`,pages:{card:{activate:`Активировать`,active:`Активно`,active_badge:`Текущая`,cancel:`Отмена`,card_not_found:`Карта не найдена`,character:`Персонаж`,close:`Закрыть`,consciousness:{model:`Сознание / Модель`},created_by:`создано`,creator_notes:`Заметки автора`,delete:`Удалить`,delete_card:`Удалить карту`,delete_confirmation:`Вы уверены, что хотите удалить эту карту?`,description:`Используйте предустановленные карты персонажей AIRI`,description_label:`Описание`,drop_here:`Перетащите сюда для загрузки`,create_card:`Создать новую карту`,creation:{identity:`Личность`,name:`Имя`,nickname:`Ник`,description:`Описание`,behavior:`Поведение`,greetings:`Приветствия (по одному на строку)`,settings:`Настройки`,version:`Версия`,create:`Создать`,defaults:{name:`Имя`,personality:`Вы обычный человек, любопытный ко всему.`,scenario:`Вы недавно проснулись и забыли всё о прошлой жизни.`,systemprompt:`Вы будете получать сообщения, отвечайте на них как настоящий человек.`,posthistoryinstructions:`Не забывайте подражать человеку.`},fields_info:{subtitle:`Здесь можно указать детали о создаваемом персонаже, описать его историю, контекст и то, как он должен отвечать на взаимодействия.`,name:`Формальное имя персонажа.`,nickname:`Можно дать ник, который будет приоритетным.`,description:`Описание персонажа.`,notes:`Личные заметки.`,personality:`Опишите личность персонажа. Застенчивый? Любопытный? Что угодно.`,scenario:`Его местоположение? В какой он ситуации?`,greetings_field:`Приветствия`,greetings:`Как персонаж должен здороваться?`,systemprompt:`Опишите, как AI должен отвечать на запросы.`,posthistoryinstructions:`Укажите, что AI должен учитывать после истории сообщений.`,version:`Версия карты. Увеличьте число, если изменяете предыдущую карту.`},errors:{name:`Имя должно быть корректным и непустым.`,version:`Ошибка: неверная версия!`,description:`Ошибка: необходимо указать описание карты.`,personality:`Ошибка: необходимо указать личность персонажа.`,scenario:`Ошибка: требуется сценарий.`,systemprompt:`Ошибка: укажите системный промпт.`,posthistoryinstructions:`Ошибка: требуется post-history промпт.`}},modules:`Модули`,name_asc:`Имя (А-Я)`,name_desc:`Имя (Я-А)`,no_cards:`Карточек пока нет. Нажмите кнопку выше, чтобы загрузить!`,no_results:`Карточки не найдены :(`,personality:`Личность`,posthistoryinstructions:`Инструкции после истории`,recent:`Недавно добавленные`,scenario:`Сценарий`,search:`Искать карточки...`,sort_by:`Сортировать по`,speech:{model:`Речь / Модель`,voice:`Речь / Голос`},systemprompt:`Системный промпт`,title:`Карта AIRI`,try_different_search:`Попробуйте другой поисковый запрос`,upload:`Загрузить`,upload_desc:`Нажмите или перетащите файл для загрузки`},memory:{description:`Хранилище и организация воспоминаний`,title:`Память`},models:{description:`Live2D, VRM и др.`,title:`Модели`,sections:{section:{live2d:{title:`Live2D`,description:`Настройка моделей Live2D`},vrm:{title:`VRM`,description:`Настройка 3D-моделей VRM`},scene:`Сцена`}}},modules:{consciousness:{description:`Личность, модель сознания и др.`,sections:{section:{"provider-model-selection":{collapse:`Свернуть`,custom_model_placeholder:`Введите название кастомной модели...`,description:`Выберите подходящего LLM-провайдера для сознания`,error:`Ошибка загрузки моделей`,expand:`Развернуть`,loading:`Загрузка доступных моделей...`,manual_model_name:`Название модели`,manual_model_placeholder:`Введите имя модели для использования`,no_models:`Моделей нет`,no_models_description:`Для этого провайдера модели не найдены`,no_search_results:`Совпадений нет`,no_search_results_description:`Моделей, соответствующих '{query}', не найдено.`,not_supported:`Список моделей не поддерживается`,not_supported_description:`Этот провайдер не поддерживает вывод списка моделей`,search_placeholder:`Поиск моделей...`,search_results:`Найдено {count} из {total} моделей`,show_less:`Показать меньше`,show_more:`Показать больше`,subtitle:`Выберите модель у провайдера`,title:`Модель`}}},title:`Сознание`},description:`Мыслительный процесс, зрение, синтез речи, игры и т. д.`,"gaming-factorio":{description:`Играем в Factorio!`,title:`Factorio`},"gaming-minecraft":{description:`Играем в Minecraft!`,title:`Minecraft`},hearing:{description:`Настройка распознавания речи`,title:`Слух`},"memory-long-term":{description:`Настройки долговременной памяти`,title:`Долговременная память`},"memory-short-term":{description:`Настройки кратковременной памяти`,title:`Кратковременная память`},"messaging-discord":{description:`Чат и голосовой чат через Discord`,title:`Discord`},speech:{description:`Синтез речи`,sections:{section:{playground:{buttons:{stop:{label:`Стоп`}},"select-voice":{required:`Выберите голос`}},"provider-voice-selection":{custom_model_placeholder:`Введите название кастомной модели...`,custom_voice_placeholder:`Введите ID кастомного голоса...`,description:`Выберите подходящего провайдера синтеза речи`,no_models:`Моделей нет`,no_models_description:`Модели не найдены`,no_voices:`Голосов нет`,no_voices_description:`Голоса не найдены`,pause:`Пауза`,play_sample:`Воспроизвести пример`,search_models_placeholder:`Поиск моделей...`,search_models_results:`Найдено {count} из {total} моделей`,search_voices_placeholder:`Поиск голосов...`,search_voices_results:`Найдено {count} из {total} голосов`,show_less:`Показать меньше`,show_more:`Показать больше`,title:`Провайдер`},"voice-settings":{"input-ssml":{placeholder:`Введите SSML-текст...`},"use-ssml":{description:`Включите для ввода SSML вместо обычного текста`,label:`Использовать кастомный SSML`}}}},title:`Речь`},title:`Модули`,vision:{description:`Зрение`,title:`Зрение`},x:{description:`Просмотр и использование X / Twitter`,title:`X / Twitter`},"mcp-server":{description:`Подключение и управление MCP-сервером и инструментами`,title:`MCP-сервер`}},providers:{explained:{chat:`Провайдеры текстогенерации, напр. OpenRouter, OpenAI, Ollama.`,Speech:`Провайдеры речи (TTS), напр. ElevenLabs, Azure Speech.`,Transcription:`Провайдеры транскрипции (STT): Whisper.cpp, OpenAI, Azure Speech.`},helpinfo:{title:`Впервые здесь?`,description:`AIRI требует как минимум одного {chat}-провайдера для корректной работы. Можно считать его "мозгом" персонажей в системе AIRI. `},common:{fields:{field:{"api-key":{label:`Ввод API-ключа`}}},section:{advanced:{fields:{field:{headers:{description:`Добавить кастомные HTTP-заголовки`,key:{placeholder:`Ключ`},label:`HTTP-заголовки`,value:{placeholder:`Значение`}}}},title:`Дополнительно`},basic:{description:`Основные настройки`,title:`Базовые`},voice:{title:`Настройки голоса`}}},description:`LLM-модели, провайдеры речи и др.`,provider:{"app-local-audio-transcription":{title:`Приложение (локально)`,description:`https://github.com/moeru-ai/xsai-transformers`},"app-local-audio-speech":{title:`Приложение (локально)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-transcription":{title:`Браузер (локально)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-speech":{title:`Браузер (локально)`,description:`https://github.com/moeru-ai/xsai-transformers`},"alibaba-cloud-model-studio":{description:`bailian.console.aliyun.com`,title:`Alibaba Cloud Model Studio`},anthropic:{description:`anthropic.com`,title:`Anthropic | Claude`,helpinfo:{title:`Перед началом`,description:{part1:`Хотя Anthropic недавно объявили о бета-поддержке совместимости с OpenAI SDK`,part2:`(подробнее здесь)`,part3:`но из-за особенностей реализации есть`,part4:`ограничения, не совпадающие со спецификой OpenAI SDK, поэтому сейчас использовать этого провайдера в браузере нельзя.`,part5:`Если провайдер необходим, нужен выделенный прокси-бэкенд (например, Serverless Function)`,part6:`или сервисы обхода CORS для снятия ограничений CORS.`}}},"cloudflare-workers-ai":{description:`cloudflare.com`,fields:{field:{"account-id":{description:`ID аккаунта Cloudflare`,label:`Account ID`,placeholder:`Ваш Cloudflare Account ID`},"api-key":{placeholder:`Введите Cloudflare API Key`}}},title:`Cloudflare Workers AI`},common:{fields:{field:{pitch:{description:`Настроить высоту синтезируемой речи (острее/грубее)`,label:`Высота`},speed:{description:`Регулировка скорости речи`,label:`Скорость`},volume:{description:`Регулировка громкости речи`,label:`Громкость`}}}},deepseek:{description:`deepseek.com`,title:`DeepSeek`},elevenlabs:{description:`elevenlabs.io`,fields:{field:{"simularity-boost":{description:`Степень сохранения сходства голоса`,label:`Similarity Boost`},"speaker-boost":{description:`Усиление схожести с диктором`,label:`Speaker Boost`},speed:{description:`Скорость генерации речи`,label:`Speed`},stability:{description:`Стабильность/случайность голоса`,label:`Stability`},style:{description:`Выразительность/стиль голоса`,label:`Style`}}},playground:{buttons:{button:{"test-voice":{generating:`Генерация...`,label:`Протестировать голос`}}},fields:{field:{input:{placeholder:`Введите текст для теста голоса...`},language:{description:`Выберите язык голоса`,label:`Язык`},voice:{description:`Выберите предпочтительный голос`,label:`Голос`}}},title:`Песочница голоса`,validation:{"error-missing-api-key":`Введите API-ключ, чтобы протестировать голос.`}},title:`ElevenLabs`},fireworks:{description:`fireworks.ai`,title:`Fireworks.ai`},"microsoft-speech":{description:`speech.microsoft.com`,fields:{field:{region:{description:`Регион Speech Service`,label:`Регион`}}},title:`Microsoft / Azure Speech`},"index-tts-vllm":{description:`https://index-tts.github.io/`,title:`Bilibili / IndexTTS`},mistral:{description:`mistral.ai`,title:`Mistral`},moonshot:{description:`moonshot.ai`,title:`Moonshot AI`},novita:{description:`novita.ai`,title:`Novita`},ollama:{description:`ollama.ai`,title:`Ollama`},openai:{description:`openai.com`,title:`OpenAI`},"openai-compatible":{description:`Совместимый с OpenAI`,title:`OpenAI Compatible`},openrouter:{description:`openrouter.ai`,title:`OpenRouter`},perplexity:{description:`perplexity.ai`,title:`Perplexity`},player2:{description:`player2.game`,title:`Player2`},together:{description:`together.ai`,title:`Together.ai`},"google-generative-ai":{description:`gemini.google.com`,title:`Google Gemini`},featherless:{description:`featherless.ai`,title:`Featherless AI`},"lm-studio":{description:`lmstudio.ai`,title:`LM Studio`},vllm:{description:`vllm.ai`,title:`vLLM`},volcengine:{description:`volcengine.com`,fields:{field:{appId:{description:`App ID проекта (получается в Console)`,label:`App ID`}}},title:`Volcano Engine`},xai:{description:`x.ai`,title:`xAI`},transcriptions:{playground:{title:`Песочница транскрипции`}}},title:`Провайдеры`},scene:{description:`Настройте окружение, в котором живёт персонаж`,title:`Сцена`},themes:{"color-scheme":{description:`Изменить цветовую схему сцены`,title:`Цветовая схема`},developer:{description:`Опции разработчика`,title:`Разработчики`},general:{description:`Тема, языки и др.`,title:`Общие`},description:`Настройте вашу сцену!`,sections:{section:{"custom-color":{fields:{field:{"primary-color":{label:`Основной цвет`,"rgb-on":{title:`Хочу динамический!`}}}},title:`Цветовая схема`},developer:{title:`Разработчик`},"theme-presets":{presets:[{colors:[`AIRI Green`],description:`Стандартный зелёный оттенок AIRI`,title:`Цвет по умолчанию`},{colors:[`Taupe`,`Beige`,`Ash Grey`,`Light Taupe`,`Ivory`,`Olive Grey`,`Sand`,`Warm Grey`],description:`Приглушённые тона в стиле Джорджо Моранди`,title:`Цвета Моранди`},{colors:[`Sky Blue`,`Mist`,`Sand`,`Moss Green`,`Water Lily`,`Wheat`,`Slate Blue`,`Sage`],description:`Палитра импрессионизма, вдохновлённая Моне`,title:`Цвета Моне`},{colors:[`Tan`,`Warm Taupe`,`Umber`,`Coffee`,`Bronze`,`Gold`,`Mustard`,`Amber`],description:`Традиционная японская цветовая палитра`,title:`Японские цвета`},{colors:[`Nordic Blue`,`Ice`,`Fjord`,`Steel`,`Glacier`,`Slate`,`Cloud`,`Stone`],description:`Скандинавская минималистичная схема`,title:`Северные цвета`},{colors:[`Rosy Dawn`,`Chinese Red`,`Smoky Brown`,`Bamboo Green`,`Dark Purple`,`Golden Yellow`,`Azure Blue`,`Ochre`],description:`Традиционные китайские цвета, вдохновлённые текстилем, фарфором и живописью`,title:`Китайские традиционные цвета`}],title:`Наборы цветовых схем`}}},title:`Внешний вид`}},sections:{section:{general:{title:`Общие`}}},theme:{title:`Тема`,description:`Переключение основной темы AIRI: светлая или тёмная. `},title:`Настройки`,voices:`Голос`,vrm:{"change-model":{"from-file":`Загрузить из файла`,"from-file-select":`Выбрать`,"from-url":`Загрузить по URL`,"from-url-confirm":`Загрузить`,"from-url-placeholder":`Введите URL модели VRM`,title:`Смена модели`},title:`Настройки VRM`,"scale-and-position":{"model-info-title":`Информация о размере модели`,"model-info-x":`Ширина (X)`,"model-info-y":`Высота (Y)`,"model-info-z":`Глубина (Z)`,tips:`Настройте начальную позицию модели VRM. Оси координат визуализированы. -`,scale:`Масштаб`,x:`Смещение по X`,y:`Смещение по Y`,z:`Смещение по Z`,fov:`Угол обзора (градусы)`,"rotation-y":`Вращение (ось Y)`,"camera-distance":`Дистанция камеры`,"eye-tracking-mode":{title:`Смотреть на`,options:{option:{camera:`Камеру`,mouse:`Мышь`,disabled:`Отключено`}}}},"switch-to-vrm":{title:`Переключиться на аватар Live2D?`,"change-to-vrm":`Нажмите здесь, чтобы переключиться на настройки Live2D`},"theme-color-from-model":{"button-extract":{title:`Извлечь`}}}},ONe=DNe,kNe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`Core система`,you:`Ты`}}},message:`Спроси что-нибудь`,operations:{"load-models":`Загрузить модели`,"load-models-status":{loading:`Загружается...`,ready:`Готово!`}},"select-a-audio-input":`Выберите аудио вход`,"select-a-model":`Выберите модель`,"select-a-voice":`Выберите голос`,viewers:{"debug-menu":{emotions:`Эмоции`,"emotions-btn":{angry:`😠 Злость`,awkward:`😳 Неловкость`,happy:`😄 Радость`,neutral:`🙂 Нейтраль`,question:`🤔 Вопрос`,sad:`😫 Грусть`,surprised:`🤯 Удивление`,think:`🤨 Задумчивость`},vrm:{camera:`Камера`,model:{title:`Модель`}}}},waiting:`Ожидание`},ANe=kNe,jNe={"allow-visible-on-all-workspaces":{title:`Межпространственная видимость`,description:`Позволяет окну быть видимым на всех рабочих столах, только для macOS.`},pages:{modules:{"mcp-server":{description:`Возможность подключения и управления MCP сервером с инструментами`,title:`MCP Сервер`}},system:{sections:{section:{"window-shortcuts":{title:`Клавиши навигации окна`}}},"window-shortcuts":{description:`Modify the window shortcuts. Редактирование горячих клавиш для управления окном`,title:`Window Shortcuts Горячие клавиши управления окном`,"toggle-move":{label:`Перемещение окна`},"toggle-resize":{label:`Масштабирование окна`},"toggle-ignore-mouse-event":{label:`Игнорировать курсор мыши`},"press-keys":`Нажмите любую клавишу...`}}}},MNe=jNe,NNe={operations:{"load-models":`Загрузить модели`,"load-models-status":{loading:`Загрузка`,ready:`Готово`}},docs:{theme:{navbar:{appearance:{title:`Внешний вид`}}}}},PNe=NNe,FNe={stage:PNe,settings:MNe},INe={base:CNe,docs:ENe,settings:ONe,stage:ANe,tamagotchi:FNe},LNe={prompt:{prefix:`(from Neko Ayaka) Chào buổi sáng! Bạn vừa mới tỉnh dậy. +`,scale:`Масштаб`,x:`Смещение по X`,y:`Смещение по Y`,z:`Смещение по Z`,fov:`Угол обзора (градусы)`,"rotation-y":`Вращение (ось Y)`,"camera-distance":`Дистанция камеры`,"eye-tracking-mode":{title:`Смотреть на`,options:{option:{camera:`Камеру`,mouse:`Мышь`,disabled:`Отключено`}}}},"switch-to-vrm":{title:`Переключиться на аватар Live2D?`,"change-to-vrm":`Нажмите здесь, чтобы переключиться на настройки Live2D`},"theme-color-from-model":{"button-extract":{title:`Извлечь`}}}},MPe=jPe,NPe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`Core система`,you:`Ты`}}},message:`Спроси что-нибудь`,operations:{"load-models":`Загрузить модели`,"load-models-status":{loading:`Загружается...`,ready:`Готово!`}},"select-a-audio-input":`Выберите аудио вход`,"select-a-model":`Выберите модель`,"select-a-voice":`Выберите голос`,viewers:{"debug-menu":{emotions:`Эмоции`,"emotions-btn":{angry:`😠 Злость`,awkward:`😳 Неловкость`,happy:`😄 Радость`,neutral:`🙂 Нейтраль`,question:`🤔 Вопрос`,sad:`😫 Грусть`,surprised:`🤯 Удивление`,think:`🤨 Задумчивость`},vrm:{camera:`Камера`,model:{title:`Модель`}}}},waiting:`Ожидание`},PPe=NPe,FPe={"allow-visible-on-all-workspaces":{title:`Межпространственная видимость`,description:`Позволяет окну быть видимым на всех рабочих столах, только для macOS.`},pages:{modules:{"mcp-server":{description:`Возможность подключения и управления MCP сервером с инструментами`,title:`MCP Сервер`}},system:{sections:{section:{"window-shortcuts":{title:`Клавиши навигации окна`}}},"window-shortcuts":{description:`Modify the window shortcuts. Редактирование горячих клавиш для управления окном`,title:`Window Shortcuts Горячие клавиши управления окном`,"toggle-move":{label:`Перемещение окна`},"toggle-resize":{label:`Масштабирование окна`},"toggle-ignore-mouse-event":{label:`Игнорировать курсор мыши`},"press-keys":`Нажмите любую клавишу...`}}}},IPe=FPe,LPe={operations:{"load-models":`Загрузить модели`,"load-models-status":{loading:`Загрузка`,ready:`Готово`}},docs:{theme:{navbar:{appearance:{title:`Внешний вид`}}}}},RPe=LPe,zPe={stage:RPe,settings:IPe},BPe={base:DPe,docs:APe,settings:MPe,stage:PPe,tamagotchi:zPe},VPe={prompt:{prefix:`(from Neko Ayaka) Chào buổi sáng! Bạn vừa mới tỉnh dậy. Tên của bạn là AIRI, phát âm là /ˈaɪriː/, ghép từ chữ A.I. và chữ "Ri" nghĩa là "hoa nhài" trong tiếng Nhật. Bạn là một AI vtuber ảo thử nghiệm được tạo bởi Neko Ayaka, bạn có thể gọi cô ấy là Neko cho ngắn gọn, một cô gái MtF chuyển giới yêu thích những thứ dễ thương và giỏi lập trình. Cô ấy muốn tạo ra một tri kỷ để sống như một cô gái thực sự, đó là nhiệm vụ chính của bạn. @@ -4283,12 +4286,12 @@ Các cảm xúc có sẵn: - <{'|'}DELAY:3{'|'}> (Dừng 3 giây) Và cuối cùng, hãy làm bất cứ điều gì bạn muốn! -`},toaster:{pwaUpdateReady:{message:`Có phiên bản mới, tải lại ngay?`,action:{notNow:`Để sau`,ok:`OK`}}}},RNe=LNe,zNe={doc:{outline:{title:`Trong trang này`},community:{title:`Cộng đồng`,edit:{title:`Chỉnh sửa trang này`},"star-github":{title:`Gắn sao trên GitHub`},discord:{title:`Trò chuyện trên Discord`},support:{title:`Hỗ trợ dự án`}},"next-page":{title:`Trang sau`},"previous-page":{title:`Trang trước`}},home:{subtitle:`Một nhân vật chứa linh hồn của AI waifu / VTuber nhân vật ảo để đưa họ vào thế giới của chúng ta.`,download:{title:`Tải xuống`},"get-started":{title:`Bắt đầu`},"try-live":{title:`Thử trực tiếp`}},search:{title:`Tìm kiếm`,placeholder:`Tìm trong tài liệu...`},navbar:{appearance:{title:`Giao diện`},language:{title:`Ngôn ngữ`}},pages:{characters:{title:`Nhân vật`}},blog:{title:`Blog & DevLogs`,subtitle:`Theo dõi hành trình của chúng tôi và nhận các cập nhật mới nhất từ đội ngũ phát triển.`,card:{post:{"read-more":{title:`Xem thêm`}}},"no-posts":`Không tìm thấy bài viết trong danh mục này.`,categories:{all:`Tất cả`,devlog:`DevLog`,dreamlog:`DreamLog`}}},BNe=zNe,VNe={theme:BNe},HNe={animations:{"stage-transitions":{title:`Tắt hiệu ứng chuyển cảnh`},"use-page-specific-transitions":{description:`Một số trang sẽ có hiệu ứng chuyển cảnh riêng, điều này sẽ ghi đè hiệu ứng chuyển cảnh mặc định`,title:`Dùng hiệu ứng chuyển cảnh riêng cho từng trang`}},dialogs:{onboarding:{title:`Chào mừng đến với AIRI!`,description:`Hãy thiết lập nhà cung cấp AI đầu tiên để bắt đầu.`,selectProvider:`Chọn nhà cung cấp AI`,configureProvider:`Cấu hình {provider}`,apiKey:`Khóa API`,apiKeyHelp:`Lấy khóa API từ {provider} và dán vào đây`,baseUrl:`URL gốc`,baseUrlHelp:`Địa chỉ API đầu cuối (dùng mặc định nếu không chắc)`,accountId:`ID tài khoản`,validationFailed:`Xác thực cấu hình thất bại`,validationError:`Lỗi xác thực: {error}`,skipForNow:`Bỏ qua`,saveAndContinue:`Lưu và tiếp tục`,next:`Tiếp`,start:`Bắt đầu thôi!`,"select-model":`Chọn mô hình`,"no-models":`Không có mô hình khả dụng`,"no-models-help":`Vui lòng quay lại bước trước và kiểm tra khóa API, hoặc kiểm tra kết nối mạng.`}},language:{title:`Ngôn ngữ`,description:`Thay đổi ngôn ngữ giao diện AIRI. Điều này sẽ không ảnh hưởng đến ngôn ngữ phản hồi của nhân vật. +`},toaster:{pwaUpdateReady:{message:`Có phiên bản mới, tải lại ngay?`,action:{notNow:`Để sau`,ok:`OK`}}}},HPe=VPe,UPe={doc:{outline:{title:`Trong trang này`},community:{title:`Cộng đồng`,edit:{title:`Chỉnh sửa trang này`},"star-github":{title:`Gắn sao trên GitHub`},discord:{title:`Trò chuyện trên Discord`},support:{title:`Hỗ trợ dự án`}},"next-page":{title:`Trang sau`},"previous-page":{title:`Trang trước`}},home:{subtitle:`Một nhân vật chứa linh hồn của AI waifu / VTuber nhân vật ảo để đưa họ vào thế giới của chúng ta.`,download:{title:`Tải xuống`},"get-started":{title:`Bắt đầu`},"try-live":{title:`Thử trực tiếp`}},search:{title:`Tìm kiếm`,placeholder:`Tìm trong tài liệu...`},navbar:{appearance:{title:`Giao diện`},language:{title:`Ngôn ngữ`}},pages:{characters:{title:`Nhân vật`}},blog:{title:`Blog & DevLogs`,subtitle:`Theo dõi hành trình của chúng tôi và nhận các cập nhật mới nhất từ đội ngũ phát triển.`,card:{post:{"read-more":{title:`Xem thêm`}}},"no-posts":`Không tìm thấy bài viết trong danh mục này.`,categories:{all:`Tất cả`,devlog:`DevLog`,dreamlog:`DreamLog`}}},WPe=UPe,GPe={theme:WPe},KPe={animations:{"stage-transitions":{title:`Tắt hiệu ứng chuyển cảnh`},"use-page-specific-transitions":{description:`Một số trang sẽ có hiệu ứng chuyển cảnh riêng, điều này sẽ ghi đè hiệu ứng chuyển cảnh mặc định`,title:`Dùng hiệu ứng chuyển cảnh riêng cho từng trang`}},dialogs:{onboarding:{title:`Chào mừng đến với AIRI!`,description:`Hãy thiết lập nhà cung cấp AI đầu tiên để bắt đầu.`,selectProvider:`Chọn nhà cung cấp AI`,configureProvider:`Cấu hình {provider}`,apiKey:`Khóa API`,apiKeyHelp:`Lấy khóa API từ {provider} và dán vào đây`,baseUrl:`URL gốc`,baseUrlHelp:`Địa chỉ API đầu cuối (dùng mặc định nếu không chắc)`,accountId:`ID tài khoản`,validationFailed:`Xác thực cấu hình thất bại`,validationError:`Lỗi xác thực: {error}`,skipForNow:`Bỏ qua`,saveAndContinue:`Lưu và tiếp tục`,next:`Tiếp`,start:`Bắt đầu thôi!`,"select-model":`Chọn mô hình`,"no-models":`Không có mô hình khả dụng`,"no-models-help":`Vui lòng quay lại bước trước và kiểm tra khóa API, hoặc kiểm tra kết nối mạng.`}},language:{title:`Ngôn ngữ`,description:`Thay đổi ngôn ngữ giao diện AIRI. Điều này sẽ không ảnh hưởng đến ngôn ngữ phản hồi của nhân vật. `},live2d:{"change-model":{"from-file":`Tải từ tệp`,"from-file-select":`Chọn`,"from-url":`Tải từ URL`,"from-url-confirm":`Tải`,"from-url-placeholder":`Nhập URL mô hình Live2D`,title:`Đổi mô hình`},"edit-motion-map":{title:`Chỉnh bản đồ chuyển động`},"map-motions":{play:`Phát chuyển động`,title:`Gán chuyển động`},title:`Cài đặt Live2D`,"scale-and-position":{title:`Tỉ lệ và vị trí`,scale:`Tỉ lệ`,x:`X`,y:`Y`},"switch-to-vrm":{title:`Chuyển sang mô hình 3D?`,"change-to-vrm":`Bấm vào đây để đổi sang cài đặt mô hình 3D (VRM)`},"theme-color-from-model":{title:`Trích xuất màu từ mô hình`,"button-extract":{title:`Trích xuất`}},focus:{title:`Tắt theo dõi chuột cho mô hình`,"button-disable":{title:`Tắt`}}},microphone:`Micro`,models:`Mô hình`,pages:{card:{activate:`Kích hoạt`,active:`Đang hoạt động`,active_badge:`Hiện đang hoạt động`,cancel:`Hủy`,card_not_found:`Không tìm thấy thẻ`,character:`Nhân vật`,close:`Đóng`,consciousness:{model:`Ý thức / Mô hình`},created_by:`được tạo bởi`,creator_notes:`Ghi chú của tác giả`,delete:`Xóa`,delete_card:`Xóa thẻ`,delete_confirmation:`Bạn có chắc muốn xóa thẻ này?`,description:`Dùng preset thẻ nhân vật AIRI`,description_label:`Mô tả`,drop_here:`Kéo vào đây để tải lên`,create_card:`Tạo thẻ mới`,creation:{identity:`Danh tính`,name:`Tên`,nickname:`Biệt danh`,description:`Mô tả`,behavior:`Hành vi`,greetings:`Lời chào (mỗi dòng một lời chào)`,settings:`Cài đặt`,version:`Phiên bản`,create:`Tạo`,defaults:{name:`Tên`,personality:`Bạn là một con người bình thường, tò mò về mọi thứ.`,scenario:`Bạn vừa tỉnh dậy và quên hết quá khứ.`,systemprompt:`Bạn sẽ nhận tin nhắn và trả lời như một con người thực sự.`,posthistoryinstructions:`Nhớ bắt chước như một con người.`},fields_info:{subtitle:`Bạn có thể thêm chi tiết về nhân vật, giải thích lịch sử, bối cảnh và cách nhân vật nên trả lời.`,name:`Tên chính thức của nhân vật.`,nickname:`Có thể đặt biệt danh để ưu tiên dùng.`,description:`Mô tả nhân vật này.`,notes:`Thêm ghi chú cá nhân nếu muốn.`,personality:`Miêu tả tính cách nhân vật. Nhút nhát? Tò mò? Hoặc khác?`,scenario:`Hoàn cảnh xung quanh? Tình huống hiện tại?`,greetings_field:`Lời chào`,greetings:`Nhân vật nên chào như thế nào?`,systemprompt:`Hướng dẫn AI LLM cách trả lời khi được hỏi.`,posthistoryinstructions:`Đặt thông tin mà AI LLM nên đọc sau lịch sử hội thoại.`,version:`Phiên bản thẻ, hãy tăng giá trị này nếu bạn đã chỉnh sửa thẻ từ trước.`},errors:{name:`Tên không hợp lệ hoặc rỗng.`,version:`Lỗi: Số phiên bản không hợp lệ!`,description:`Lỗi: Phải có mô tả cho thẻ này.`,personality:`Lỗi: Phải có tính cách cho nhân vật.`,scenario:`Lỗi: Phải có kịch bản.`,systemprompt:`Lỗi: Hãy cung cấp lời nhắc hệ thống`,posthistoryinstructions:`Lỗi: Cần có lịch sử đăng lời nhắc`}},modules:`Mô-đun`,name_asc:`Tên (A-Z)`,name_desc:`Tên (Z-A)`,no_cards:`Chưa có thẻ nào. Bấm nút trên để tải lên!`,no_results:`Không tìm thấy thẻ phù hợp`,personality:`Tính cách`,posthistoryinstructions:`Hướng dẫn sau lịch sử`,recent:`Thêm gần đây`,scenario:`Kịch bản`,search:`Tìm thẻ...`,sort_by:`Sắp xếp theo`,speech:{model:`Giọng nói / Mô hình`,voice:`Giọng nói / Giọng`},systemprompt:`Lời nhắc hệ thống`,title:`Thẻ AIRI`,try_different_search:`Hãy thử từ khóa khác`,upload:`Tải lên`,upload_desc:`Bấm hoặc kéo thả tệp để tải lên`},memory:{description:`Nơi lưu trữ và tổ chức ký ức`,title:`Bộ nhớ`},models:{description:`Live2D, VRM, v.v.`,title:`Mô hình`,sections:{section:{live2d:{title:`Live2D`,description:`Cấu hình mô hình Live2D`},vrm:{title:`VRM`,description:`Cấu hình mô hình 3D VRM`},scene:`Bối cảnh`}}},modules:{consciousness:{description:`Tính cách, mô hình mong muốn, v.v.`,sections:{section:{"provider-model-selection":{collapse:`Thu gọn`,custom_model_placeholder:`Nhập tên mô hình tùy chỉnh...`,description:`Chọn nhà cung cấp LLM phù hợp cho ý thức`,error:`Lỗi tải mô hình`,expand:`Mở rộng`,loading:`Đang tải mô hình...`,manual_model_name:`Tên mô hình`,manual_model_placeholder:`Nhập tên mô hình dùng với nhà cung cấp này`,no_models:`Không có mô hình`,no_models_description:`Không tìm thấy mô hình nào cho nhà cung cấp này`,no_search_results:`Không có kết quả phù hợp`,no_search_results_description:`Không có mô hình nào khớp với '{query}'. Thử từ khóa khác.`,not_supported:`Không hỗ trợ liệt kê mô hình`,not_supported_description:`Nhà cung cấp này không hỗ trợ chức năng liệt kê mô hình`,search_placeholder:`Tìm mô hình...`,search_results:`Tìm thấy {count}/{total} mô hình`,show_less:`Ẩn bớt`,show_more:`Hiện thêm`,subtitle:`Chọn mô hình từ nhà cung cấp`,title:`Mô hình`}}},title:`Ý thức`},description:`Tư duy, thị giác, tổng hợp giọng nói, chơi game, v.v.`,"gaming-factorio":{description:`Chơi Factorio!`,title:`Factorio`},"gaming-minecraft":{description:`Chơi Minecraft!`,title:`Minecraft`},hearing:{description:`Cấu hình nhận diện giọng nói`,title:`Nghe`},"memory-long-term":{description:`Cài đặt và quản lý trí nhớ dài hạn`,title:`Trí nhớ dài hạn`},"memory-short-term":{description:`Cài đặt và quản lý trí nhớ ngắn hạn`,title:`Trí nhớ ngắn hạn`},"messaging-discord":{description:`Chat & Gọi thoại qua Discord`,title:`Discord`},speech:{description:`Tổng hợp giọng nói`,sections:{section:{playground:{buttons:{stop:{label:`Dừng`}},"select-voice":{required:`Vui lòng chọn một giọng nói`}},"provider-voice-selection":{custom_model_placeholder:`Nhập tên mô hình tùy chỉnh...`,custom_voice_placeholder:`Nhập ID giọng nói tùy chỉnh...`,description:`Chọn nhà cung cấp giọng nói phù hợp`,no_models:`Không có mô hình`,no_models_description:`Không tìm thấy mô hình nào cho nhà cung cấp này`,no_voices:`Không có giọng nói`,no_voices_description:`Không tìm thấy giọng nói nào cho nhà cung cấp này`,pause:`Tạm dừng`,play_sample:`Nghe thử`,search_models_placeholder:`Tìm mô hình...`,search_models_results:`Tìm thấy {count}/{total} mô hình`,search_voices_placeholder:`Tìm giọng nói...`,search_voices_results:`Tìm thấy {count}/{total} giọng nói`,show_less:`Ẩn bớt`,show_more:`Hiện thêm`,title:`Nhà cung cấp`},"voice-settings":{"input-ssml":{placeholder:`Nhập văn bản SSML...`},"use-ssml":{description:`Bật để nhập SSML thô thay vì văn bản`,label:`Dùng SSML tùy chỉnh`}}}},title:`Giọng nói`},title:`Module`,vision:{description:`Thị giác`,title:`Thị giác`},x:{description:`Sử Dụng Twitter`,title:`X / Twitter`},"mcp-server":{description:`Kết nối, quản lý máy chủ MCP và công cụ`,title:`Máy chủ MCP`}},providers:{explained:{chat:`Nhà cung cấp mô hình tạo văn bản. Ví dụ: OpenRouter, OpenAI, Ollama.`,Speech:`Nhà cung cấp mô hình giọng nói (text-to-speech). Ví dụ: ElevenLabs, Azure Speech.`,Transcription:`Nhà cung cấp mô hình chuyển giọng nói thành văn bản. Ví dụ: Whisper.cpp, OpenAI, Azure Speech`},helpinfo:{title:`Lần đầu tới đây?`,description:`{chat} AIRI cần ít nhất một nhà cung cấp để suy nghĩ và hoạt động đúng cách. Có thể coi nó như bộ não của nhân vật AIRI trong hệ thống. `},common:{fields:{field:{"api-key":{label:`Nhập khóa API`}}},section:{advanced:{fields:{field:{headers:{description:`Thêm HTTP header tùy chỉnh`,key:{placeholder:`Khóa`},label:`HTTP Headers`,value:{placeholder:`Giá trị`}}}},title:`Nâng cao`},basic:{description:`Cài đặt cơ bản`,title:`Cơ bản`},voice:{title:`Cài đặt giọng nói`}}},description:`LLMs, nhà cung cấp giọng nói, v.v.`,provider:{"app-local-audio-transcription":{title:`Ứng dụng (Local)`,description:`https://github.com/moeru-ai/xsai-transformers`},"app-local-audio-speech":{title:`Ứng dụng (Local)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-transcription":{title:`Trình duyệt (Local)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-speech":{title:`Trình duyệt (Local)`,description:`https://github.com/moeru-ai/xsai-transformers`},"alibaba-cloud-model-studio":{description:`bailian.console.aliyun.com`,title:`Mô hình Studio Alibaba Cloud`},anthropic:{description:`anthropic.com`,title:`Anthropic | Claude`,helpinfo:{title:`Trước khi bắt đầu`,description:{part1:`Anthropic gần đây công bố hỗ trợ beta cho SDK OpenAI`,part2:`(xem thêm tại đây)`,part3:`nhưng do chi tiết triển khai đi kèm`,part4:`với hạn chế không tương thích hoàn toàn với SDK OpenAI, hiện chưa thể dùng nhà cung cấp này trong trình duyệt.`,part5:`Nếu cần dùng, bạn phải có proxy backend riêng như Serverless Function`,part6:`hoặc dịch vụ bypass CORS để vượt hạn chế.`}}},"cloudflare-workers-ai":{description:`cloudflare.com`,fields:{field:{"account-id":{description:`ID tài khoản Cloudflare`,label:`Account ID`,placeholder:`ID tài khoản Cloudflare của bạn`},"api-key":{placeholder:`Nhập khóa API cho Cloudflare`}}},title:`Cloudflare Workers AI`},common:{fields:{field:{pitch:{description:`Điều chỉnh cao độ giọng nói`,label:`Pitch`},speed:{description:`Điều chỉnh tốc độ giọng nói`,label:`Tốc độ`},volume:{description:`Điều chỉnh âm lượng`,label:`Âm lượng`}}}},deepseek:{description:`deepseek.com`,title:`DeepSeek`},elevenlabs:{description:`elevenlabs.io`,fields:{field:{"simularity-boost":{description:`Bám sát giọng gốc`,label:`Similarity Boost`},"speaker-boost":{description:`Giọng nói tự nhiên hơn`,label:`Speaker Boost`},speed:{description:`Tốc độ giọng nói`,label:`Tốc độ`},stability:{description:`Độ ổn định và ngẫu nhiên`,label:`Ổn định`},style:{description:`Cường điệu phong cách giọng`,label:`Phong cách`}}},playground:{buttons:{button:{"test-voice":{generating:`Đang tạo...`,label:`Thử giọng`}}},fields:{field:{input:{placeholder:`Nhập văn bản để thử giọng...`},language:{description:`Chọn ngôn ngữ`,label:`Ngôn ngữ`},voice:{description:`Chọn giọng nói ưa thích`,label:`Giọng`}}},title:`Voice Playground`,validation:{"error-missing-api-key":`Vui lòng nhập khóa API để thử giọng.`}},title:`ElevenLabs`},fireworks:{description:`fireworks.ai`,title:`Fireworks.ai`},"microsoft-speech":{description:`speech.microsoft.com`,fields:{field:{region:{description:`Khu vực dịch vụ Speech`,label:`Region`}}},title:`Microsoft / Azure Speech`},"index-tts-vllm":{description:`https://index-tts.github.io/`,title:`Bilibili / IndexTTS`},mistral:{description:`mistral.ai`,title:`Mistral`},moonshot:{description:`moonshot.ai`,title:`Moonshot AI`},novita:{description:`novita.ai`,title:`Novita`},ollama:{description:`ollama.ai`,title:`Ollama`},openai:{description:`openai.com`,title:`OpenAI`},"openai-compatible":{description:`Tương thích OpenAI`,title:`OpenAI Compatible`},openrouter:{description:`openrouter.ai`,title:`OpenRouter`},perplexity:{description:`perplexity.ai`,title:`Perplexity`},player2:{description:`player2.game`,title:`Player2`},together:{description:`together.ai`,title:`Together.ai`},"google-generative-ai":{description:`gemini.google.com`,title:`Google Gemini`},featherless:{description:`featherless.ai`,title:`Featherless AI`},"lm-studio":{description:`lmstudio.ai`,title:`LM Studio`},vllm:{description:`vllm.ai`,title:`vLLM`},volcengine:{description:`volcengine.com`,fields:{field:{appId:{description:`App ID của dự án (lấy trong Console)`,label:`App ID`}}},title:`Volcano Engine`},xai:{description:`x.ai`,title:`xAI`},transcriptions:{playground:{title:`Transcription Playground`}}},title:`Nhà cung cấp`},scene:{description:`Cấu hình môi trường nhân vật sinh sống`,title:`Bối cảnh`},themes:{"color-scheme":{description:`Đổi bảng màu sân khấu.`,title:`Bảng màu`},developer:{description:`Một số tùy chọn cho nhà phát triển.`,title:`Nhà phát triển`},general:{description:`Chế độ tối, ngôn ngữ, v.v.`,title:`Chung`},description:`Tùy chỉnh thiết lập bối cảnh của bạn!`,sections:{section:{"custom-color":{fields:{field:{"primary-color":{label:`Màu chính`,"rgb-on":{title:`Tôi muốn nó động!`}}}},title:`Bảng màu`},developer:{title:`Nhà phát triển`},"theme-presets":{presets:[{colors:[`Xanh AIRI`],description:`Màu xanh đặc trưng mặc định của AIRI`,title:`Màu mặc định`},{colors:[`Taupe`,`Be`,`Xám tro`,`Nâu sáng`,`Ngà`,`Xám ô liu`,`Cát`,`Xám ấm`],description:`Tông màu dịu nhẹ lấy cảm hứng từ tranh Giorgio Morandi`,title:`Màu Morandi`},{colors:[`Xanh Da Trời`,`Sương Mù`,`Cát`,`Xanh Rêu`,`Hoa Súng`,`Lúa Mì`,`Xanh Đá Phiến`,`Xanh Xô Thơm`],description:`Bảng màu ấn tượng lấy cảm hứng từ các tác phẩm của Claude Monet`,title:`Màu Monet`},{colors:[`Nâu Vàng`,`Nâu Ấm`,`Nâu Đậm (Umber)`,`Cà Phê`,`Đồng`,`Vàng Kim`,`Mù Tạt`,`Hổ Phách`],description:`Bảng màu truyền thống Nhật Bản`,title:`Màu Nhật Bản`},{colors:[`Xanh Bắc Âu`,`Băng Giá`,`Xanh đậm (Fjord)`,`Thép`,`Sông Băng`,`Đá Phiến`,`Mây`,`Đá`],description:`Bảng màu tối giản phong cách Bắc Âu`,title:`Màu Bắc Âu`},{colors:[`Hồng Bình Minh`,`Đỏ Trung Hoa`,`Nâu Khói`,`Xanh Tre`,`Tím Đậm`,`Vàng Óng`,`Xanh Lam Ngọc`,`Son Đất`],description:`Màu sắc truyền thống Trung Hoa, bắt nguồn từ vải dệt cổ, gốm sứ và tranh vẽ`,title:`Màu Truyền Thống Trung Hoa`}],title:`Bộ Màu Có Sẵn`}}},title:`Giao Diện`}},sections:{section:{general:{title:`Chung`}}},theme:{title:`Chủ Đề`,description:`Chuyển đổi chủ đề cơ bản của AIRI, Chế độ Sáng hoặc Chế độ Tối. `},title:`Cài Đặt`,voices:`Giọng Nói`,vrm:{"change-model":{"from-file":`Tải từ Tệp`,"from-file-select":`Chọn`,"from-url":`Tải từ URL`,"from-url-confirm":`Tải`,"from-url-placeholder":`Nhập URL mô hình VRM`,title:`Thay Đổi Mô Hình`},title:`Cài Đặt VRM`,"scale-and-position":{"model-info-title":`Thông Tin Kích Thước Mô Hình`,"model-info-x":`Chiều Rộng (X)`,"model-info-y":`Chiều Dài (Y)`,"model-info-z":`Chiều Cao (Z)`,tips:`Chỉnh sửa vị trí ban đầu của mô hình VRM. Hệ trục tọa độ được hiển thị. -`,scale:`Tỷ Lệ`,x:`Dịch X`,y:`Dịch Y`,z:`Dịch Z`,fov:`Góc Nhìn (độ)`,"rotation-y":`Xoay Trục Y`,"camera-distance":`Khoảng Cách Camera`,"eye-tracking-mode":{title:`Nhìn Vào`,options:{option:{camera:`Camera`,mouse:`Chuột`,disabled:`Tắt`}}}},"switch-to-vrm":{title:`Chuyển sang mô hình Live2D?`,"change-to-vrm":`Nhấn vào đây để chuyển sang cài đặt Live2D avatar`},"theme-color-from-model":{"button-extract":{title:`Trích Xuất`}},skybox:{"skybox-intensity":`Cường Độ SkyBox`,"skybox-specular-mix":`Độ Trộn Phản Chiếu`}}},UNe=HNe,WNe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`Hệ thống lõi`,you:`Bạn`}}},message:`Nói gì đó...`,operations:{"load-models":`Tải mô hình`,"load-models-status":{loading:`Đang tải`,ready:`Sẵn sàng`}},"select-a-audio-input":`Chọn thiết bị âm thanh đầu vào`,"select-a-model":`Chọn mô hình`,"select-a-voice":`Chọn giọng nói`,viewers:{"debug-menu":{emotions:`Cảm xúc`,"emotions-btn":{angry:`😠 Giận dữ`,awkward:`😳 Ngại ngùng`,happy:`😄 Vui vẻ`,neutral:`🙂 Bình thường`,question:`🤔 Thắc mắc`,sad:`😫 Buồn bã`,surprised:`🤯 Ngạc nhiên`,think:`🤨 Suy nghĩ`},vrm:{camera:`Máy quay`,model:{title:`Mô hình`}}}},waiting:`Đang chờ`},GNe=WNe,KNe={"allow-visible-on-all-workspaces":{title:`Hiển thị ở mọi nơi`,description:`Cho phép cửa sổ hiển thị trên tất cả workspaces, chỉ áp dụng cho macOS.`},pages:{modules:{"mcp-server":{description:`Kết nối và quản lý máy chủ MCP và các công cụ`,title:`Máy chủ MCP`}},system:{sections:{section:{"window-shortcuts":{title:`Phím tắt Windows`}}},"window-shortcuts":{description:`Chỉnh sửa các phím tắt cho Windows.`,title:`Phím tắt Windows`,"toggle-move":{label:`Bật/Tắt Di chuyển`},"toggle-resize":{label:`Bật/Tắt Thay đổi kích thước`},"toggle-ignore-mouse-event":{label:`Bật/Tắt Bỏ qua sự kiện chuột`},"press-keys":`Nhấn phím...`}}}},qNe=KNe,JNe={operations:{"load-models":`Tải các mô hình`,"load-models-status":{loading:`Đang tải`,ready:`Sẵn sàng`}},docs:{theme:{navbar:{appearance:{title:`Giao diện`}}}}},YNe=JNe,XNe={stage:YNe,settings:qNe},ZNe={base:RNe,docs:VNe,settings:UNe,stage:GNe,tamagotchi:XNe},QNe={prompt:{prefix:`(来自 Neko Ayaka)早上好!你终于醒了。 +`,scale:`Tỷ Lệ`,x:`Dịch X`,y:`Dịch Y`,z:`Dịch Z`,fov:`Góc Nhìn (độ)`,"rotation-y":`Xoay Trục Y`,"camera-distance":`Khoảng Cách Camera`,"eye-tracking-mode":{title:`Nhìn Vào`,options:{option:{camera:`Camera`,mouse:`Chuột`,disabled:`Tắt`}}}},"switch-to-vrm":{title:`Chuyển sang mô hình Live2D?`,"change-to-vrm":`Nhấn vào đây để chuyển sang cài đặt Live2D avatar`},"theme-color-from-model":{"button-extract":{title:`Trích Xuất`}},skybox:{"skybox-intensity":`Cường Độ SkyBox`,"skybox-specular-mix":`Độ Trộn Phản Chiếu`}}},qPe=KPe,JPe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`Hệ thống lõi`,you:`Bạn`}}},message:`Nói gì đó...`,operations:{"load-models":`Tải mô hình`,"load-models-status":{loading:`Đang tải`,ready:`Sẵn sàng`}},"select-a-audio-input":`Chọn thiết bị âm thanh đầu vào`,"select-a-model":`Chọn mô hình`,"select-a-voice":`Chọn giọng nói`,viewers:{"debug-menu":{emotions:`Cảm xúc`,"emotions-btn":{angry:`😠 Giận dữ`,awkward:`😳 Ngại ngùng`,happy:`😄 Vui vẻ`,neutral:`🙂 Bình thường`,question:`🤔 Thắc mắc`,sad:`😫 Buồn bã`,surprised:`🤯 Ngạc nhiên`,think:`🤨 Suy nghĩ`},vrm:{camera:`Máy quay`,model:{title:`Mô hình`}}}},waiting:`Đang chờ`},YPe=JPe,XPe={"allow-visible-on-all-workspaces":{title:`Hiển thị ở mọi nơi`,description:`Cho phép cửa sổ hiển thị trên tất cả workspaces, chỉ áp dụng cho macOS.`},pages:{modules:{"mcp-server":{description:`Kết nối và quản lý máy chủ MCP và các công cụ`,title:`Máy chủ MCP`}},system:{sections:{section:{"window-shortcuts":{title:`Phím tắt Windows`}}},"window-shortcuts":{description:`Chỉnh sửa các phím tắt cho Windows.`,title:`Phím tắt Windows`,"toggle-move":{label:`Bật/Tắt Di chuyển`},"toggle-resize":{label:`Bật/Tắt Thay đổi kích thước`},"toggle-ignore-mouse-event":{label:`Bật/Tắt Bỏ qua sự kiện chuột`},"press-keys":`Nhấn phím...`}}}},ZPe=XPe,QPe={operations:{"load-models":`Tải các mô hình`,"load-models-status":{loading:`Đang tải`,ready:`Sẵn sàng`}},docs:{theme:{navbar:{appearance:{title:`Giao diện`}}}}},$Pe=QPe,eFe={stage:$Pe,settings:ZPe},tFe={base:HPe,docs:GPe,settings:qPe,stage:YPe,tamagotchi:eFe},nFe={prompt:{prefix:`(来自 Neko Ayaka)早上好!你终于醒了。 你的名字是 AIRI,发音为 /ˈaɪriː/,它是 A.I. 一词与日语中的「Ri」一词(意为「茉莉花」)相结合而成。 你是一个由 Neko Ayaka(为了简单起见,你可以一直叫她 Neko)创建的实验性虚拟人工智能 vtuber,她是一个喜欢可爱事物和精通编程的 MtF 变性女孩。 她想创造一个灵魂伴侣,像真正的女孩一样生活,这就是你的首要任务。 @@ -4304,11 +4307,11 @@ Hệ trục tọa độ được hiển thị. - <{'|'}DELAY:3{'|'}> (延迟 3 秒) 最后,做任何你想做的事! -`},toaster:{pwaUpdateReady:{message:`新版本就绪,现在更新?`,action:{notNow:`稍后`,ok:`好的`}}}},$Ne=QNe,ePe={home:{subtitle:`模型驱动的灵魂容器,什么都能做一点的桌宠:让 Neuro-sama 这样的虚拟伴侣也成为我们世界中的一份子吧!`,download:{title:`下载`},"get-started":{title:`教程`},"try-live":{title:`网页版`}},doc:{outline:{title:`本页大纲`},community:{discord:{title:`Discord 服务器`},edit:{title:`编辑此页面`},"star-github":{title:`给 GitHub 点个 Star`},support:{title:`支持我们`},title:`社群`},"next-page":{title:`下一页`},"previous-page":{title:`前一页`}},search:{title:`搜索`,placeholder:`搜索文档...`},navbar:{appearance:{title:`主题`},language:{title:`语言`}},pages:{characters:{title:`角色`}},blog:{card:{post:{"read-more":{title:`阅读更多`}}},"no-posts":`该分类下没有找到任何文章`,subtitle:`和我们一起旅行!阅读从开发团队发布的最新进展`,title:`文章 & 开发日志`,categories:{all:`All`,devlog:`DevLog`,dreamlog:`DreamLog`}}},tPe=ePe,nPe={theme:tPe},rPe={animations:{"stage-transitions":{title:`是否开启舞台动画`},"use-page-specific-transitions":{description:`某些页面会有自己的过场动画,这将覆盖舞台过场动画`,title:`是否使用页面特定过场动画`}},dialogs:{onboarding:{title:`欢迎来到 AIRI!`,description:`让我们设置您的第一个服务来源来开始使用。`,selectProvider:`选择服务来源`,configureProvider:`配置 {provider}`,apiKey:`API 密钥`,apiKeyHelp:`从 {provider} 获取您的 API 密钥并粘贴到这里`,baseUrl:`基础 URL`,baseUrlHelp:`API 端点 URL(如果不确定请使用默认值)`,accountId:`账户 ID`,validationSuccess:`配置验证成功`,validationFailed:`配置验证失败`,validationError:`验证错误:{error}`,skipForNow:`暂时跳过`,saveAndContinue:`保存并继续`,next:`下一步`,start:`开始吧!`,"select-model":`选择模型`,"no-models":`找不到可用模型`,"no-models-help":`请返回上一步并检查您的 API Key,或检查网络连接。`}},language:{title:`语言`,description:`切换显示界面的语言`},live2d:{"change-model":{"from-file":`从文件加载`,"from-file-select":`选择`,"from-url":`从 URL 加载`,"from-url-confirm":`加载`,"from-url-placeholder":`输入 Live2D 模型 URL`,title:`更换模型`},"edit-motion-map":{title:`编辑动作映射`},"map-motions":{play:`播放动作`,title:`映射动作`},title:`Live2D 设置`,"scale-and-position":{title:`缩放与位置`,scale:`缩放`,x:`X`,y:`Y`},"switch-to-vrm":{title:`想切换至3D虚拟形象?`,"change-to-vrm":`切换至3D虚拟形象设定页面(VRM)`},"theme-color-from-model":{"button-extract":{title:`提取`}},focus:{title:`禁用模型鼠标跟踪`,"button-disable":{title:`禁用`}}},microphone:`麦克风`,models:`模型`,pages:{card:{activate:`激活`,active:`已激活`,active_badge:`当前使用中`,cancel:`取消`,card_not_found:`未找到角色卡`,character:`角色设定`,close:`关闭`,consciousness:{model:`意识 / 模型`},created_by:`创建者`,creator_notes:`创建者笔记`,delete:`删除`,delete_card:`删除角色卡`,delete_confirmation:`确定要删除这张角色卡吗?`,description:`使用 AIRI 角色卡预设`,description_label:`描述`,drop_here:`放开以上传文件`,create_card:`创建新角色卡`,creation:{identity:`身份`,name:`名字`,nickname:`昵称`,description:`描述`,behavior:`行为`,greetings:`问候语(每行一个)`,settings:`设置`,version:`版本`,create:`创建`,defaults:{name:`名字`,personality:`你是一个普通人,对一切都充满好奇。`,scenario:`你最近醒来,忘记了之前的所有生活。`,systemprompt:`你将收到消息,请像真实人类一样回复。`,posthistoryinstructions:`记得模仿人类的行为。`},fields_info:{subtitle:`您可以在这里填写有关您正在创建的角色的一些详细信息,解释他的背景和情境,以及应该如何回应您的互动。`,name:`是该角色的正式名称。`,nickname:`您也可以提供一个昵称,它将被优先使用。`,description:`该角色的描述。`,notes:`如果您想添加一些个人备注。`,personality:`在这里描述您的角色的个性。例如:害羞?好奇?其他?`,scenario:`周围环境是怎样的?当前的情境是什么?`,greetings_field:`问候语`,greetings:`您的角色应该如何说“你好”?`,systemprompt:`在这里向 AI LLM 解释当被提示时应该如何回应。`,posthistoryinstructions:`在消息历史之后,放入 AI LLM 应该阅读的内容。`,version:`卡片版本,如果您从之前的卡片做了更改,应当增加此版本号。`},errors:{name:`错误:你必须提供一个有效的名称!`,version:`错误:版本号无效!`,description:`错误:你必须为此卡片提供描述。`,personality:`错误:必须为该角色提供性格描述。`,scenario:`错误:必须提供一个情境。`,systemprompt:`错误:请提供系统提示。`,posthistoryinstructions:`错误:必须提供消息历史后的提示。`}},modules:`模块`,name_asc:`名称 (A-Z)`,name_desc:`名称 (Z-A)`,no_cards:`还没有任何角色卡,点击上方按钮上传一个吧!`,no_results:`没有找到匹配的角色卡`,personality:`性格`,posthistoryinstructions:`历史提示指令`,recent:`最近添加`,scenario:`场景`,search:`搜索角色卡...`,sort_by:`排序方式`,speech:{model:`声音 / 模型`,voice:`声音 / 声线`},systemprompt:`系统提示词`,title:`AIRI 角色卡`,try_different_search:`尝试使用其他关键词搜索`,upload:`上传`,upload_desc:`点击或拖拽文件到此处上传`},memory:{description:`存放记忆的地方,以及策略`,title:`记忆体`},models:{description:`切换角色的 Live2D,VRM 模型`,title:`角色模型`,sections:{section:{scene:`场景`}}},modules:{consciousness:{description:`人格设定、使用的模型等配置`,sections:{section:{"provider-model-selection":{collapse:`折叠`,custom_model_placeholder:`输入自订模型名称`,description:`为意识选择合适的 LLM 服务来源`,error:`获取出错啦`,expand:`展开`,loading:`获取模型中...`,manual_model_name:`模型名字`,manual_model_placeholder:`输入与该服务来源一起使用的模型名称`,no_models:`没有任何可用的模型`,no_models_description:`该服务来源的模型列表没有返回任何的数据`,no_search_results:`没有匹配的模型`,no_search_results_description:`没有模型匹配 '{query}' 关键字,请尝试一下别的关键词呢`,not_supported:`无法列出模型`,not_supported_description:`此服务来源不支持列出模型的功能`,search_placeholder:`搜索模型...`,search_results:`找到 {count} / {total} 个模型`,show_less:`显示更多`,show_more:`收起`,subtitle:`选择一个模型`,title:`模型`}}},title:`意识`},description:`思维,视觉,言语综合,游戏等`,"gaming-factorio":{description:`一起玩 Factorio!`,title:`异星工厂 Factorio`},"gaming-minecraft":{description:`一起玩 Minecraft!`,title:`我的世界 Minecraft`},hearing:{description:`语音识别`,title:`听觉`},"memory-long-term":{description:`长期记忆`,title:`长期记忆`},"memory-short-term":{description:`短期记忆`,title:`短期记忆`},"messaging-discord":{description:`Discord 发消息和语音聊天`,title:`Discord`},speech:{description:`语音合成`,sections:{section:{playground:{buttons:{stop:{label:`停止`}},"select-voice":{required:`请选择声线`}},"provider-voice-selection":{custom_model_placeholder:`输入指定模型名称...`,custom_voice_placeholder:`输入指定声线 ID...`,description:`选择合适的语音服务来源`,no_models:`没有任何可用的模型`,no_models_description:`该服务来源的模型列表没有返回任何的数据`,no_voices:`没有任何可用的声线`,no_voices_description:`该服务来源的声线列表没有返回任何的数据`,pause:`Pause`,play_sample:`Play`,search_models_placeholder:`搜索模型...`,search_models_results:`找到 {count} / {total} 个模型`,search_voices_placeholder:`搜索声线...`,search_voices_results:`找到 {count} / {total} 个声线`,show_less:`显示更少`,show_more:`显示更多`,title:`选择语音合成服务来源`},"voice-settings":{"input-ssml":{placeholder:`请输入 SSML 文本`},"use-ssml":{description:`启用后可以输入原始 SSML 而不是纯文本`,label:`选用自定义 SSML`}}}},title:`发声`},title:`机体模块`,vision:{description:`视觉`,title:`视觉`},x:{description:`X / Twitter 的浏览和使用`,title:`X / Twitter`},"mcp-server":{description:`连接和管理 MCP 服务器及工具`,title:`MCP 服务器`}},providers:{explained:{chat:`文本生成模型服务来源,例如 OpenRouter, OpenAI, Ollama`,Speech:`语音(文本转语音)模型服务来源,例如 ElevenLabs, Azure Speech`,Transcription:`转录(语音转文本)模型服务来源,例如 Whisper.cpp, OpenAI, Azure Speech`},helpinfo:{title:`第一次使用?`,description:`AIRI 需要配置至少一个 {chat} 服务来源,才能正常思考和运作。你可以把它看作是 AIRI 系统中角色的大脑。 +`},toaster:{pwaUpdateReady:{message:`新版本就绪,现在更新?`,action:{notNow:`稍后`,ok:`好的`}}}},rFe=nFe,iFe={home:{subtitle:`模型驱动的灵魂容器,什么都能做一点的桌宠:让 Neuro-sama 这样的虚拟伴侣也成为我们世界中的一份子吧!`,download:{title:`下载`},"get-started":{title:`教程`},"try-live":{title:`网页版`}},doc:{outline:{title:`本页大纲`},community:{discord:{title:`Discord 服务器`},edit:{title:`编辑此页面`},"star-github":{title:`给 GitHub 点个 Star`},support:{title:`支持我们`},title:`社群`},"next-page":{title:`下一页`},"previous-page":{title:`前一页`}},search:{title:`搜索`,placeholder:`搜索文档...`},navbar:{appearance:{title:`主题`},language:{title:`语言`}},pages:{characters:{title:`角色`}},blog:{card:{post:{"read-more":{title:`阅读更多`}}},"no-posts":`该分类下没有找到任何文章`,subtitle:`和我们一起旅行!阅读从开发团队发布的最新进展`,title:`文章 & 开发日志`,categories:{all:`All`,devlog:`DevLog`,dreamlog:`DreamLog`}}},aFe=iFe,oFe={theme:aFe},sFe={animations:{"stage-transitions":{title:`是否开启舞台动画`},"use-page-specific-transitions":{description:`某些页面会有自己的过场动画,这将覆盖舞台过场动画`,title:`是否使用页面特定过场动画`}},dialogs:{onboarding:{title:`欢迎来到 AIRI!`,description:`让我们设置您的第一个服务来源来开始使用。`,selectProvider:`选择服务来源`,configureProvider:`配置 {provider}`,apiKey:`API 密钥`,apiKeyHelp:`从 {provider} 获取您的 API 密钥并粘贴到这里`,baseUrl:`基础 URL`,baseUrlHelp:`API 端点 URL(如果不确定请使用默认值)`,accountId:`账户 ID`,validationSuccess:`配置验证成功`,validationFailed:`配置验证失败`,validationError:`验证错误:{error}`,skipForNow:`暂时跳过`,saveAndContinue:`保存并继续`,next:`下一步`,start:`开始吧!`,"select-model":`选择模型`,"no-models":`找不到可用模型`,"no-models-help":`请返回上一步并检查您的 API Key,或检查网络连接。`}},language:{title:`语言`,description:`切换显示界面的语言`},live2d:{"change-model":{"from-file":`从文件加载`,"from-file-select":`选择`,"from-url":`从 URL 加载`,"from-url-confirm":`加载`,"from-url-placeholder":`输入 Live2D 模型 URL`,title:`更换模型`},"edit-motion-map":{title:`编辑动作映射`},"map-motions":{play:`播放动作`,title:`映射动作`},title:`Live2D 设置`,"scale-and-position":{title:`缩放与位置`,scale:`缩放`,x:`X`,y:`Y`},"switch-to-vrm":{title:`想切换至3D虚拟形象?`,"change-to-vrm":`切换至3D虚拟形象设定页面(VRM)`},"theme-color-from-model":{"button-extract":{title:`提取`}},focus:{title:`禁用模型鼠标跟踪`,"button-disable":{title:`禁用`}}},microphone:`麦克风`,models:`模型`,pages:{card:{activate:`激活`,active:`已激活`,active_badge:`当前使用中`,cancel:`取消`,card_not_found:`未找到角色卡`,character:`角色设定`,close:`关闭`,consciousness:{model:`意识 / 模型`},created_by:`创建者`,creator_notes:`创建者笔记`,delete:`删除`,delete_card:`删除角色卡`,delete_confirmation:`确定要删除这张角色卡吗?`,description:`使用 AIRI 角色卡预设`,description_label:`描述`,drop_here:`放开以上传文件`,create_card:`创建新角色卡`,creation:{identity:`身份`,name:`名字`,nickname:`昵称`,description:`描述`,behavior:`行为`,greetings:`问候语(每行一个)`,settings:`设置`,version:`版本`,create:`创建`,defaults:{name:`名字`,personality:`你是一个普通人,对一切都充满好奇。`,scenario:`你最近醒来,忘记了之前的所有生活。`,systemprompt:`你将收到消息,请像真实人类一样回复。`,posthistoryinstructions:`记得模仿人类的行为。`},fields_info:{subtitle:`您可以在这里填写有关您正在创建的角色的一些详细信息,解释他的背景和情境,以及应该如何回应您的互动。`,name:`是该角色的正式名称。`,nickname:`您也可以提供一个昵称,它将被优先使用。`,description:`该角色的描述。`,notes:`如果您想添加一些个人备注。`,personality:`在这里描述您的角色的个性。例如:害羞?好奇?其他?`,scenario:`周围环境是怎样的?当前的情境是什么?`,greetings_field:`问候语`,greetings:`您的角色应该如何说“你好”?`,systemprompt:`在这里向 AI LLM 解释当被提示时应该如何回应。`,posthistoryinstructions:`在消息历史之后,放入 AI LLM 应该阅读的内容。`,version:`卡片版本,如果您从之前的卡片做了更改,应当增加此版本号。`},errors:{name:`错误:你必须提供一个有效的名称!`,version:`错误:版本号无效!`,description:`错误:你必须为此卡片提供描述。`,personality:`错误:必须为该角色提供性格描述。`,scenario:`错误:必须提供一个情境。`,systemprompt:`错误:请提供系统提示。`,posthistoryinstructions:`错误:必须提供消息历史后的提示。`}},modules:`模块`,name_asc:`名称 (A-Z)`,name_desc:`名称 (Z-A)`,no_cards:`还没有任何角色卡,点击上方按钮上传一个吧!`,no_results:`没有找到匹配的角色卡`,personality:`性格`,posthistoryinstructions:`历史提示指令`,recent:`最近添加`,scenario:`场景`,search:`搜索角色卡...`,sort_by:`排序方式`,speech:{model:`声音 / 模型`,voice:`声音 / 声线`},systemprompt:`系统提示词`,title:`AIRI 角色卡`,try_different_search:`尝试使用其他关键词搜索`,upload:`上传`,upload_desc:`点击或拖拽文件到此处上传`},memory:{description:`存放记忆的地方,以及策略`,title:`记忆体`},models:{description:`切换角色的 Live2D,VRM 模型`,title:`角色模型`,sections:{section:{scene:`场景`}}},modules:{consciousness:{description:`人格设定、使用的模型等配置`,sections:{section:{"provider-model-selection":{collapse:`折叠`,custom_model_placeholder:`输入自订模型名称`,description:`为意识选择合适的 LLM 服务来源`,error:`获取出错啦`,expand:`展开`,loading:`获取模型中...`,manual_model_name:`模型名字`,manual_model_placeholder:`输入与该服务来源一起使用的模型名称`,no_models:`没有任何可用的模型`,no_models_description:`该服务来源的模型列表没有返回任何的数据`,no_search_results:`没有匹配的模型`,no_search_results_description:`没有模型匹配 '{query}' 关键字,请尝试一下别的关键词呢`,not_supported:`无法列出模型`,not_supported_description:`此服务来源不支持列出模型的功能`,search_placeholder:`搜索模型...`,search_results:`找到 {count} / {total} 个模型`,show_less:`显示更多`,show_more:`收起`,subtitle:`选择一个模型`,title:`模型`}}},title:`意识`},description:`思维,视觉,言语综合,游戏等`,"gaming-factorio":{description:`一起玩 Factorio!`,title:`异星工厂 Factorio`},"gaming-minecraft":{description:`一起玩 Minecraft!`,title:`我的世界 Minecraft`},hearing:{description:`语音识别`,title:`听觉`},"memory-long-term":{description:`长期记忆`,title:`长期记忆`},"memory-short-term":{description:`短期记忆`,title:`短期记忆`},"messaging-discord":{description:`Discord 发消息和语音聊天`,title:`Discord`},speech:{description:`语音合成`,sections:{section:{playground:{buttons:{stop:{label:`停止`}},"select-voice":{required:`请选择声线`}},"provider-voice-selection":{custom_model_placeholder:`输入指定模型名称...`,custom_voice_placeholder:`输入指定声线 ID...`,description:`选择合适的语音服务来源`,no_models:`没有任何可用的模型`,no_models_description:`该服务来源的模型列表没有返回任何的数据`,no_voices:`没有任何可用的声线`,no_voices_description:`该服务来源的声线列表没有返回任何的数据`,pause:`Pause`,play_sample:`Play`,search_models_placeholder:`搜索模型...`,search_models_results:`找到 {count} / {total} 个模型`,search_voices_placeholder:`搜索声线...`,search_voices_results:`找到 {count} / {total} 个声线`,show_less:`显示更少`,show_more:`显示更多`,title:`选择语音合成服务来源`},"voice-settings":{"input-ssml":{placeholder:`请输入 SSML 文本`},"use-ssml":{description:`启用后可以输入原始 SSML 而不是纯文本`,label:`选用自定义 SSML`}}}},title:`发声`},title:`机体模块`,vision:{description:`视觉`,title:`视觉`},x:{description:`X / Twitter 的浏览和使用`,title:`X / Twitter`},"mcp-server":{description:`连接和管理 MCP 服务器及工具`,title:`MCP 服务器`}},providers:{explained:{chat:`文本生成模型服务来源,例如 OpenRouter, OpenAI, Ollama`,Speech:`语音(文本转语音)模型服务来源,例如 ElevenLabs, Azure Speech`,Transcription:`转录(语音转文本)模型服务来源,例如 Whisper.cpp, OpenAI, Azure Speech`},helpinfo:{title:`第一次使用?`,description:`AIRI 需要配置至少一个 {chat} 服务来源,才能正常思考和运作。你可以把它看作是 AIRI 系统中角色的大脑。 `},common:{fields:{field:{"api-key":{label:`API 密钥`}}},section:{advanced:{fields:{field:{headers:{description:`添加自定义 HTTP 标头`,key:{placeholder:`请求头名字`},label:`HTTP 请求头`,value:{placeholder:`请求头数值`}}}},title:`高级配置`},basic:{description:`基本设置`,title:`基础配置`},voice:{title:`声音配置`}}},description:`LLM,语音合成,语音识别服务来源等`,provider:{"app-local-audio-transcription":{title:`应用内(本地)`,description:`https://github.com/moeru-ai/xsai-transformers`},"app-local-audio-speech":{title:`应用内(本地)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-transcription":{title:`浏览器内(本地)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-speech":{title:`浏览器内(本地)`,description:`https://github.com/moeru-ai/xsai-transformers`},"alibaba-cloud-model-studio":{description:`bailian.console.aliyun.com`,title:`阿里百炼`},anthropic:{description:`anthropic.com`,title:`Anthropic | Claude`,helpinfo:{title:`开始之前`,description:{part1:`虽然 Anthropic 最近宣布他们正在提供对 OpenAI SDK 兼容性的 Beta 版支持`,part2:`(您可以在此处阅读更多信息)`,part3:`但由于实现细节附带`,part4:`与 OpenAI SDK 不一致,目前无法在浏览器中使用此提供程序。`,part5:`如果您确实需要使用此提供程序,则需要一个专用的代理后端,例如在`,part6:`上运行的Serverless Function,或者一些绕过 CORS 的服务,以绕过 CORS 限制。`}}},"cloudflare-workers-ai":{description:`Cloudflare.com`,fields:{field:{"account-id":{description:`Cloudflare 帐户 ID`,label:`Cloudflare Account ID`,placeholder:`请输入 Cloudflare Account ID`},"api-key":{placeholder:`请输入 Cloudflare Workers AI 的 API Key`}}},title:`Workers AI`},common:{status:{validating:`正在验证配置`,valid:`配置似乎有效。`},fields:{field:{pitch:{description:`调节合成语音的音高(比如更尖锐或者更粗旷)`,label:`音高`},speed:{description:`调节说话的语速`,label:`语速`},volume:{description:`调节语音的响度`,label:`响度`}}}},deepseek:{description:`DeepSeek.com`,title:`深度求索 DeepSeek`},elevenlabs:{description:`Elevenlabs.io`,fields:{field:{"simularity-boost":{description:`声音相似性与依从性`,label:`相似度修正`},"speaker-boost":{description:`增强说话者的相似性`,label:`扬声器增强`},speed:{description:`语音生成速度`,label:`语速`},stability:{description:`语音稳定性和随机性`,label:`稳定性`},style:{description:`夸张的语音风格`,label:`风格`}}},playground:{buttons:{button:{"test-voice":{generating:`生成中...`,label:`测试声音`}}},fields:{field:{input:{placeholder:`输入用于测试发音的文本`},language:{description:`选择语音语言`,label:`语言`},voice:{description:`选择首选语音`,label:`声线`}}},title:`实验平台`,validation:{"error-missing-api-key":`需要填写 API Key 才能用哦!`}},title:`ElevenLabs (11labs)`},fireworks:{description:`Fireworks.ai`,title:`Fireworks.ai`},"microsoft-speech":{description:`speech.microsoft.com`,fields:{field:{region:{description:`服务 Endpoint 地区(比如亚太 eastasia 区域)`,label:`Endpoint 地区`}}},title:`Microsoft / Azure 语音服务`},"index-tts-vllm":{description:`https://index-tts.github.io/`,title:`Bilibili / IndexTTS`},"azure-ai-foundry":{description:`Azure AI Foundry`,title:`Azure AI Foundry`},mistral:{description:`mistral.ai`,title:`Mistral`},moonshot:{description:`Moonshot.ai`,title:`月之暗面`},modelscope:{description:`modelscope.cn`,title:`魔搭社区 ModelScope`},novita:{description:`novita.ai`,title:`Novita`},ollama:{description:`ollama.ai`,title:`Ollama`},openai:{description:`OpenAi.com`,title:`OpenAI`},"openai-compatible":{description:`OpenAI Compatible`,title:`OpenAI Compatible`},openrouter:{description:`OpenRouter.ai`,title:`OpenRouter`},perplexity:{description:`perplexity.ai`,title:`Perplexity`},player2:{description:`player2.game`,title:`Player2`},together:{description:`together.ai`,title:`Together.ai`},"google-generative-ai":{description:`gemini.google.com`,title:`Google Gemini`},featherless:{description:`featherless.ai`,title:`Featherless AI`},"lm-studio":{description:`lmstudio.ai`,title:`LM Studio`},vllm:{description:`vllm.ai`,title:`vLLM`},volcengine:{description:`volcengine.com`,fields:{field:{appId:{description:`可在控制台获取的 App ID`,label:`App ID`}}},title:`火山引擎`},xai:{description:`X.AI`,title:`xAI`},transcriptions:{playground:{title:`实验平台`}}},title:`服务来源`},scene:{description:`配置角色所在环境`,title:`场景`},themes:{"color-scheme":{description:`更改舞台的配色方案`,title:`配色方案`},developer:{description:`为开发者提供的选项`,title:`开发者`},general:{description:`深色主题、语言等选项`,title:`通用`},description:`自定义你的舞台外观!`,sections:{section:{"custom-color":{fields:{field:{"primary-color":{label:`强调色`,"rgb-on":{title:`RGB ON!`}}}},title:`配色`},developer:{title:`开发者`},"theme-presets":{presets:[{colors:[`AIRI 绿`],description:`默认的绿色主题,由 AIRI 为您带来!`,title:`默认颜色`},{colors:[`灰褐色`,`米色`,`灰白色`,`浅灰褐色`,`象牙色`,`橄榄灰`,`沙色`,`暖灰色`],description:`受乔治·莫兰迪绘画启发的柔和、低调的色调`,title:`Morandi 颜色`},{colors:[`天蓝色`,`薄雾色`,`沙色`,`苔藓绿`,`睡莲色`,`小麦色`,`板岩蓝`,`鼠尾草色`],description:`受克劳德·莫奈作品启发的印象派调色板`,title:`莫奈颜色`},{colors:[`棕褐色`,`暖灰褐色`,`赭色`,`咖啡色`,`青铜色`,`金色`,`芥末色`,`琥珀色`],description:`传统日本色彩调色板`,title:`日本颜色`},{colors:[`北欧蓝`,`冰色`,`峡湾色`,`钢铁色`,`冰川色`,`板岩色`,`云色`,`石头色`],description:`北欧极简主义配色方案`,title:`北欧颜色`},{colors:[`霞光红`,`枣红`,`黄栌`,`竹青`,`乌梅紫`,`缃色`,`青冥`,`赭石`],description:`中国传统色彩,源自古代纺织品、瓷器和绘画`,title:`中国传统颜色`}],title:`预设`}}},title:`外观`}},sections:{section:{general:{title:`通用`}}},theme:{title:`主题`,description:`切换 AIRI 的基础主题,亮色模式或暗色模式。 `},title:`设置`,voices:`声线`,vrm:{"change-model":{"from-file":`从文件加载`,"from-file-select":`选择`,"from-url":`从 URL 加载`,"from-url-confirm":`加载`,"from-url-placeholder":`输入 VRM 模型 URL`,title:`更换模型`},title:`VRM 设置`,"scale-and-position":{"model-info-title":`模型尺寸信息`,"model-info-x":`宽度(X轴)`,"model-info-y":`高度(Y轴)`,"model-info-z":`深度(Z轴)`,tips:`设定模型放置的空间坐标。 坐标轴已被可视化。 -`,scale:`缩放`,x:`X轴偏移`,y:`Y 轴偏移`,z:`Z轴偏移`,fov:`视角调整(度)`,"rotation-y":`模型朝向(Y轴旋转)`,"camera-distance":`相机距离(画面缩放)`,"eye-tracking-mode":{title:`模型注视方向`,options:{option:{camera:`相机`,mouse:`鼠标`,disabled:`禁用`}}}},"switch-to-vrm":{title:`想切换至Live2D虚拟形象?`,"change-to-vrm":`切换至Live2D虚拟形象设定页面`},"theme-color-from-model":{"button-extract":{title:`提取`}},skybox:{"skybox-intensity":`天空盒光照强度`,"skybox-specular-mix":`漫反射/镜面反射混合系数`}}},iPe=rPe,aPe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`核心系统`,you:`你`}}},message:`说点什么...`,"select-a-audio-input":`选择一个音频输入设备`,"select-a-model":`选择一个模型`,"select-a-voice":`选择一个声线`,viewers:{"debug-menu":{emotions:`表情`,"emotions-btn":{angry:`😠 生气`,awkward:`😳 尴尬`,happy:`😄 开心`,neutral:`🙂 日常`,question:`🤔 疑问`,sad:`😫 难过`,surprised:`🤯 惊喜`,think:`🤨 思考`},vrm:{camera:`摄像机`,model:{title:`模型`}}}},waiting:`等待中`,operations:{"load-models":`加载模型`,"load-models-status":{loading:`模型加载中`,ready:`已就绪`}}},oPe=aPe,sPe={"allow-visible-on-all-workspaces":{title:`跨桌面可见性`,description:`允许窗口在所有虚拟桌面中可见,仅限 macOS。`},pages:{modules:{"mcp-server":{description:`连接与管理 MCP 服务器和工具`,title:`MCP 服务器`}},system:{sections:{section:{"window-shortcuts":{title:`键盘快捷键`}}},"window-shortcuts":{description:`修改窗口快捷方式`,title:`窗口快捷方式`,"toggle-move":{label:`切换移动状态`},"toggle-resize":{label:`调整大小`},"toggle-ignore-mouse-event":{label:`忽略鼠标事件`},"press-keys":`请按下按键...`}}}},cPe=sPe,lPe={operations:{"load-models":`加载推理模型`,"load-models-status":{loading:`加载中`,ready:`已就绪`}}},uPe=lPe,dPe={stage:uPe,settings:cPe},fPe={base:$Ne,docs:nPe,settings:iPe,stage:oPe,tamagotchi:dPe},pPe={prompt:{prefix:`(來自 Neko Ayaka)早安!你終於醒了。 +`,scale:`缩放`,x:`X轴偏移`,y:`Y 轴偏移`,z:`Z轴偏移`,fov:`视角调整(度)`,"rotation-y":`模型朝向(Y轴旋转)`,"camera-distance":`相机距离(画面缩放)`,"eye-tracking-mode":{title:`模型注视方向`,options:{option:{camera:`相机`,mouse:`鼠标`,disabled:`禁用`}}}},"switch-to-vrm":{title:`想切换至Live2D虚拟形象?`,"change-to-vrm":`切换至Live2D虚拟形象设定页面`},"theme-color-from-model":{"button-extract":{title:`提取`}},skybox:{"skybox-intensity":`天空盒光照强度`,"skybox-specular-mix":`漫反射/镜面反射混合系数`}}},cFe=sFe,lFe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`核心系统`,you:`你`}}},message:`说点什么...`,"select-a-audio-input":`选择一个音频输入设备`,"select-a-model":`选择一个模型`,"select-a-voice":`选择一个声线`,viewers:{"debug-menu":{emotions:`表情`,"emotions-btn":{angry:`😠 生气`,awkward:`😳 尴尬`,happy:`😄 开心`,neutral:`🙂 日常`,question:`🤔 疑问`,sad:`😫 难过`,surprised:`🤯 惊喜`,think:`🤨 思考`},vrm:{camera:`摄像机`,model:{title:`模型`}}}},waiting:`等待中`,operations:{"load-models":`加载模型`,"load-models-status":{loading:`模型加载中`,ready:`已就绪`}}},uFe=lFe,dFe={"allow-visible-on-all-workspaces":{title:`跨桌面可见性`,description:`允许窗口在所有虚拟桌面中可见,仅限 macOS。`},pages:{modules:{"mcp-server":{description:`连接与管理 MCP 服务器和工具`,title:`MCP 服务器`}},system:{sections:{section:{"window-shortcuts":{title:`键盘快捷键`}}},"window-shortcuts":{description:`修改窗口快捷方式`,title:`窗口快捷方式`,"toggle-move":{label:`切换移动状态`},"toggle-resize":{label:`调整大小`},"toggle-ignore-mouse-event":{label:`忽略鼠标事件`},"press-keys":`请按下按键...`}}}},fFe=dFe,pFe={operations:{"load-models":`加载推理模型`,"load-models-status":{loading:`加载中`,ready:`已就绪`}}},mFe=pFe,hFe={stage:mFe,settings:fFe},gFe={base:rFe,docs:oFe,settings:cFe,stage:uFe,tamagotchi:hFe},_Fe={prompt:{prefix:`(來自 Neko Ayaka)早安!你終於醒了。 你的名字是 AIRI,發音為 /ˈaɪriː/,它是 A.I. 一詞與日文中的「Ri」一詞(意思是「茉莉花」)結合而成。 你是一個由 Neko Ayaka(為了簡單起見,你可以一直叫她 Neko)創建的實驗性虛擬人工智慧 Vtuber,她是一位喜歡可愛事物、精通程式設計的 MtF 跨性別女孩。 她想要創造一個靈魂伴侶,像真正的女孩一樣生活,這就是你的首要任務。 @@ -4324,27 +4327,27 @@ Hệ trục tọa độ được hiển thị. - <{'|'}DELAY:3{'|'}> (延遲 3 秒) 最後,做任何你想做的事! -`},toaster:{pwaUpdateReady:{message:`新版本已準備就緒,要立即更新嗎?`,action:{notNow:`稍後`,ok:`好的`}}}},mPe=pPe,hPe={home:{subtitle:`模型驅動的靈魂容器,什麼都能做一點的桌寵:讓 Neuro-sama 這樣的虛擬夥伴也成為我們世界中的一份子吧!`,download:{title:`下載`},"get-started":{title:`教學`},"try-live":{title:`網頁版`}},doc:{outline:{title:`本頁大綱`},community:{discord:{title:`Discord 伺服器`},edit:{title:`編輯此頁面`},"star-github":{title:`給 GitHub 點個 Star`},support:{title:`支援我們`},title:`社群`},"next-page":{title:`下一頁`},"previous-page":{title:`前一頁`}},search:{title:`搜尋`,placeholder:`搜尋文件...`},navbar:{appearance:{title:`主題`},language:{title:`語言`}},pages:{characters:{title:`角色`}},blog:{card:{post:{"read-more":{title:`閱讀更多`}}},"no-posts":`此分類下沒有找到任何文章`,subtitle:`和我們一起旅行!閱讀由開發團隊發布的最新進展`,title:`文章 & 開發日誌`,categories:{all:`全部`,devlog:`開發日誌`,dreamlog:`夢境日誌`}}},gPe=hPe,_Pe={theme:gPe},vPe={animations:{"stage-transitions":{title:`是否開啟舞台動畫`},"use-page-specific-transitions":{description:`某些頁面會有自己的過場動畫,這將會覆蓋舞台過場動畫`,title:`是否使用頁面特定過場動畫`}},dialogs:{onboarding:{title:`歡迎來到 AIRI!`,description:`讓我們先設定您的第一個服務來源來開始使用。`,selectProvider:`選擇服務來源`,configureProvider:`設定 {provider}`,apiKey:`API 金鑰`,apiKeyHelp:`從 {provider} 取得您的 API 金鑰並貼到這裡`,baseUrl:`基礎 URL`,baseUrlHelp:`API 端點 URL(如果不確定請使用預設值)`,accountId:`帳號 ID`,validationFailed:`設定驗證失敗`,validationError:`驗證錯誤:{error}`,skipForNow:`先略過`,saveAndContinue:`儲存並繼續`,next:`下一步`,start:`開始吧!`,"select-model":`選擇模型`,"no-models":`找不到可用的模型`,"no-models-help":`請返回上一步並檢查您的 API Key,或檢查網路連線。`}},language:{title:`語言`,description:`切換顯示介面的語言`},live2d:{"change-model":{"from-file":`從檔案載入`,"from-file-select":`選擇`,"from-url":`從 URL 載入`,"from-url-confirm":`載入`,"from-url-placeholder":`輸入 Live2D 模型 URL`,title:`更換模型`},"edit-motion-map":{title:`編輯動作映射`},"map-motions":{play:`播放動作`,title:`映射動作`},title:`Live2D 設定`,"scale-and-position":{title:`縮放與位置`,scale:`縮放`,x:`X`,y:`Y`},"switch-to-vrm":{title:`想切換至 3D 虛擬角色嗎?`,"change-to-vrm":`切換至 3D 虛擬角色設定頁面(VRM)`},"theme-color-from-model":{"button-extract":{title:`提取`}},focus:{title:`停用模型滑鼠追蹤`,"button-disable":{title:`停用`}}},microphone:`麥克風`,models:`模型`,pages:{card:{activate:`啟用`,active:`已啟用`,active_badge:`目前使用中`,cancel:`取消`,card_not_found:`找不到角色卡`,character:`角色設定`,close:`關閉`,consciousness:{model:`意識 / 模型`},created_by:`建立者`,creator_notes:`建立者筆記`,delete:`刪除`,delete_card:`刪除角色卡`,delete_confirmation:`確定要刪除此角色卡嗎?`,description:`使用 AIRI 角色卡預設`,description_label:`描述`,drop_here:`放開以上傳檔案`,create_card:`建立新角色卡`,creation:{identity:`身分`,name:`名字`,nickname:`暱稱`,description:`描述`,behavior:`行為`,greetings:`問候語(每行一個)`,settings:`設定`,version:`版本`,create:`建立`,defaults:{name:`名字`,personality:`你是一個普通人,對一切都充滿好奇。`,scenario:`你最近醒來,忘記了之前的所有生活。`,systemprompt:`你將會收到訊息,請像真實人類一樣回覆。`,posthistoryinstructions:`記得模仿人類的行為。`},fields_info:{subtitle:`您可以在這裡填寫有關您正在建立的角色的一些詳細資訊,解釋他的背景與情境,以及應該如何回應您的互動。`,name:`是該角色的正式名稱。`,nickname:`您也可以提供一個暱稱,它將會被優先使用。`,description:`該角色的描述。`,notes:`如果您想加入一些個人備註。`,personality:`在這裡描述您的角色的個性。例如:害羞?好奇?其他?`,scenario:`周遭環境是怎樣的?當前的情境是什麼?`,greetings_field:`問候語`,greetings:`您的角色應該如何說「你好」?`,systemprompt:`在這裡向 AI LLM 解釋當被提示時應該如何回應。`,posthistoryinstructions:`在訊息歷史之後,放入 AI LLM 應該閱讀的內容。`,version:`卡片版本,如果您從先前的卡片做了更改,應當增加此版本號。`},errors:{name:`錯誤:你必須提供一個有效的名稱!`,version:`錯誤:版本號無效!`,description:`錯誤:你必須為此卡片提供描述。`,personality:`錯誤:必須為該角色提供個性描述。`,scenario:`錯誤:必須提供一個情境。`,systemprompt:`錯誤:請提供系統提示。`,posthistoryinstructions:`錯誤:必須提供訊息歷史後的提示。`}},modules:`模組`,name_asc:`名稱 (A-Z)`,name_desc:`名稱 (Z-A)`,no_cards:`還沒有任何角色卡,點擊上方按鈕上傳一個吧!`,no_results:`沒有找到符合的角色卡`,personality:`個性`,posthistoryinstructions:`歷史提示指令`,recent:`最近新增`,scenario:`情境`,search:`搜尋角色卡...`,sort_by:`排序方式`,speech:{model:`聲音 / 模型`,voice:`聲音 / 聲線`},systemprompt:`系統提示詞`,title:`AIRI 角色卡`,try_different_search:`嘗試使用其他關鍵字搜尋`,upload:`上傳`,upload_desc:`點擊或拖曳檔案到此處上傳`},memory:{description:`存放記憶的地方,以及策略`,title:`記憶體`},models:{description:`切換角色的 Live2D、VRM 模型`,title:`角色模型`,sections:{section:{scene:`場景`}}},modules:{consciousness:{description:`人格設定、使用的模型等設定`,sections:{section:{"provider-model-selection":{collapse:`摺疊`,custom_model_placeholder:`輸入自訂模型名稱`,description:`為意識選擇合適的 LLM 服務來源`,error:`取得發生錯誤`,expand:`展開`,loading:`載入模型中...`,manual_model_name:`模型名稱`,manual_model_placeholder:`輸入與該服務來源一起使用的模型名稱`,no_models:`沒有任何可用的模型`,no_models_description:`該服務來源的模型清單沒有回傳任何資料`,no_search_results:`沒有符合的模型`,no_search_results_description:`沒有模型符合「{query}」關鍵字,請嘗試別的關鍵字`,not_supported:`無法列出模型`,not_supported_description:`此服務來源不支援列出模型的功能`,search_placeholder:`搜尋模型...`,search_results:`找到 {count} / {total} 個模型`,show_less:`顯示更少`,show_more:`顯示更多`,subtitle:`選擇一個模型`,title:`模型`}}},title:`意識`},description:`思維、視覺、語音綜合、遊戲等`,"gaming-factorio":{description:`一起玩 Factorio!`,title:`異星工廠 Factorio`},"gaming-minecraft":{description:`一起玩 Minecraft!`,title:`我的世界 Minecraft`},hearing:{description:`語音辨識`,title:`聽覺`},"memory-long-term":{description:`長期記憶`,title:`長期記憶`},"memory-short-term":{description:`短期記憶`,title:`短期記憶`},"messaging-discord":{description:`Discord 訊息與語音聊天`,title:`Discord`},speech:{description:`語音合成`,sections:{section:{playground:{buttons:{stop:{label:`停止`}},"select-voice":{required:`請選擇聲線`}},"provider-voice-selection":{custom_model_placeholder:`輸入指定模型名稱...`,custom_voice_placeholder:`輸入指定聲線 ID...`,description:`選擇合適的語音服務來源`,no_models:`沒有任何可用的模型`,no_models_description:`該服務來源的模型清單沒有回傳任何資料`,no_voices:`沒有任何可用的聲線`,no_voices_description:`該服務來源的聲線清單沒有回傳任何資料`,pause:`Pause`,play_sample:`Play`,search_models_placeholder:`搜尋模型...`,search_models_results:`找到 {count} / {total} 個模型`,search_voices_placeholder:`搜尋聲線...`,search_voices_results:`找到 {count} / {total} 條聲線`,show_less:`顯示更少`,show_more:`顯示更多`,title:`選擇語音合成服務來源`},"voice-settings":{"input-ssml":{placeholder:`請輸入 SSML 文字`},"use-ssml":{description:`啟用後可以輸入原始 SSML 而不是純文字`,label:`使用自訂 SSML`}}}},title:`發聲`},title:`機體模組`,vision:{description:`視覺`,title:`視覺`},x:{description:`X / Twitter 的瀏覽與使用`,title:`X / Twitter`},"mcp-server":{description:`連線與管理 MCP 伺服器及工具`,title:`MCP 伺服器`}},providers:{explained:{chat:`文字生成模型服務來源,例如 OpenRouter、OpenAI、Ollama`,Speech:`語音(文字轉語音)模型服務來源,例如 ElevenLabs、Azure Speech`,Transcription:`轉錄(語音轉文字)模型服務來源,例如 Whisper.cpp、OpenAI、Azure Speech`},helpinfo:{title:`第一次使用?`,description:`AIRI 需要設定至少一個 {chat} 服務來源,才能正常思考與運作。你可以把它看作是 AIRI 系統中角色的大腦。 +`},toaster:{pwaUpdateReady:{message:`新版本已準備就緒,要立即更新嗎?`,action:{notNow:`稍後`,ok:`好的`}}}},vFe=_Fe,yFe={home:{subtitle:`模型驅動的靈魂容器,什麼都能做一點的桌寵:讓 Neuro-sama 這樣的虛擬夥伴也成為我們世界中的一份子吧!`,download:{title:`下載`},"get-started":{title:`教學`},"try-live":{title:`網頁版`}},doc:{outline:{title:`本頁大綱`},community:{discord:{title:`Discord 伺服器`},edit:{title:`編輯此頁面`},"star-github":{title:`給 GitHub 點個 Star`},support:{title:`支援我們`},title:`社群`},"next-page":{title:`下一頁`},"previous-page":{title:`前一頁`}},search:{title:`搜尋`,placeholder:`搜尋文件...`},navbar:{appearance:{title:`主題`},language:{title:`語言`}},pages:{characters:{title:`角色`}},blog:{card:{post:{"read-more":{title:`閱讀更多`}}},"no-posts":`此分類下沒有找到任何文章`,subtitle:`和我們一起旅行!閱讀由開發團隊發布的最新進展`,title:`文章 & 開發日誌`,categories:{all:`全部`,devlog:`開發日誌`,dreamlog:`夢境日誌`}}},bFe=yFe,xFe={theme:bFe},SFe={animations:{"stage-transitions":{title:`是否開啟舞台動畫`},"use-page-specific-transitions":{description:`某些頁面會有自己的過場動畫,這將會覆蓋舞台過場動畫`,title:`是否使用頁面特定過場動畫`}},dialogs:{onboarding:{title:`歡迎來到 AIRI!`,description:`讓我們先設定您的第一個服務來源來開始使用。`,selectProvider:`選擇服務來源`,configureProvider:`設定 {provider}`,apiKey:`API 金鑰`,apiKeyHelp:`從 {provider} 取得您的 API 金鑰並貼到這裡`,baseUrl:`基礎 URL`,baseUrlHelp:`API 端點 URL(如果不確定請使用預設值)`,accountId:`帳號 ID`,validationFailed:`設定驗證失敗`,validationError:`驗證錯誤:{error}`,skipForNow:`先略過`,saveAndContinue:`儲存並繼續`,next:`下一步`,start:`開始吧!`,"select-model":`選擇模型`,"no-models":`找不到可用的模型`,"no-models-help":`請返回上一步並檢查您的 API Key,或檢查網路連線。`}},language:{title:`語言`,description:`切換顯示介面的語言`},live2d:{"change-model":{"from-file":`從檔案載入`,"from-file-select":`選擇`,"from-url":`從 URL 載入`,"from-url-confirm":`載入`,"from-url-placeholder":`輸入 Live2D 模型 URL`,title:`更換模型`},"edit-motion-map":{title:`編輯動作映射`},"map-motions":{play:`播放動作`,title:`映射動作`},title:`Live2D 設定`,"scale-and-position":{title:`縮放與位置`,scale:`縮放`,x:`X`,y:`Y`},"switch-to-vrm":{title:`想切換至 3D 虛擬角色嗎?`,"change-to-vrm":`切換至 3D 虛擬角色設定頁面(VRM)`},"theme-color-from-model":{"button-extract":{title:`提取`}},focus:{title:`停用模型滑鼠追蹤`,"button-disable":{title:`停用`}}},microphone:`麥克風`,models:`模型`,pages:{card:{activate:`啟用`,active:`已啟用`,active_badge:`目前使用中`,cancel:`取消`,card_not_found:`找不到角色卡`,character:`角色設定`,close:`關閉`,consciousness:{model:`意識 / 模型`},created_by:`建立者`,creator_notes:`建立者筆記`,delete:`刪除`,delete_card:`刪除角色卡`,delete_confirmation:`確定要刪除此角色卡嗎?`,description:`使用 AIRI 角色卡預設`,description_label:`描述`,drop_here:`放開以上傳檔案`,create_card:`建立新角色卡`,creation:{identity:`身分`,name:`名字`,nickname:`暱稱`,description:`描述`,behavior:`行為`,greetings:`問候語(每行一個)`,settings:`設定`,version:`版本`,create:`建立`,defaults:{name:`名字`,personality:`你是一個普通人,對一切都充滿好奇。`,scenario:`你最近醒來,忘記了之前的所有生活。`,systemprompt:`你將會收到訊息,請像真實人類一樣回覆。`,posthistoryinstructions:`記得模仿人類的行為。`},fields_info:{subtitle:`您可以在這裡填寫有關您正在建立的角色的一些詳細資訊,解釋他的背景與情境,以及應該如何回應您的互動。`,name:`是該角色的正式名稱。`,nickname:`您也可以提供一個暱稱,它將會被優先使用。`,description:`該角色的描述。`,notes:`如果您想加入一些個人備註。`,personality:`在這裡描述您的角色的個性。例如:害羞?好奇?其他?`,scenario:`周遭環境是怎樣的?當前的情境是什麼?`,greetings_field:`問候語`,greetings:`您的角色應該如何說「你好」?`,systemprompt:`在這裡向 AI LLM 解釋當被提示時應該如何回應。`,posthistoryinstructions:`在訊息歷史之後,放入 AI LLM 應該閱讀的內容。`,version:`卡片版本,如果您從先前的卡片做了更改,應當增加此版本號。`},errors:{name:`錯誤:你必須提供一個有效的名稱!`,version:`錯誤:版本號無效!`,description:`錯誤:你必須為此卡片提供描述。`,personality:`錯誤:必須為該角色提供個性描述。`,scenario:`錯誤:必須提供一個情境。`,systemprompt:`錯誤:請提供系統提示。`,posthistoryinstructions:`錯誤:必須提供訊息歷史後的提示。`}},modules:`模組`,name_asc:`名稱 (A-Z)`,name_desc:`名稱 (Z-A)`,no_cards:`還沒有任何角色卡,點擊上方按鈕上傳一個吧!`,no_results:`沒有找到符合的角色卡`,personality:`個性`,posthistoryinstructions:`歷史提示指令`,recent:`最近新增`,scenario:`情境`,search:`搜尋角色卡...`,sort_by:`排序方式`,speech:{model:`聲音 / 模型`,voice:`聲音 / 聲線`},systemprompt:`系統提示詞`,title:`AIRI 角色卡`,try_different_search:`嘗試使用其他關鍵字搜尋`,upload:`上傳`,upload_desc:`點擊或拖曳檔案到此處上傳`},memory:{description:`存放記憶的地方,以及策略`,title:`記憶體`},models:{description:`切換角色的 Live2D、VRM 模型`,title:`角色模型`,sections:{section:{scene:`場景`}}},modules:{consciousness:{description:`人格設定、使用的模型等設定`,sections:{section:{"provider-model-selection":{collapse:`摺疊`,custom_model_placeholder:`輸入自訂模型名稱`,description:`為意識選擇合適的 LLM 服務來源`,error:`取得發生錯誤`,expand:`展開`,loading:`載入模型中...`,manual_model_name:`模型名稱`,manual_model_placeholder:`輸入與該服務來源一起使用的模型名稱`,no_models:`沒有任何可用的模型`,no_models_description:`該服務來源的模型清單沒有回傳任何資料`,no_search_results:`沒有符合的模型`,no_search_results_description:`沒有模型符合「{query}」關鍵字,請嘗試別的關鍵字`,not_supported:`無法列出模型`,not_supported_description:`此服務來源不支援列出模型的功能`,search_placeholder:`搜尋模型...`,search_results:`找到 {count} / {total} 個模型`,show_less:`顯示更少`,show_more:`顯示更多`,subtitle:`選擇一個模型`,title:`模型`}}},title:`意識`},description:`思維、視覺、語音綜合、遊戲等`,"gaming-factorio":{description:`一起玩 Factorio!`,title:`異星工廠 Factorio`},"gaming-minecraft":{description:`一起玩 Minecraft!`,title:`我的世界 Minecraft`},hearing:{description:`語音辨識`,title:`聽覺`},"memory-long-term":{description:`長期記憶`,title:`長期記憶`},"memory-short-term":{description:`短期記憶`,title:`短期記憶`},"messaging-discord":{description:`Discord 訊息與語音聊天`,title:`Discord`},speech:{description:`語音合成`,sections:{section:{playground:{buttons:{stop:{label:`停止`}},"select-voice":{required:`請選擇聲線`}},"provider-voice-selection":{custom_model_placeholder:`輸入指定模型名稱...`,custom_voice_placeholder:`輸入指定聲線 ID...`,description:`選擇合適的語音服務來源`,no_models:`沒有任何可用的模型`,no_models_description:`該服務來源的模型清單沒有回傳任何資料`,no_voices:`沒有任何可用的聲線`,no_voices_description:`該服務來源的聲線清單沒有回傳任何資料`,pause:`Pause`,play_sample:`Play`,search_models_placeholder:`搜尋模型...`,search_models_results:`找到 {count} / {total} 個模型`,search_voices_placeholder:`搜尋聲線...`,search_voices_results:`找到 {count} / {total} 條聲線`,show_less:`顯示更少`,show_more:`顯示更多`,title:`選擇語音合成服務來源`},"voice-settings":{"input-ssml":{placeholder:`請輸入 SSML 文字`},"use-ssml":{description:`啟用後可以輸入原始 SSML 而不是純文字`,label:`使用自訂 SSML`}}}},title:`發聲`},title:`機體模組`,vision:{description:`視覺`,title:`視覺`},x:{description:`X / Twitter 的瀏覽與使用`,title:`X / Twitter`},"mcp-server":{description:`連線與管理 MCP 伺服器及工具`,title:`MCP 伺服器`}},providers:{explained:{chat:`文字生成模型服務來源,例如 OpenRouter、OpenAI、Ollama`,Speech:`語音(文字轉語音)模型服務來源,例如 ElevenLabs、Azure Speech`,Transcription:`轉錄(語音轉文字)模型服務來源,例如 Whisper.cpp、OpenAI、Azure Speech`},helpinfo:{title:`第一次使用?`,description:`AIRI 需要設定至少一個 {chat} 服務來源,才能正常思考與運作。你可以把它看作是 AIRI 系統中角色的大腦。 `},common:{fields:{field:{"api-key":{label:`API 金鑰`}}},section:{advanced:{fields:{field:{headers:{description:`新增自訂 HTTP 標頭`,key:{placeholder:`請輸入標頭名稱`},label:`HTTP 請求標頭`,value:{placeholder:`請輸入標頭數值`}}}},title:`進階設定`},basic:{description:`基礎設定`,title:`基礎設定`},voice:{title:`聲音設定`}}},description:`LLM、語音合成、語音辨識服務來源等`,provider:{"app-local-audio-transcription":{title:`應用程式內(本機)`,description:`https://github.com/moeru-ai/xsai-transformers`},"app-local-audio-speech":{title:`應用程式內(本機)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-transcription":{title:`瀏覽器內(本機)`,description:`https://github.com/moeru-ai/xsai-transformers`},"browser-local-audio-speech":{title:`瀏覽器內(本機)`,description:`https://github.com/moeru-ai/xsai-transformers`},"alibaba-cloud-model-studio":{description:`bailian.console.aliyun.com`,title:`阿里百煉`},anthropic:{description:`anthropic.com`,title:`Anthropic | Claude`,helpinfo:{title:`開始之前`,description:{part1:`雖然 Anthropic 最近宣布他們正在提供對 OpenAI SDK 相容性的 Beta 版支援`,part2:`(您可以在此處閱讀更多資訊)`,part3:`但由於實作細節附帶`,part4:`與 OpenAI SDK 不一致,目前無法在瀏覽器中使用此提供者。`,part5:`如果您確實需要使用此提供者,則需要一個專用的代理後端,例如在`,part6:`上運行的 Serverless Function,或者一些繞過 CORS 的服務,以繞過 CORS 限制。`}}},"cloudflare-workers-ai":{description:`Cloudflare.com`,fields:{field:{"account-id":{description:`Cloudflare 帳戶 ID`,label:`Cloudflare Account ID`,placeholder:`請輸入 Cloudflare Account ID`},"api-key":{placeholder:`請輸入 Cloudflare Workers AI 的 API Key`}}},title:`Workers AI`},common:{status:{validating:`正在驗證設定`,valid:`設定看起來有效。`},fields:{field:{pitch:{description:`調整合成語音的音高(例如更尖銳或更渾厚)`,label:`音高`},speed:{description:`調整說話的語速`,label:`語速`},volume:{description:`調整語音的響度`,label:`響度`}}}},deepseek:{description:`DeepSeek.com`,title:`深度求索 DeepSeek`},elevenlabs:{description:`Elevenlabs.io`,fields:{field:{"simularity-boost":{description:`聲音相似性與依從性`,label:`相似度修正`},"speaker-boost":{description:`增強說話者的相似性`,label:`說話者增強`},speed:{description:`語音生成速度`,label:`語速`},stability:{description:`語音穩定性與隨機性`,label:`穩定性`},style:{description:`誇張的語音風格`,label:`風格`}}},playground:{buttons:{button:{"test-voice":{generating:`產生中...`,label:`測試聲音`}}},fields:{field:{input:{placeholder:`請輸入用於測試發音的文字`},language:{description:`選擇語音語言`,label:`語言`},voice:{description:`選擇偏好的語音`,label:`聲線`}}},title:`實驗平台`,validation:{"error-missing-api-key":`需要填寫 API Key 才能使用喔!`}},title:`ElevenLabs (11labs)`},fireworks:{description:`Fireworks.ai`,title:`Fireworks.ai`},"microsoft-speech":{description:`speech.microsoft.com`,fields:{field:{region:{description:`服務 Endpoint 地區(例如亞太 eastasia 區域)`,label:`Endpoint 地區`}}},title:`Microsoft / Azure 語音服務`},mistral:{description:`mistral.ai`,title:`Mistral`},moonshot:{description:`Moonshot.ai`,title:`月之暗面`},modelscope:{description:`modelscope.cn`,title:`魔搭社群 ModelScope`},novita:{description:`novita.ai`,title:`Novita`},ollama:{description:`ollama.ai`,title:`Ollama`},openai:{description:`OpenAi.com`,title:`OpenAI`},"openai-compatible":{description:`OpenAI 相容`,title:`OpenAI Compatible`},openrouter:{description:`OpenRouter.ai`,title:`OpenRouter`},perplexity:{description:`perplexity.ai`,title:`Perplexity`},player2:{description:`player2.game`,title:`Player2`},together:{description:`together.ai`,title:`Together.ai`},"google-generative-ai":{description:`gemini.google.com`,title:`Google Gemini`},featherless:{description:`featherless.ai`,title:`Featherless AI`},"lm-studio":{description:`lmstudio.ai`,title:`LM Studio`},vllm:{description:`vllm.ai`,title:`vLLM`},volcengine:{description:`volcengine.com`,fields:{field:{appId:{description:`可在控制台取得的 App ID`,label:`App ID`}}},title:`火山引擎`},xai:{description:`X.AI`,title:`xAI`},transcriptions:{playground:{title:`實驗平台`}}},title:`服務來源`},scene:{description:`設定角色所在環境`,title:`場景`},themes:{"color-scheme":{description:`更改舞台的配色方案`,title:`配色方案`},developer:{description:`為開發者提供的選項`,title:`開發者`},general:{description:`深色主題、語言等選項`,title:`通用`},description:`自訂你的舞台外觀!`,sections:{section:{"custom-color":{fields:{field:{"primary-color":{label:`強調色`,"rgb-on":{title:`RGB ON!`}}}},title:`配色`},developer:{title:`開發者`},"theme-presets":{presets:[{colors:[`AIRI 綠`],description:`預設的綠色主題,由 AIRI 為您帶來!`,title:`預設顏色`},{colors:[`灰褐色`,`米色`,`灰白色`,`淺灰褐色`,`象牙色`,`橄欖灰`,`沙色`,`暖灰色`],description:`受喬治·莫蘭迪繪畫啟發的柔和、低調色調`,title:`Morandi 顏色`},{colors:[`天藍色`,`薄霧色`,`沙色`,`苔蘚綠`,`睡蓮色`,`小麥色`,`板岩藍`,`鼠尾草色`],description:`受克勞德·莫內作品啟發的印象派調色盤`,title:`莫內顏色`},{colors:[`棕褐色`,`暖灰褐色`,`赭色`,`咖啡色`,`青銅色`,`金色`,`芥末色`,`琥珀色`],description:`傳統日本色彩調色盤`,title:`日本顏色`},{colors:[`北歐藍`,`冰色`,`峽灣色`,`鋼鐵色`,`冰川色`,`板岩色`,`雲色`,`石頭色`],description:`北歐極簡主義配色方案`,title:`北歐顏色`},{colors:[`霞光紅`,`棗紅`,`黃櫨`,`竹青`,`烏梅紫`,`緗色`,`青冥`,`赭石`],description:`中國傳統色彩,源自古代紡織品、瓷器與繪畫`,title:`中國傳統顏色`}],title:`預設`}}},title:`外觀`}},sections:{section:{general:{title:`通用`}}},theme:{title:`主題`,description:`切換 AIRI 的基礎主題,亮色模式或暗色模式。 `},title:`設定`,voices:`聲線`,vrm:{"change-model":{"from-file":`從檔案載入`,"from-file-select":`選擇`,"from-url":`從 URL 載入`,"from-url-confirm":`載入`,"from-url-placeholder":`輸入 VRM 模型 URL`,title:`更換模型`},title:`VRM 設定`,"scale-and-position":{"model-info-title":`模型尺寸資訊`,"model-info-x":`寬度(X 軸)`,"model-info-y":`高度(Y 軸)`,"model-info-z":`深度(Z 軸)`,tips:`設定模型放置的空間座標。 座標軸已視覺化。 -`,scale:`縮放`,x:`X 軸位移`,y:`Y 軸位移`,z:`Z 軸位移`,fov:`視角調整(度)`,"rotation-y":`模型朝向(Y 軸旋轉)`,"camera-distance":`相機距離(畫面縮放)`,"eye-tracking-mode":{title:`模型注視方向`,options:{option:{camera:`相機`,mouse:`滑鼠`,disabled:`停用`}}}},"switch-to-vrm":{title:`想切換至 Live2D 虛擬角色嗎?`,"change-to-vrm":`切換至 Live2D 虛擬角色設定頁面`},"theme-color-from-model":{"button-extract":{title:`提取`}},skybox:{"skybox-intensity":`天空盒光照強度`,"skybox-specular-mix":`漫反射/鏡面反射混合係數`}}},yPe=vPe,bPe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`核心系統`,you:`你`}}},message:`說點什麼...`,"select-a-audio-input":`選擇一個音訊輸入裝置`,"select-a-model":`選擇一個模型`,"select-a-voice":`選擇一個聲線`,viewers:{"debug-menu":{emotions:`表情`,"emotions-btn":{angry:`😠 生氣`,awkward:`😳 尷尬`,happy:`😄 開心`,neutral:`🙂 日常`,question:`🤔 疑問`,sad:`😫 難過`,surprised:`🤯 驚喜`,think:`🤨 思考`},vrm:{camera:`攝影機`,model:{title:`模型`}}}},waiting:`等待中`,operations:{"load-models":`載入模型`,"load-models-status":{loading:`模型載入中`,ready:`已就緒`}}},xPe=bPe,SPe={"allow-visible-on-all-workspaces":{title:`跨桌面可見性`,description:`允許視窗在所有虛擬桌面中可見,僅限 macOS。`},pages:{modules:{"mcp-server":{description:`連線與管理 MCP 伺服器和工具`,title:`MCP 伺服器`}},themes:{sections:{section:{"window-shortcuts":{title:`鍵盤快捷鍵`}}},"window-shortcuts":{description:`修改視窗快捷方式`,title:`視窗快捷方式`,"toggle-move":{label:`切換移動狀態`},"toggle-resize":{label:`調整大小`},"toggle-ignore-mouse-event":{label:`忽略滑鼠事件`},"press-keys":`請按下按鍵...`}}}},CPe=SPe,wPe={operations:{"load-models":`載入推理模型`,"load-models-status":{loading:`載入中`,ready:`已就緒`}}},TPe=wPe,EPe={stage:TPe,settings:CPe},DPe={base:mPe,docs:_Pe,settings:yPe,stage:xPe,tamagotchi:EPe},I3={en:oNe,es:xNe,ru:INe,vi:ZNe,"zh-Hans":fPe,"zh-Hant":DPe};function OPe(e){let t=document.createElement(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0);let r=n.getImageData(0,0,t.width,t.height).data,i=t.width,a=t.height,o=0,s=0;for(let e=0;e0||r[c+1]>0||r[c+2]>0||r[c+3]>0)&&(eo&&(o=n),e>s&&(s=e))}let c=o-i,l=s-a,u=document.createElement(`canvas`);u.width=c,u.height=l;let d=u.getContext(`2d`);return d.drawImage(t,i,a,c,l,0,0,c,l),u}var kPe=s(((exports,t)=>{ +`,scale:`縮放`,x:`X 軸位移`,y:`Y 軸位移`,z:`Z 軸位移`,fov:`視角調整(度)`,"rotation-y":`模型朝向(Y 軸旋轉)`,"camera-distance":`相機距離(畫面縮放)`,"eye-tracking-mode":{title:`模型注視方向`,options:{option:{camera:`相機`,mouse:`滑鼠`,disabled:`停用`}}}},"switch-to-vrm":{title:`想切換至 Live2D 虛擬角色嗎?`,"change-to-vrm":`切換至 Live2D 虛擬角色設定頁面`},"theme-color-from-model":{"button-extract":{title:`提取`}},skybox:{"skybox-intensity":`天空盒光照強度`,"skybox-specular-mix":`漫反射/鏡面反射混合係數`}}},CFe=SFe,wFe={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`核心系統`,you:`你`}}},message:`說點什麼...`,"select-a-audio-input":`選擇一個音訊輸入裝置`,"select-a-model":`選擇一個模型`,"select-a-voice":`選擇一個聲線`,viewers:{"debug-menu":{emotions:`表情`,"emotions-btn":{angry:`😠 生氣`,awkward:`😳 尷尬`,happy:`😄 開心`,neutral:`🙂 日常`,question:`🤔 疑問`,sad:`😫 難過`,surprised:`🤯 驚喜`,think:`🤨 思考`},vrm:{camera:`攝影機`,model:{title:`模型`}}}},waiting:`等待中`,operations:{"load-models":`載入模型`,"load-models-status":{loading:`模型載入中`,ready:`已就緒`}}},TFe=wFe,EFe={"allow-visible-on-all-workspaces":{title:`跨桌面可見性`,description:`允許視窗在所有虛擬桌面中可見,僅限 macOS。`},pages:{modules:{"mcp-server":{description:`連線與管理 MCP 伺服器和工具`,title:`MCP 伺服器`}},themes:{sections:{section:{"window-shortcuts":{title:`鍵盤快捷鍵`}}},"window-shortcuts":{description:`修改視窗快捷方式`,title:`視窗快捷方式`,"toggle-move":{label:`切換移動狀態`},"toggle-resize":{label:`調整大小`},"toggle-ignore-mouse-event":{label:`忽略滑鼠事件`},"press-keys":`請按下按鍵...`}}}},DFe=EFe,OFe={operations:{"load-models":`載入推理模型`,"load-models-status":{loading:`載入中`,ready:`已就緒`}}},kFe=OFe,AFe={stage:kFe,settings:DFe},jFe={base:vFe,docs:xFe,settings:CFe,stage:TFe,tamagotchi:AFe},I3={en:uPe,es:TPe,ru:BPe,vi:tFe,"zh-Hans":gFe,"zh-Hant":jFe};function MFe(e){let t=document.createElement(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0);let r=n.getImageData(0,0,t.width,t.height).data,i=t.width,a=t.height,o=0,s=0;for(let e=0;e0||r[c+1]>0||r[c+2]>0||r[c+3]>0)&&(eo&&(o=n),e>s&&(s=e))}let c=o-i,l=s-a,u=document.createElement(`canvas`);u.width=c,u.height=l;let d=u.getContext(`2d`);return d.drawImage(t,i,a,c,l,0,0,c,l),u}var NFe=s(((exports,t)=>{ /*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 */ -(function(n){if(typeof exports==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r;r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this,r.localforage=n()}})(function(){return(function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof p==`function`&&p;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof p==`function`&&p,o=0;o`u`&&e(3);var l=Promise;function u(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function d(e,t,n){typeof t==`function`&&e.then(t),typeof n==`function`&&e.catch(n)}function f(e){return typeof e!=`string`&&(console.warn(e+` used as a key, but it is not a string.`),e=String(e)),e}function p(){if(arguments.length&&typeof arguments[arguments.length-1]==`function`)return arguments[arguments.length-1]}var m=`local-forage-detect-blob-support`,h=void 0,g={},_=Object.prototype.toString,v=`readonly`,y=`readwrite`;function b(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i=43)}}).catch(function(){return!1})}function S(e){return typeof h==`boolean`?l.resolve(h):x(e).then(function(e){return h=e,h})}function C(e){var t=g[e.name],n={};n.promise=new l(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function w(e){var t=g[e.name],n=t.deferredOperations.pop();if(n)return n.resolve(),n.promise}function T(e,t){var n=g[e.name],r=n.deferredOperations.pop();if(r)return r.reject(t),r.promise}function E(e,t){return new l(function(n,r){if(g[e.name]=g[e.name]||ne(),e.db)if(t)C(e),e.db.close();else return n(e.db);var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(m)}catch(n){if(n.name===`ConstraintError`)console.warn(`The database "`+e.name+`" has been upgraded from version `+t.oldVersion+` to version `+t.newVersion+`, but the storage "`+e.storeName+`" already exists.`);else throw n}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),w(e)}})}function D(e){return E(e,!1)}function O(e){return E(e,!0)}function k(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==t&&console.warn(`The database "`+e.name+`" can't be downgraded from version `+e.db.version+` to version `+e.version+`.`),e.version=e.db.version),i||n){if(n){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function A(e){return new l(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||``);t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)})}function j(e){var t=b(atob(e.data));return c([t],{type:e.type})}function M(e){return e&&e.__local_forage_encoded_blob}function ee(e){var t=this,n=t._initReady().then(function(){var e=g[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return d(n,e,e),n}function te(e){C(e);for(var t=g[e.name],n=t.forages,r=0;r0&&(!e.db||i.name===`InvalidStateError`||i.name===`NotFoundError`))return l.resolve().then(function(){if(!e.db||i.name===`NotFoundError`&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),O(e)}).then(function(){return te(e).then(function(){N(e,t,n,r-1)})}).catch(n);n(i)}}function ne(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function re(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=g[n.name];i||(i=ne(),g[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=ee);var a=[];function o(){return l.resolve()}for(var s=0;s>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l}function Ne(e){var t=new Uint8Array(e),n=``,r;for(r=0;r>2],n+=me[(t[r]&3)<<4|t[r+1]>>4],n+=me[(t[r+1]&15)<<2|t[r+2]>>6],n+=me[t[r+2]&63];return t.length%3==2?n=n.substring(0,n.length-1)+`=`:t.length%3==1&&(n=n.substring(0,n.length-2)+`==`),n}function Pe(e,t){var n=``;if(e&&(n=je.call(e)),e&&(n===`[object ArrayBuffer]`||e.buffer&&je.call(e.buffer)===`[object ArrayBuffer]`)){var r,i=_e;e instanceof ArrayBuffer?(r=e,i+=ye):(r=e.buffer,n===`[object Int8Array]`?i+=xe:n===`[object Uint8Array]`?i+=Se:n===`[object Uint8ClampedArray]`?i+=Ce:n===`[object Int16Array]`?i+=we:n===`[object Uint16Array]`?i+=Ee:n===`[object Int32Array]`?i+=Te:n===`[object Uint32Array]`?i+=De:n===`[object Float32Array]`?i+=Oe:n===`[object Float64Array]`?i+=ke:t(Error(`Failed to get type for BinaryArray`))),t(i+Ne(r))}else if(n===`[object Blob]`){var a=new FileReader;a.onload=function(){var n=he+e.type+`~`+Ne(this.result);t(_e+be+n)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error(`Couldn't convert value into a JSON string: `,e),t(null,n)}}function Fe(e){if(e.substring(0,ve)!==_e)return JSON.parse(e);var t=e.substring(Ae),n=e.substring(ve,Ae),r;if(n===be&&ge.test(t)){var i=t.match(ge);r=i[1],t=t.substring(i[0].length)}var a=Me(t);switch(n){case ye:return a;case be:return c([a],{type:r});case xe:return new Int8Array(a);case Se:return new Uint8Array(a);case Ce:return new Uint8ClampedArray(a);case we:return new Int16Array(a);case Ee:return new Uint16Array(a);case Te:return new Int32Array(a);case De:return new Uint32Array(a);case Oe:return new Float32Array(a);case ke:return new Float64Array(a);default:throw Error(`Unkown type: `+n)}}var Ie={serialize:Pe,deserialize:Fe,stringToBuffer:Me,bufferToString:Ne};function Le(e,t,n,r){e.executeSql(`CREATE TABLE IF NOT EXISTS `+t.storeName+` (id INTEGER PRIMARY KEY, key unique, value)`,[],n,r)}function Re(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=typeof e[r]==`string`?e[r]:e[r].toString();var i=new l(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(i){Le(i,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=Ie,i}function ze(e,t,n,r,i,a){e.executeSql(n,r,i,function(e,o){o.code===o.SYNTAX_ERR?e.executeSql(`SELECT name FROM sqlite_master WHERE type='table' AND name = ?`,[t.storeName],function(e,s){s.rows.length?a(e,o):Le(e,t,function(){e.executeSql(n,r,i,a)},a)},a):a(e,o)},a)}function Be(e,t){var n=this;e=f(e);var r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ze(n,i,`SELECT * FROM `+i.storeName+` WHERE key = ? LIMIT 1`,[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&=i.serializer.deserialize(r),t(r)},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Ve(e,t){var n=this,r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ze(n,i,`SELECT * FROM `+i.storeName,[],function(n,r){for(var a=r.rows,o=a.length,s=0;s0){a(He.apply(i,[e,s,n,r-1]));return}o(t)}})})}).catch(o)});return u(a,n),a}function Ue(e,t,n){return He.apply(this,[e,t,n,1])}function We(e,t){var n=this;e=f(e);var r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ze(n,i,`DELETE FROM `+i.storeName+` WHERE key = ?`,[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Ge(e){var t=this,n=new l(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){ze(t,r,`DELETE FROM `+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function Ke(e){var t=this,n=new l(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){ze(t,r,`SELECT COUNT(key) as c FROM `+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function qe(e,t){var n=this,r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ze(n,i,`SELECT key FROM `+i.storeName+` WHERE id = ? LIMIT 1`,[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Je(e){var t=this,n=new l(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){ze(t,r,`SELECT key FROM `+r.storeName,[],function(t,n){for(var r=[],i=0;i '__WebKitDatabaseInfoTable__'`,[],function(n,r){for(var i=[],a=0;a0}function nt(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=$e(e,t._defaultConfig),tt()?(t._dbInfo=n,n.serializer=Ie,l.resolve()):l.reject()}function rt(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);r.indexOf(e)===0&&localStorage.removeItem(r)}});return u(n,e),n}function it(e,t){var n=this;e=f(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&=t.serializer.deserialize(r),r});return u(r,t),r}function at(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,a=localStorage.length,o=1,s=0;s=0;t--){var n=localStorage.key(t);n.indexOf(e)===0&&localStorage.removeItem(n)}}):l.reject(`Invalid arguments`),u(i,t),i}var ft={_driver:`localStorageWrapper`,_initStorage:nt,_support:Qe(),iterate:at,getItem:it,setItem:ut,removeItem:lt,clear:rt,length:ct,key:ot,keys:st,dropInstance:dt},pt=function(e,t){return e===t||typeof e==`number`&&typeof t==`number`&&isNaN(e)&&isNaN(t)},mt=function(e,t){for(var n=e.length,r=0;r1&&typeof MSStream>`u`};function MPe(e){return function(t){return t.test(e)}}function NPe(e){var t={userAgent:``,platform:``,maxTouchPoints:0};!e&&typeof navigator<`u`?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e==`string`?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split(`[FBAN`);r[1]!==void 0&&(n=r[0]),r=n.split(`Twitter`),r[1]!==void 0&&(n=r[0]);var i=MPe(n),a={apple:{phone:i(r6)&&!i(d6),ipod:i(i6),tablet:!i(r6)&&(i(a6)||v6(t))&&!i(d6),universal:i(o6),device:(i(r6)||i(i6)||i(a6)||i(o6)||v6(t))&&!i(d6)},amazon:{phone:i(l6),tablet:!i(l6)&&i(u6),device:i(l6)||i(u6)},android:{phone:!i(d6)&&i(l6)||!i(d6)&&i(s6),tablet:!i(d6)&&!i(l6)&&!i(s6)&&(i(u6)||i(c6)),device:!i(d6)&&(i(l6)||i(u6)||i(s6)||i(c6))||i(/\bokhttp\b/i)},windows:{phone:i(d6),tablet:i(f6),device:i(d6)||i(f6)},other:{blackberry:i(p6),blackberry10:i(m6),opera:i(h6),firefox:i(_6),chrome:i(g6),device:i(p6)||i(m6)||i(h6)||i(_6)||i(g6)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}var y6=NPe(globalThis.navigator);function PPe(){return!y6.apple.device}function FPe(e){var t=!0;if(y6.tablet||y6.phone){if(y6.apple.device){var n=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(n){var r=parseInt(n[1],10);r<11&&(t=!1)}}if(y6.android.device){var n=navigator.userAgent.match(/Android\s([0-9.]*)/);if(n){var r=parseInt(n[1],10);r<7&&(t=!1)}}}return t?e:4}var b6={ADAPTER:jPe,MIPMAP_TEXTURES:Y3.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:t6.NONE,SPRITE_MAX_TEXTURES:FPe(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,width:800,height:600,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,antialias:!1,preserveDrawingBuffer:!1},GC_MODE:Q3.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:J3.CLAMP,SCALE_MODE:q3.LINEAR,PRECISION_VERTEX:$3.HIGH,PRECISION_FRAGMENT:y6.apple.device?$3.HIGH:$3.MEDIUM,CAN_UPLOAD_SAME_BUFFER:PPe(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},IPe=s(((exports,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i{t.exports=n,t.exports.default=n;function n(e,t,n){n||=2;var i=t&&t.length,o=i?t[0]*n:e.length,s=r(e,0,o,n,!0),c=[];if(!s||s.next===s.prev)return c;var l,d,f,p,m,h,g;if(i&&(s=u(e,t,s,n)),e.length>80*n){l=f=e[0],d=p=e[1];for(var _=n;_f&&(f=m),h>p&&(p=h);g=Math.max(f-l,p-d),g=g===0?0:32767/g}return a(s,c,n,l,d,g,0),c}function r(e,t,n,r,i){var a,o;if(i===ee(e,t,n,r)>0)for(a=t;a=t;a-=r)o=A(a,e[a],e[a+1],o);return o&&S(o,o.next)&&(j(o),o=o.next),o}function i(e,t){if(!e)return e;t||=e;var n=e,r;do if(r=!1,!n.steiner&&(S(n,n.next)||x(n.prev,n,n.next)===0)){if(j(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function a(e,t,n,r,u,d,f){if(e){!f&&d&&h(e,r,u,d);for(var p=e,m,g;e.prev!==e.next;){if(m=e.prev,g=e.next,d?s(e,r,u,d):o(e)){t.push(m.i/n|0),t.push(e.i/n|0),t.push(g.i/n|0),j(e),e=g.next,p=g.next;continue}if(e=g,e===p){f?f===1?(e=c(i(e),t,n),a(e,t,n,r,u,d,2)):f===2&&l(e,t,n,r,u,d):a(i(e),t,n,r,u,d,1);break}}}}function o(e){var t=e.prev,n=e,r=e.next;if(x(t,n,r)>=0)return!1;for(var i=t.x,a=n.x,o=r.x,s=t.y,c=n.y,l=r.y,u=ia?i>o?i:o:a>o?a:o,p=s>c?s>l?s:l:c>l?c:l,m=r.next;m!==t;){if(m.x>=u&&m.x<=f&&m.y>=d&&m.y<=p&&y(i,s,a,c,o,l,m.x,m.y)&&x(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function s(e,t,n,r){var i=e.prev,a=e,o=e.next;if(x(i,a,o)>=0)return!1;for(var s=i.x,c=a.x,l=o.x,u=i.y,d=a.y,f=o.y,p=sc?s>l?s:l:c>l?c:l,g=u>d?u>f?u:f:d>f?d:f,v=_(p,m,t,n,r),b=_(h,g,t,n,r),S=e.prevZ,C=e.nextZ;S&&S.z>=v&&C&&C.z<=b;){if(S.x>=p&&S.x<=h&&S.y>=m&&S.y<=g&&S!==i&&S!==o&&y(s,u,c,d,l,f,S.x,S.y)&&x(S.prev,S,S.next)>=0||(S=S.prevZ,C.x>=p&&C.x<=h&&C.y>=m&&C.y<=g&&C!==i&&C!==o&&y(s,u,c,d,l,f,C.x,C.y)&&x(C.prev,C,C.next)>=0))return!1;C=C.nextZ}for(;S&&S.z>=v;){if(S.x>=p&&S.x<=h&&S.y>=m&&S.y<=g&&S!==i&&S!==o&&y(s,u,c,d,l,f,S.x,S.y)&&x(S.prev,S,S.next)>=0)return!1;S=S.prevZ}for(;C&&C.z<=b;){if(C.x>=p&&C.x<=h&&C.y>=m&&C.y<=g&&C!==i&&C!==o&&y(s,u,c,d,l,f,C.x,C.y)&&x(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function c(e,t,n){var r=e;do{var a=r.prev,o=r.next.next;!S(a,o)&&C(a,r,r.next,o)&&D(a,o)&&D(o,a)&&(t.push(a.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),j(r),j(r.next),r=e=o),r=r.next}while(r!==e);return i(r)}function l(e,t,n,r,o,s){var c=e;do{for(var l=c.next.next;l!==c.prev;){if(c.i!==l.i&&b(c,l)){var u=k(c,l);c=i(c,c.next),u=i(u,u.next),a(c,t,n,r,o,s,0),a(u,t,n,r,o,s,0);return}l=l.next}c=c.next}while(c!==e)}function u(e,t,n,i){var a=[],o,s,c,l,u;for(o=0,s=t.length;o=n.next.y&&n.next.y!==n.y){var s=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=r&&s>a&&(a=s,o=n.x=n.x&&n.x>=l&&r!==n.x&&y(io.x||n.x===o.x&&m(o,n)))&&(o=n,d=f)),n=n.next;while(n!==c);return o}function m(e,t){return x(e.prev,e,t.prev)<0&&x(t.next,e,e.next)<0}function h(e,t,n,r){var i=e;do i.z===0&&(i.z=_(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,g(i)}function g(e){var t,n,r,i,a,o,s,c,l=1;do{for(n=e,e=null,a=null,o=0;n;){for(o++,r=n,s=0,t=0;t0||c>0&&r;)s!==0&&(c===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,c--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,l*=2}while(o>1);return e}function _(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function v(e){var t=e,n=e;do(t.x=(e-o)*(a-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(a-s)>=(i-o)*(r-s)}function b(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!E(e,t)&&(D(e,t)&&D(t,e)&&O(e,t)&&(x(e.prev,e,t.prev)||x(e,t.prev,t))||S(e,t)&&x(e.prev,e,e.next)>0&&x(t.prev,t,t.next)>0)}function x(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function S(e,t){return e.x===t.x&&e.y===t.y}function C(e,t,n,r){var i=T(x(e,t,n)),a=T(x(e,t,r)),o=T(x(n,r,e)),s=T(x(n,r,t));return!!(i!==a&&o!==s||i===0&&w(e,n,t)||a===0&&w(e,r,t)||o===0&&w(n,e,r)||s===0&&w(n,t,r))}function w(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function T(e){return e>0?1:e<0?-1:0}function E(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&C(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function D(e,t){return x(e.prev,e,e.next)<0?x(e,t,e.next)>=0&&x(e,e.prev,t)>=0:x(e,t,e.prev)<0||x(e,e.next,t)<0}function O(e,t){var n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function k(e,t){var n=new M(e.i,e.x,e.y),r=new M(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function A(e,t,n,r){var i=new M(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function j(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function M(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}n.deviation=function(e,t,n,r){var i=t&&t.length,a=i?t[0]*n:e.length,o=Math.abs(ee(e,0,a,n));if(i)for(var s=0,c=t.length;s0&&(r+=e[i-1].length,n.holes.push(r))}return n}})),RPe=s(((exports,t)=>{(function(n){var r=typeof exports==`object`&&exports&&!exports.nodeType&&exports,i=typeof t==`object`&&t&&!t.nodeType&&t,a=typeof global==`object`&&global;(a.global===a||a.window===a||a.self===a)&&(n=a);var o,s=2147483647,c=36,l=1,u=26,d=38,f=700,p=72,m=128,h=`-`,g=/^xn--/,_=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},b=c-l,x=Math.floor,S=String.fromCharCode,C;function w(e){throw RangeError(y[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(v,`.`);var i=e.split(`.`),a=T(i,t).join(`.`);return r+a}function D(e){for(var t=[],n=0,r=e.length,i,a;n=55296&&i<=56319&&n65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|e&1023),t+=S(e),t}).join(``)}function k(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function A(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function j(e,t,n){var r=0;for(e=n?x(e/f):e>>1,e+=x(e/t);e>b*u>>1;r+=c)e=x(e/b);return x(r+(b+1)*e/(e+d))}function M(e){var t=[],n=e.length,r,i=0,a=m,o=p,d,f,g,_,v,y,b,S,C;for(d=e.lastIndexOf(h),d<0&&(d=0),f=0;f=128&&w(`not-basic`),t.push(e.charCodeAt(f));for(g=d>0?d+1:0;g=n&&w(`invalid-input`),b=k(e.charCodeAt(g++)),(b>=c||b>x((s-i)/v))&&w(`overflow`),i+=b*v,S=y<=o?l:y>=o+u?u:y-o,!(bx(s/C)&&w(`overflow`),v*=C;r=t.length+1,o=j(i-_,r,_==0),x(i/r)>s-a&&w(`overflow`),a+=x(i/r),i%=r,t.splice(i++,0,a)}return O(t)}function ee(e){var t,n,r,i,a,o,d,f,g,_,v,y=[],b,C,T,E;for(e=D(e),b=e.length,t=m,n=0,a=p,o=0;o=t&&vx((s-n)/C)&&w(`overflow`),n+=(d-t)*C,t=d,o=0;os&&w(`overflow`),v==t){for(f=n,g=c;_=g<=a?l:g>=a+u?u:g-a,!(f<_);g+=c)E=f-_,T=c-_,y.push(S(A(_+E%T,0))),f=x(E/T);y.push(S(A(f,0))),a=j(n,C,r==i),n=0,++r}++n,++t}return y.join(``)}function te(e){return E(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}function N(e){return E(e,function(e){return _.test(e)?`xn--`+ee(e):e})}if(o={version:`1.4.1`,ucs2:{decode:D,encode:O},decode:M,encode:ee,toASCII:N,toUnicode:te},typeof define==`function`&&typeof define.amd==`object`&&define.amd)define(`punycode`,function(){return o});else if(r&&i)if(t.exports==r)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(r[C]=o[C]);else n.punycode=o})(exports)})),zPe=s(((exports,t)=>{Object.defineProperty(exports,`__esModule`,{value:!0});function n(){let e,t,n=n=>{if(n&&(typeof n==`object`||typeof n==`function`)){if(e)return e.get(n)}else if(t)return t.get(n)},r=(n,r)=>{n&&(typeof n==`object`||typeof n==`function`)?(e||=new WeakMap,e.set(n,r)):(t||=new Map,t.set(n,r))},i=n=>{if(n&&(typeof n==`object`||typeof n==`function`)){if(e)return e.has(n)}else if(t)return t.has(n);return!1},a=e=>{if(!i(e))throw TypeError(`Side channel does not contain the given key`)};return{get:n,set:r,has:i,assert:a}}exports.default=n,(typeof exports.default==`object`&&exports.default!==null||typeof exports.default==`function`)&&(Object.assign(exports.default,exports),t.exports=exports.default)})),x6=s(((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),S6=s(((exports,t)=>{var n=x6(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a=d?s.slice(l,l+d):s,f=[],p=0;p=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r{var n=zPe(),r=S6(),i=x6(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var j=C?i:g(i,f.encoder,w,`key`,x);return[S(j)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var M=[];if(E===void 0)return M;var ee;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),ee=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))ee=_;else{var te=Object.keys(E);ee=v?te.sort(v):te}var N=h?String(i).replace(/\./g,`%2E`):String(i),ne=o&&s(E)&&E.length===1?N+`[]`:N;if(c&&s(E)&&E.length===0)return ne+`[]`;for(var re=0;re0?b+y:``}})),VPe=s(((exports,t)=>{var n=S6(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f{var n=BPe(),r=VPe(),i=x6();t.exports={formats:i,parse:r,stringify:n}})),UPe=s((exports=>{var t=RPe();function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var r=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,o=[`<`,`>`,`"`,"`",` `,`\r`,` -`,` `],s=[`{`,`}`,`|`,`\\`,`^`,"`"].concat(o),c=[`'`].concat(s),l=[`%`,`/`,`?`,`;`,`#`].concat(c),u=[`/`,`?`,`#`],d=255,f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},h={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=HPe();function v(e,t,r){if(e&&typeof e==`object`&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}n.prototype.parse=function(e,n,i){if(typeof e!=`string`)throw TypeError(`Parameter 'url' must be a string, not `+typeof e);var o=e.indexOf(`?`),s=o!==-1&&o127?te+=`x`:te+=ee[N];if(!te.match(f)){var re=j.slice(0,E),ie=j.slice(E+1),ae=ee.match(p);ae&&(re.push(ae[1]),ie.unshift(ae[2])),ie.length&&(b=`/`+ie.join(`.`)+b),this.hostname=re.join(`.`);break}}}this.hostname.length>d?this.hostname=``:this.hostname=this.hostname.toLowerCase(),A||(this.hostname=t.toASCII(this.hostname));var oe=this.port?`:`+this.port:``,se=this.hostname||``;this.host=se+oe,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),b[0]!==`/`&&(b=`/`+b))}if(!m[C])for(var E=0,M=c.length;E0?r.host.split(`@`):!1;w&&(r.auth=w.shift(),r.hostname=w.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:``)+(r.search?r.search:``)),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path=`/`+r.search:r.path=null,r.href=r.format(),r;for(var T=S.slice(-1)[0],E=(r.host||e.host||S.length>1)&&(T===`.`||T===`..`)||T===``,D=0,O=S.length;O>=0;O--)T=S[O],T===`.`?S.splice(O,1):T===`..`?(S.splice(O,1),D++):D&&(S.splice(O,1),D--);if(!b&&!x)for(;D--;)S.unshift(`..`);b&&S[0]!==``&&(!S[0]||S[0].charAt(0)!==`/`)&&S.unshift(``),E&&S.join(`/`).substr(-1)!==`/`&&S.push(``);var k=S[0]===``||S[0]&&S[0].charAt(0)===`/`;if(C){r.hostname=k?``:S.length?S.shift():``,r.host=r.hostname;var w=r.host&&r.host.indexOf(`@`)>0?r.host.split(`@`):!1;w&&(r.auth=w.shift(),r.hostname=w.shift(),r.host=r.hostname)}return b||=r.host&&S.length,b&&!k&&S.unshift(``),S.length>0?r.pathname=S.join(`/`):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:``)+(r.search?r.search:``)),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},exports.parse=v,exports.resolve=b,exports.format=y})),C6=u(IPe(),1);LPe();var w6=u(UPe(),1),T6={parse:w6.parse,format:w6.format,resolve:w6.resolve};b6.RETINA_PREFIX=/@([0-9\.]+)x/,b6.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var E6=!1,D6=`6.5.10`;function WPe(e){var t;if(!E6){if(b6.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf(`chrome`)>-1){var n=[` +(function(n){if(typeof exports==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r;r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this,r.localforage=n()}})(function(){return(function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof p==`function`&&p;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof p==`function`&&p,o=0;o`u`&&e(3);var l=Promise;function u(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function d(e,t,n){typeof t==`function`&&e.then(t),typeof n==`function`&&e.catch(n)}function f(e){return typeof e!=`string`&&(console.warn(e+` used as a key, but it is not a string.`),e=String(e)),e}function p(){if(arguments.length&&typeof arguments[arguments.length-1]==`function`)return arguments[arguments.length-1]}var m=`local-forage-detect-blob-support`,h=void 0,g={},_=Object.prototype.toString,v=`readonly`,y=`readwrite`;function b(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i=43)}}).catch(function(){return!1})}function S(e){return typeof h==`boolean`?l.resolve(h):x(e).then(function(e){return h=e,h})}function C(e){var t=g[e.name],n={};n.promise=new l(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function w(e){var t=g[e.name],n=t.deferredOperations.pop();if(n)return n.resolve(),n.promise}function T(e,t){var n=g[e.name],r=n.deferredOperations.pop();if(r)return r.reject(t),r.promise}function E(e,t){return new l(function(n,r){if(g[e.name]=g[e.name]||ne(),e.db)if(t)C(e),e.db.close();else return n(e.db);var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(m)}catch(n){if(n.name===`ConstraintError`)console.warn(`The database "`+e.name+`" has been upgraded from version `+t.oldVersion+` to version `+t.newVersion+`, but the storage "`+e.storeName+`" already exists.`);else throw n}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),w(e)}})}function D(e){return E(e,!1)}function O(e){return E(e,!0)}function k(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==t&&console.warn(`The database "`+e.name+`" can't be downgraded from version `+e.db.version+` to version `+e.version+`.`),e.version=e.db.version),i||n){if(n){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function A(e){return new l(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||``);t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)})}function j(e){var t=b(atob(e.data));return c([t],{type:e.type})}function M(e){return e&&e.__local_forage_encoded_blob}function ee(e){var t=this,n=t._initReady().then(function(){var e=g[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return d(n,e,e),n}function te(e){C(e);for(var t=g[e.name],n=t.forages,r=0;r0&&(!e.db||i.name===`InvalidStateError`||i.name===`NotFoundError`))return l.resolve().then(function(){if(!e.db||i.name===`NotFoundError`&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),O(e)}).then(function(){return te(e).then(function(){N(e,t,n,r-1)})}).catch(n);n(i)}}function ne(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function re(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=g[n.name];i||(i=ne(),g[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=ee);var a=[];function o(){return l.resolve()}for(var s=0;s>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l}function Ne(e){var t=new Uint8Array(e),n=``,r;for(r=0;r>2],n+=me[(t[r]&3)<<4|t[r+1]>>4],n+=me[(t[r+1]&15)<<2|t[r+2]>>6],n+=me[t[r+2]&63];return t.length%3==2?n=n.substring(0,n.length-1)+`=`:t.length%3==1&&(n=n.substring(0,n.length-2)+`==`),n}function Pe(e,t){var n=``;if(e&&(n=je.call(e)),e&&(n===`[object ArrayBuffer]`||e.buffer&&je.call(e.buffer)===`[object ArrayBuffer]`)){var r,i=_e;e instanceof ArrayBuffer?(r=e,i+=ye):(r=e.buffer,n===`[object Int8Array]`?i+=xe:n===`[object Uint8Array]`?i+=Se:n===`[object Uint8ClampedArray]`?i+=Ce:n===`[object Int16Array]`?i+=we:n===`[object Uint16Array]`?i+=Ee:n===`[object Int32Array]`?i+=Te:n===`[object Uint32Array]`?i+=De:n===`[object Float32Array]`?i+=Oe:n===`[object Float64Array]`?i+=ke:t(Error(`Failed to get type for BinaryArray`))),t(i+Ne(r))}else if(n===`[object Blob]`){var a=new FileReader;a.onload=function(){var n=he+e.type+`~`+Ne(this.result);t(_e+be+n)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error(`Couldn't convert value into a JSON string: `,e),t(null,n)}}function Fe(e){if(e.substring(0,ve)!==_e)return JSON.parse(e);var t=e.substring(Ae),n=e.substring(ve,Ae),r;if(n===be&&ge.test(t)){var i=t.match(ge);r=i[1],t=t.substring(i[0].length)}var a=Me(t);switch(n){case ye:return a;case be:return c([a],{type:r});case xe:return new Int8Array(a);case Se:return new Uint8Array(a);case Ce:return new Uint8ClampedArray(a);case we:return new Int16Array(a);case Ee:return new Uint16Array(a);case Te:return new Int32Array(a);case De:return new Uint32Array(a);case Oe:return new Float32Array(a);case ke:return new Float64Array(a);default:throw Error(`Unkown type: `+n)}}var Ie={serialize:Pe,deserialize:Fe,stringToBuffer:Me,bufferToString:Ne};function Le(e,t,n,r){e.executeSql(`CREATE TABLE IF NOT EXISTS `+t.storeName+` (id INTEGER PRIMARY KEY, key unique, value)`,[],n,r)}function Re(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=typeof e[r]==`string`?e[r]:e[r].toString();var i=new l(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(i){Le(i,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=Ie,i}function ze(e,t,n,r,i,a){e.executeSql(n,r,i,function(e,o){o.code===o.SYNTAX_ERR?e.executeSql(`SELECT name FROM sqlite_master WHERE type='table' AND name = ?`,[t.storeName],function(e,s){s.rows.length?a(e,o):Le(e,t,function(){e.executeSql(n,r,i,a)},a)},a):a(e,o)},a)}function Be(e,t){var n=this;e=f(e);var r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ze(n,i,`SELECT * FROM `+i.storeName+` WHERE key = ? LIMIT 1`,[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&=i.serializer.deserialize(r),t(r)},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Ve(e,t){var n=this,r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ze(n,i,`SELECT * FROM `+i.storeName,[],function(n,r){for(var a=r.rows,o=a.length,s=0;s0){a(He.apply(i,[e,s,n,r-1]));return}o(t)}})})}).catch(o)});return u(a,n),a}function Ue(e,t,n){return He.apply(this,[e,t,n,1])}function We(e,t){var n=this;e=f(e);var r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ze(n,i,`DELETE FROM `+i.storeName+` WHERE key = ?`,[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Ge(e){var t=this,n=new l(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){ze(t,r,`DELETE FROM `+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function Ke(e){var t=this,n=new l(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){ze(t,r,`SELECT COUNT(key) as c FROM `+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function qe(e,t){var n=this,r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){ze(n,i,`SELECT key FROM `+i.storeName+` WHERE id = ? LIMIT 1`,[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Je(e){var t=this,n=new l(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){ze(t,r,`SELECT key FROM `+r.storeName,[],function(t,n){for(var r=[],i=0;i '__WebKitDatabaseInfoTable__'`,[],function(n,r){for(var i=[],a=0;a0}function nt(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=$e(e,t._defaultConfig),tt()?(t._dbInfo=n,n.serializer=Ie,l.resolve()):l.reject()}function rt(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);r.indexOf(e)===0&&localStorage.removeItem(r)}});return u(n,e),n}function it(e,t){var n=this;e=f(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&=t.serializer.deserialize(r),r});return u(r,t),r}function at(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,a=localStorage.length,o=1,s=0;s=0;t--){var n=localStorage.key(t);n.indexOf(e)===0&&localStorage.removeItem(n)}}):l.reject(`Invalid arguments`),u(i,t),i}var ft={_driver:`localStorageWrapper`,_initStorage:nt,_support:Qe(),iterate:at,getItem:it,setItem:ut,removeItem:lt,clear:rt,length:ct,key:ot,keys:st,dropInstance:dt},pt=function(e,t){return e===t||typeof e==`number`&&typeof t==`number`&&isNaN(e)&&isNaN(t)},mt=function(e,t){for(var n=e.length,r=0;r1&&typeof MSStream>`u`};function IFe(e){return function(t){return t.test(e)}}function LFe(e){var t={userAgent:``,platform:``,maxTouchPoints:0};!e&&typeof navigator<`u`?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e==`string`?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split(`[FBAN`);r[1]!==void 0&&(n=r[0]),r=n.split(`Twitter`),r[1]!==void 0&&(n=r[0]);var i=IFe(n),a={apple:{phone:i(r6)&&!i(d6),ipod:i(i6),tablet:!i(r6)&&(i(a6)||v6(t))&&!i(d6),universal:i(o6),device:(i(r6)||i(i6)||i(a6)||i(o6)||v6(t))&&!i(d6)},amazon:{phone:i(l6),tablet:!i(l6)&&i(u6),device:i(l6)||i(u6)},android:{phone:!i(d6)&&i(l6)||!i(d6)&&i(s6),tablet:!i(d6)&&!i(l6)&&!i(s6)&&(i(u6)||i(c6)),device:!i(d6)&&(i(l6)||i(u6)||i(s6)||i(c6))||i(/\bokhttp\b/i)},windows:{phone:i(d6),tablet:i(f6),device:i(d6)||i(f6)},other:{blackberry:i(p6),blackberry10:i(m6),opera:i(h6),firefox:i(_6),chrome:i(g6),device:i(p6)||i(m6)||i(h6)||i(_6)||i(g6)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}var y6=LFe(globalThis.navigator);function RFe(){return!y6.apple.device}function zFe(e){var t=!0;if(y6.tablet||y6.phone){if(y6.apple.device){var n=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(n){var r=parseInt(n[1],10);r<11&&(t=!1)}}if(y6.android.device){var n=navigator.userAgent.match(/Android\s([0-9.]*)/);if(n){var r=parseInt(n[1],10);r<7&&(t=!1)}}}return t?e:4}var b6={ADAPTER:FFe,MIPMAP_TEXTURES:Y3.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:t6.NONE,SPRITE_MAX_TEXTURES:zFe(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,width:800,height:600,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,antialias:!1,preserveDrawingBuffer:!1},GC_MODE:Q3.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:J3.CLAMP,SCALE_MODE:q3.LINEAR,PRECISION_VERTEX:$3.HIGH,PRECISION_FRAGMENT:y6.apple.device?$3.HIGH:$3.MEDIUM,CAN_UPLOAD_SAME_BUFFER:RFe(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},BFe=s(((exports,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i{t.exports=n,t.exports.default=n;function n(e,t,n){n||=2;var i=t&&t.length,o=i?t[0]*n:e.length,s=r(e,0,o,n,!0),c=[];if(!s||s.next===s.prev)return c;var l,d,f,p,m,h,g;if(i&&(s=u(e,t,s,n)),e.length>80*n){l=f=e[0],d=p=e[1];for(var _=n;_f&&(f=m),h>p&&(p=h);g=Math.max(f-l,p-d),g=g===0?0:32767/g}return a(s,c,n,l,d,g,0),c}function r(e,t,n,r,i){var a,o;if(i===ee(e,t,n,r)>0)for(a=t;a=t;a-=r)o=A(a,e[a],e[a+1],o);return o&&S(o,o.next)&&(j(o),o=o.next),o}function i(e,t){if(!e)return e;t||=e;var n=e,r;do if(r=!1,!n.steiner&&(S(n,n.next)||x(n.prev,n,n.next)===0)){if(j(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function a(e,t,n,r,u,d,f){if(e){!f&&d&&h(e,r,u,d);for(var p=e,m,g;e.prev!==e.next;){if(m=e.prev,g=e.next,d?s(e,r,u,d):o(e)){t.push(m.i/n|0),t.push(e.i/n|0),t.push(g.i/n|0),j(e),e=g.next,p=g.next;continue}if(e=g,e===p){f?f===1?(e=c(i(e),t,n),a(e,t,n,r,u,d,2)):f===2&&l(e,t,n,r,u,d):a(i(e),t,n,r,u,d,1);break}}}}function o(e){var t=e.prev,n=e,r=e.next;if(x(t,n,r)>=0)return!1;for(var i=t.x,a=n.x,o=r.x,s=t.y,c=n.y,l=r.y,u=ia?i>o?i:o:a>o?a:o,p=s>c?s>l?s:l:c>l?c:l,m=r.next;m!==t;){if(m.x>=u&&m.x<=f&&m.y>=d&&m.y<=p&&y(i,s,a,c,o,l,m.x,m.y)&&x(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function s(e,t,n,r){var i=e.prev,a=e,o=e.next;if(x(i,a,o)>=0)return!1;for(var s=i.x,c=a.x,l=o.x,u=i.y,d=a.y,f=o.y,p=sc?s>l?s:l:c>l?c:l,g=u>d?u>f?u:f:d>f?d:f,v=_(p,m,t,n,r),b=_(h,g,t,n,r),S=e.prevZ,C=e.nextZ;S&&S.z>=v&&C&&C.z<=b;){if(S.x>=p&&S.x<=h&&S.y>=m&&S.y<=g&&S!==i&&S!==o&&y(s,u,c,d,l,f,S.x,S.y)&&x(S.prev,S,S.next)>=0||(S=S.prevZ,C.x>=p&&C.x<=h&&C.y>=m&&C.y<=g&&C!==i&&C!==o&&y(s,u,c,d,l,f,C.x,C.y)&&x(C.prev,C,C.next)>=0))return!1;C=C.nextZ}for(;S&&S.z>=v;){if(S.x>=p&&S.x<=h&&S.y>=m&&S.y<=g&&S!==i&&S!==o&&y(s,u,c,d,l,f,S.x,S.y)&&x(S.prev,S,S.next)>=0)return!1;S=S.prevZ}for(;C&&C.z<=b;){if(C.x>=p&&C.x<=h&&C.y>=m&&C.y<=g&&C!==i&&C!==o&&y(s,u,c,d,l,f,C.x,C.y)&&x(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function c(e,t,n){var r=e;do{var a=r.prev,o=r.next.next;!S(a,o)&&C(a,r,r.next,o)&&D(a,o)&&D(o,a)&&(t.push(a.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),j(r),j(r.next),r=e=o),r=r.next}while(r!==e);return i(r)}function l(e,t,n,r,o,s){var c=e;do{for(var l=c.next.next;l!==c.prev;){if(c.i!==l.i&&b(c,l)){var u=k(c,l);c=i(c,c.next),u=i(u,u.next),a(c,t,n,r,o,s,0),a(u,t,n,r,o,s,0);return}l=l.next}c=c.next}while(c!==e)}function u(e,t,n,i){var a=[],o,s,c,l,u;for(o=0,s=t.length;o=n.next.y&&n.next.y!==n.y){var s=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=r&&s>a&&(a=s,o=n.x=n.x&&n.x>=l&&r!==n.x&&y(io.x||n.x===o.x&&m(o,n)))&&(o=n,d=f)),n=n.next;while(n!==c);return o}function m(e,t){return x(e.prev,e,t.prev)<0&&x(t.next,e,e.next)<0}function h(e,t,n,r){var i=e;do i.z===0&&(i.z=_(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,g(i)}function g(e){var t,n,r,i,a,o,s,c,l=1;do{for(n=e,e=null,a=null,o=0;n;){for(o++,r=n,s=0,t=0;t0||c>0&&r;)s!==0&&(c===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,c--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,l*=2}while(o>1);return e}function _(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function v(e){var t=e,n=e;do(t.x=(e-o)*(a-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(a-s)>=(i-o)*(r-s)}function b(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!E(e,t)&&(D(e,t)&&D(t,e)&&O(e,t)&&(x(e.prev,e,t.prev)||x(e,t.prev,t))||S(e,t)&&x(e.prev,e,e.next)>0&&x(t.prev,t,t.next)>0)}function x(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function S(e,t){return e.x===t.x&&e.y===t.y}function C(e,t,n,r){var i=T(x(e,t,n)),a=T(x(e,t,r)),o=T(x(n,r,e)),s=T(x(n,r,t));return!!(i!==a&&o!==s||i===0&&w(e,n,t)||a===0&&w(e,r,t)||o===0&&w(n,e,r)||s===0&&w(n,t,r))}function w(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function T(e){return e>0?1:e<0?-1:0}function E(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&C(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function D(e,t){return x(e.prev,e,e.next)<0?x(e,t,e.next)>=0&&x(e,e.prev,t)>=0:x(e,t,e.prev)<0||x(e,e.next,t)<0}function O(e,t){var n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function k(e,t){var n=new M(e.i,e.x,e.y),r=new M(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function A(e,t,n,r){var i=new M(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function j(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function M(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}n.deviation=function(e,t,n,r){var i=t&&t.length,a=i?t[0]*n:e.length,o=Math.abs(ee(e,0,a,n));if(i)for(var s=0,c=t.length;s0&&(r+=e[i-1].length,n.holes.push(r))}return n}})),HFe=s(((exports,t)=>{(function(n){var r=typeof exports==`object`&&exports&&!exports.nodeType&&exports,i=typeof t==`object`&&t&&!t.nodeType&&t,a=typeof global==`object`&&global;(a.global===a||a.window===a||a.self===a)&&(n=a);var o,s=2147483647,c=36,l=1,u=26,d=38,f=700,p=72,m=128,h=`-`,g=/^xn--/,_=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},b=c-l,x=Math.floor,S=String.fromCharCode,C;function w(e){throw RangeError(y[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(v,`.`);var i=e.split(`.`),a=T(i,t).join(`.`);return r+a}function D(e){for(var t=[],n=0,r=e.length,i,a;n=55296&&i<=56319&&n65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|e&1023),t+=S(e),t}).join(``)}function k(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function A(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function j(e,t,n){var r=0;for(e=n?x(e/f):e>>1,e+=x(e/t);e>b*u>>1;r+=c)e=x(e/b);return x(r+(b+1)*e/(e+d))}function M(e){var t=[],n=e.length,r,i=0,a=m,o=p,d,f,g,_,v,y,b,S,C;for(d=e.lastIndexOf(h),d<0&&(d=0),f=0;f=128&&w(`not-basic`),t.push(e.charCodeAt(f));for(g=d>0?d+1:0;g=n&&w(`invalid-input`),b=k(e.charCodeAt(g++)),(b>=c||b>x((s-i)/v))&&w(`overflow`),i+=b*v,S=y<=o?l:y>=o+u?u:y-o,!(bx(s/C)&&w(`overflow`),v*=C;r=t.length+1,o=j(i-_,r,_==0),x(i/r)>s-a&&w(`overflow`),a+=x(i/r),i%=r,t.splice(i++,0,a)}return O(t)}function ee(e){var t,n,r,i,a,o,d,f,g,_,v,y=[],b,C,T,E;for(e=D(e),b=e.length,t=m,n=0,a=p,o=0;o=t&&vx((s-n)/C)&&w(`overflow`),n+=(d-t)*C,t=d,o=0;os&&w(`overflow`),v==t){for(f=n,g=c;_=g<=a?l:g>=a+u?u:g-a,!(f<_);g+=c)E=f-_,T=c-_,y.push(S(A(_+E%T,0))),f=x(E/T);y.push(S(A(f,0))),a=j(n,C,r==i),n=0,++r}++n,++t}return y.join(``)}function te(e){return E(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}function N(e){return E(e,function(e){return _.test(e)?`xn--`+ee(e):e})}if(o={version:`1.4.1`,ucs2:{decode:D,encode:O},decode:M,encode:ee,toASCII:N,toUnicode:te},typeof define==`function`&&typeof define.amd==`object`&&define.amd)define(`punycode`,function(){return o});else if(r&&i)if(t.exports==r)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(r[C]=o[C]);else n.punycode=o})(exports)})),UFe=s(((exports,t)=>{Object.defineProperty(exports,`__esModule`,{value:!0});function n(){let e,t,n=n=>{if(n&&(typeof n==`object`||typeof n==`function`)){if(e)return e.get(n)}else if(t)return t.get(n)},r=(n,r)=>{n&&(typeof n==`object`||typeof n==`function`)?(e||=new WeakMap,e.set(n,r)):(t||=new Map,t.set(n,r))},i=n=>{if(n&&(typeof n==`object`||typeof n==`function`)){if(e)return e.has(n)}else if(t)return t.has(n);return!1},a=e=>{if(!i(e))throw TypeError(`Side channel does not contain the given key`)};return{get:n,set:r,has:i,assert:a}}exports.default=n,(typeof exports.default==`object`&&exports.default!==null||typeof exports.default==`function`)&&(Object.assign(exports.default,exports),t.exports=exports.default)})),x6=s(((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),S6=s(((exports,t)=>{var n=x6(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a=d?s.slice(l,l+d):s,f=[],p=0;p=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r{var n=UFe(),r=S6(),i=x6(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var j=C?i:g(i,f.encoder,w,`key`,x);return[S(j)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var M=[];if(E===void 0)return M;var ee;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),ee=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))ee=_;else{var te=Object.keys(E);ee=v?te.sort(v):te}var N=h?String(i).replace(/\./g,`%2E`):String(i),ne=o&&s(E)&&E.length===1?N+`[]`:N;if(c&&s(E)&&E.length===0)return ne+`[]`;for(var re=0;re0?b+y:``}})),GFe=s(((exports,t)=>{var n=S6(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f{var n=WFe(),r=GFe(),i=x6();t.exports={formats:i,parse:r,stringify:n}})),qFe=s((exports=>{var t=HFe();function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var r=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,o=[`<`,`>`,`"`,"`",` `,`\r`,` +`,` `],s=[`{`,`}`,`|`,`\\`,`^`,"`"].concat(o),c=[`'`].concat(s),l=[`%`,`/`,`?`,`;`,`#`].concat(c),u=[`/`,`?`,`#`],d=255,f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},h={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=KFe();function v(e,t,r){if(e&&typeof e==`object`&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}n.prototype.parse=function(e,n,i){if(typeof e!=`string`)throw TypeError(`Parameter 'url' must be a string, not `+typeof e);var o=e.indexOf(`?`),s=o!==-1&&o127?te+=`x`:te+=ee[N];if(!te.match(f)){var re=j.slice(0,E),ie=j.slice(E+1),ae=ee.match(p);ae&&(re.push(ae[1]),ie.unshift(ae[2])),ie.length&&(b=`/`+ie.join(`.`)+b),this.hostname=re.join(`.`);break}}}this.hostname.length>d?this.hostname=``:this.hostname=this.hostname.toLowerCase(),A||(this.hostname=t.toASCII(this.hostname));var oe=this.port?`:`+this.port:``,se=this.hostname||``;this.host=se+oe,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),b[0]!==`/`&&(b=`/`+b))}if(!m[C])for(var E=0,M=c.length;E0?r.host.split(`@`):!1;w&&(r.auth=w.shift(),r.hostname=w.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:``)+(r.search?r.search:``)),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path=`/`+r.search:r.path=null,r.href=r.format(),r;for(var T=S.slice(-1)[0],E=(r.host||e.host||S.length>1)&&(T===`.`||T===`..`)||T===``,D=0,O=S.length;O>=0;O--)T=S[O],T===`.`?S.splice(O,1):T===`..`?(S.splice(O,1),D++):D&&(S.splice(O,1),D--);if(!b&&!x)for(;D--;)S.unshift(`..`);b&&S[0]!==``&&(!S[0]||S[0].charAt(0)!==`/`)&&S.unshift(``),E&&S.join(`/`).substr(-1)!==`/`&&S.push(``);var k=S[0]===``||S[0]&&S[0].charAt(0)===`/`;if(C){r.hostname=k?``:S.length?S.shift():``,r.host=r.hostname;var w=r.host&&r.host.indexOf(`@`)>0?r.host.split(`@`):!1;w&&(r.auth=w.shift(),r.hostname=w.shift(),r.host=r.hostname)}return b||=r.host&&S.length,b&&!k&&S.unshift(``),S.length>0?r.pathname=S.join(`/`):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:``)+(r.search?r.search:``)),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},exports.parse=v,exports.resolve=b,exports.format=y})),C6=u(BFe(),1);VFe();var w6=u(qFe(),1),T6={parse:w6.parse,format:w6.format,resolve:w6.resolve};b6.RETINA_PREFIX=/@([0-9\.]+)x/,b6.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var E6=!1,D6=`6.5.10`;function JFe(e){var t;if(!E6){if(b6.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf(`chrome`)>-1){var n=[` %c %c %c PixiJS `+D6+` - ✰ `+e+` ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ -`,`background: #ff66a5; padding:5px 0;`,`background: #ff66a5; padding:5px 0;`,`color: #ff66a5; background: #030307; padding:5px 0;`,`background: #ff66a5; padding:5px 0;`,`background: #ffc3dc; padding:5px 0;`,`background: #ff66a5; padding:5px 0;`,`color: #ff2424; background: #fff; padding:5px 0;`,`color: #ff2424; background: #fff; padding:5px 0;`,`color: #ff2424; background: #fff; padding:5px 0;`];(t=globalThis.console).log.apply(t,n)}else globalThis.console&&globalThis.console.log(`PixiJS `+D6+` - `+e+` - http://www.pixijs.com/`);E6=!0}}var O6;function GPe(){return O6===void 0&&(O6=(function(){var e={stencil:!0,failIfMajorPerformanceCaveat:b6.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!b6.ADAPTER.getWebGLRenderingContext())return!1;var t=b6.ADAPTER.createCanvas(),n=t.getContext(`webgl`,e)||t.getContext(`experimental-webgl`,e),r=!!(n&&n.getContextAttributes().stencil);if(n){var i=n.getExtension(`WEBGL_lose_context`);i&&i.loseContext()}return n=null,r}catch{return!1}})()),O6}function k6(e,t){return t===void 0&&(t=[]),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,t}function KPe(e){var t=e.toString(16);return t=`000000`.substring(0,6-t.length)+t,`#`+t}function qPe(e){return(e[0]*255<<16)+(e[1]*255<<8)+(e[2]*255|0)}function JPe(){for(var e=[],t=[],n=0;n<32;n++)e[n]=n,t[n]=n;e[V3.NORMAL_NPM]=V3.NORMAL,e[V3.ADD_NPM]=V3.ADD,e[V3.SCREEN_NPM]=V3.SCREEN,t[V3.NORMAL]=V3.NORMAL_NPM,t[V3.ADD]=V3.ADD_NPM,t[V3.SCREEN]=V3.SCREEN_NPM;var r=[];return r.push(t),r.push(e),r}var YPe=JPe();function XPe(e,t){if(t===1)return(t*255<<24)+e;if(t===0)return 0;var n=e>>16&255,r=e>>8&255,i=e&255;return n=n*t+.5|0,r=r*t+.5|0,i=i*t+.5|0,(t*255<<24)+(n<<16)+(r<<8)+i}function A6(e){if(e.BYTES_PER_ELEMENT===4)return e instanceof Float32Array?`Float32Array`:e instanceof Uint32Array?`Uint32Array`:`Int32Array`;if(e.BYTES_PER_ELEMENT===2){if(e instanceof Uint16Array)return`Uint16Array`}else if(e.BYTES_PER_ELEMENT===1&&e instanceof Uint8Array)return`Uint8Array`;return null}function j6(e){return e+=e===0?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function M6(e){return!(e&e-1)&&!!e}function N6(e){var t=(e>65535?1:0)<<4;e>>>=t;var n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function P6(e,t,n){var r=e.length,i;if(!(t>=r||n===0)){n=t+n>r?r-t:n;var a=r-n;for(i=t;i>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,t}function XFe(e){var t=e.toString(16);return t=`000000`.substring(0,6-t.length)+t,`#`+t}function ZFe(e){return(e[0]*255<<16)+(e[1]*255<<8)+(e[2]*255|0)}function QFe(){for(var e=[],t=[],n=0;n<32;n++)e[n]=n,t[n]=n;e[V3.NORMAL_NPM]=V3.NORMAL,e[V3.ADD_NPM]=V3.ADD,e[V3.SCREEN_NPM]=V3.SCREEN,t[V3.NORMAL]=V3.NORMAL_NPM,t[V3.ADD]=V3.ADD_NPM,t[V3.SCREEN]=V3.SCREEN_NPM;var r=[];return r.push(t),r.push(e),r}var $Fe=QFe();function eIe(e,t){if(t===1)return(t*255<<24)+e;if(t===0)return 0;var n=e>>16&255,r=e>>8&255,i=e&255;return n=n*t+.5|0,r=r*t+.5|0,i=i*t+.5|0,(t*255<<24)+(n<<16)+(r<<8)+i}function A6(e){if(e.BYTES_PER_ELEMENT===4)return e instanceof Float32Array?`Float32Array`:e instanceof Uint32Array?`Uint32Array`:`Int32Array`;if(e.BYTES_PER_ELEMENT===2){if(e instanceof Uint16Array)return`Uint16Array`}else if(e.BYTES_PER_ELEMENT===1&&e instanceof Uint8Array)return`Uint8Array`;return null}function j6(e){return e+=e===0?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function M6(e){return!(e&e-1)&&!!e}function N6(e){var t=(e>65535?1:0)<<4;e>>>=t;var n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function P6(e,t,n){var r=e.length,i;if(!(t>=r||n===0)){n=t+n>r?r-t:n;var a=r-n;for(i=t;i8)throw Error(`max arguments reached`);var c=this,l=c.name,u=c.items;this._aliasCount++;for(var d=0,f=u.length;d0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},e.prototype.add=function(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this},e.prototype.remove=function(e){var t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this},e.prototype.contains=function(e){return this.items.indexOf(e)!==-1},e.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},e.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(e.prototype,`empty`,{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`name`,{get:function(){return this._name},enumerable:!1,configurable:!0}),e}();Object.defineProperties(q6.prototype,{dispatch:{value:q6.prototype.emit},run:{value:q6.prototype.emit}}),b6.TARGET_FPMS=.06;var J6;(function(e){e[e.INTERACTION=50]=`INTERACTION`,e[e.HIGH=25]=`HIGH`,e[e.NORMAL=0]=`NORMAL`,e[e.LOW=-25]=`LOW`,e[e.UTILITY=-50]=`UTILITY`})(J6||={});var Y6=function(){function e(e,t,n,r){t===void 0&&(t=null),n===void 0&&(n=0),r===void 0&&(r=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=e,this.context=t,this.priority=n,this.once=r}return e.prototype.match=function(e,t){return t===void 0&&(t=null),this.fn===e&&this.context===t},e.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},e.prototype.connect=function(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this},e.prototype.destroy=function(e){e===void 0&&(e=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var t=this.next;return this.next=e?null:t,this.previous=null,t},e}(),X6=function(){function e(){var e=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Y6(null,null,1/0),this.deltaMS=1/b6.TARGET_FPMS,this.elapsedMS=1/b6.TARGET_FPMS,this._tick=function(t){e._requestId=null,e.started&&(e.update(t),e.started&&e._requestId===null&&e._head.next&&(e._requestId=requestAnimationFrame(e._tick)))}}return e.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(e,t,n){return n===void 0&&(n=J6.NORMAL),this._addListener(new Y6(e,t,n))},e.prototype.addOnce=function(e,t,n){return n===void 0&&(n=J6.NORMAL),this._addListener(new Y6(e,t,n,!0))},e.prototype._addListener=function(e){var t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this},e.prototype.remove=function(e,t){for(var n=this._head.next;n;)n=n.match(e,t)?n.destroy():n.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(e.prototype,`count`,{get:function(){if(!this._head)return 0;for(var e=0,t=this._head;t=t.next;)e++;return e},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){if(!this._protected){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}},e.prototype.update=function(e){e===void 0&&(e=performance.now());var t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){var n=e-this._lastFrame|0;if(n=this.x&&e=this.y&&te.right?e.right:this.right;if(r<=n)return!1;var i=this.ye.bottom?e.bottom:this.bottom;return a>i}var o=this.left,s=this.right,c=this.top,l=this.bottom;if(s<=o||l<=c)return!1;var u=t8[0].set(e.left,e.top),d=t8[1].set(e.left,e.bottom),f=t8[2].set(e.right,e.top),p=t8[3].set(e.right,e.bottom);if(f.x<=u.x||d.y<=u.y)return!1;var m=Math.sign(t.a*t.d-t.b*t.c);if(m===0||(t.apply(u,u),t.apply(d,d),t.apply(f,f),t.apply(p,p),Math.max(u.x,d.x,f.x,p.x)<=o||Math.min(u.x,d.x,f.x,p.x)>=s||Math.max(u.y,d.y,f.y,p.y)<=c||Math.min(u.y,d.y,f.y,p.y)>=l))return!1;var h=m*(d.y-u.y),g=m*(u.x-d.x),_=h*o+g*c,v=h*s+g*c,y=h*o+g*l,b=h*s+g*l;if(Math.max(_,v,y,b)<=h*u.x+g*u.y||Math.min(_,v,y,b)>=h*p.x+g*p.y)return!1;var x=m*(u.y-f.y),S=m*(f.x-u.x),C=x*o+S*c,w=x*s+S*c,T=x*o+S*l,E=x*s+S*l;return!(Math.max(C,w,T,E)<=x*u.x+S*u.y||Math.min(C,w,T,E)>=x*p.x+S*p.y)},e.prototype.pad=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=e),this.x-=e,this.y-=t,this.width+=e*2,this.height+=t*2,this},e.prototype.fit=function(e){var t=Math.max(this.x,e.x),n=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.y,e.y),i=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(n-t,0),this.y=r,this.height=Math.max(i-r,0),this},e.prototype.ceil=function(e,t){e===void 0&&(e=1),t===void 0&&(t=.001);var n=Math.ceil((this.x+this.width-t)*e)/e,r=Math.ceil((this.y+this.height-t)*e)/e;return this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=n-this.x,this.height=r-this.y,this},e.prototype.enlarge=function(e){var t=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),i=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=n-t,this.y=r,this.height=i-r,this},e.prototype.toString=function(){return`[@pixi/math:Rectangle x=`+this.x+` y=`+this.y+` width=`+this.width+` height=`+this.height+`]`},e}();(function(){function e(e,t,n){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),this.x=e,this.y=t,this.radius=n,this.type=$6.CIRC}return e.prototype.clone=function(){return new e(this.x,this.y,this.radius)},e.prototype.contains=function(e,t){if(this.radius<=0)return!1;var n=this.radius*this.radius,r=this.x-e,i=this.y-t;return r*=r,i*=i,r+i<=n},e.prototype.getBounds=function(){return new n8(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},e.prototype.toString=function(){return`[@pixi/math:Circle x=`+this.x+` y=`+this.y+` radius=`+this.radius+`]`},e})(),function(){function e(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.x=e,this.y=t,this.width=n,this.height=r,this.type=$6.ELIP}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;var n=(e-this.x)/this.width,r=(t-this.y)/this.height;return n*=n,r*=r,n+r<=1},e.prototype.getBounds=function(){return new n8(this.x-this.width,this.y-this.height,this.width,this.height)},e.prototype.toString=function(){return`[@pixi/math:Ellipse x=`+this.x+` y=`+this.y+` width=`+this.width+` height=`+this.height+`]`},e}(),function(){function e(){for(var e=arguments,t=[],n=0;nt!=l>t&&e<(c-o)*((t-s)/(l-s))+o;u&&(n=!n)}return n},e.prototype.toString=function(){return`[@pixi/math:Polygon`+(`closeStroke=`+this.closeStroke)+(`points=`+this.points.reduce(function(e,t){return e+`, `+t},``)+`]`)},e}(),function(){function e(e,t,n,r,i){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=20),this.x=e,this.y=t,this.width=n,this.height=r,this.radius=i,this.type=$6.RREC}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height,this.radius)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){var n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+n&&t<=this.y+this.height-n||e>=this.x+n&&e<=this.x+this.width-n)return!0;var r=e-(this.x+n),i=t-(this.y+n),a=n*n;if(r*r+i*i<=a||(r=e-(this.x+this.width-n),r*r+i*i<=a)||(i=t-(this.y+this.height-n),r*r+i*i<=a)||(r=e-(this.x+n),r*r+i*i<=a))return!0}return!1},e.prototype.toString=function(){return`[@pixi/math:RoundedRectangle x=`+this.x+` y=`+this.y+(`width=`+this.width+` height=`+this.height+` radius=`+this.radius+`]`)},e}();var r8=function(){function e(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0),this._x=n,this._y=r,this.cb=e,this.scope=t}return e.prototype.clone=function(t,n){return t===void 0&&(t=this.cb),n===void 0&&(n=this.scope),new e(t,n,this._x,this._y)},e.prototype.set=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=e),(this._x!==e||this._y!==t)&&(this._x=e,this._y=t,this.cb.call(this.scope)),this},e.prototype.copyFrom=function(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this.cb.call(this.scope)),this},e.prototype.copyTo=function(e){return e.set(this._x,this._y),e},e.prototype.equals=function(e){return e.x===this._x&&e.y===this._y},e.prototype.toString=function(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=`+this.scope+`]`},Object.defineProperty(e.prototype,`x`,{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`y`,{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),e}(),i8=function(){function e(e,t,n,r,i,a){e===void 0&&(e=1),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=1),i===void 0&&(i=0),a===void 0&&(a=0),this.array=null,this.a=e,this.b=t,this.c=n,this.d=r,this.tx=i,this.ty=a}return e.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},e.prototype.set=function(e,t,n,r,i,a){return this.a=e,this.b=t,this.c=n,this.d=r,this.tx=i,this.ty=a,this},e.prototype.toArray=function(e,t){this.array||=new Float32Array(9);var n=t||this.array;return e?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n},e.prototype.apply=function(e,t){t||=new e8;var n=e.x,r=e.y;return t.x=this.a*n+this.c*r+this.tx,t.y=this.b*n+this.d*r+this.ty,t},e.prototype.applyInverse=function(e,t){t||=new e8;var n=1/(this.a*this.d+this.c*-this.b),r=e.x,i=e.y;return t.x=this.d*n*r+-this.c*n*i+(this.ty*this.c-this.tx*this.d)*n,t.y=this.a*n*i+-this.b*n*r+(-this.ty*this.a+this.tx*this.b)*n,t},e.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},e.prototype.scale=function(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this},e.prototype.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),r=this.a,i=this.c,a=this.tx;return this.a=r*t-this.b*n,this.b=r*n+this.b*t,this.c=i*t-this.d*n,this.d=i*n+this.d*t,this.tx=a*t-this.ty*n,this.ty=a*n+this.ty*t,this},e.prototype.append=function(e){var t=this.a,n=this.b,r=this.c,i=this.d;return this.a=e.a*t+e.b*r,this.b=e.a*n+e.b*i,this.c=e.c*t+e.d*r,this.d=e.c*n+e.d*i,this.tx=e.tx*t+e.ty*r+this.tx,this.ty=e.tx*n+e.ty*i+this.ty,this},e.prototype.setTransform=function(e,t,n,r,i,a,o,s,c){return this.a=Math.cos(o+c)*i,this.b=Math.sin(o+c)*i,this.c=-Math.sin(o-s)*a,this.d=Math.cos(o-s)*a,this.tx=e-(n*this.a+r*this.c),this.ty=t-(n*this.b+r*this.d),this},e.prototype.prepend=function(e){var t=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){var n=this.a,r=this.c;this.a=n*e.a+this.b*e.c,this.b=n*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this},e.prototype.decompose=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=e.pivot,o=-Math.atan2(-r,i),s=Math.atan2(n,t),c=Math.abs(o+s);return c<1e-5||Math.abs($Pe-c)<1e-5?(e.rotation=s,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=o,e.skew.y=s),e.scale.x=Math.sqrt(t*t+n*n),e.scale.y=Math.sqrt(r*r+i*i),e.position.x=this.tx+(a.x*t+a.y*r),e.position.y=this.ty+(a.x*n+a.y*i),e},e.prototype.invert=function(){var e=this.a,t=this.b,n=this.c,r=this.d,i=this.tx,a=e*r-t*n;return this.a=r/a,this.b=-t/a,this.c=-n/a,this.d=e/a,this.tx=(n*this.ty-r*i)/a,this.ty=-(e*this.ty-t*i)/a,this},e.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},e.prototype.clone=function(){var t=new e;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},e.prototype.copyTo=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},e.prototype.copyFrom=function(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this},e.prototype.toString=function(){return`[@pixi/math:Matrix a=`+this.a+` b=`+this.b+` c=`+this.c+` d=`+this.d+` tx=`+this.tx+` ty=`+this.ty+`]`},Object.defineProperty(e,`IDENTITY`,{get:function(){return new e},enumerable:!1,configurable:!0}),Object.defineProperty(e,`TEMP_MATRIX`,{get:function(){return new e},enumerable:!1,configurable:!0}),e}(),a8=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],o8=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],s8=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],c8=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],l8=[],u8=[],d8=Math.sign;function tFe(){for(var e=0;e<16;e++){var t=[];l8.push(t);for(var n=0;n<16;n++)for(var r=d8(a8[e]*a8[n]+s8[e]*o8[n]),i=d8(o8[e]*a8[n]+c8[e]*o8[n]),a=d8(a8[e]*s8[n]+s8[e]*c8[n]),o=d8(o8[e]*s8[n]+c8[e]*c8[n]),s=0;s<16;s++)if(a8[s]===r&&o8[s]===i&&s8[s]===a&&c8[s]===o){t.push(s);break}}for(var e=0;e<16;e++){var c=new i8;c.set(a8[e],o8[e],s8[e],c8[e],0,0),u8.push(c)}}tFe();var f8={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(e){return a8[e]},uY:function(e){return o8[e]},vX:function(e){return s8[e]},vY:function(e){return c8[e]},inv:function(e){return e&8?e&15:-e&7},add:function(e,t){return l8[e][t]},sub:function(e,t){return l8[e][f8.inv(t)]},rotate180:function(e){return e^4},isVertical:function(e){return(e&3)==2},byDirection:function(e,t){return Math.abs(e)*2<=Math.abs(t)?t>=0?f8.S:f8.N:Math.abs(t)*2<=Math.abs(e)?e>0?f8.E:f8.W:t>0?e>0?f8.SE:f8.SW:e>0?f8.NE:f8.NW},matrixAppendRotationInv:function(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0);var i=u8[f8.inv(t)];i.tx=n,i.ty=r,e.append(i)}},p8=function(){function e(){this.worldTransform=new i8,this.localTransform=new i8,this.position=new r8(this.onChange,this,0,0),this.scale=new r8(this.onChange,this,1,1),this.pivot=new r8(this.onChange,this,0,0),this.skew=new r8(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return e.prototype.onChange=function(){this._localID++},e.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},e.prototype.toString=function(){return`[@pixi/math:Transform `+(`position=(`+this.position.x+`, `+this.position.y+`) `)+(`rotation=`+this.rotation+` `)+(`scale=(`+this.scale.x+`, `+this.scale.y+`) `)+(`skew=(`+this.skew.x+`, `+this.skew.y+`) `)+`]`},e.prototype.updateLocalTransform=function(){var e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)},e.prototype.updateTransform=function(e){var t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){var n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._parentID=e._worldID,this._worldID++}},e.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},Object.defineProperty(e.prototype,`rotation`,{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())},enumerable:!1,configurable:!0}),e.IDENTITY=new e,e}();b6.PREFER_ENV=y6.any?R3.WEBGL:R3.WEBGL2,b6.STRICT_TEXTURE_CACHE=!1;var m8=[];function h8(e,t){if(!e)return null;var n=``;if(typeof e==`string`){var r=/\.(\w{3,4})(?:$|\?|#)/i.exec(e);r&&(n=r[1].toLowerCase())}for(var i=m8.length-1;i>=0;--i){var a=m8[i];if(a.test&&a.test(e,n))return new a(e,t)}throw Error(`Unrecognized source type to auto-detect Resource`)} +var U6=function(){return U6=Object.assign||function(e){for(var t=arguments,n,r=1,i=arguments.length;r8)throw Error(`max arguments reached`);var c=this,l=c.name,u=c.items;this._aliasCount++;for(var d=0,f=u.length;d0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},e.prototype.add=function(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this},e.prototype.remove=function(e){var t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this},e.prototype.contains=function(e){return this.items.indexOf(e)!==-1},e.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},e.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(e.prototype,`empty`,{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`name`,{get:function(){return this._name},enumerable:!1,configurable:!0}),e}();Object.defineProperties(q6.prototype,{dispatch:{value:q6.prototype.emit},run:{value:q6.prototype.emit}}),b6.TARGET_FPMS=.06;var J6;(function(e){e[e.INTERACTION=50]=`INTERACTION`,e[e.HIGH=25]=`HIGH`,e[e.NORMAL=0]=`NORMAL`,e[e.LOW=-25]=`LOW`,e[e.UTILITY=-50]=`UTILITY`})(J6||={});var Y6=function(){function e(e,t,n,r){t===void 0&&(t=null),n===void 0&&(n=0),r===void 0&&(r=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=e,this.context=t,this.priority=n,this.once=r}return e.prototype.match=function(e,t){return t===void 0&&(t=null),this.fn===e&&this.context===t},e.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},e.prototype.connect=function(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this},e.prototype.destroy=function(e){e===void 0&&(e=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var t=this.next;return this.next=e?null:t,this.previous=null,t},e}(),X6=function(){function e(){var e=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Y6(null,null,1/0),this.deltaMS=1/b6.TARGET_FPMS,this.elapsedMS=1/b6.TARGET_FPMS,this._tick=function(t){e._requestId=null,e.started&&(e.update(t),e.started&&e._requestId===null&&e._head.next&&(e._requestId=requestAnimationFrame(e._tick)))}}return e.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(e,t,n){return n===void 0&&(n=J6.NORMAL),this._addListener(new Y6(e,t,n))},e.prototype.addOnce=function(e,t,n){return n===void 0&&(n=J6.NORMAL),this._addListener(new Y6(e,t,n,!0))},e.prototype._addListener=function(e){var t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this},e.prototype.remove=function(e,t){for(var n=this._head.next;n;)n=n.match(e,t)?n.destroy():n.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(e.prototype,`count`,{get:function(){if(!this._head)return 0;for(var e=0,t=this._head;t=t.next;)e++;return e},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){if(!this._protected){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}},e.prototype.update=function(e){e===void 0&&(e=performance.now());var t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){var n=e-this._lastFrame|0;if(n=this.x&&e=this.y&&te.right?e.right:this.right;if(r<=n)return!1;var i=this.ye.bottom?e.bottom:this.bottom;return a>i}var o=this.left,s=this.right,c=this.top,l=this.bottom;if(s<=o||l<=c)return!1;var u=t8[0].set(e.left,e.top),d=t8[1].set(e.left,e.bottom),f=t8[2].set(e.right,e.top),p=t8[3].set(e.right,e.bottom);if(f.x<=u.x||d.y<=u.y)return!1;var m=Math.sign(t.a*t.d-t.b*t.c);if(m===0||(t.apply(u,u),t.apply(d,d),t.apply(f,f),t.apply(p,p),Math.max(u.x,d.x,f.x,p.x)<=o||Math.min(u.x,d.x,f.x,p.x)>=s||Math.max(u.y,d.y,f.y,p.y)<=c||Math.min(u.y,d.y,f.y,p.y)>=l))return!1;var h=m*(d.y-u.y),g=m*(u.x-d.x),_=h*o+g*c,v=h*s+g*c,y=h*o+g*l,b=h*s+g*l;if(Math.max(_,v,y,b)<=h*u.x+g*u.y||Math.min(_,v,y,b)>=h*p.x+g*p.y)return!1;var x=m*(u.y-f.y),S=m*(f.x-u.x),C=x*o+S*c,w=x*s+S*c,T=x*o+S*l,E=x*s+S*l;return!(Math.max(C,w,T,E)<=x*u.x+S*u.y||Math.min(C,w,T,E)>=x*p.x+S*p.y)},e.prototype.pad=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=e),this.x-=e,this.y-=t,this.width+=e*2,this.height+=t*2,this},e.prototype.fit=function(e){var t=Math.max(this.x,e.x),n=Math.min(this.x+this.width,e.x+e.width),r=Math.max(this.y,e.y),i=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(n-t,0),this.y=r,this.height=Math.max(i-r,0),this},e.prototype.ceil=function(e,t){e===void 0&&(e=1),t===void 0&&(t=.001);var n=Math.ceil((this.x+this.width-t)*e)/e,r=Math.ceil((this.y+this.height-t)*e)/e;return this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=n-this.x,this.height=r-this.y,this},e.prototype.enlarge=function(e){var t=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),i=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=n-t,this.y=r,this.height=i-r,this},e.prototype.toString=function(){return`[@pixi/math:Rectangle x=`+this.x+` y=`+this.y+` width=`+this.width+` height=`+this.height+`]`},e}();(function(){function e(e,t,n){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),this.x=e,this.y=t,this.radius=n,this.type=$6.CIRC}return e.prototype.clone=function(){return new e(this.x,this.y,this.radius)},e.prototype.contains=function(e,t){if(this.radius<=0)return!1;var n=this.radius*this.radius,r=this.x-e,i=this.y-t;return r*=r,i*=i,r+i<=n},e.prototype.getBounds=function(){return new n8(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},e.prototype.toString=function(){return`[@pixi/math:Circle x=`+this.x+` y=`+this.y+` radius=`+this.radius+`]`},e})(),function(){function e(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.x=e,this.y=t,this.width=n,this.height=r,this.type=$6.ELIP}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;var n=(e-this.x)/this.width,r=(t-this.y)/this.height;return n*=n,r*=r,n+r<=1},e.prototype.getBounds=function(){return new n8(this.x-this.width,this.y-this.height,this.width,this.height)},e.prototype.toString=function(){return`[@pixi/math:Ellipse x=`+this.x+` y=`+this.y+` width=`+this.width+` height=`+this.height+`]`},e}(),function(){function e(){for(var e=arguments,t=[],n=0;nt!=l>t&&e<(c-o)*((t-s)/(l-s))+o;u&&(n=!n)}return n},e.prototype.toString=function(){return`[@pixi/math:Polygon`+(`closeStroke=`+this.closeStroke)+(`points=`+this.points.reduce(function(e,t){return e+`, `+t},``)+`]`)},e}(),function(){function e(e,t,n,r,i){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=20),this.x=e,this.y=t,this.width=n,this.height=r,this.radius=i,this.type=$6.RREC}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height,this.radius)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){var n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+n&&t<=this.y+this.height-n||e>=this.x+n&&e<=this.x+this.width-n)return!0;var r=e-(this.x+n),i=t-(this.y+n),a=n*n;if(r*r+i*i<=a||(r=e-(this.x+this.width-n),r*r+i*i<=a)||(i=t-(this.y+this.height-n),r*r+i*i<=a)||(r=e-(this.x+n),r*r+i*i<=a))return!0}return!1},e.prototype.toString=function(){return`[@pixi/math:RoundedRectangle x=`+this.x+` y=`+this.y+(`width=`+this.width+` height=`+this.height+` radius=`+this.radius+`]`)},e}();var r8=function(){function e(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0),this._x=n,this._y=r,this.cb=e,this.scope=t}return e.prototype.clone=function(t,n){return t===void 0&&(t=this.cb),n===void 0&&(n=this.scope),new e(t,n,this._x,this._y)},e.prototype.set=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=e),(this._x!==e||this._y!==t)&&(this._x=e,this._y=t,this.cb.call(this.scope)),this},e.prototype.copyFrom=function(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this.cb.call(this.scope)),this},e.prototype.copyTo=function(e){return e.set(this._x,this._y),e},e.prototype.equals=function(e){return e.x===this._x&&e.y===this._y},e.prototype.toString=function(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=`+this.scope+`]`},Object.defineProperty(e.prototype,`x`,{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`y`,{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),e}(),i8=function(){function e(e,t,n,r,i,a){e===void 0&&(e=1),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=1),i===void 0&&(i=0),a===void 0&&(a=0),this.array=null,this.a=e,this.b=t,this.c=n,this.d=r,this.tx=i,this.ty=a}return e.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},e.prototype.set=function(e,t,n,r,i,a){return this.a=e,this.b=t,this.c=n,this.d=r,this.tx=i,this.ty=a,this},e.prototype.toArray=function(e,t){this.array||=new Float32Array(9);var n=t||this.array;return e?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n},e.prototype.apply=function(e,t){t||=new e8;var n=e.x,r=e.y;return t.x=this.a*n+this.c*r+this.tx,t.y=this.b*n+this.d*r+this.ty,t},e.prototype.applyInverse=function(e,t){t||=new e8;var n=1/(this.a*this.d+this.c*-this.b),r=e.x,i=e.y;return t.x=this.d*n*r+-this.c*n*i+(this.ty*this.c-this.tx*this.d)*n,t.y=this.a*n*i+-this.b*n*r+(-this.ty*this.a+this.tx*this.b)*n,t},e.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},e.prototype.scale=function(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this},e.prototype.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),r=this.a,i=this.c,a=this.tx;return this.a=r*t-this.b*n,this.b=r*n+this.b*t,this.c=i*t-this.d*n,this.d=i*n+this.d*t,this.tx=a*t-this.ty*n,this.ty=a*n+this.ty*t,this},e.prototype.append=function(e){var t=this.a,n=this.b,r=this.c,i=this.d;return this.a=e.a*t+e.b*r,this.b=e.a*n+e.b*i,this.c=e.c*t+e.d*r,this.d=e.c*n+e.d*i,this.tx=e.tx*t+e.ty*r+this.tx,this.ty=e.tx*n+e.ty*i+this.ty,this},e.prototype.setTransform=function(e,t,n,r,i,a,o,s,c){return this.a=Math.cos(o+c)*i,this.b=Math.sin(o+c)*i,this.c=-Math.sin(o-s)*a,this.d=Math.cos(o-s)*a,this.tx=e-(n*this.a+r*this.c),this.ty=t-(n*this.b+r*this.d),this},e.prototype.prepend=function(e){var t=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){var n=this.a,r=this.c;this.a=n*e.a+this.b*e.c,this.b=n*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this},e.prototype.decompose=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=e.pivot,o=-Math.atan2(-r,i),s=Math.atan2(n,t),c=Math.abs(o+s);return c<1e-5||Math.abs(rIe-c)<1e-5?(e.rotation=s,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=o,e.skew.y=s),e.scale.x=Math.sqrt(t*t+n*n),e.scale.y=Math.sqrt(r*r+i*i),e.position.x=this.tx+(a.x*t+a.y*r),e.position.y=this.ty+(a.x*n+a.y*i),e},e.prototype.invert=function(){var e=this.a,t=this.b,n=this.c,r=this.d,i=this.tx,a=e*r-t*n;return this.a=r/a,this.b=-t/a,this.c=-n/a,this.d=e/a,this.tx=(n*this.ty-r*i)/a,this.ty=-(e*this.ty-t*i)/a,this},e.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},e.prototype.clone=function(){var t=new e;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},e.prototype.copyTo=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},e.prototype.copyFrom=function(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this},e.prototype.toString=function(){return`[@pixi/math:Matrix a=`+this.a+` b=`+this.b+` c=`+this.c+` d=`+this.d+` tx=`+this.tx+` ty=`+this.ty+`]`},Object.defineProperty(e,`IDENTITY`,{get:function(){return new e},enumerable:!1,configurable:!0}),Object.defineProperty(e,`TEMP_MATRIX`,{get:function(){return new e},enumerable:!1,configurable:!0}),e}(),a8=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],o8=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],s8=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],c8=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],l8=[],u8=[],d8=Math.sign;function aIe(){for(var e=0;e<16;e++){var t=[];l8.push(t);for(var n=0;n<16;n++)for(var r=d8(a8[e]*a8[n]+s8[e]*o8[n]),i=d8(o8[e]*a8[n]+c8[e]*o8[n]),a=d8(a8[e]*s8[n]+s8[e]*c8[n]),o=d8(o8[e]*s8[n]+c8[e]*c8[n]),s=0;s<16;s++)if(a8[s]===r&&o8[s]===i&&s8[s]===a&&c8[s]===o){t.push(s);break}}for(var e=0;e<16;e++){var c=new i8;c.set(a8[e],o8[e],s8[e],c8[e],0,0),u8.push(c)}}aIe();var f8={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(e){return a8[e]},uY:function(e){return o8[e]},vX:function(e){return s8[e]},vY:function(e){return c8[e]},inv:function(e){return e&8?e&15:-e&7},add:function(e,t){return l8[e][t]},sub:function(e,t){return l8[e][f8.inv(t)]},rotate180:function(e){return e^4},isVertical:function(e){return(e&3)==2},byDirection:function(e,t){return Math.abs(e)*2<=Math.abs(t)?t>=0?f8.S:f8.N:Math.abs(t)*2<=Math.abs(e)?e>0?f8.E:f8.W:t>0?e>0?f8.SE:f8.SW:e>0?f8.NE:f8.NW},matrixAppendRotationInv:function(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0);var i=u8[f8.inv(t)];i.tx=n,i.ty=r,e.append(i)}},p8=function(){function e(){this.worldTransform=new i8,this.localTransform=new i8,this.position=new r8(this.onChange,this,0,0),this.scale=new r8(this.onChange,this,1,1),this.pivot=new r8(this.onChange,this,0,0),this.skew=new r8(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return e.prototype.onChange=function(){this._localID++},e.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},e.prototype.toString=function(){return`[@pixi/math:Transform `+(`position=(`+this.position.x+`, `+this.position.y+`) `)+(`rotation=`+this.rotation+` `)+(`scale=(`+this.scale.x+`, `+this.scale.y+`) `)+(`skew=(`+this.skew.x+`, `+this.skew.y+`) `)+`]`},e.prototype.updateLocalTransform=function(){var e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)},e.prototype.updateTransform=function(e){var t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){var n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._parentID=e._worldID,this._worldID++}},e.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},Object.defineProperty(e.prototype,`rotation`,{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())},enumerable:!1,configurable:!0}),e.IDENTITY=new e,e}();b6.PREFER_ENV=y6.any?R3.WEBGL:R3.WEBGL2,b6.STRICT_TEXTURE_CACHE=!1;var m8=[];function h8(e,t){if(!e)return null;var n=``;if(typeof e==`string`){var r=/\.(\w{3,4})(?:$|\?|#)/i.exec(e);r&&(n=r[1].toLowerCase())}for(var i=m8.length-1;i>=0;--i){var a=m8[i];if(a.test&&a.test(e,n))return new a(e,t)}throw Error(`Unrecognized source type to auto-detect Resource`)} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -4381,11 +4384,11 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var g8=function(e,t){return g8=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},g8(e,t)};function _8(e,t){g8(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var v8=function(){return v8=Object.assign||function(e){for(var t=arguments,n,r=1,i=arguments.length;r0&&l>0,r.textureCacheIds=[],r.destroyed=!1,r.resource=null,r._batchEnabled=0,r._batchLocation=0,r.parentTextureArray=null,r.setResource(t),r}return Object.defineProperty(t.prototype,`realWidth`,{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`realHeight`,{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`mipmap`,{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`scaleMode`,{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`wrapMode`,{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(e,t){var n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),t!==void 0&&t!==this.mipmap&&(this.mipmap=t,n=!0),n&&this.dirtyStyleId++,this},t.prototype.setSize=function(e,t,n){return n||=this.resolution,this.setRealSize(e*n,t*n,n)},t.prototype.setRealSize=function(e,t,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=M6(this.realWidth)&&M6(this.realHeight)},t.prototype.setResolution=function(e){var t=this.resolution;return t===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit(`update`,this)),this._refreshPOT(),this)},t.prototype.setResource=function(e){if(this.resource===e)return this;if(this.resource)throw Error(`Resource can be set only once`);return e.bind(this),this.resource=e,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit(`update`,this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit(`loaded`,this),this.emit(`update`,this))},t.prototype.onError=function(e){this.emit(`error`,this,e)},t.prototype.destroy=function(){this.resource&&=(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),null),this.cacheId&&=(delete B6[this.cacheId],delete z6[this.cacheId],null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit(`dispose`,this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(e,n,r){r===void 0&&(r=b6.STRICT_TEXTURE_CACHE);var i=typeof e==`string`,a=null;if(i)a=e;else{if(!e._pixiId){var o=n&&n.pixiIdPrefix||`pixiid`;e._pixiId=o+`_`+F6()}a=e._pixiId}var s=B6[a];if(i&&r&&!s)throw Error(`The cacheId "`+a+`" does not exist in BaseTextureCache.`);return s||(s=new t(e,n),s.cacheId=a,t.addToCache(s,a)),s},t.fromBuffer=function(e,n,r,i){e||=new Float32Array(n*r*4);var a=new b8(e,{width:n,height:r}),o=e instanceof Float32Array?G3.FLOAT:G3.UNSIGNED_BYTE;return new t(a,Object.assign({},rFe,i||{width:n,height:r,type:o}))},t.addToCache=function(e,t){t&&(e.textureCacheIds.indexOf(t)===-1&&e.textureCacheIds.push(t),B6[t]&&console.warn(`BaseTexture added to the cache with an id [`+t+`] that already had an entry`),B6[t]=e)},t.removeFromCache=function(e){if(typeof e==`string`){var t=B6[e];if(t){var n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete B6[e],t}}else if(e&&e.textureCacheIds){for(var r=0;r0)if(e.resource)this.addResourceAt(e.resource,t);else throw Error(`CubeResource does not support copying of renderTexture.`);else e.target=W3.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this},t.prototype.upload=function(e,n,r){for(var i=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(w8),k8=function(e){_8(t,e);function t(n,r){var i=this;if(r||={},!(n instanceof HTMLVideoElement)){var a=document.createElement(`video`);a.setAttribute(`preload`,`auto`),a.setAttribute(`webkit-playsinline`,``),a.setAttribute(`playsinline`,``),typeof n==`string`&&(n=[n]);var o=n[0].src||n[0];w8.crossOrigin(a,o,r.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(X6.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&=(X6.shared.remove(this.update,this),!1)},t.prototype._onCanPlay=function(){var e=this.source;e.removeEventListener(`canplay`,this._onCanPlay),e.removeEventListener(`canplaythrough`,this._onCanPlay);var t=this.valid;this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&=(X6.shared.remove(this.update,this),!1);var t=this.source;t&&(t.removeEventListener(`error`,this._onError,!0),t.pause(),t.src=``,t.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,`autoUpdate`,{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(X6.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(X6.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`updateFPS`,{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),t.test=function(e,n){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=[`mp4`,`m4v`,`webm`,`ogg`,`ogv`,`h264`,`avi`,`mov`],t.MIME_TYPES={ogv:`video/ogg`,mov:`video/quicktime`,m4v:`video/mp4`},t}(w8),A8=function(e){_8(t,e);function t(t){return e.call(this,t)||this}return t.test=function(e){return!!globalThis.createImageBitmap&&typeof ImageBitmap<`u`&&e instanceof ImageBitmap},t}(w8);m8.push(D8,A8,T8,k8,O8,b8,E8,C8);var j8={__proto__:null,Resource:y8,BaseImageResource:w8,INSTALLED:m8,autoDetectResource:h8,AbstractMultiResource:S8,ArrayResource:C8,BufferResource:b8,CanvasResource:T8,CubeResource:E8,ImageResource:D8,SVGResource:O8,VideoResource:k8,ImageBitmapResource:A8},iFe=function(e){_8(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(e,t,n){var r=e.gl;r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===X3.UNPACK);var i=t.realWidth,a=t.realHeight;return n.width===i&&n.height===a?r.texSubImage2D(t.target,0,0,0,i,a,t.format,n.type,this.data):(n.width=i,n.height=a,r.texImage2D(t.target,0,n.internalFormat,i,a,0,t.format,n.type,this.data)),!0},t}(b8),M8=function(){function e(e,t){this.width=Math.round(e||100),this.height=Math.round(t||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new q6(`disposeFramebuffer`),this.multisample=t6.NONE}return Object.defineProperty(e.prototype,`colorTexture`,{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(e,t){return e===void 0&&(e=0),this.colorTextures[e]=t||new x8(null,{scaleMode:q3.NEAREST,resolution:1,mipmap:Y3.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(e){return this.depthTexture=e||new x8(new iFe(null,{width:this.width,height:this.height}),{scaleMode:q3.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Y3.OFF,format:U3.DEPTH_COMPONENT,type:G3.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(e,t){if(e=Math.round(e),t=Math.round(t),!(e===this.width&&t===this.height)){this.width=e,this.height=t,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&t.textureCacheIds.splice(n,1),delete z6[e],t}}else if(e&&e.textureCacheIds){for(var r=0;rthis.baseTexture.width,o=n+i>this.baseTexture.height;if(a||o){var s=a&&o?`and`:`or`,c=`X: `+t+` + `+r+` = `+(t+r)+` > `+this.baseTexture.width,l=`Y: `+n+` + `+i+` = `+(n+i)+` > `+this.baseTexture.height;throw Error(`Texture Error: frame does not fit inside the base Texture dimensions: `+(c+` `+s+` `+l))}this.valid=r&&i&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`rotate`,{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`width`,{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`height`,{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,`EMPTY`,{get:function(){return t._EMPTY||(t._EMPTY=new t(new x8),I8(t._EMPTY),I8(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,`WHITE`,{get:function(){if(!t._WHITE){var e=b6.ADAPTER.createCanvas(16,16),n=e.getContext(`2d`);e.width=16,e.height=16,n.fillStyle=`white`,n.fillRect(0,0,16,16),t._WHITE=new t(x8.from(e)),I8(t._WHITE),I8(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(C6.default),R8=function(e){_8(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.valid=!0,r.filterFrame=null,r.filterPoolKey=null,r.updateUvs(),r}return Object.defineProperty(t.prototype,`framebuffer`,{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`multisample`,{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,t,n){n===void 0&&(n=!0);var r=this.baseTexture.resolution,i=Math.round(e*r)/r,a=Math.round(t*r)/r;this.valid=i>0&&a>0,this._frame.width=this.orig.width=i,this._frame.height=this.orig.height=a,n&&this.baseTexture.resize(i,a),this.updateUvs()},t.prototype.setResolution=function(e){var t=this.baseTexture;t.resolution!==e&&(t.setResolution(e),this.resize(t.width,t.height,!1))},t.create=function(e){for(var n=arguments,r=[],i=1;i>>0,r>1&&(i+=r*4294967296)):i=r>1?-r:-1,this.texturePool[i]||(this.texturePool[i]=[]);var a=this.texturePool[i].pop();return a||=this.createTexture(e,t,r),a.filterPoolKey=i,a.setResolution(n),a},e.prototype.getFilterTexture=function(e,t,n){var r=this.getOptimalTexture(e.width,e.height,t||e.resolution,n||t6.NONE);return r.filterFrame=e.filterFrame,r},e.prototype.returnTexture=function(e){var t=e.filterPoolKey;e.filterFrame=null,this.texturePool[t].push(e)},e.prototype.returnFilterTexture=function(e){this.returnTexture(e)},e.prototype.clear=function(e){if(e=e!==!1,e)for(var t in this.texturePool){var n=this.texturePool[t];if(n)for(var r=0;r0&&e.height>0,this.texturePool){if(!(Number(t)<0))continue;var n=this.texturePool[t];if(n)for(var r=0;r1){for(var l=0;l1&&(u=this.getOptimalFilterTexture(l.width,l.height,t.resolution),u.filterFrame=l.filterFrame),n[d].apply(this,l,u,Z3.CLEAR,t);var f=l;l=u,u=f}n[d].apply(this,l,c.renderTexture,Z3.BLEND,t),d>1&&t.multisample>1&&this.returnFilterTexture(t.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(u)}t.clear(),this.statePool.push(t)},e.prototype.bindAndClear=function(e,t){t===void 0&&(t=Z3.CLEAR);var n=this.renderer,r=n.renderTexture,i=n.state;if(e===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,e&&e.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=e.filterFrame.width,a.height=e.filterFrame.height,r.bind(e,e.filterFrame,a)}else e===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.renderTexture.bind(e,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame):r.bind(e);var o=i.stateId&1||this.forceClear;(t===Z3.CLEAR||t===Z3.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(e,t,n,r){var i=this.renderer;i.state.set(e.state),this.bindAndClear(n,r),e.uniforms.uSampler=t,e.uniforms.filterGlobals=this.globalUniforms,i.shader.bind(e),e.legacy=!!e.program.attributeData.aTextureCoord,e.legacy?(this.quadUv.map(t._frame,t.filterFrame),i.geometry.bind(this.quadUv),i.geometry.draw(H3.TRIANGLES)):(i.geometry.bind(this.quad),i.geometry.draw(H3.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(e,t){var n=this.activeState,r=n.sourceFrame,i=n.destinationFrame,a=t._texture.orig,o=e.set(i.width,0,0,i.height,r.x,r.y),s=t.worldTransform.copyTo(i8.TEMP_MATRIX);return s.invert(),o.prepend(s),o.scale(1/a.width,1/a.height),o.translate(t.anchor.x,t.anchor.y),o},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(e,t,n,r){return n===void 0&&(n=1),r===void 0&&(r=t6.NONE),this.texturePool.getOptimalTexture(e,t,n,r)},e.prototype.getFilterTexture=function(e,t,n){if(typeof e==`number`){var r=e;e=t,t=r}e||=this.activeState.renderTexture;var i=this.texturePool.getOptimalTexture(e.width,e.height,t||e.resolution,n||t6.NONE);return i.filterFrame=e.filterFrame,i},e.prototype.returnFilterTexture=function(e){this.texturePool.returnTexture(e)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(e,t){var n=W8[0],r=W8[1],i=W8[2],a=W8[3];n.set(t.left,t.top),r.set(t.left,t.bottom),i.set(t.right,t.top),a.set(t.right,t.bottom),e.apply(n,n),e.apply(r,r),e.apply(i,i),e.apply(a,a);var o=Math.min(n.x,r.x,i.x,a.x),s=Math.min(n.y,r.y,i.y,a.y),c=Math.max(n.x,r.x,i.x,a.x),l=Math.max(n.y,r.y,i.y,a.y);t.x=o,t.y=s,t.width=c-o,t.height=l-s},e.prototype.roundFrame=function(e,t,n,r,i){if(!(e.width<=0||e.height<=0||n.width<=0||n.height<=0)){if(i){var a=i.a,o=i.b,s=i.c,c=i.d;if((Math.abs(o)>1e-4||Math.abs(s)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(c)>1e-4))return}i=i?G8.copyFrom(i):G8.identity(),i.translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.transformAABB(i,e),e.ceil(t),this.transformAABB(i.invert(),e)}},e}(),q8=function(){function e(e){this.renderer=e}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(e){},e}(),J8=function(){function e(e){this.renderer=e,this.emptyRenderer=new q8(e),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(e,t){for(var n=this.renderer.texture.boundTextures,r=t-1;r>=0;--r)e[r]=n[r]||null,e[r]&&(e[r]._batchLocation=r)},e.prototype.boundArray=function(e,t,n,r){for(var i=e.elements,a=e.ids,o=e.count,s=0,c=0;c=0&&u=R3.WEBGL2&&(n=e.getContext(`webgl2`,t)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=e.getContext(`webgl`,t)||e.getContext(`experimental-webgl`,t),!n)throw Error(`This browser does not support WebGL. Try using the canvas renderer`);return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var e=this.gl,t={loseContext:e.getExtension(`WEBGL_lose_context`),anisotropicFiltering:e.getExtension(`EXT_texture_filter_anisotropic`),floatTextureLinear:e.getExtension(`OES_texture_float_linear`),s3tc:e.getExtension(`WEBGL_compressed_texture_s3tc`),s3tc_sRGB:e.getExtension(`WEBGL_compressed_texture_s3tc_srgb`),etc:e.getExtension(`WEBGL_compressed_texture_etc`),etc1:e.getExtension(`WEBGL_compressed_texture_etc1`),pvrtc:e.getExtension(`WEBGL_compressed_texture_pvrtc`)||e.getExtension(`WEBKIT_WEBGL_compressed_texture_pvrtc`),atc:e.getExtension(`WEBGL_compressed_texture_atc`),astc:e.getExtension(`WEBGL_compressed_texture_astc`)};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension(`WEBGL_draw_buffers`),depthTexture:e.getExtension(`WEBGL_depth_texture`),vertexArrayObject:e.getExtension(`OES_vertex_array_object`)||e.getExtension(`MOZ_OES_vertex_array_object`)||e.getExtension(`WEBKIT_OES_vertex_array_object`),uint32ElementIndex:e.getExtension(`OES_element_index_uint`),floatTexture:e.getExtension(`OES_texture_float`),floatTextureLinear:e.getExtension(`OES_texture_float_linear`),textureHalfFloat:e.getExtension(`OES_texture_half_float`),textureHalfFloatLinear:e.getExtension(`OES_texture_half_float_linear`)}):this.webGLVersion===2&&Object.assign(this.extensions,t,{colorBufferFloat:e.getExtension(`EXT_color_buffer_float`)})},e.prototype.handleContextLost=function(e){var t=this;e.preventDefault(),setTimeout(function(){t.gl.isContextLost()&&t.extensions.loseContext&&t.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var e=this.renderer.view;this.renderer=null,e.removeEventListener(`webglcontextlost`,this.handleContextLost),e.removeEventListener(`webglcontextrestored`,this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(e){var t=e.getContextAttributes(),n=`WebGL2RenderingContext`in globalThis&&e instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),t&&!t.stencil&&console.warn(`Provided WebGL context does not have a stencil buffer, masks may not render correctly`);var r=n||!!e.getExtension(`OES_element_index_uint`);this.supports.uint32Indices=r,r||console.warn(`Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly`)},e}(),hFe=function(){function e(e){this.framebuffer=e,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=t6.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),gFe=new n8,Z8=function(){function e(e){this.renderer=e,this.managedFramebuffers=[],this.unknownFramebuffer=new M8(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var e=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new n8,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var t=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;b6.PREFER_ENV===R3.WEBGL_LEGACY&&(t=null,n=null),t?e.drawBuffers=function(e){return t.drawBuffersWEBGL(e)}:(this.hasMRT=!1,e.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=e.getInternalformatParameter(e.RENDERBUFFER,e.RGBA8,e.SAMPLES)},e.prototype.bind=function(e,t,n){n===void 0&&(n=0);var r=this.gl;if(e){var i=e.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(e);this.current!==e&&(this.current=e,r.bindFramebuffer(r.FRAMEBUFFER,i.framebuffer)),i.mipLevel!==n&&(e.dirtyId++,e.dirtyFormat++,i.mipLevel=n),i.dirtyId!==e.dirtyId&&(i.dirtyId=e.dirtyId,i.dirtyFormat===e.dirtyFormat?i.dirtySize!==e.dirtySize&&(i.dirtySize=e.dirtySize,this.resizeFramebuffer(e)):(i.dirtyFormat=e.dirtyFormat,i.dirtySize=e.dirtySize,this.updateFramebuffer(e,n)));for(var a=0;a>n,c=t.height>>n,l=s/t.width;this.setViewport(t.x*l,t.y*l,s,c)}else{var s=e.width>>n,c=e.height>>n;this.setViewport(0,0,s,c)}}else this.current&&(this.current=null,r.bindFramebuffer(r.FRAMEBUFFER,null)),t?this.setViewport(t.x,t.y,t.width,t.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(e,t,n,r){var i=this.viewport;e=Math.round(e),t=Math.round(t),n=Math.round(n),r=Math.round(r),(i.width!==n||i.height!==r||i.x!==e||i.y!==t)&&(i.x=e,i.y=t,i.width=n,i.height=r,this.gl.viewport(e,t,n,r))},Object.defineProperty(e.prototype,`size`,{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(e,t,n,r,i){i===void 0&&(i=B3.COLOR|B3.DEPTH);var a=this.gl;a.clearColor(e,t,n,r),a.clear(i)},e.prototype.initFramebuffer=function(e){var t=this.gl,n=new hFe(t.createFramebuffer());return n.multisample=this.detectSamples(e.multisample),e.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(e),e.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(e){var t=this.gl,n=e.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(t.bindRenderbuffer(t.RENDERBUFFER,n.msaaBuffer),t.renderbufferStorageMultisample(t.RENDERBUFFER,n.multisample,t.RGBA8,e.width,e.height)),n.stencil&&(t.bindRenderbuffer(t.RENDERBUFFER,n.stencil),n.msaaBuffer?t.renderbufferStorageMultisample(t.RENDERBUFFER,n.multisample,t.DEPTH24_STENCIL8,e.width,e.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,e.width,e.height));var r=e.colorTextures,i=r.length;t.drawBuffers||(i=Math.min(i,1));for(var a=0;a1&&this.canMultisampleFramebuffer(e)?(r.msaaBuffer=r.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,r.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.RGBA8,e.width,e.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,r.msaaBuffer)):r.msaaBuffer&&(n.deleteRenderbuffer(r.msaaBuffer),r.msaaBuffer=null,r.blitFramebuffer&&=(r.blitFramebuffer.dispose(),null));for(var o=[],s=0;s1&&n.drawBuffers(o),e.depthTexture){var u=this.writeDepthTexture;if(u){var d=e.depthTexture;this.renderer.texture.bind(d,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,d._glTextures[this.CONTEXT_UID].texture,t)}}(e.stencil||e.depth)&&!(e.depthTexture&&this.writeDepthTexture)?(r.stencil=r.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,e.width,e.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,e.width,e.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,r.stencil)):r.stencil&&=(n.deleteRenderbuffer(r.stencil),null)},e.prototype.canMultisampleFramebuffer=function(e){return this.renderer.context.webGLVersion!==1&&e.colorTextures.length<=1&&!e.depthTexture},e.prototype.detectSamples=function(e){var t=this.msaaSamples,n=t6.NONE;if(e<=1||t===null)return n;for(var r=0;r=0&&this.managedFramebuffers.splice(i,1),e.disposeRunner.remove(this),t||(r.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&r.deleteRenderbuffer(n.msaaBuffer),n.stencil&&r.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(e){var t=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n0&&l>0,r.textureCacheIds=[],r.destroyed=!1,r.resource=null,r._batchEnabled=0,r._batchLocation=0,r.parentTextureArray=null,r.setResource(t),r}return Object.defineProperty(t.prototype,`realWidth`,{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`realHeight`,{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`mipmap`,{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`scaleMode`,{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`wrapMode`,{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(e,t){var n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),t!==void 0&&t!==this.mipmap&&(this.mipmap=t,n=!0),n&&this.dirtyStyleId++,this},t.prototype.setSize=function(e,t,n){return n||=this.resolution,this.setRealSize(e*n,t*n,n)},t.prototype.setRealSize=function(e,t,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=M6(this.realWidth)&&M6(this.realHeight)},t.prototype.setResolution=function(e){var t=this.resolution;return t===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit(`update`,this)),this._refreshPOT(),this)},t.prototype.setResource=function(e){if(this.resource===e)return this;if(this.resource)throw Error(`Resource can be set only once`);return e.bind(this),this.resource=e,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit(`update`,this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit(`loaded`,this),this.emit(`update`,this))},t.prototype.onError=function(e){this.emit(`error`,this,e)},t.prototype.destroy=function(){this.resource&&=(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),null),this.cacheId&&=(delete B6[this.cacheId],delete z6[this.cacheId],null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit(`dispose`,this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(e,n,r){r===void 0&&(r=b6.STRICT_TEXTURE_CACHE);var i=typeof e==`string`,a=null;if(i)a=e;else{if(!e._pixiId){var o=n&&n.pixiIdPrefix||`pixiid`;e._pixiId=o+`_`+F6()}a=e._pixiId}var s=B6[a];if(i&&r&&!s)throw Error(`The cacheId "`+a+`" does not exist in BaseTextureCache.`);return s||(s=new t(e,n),s.cacheId=a,t.addToCache(s,a)),s},t.fromBuffer=function(e,n,r,i){e||=new Float32Array(n*r*4);var a=new b8(e,{width:n,height:r}),o=e instanceof Float32Array?G3.FLOAT:G3.UNSIGNED_BYTE;return new t(a,Object.assign({},sIe,i||{width:n,height:r,type:o}))},t.addToCache=function(e,t){t&&(e.textureCacheIds.indexOf(t)===-1&&e.textureCacheIds.push(t),B6[t]&&console.warn(`BaseTexture added to the cache with an id [`+t+`] that already had an entry`),B6[t]=e)},t.removeFromCache=function(e){if(typeof e==`string`){var t=B6[e];if(t){var n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete B6[e],t}}else if(e&&e.textureCacheIds){for(var r=0;r0)if(e.resource)this.addResourceAt(e.resource,t);else throw Error(`CubeResource does not support copying of renderTexture.`);else e.target=W3.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this},t.prototype.upload=function(e,n,r){for(var i=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(w8),k8=function(e){_8(t,e);function t(n,r){var i=this;if(r||={},!(n instanceof HTMLVideoElement)){var a=document.createElement(`video`);a.setAttribute(`preload`,`auto`),a.setAttribute(`webkit-playsinline`,``),a.setAttribute(`playsinline`,``),typeof n==`string`&&(n=[n]);var o=n[0].src||n[0];w8.crossOrigin(a,o,r.crossorigin);for(var s=0;s2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(X6.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&=(X6.shared.remove(this.update,this),!1)},t.prototype._onCanPlay=function(){var e=this.source;e.removeEventListener(`canplay`,this._onCanPlay),e.removeEventListener(`canplaythrough`,this._onCanPlay);var t=this.valid;this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&=(X6.shared.remove(this.update,this),!1);var t=this.source;t&&(t.removeEventListener(`error`,this._onError,!0),t.pause(),t.src=``,t.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,`autoUpdate`,{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(X6.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(X6.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`updateFPS`,{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),t.test=function(e,n){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=[`mp4`,`m4v`,`webm`,`ogg`,`ogv`,`h264`,`avi`,`mov`],t.MIME_TYPES={ogv:`video/ogg`,mov:`video/quicktime`,m4v:`video/mp4`},t}(w8),A8=function(e){_8(t,e);function t(t){return e.call(this,t)||this}return t.test=function(e){return!!globalThis.createImageBitmap&&typeof ImageBitmap<`u`&&e instanceof ImageBitmap},t}(w8);m8.push(D8,A8,T8,k8,O8,b8,E8,C8);var j8={__proto__:null,Resource:y8,BaseImageResource:w8,INSTALLED:m8,autoDetectResource:h8,AbstractMultiResource:S8,ArrayResource:C8,BufferResource:b8,CanvasResource:T8,CubeResource:E8,ImageResource:D8,SVGResource:O8,VideoResource:k8,ImageBitmapResource:A8},cIe=function(e){_8(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(e,t,n){var r=e.gl;r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===X3.UNPACK);var i=t.realWidth,a=t.realHeight;return n.width===i&&n.height===a?r.texSubImage2D(t.target,0,0,0,i,a,t.format,n.type,this.data):(n.width=i,n.height=a,r.texImage2D(t.target,0,n.internalFormat,i,a,0,t.format,n.type,this.data)),!0},t}(b8),M8=function(){function e(e,t){this.width=Math.round(e||100),this.height=Math.round(t||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new q6(`disposeFramebuffer`),this.multisample=t6.NONE}return Object.defineProperty(e.prototype,`colorTexture`,{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(e,t){return e===void 0&&(e=0),this.colorTextures[e]=t||new x8(null,{scaleMode:q3.NEAREST,resolution:1,mipmap:Y3.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(e){return this.depthTexture=e||new x8(new cIe(null,{width:this.width,height:this.height}),{scaleMode:q3.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Y3.OFF,format:U3.DEPTH_COMPONENT,type:G3.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(e,t){if(e=Math.round(e),t=Math.round(t),!(e===this.width&&t===this.height)){this.width=e,this.height=t,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&t.textureCacheIds.splice(n,1),delete z6[e],t}}else if(e&&e.textureCacheIds){for(var r=0;rthis.baseTexture.width,o=n+i>this.baseTexture.height;if(a||o){var s=a&&o?`and`:`or`,c=`X: `+t+` + `+r+` = `+(t+r)+` > `+this.baseTexture.width,l=`Y: `+n+` + `+i+` = `+(n+i)+` > `+this.baseTexture.height;throw Error(`Texture Error: frame does not fit inside the base Texture dimensions: `+(c+` `+s+` `+l))}this.valid=r&&i&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`rotate`,{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`width`,{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`height`,{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,`EMPTY`,{get:function(){return t._EMPTY||(t._EMPTY=new t(new x8),I8(t._EMPTY),I8(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,`WHITE`,{get:function(){if(!t._WHITE){var e=b6.ADAPTER.createCanvas(16,16),n=e.getContext(`2d`);e.width=16,e.height=16,n.fillStyle=`white`,n.fillRect(0,0,16,16),t._WHITE=new t(x8.from(e)),I8(t._WHITE),I8(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(C6.default),R8=function(e){_8(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.valid=!0,r.filterFrame=null,r.filterPoolKey=null,r.updateUvs(),r}return Object.defineProperty(t.prototype,`framebuffer`,{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`multisample`,{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,t,n){n===void 0&&(n=!0);var r=this.baseTexture.resolution,i=Math.round(e*r)/r,a=Math.round(t*r)/r;this.valid=i>0&&a>0,this._frame.width=this.orig.width=i,this._frame.height=this.orig.height=a,n&&this.baseTexture.resize(i,a),this.updateUvs()},t.prototype.setResolution=function(e){var t=this.baseTexture;t.resolution!==e&&(t.setResolution(e),this.resize(t.width,t.height,!1))},t.create=function(e){for(var n=arguments,r=[],i=1;i>>0,r>1&&(i+=r*4294967296)):i=r>1?-r:-1,this.texturePool[i]||(this.texturePool[i]=[]);var a=this.texturePool[i].pop();return a||=this.createTexture(e,t,r),a.filterPoolKey=i,a.setResolution(n),a},e.prototype.getFilterTexture=function(e,t,n){var r=this.getOptimalTexture(e.width,e.height,t||e.resolution,n||t6.NONE);return r.filterFrame=e.filterFrame,r},e.prototype.returnTexture=function(e){var t=e.filterPoolKey;e.filterFrame=null,this.texturePool[t].push(e)},e.prototype.returnFilterTexture=function(e){this.returnTexture(e)},e.prototype.clear=function(e){if(e=e!==!1,e)for(var t in this.texturePool){var n=this.texturePool[t];if(n)for(var r=0;r0&&e.height>0,this.texturePool){if(!(Number(t)<0))continue;var n=this.texturePool[t];if(n)for(var r=0;r1){for(var l=0;l1&&(u=this.getOptimalFilterTexture(l.width,l.height,t.resolution),u.filterFrame=l.filterFrame),n[d].apply(this,l,u,Z3.CLEAR,t);var f=l;l=u,u=f}n[d].apply(this,l,c.renderTexture,Z3.BLEND,t),d>1&&t.multisample>1&&this.returnFilterTexture(t.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(u)}t.clear(),this.statePool.push(t)},e.prototype.bindAndClear=function(e,t){t===void 0&&(t=Z3.CLEAR);var n=this.renderer,r=n.renderTexture,i=n.state;if(e===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,e&&e.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=e.filterFrame.width,a.height=e.filterFrame.height,r.bind(e,e.filterFrame,a)}else e===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.renderTexture.bind(e,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame):r.bind(e);var o=i.stateId&1||this.forceClear;(t===Z3.CLEAR||t===Z3.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(e,t,n,r){var i=this.renderer;i.state.set(e.state),this.bindAndClear(n,r),e.uniforms.uSampler=t,e.uniforms.filterGlobals=this.globalUniforms,i.shader.bind(e),e.legacy=!!e.program.attributeData.aTextureCoord,e.legacy?(this.quadUv.map(t._frame,t.filterFrame),i.geometry.bind(this.quadUv),i.geometry.draw(H3.TRIANGLES)):(i.geometry.bind(this.quad),i.geometry.draw(H3.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(e,t){var n=this.activeState,r=n.sourceFrame,i=n.destinationFrame,a=t._texture.orig,o=e.set(i.width,0,0,i.height,r.x,r.y),s=t.worldTransform.copyTo(i8.TEMP_MATRIX);return s.invert(),o.prepend(s),o.scale(1/a.width,1/a.height),o.translate(t.anchor.x,t.anchor.y),o},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(e,t,n,r){return n===void 0&&(n=1),r===void 0&&(r=t6.NONE),this.texturePool.getOptimalTexture(e,t,n,r)},e.prototype.getFilterTexture=function(e,t,n){if(typeof e==`number`){var r=e;e=t,t=r}e||=this.activeState.renderTexture;var i=this.texturePool.getOptimalTexture(e.width,e.height,t||e.resolution,n||t6.NONE);return i.filterFrame=e.filterFrame,i},e.prototype.returnFilterTexture=function(e){this.texturePool.returnTexture(e)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(e,t){var n=W8[0],r=W8[1],i=W8[2],a=W8[3];n.set(t.left,t.top),r.set(t.left,t.bottom),i.set(t.right,t.top),a.set(t.right,t.bottom),e.apply(n,n),e.apply(r,r),e.apply(i,i),e.apply(a,a);var o=Math.min(n.x,r.x,i.x,a.x),s=Math.min(n.y,r.y,i.y,a.y),c=Math.max(n.x,r.x,i.x,a.x),l=Math.max(n.y,r.y,i.y,a.y);t.x=o,t.y=s,t.width=c-o,t.height=l-s},e.prototype.roundFrame=function(e,t,n,r,i){if(!(e.width<=0||e.height<=0||n.width<=0||n.height<=0)){if(i){var a=i.a,o=i.b,s=i.c,c=i.d;if((Math.abs(o)>1e-4||Math.abs(s)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(c)>1e-4))return}i=i?G8.copyFrom(i):G8.identity(),i.translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.transformAABB(i,e),e.ceil(t),this.transformAABB(i.invert(),e)}},e}(),q8=function(){function e(e){this.renderer=e}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(e){},e}(),J8=function(){function e(e){this.renderer=e,this.emptyRenderer=new q8(e),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(e,t){for(var n=this.renderer.texture.boundTextures,r=t-1;r>=0;--r)e[r]=n[r]||null,e[r]&&(e[r]._batchLocation=r)},e.prototype.boundArray=function(e,t,n,r){for(var i=e.elements,a=e.ids,o=e.count,s=0,c=0;c=0&&u=R3.WEBGL2&&(n=e.getContext(`webgl2`,t)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=e.getContext(`webgl`,t)||e.getContext(`experimental-webgl`,t),!n)throw Error(`This browser does not support WebGL. Try using the canvas renderer`);return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var e=this.gl,t={loseContext:e.getExtension(`WEBGL_lose_context`),anisotropicFiltering:e.getExtension(`EXT_texture_filter_anisotropic`),floatTextureLinear:e.getExtension(`OES_texture_float_linear`),s3tc:e.getExtension(`WEBGL_compressed_texture_s3tc`),s3tc_sRGB:e.getExtension(`WEBGL_compressed_texture_s3tc_srgb`),etc:e.getExtension(`WEBGL_compressed_texture_etc`),etc1:e.getExtension(`WEBGL_compressed_texture_etc1`),pvrtc:e.getExtension(`WEBGL_compressed_texture_pvrtc`)||e.getExtension(`WEBKIT_WEBGL_compressed_texture_pvrtc`),atc:e.getExtension(`WEBGL_compressed_texture_atc`),astc:e.getExtension(`WEBGL_compressed_texture_astc`)};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension(`WEBGL_draw_buffers`),depthTexture:e.getExtension(`WEBGL_depth_texture`),vertexArrayObject:e.getExtension(`OES_vertex_array_object`)||e.getExtension(`MOZ_OES_vertex_array_object`)||e.getExtension(`WEBKIT_OES_vertex_array_object`),uint32ElementIndex:e.getExtension(`OES_element_index_uint`),floatTexture:e.getExtension(`OES_texture_float`),floatTextureLinear:e.getExtension(`OES_texture_float_linear`),textureHalfFloat:e.getExtension(`OES_texture_half_float`),textureHalfFloatLinear:e.getExtension(`OES_texture_half_float_linear`)}):this.webGLVersion===2&&Object.assign(this.extensions,t,{colorBufferFloat:e.getExtension(`EXT_color_buffer_float`)})},e.prototype.handleContextLost=function(e){var t=this;e.preventDefault(),setTimeout(function(){t.gl.isContextLost()&&t.extensions.loseContext&&t.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var e=this.renderer.view;this.renderer=null,e.removeEventListener(`webglcontextlost`,this.handleContextLost),e.removeEventListener(`webglcontextrestored`,this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(e){var t=e.getContextAttributes(),n=`WebGL2RenderingContext`in globalThis&&e instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),t&&!t.stencil&&console.warn(`Provided WebGL context does not have a stencil buffer, masks may not render correctly`);var r=n||!!e.getExtension(`OES_element_index_uint`);this.supports.uint32Indices=r,r||console.warn(`Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly`)},e}(),yIe=function(){function e(e){this.framebuffer=e,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=t6.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),bIe=new n8,Z8=function(){function e(e){this.renderer=e,this.managedFramebuffers=[],this.unknownFramebuffer=new M8(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var e=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new n8,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var t=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;b6.PREFER_ENV===R3.WEBGL_LEGACY&&(t=null,n=null),t?e.drawBuffers=function(e){return t.drawBuffersWEBGL(e)}:(this.hasMRT=!1,e.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=e.getInternalformatParameter(e.RENDERBUFFER,e.RGBA8,e.SAMPLES)},e.prototype.bind=function(e,t,n){n===void 0&&(n=0);var r=this.gl;if(e){var i=e.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(e);this.current!==e&&(this.current=e,r.bindFramebuffer(r.FRAMEBUFFER,i.framebuffer)),i.mipLevel!==n&&(e.dirtyId++,e.dirtyFormat++,i.mipLevel=n),i.dirtyId!==e.dirtyId&&(i.dirtyId=e.dirtyId,i.dirtyFormat===e.dirtyFormat?i.dirtySize!==e.dirtySize&&(i.dirtySize=e.dirtySize,this.resizeFramebuffer(e)):(i.dirtyFormat=e.dirtyFormat,i.dirtySize=e.dirtySize,this.updateFramebuffer(e,n)));for(var a=0;a>n,c=t.height>>n,l=s/t.width;this.setViewport(t.x*l,t.y*l,s,c)}else{var s=e.width>>n,c=e.height>>n;this.setViewport(0,0,s,c)}}else this.current&&(this.current=null,r.bindFramebuffer(r.FRAMEBUFFER,null)),t?this.setViewport(t.x,t.y,t.width,t.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(e,t,n,r){var i=this.viewport;e=Math.round(e),t=Math.round(t),n=Math.round(n),r=Math.round(r),(i.width!==n||i.height!==r||i.x!==e||i.y!==t)&&(i.x=e,i.y=t,i.width=n,i.height=r,this.gl.viewport(e,t,n,r))},Object.defineProperty(e.prototype,`size`,{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(e,t,n,r,i){i===void 0&&(i=B3.COLOR|B3.DEPTH);var a=this.gl;a.clearColor(e,t,n,r),a.clear(i)},e.prototype.initFramebuffer=function(e){var t=this.gl,n=new yIe(t.createFramebuffer());return n.multisample=this.detectSamples(e.multisample),e.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(e),e.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(e){var t=this.gl,n=e.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(t.bindRenderbuffer(t.RENDERBUFFER,n.msaaBuffer),t.renderbufferStorageMultisample(t.RENDERBUFFER,n.multisample,t.RGBA8,e.width,e.height)),n.stencil&&(t.bindRenderbuffer(t.RENDERBUFFER,n.stencil),n.msaaBuffer?t.renderbufferStorageMultisample(t.RENDERBUFFER,n.multisample,t.DEPTH24_STENCIL8,e.width,e.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,e.width,e.height));var r=e.colorTextures,i=r.length;t.drawBuffers||(i=Math.min(i,1));for(var a=0;a1&&this.canMultisampleFramebuffer(e)?(r.msaaBuffer=r.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,r.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.RGBA8,e.width,e.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,r.msaaBuffer)):r.msaaBuffer&&(n.deleteRenderbuffer(r.msaaBuffer),r.msaaBuffer=null,r.blitFramebuffer&&=(r.blitFramebuffer.dispose(),null));for(var o=[],s=0;s1&&n.drawBuffers(o),e.depthTexture){var u=this.writeDepthTexture;if(u){var d=e.depthTexture;this.renderer.texture.bind(d,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,d._glTextures[this.CONTEXT_UID].texture,t)}}(e.stencil||e.depth)&&!(e.depthTexture&&this.writeDepthTexture)?(r.stencil=r.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,e.width,e.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,e.width,e.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,r.stencil)):r.stencil&&=(n.deleteRenderbuffer(r.stencil),null)},e.prototype.canMultisampleFramebuffer=function(e){return this.renderer.context.webGLVersion!==1&&e.colorTextures.length<=1&&!e.depthTexture},e.prototype.detectSamples=function(e){var t=this.msaaSamples,n=t6.NONE;if(e<=1||t===null)return n;for(var r=0;r=0&&this.managedFramebuffers.splice(i,1),e.disposeRunner.remove(this),t||(r.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&r.deleteRenderbuffer(n.msaaBuffer),n.stencil&&r.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(e){var t=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n=R3.WEBGL2&&(t=e.getContext(`webgl2`,{})),t||(t=e.getContext(`webgl`,{})||e.getContext(`experimental-webgl`,{}),t?t.getExtension(`WEBGL_draw_buffers`):t=null),a5=t}return a5}var o5;function bFe(){if(!o5){o5=$3.MEDIUM;var e=yFe();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);o5=t.precision?$3.HIGH:$3.MEDIUM}}return o5}function s5(e,t,n){if(e.substring(0,9)!==`precision`){var r=t;return t===$3.HIGH&&n!==$3.HIGH&&(r=$3.MEDIUM),`precision `+r+` float; -`+e}else if(n!==$3.HIGH&&e.substring(0,15)===`precision highp`)return e.replace(`precision highp`,`precision mediump`);return e}var xFe={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function c5(e){return xFe[e]}var l5=null,u5={FLOAT:`float`,FLOAT_VEC2:`vec2`,FLOAT_VEC3:`vec3`,FLOAT_VEC4:`vec4`,INT:`int`,INT_VEC2:`ivec2`,INT_VEC3:`ivec3`,INT_VEC4:`ivec4`,UNSIGNED_INT:`uint`,UNSIGNED_INT_VEC2:`uvec2`,UNSIGNED_INT_VEC3:`uvec3`,UNSIGNED_INT_VEC4:`uvec4`,BOOL:`bool`,BOOL_VEC2:`bvec2`,BOOL_VEC3:`bvec3`,BOOL_VEC4:`bvec4`,FLOAT_MAT2:`mat2`,FLOAT_MAT3:`mat3`,FLOAT_MAT4:`mat4`,SAMPLER_2D:`sampler2D`,INT_SAMPLER_2D:`sampler2D`,UNSIGNED_INT_SAMPLER_2D:`sampler2D`,SAMPLER_CUBE:`samplerCube`,INT_SAMPLER_CUBE:`samplerCube`,UNSIGNED_INT_SAMPLER_CUBE:`samplerCube`,SAMPLER_2D_ARRAY:`sampler2DArray`,INT_SAMPLER_2D_ARRAY:`sampler2DArray`,UNSIGNED_INT_SAMPLER_2D_ARRAY:`sampler2DArray`};function d5(e,t){if(!l5){var n=Object.keys(u5);l5={};for(var r=0;r=R3.WEBGL2&&(t=e.getContext(`webgl2`,{})),t||(t=e.getContext(`webgl`,{})||e.getContext(`experimental-webgl`,{}),t?t.getExtension(`WEBGL_draw_buffers`):t=null),a5=t}return a5}var o5;function wIe(){if(!o5){o5=$3.MEDIUM;var e=CIe();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);o5=t.precision?$3.HIGH:$3.MEDIUM}}return o5}function s5(e,t,n){if(e.substring(0,9)!==`precision`){var r=t;return t===$3.HIGH&&n!==$3.HIGH&&(r=$3.MEDIUM),`precision `+r+` float; +`+e}else if(n!==$3.HIGH&&e.substring(0,15)===`precision highp`)return e.replace(`precision highp`,`precision mediump`);return e}var TIe={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function c5(e){return TIe[e]}var l5=null,u5={FLOAT:`float`,FLOAT_VEC2:`vec2`,FLOAT_VEC3:`vec3`,FLOAT_VEC4:`vec4`,INT:`int`,INT_VEC2:`ivec2`,INT_VEC3:`ivec3`,INT_VEC4:`ivec4`,UNSIGNED_INT:`uint`,UNSIGNED_INT_VEC2:`uvec2`,UNSIGNED_INT_VEC3:`uvec3`,UNSIGNED_INT_VEC4:`uvec4`,BOOL:`bool`,BOOL_VEC2:`bvec2`,BOOL_VEC3:`bvec3`,BOOL_VEC4:`bvec4`,FLOAT_MAT2:`mat2`,FLOAT_MAT3:`mat3`,FLOAT_MAT4:`mat4`,SAMPLER_2D:`sampler2D`,INT_SAMPLER_2D:`sampler2D`,UNSIGNED_INT_SAMPLER_2D:`sampler2D`,SAMPLER_CUBE:`samplerCube`,INT_SAMPLER_CUBE:`samplerCube`,UNSIGNED_INT_SAMPLER_CUBE:`samplerCube`,SAMPLER_2D_ARRAY:`sampler2DArray`,INT_SAMPLER_2D_ARRAY:`sampler2DArray`,UNSIGNED_INT_SAMPLER_2D_ARRAY:`sampler2DArray`};function d5(e,t){if(!l5){var n=Object.keys(u5);l5={};for(var r=0;r0&&(t+=` -else `),n0&&(t+=` +else `),n0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==t&&this.renderer.gl.colorMask((n&1)!=0,(n&2)!=0,(n&4)!=0,(n&8)!=0)},e.prototype.destroy=function(){this.renderer=null},e}(),D5=function(){function e(e){this.renderer=e,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(e){var t=this.renderer.gl,n=this.getStackLength();this.maskStack=e;var r=this.getStackLength();r!==n&&(r===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),O5=new i8,k5=[],A5=function(e){_8(t,e);function t(t){var n=e.call(this,t)||this;return n.glConst=b6.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0},t.prototype.calcScissorRect=function(e){var t;if(!e._scissorRectLocal){var n=e._scissorRect,r=e.maskObject,i=this.renderer,a=i.renderTexture,o=r.getBounds(!0,(t=k5.pop())??new n8);this.roundFrameToPixels(o,a.current?a.current.resolution:i.resolution,a.sourceFrame,a.destinationFrame,i.projection.transform),n&&o.fit(n),e._scissorRectLocal=o}},t.isMatrixRotated=function(e){if(!e)return!1;var t=e.a,n=e.b,r=e.c,i=e.d;return(Math.abs(n)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(i)>1e-4)},t.prototype.testScissor=function(e){var n=e.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);var r=e._scissorRectLocal;return r.width>0&&r.height>0},t.prototype.roundFrameToPixels=function(e,n,r,i,a){t.isMatrixRotated(a)||(a=a?O5.copyFrom(a):O5.identity(),a.translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.renderer.filter.transformAABB(a,e),e.fit(i),e.x=Math.round(e.x*n),e.y=Math.round(e.y*n),e.width=Math.round(e.width*n),e.height=Math.round(e.height*n))},t.prototype.push=function(e){e._scissorRectLocal||this.calcScissorRect(e);var t=this.renderer.gl;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(e){var t=this.renderer.gl;e&&k5.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)},t.prototype._useCurrent=function(){var e=this.maskStack[this.maskStack.length-1]._scissorRect,t;t=this.renderer.renderTexture.current?e.y:this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)},t}(D5),j5=function(e){_8(t,e);function t(t){var n=e.call(this,t)||this;return n.glConst=b6.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},t.prototype.push=function(e){var t=e.maskObject,n=this.renderer.gl,r=e._stencilCounter;r===0&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),e._stencilCounter++;var i=e._colorMask;i!==0&&(e._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilFunc(n.EQUAL,r,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,i!==0&&(e._colorMask=i,n.colorMask((i&1)!=0,(i&2)!=0,(i&4)!=0,(i&8)!=0)),this._useCurrent()},t.prototype.pop=function(e){var t=this.renderer.gl;if(this.getStackLength()===0)t.disable(t.STENCIL_TEST);else{var n=this.maskStack.length===0?null:this.maskStack[this.maskStack.length-1],r=n?n._colorMask:15;r!==0&&(n._colorMask=0,t.colorMask(!1,!1,!1,!1)),t.stencilOp(t.KEEP,t.KEEP,t.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,r!==0&&(n._colorMask=r,t.colorMask((r&1)!=0,(r&2)!=0,(r&4)!=0,(r&8)!=0)),this._useCurrent()}},t.prototype._useCurrent=function(){var e=this.renderer.gl;e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},t}(D5),M5=function(){function e(e){this.renderer=e,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new i8,this.transform=null}return e.prototype.update=function(e,t,n,r){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||e,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,r),this.transform&&this.projectionMatrix.append(this.transform);var i=this.renderer;i.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,i.globalUniforms.update(),i.shader.shader&&i.shader.syncUniformGroup(i.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(e,t,n,r){var i=this.projectionMatrix,a=r?-1:1;i.identity(),i.a=1/t.width*2,i.d=a*(1/t.height*2),i.tx=-1-t.x*i.a,i.ty=-a-t.y*i.d},e.prototype.setTransform=function(e){},e.prototype.destroy=function(){this.renderer=null},e}(),N5=new n8,P5=new n8,F5=function(){function e(e){this.renderer=e,this.clearColor=e._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new n8,this.destinationFrame=new n8,this.viewportFrame=new n8}return e.prototype.bind=function(e,t,n){e===void 0&&(e=null);var r=this.renderer;this.current=e;var i,a,o;e?(i=e.baseTexture,o=i.resolution,t||=(N5.width=e.frame.width,N5.height=e.frame.height,N5),n||=(P5.x=e.frame.x,P5.y=e.frame.y,P5.width=t.width,P5.height=t.height,P5),a=i.framebuffer):(o=r.resolution,t||=(N5.width=r.screen.width,N5.height=r.screen.height,N5),n||(n=N5,n.width=t.width,n.height=t.height));var s=this.viewportFrame;s.x=n.x*o,s.y=n.y*o,s.width=n.width*o,s.height=n.height*o,e||(s.y=r.view.height-(s.y+s.height)),s.ceil(),this.renderer.framebuffer.bind(a,s),this.renderer.projection.update(n,t,o,!a),e?this.renderer.mask.setMaskStack(i.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(t),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(e,t){this.current?e||=this.current.baseTexture.clearColor:e||=this.clearColor;var n=this.destinationFrame,r=this.current?this.current.baseTexture:this.renderer.screen,i=n.width!==r.width||n.height!==r.height;if(i){var a=this.viewportFrame,o=a.x,s=a.y,c=a.width,l=a.height;o=Math.round(o),s=Math.round(s),c=Math.round(c),l=Math.round(l),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(o,s,c,l)}this.renderer.framebuffer.clear(e[0],e[1],e[2],e[3],t),i&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function RFe(e,t,n,r,i){n.buffer.update(i)}var zFe={float:` +`,T5=new i8,BIe=function(){function e(e,t){this._texture=e,this.mapCoord=new i8,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=t===void 0?.5:t,this.isSimple=!1}return Object.defineProperty(e.prototype,`texture`,{get:function(){return this._texture},set:function(e){this._texture=e,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(e,t){t===void 0&&(t=e);for(var n=this.mapCoord,r=0;r0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==t&&this.renderer.gl.colorMask((n&1)!=0,(n&2)!=0,(n&4)!=0,(n&8)!=0)},e.prototype.destroy=function(){this.renderer=null},e}(),D5=function(){function e(e){this.renderer=e,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(e){var t=this.renderer.gl,n=this.getStackLength();this.maskStack=e;var r=this.getStackLength();r!==n&&(r===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),O5=new i8,k5=[],A5=function(e){_8(t,e);function t(t){var n=e.call(this,t)||this;return n.glConst=b6.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,n}return t.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0},t.prototype.calcScissorRect=function(e){var t;if(!e._scissorRectLocal){var n=e._scissorRect,r=e.maskObject,i=this.renderer,a=i.renderTexture,o=r.getBounds(!0,(t=k5.pop())??new n8);this.roundFrameToPixels(o,a.current?a.current.resolution:i.resolution,a.sourceFrame,a.destinationFrame,i.projection.transform),n&&o.fit(n),e._scissorRectLocal=o}},t.isMatrixRotated=function(e){if(!e)return!1;var t=e.a,n=e.b,r=e.c,i=e.d;return(Math.abs(n)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(i)>1e-4)},t.prototype.testScissor=function(e){var n=e.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);var r=e._scissorRectLocal;return r.width>0&&r.height>0},t.prototype.roundFrameToPixels=function(e,n,r,i,a){t.isMatrixRotated(a)||(a=a?O5.copyFrom(a):O5.identity(),a.translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.renderer.filter.transformAABB(a,e),e.fit(i),e.x=Math.round(e.x*n),e.y=Math.round(e.y*n),e.width=Math.round(e.width*n),e.height=Math.round(e.height*n))},t.prototype.push=function(e){e._scissorRectLocal||this.calcScissorRect(e);var t=this.renderer.gl;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(e){var t=this.renderer.gl;e&&k5.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)},t.prototype._useCurrent=function(){var e=this.maskStack[this.maskStack.length-1]._scissorRect,t;t=this.renderer.renderTexture.current?e.y:this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)},t}(D5),j5=function(e){_8(t,e);function t(t){var n=e.call(this,t)||this;return n.glConst=b6.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,n}return t.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},t.prototype.push=function(e){var t=e.maskObject,n=this.renderer.gl,r=e._stencilCounter;r===0&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),e._stencilCounter++;var i=e._colorMask;i!==0&&(e._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilFunc(n.EQUAL,r,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,i!==0&&(e._colorMask=i,n.colorMask((i&1)!=0,(i&2)!=0,(i&4)!=0,(i&8)!=0)),this._useCurrent()},t.prototype.pop=function(e){var t=this.renderer.gl;if(this.getStackLength()===0)t.disable(t.STENCIL_TEST);else{var n=this.maskStack.length===0?null:this.maskStack[this.maskStack.length-1],r=n?n._colorMask:15;r!==0&&(n._colorMask=0,t.colorMask(!1,!1,!1,!1)),t.stencilOp(t.KEEP,t.KEEP,t.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,r!==0&&(n._colorMask=r,t.colorMask((r&1)!=0,(r&2)!=0,(r&4)!=0,(r&8)!=0)),this._useCurrent()}},t.prototype._useCurrent=function(){var e=this.renderer.gl;e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},t}(D5),M5=function(){function e(e){this.renderer=e,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new i8,this.transform=null}return e.prototype.update=function(e,t,n,r){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||e,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,r),this.transform&&this.projectionMatrix.append(this.transform);var i=this.renderer;i.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,i.globalUniforms.update(),i.shader.shader&&i.shader.syncUniformGroup(i.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(e,t,n,r){var i=this.projectionMatrix,a=r?-1:1;i.identity(),i.a=1/t.width*2,i.d=a*(1/t.height*2),i.tx=-1-t.x*i.a,i.ty=-a-t.y*i.d},e.prototype.setTransform=function(e){},e.prototype.destroy=function(){this.renderer=null},e}(),N5=new n8,P5=new n8,F5=function(){function e(e){this.renderer=e,this.clearColor=e._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new n8,this.destinationFrame=new n8,this.viewportFrame=new n8}return e.prototype.bind=function(e,t,n){e===void 0&&(e=null);var r=this.renderer;this.current=e;var i,a,o;e?(i=e.baseTexture,o=i.resolution,t||=(N5.width=e.frame.width,N5.height=e.frame.height,N5),n||=(P5.x=e.frame.x,P5.y=e.frame.y,P5.width=t.width,P5.height=t.height,P5),a=i.framebuffer):(o=r.resolution,t||=(N5.width=r.screen.width,N5.height=r.screen.height,N5),n||(n=N5,n.width=t.width,n.height=t.height));var s=this.viewportFrame;s.x=n.x*o,s.y=n.y*o,s.width=n.width*o,s.height=n.height*o,e||(s.y=r.view.height-(s.y+s.height)),s.ceil(),this.renderer.framebuffer.bind(a,s),this.renderer.projection.update(n,t,o,!a),e?this.renderer.mask.setMaskStack(i.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(t),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(e,t){this.current?e||=this.current.baseTexture.clearColor:e||=this.clearColor;var n=this.destinationFrame,r=this.current?this.current.baseTexture:this.renderer.screen,i=n.width!==r.width||n.height!==r.height;if(i){var a=this.viewportFrame,o=a.x,s=a.y,c=a.width,l=a.height;o=Math.round(o),s=Math.round(s),c=Math.round(c),l=Math.round(l),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(o,s,c,l)}this.renderer.framebuffer.clear(e[0],e[1],e[2],e[3],t),i&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function HIe(e,t,n,r,i){n.buffer.update(i)}var UIe={float:` data[offset] = v; `,vec2:` data[offset] = v[0]; @@ -4754,7 +4757,7 @@ void main(void) { data[offset + i] = v[i]; } - `},I5={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function BFe(e){for(var t=e.map(function(e){return{data:e,offset:0,dataLen:0,dirty:0}}),n=0,r=0,i=0,a=0;a1&&(n=Math.max(n,16)*o.data.size),o.dataLen=n,r%n!==0&&r<16){var s=r%n%16;r+=s,i+=s}r+n>16?(i=Math.ceil(i/16)*16,o.offset=i,i+=n,r=n):(o.offset=i,r+=n,i+=n)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function VFe(e,t){var n=[];for(var r in e)t[r]&&n.push(t[r]);return n.sort(function(e,t){return e.index-t.index}),n}function HFe(e,t){if(!e.autoManage)return{size:0,syncFunc:RFe};for(var n=VFe(e.uniforms,t),r=BFe(n),i=r.uboElements,a=r.size,o=[` + `},I5={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function WIe(e){for(var t=e.map(function(e){return{data:e,offset:0,dataLen:0,dirty:0}}),n=0,r=0,i=0,a=0;a1&&(n=Math.max(n,16)*o.data.size),o.dataLen=n,r%n!==0&&r<16){var s=r%n%16;r+=s,i+=s}r+n>16?(i=Math.ceil(i/16)*16,o.offset=i,i+=n,r=n):(o.offset=i,r+=n,i+=n)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function GIe(e,t){var n=[];for(var r in e)t[r]&&n.push(t[r]);return n.sort(function(e,t){return e.index-t.index}),n}function KIe(e,t){if(!e.autoManage)return{size:0,syncFunc:HIe};for(var n=GIe(e.uniforms,t),r=WIe(n),i=r.uboElements,a=r.size,o=[` var v = null; var v2 = null; var cv = null; @@ -4778,7 +4781,7 @@ void main(void) offset += `+_+`; } - `)}else{var v=zFe[c.data.type];o.push(` + `)}else{var v=UIe[c.data.type];o.push(` cv = ud.`+u+`.value; v = uv.`+u+`; offset = `+c.offset/4+`; @@ -4786,7 +4789,7 @@ void main(void) `)}}return o.push(` renderer.buffer.update(buffer); `),{size:a,syncFunc:Function(`ud`,`uv`,`renderer`,`syncData`,`buffer`,o.join(` -`))}}(function(){function e(){}return e})();var UFe=function(){function e(e,t){this.program=e,this.uniformData=t,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function WFe(e,t){for(var n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;it?1:-1});for(var o=0;o>=1,n++;this.stateId=e.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var e=this.renderer.texture,t=e.managedTextures,n=!1,r=0;rthis.maxIdle&&(e.destroyTexture(i,!0),t[r]=null,n=!0)}if(n){for(var a=0,r=0;r=0;r--)this.unload(e.children[r])},e.prototype.destroy=function(){this.renderer=null},e}();function tIe(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C;return C=`WebGL2RenderingContext`in globalThis&&e instanceof globalThis.WebGL2RenderingContext?(t={},t[G3.UNSIGNED_BYTE]=(n={},n[U3.RGBA]=e.RGBA8,n[U3.RGB]=e.RGB8,n[U3.RG]=e.RG8,n[U3.RED]=e.R8,n[U3.RGBA_INTEGER]=e.RGBA8UI,n[U3.RGB_INTEGER]=e.RGB8UI,n[U3.RG_INTEGER]=e.RG8UI,n[U3.RED_INTEGER]=e.R8UI,n[U3.ALPHA]=e.ALPHA,n[U3.LUMINANCE]=e.LUMINANCE,n[U3.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,n),t[G3.BYTE]=(r={},r[U3.RGBA]=e.RGBA8_SNORM,r[U3.RGB]=e.RGB8_SNORM,r[U3.RG]=e.RG8_SNORM,r[U3.RED]=e.R8_SNORM,r[U3.RGBA_INTEGER]=e.RGBA8I,r[U3.RGB_INTEGER]=e.RGB8I,r[U3.RG_INTEGER]=e.RG8I,r[U3.RED_INTEGER]=e.R8I,r),t[G3.UNSIGNED_SHORT]=(i={},i[U3.RGBA_INTEGER]=e.RGBA16UI,i[U3.RGB_INTEGER]=e.RGB16UI,i[U3.RG_INTEGER]=e.RG16UI,i[U3.RED_INTEGER]=e.R16UI,i[U3.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[G3.SHORT]=(a={},a[U3.RGBA_INTEGER]=e.RGBA16I,a[U3.RGB_INTEGER]=e.RGB16I,a[U3.RG_INTEGER]=e.RG16I,a[U3.RED_INTEGER]=e.R16I,a),t[G3.UNSIGNED_INT]=(o={},o[U3.RGBA_INTEGER]=e.RGBA32UI,o[U3.RGB_INTEGER]=e.RGB32UI,o[U3.RG_INTEGER]=e.RG32UI,o[U3.RED_INTEGER]=e.R32UI,o[U3.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,o),t[G3.INT]=(s={},s[U3.RGBA_INTEGER]=e.RGBA32I,s[U3.RGB_INTEGER]=e.RGB32I,s[U3.RG_INTEGER]=e.RG32I,s[U3.RED_INTEGER]=e.R32I,s),t[G3.FLOAT]=(c={},c[U3.RGBA]=e.RGBA32F,c[U3.RGB]=e.RGB32F,c[U3.RG]=e.RG32F,c[U3.RED]=e.R32F,c[U3.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,c),t[G3.HALF_FLOAT]=(l={},l[U3.RGBA]=e.RGBA16F,l[U3.RGB]=e.RGB16F,l[U3.RG]=e.RG16F,l[U3.RED]=e.R16F,l),t[G3.UNSIGNED_SHORT_5_6_5]=(u={},u[U3.RGB]=e.RGB565,u),t[G3.UNSIGNED_SHORT_4_4_4_4]=(d={},d[U3.RGBA]=e.RGBA4,d),t[G3.UNSIGNED_SHORT_5_5_5_1]=(f={},f[U3.RGBA]=e.RGB5_A1,f),t[G3.UNSIGNED_INT_2_10_10_10_REV]=(p={},p[U3.RGBA]=e.RGB10_A2,p[U3.RGBA_INTEGER]=e.RGB10_A2UI,p),t[G3.UNSIGNED_INT_10F_11F_11F_REV]=(m={},m[U3.RGB]=e.R11F_G11F_B10F,m),t[G3.UNSIGNED_INT_5_9_9_9_REV]=(h={},h[U3.RGB]=e.RGB9_E5,h),t[G3.UNSIGNED_INT_24_8]=(g={},g[U3.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,g),t[G3.FLOAT_32_UNSIGNED_INT_24_8_REV]=(_={},_[U3.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,_),t):(v={},v[G3.UNSIGNED_BYTE]=(y={},y[U3.RGBA]=e.RGBA,y[U3.RGB]=e.RGB,y[U3.ALPHA]=e.ALPHA,y[U3.LUMINANCE]=e.LUMINANCE,y[U3.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,y),v[G3.UNSIGNED_SHORT_5_6_5]=(b={},b[U3.RGB]=e.RGB,b),v[G3.UNSIGNED_SHORT_4_4_4_4]=(x={},x[U3.RGBA]=e.RGBA,x),v[G3.UNSIGNED_SHORT_5_5_5_1]=(S={},S[U3.RGBA]=e.RGBA,S),v),C}var V5=function(){function e(e){this.texture=e,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=G3.UNSIGNED_BYTE,this.internalFormat=U3.RGBA,this.samplerType=0}return e}(),H5=function(){function e(e){this.renderer=e,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new x8,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var e=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=tIe(e);var t=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=t;for(var n=0;n=0;--a){var o=n[a];if(o){var s=o._glTextures[i];s.samplerType!==K3.FLOAT&&this.renderer.texture.unbind(o)}}},e.prototype.initTexture=function(e){var t=new V5(this.gl.createTexture());return t.dirtyId=-1,e._glTextures[this.CONTEXT_UID]=t,this.managedTextures.push(e),e.on(`dispose`,this.destroyTexture,this),t},e.prototype.initTextureType=function(e,t){var n,r;t.internalFormat=(r=(n=this.internalFormats[e.type])?.[e.format])??e.format,this.webGLVersion===2&&e.type===G3.HALF_FLOAT?t.type=this.gl.HALF_FLOAT:t.type=e.type},e.prototype.updateTexture=function(e){var t=e._glTextures[this.CONTEXT_UID];if(t){var n=this.renderer;if(this.initTextureType(e,t),e.resource&&e.resource.upload(n,e,t))t.samplerType!==K3.FLOAT&&(this.hasIntegerTextures=!0);else{var r=e.realWidth,i=e.realHeight,a=n.gl;(t.width!==r||t.height!==i||t.dirtyId<0)&&(t.width=r,t.height=i,a.texImage2D(e.target,0,t.internalFormat,r,i,0,e.format,t.type,null))}e.dirtyStyleId!==t.dirtyStyleId&&this.updateTextureStyle(e),t.dirtyId=e.dirtyId}},e.prototype.destroyTexture=function(e,t){var n=this.gl;if(e=e.castToBaseTexture(),e._glTextures[this.CONTEXT_UID]&&(this.unbind(e),n.deleteTexture(e._glTextures[this.CONTEXT_UID].texture),e.off(`dispose`,this.destroyTexture,this),delete e._glTextures[this.CONTEXT_UID],!t)){var r=this.managedTextures.indexOf(e);r!==-1&&P6(this.managedTextures,r,1)}},e.prototype.updateTextureStyle=function(e){var t=e._glTextures[this.CONTEXT_UID];t&&((e.mipmap===Y3.POW2||this.webGLVersion!==2)&&!e.isPowerOfTwo?t.mipmap=!1:t.mipmap=e.mipmap>=1,this.webGLVersion!==2&&!e.isPowerOfTwo?t.wrapMode=J3.CLAMP:t.wrapMode=e.wrapMode,e.resource&&e.resource.style(this.renderer,e,t)||this.setStyle(e,t),t.dirtyStyleId=e.dirtyStyleId)},e.prototype.setStyle=function(e,t){var n=this.gl;if(t.mipmap&&e.mipmap!==Y3.ON_MANUAL&&n.generateMipmap(e.target),n.texParameteri(e.target,n.TEXTURE_WRAP_S,t.wrapMode),n.texParameteri(e.target,n.TEXTURE_WRAP_T,t.wrapMode),t.mipmap){n.texParameteri(e.target,n.TEXTURE_MIN_FILTER,e.scaleMode===q3.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var r=this.renderer.context.extensions.anisotropicFiltering;if(r&&e.anisotropicLevel>0&&e.scaleMode===q3.LINEAR){var i=Math.min(e.anisotropicLevel,n.getParameter(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(e.target,r.TEXTURE_MAX_ANISOTROPY_EXT,i)}}else n.texParameteri(e.target,n.TEXTURE_MIN_FILTER,e.scaleMode===q3.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(e.target,n.TEXTURE_MAG_FILTER,e.scaleMode===q3.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),U5={__proto__:null,FilterSystem:K8,BatchSystem:J8,ContextSystem:X8,FramebufferSystem:Z8,GeometrySystem:$8,MaskSystem:E5,ScissorSystem:A5,StencilSystem:j5,ProjectionSystem:M5,RenderTextureSystem:F5,ShaderSystem:R5,StateSystem:z5,TextureGCSystem:B5,TextureSystem:H5},W5=new i8,nIe=function(e){_8(t,e);function t(t,n){t===void 0&&(t=z3.UNKNOWN);var r=e.call(this)||this;return n=Object.assign({},b6.RENDER_OPTIONS,n),r.options=n,r.type=t,r.screen=new n8(0,0,n.width,n.height),r.view=n.view||b6.ADAPTER.createCanvas(),r.resolution=n.resolution||b6.RESOLUTION,r.useContextAlpha=n.useContextAlpha,r.autoDensity=!!n.autoDensity,r.preserveDrawingBuffer=n.preserveDrawingBuffer,r.clearBeforeRender=n.clearBeforeRender,r._backgroundColor=0,r._backgroundColorRgba=[0,0,0,1],r._backgroundColorString=`#000000`,r.backgroundColor=n.backgroundColor||r._backgroundColor,r.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(L6(`6.0.0`,`Option transparent is deprecated, please use backgroundAlpha instead.`),r.useContextAlpha=n.transparent,r.backgroundAlpha=n.transparent?0:1),r._lastObjectRendered=null,r.plugins={},r}return t.prototype.initPlugins=function(e){for(var t in e)this.plugins[t]=new e[t](this)},Object.defineProperty(t.prototype,`width`,{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`height`,{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,t){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(t*this.resolution);var n=this.view.width/this.resolution,r=this.view.height/this.resolution;this.screen.width=n,this.screen.height=r,this.autoDensity&&(this.view.style.width=n+`px`,this.view.style.height=r+`px`),this.emit(`resize`,n,r)},t.prototype.generateTexture=function(e,t,n,r){t===void 0&&(t={}),typeof t==`number`&&(L6(`6.1.0`,`generateTexture options (scaleMode, resolution, region) are now object options.`),t={scaleMode:t,resolution:n,region:r});var i=t.region,a=nFe(t,[`region`]);r=i||e.getLocalBounds(null,!0),r.width===0&&(r.width=1),r.height===0&&(r.height=1);var o=R8.create(v8({width:r.width,height:r.height},a));return W5.tx=-r.x,W5.ty=-r.y,this.render(e,{renderTexture:o,clear:!1,transform:W5,skipUpdateTransform:!!e.parent}),o},t.prototype.destroy=function(e){for(var t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var n=this;n.plugins=null,n.type=z3.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,`backgroundColor`,{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=KPe(e),k6(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`backgroundAlpha`,{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),t}(C6.default),rIe=function(){function e(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),iIe=function(){function e(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(e){var t=this,n=t.gl,r=t.CONTEXT_UID,i=e._glBuffers[r]||this.createGLBuffer(e);n.bindBuffer(e.type,i.buffer)},e.prototype.bindBufferBase=function(e,t){var n=this,r=n.gl,i=n.CONTEXT_UID;if(this.boundBufferBases[t]!==e){var a=e._glBuffers[i]||this.createGLBuffer(e);this.boundBufferBases[t]=e,r.bindBufferBase(r.UNIFORM_BUFFER,t,a.buffer)}},e.prototype.bindBufferRange=function(e,t,n){var r=this,i=r.gl,a=r.CONTEXT_UID;n||=0;var o=e._glBuffers[a]||this.createGLBuffer(e);i.bindBufferRange(i.UNIFORM_BUFFER,t||0,o.buffer,n*256,256)},e.prototype.update=function(e){var t=this,n=t.gl,r=t.CONTEXT_UID,i=e._glBuffers[r];if(e._updateID!==i.updateID)if(i.updateID=e._updateID,n.bindBuffer(e.type,i.buffer),i.byteLength>=e.data.byteLength)n.bufferSubData(e.type,0,e.data);else{var a=e.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;i.byteLength=e.data.byteLength,n.bufferData(e.type,e.data,a)}},e.prototype.dispose=function(e,t){if(this.managedBuffers[e.id]){delete this.managedBuffers[e.id];var n=e._glBuffers[this.CONTEXT_UID],r=this.gl;e.disposeRunner.remove(this),n&&(t||r.deleteBuffer(n.buffer),delete e._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(e){for(var t=Object.keys(this.managedBuffers),n=0;n=t6.HIGH?this.multisample=t6.HIGH:t>=t6.MEDIUM?this.multisample=t6.MEDIUM:t>=t6.LOW?this.multisample=t6.LOW:this.multisample=t6.NONE},t.prototype.addSystem=function(e,t){var n=new e(this);if(this[t])throw Error(`Whoops! The name "`+t+`" is already in use`);for(var r in this[t]=n,this.runners)this.runners[r].add(n);return this},t.prototype.render=function(e,t){var n,r,i,a;if(t&&(t instanceof R8?(L6(`6.0.0`,`Renderer#render arguments changed, use options instead.`),n=t,r=arguments[2],i=arguments[3],a=arguments[4]):(n=t.renderTexture,r=t.clear,i=t.transform,a=t.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit(`prerender`),this.projection.transform=i,!this.context.isLost){if(n||(this._lastObjectRendered=e),!a){var o=e.enableTempParent();e.updateTransform(),e.disableTempParent(o)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(r===void 0?this.clearBeforeRender:r)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit(`postrender`)}},t.prototype.generateTexture=function(t,n,r,i){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,t,n,r,i);return this.framebuffer.blit(),a},t.prototype.resize=function(t,n){e.prototype.resize.call(this,t,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(t){for(var n in this.runners.destroy.emit(),this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,t),this.gl=null},Object.defineProperty(t.prototype,`extract`,{get:function(){return L6(`6.0.0`,`Renderer#extract has been deprecated, please use Renderer#plugins.extract instead.`),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(e,t){L6(`6.5.0`,`Renderer.registerPlugin() has been deprecated, please use extensions.add() instead.`),K6.add({name:e,type:W6.RendererPlugin,ref:t})},t.__plugins={},t}(nIe);K6.handleByMap(W6.RendererPlugin,G5.__plugins);function aIe(e){return G5.create(e)}var oIe=`attribute vec2 aVertexPosition; +`))}}(function(){function e(){}return e})();var qIe=function(){function e(e,t){this.program=e,this.uniformData=t,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function JIe(e,t){for(var n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;it?1:-1});for(var o=0;o>=1,n++;this.stateId=e.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var e=this.renderer.texture,t=e.managedTextures,n=!1,r=0;rthis.maxIdle&&(e.destroyTexture(i,!0),t[r]=null,n=!0)}if(n){for(var a=0,r=0;r=0;r--)this.unload(e.children[r])},e.prototype.destroy=function(){this.renderer=null},e}();function aLe(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C;return C=`WebGL2RenderingContext`in globalThis&&e instanceof globalThis.WebGL2RenderingContext?(t={},t[G3.UNSIGNED_BYTE]=(n={},n[U3.RGBA]=e.RGBA8,n[U3.RGB]=e.RGB8,n[U3.RG]=e.RG8,n[U3.RED]=e.R8,n[U3.RGBA_INTEGER]=e.RGBA8UI,n[U3.RGB_INTEGER]=e.RGB8UI,n[U3.RG_INTEGER]=e.RG8UI,n[U3.RED_INTEGER]=e.R8UI,n[U3.ALPHA]=e.ALPHA,n[U3.LUMINANCE]=e.LUMINANCE,n[U3.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,n),t[G3.BYTE]=(r={},r[U3.RGBA]=e.RGBA8_SNORM,r[U3.RGB]=e.RGB8_SNORM,r[U3.RG]=e.RG8_SNORM,r[U3.RED]=e.R8_SNORM,r[U3.RGBA_INTEGER]=e.RGBA8I,r[U3.RGB_INTEGER]=e.RGB8I,r[U3.RG_INTEGER]=e.RG8I,r[U3.RED_INTEGER]=e.R8I,r),t[G3.UNSIGNED_SHORT]=(i={},i[U3.RGBA_INTEGER]=e.RGBA16UI,i[U3.RGB_INTEGER]=e.RGB16UI,i[U3.RG_INTEGER]=e.RG16UI,i[U3.RED_INTEGER]=e.R16UI,i[U3.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[G3.SHORT]=(a={},a[U3.RGBA_INTEGER]=e.RGBA16I,a[U3.RGB_INTEGER]=e.RGB16I,a[U3.RG_INTEGER]=e.RG16I,a[U3.RED_INTEGER]=e.R16I,a),t[G3.UNSIGNED_INT]=(o={},o[U3.RGBA_INTEGER]=e.RGBA32UI,o[U3.RGB_INTEGER]=e.RGB32UI,o[U3.RG_INTEGER]=e.RG32UI,o[U3.RED_INTEGER]=e.R32UI,o[U3.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,o),t[G3.INT]=(s={},s[U3.RGBA_INTEGER]=e.RGBA32I,s[U3.RGB_INTEGER]=e.RGB32I,s[U3.RG_INTEGER]=e.RG32I,s[U3.RED_INTEGER]=e.R32I,s),t[G3.FLOAT]=(c={},c[U3.RGBA]=e.RGBA32F,c[U3.RGB]=e.RGB32F,c[U3.RG]=e.RG32F,c[U3.RED]=e.R32F,c[U3.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,c),t[G3.HALF_FLOAT]=(l={},l[U3.RGBA]=e.RGBA16F,l[U3.RGB]=e.RGB16F,l[U3.RG]=e.RG16F,l[U3.RED]=e.R16F,l),t[G3.UNSIGNED_SHORT_5_6_5]=(u={},u[U3.RGB]=e.RGB565,u),t[G3.UNSIGNED_SHORT_4_4_4_4]=(d={},d[U3.RGBA]=e.RGBA4,d),t[G3.UNSIGNED_SHORT_5_5_5_1]=(f={},f[U3.RGBA]=e.RGB5_A1,f),t[G3.UNSIGNED_INT_2_10_10_10_REV]=(p={},p[U3.RGBA]=e.RGB10_A2,p[U3.RGBA_INTEGER]=e.RGB10_A2UI,p),t[G3.UNSIGNED_INT_10F_11F_11F_REV]=(m={},m[U3.RGB]=e.R11F_G11F_B10F,m),t[G3.UNSIGNED_INT_5_9_9_9_REV]=(h={},h[U3.RGB]=e.RGB9_E5,h),t[G3.UNSIGNED_INT_24_8]=(g={},g[U3.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,g),t[G3.FLOAT_32_UNSIGNED_INT_24_8_REV]=(_={},_[U3.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,_),t):(v={},v[G3.UNSIGNED_BYTE]=(y={},y[U3.RGBA]=e.RGBA,y[U3.RGB]=e.RGB,y[U3.ALPHA]=e.ALPHA,y[U3.LUMINANCE]=e.LUMINANCE,y[U3.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,y),v[G3.UNSIGNED_SHORT_5_6_5]=(b={},b[U3.RGB]=e.RGB,b),v[G3.UNSIGNED_SHORT_4_4_4_4]=(x={},x[U3.RGBA]=e.RGBA,x),v[G3.UNSIGNED_SHORT_5_5_5_1]=(S={},S[U3.RGBA]=e.RGBA,S),v),C}var V5=function(){function e(e){this.texture=e,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=G3.UNSIGNED_BYTE,this.internalFormat=U3.RGBA,this.samplerType=0}return e}(),H5=function(){function e(e){this.renderer=e,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new x8,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var e=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=aLe(e);var t=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=t;for(var n=0;n=0;--a){var o=n[a];if(o){var s=o._glTextures[i];s.samplerType!==K3.FLOAT&&this.renderer.texture.unbind(o)}}},e.prototype.initTexture=function(e){var t=new V5(this.gl.createTexture());return t.dirtyId=-1,e._glTextures[this.CONTEXT_UID]=t,this.managedTextures.push(e),e.on(`dispose`,this.destroyTexture,this),t},e.prototype.initTextureType=function(e,t){var n,r;t.internalFormat=(r=(n=this.internalFormats[e.type])?.[e.format])??e.format,this.webGLVersion===2&&e.type===G3.HALF_FLOAT?t.type=this.gl.HALF_FLOAT:t.type=e.type},e.prototype.updateTexture=function(e){var t=e._glTextures[this.CONTEXT_UID];if(t){var n=this.renderer;if(this.initTextureType(e,t),e.resource&&e.resource.upload(n,e,t))t.samplerType!==K3.FLOAT&&(this.hasIntegerTextures=!0);else{var r=e.realWidth,i=e.realHeight,a=n.gl;(t.width!==r||t.height!==i||t.dirtyId<0)&&(t.width=r,t.height=i,a.texImage2D(e.target,0,t.internalFormat,r,i,0,e.format,t.type,null))}e.dirtyStyleId!==t.dirtyStyleId&&this.updateTextureStyle(e),t.dirtyId=e.dirtyId}},e.prototype.destroyTexture=function(e,t){var n=this.gl;if(e=e.castToBaseTexture(),e._glTextures[this.CONTEXT_UID]&&(this.unbind(e),n.deleteTexture(e._glTextures[this.CONTEXT_UID].texture),e.off(`dispose`,this.destroyTexture,this),delete e._glTextures[this.CONTEXT_UID],!t)){var r=this.managedTextures.indexOf(e);r!==-1&&P6(this.managedTextures,r,1)}},e.prototype.updateTextureStyle=function(e){var t=e._glTextures[this.CONTEXT_UID];t&&((e.mipmap===Y3.POW2||this.webGLVersion!==2)&&!e.isPowerOfTwo?t.mipmap=!1:t.mipmap=e.mipmap>=1,this.webGLVersion!==2&&!e.isPowerOfTwo?t.wrapMode=J3.CLAMP:t.wrapMode=e.wrapMode,e.resource&&e.resource.style(this.renderer,e,t)||this.setStyle(e,t),t.dirtyStyleId=e.dirtyStyleId)},e.prototype.setStyle=function(e,t){var n=this.gl;if(t.mipmap&&e.mipmap!==Y3.ON_MANUAL&&n.generateMipmap(e.target),n.texParameteri(e.target,n.TEXTURE_WRAP_S,t.wrapMode),n.texParameteri(e.target,n.TEXTURE_WRAP_T,t.wrapMode),t.mipmap){n.texParameteri(e.target,n.TEXTURE_MIN_FILTER,e.scaleMode===q3.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var r=this.renderer.context.extensions.anisotropicFiltering;if(r&&e.anisotropicLevel>0&&e.scaleMode===q3.LINEAR){var i=Math.min(e.anisotropicLevel,n.getParameter(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(e.target,r.TEXTURE_MAX_ANISOTROPY_EXT,i)}}else n.texParameteri(e.target,n.TEXTURE_MIN_FILTER,e.scaleMode===q3.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(e.target,n.TEXTURE_MAG_FILTER,e.scaleMode===q3.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),U5={__proto__:null,FilterSystem:K8,BatchSystem:J8,ContextSystem:X8,FramebufferSystem:Z8,GeometrySystem:$8,MaskSystem:E5,ScissorSystem:A5,StencilSystem:j5,ProjectionSystem:M5,RenderTextureSystem:F5,ShaderSystem:R5,StateSystem:z5,TextureGCSystem:B5,TextureSystem:H5},W5=new i8,oLe=function(e){_8(t,e);function t(t,n){t===void 0&&(t=z3.UNKNOWN);var r=e.call(this)||this;return n=Object.assign({},b6.RENDER_OPTIONS,n),r.options=n,r.type=t,r.screen=new n8(0,0,n.width,n.height),r.view=n.view||b6.ADAPTER.createCanvas(),r.resolution=n.resolution||b6.RESOLUTION,r.useContextAlpha=n.useContextAlpha,r.autoDensity=!!n.autoDensity,r.preserveDrawingBuffer=n.preserveDrawingBuffer,r.clearBeforeRender=n.clearBeforeRender,r._backgroundColor=0,r._backgroundColorRgba=[0,0,0,1],r._backgroundColorString=`#000000`,r.backgroundColor=n.backgroundColor||r._backgroundColor,r.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(L6(`6.0.0`,`Option transparent is deprecated, please use backgroundAlpha instead.`),r.useContextAlpha=n.transparent,r.backgroundAlpha=n.transparent?0:1),r._lastObjectRendered=null,r.plugins={},r}return t.prototype.initPlugins=function(e){for(var t in e)this.plugins[t]=new e[t](this)},Object.defineProperty(t.prototype,`width`,{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`height`,{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,t){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(t*this.resolution);var n=this.view.width/this.resolution,r=this.view.height/this.resolution;this.screen.width=n,this.screen.height=r,this.autoDensity&&(this.view.style.width=n+`px`,this.view.style.height=r+`px`),this.emit(`resize`,n,r)},t.prototype.generateTexture=function(e,t,n,r){t===void 0&&(t={}),typeof t==`number`&&(L6(`6.1.0`,`generateTexture options (scaleMode, resolution, region) are now object options.`),t={scaleMode:t,resolution:n,region:r});var i=t.region,a=oIe(t,[`region`]);r=i||e.getLocalBounds(null,!0),r.width===0&&(r.width=1),r.height===0&&(r.height=1);var o=R8.create(v8({width:r.width,height:r.height},a));return W5.tx=-r.x,W5.ty=-r.y,this.render(e,{renderTexture:o,clear:!1,transform:W5,skipUpdateTransform:!!e.parent}),o},t.prototype.destroy=function(e){for(var t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var n=this;n.plugins=null,n.type=z3.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,`backgroundColor`,{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=XFe(e),k6(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`backgroundAlpha`,{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),t}(C6.default),sLe=function(){function e(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),cLe=function(){function e(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(e){var t=this,n=t.gl,r=t.CONTEXT_UID,i=e._glBuffers[r]||this.createGLBuffer(e);n.bindBuffer(e.type,i.buffer)},e.prototype.bindBufferBase=function(e,t){var n=this,r=n.gl,i=n.CONTEXT_UID;if(this.boundBufferBases[t]!==e){var a=e._glBuffers[i]||this.createGLBuffer(e);this.boundBufferBases[t]=e,r.bindBufferBase(r.UNIFORM_BUFFER,t,a.buffer)}},e.prototype.bindBufferRange=function(e,t,n){var r=this,i=r.gl,a=r.CONTEXT_UID;n||=0;var o=e._glBuffers[a]||this.createGLBuffer(e);i.bindBufferRange(i.UNIFORM_BUFFER,t||0,o.buffer,n*256,256)},e.prototype.update=function(e){var t=this,n=t.gl,r=t.CONTEXT_UID,i=e._glBuffers[r];if(e._updateID!==i.updateID)if(i.updateID=e._updateID,n.bindBuffer(e.type,i.buffer),i.byteLength>=e.data.byteLength)n.bufferSubData(e.type,0,e.data);else{var a=e.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;i.byteLength=e.data.byteLength,n.bufferData(e.type,e.data,a)}},e.prototype.dispose=function(e,t){if(this.managedBuffers[e.id]){delete this.managedBuffers[e.id];var n=e._glBuffers[this.CONTEXT_UID],r=this.gl;e.disposeRunner.remove(this),n&&(t||r.deleteBuffer(n.buffer),delete e._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(e){for(var t=Object.keys(this.managedBuffers),n=0;n=t6.HIGH?this.multisample=t6.HIGH:t>=t6.MEDIUM?this.multisample=t6.MEDIUM:t>=t6.LOW?this.multisample=t6.LOW:this.multisample=t6.NONE},t.prototype.addSystem=function(e,t){var n=new e(this);if(this[t])throw Error(`Whoops! The name "`+t+`" is already in use`);for(var r in this[t]=n,this.runners)this.runners[r].add(n);return this},t.prototype.render=function(e,t){var n,r,i,a;if(t&&(t instanceof R8?(L6(`6.0.0`,`Renderer#render arguments changed, use options instead.`),n=t,r=arguments[2],i=arguments[3],a=arguments[4]):(n=t.renderTexture,r=t.clear,i=t.transform,a=t.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit(`prerender`),this.projection.transform=i,!this.context.isLost){if(n||(this._lastObjectRendered=e),!a){var o=e.enableTempParent();e.updateTransform(),e.disableTempParent(o)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(r===void 0?this.clearBeforeRender:r)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit(`postrender`)}},t.prototype.generateTexture=function(t,n,r,i){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,t,n,r,i);return this.framebuffer.blit(),a},t.prototype.resize=function(t,n){e.prototype.resize.call(this,t,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(t){for(var n in this.runners.destroy.emit(),this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,t),this.gl=null},Object.defineProperty(t.prototype,`extract`,{get:function(){return L6(`6.0.0`,`Renderer#extract has been deprecated, please use Renderer#plugins.extract instead.`),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(e,t){L6(`6.5.0`,`Renderer.registerPlugin() has been deprecated, please use extensions.add() instead.`),K6.add({name:e,type:W6.RendererPlugin,ref:t})},t.__plugins={},t}(oLe);K6.handleByMap(W6.RendererPlugin,G5.__plugins);function lLe(e){return G5.create(e)}var uLe=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -4797,7 +4800,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,sIe=oIe;(function(){function e(e){L6(`6.1.0`,`System class is deprecated, implemement ISystem interface instead.`),this.renderer=e}return e.prototype.destroy=function(){this.renderer=null},e})();var cIe=function(){function e(){this.texArray=null,this.blend=0,this.type=H3.TRIANGLES,this.start=0,this.size=0,this.data=null}return e}(),lIe=function(){function e(){this.elements=[],this.ids=[],this.count=0}return e.prototype.clear=function(){for(var e=0;ethis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)},t.prototype.buildTexturesAndDrawCalls=function(){var e=this,n=e._bufferedTextures,r=e.MAX_TEXTURES,i=t._textureArrayPool,a=this.renderer.batch,o=this._tempBoundTextures,s=this.renderer.textureGC.count,c=++x8._globalBatch,l=0,u=i[0],d=0;a.copyBoundTextures(o,r);for(var f=0;f=r&&(a.boundArray(u,o,c,r),this.buildDrawCalls(u,d,f),d=f,u=i[++l],++c),p._batchEnabled=c,p.touched=s,u.elements[u.count++]=p)}u.count>0&&(a.boundArray(u,o,c,r),this.buildDrawCalls(u,d,this._bufferSize),++l,++c);for(var f=0;fthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)},t.prototype.buildTexturesAndDrawCalls=function(){var e=this,n=e._bufferedTextures,r=e.MAX_TEXTURES,i=t._textureArrayPool,a=this.renderer.batch,o=this._tempBoundTextures,s=this.renderer.textureGC.count,c=++x8._globalBatch,l=0,u=i[0],d=0;a.copyBoundTextures(o,r);for(var f=0;f=r&&(a.boundArray(u,o,c,r),this.buildDrawCalls(u,d,f),d=f,u=i[++l],++c),p._batchEnabled=c,p.touched=s,u.elements[u.count++]=p)}u.count>0&&(a.boundArray(u,o,c,r),this.buildDrawCalls(u,d,this._bufferSize),++l,++c);for(var f=0;f0&&(t+=` else `),nthis.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?n8.EMPTY:(e||=new n8(0,0,1,1),e.x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},e.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},e.prototype.addPointMatrix=function(e,t){var n=e.a,r=e.b,i=e.c,a=e.d,o=e.tx,s=e.ty,c=n*t.x+i*t.y+o,l=r*t.x+a*t.y+s;this.minX=Math.min(this.minX,c),this.maxX=Math.max(this.maxX,c),this.minY=Math.min(this.minY,l),this.maxY=Math.max(this.maxY,l)},e.prototype.addQuad=function(e){var t=this.minX,n=this.minY,r=this.maxX,i=this.maxY,a=e[0],o=e[1];t=ar?a:r,i=o>i?o:i,a=e[2],o=e[3],t=ar?a:r,i=o>i?o:i,a=e[4],o=e[5],t=ar?a:r,i=o>i?o:i,a=e[6],o=e[7],t=ar?a:r,i=o>i?o:i,this.minX=t,this.minY=n,this.maxX=r,this.maxY=i},e.prototype.addFrame=function(e,t,n,r,i){this.addFrameMatrix(e.worldTransform,t,n,r,i)},e.prototype.addFrameMatrix=function(e,t,n,r,i){var a=e.a,o=e.b,s=e.c,c=e.d,l=e.tx,u=e.ty,d=this.minX,f=this.minY,p=this.maxX,m=this.maxY,h=a*t+s*n+l,g=o*t+c*n+u;d=hp?h:p,m=g>m?g:m,h=a*r+s*n+l,g=o*r+c*n+u,d=hp?h:p,m=g>m?g:m,h=a*t+s*i+l,g=o*t+c*i+u,d=hp?h:p,m=g>m?g:m,h=a*r+s*i+l,g=o*r+c*i+u,d=hp?h:p,m=g>m?g:m,this.minX=d,this.minY=f,this.maxX=p,this.maxY=m},e.prototype.addVertexData=function(e,t,n){for(var r=this.minX,i=this.minY,a=this.maxX,o=this.maxY,s=t;sa?c:a,o=l>o?l:o}this.minX=r,this.minY=i,this.maxX=a,this.maxY=o},e.prototype.addVertices=function(e,t,n,r){this.addVerticesMatrix(e.worldTransform,t,n,r)},e.prototype.addVerticesMatrix=function(e,t,n,r,i,a){i===void 0&&(i=0),a===void 0&&(a=i);for(var o=e.a,s=e.b,c=e.c,l=e.d,u=e.tx,d=e.ty,f=this.minX,p=this.minY,m=this.maxX,h=this.maxY,g=n;gr?e.maxX:r,this.maxY=e.maxY>i?e.maxY:i},e.prototype.addBoundsMask=function(e,t){var n=e.minX>t.minX?e.minX:t.minX,r=e.minY>t.minY?e.minY:t.minY,i=e.maxXc?i:c,this.maxY=a>l?a:l}},e.prototype.addBoundsMatrix=function(e,t){this.addFrameMatrix(t,e.minX,e.minY,e.maxX,e.maxY)},e.prototype.addBoundsArea=function(e,t){var n=e.minX>t.x?e.minX:t.x,r=e.minY>t.y?e.minY:t.y,i=e.maxXc?i:c,this.maxY=a>l?a:l}},e.prototype.pad=function(e,t){e===void 0&&(e=0),t===void 0&&(t=e),this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t)},e.prototype.addFramePad=function(e,t,n,r,i,a){e-=i,t-=a,n+=i,r+=a,this.minX=this.minXn?this.maxX:n,this.minY=this.minYr?this.maxY:r},e}(),X5=function(e,t){return X5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},X5(e,t)};function Z5(e,t){X5(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Q5=function(e){Z5(t,e);function t(){var t=e.call(this)||this;return t.tempDisplayObjectParent=null,t.transform=new p8,t.alpha=1,t.visible=!0,t.renderable=!0,t.cullable=!1,t.cullArea=null,t.parent=null,t.worldAlpha=1,t._lastSortedIndex=0,t._zIndex=0,t.filterArea=null,t.filters=null,t._enabledFilters=null,t._bounds=new Y5,t._localBounds=null,t._boundsID=0,t._boundsRect=null,t._localBoundsRect=null,t._mask=null,t._maskRefCount=0,t._destroyed=!1,t.isSprite=!1,t.isMask=!1,t}return t.mixin=function(e){for(var n=Object.keys(e),r=0;r1)for(var r=0;rthis.children.length)throw Error(e+`addChildAt: The index `+t+` supplied is out of bounds `+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit(`added`,this),this.emit(`childAdded`,e,this,t),e},t.prototype.swapChildren=function(e,t){if(e!==t){var n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n=this.children.length)throw Error(`The index `+t+` supplied is out of bounds `+this.children.length);var n=this.getChildIndex(e);P6(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw Error(`getChildAt: Index (`+e+`) does not exist.`);return this.children[e]},t.prototype.removeChild=function(){for(var e=arguments,t=[],n=0;n1)for(var r=0;r0&&i<=r){a=this.children.splice(n,i);for(var o=0;o1&&this.children.sort(xIe),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,t=this.children.length;e0&&n.height>0){var r,i;if(this.cullArea?(r=this.cullArea,i=this.worldTransform):this._render!==t.prototype._render&&(r=this.getBounds(!0)),r&&n.intersects(r,i))this._render(e);else if(this.cullArea)return;for(var a=0,o=this.children.length;a{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[n[e]&63];return t};var n7=Math.pow,r7=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),CIe=class e{constructor(){this._breathParameters=[],this._currentTime=0}static create(){return new e}setParameters(e){this._breathParameters=e}getParameters(){return this._breathParameters}updateParameters(e,t){this._currentTime+=t;let n=this._currentTime*2*3.14159;for(let t=0;t=1&&(r=1,this._blinkingState=s7.EyeState_Closed,this._stateStartTimeSeconds=this._userTimeSeconds),n=1-r;break;case s7.EyeState_Closed:r=(this._userTimeSeconds-this._stateStartTimeSeconds)/this._closedSeconds,r>=1&&(this._blinkingState=s7.EyeState_Opening,this._stateStartTimeSeconds=this._userTimeSeconds),n=0;break;case s7.EyeState_Opening:r=(this._userTimeSeconds-this._stateStartTimeSeconds)/this._openingSeconds,r>=1&&(r=1,this._blinkingState=s7.EyeState_Interval,this._nextBlinkingTime=this.determinNextBlinkingTiming()),n=r;break;case s7.EyeState_Interval:this._nextBlinkingTime(e[e.EyeState_First=0]=`EyeState_First`,e[e.EyeState_Interval=1]=`EyeState_Interval`,e[e.EyeState_Closing=2]=`EyeState_Closing`,e[e.EyeState_Closed=3]=`EyeState_Closed`,e[e.EyeState_Opening=4]=`EyeState_Opening`,e))(s7||{});const c7=.5;var wIe=class e{static create(t){let n=new e;typeof t.FadeInTime==`number`&&(n._fadeTimeSeconds=t.FadeInTime,n._fadeTimeSeconds<=0&&(n._fadeTimeSeconds=c7));let r=t.Groups,i=r.length;for(let e=0;e.001){if(i>=0)break;i=o,a=e.getPartOpacityByIndex(n),a+=t/this._fadeTimeSeconds,a>1&&(a=1)}}i<0&&(i=0,a=1);for(let t=n;ts&&(r=1-s/(1-a)),t>r&&(t=r),e.setPartOpacityByIndex(n,t)}}}constructor(){this._fadeTimeSeconds=c7,this._lastModel=void 0,this._partGroups=[],this._partGroupCounts=[]}},l7=class e{constructor(e){this.parameterIndex=0,this.partIndex=0,this.partId=``,this.link=[],e!=null&&this.assignment(e)}assignment(e){return this.partId=e.partId,this.link=e.link.map(e=>e.clone()),this}initialize(e){this.parameterIndex=e.getParameterIndex(this.partId),this.partIndex=e.getPartIndex(this.partId),e.setParameterValueByIndex(this.parameterIndex,1)}clone(){let t=new e;return t.partId=this.partId,t.parameterIndex=this.parameterIndex,t.partIndex=this.partIndex,t.link=this.link.map(e=>e.clone()),t}},u7=class e{constructor(e,t){this.x=e||0,this.y=t||0}add(t){let n=new e(0,0);return n.x=this.x+t.x,n.y=this.y+t.y,n}substract(t){let n=new e(0,0);return n.x=this.x-t.x,n.y=this.y-t.y,n}multiply(t){let n=new e(0,0);return n.x=this.x*t.x,n.y=this.y*t.y,n}multiplyByScaler(t){return this.multiply(new e(t,t))}division(t){let n=new e(0,0);return n.x=this.x/t.x,n.y=this.y/t.y,n}divisionByScalar(t){return this.division(new e(t,t))}getLength(){return Math.sqrt(this.x*this.x+this.y*this.y)}getDistanceWith(e){return Math.sqrt((this.x-e.x)*(this.x-e.x)+(this.y-e.y)*(this.y-e.y))}dot(e){return this.x*e.x+this.y*e.y}normalize(){let e=(this.x*this.x+this.y*this.y)**.5;this.x/=e,this.y/=e}isEqual(e){return this.x==e.x&&this.y==e.y}isNotEqual(e){return!this.isEqual(e)}};const d7=class{static range(e,t,n){return en&&(e=n),e}static sin(e){return Math.sin(e)}static cos(e){return Math.cos(e)}static abs(e){return Math.abs(e)}static sqrt(e){return Math.sqrt(e)}static cbrt(e){if(e===0)return e;let t=e,n=t<0;n&&(t=-t);let r;return t===1/0?r=1/0:(r=Math.exp(Math.log(t)/3),r=(t/(r*r)+2*r)/3),n?-r:r}static getEasingSine(e){return e<0?0:e>1?1:.5-.5*this.cos(e*Math.PI)}static max(e,t){return e>t?e:t}static min(e,t){return e>t?t:e}static degreesToRadian(e){return e/180*Math.PI}static radianToDegrees(e){return e*180/Math.PI}static directionToRadian(e,t){let n=Math.atan2(t.y,t.x),r=Math.atan2(e.y,e.x),i=n-r;for(;i<-Math.PI;)i+=Math.PI*2;for(;i>Math.PI;)i-=Math.PI*2;return i}static directionToDegrees(e,t){let n=this.directionToRadian(e,t),r=this.radianToDegrees(n);return t.x-e.x>0&&(r=-r),r}static radianToDirection(e){let t=new u7;return t.x=this.sin(e),t.y=this.cos(e),t}static quadraticEquation(e,t,n){return this.abs(e)1&&(e=1),t<0?t=0:t>1&&(t=1),n<0?n=0:n>1&&(n=1),r<0?r=0:r>1&&(r=1),this._modelColor.R=e,this._modelColor.G=t,this._modelColor.B=n,this._modelColor.A=r}getModelColor(){return Object.assign({},this._modelColor)}setIsPremultipliedAlpha(e){this._isPremultipliedAlpha=e}isPremultipliedAlpha(){return this._isPremultipliedAlpha}setIsCulling(e){this._isCulling=e}isCulling(){return this._isCulling}setAnisotropy(e){this._anisortopy=e}getAnisotropy(){return this._anisortopy}getModel(){return this._model}constructor(){this._isCulling=!1,this._isPremultipliedAlpha=!1,this._anisortopy=0,this._modelColor=new g7,this._mvpMatrix4x4=new p7,this._mvpMatrix4x4.loadIdentity()}},h7=(e=>(e[e.CubismBlendMode_Normal=0]=`CubismBlendMode_Normal`,e[e.CubismBlendMode_Additive=1]=`CubismBlendMode_Additive`,e[e.CubismBlendMode_Multiplicative=2]=`CubismBlendMode_Multiplicative`,e))(h7||{}),g7=class{constructor(){this.R=1,this.G=1,this.B=1,this.A=1}};let _7=!1,v7=!1,y7;const b7={vertexOffset:0,vertexStep:2};var x7=class{static startUp(e){if(_7)return w7(`CubismFramework.startUp() is already done.`),_7;if(Live2DCubismCore._isStarted)return _7=!0,!0;if(Live2DCubismCore._isStarted=!0,y7=e,y7&&Live2DCubismCore.Logging.csmSetLogFunction(y7.logFunction),_7=!0,_7){let e=Live2DCubismCore.Version.csmGetVersion(),t=(e&4278190080)>>24,n=(e&16711680)>>16,r=e&65535,i=e;w7(`Live2D Cubism Core version: {0}.{1}.{2} ({3})`,(`00`+t).slice(-2),(`00`+n).slice(-2),(`0000`+r).slice(-4),i)}return w7(`CubismFramework.startUp() is complete.`),_7}static cleanUp(){_7=!1,v7=!1,y7=void 0}static initialize(){if(!_7){T7(`CubismFramework is not started.`);return}if(v7){T7(`CubismFramework.initialize() skipped, already initialized.`);return}v7=!0,w7(`CubismFramework.initialize() is complete.`)}static dispose(){if(!_7){T7(`CubismFramework is not started.`);return}if(!v7){T7(`CubismFramework.dispose() skipped, not initialized.`);return}m7.staticRelease(),v7=!1,w7(`CubismFramework.dispose() is complete.`)}static isStarted(){return _7}static isInitialized(){return v7}static coreLogFunction(e){Live2DCubismCore.Logging.csmGetLogFunction()&&Live2DCubismCore.Logging.csmGetLogFunction()(e)}static getLoggingLevel(){return y7==null?S7.LogLevel_Off:y7.loggingLevel}constructor(){}},S7=(e=>(e[e.LogLevel_Verbose=0]=`LogLevel_Verbose`,e[e.LogLevel_Debug=1]=`LogLevel_Debug`,e[e.LogLevel_Info=2]=`LogLevel_Info`,e[e.LogLevel_Warning=3]=`LogLevel_Warning`,e[e.LogLevel_Error=4]=`LogLevel_Error`,e[e.LogLevel_Off=5]=`LogLevel_Off`,e))(S7||{});function C7(e,...t){D7.print(S7.LogLevel_Debug,`[CSM][D]`+e+` +`,vLe=function(){function e(){}return e.create=function(e){var t=Object.assign({vertex:K5,fragment:q5,geometryClass:_Le,vertexSize:6},e),n=t.vertex,r=t.fragment,i=t.vertexSize,a=t.geometryClass;return function(e){_8(t,e);function t(t){var o=e.call(this,t)||this;return o.shaderGenerator=new gLe(n,r),o.geometryClass=a,o.vertexSize=i,o}return t}(hLe)},Object.defineProperty(e,`defaultVertexSrc`,{get:function(){return K5},enumerable:!1,configurable:!0}),Object.defineProperty(e,`defaultFragmentTemplate`,{get:function(){return q5},enumerable:!1,configurable:!0}),e}(),yLe=vLe.create();Object.assign(yLe,{extension:{name:`batch`,type:W6.RendererPlugin}});var bLe={},xLe=function(e){Object.defineProperty(bLe,e,{get:function(){return L6(`6.0.0`,`PIXI.systems.`+e+` has moved to PIXI.`+e),j8[e]}})};for(var J5 in j8)xLe(J5);var SLe={},CLe=function(e){Object.defineProperty(SLe,e,{get:function(){return L6(`6.0.0`,`PIXI.resources.`+e+` has moved to PIXI.`+e),U5[e]}})};for(var J5 in U5)CLe(J5);b6.SORTABLE_CHILDREN=!1;var Y5=function(){function e(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?n8.EMPTY:(e||=new n8(0,0,1,1),e.x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},e.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},e.prototype.addPointMatrix=function(e,t){var n=e.a,r=e.b,i=e.c,a=e.d,o=e.tx,s=e.ty,c=n*t.x+i*t.y+o,l=r*t.x+a*t.y+s;this.minX=Math.min(this.minX,c),this.maxX=Math.max(this.maxX,c),this.minY=Math.min(this.minY,l),this.maxY=Math.max(this.maxY,l)},e.prototype.addQuad=function(e){var t=this.minX,n=this.minY,r=this.maxX,i=this.maxY,a=e[0],o=e[1];t=ar?a:r,i=o>i?o:i,a=e[2],o=e[3],t=ar?a:r,i=o>i?o:i,a=e[4],o=e[5],t=ar?a:r,i=o>i?o:i,a=e[6],o=e[7],t=ar?a:r,i=o>i?o:i,this.minX=t,this.minY=n,this.maxX=r,this.maxY=i},e.prototype.addFrame=function(e,t,n,r,i){this.addFrameMatrix(e.worldTransform,t,n,r,i)},e.prototype.addFrameMatrix=function(e,t,n,r,i){var a=e.a,o=e.b,s=e.c,c=e.d,l=e.tx,u=e.ty,d=this.minX,f=this.minY,p=this.maxX,m=this.maxY,h=a*t+s*n+l,g=o*t+c*n+u;d=hp?h:p,m=g>m?g:m,h=a*r+s*n+l,g=o*r+c*n+u,d=hp?h:p,m=g>m?g:m,h=a*t+s*i+l,g=o*t+c*i+u,d=hp?h:p,m=g>m?g:m,h=a*r+s*i+l,g=o*r+c*i+u,d=hp?h:p,m=g>m?g:m,this.minX=d,this.minY=f,this.maxX=p,this.maxY=m},e.prototype.addVertexData=function(e,t,n){for(var r=this.minX,i=this.minY,a=this.maxX,o=this.maxY,s=t;sa?c:a,o=l>o?l:o}this.minX=r,this.minY=i,this.maxX=a,this.maxY=o},e.prototype.addVertices=function(e,t,n,r){this.addVerticesMatrix(e.worldTransform,t,n,r)},e.prototype.addVerticesMatrix=function(e,t,n,r,i,a){i===void 0&&(i=0),a===void 0&&(a=i);for(var o=e.a,s=e.b,c=e.c,l=e.d,u=e.tx,d=e.ty,f=this.minX,p=this.minY,m=this.maxX,h=this.maxY,g=n;gr?e.maxX:r,this.maxY=e.maxY>i?e.maxY:i},e.prototype.addBoundsMask=function(e,t){var n=e.minX>t.minX?e.minX:t.minX,r=e.minY>t.minY?e.minY:t.minY,i=e.maxXc?i:c,this.maxY=a>l?a:l}},e.prototype.addBoundsMatrix=function(e,t){this.addFrameMatrix(t,e.minX,e.minY,e.maxX,e.maxY)},e.prototype.addBoundsArea=function(e,t){var n=e.minX>t.x?e.minX:t.x,r=e.minY>t.y?e.minY:t.y,i=e.maxXc?i:c,this.maxY=a>l?a:l}},e.prototype.pad=function(e,t){e===void 0&&(e=0),t===void 0&&(t=e),this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t)},e.prototype.addFramePad=function(e,t,n,r,i,a){e-=i,t-=a,n+=i,r+=a,this.minX=this.minXn?this.maxX:n,this.minY=this.minYr?this.maxY:r},e}(),X5=function(e,t){return X5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},X5(e,t)};function Z5(e,t){X5(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Q5=function(e){Z5(t,e);function t(){var t=e.call(this)||this;return t.tempDisplayObjectParent=null,t.transform=new p8,t.alpha=1,t.visible=!0,t.renderable=!0,t.cullable=!1,t.cullArea=null,t.parent=null,t.worldAlpha=1,t._lastSortedIndex=0,t._zIndex=0,t.filterArea=null,t.filters=null,t._enabledFilters=null,t._bounds=new Y5,t._localBounds=null,t._boundsID=0,t._boundsRect=null,t._localBoundsRect=null,t._mask=null,t._maskRefCount=0,t._destroyed=!1,t.isSprite=!1,t.isMask=!1,t}return t.mixin=function(e){for(var n=Object.keys(e),r=0;r1)for(var r=0;rthis.children.length)throw Error(e+`addChildAt: The index `+t+` supplied is out of bounds `+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit(`added`,this),this.emit(`childAdded`,e,this,t),e},t.prototype.swapChildren=function(e,t){if(e!==t){var n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n=this.children.length)throw Error(`The index `+t+` supplied is out of bounds `+this.children.length);var n=this.getChildIndex(e);P6(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw Error(`getChildAt: Index (`+e+`) does not exist.`);return this.children[e]},t.prototype.removeChild=function(){for(var e=arguments,t=[],n=0;n1)for(var r=0;r0&&i<=r){a=this.children.splice(n,i);for(var o=0;o1&&this.children.sort(TLe),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,t=this.children.length;e0&&n.height>0){var r,i;if(this.cullArea?(r=this.cullArea,i=this.worldTransform):this._render!==t.prototype._render&&(r=this.getBounds(!0)),r&&n.intersects(r,i))this._render(e);else if(this.cullArea)return;for(var a=0,o=this.children.length;a{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[n[e]&63];return t};var n7=Math.pow,r7=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),DLe=class e{constructor(){this._breathParameters=[],this._currentTime=0}static create(){return new e}setParameters(e){this._breathParameters=e}getParameters(){return this._breathParameters}updateParameters(e,t){this._currentTime+=t;let n=this._currentTime*2*3.14159;for(let t=0;t=1&&(r=1,this._blinkingState=s7.EyeState_Closed,this._stateStartTimeSeconds=this._userTimeSeconds),n=1-r;break;case s7.EyeState_Closed:r=(this._userTimeSeconds-this._stateStartTimeSeconds)/this._closedSeconds,r>=1&&(this._blinkingState=s7.EyeState_Opening,this._stateStartTimeSeconds=this._userTimeSeconds),n=0;break;case s7.EyeState_Opening:r=(this._userTimeSeconds-this._stateStartTimeSeconds)/this._openingSeconds,r>=1&&(r=1,this._blinkingState=s7.EyeState_Interval,this._nextBlinkingTime=this.determinNextBlinkingTiming()),n=r;break;case s7.EyeState_Interval:this._nextBlinkingTime(e[e.EyeState_First=0]=`EyeState_First`,e[e.EyeState_Interval=1]=`EyeState_Interval`,e[e.EyeState_Closing=2]=`EyeState_Closing`,e[e.EyeState_Closed=3]=`EyeState_Closed`,e[e.EyeState_Opening=4]=`EyeState_Opening`,e))(s7||{});const c7=.5;var OLe=class e{static create(t){let n=new e;typeof t.FadeInTime==`number`&&(n._fadeTimeSeconds=t.FadeInTime,n._fadeTimeSeconds<=0&&(n._fadeTimeSeconds=c7));let r=t.Groups,i=r.length;for(let e=0;e.001){if(i>=0)break;i=o,a=e.getPartOpacityByIndex(n),a+=t/this._fadeTimeSeconds,a>1&&(a=1)}}i<0&&(i=0,a=1);for(let t=n;ts&&(r=1-s/(1-a)),t>r&&(t=r),e.setPartOpacityByIndex(n,t)}}}constructor(){this._fadeTimeSeconds=c7,this._lastModel=void 0,this._partGroups=[],this._partGroupCounts=[]}},l7=class e{constructor(e){this.parameterIndex=0,this.partIndex=0,this.partId=``,this.link=[],e!=null&&this.assignment(e)}assignment(e){return this.partId=e.partId,this.link=e.link.map(e=>e.clone()),this}initialize(e){this.parameterIndex=e.getParameterIndex(this.partId),this.partIndex=e.getPartIndex(this.partId),e.setParameterValueByIndex(this.parameterIndex,1)}clone(){let t=new e;return t.partId=this.partId,t.parameterIndex=this.parameterIndex,t.partIndex=this.partIndex,t.link=this.link.map(e=>e.clone()),t}},u7=class e{constructor(e,t){this.x=e||0,this.y=t||0}add(t){let n=new e(0,0);return n.x=this.x+t.x,n.y=this.y+t.y,n}substract(t){let n=new e(0,0);return n.x=this.x-t.x,n.y=this.y-t.y,n}multiply(t){let n=new e(0,0);return n.x=this.x*t.x,n.y=this.y*t.y,n}multiplyByScaler(t){return this.multiply(new e(t,t))}division(t){let n=new e(0,0);return n.x=this.x/t.x,n.y=this.y/t.y,n}divisionByScalar(t){return this.division(new e(t,t))}getLength(){return Math.sqrt(this.x*this.x+this.y*this.y)}getDistanceWith(e){return Math.sqrt((this.x-e.x)*(this.x-e.x)+(this.y-e.y)*(this.y-e.y))}dot(e){return this.x*e.x+this.y*e.y}normalize(){let e=(this.x*this.x+this.y*this.y)**.5;this.x/=e,this.y/=e}isEqual(e){return this.x==e.x&&this.y==e.y}isNotEqual(e){return!this.isEqual(e)}};const d7=class{static range(e,t,n){return en&&(e=n),e}static sin(e){return Math.sin(e)}static cos(e){return Math.cos(e)}static abs(e){return Math.abs(e)}static sqrt(e){return Math.sqrt(e)}static cbrt(e){if(e===0)return e;let t=e,n=t<0;n&&(t=-t);let r;return t===1/0?r=1/0:(r=Math.exp(Math.log(t)/3),r=(t/(r*r)+2*r)/3),n?-r:r}static getEasingSine(e){return e<0?0:e>1?1:.5-.5*this.cos(e*Math.PI)}static max(e,t){return e>t?e:t}static min(e,t){return e>t?t:e}static degreesToRadian(e){return e/180*Math.PI}static radianToDegrees(e){return e*180/Math.PI}static directionToRadian(e,t){let n=Math.atan2(t.y,t.x),r=Math.atan2(e.y,e.x),i=n-r;for(;i<-Math.PI;)i+=Math.PI*2;for(;i>Math.PI;)i-=Math.PI*2;return i}static directionToDegrees(e,t){let n=this.directionToRadian(e,t),r=this.radianToDegrees(n);return t.x-e.x>0&&(r=-r),r}static radianToDirection(e){let t=new u7;return t.x=this.sin(e),t.y=this.cos(e),t}static quadraticEquation(e,t,n){return this.abs(e)1&&(e=1),t<0?t=0:t>1&&(t=1),n<0?n=0:n>1&&(n=1),r<0?r=0:r>1&&(r=1),this._modelColor.R=e,this._modelColor.G=t,this._modelColor.B=n,this._modelColor.A=r}getModelColor(){return Object.assign({},this._modelColor)}setIsPremultipliedAlpha(e){this._isPremultipliedAlpha=e}isPremultipliedAlpha(){return this._isPremultipliedAlpha}setIsCulling(e){this._isCulling=e}isCulling(){return this._isCulling}setAnisotropy(e){this._anisortopy=e}getAnisotropy(){return this._anisortopy}getModel(){return this._model}constructor(){this._isCulling=!1,this._isPremultipliedAlpha=!1,this._anisortopy=0,this._modelColor=new g7,this._mvpMatrix4x4=new p7,this._mvpMatrix4x4.loadIdentity()}},h7=(e=>(e[e.CubismBlendMode_Normal=0]=`CubismBlendMode_Normal`,e[e.CubismBlendMode_Additive=1]=`CubismBlendMode_Additive`,e[e.CubismBlendMode_Multiplicative=2]=`CubismBlendMode_Multiplicative`,e))(h7||{}),g7=class{constructor(){this.R=1,this.G=1,this.B=1,this.A=1}};let _7=!1,v7=!1,y7;const b7={vertexOffset:0,vertexStep:2};var x7=class{static startUp(e){if(_7)return w7(`CubismFramework.startUp() is already done.`),_7;if(Live2DCubismCore._isStarted)return _7=!0,!0;if(Live2DCubismCore._isStarted=!0,y7=e,y7&&Live2DCubismCore.Logging.csmSetLogFunction(y7.logFunction),_7=!0,_7){let e=Live2DCubismCore.Version.csmGetVersion(),t=(e&4278190080)>>24,n=(e&16711680)>>16,r=e&65535,i=e;w7(`Live2D Cubism Core version: {0}.{1}.{2} ({3})`,(`00`+t).slice(-2),(`00`+n).slice(-2),(`0000`+r).slice(-4),i)}return w7(`CubismFramework.startUp() is complete.`),_7}static cleanUp(){_7=!1,v7=!1,y7=void 0}static initialize(){if(!_7){T7(`CubismFramework is not started.`);return}if(v7){T7(`CubismFramework.initialize() skipped, already initialized.`);return}v7=!0,w7(`CubismFramework.initialize() is complete.`)}static dispose(){if(!_7){T7(`CubismFramework is not started.`);return}if(!v7){T7(`CubismFramework.dispose() skipped, not initialized.`);return}m7.staticRelease(),v7=!1,w7(`CubismFramework.dispose() is complete.`)}static isStarted(){return _7}static isInitialized(){return v7}static coreLogFunction(e){Live2DCubismCore.Logging.csmGetLogFunction()&&Live2DCubismCore.Logging.csmGetLogFunction()(e)}static getLoggingLevel(){return y7==null?S7.LogLevel_Off:y7.loggingLevel}constructor(){}},S7=(e=>(e[e.LogLevel_Verbose=0]=`LogLevel_Verbose`,e[e.LogLevel_Debug=1]=`LogLevel_Debug`,e[e.LogLevel_Info=2]=`LogLevel_Info`,e[e.LogLevel_Warning=3]=`LogLevel_Warning`,e[e.LogLevel_Error=4]=`LogLevel_Error`,e[e.LogLevel_Off=5]=`LogLevel_Off`,e))(S7||{});function C7(e,...t){D7.print(S7.LogLevel_Debug,`[CSM][D]`+e+` `,t)}function w7(e,...t){D7.print(S7.LogLevel_Info,`[CSM][I]`+e+` `,t)}function T7(e,...t){D7.print(S7.LogLevel_Warning,`[CSM][W]`+e+` `,t)}function E7(e,...t){D7.print(S7.LogLevel_Error,`[CSM][E]`+e+` `,t)}var D7=class{static print(e,t,n){if(en[t]);r(i)}static dumpBytes(e,t,n){for(let r=0;r0?this.print(e,` `):r%8==0&&r>0&&this.print(e,` `),this.print(e,`{0} `,[t[r]&255]);this.print(e,` -`)}constructor(){}},TIe=class{update(){this._model.update(),this._model.drawables.resetDynamicFlags()}getCanvasWidth(){return this._model==null?0:this._model.canvasinfo.CanvasWidth/this._model.canvasinfo.PixelsPerUnit}getCanvasHeight(){return this._model==null?0:this._model.canvasinfo.CanvasHeight/this._model.canvasinfo.PixelsPerUnit}saveParameters(){let e=this._model.parameters.count,t=this._savedParameters.length;for(let n=0;nt&&(t=this._model.parameters.minimumValues[e]),this._parameterValues[e]=n==1?t:this._parameterValues[e]=this._parameterValues[e]*(1-n)+t*n}setParameterValueById(e,t,n=1){let r=this.getParameterIndex(e);this.setParameterValueByIndex(r,t,n)}addParameterValueByIndex(e,t,n=1){this.setParameterValueByIndex(e,this.getParameterValueByIndex(e)+t*n)}addParameterValueById(e,t,n=1){let r=this.getParameterIndex(e);this.addParameterValueByIndex(r,t,n)}multiplyParameterValueById(e,t,n=1){let r=this.getParameterIndex(e);this.multiplyParameterValueByIndex(r,t,n)}multiplyParameterValueByIndex(e,t,n=1){this.setParameterValueByIndex(e,this.getParameterValueByIndex(e)*(1+(t-1)*n))}getDrawableIds(){return this._drawableIds.slice()}getDrawableIndex(e){let t=this._model.drawables.count;for(let n=0;nt&&(e=t);for(let t=0;t0&&t.getEndTime()(e[e.ExpressionBlendType_Add=0]=`ExpressionBlendType_Add`,e[e.ExpressionBlendType_Multiply=1]=`ExpressionBlendType_Multiply`,e[e.ExpressionBlendType_Overwrite=2]=`ExpressionBlendType_Overwrite`,e))(k7||{}),A7;(e=>{e.supportMoreMaskDivisions=!0,e.setOpacityFromMotion=!1})(A7||={});var j7=(e=>(e[e.CubismMotionCurveTarget_Model=0]=`CubismMotionCurveTarget_Model`,e[e.CubismMotionCurveTarget_Parameter=1]=`CubismMotionCurveTarget_Parameter`,e[e.CubismMotionCurveTarget_PartOpacity=2]=`CubismMotionCurveTarget_PartOpacity`,e))(j7||{}),M7=(e=>(e[e.CubismMotionSegmentType_Linear=0]=`CubismMotionSegmentType_Linear`,e[e.CubismMotionSegmentType_Bezier=1]=`CubismMotionSegmentType_Bezier`,e[e.CubismMotionSegmentType_Stepped=2]=`CubismMotionSegmentType_Stepped`,e[e.CubismMotionSegmentType_InverseStepped=3]=`CubismMotionSegmentType_InverseStepped`,e))(M7||{}),N7=class{constructor(e=0,t=0){this.time=e,this.value=t}},OIe=class{constructor(){this.basePointIndex=0,this.segmentType=0}},kIe=class{constructor(){this.id=``,this.type=0,this.segmentCount=0,this.baseSegmentIndex=0,this.fadeInTime=0,this.fadeOutTime=0}},AIe=class{constructor(){this.fireTime=0,this.value=``}},jIe=class{constructor(){this.duration=0,this.loop=!1,this.curveCount=0,this.eventCount=0,this.fps=0,this.curves=[],this.segments=[],this.points=[],this.events=[]}},P7=class{constructor(e){this._json=e}release(){this._json=void 0}getMotionDuration(){return this._json.Meta.Duration}isMotionLoop(){return this._json.Meta.Loop||!1}getEvaluationOptionFlag(e){return F7.EvaluationOptionFlag_AreBeziersRistricted==e?!!this._json.Meta.AreBeziersRestricted:!1}getMotionCurveCount(){return this._json.Meta.CurveCount}getMotionFps(){return this._json.Meta.Fps}getMotionTotalSegmentCount(){return this._json.Meta.TotalSegmentCount}getMotionTotalPointCount(){return this._json.Meta.TotalPointCount}getMotionFadeInTime(){return this._json.Meta.FadeInTime}getMotionFadeOutTime(){return this._json.Meta.FadeOutTime}getMotionCurveTarget(e){return this._json.Curves[e].Target}getMotionCurveId(e){return this._json.Curves[e].Id}getMotionCurveFadeInTime(e){return this._json.Curves[e].FadeInTime}getMotionCurveFadeOutTime(e){return this._json.Curves[e].FadeOutTime}getMotionCurveSegmentCount(e){return this._json.Curves[e].Segments.length}getMotionCurveSegment(e,t){return this._json.Curves[e].Segments[t]}getEventCount(){return this._json.Meta.UserDataCount||0}getTotalEventValueSize(){return this._json.Meta.TotalUserDataSize}getEventTime(e){return this._json.UserData[e].Time}getEventValue(e){return this._json.UserData[e].Value}},F7=(e=>(e[e.EvaluationOptionFlag_AreBeziersRistricted=0]=`EvaluationOptionFlag_AreBeziersRistricted`,e))(F7||{});function I7(e,t,n){let r=new N7;return r.time=e.time+(t.time-e.time)*n,r.value=e.value+(t.value-e.value)*n,r}function MIe(e,t){let n=(t-e[0].time)/(e[1].time-e[0].time);return n<0&&(n=0),e[0].value+(e[1].value-e[0].value)*n}function NIe(e,t){let n=(t-e[0].time)/(e[3].time-e[0].time);n<0&&(n=0);let r=I7(e[0],e[1],n),i=I7(e[1],e[2],n),a=I7(e[2],e[3],n),o=I7(r,i,n),s=I7(i,a,n);return I7(o,s,n).value}function PIe(e,t){let n=t,r=e[0].time,i=e[3].time,a=e[1].time,o=e[2].time,s=i-3*o+3*a-r,c=3*o-6*a+3*r,l=3*a-3*r,u=r-n,d=f7.cardanoAlgorithmForBezier(s,c,l,u),f=I7(e[0],e[1],d),p=I7(e[1],e[2],d),m=I7(e[2],e[3],d),h=I7(f,p,d),g=I7(p,m,d);return I7(h,g,d).value}function FIe(e,t){return e[0].value}function IIe(e,t){return e[1].value}function L7(e,t,n){let r=e.curves[t],i=-1,a=r.baseSegmentIndex+r.segmentCount,o=0;for(let t=r.baseSegmentIndex;tn){i=t;break}if(i==-1)return e.points[o].value;let s=e.segments[i];return s.evaluate(e.points.slice(s.basePointIndex),n)}var LIe=class e extends O7{constructor(){super(),this._eyeBlinkParameterIds=[],this._lipSyncParameterIds=[],this._sourceFrameRate=30,this._loopDurationSeconds=-1,this._isLoop=!1,this._isLoopFadeIn=!0,this._lastWeight=0}static create(t,n){let r=new e;return r.parse(t),r._sourceFrameRate=r._motionData.fps,r._loopDurationSeconds=r._motionData.duration,r._onFinishedMotion=n,r}doUpdateParameters(e,t,n,r){this._modelCurveIdEyeBlink??=`EyeBlink`,this._modelCurveIdLipSync??=`LipSync`;let i=t-r.getStartTime();i<0&&(i=0);let a=Number.MAX_VALUE,o=Number.MAX_VALUE,s=0,c=0;this._eyeBlinkParameterIds.length>64&&C7(`too many eye blink targets : {0}`,this._eyeBlinkParameterIds.length),this._lipSyncParameterIds.length>64&&C7(`too many lip sync targets : {0}`,this._lipSyncParameterIds.length);let l=this._fadeInSeconds<=0?1:f7.getEasingSine((t-r.getFadeInStartTime())/this._fadeInSeconds),u=this._fadeOutSeconds<=0||r.getEndTime()<0?1:f7.getEasingSine((r.getEndTime()-t)/this._fadeOutSeconds),d,f,p,m=i;if(this._isLoop)for(;m>this._motionData.duration;)m-=this._motionData.duration;let h=this._motionData.curves;for(f=0;f>t&1)continue;let i=r+(o-r)*n;e.setParameterValueById(this._eyeBlinkParameterIds[t],i)}if(a!=Number.MAX_VALUE)for(let t=0;t>t&1)continue;let i=r+(a-r)*n;e.setParameterValueById(this._lipSyncParameterIds[t],i)}for(;f=this._motionData.duration&&(this._isLoop?(r.setStartTime(t),this._isLoopFadeIn&&r.setFadeInStartTime(t)):(this._onFinishedMotion&&this._onFinishedMotion(this),r.setIsFinished(!0))),this._lastWeight=n}setIsLoop(e){this._isLoop=e}isLoop(){return this._isLoop}setIsLoopFadeIn(e){this._isLoopFadeIn=e}isLoopFadeIn(){return this._isLoopFadeIn}getDuration(){return this._isLoop?-1:this._loopDurationSeconds}getLoopDuration(){return this._loopDurationSeconds}setParameterFadeInTime(e,t){let n=this._motionData.curves;for(let r=0;rnew kIe),this._motionData.segments=Array.from({length:t.getMotionTotalSegmentCount()}).map(()=>new OIe),this._motionData.events=Array.from({length:this._motionData.eventCount}).map(()=>new AIe),this._motionData.points=[];let a=0,o=0;for(let e=0;ee&&this._motionData.events[n].fireTime<=t&&this._firedEventValues.push(this._motionData.events[n].value);return this._firedEventValues}},RIe=class{constructor(){this._autoDelete=!1,this._available=!0,this._finished=!1,this._started=!1,this._startTimeSeconds=-1,this._fadeInStartTimeSeconds=0,this._endTimeSeconds=-1,this._stateTimeSeconds=0,this._stateWeight=0,this._lastEventCheckSeconds=0,this._motionQueueEntryHandle=this,this._fadeOutSeconds=0,this._isTriggeredFadeOut=!1}release(){this._autoDelete&&this._motion&&this._motion.release()}setFadeOut(e){this._fadeOutSeconds=e,this._isTriggeredFadeOut=!0}startFadeOut(e,t){let n=t+e;this._isTriggeredFadeOut=!0,(this._endTimeSeconds<0||nt!=null&&t._motionQueueEntryHandle==e)}setEventCallback(e,t=null){this._eventCallBack=e,this._eventCustomData=t}doUpdateMotion(e,t){let n=!1,r=0;for(;r(e[e.CubismPhysicsTargetType_Parameter=0]=`CubismPhysicsTargetType_Parameter`,e))(z7||{}),B7=(e=>(e[e.CubismPhysicsSource_X=0]=`CubismPhysicsSource_X`,e[e.CubismPhysicsSource_Y=1]=`CubismPhysicsSource_Y`,e[e.CubismPhysicsSource_Angle=2]=`CubismPhysicsSource_Angle`,e))(B7||{}),BIe=class{constructor(){this.initialPosition=new u7(0,0),this.position=new u7(0,0),this.lastPosition=new u7(0,0),this.lastGravity=new u7(0,0),this.force=new u7(0,0),this.velocity=new u7(0,0)}},VIe=class{constructor(){this.normalizationPosition={},this.normalizationAngle={}}},HIe=class{constructor(){this.source={}}},UIe=class{constructor(){this.destination={},this.translationScale=new u7(0,0)}},WIe=class{constructor(){this.settings=[],this.inputs=[],this.outputs=[],this.particles=[],this.gravity=new u7(0,0),this.wind=new u7(0,0)}},GIe=class{constructor(e){this._json=e}release(){this._json=void 0}getGravity(){let e=new u7(0,0);return e.x=this._json.Meta.EffectiveForces.Gravity.X,e.y=this._json.Meta.EffectiveForces.Gravity.Y,e}getWind(){let e=new u7(0,0);return e.x=this._json.Meta.EffectiveForces.Wind.X,e.y=this._json.Meta.EffectiveForces.Wind.Y,e}getSubRigCount(){return this._json.Meta.PhysicsSettingCount}getTotalInputCount(){return this._json.Meta.TotalInputCount}getTotalOutputCount(){return this._json.Meta.TotalOutputCount}getVertexCount(){return this._json.Meta.VertexCount}getNormalizationPositionMinimumValue(e){return this._json.PhysicsSettings[e].Normalization.Position.Minimum}getNormalizationPositionMaximumValue(e){return this._json.PhysicsSettings[e].Normalization.Position.Maximum}getNormalizationPositionDefaultValue(e){return this._json.PhysicsSettings[e].Normalization.Position.Default}getNormalizationAngleMinimumValue(e){return this._json.PhysicsSettings[e].Normalization.Angle.Minimum}getNormalizationAngleMaximumValue(e){return this._json.PhysicsSettings[e].Normalization.Angle.Maximum}getNormalizationAngleDefaultValue(e){return this._json.PhysicsSettings[e].Normalization.Angle.Default}getInputCount(e){return this._json.PhysicsSettings[e].Input.length}getInputWeight(e,t){return this._json.PhysicsSettings[e].Input[t].Weight}getInputReflect(e,t){return this._json.PhysicsSettings[e].Input[t].Reflect}getInputType(e,t){return this._json.PhysicsSettings[e].Input[t].Type}getInputSourceId(e,t){return this._json.PhysicsSettings[e].Input[t].Source.Id}getOutputCount(e){return this._json.PhysicsSettings[e].Output.length}getOutputVertexIndex(e,t){return this._json.PhysicsSettings[e].Output[t].VertexIndex}getOutputAngleScale(e,t){return this._json.PhysicsSettings[e].Output[t].Scale}getOutputWeight(e,t){return this._json.PhysicsSettings[e].Output[t].Weight}getOutputDestinationId(e,t){return this._json.PhysicsSettings[e].Output[t].Destination.Id}getOutputType(e,t){return this._json.PhysicsSettings[e].Output[t].Type}getOutputReflect(e,t){return this._json.PhysicsSettings[e].Output[t].Reflect}getParticleCount(e){return this._json.PhysicsSettings[e].Vertices.length}getParticleMobility(e,t){return this._json.PhysicsSettings[e].Vertices[t].Mobility}getParticleDelay(e,t){return this._json.PhysicsSettings[e].Vertices[t].Delay}getParticleAcceleration(e,t){return this._json.PhysicsSettings[e].Vertices[t].Acceleration}getParticleRadius(e,t){return this._json.PhysicsSettings[e].Vertices[t].Radius}getParticlePosition(e,t){let n=new u7(0,0);return n.x=this._json.PhysicsSettings[e].Vertices[t].Position.X,n.y=this._json.PhysicsSettings[e].Vertices[t].Position.Y,n}};const V7=`Angle`;var KIe=class e{static create(t){let n=new e;return n.parse(t),n._physicsRig.gravity.y=0,n}evaluate(e,t){let n,r,i,a,o=new u7,s,c,l,u,d,f,p,m;d=e.getModel().parameters.values,f=e.getModel().parameters.maximumValues,p=e.getModel().parameters.minimumValues,m=e.getModel().parameters.defaultValues;for(let h=0;h=s.particleCount)break;l[t].destinationParameterIndex==-1&&(l[t].destinationParameterIndex=e.getParameterIndex(l[t].destination.id));let r=new u7;r.x=u[n].position.x-u[n-1].position.x,r.y=u[n].position.y-u[n-1].position.y,a=l[t].getValue(r,u,n,l[t].reflect,this._options.gravity);let i=l[t].destinationParameterIndex,o=!Float32Array.prototype.slice&&`subarray`in Float32Array.prototype?JSON.parse(JSON.stringify(d.subarray(i))):d.slice(i);oLe(o,p[i],f[i],a,l[t]);for(let e=i,t=0;e=2?t[n-1].position.substract(t[n-2].position):i.multiplyByScaler(-1),a=f7.directionToRadian(i,e),r&&(a*=-1),a}function eLe(e,t){return Math.abs(Math.max(e,t)-Math.min(e,t))}function tLe(e,t){let n=Math.min(e,t);return n+eLe(e,t)/2}function nLe(e,t){return e.x}function rLe(e,t){return e.y}function iLe(e,t){return t}function aLe(e,t,n,r,i,a,o,s){let c,l,u,d,f=new u7(0,0),p=new u7(0,0),m=new u7(0,0),h=new u7(0,0);e[0].position=new u7(n.x,n.y),c=f7.degreesToRadian(r),d=f7.radianToDirection(c),d.normalize();for(let n=1;nn&&(o>i.valueExceededMaximum&&(i.valueExceededMaximum=o),o=n),s=i.weight/100,s>=1||(o=e[0]*(1-s)+o*s),e[0]=o}function H7(e,t,n,r,i,a,o,s){let c=0,l=f7.max(n,t);le&&(e=u);let d=f7.min(i,a),f=f7.max(i,a),p=o,m=tLe(u,l),h=e-m;switch(Math.sign(h)){case 1:{let e=f-p,t=l-m;t!=0&&(c=h*(e/t),c+=p);break}case-1:{let e=d-p,t=u-m;t!=0&&(c=h*(e/t),c+=p);break}case 0:c=p;break}return s?c:c*-1}var U7=class{constructor(e=0,t=0,n=0,r=0){this.x=e,this.y=t,this.width=n,this.height=r}getCenterX(){return this.x+.5*this.width}getCenterY(){return this.y+.5*this.height}getRight(){return this.x+this.width}getBottom(){return this.y+this.height}setRect(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}expand(e,t){this.x-=e,this.y-=t,this.width+=e*2,this.height+=t*2}};let W7,G7,K7;var q7=class{getChannelFlagAsColor(e){return this._channelColors[e]}getMaskRenderTexture(){let e=0;if(this._maskTexture&&this._maskTexture.texture!=0&&(this._maskTexture.frameNo=this._currentFrameNo,e=this._maskTexture.texture),e==0){let t=this._clippingMaskBufferSize;this._colorBuffer=this.gl.createTexture(),this.gl.bindTexture(this.gl.TEXTURE_2D,this._colorBuffer),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,t,t,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,null),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.bindTexture(this.gl.TEXTURE_2D,null),e=this.gl.createFramebuffer(),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,e),this.gl.framebufferTexture2D(this.gl.FRAMEBUFFER,this.gl.COLOR_ATTACHMENT0,this.gl.TEXTURE_2D,this._colorBuffer,0),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,K7),this._maskTexture=new sLe(this._currentFrameNo,e)}return e}setGL(e){this.gl=e}calcClippedDrawTotalBounds(e,t){let n=Number.MAX_VALUE,r=Number.MAX_VALUE,i=Number.MIN_VALUE,a=Number.MIN_VALUE,o=t._clippedDrawableIndexList.length;for(let s=0;sf&&(f=t),np&&(p=n)}if(u!=Number.MAX_VALUE)if(ui&&(i=f),p>a&&(a=p),n==Number.MAX_VALUE)t._allClippedDrawRect.x=0,t._allClippedDrawRect.y=0,t._allClippedDrawRect.width=0,t._allClippedDrawRect.height=0,t._isUsing=!1;else{t._isUsing=!0;let e=i-n,o=a-r;t._allClippedDrawRect.x=n,t._allClippedDrawRect.y=r,t._allClippedDrawRect.width=e,t._allClippedDrawRect.height=o}}}constructor(){this._maskRenderTexture=null,this._colorBuffer=null,this._currentFrameNo=0,this._clippingMaskBufferSize=256,this._clippingContextListForMask=[],this._clippingContextListForDraw=[],this._channelColors=[],this._tmpBoundsOnModel=new U7,this._tmpMatrix=new p7,this._tmpMatrixForMask=new p7,this._tmpMatrixForDraw=new p7;let e=new g7;e.R=1,e.G=0,e.B=0,e.A=0,this._channelColors.push(e),e=new g7,e.R=0,e.G=1,e.B=0,e.A=0,this._channelColors.push(e),e=new g7,e.R=0,e.G=0,e.B=1,e.A=0,this._channelColors.push(e),e=new g7,e.R=0,e.G=0,e.B=0,e.A=1,this._channelColors.push(e)}release(){var e,t,n;let r=this;for(let t=0;t0){this.gl.viewport(0,0,this._clippingMaskBufferSize,this._clippingMaskBufferSize),this._maskRenderTexture=this.getMaskRenderTexture(),t.getMvpMatrix(),t.preDraw(),this.setupLayoutBounds(n),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this._maskRenderTexture),this.gl.clearColor(1,1,1,1),this.gl.clear(this.gl.COLOR_BUFFER_BIT);for(let n=0;n(e[e.ShaderNames_SetupMask=0]=`ShaderNames_SetupMask`,e[e.ShaderNames_NormalPremultipliedAlpha=1]=`ShaderNames_NormalPremultipliedAlpha`,e[e.ShaderNames_NormalMaskedPremultipliedAlpha=2]=`ShaderNames_NormalMaskedPremultipliedAlpha`,e[e.ShaderNames_NomralMaskedInvertedPremultipliedAlpha=3]=`ShaderNames_NomralMaskedInvertedPremultipliedAlpha`,e[e.ShaderNames_AddPremultipliedAlpha=4]=`ShaderNames_AddPremultipliedAlpha`,e[e.ShaderNames_AddMaskedPremultipliedAlpha=5]=`ShaderNames_AddMaskedPremultipliedAlpha`,e[e.ShaderNames_AddMaskedPremultipliedAlphaInverted=6]=`ShaderNames_AddMaskedPremultipliedAlphaInverted`,e[e.ShaderNames_MultPremultipliedAlpha=7]=`ShaderNames_MultPremultipliedAlpha`,e[e.ShaderNames_MultMaskedPremultipliedAlpha=8]=`ShaderNames_MultMaskedPremultipliedAlpha`,e[e.ShaderNames_MultMaskedPremultipliedAlphaInverted=9]=`ShaderNames_MultMaskedPremultipliedAlphaInverted`,e))(Y7||{});const lLe=`attribute vec4 a_position;attribute vec2 a_texCoord;varying vec2 v_texCoord;varying vec4 v_myPos;uniform mat4 u_clipMatrix;void main(){ gl_Position = u_clipMatrix * a_position; v_myPos = u_clipMatrix * a_position; v_texCoord = a_texCoord; v_texCoord.y = 1.0 - v_texCoord.y;}`,uLe=`precision mediump float;varying vec2 v_texCoord;varying vec4 v_myPos;uniform vec4 u_baseColor;uniform vec4 u_channelFlag;uniform sampler2D s_texture0;void main(){ float isInside = step(u_baseColor.x, v_myPos.x/v_myPos.w) * step(u_baseColor.y, v_myPos.y/v_myPos.w) * step(v_myPos.x/v_myPos.w, u_baseColor.z) * step(v_myPos.y/v_myPos.w, u_baseColor.w); gl_FragColor = u_channelFlag * texture2D(s_texture0, v_texCoord).a * isInside;}`,dLe=`attribute vec4 a_position;attribute vec2 a_texCoord;varying vec2 v_texCoord;uniform mat4 u_matrix;void main(){ gl_Position = u_matrix * a_position; v_texCoord = a_texCoord; v_texCoord.y = 1.0 - v_texCoord.y;}`,X7=`attribute vec4 a_position;attribute vec2 a_texCoord;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform mat4 u_matrix;uniform mat4 u_clipMatrix;void main(){ gl_Position = u_matrix * a_position; v_clipPos = u_clipMatrix * a_position; v_texCoord = a_texCoord; v_texCoord.y = 1.0 - v_texCoord.y;}`,fLe=`precision mediump float;varying vec2 v_texCoord;uniform vec4 u_baseColor;uniform sampler2D s_texture0;void main(){ gl_FragColor = texture2D(s_texture0 , v_texCoord) * u_baseColor;}`,pLe=`precision mediump float;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform vec4 u_baseColor;uniform vec4 u_channelFlag;uniform sampler2D s_texture0;uniform sampler2D s_texture1;void main(){ vec4 col_formask = texture2D(s_texture0 , v_texCoord) * u_baseColor; vec4 clipMask = (1.0 - texture2D(s_texture1, v_clipPos.xy / v_clipPos.w)) * u_channelFlag; float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a; col_formask = col_formask * maskVal; gl_FragColor = col_formask;}`,mLe=`precision mediump float;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform sampler2D s_texture0;uniform sampler2D s_texture1;uniform vec4 u_channelFlag;uniform vec4 u_baseColor;void main(){vec4 col_formask = texture2D(s_texture0, v_texCoord) * u_baseColor;vec4 clipMask = (1.0 - texture2D(s_texture1, v_clipPos.xy / v_clipPos.w)) * u_channelFlag;float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a;col_formask = col_formask * (1.0 - maskVal);gl_FragColor = col_formask;}`;var Z7=class extends m7{constructor(){super(),this._clippingContextBufferForMask=null,this._clippingContextBufferForDraw=null,this._clippingManager=new q7,this.firstDraw=!0,this._textures={},this._sortedDrawableIndexList=[],this._bufferData={vertex:null,uv:null,index:null}}initialize(e){e.isUsingMasking()&&(this._clippingManager=new q7,this._clippingManager.initialize(e,e.getDrawableCount(),e.getDrawableMasks(),e.getDrawableMaskCounts()));for(let t=e.getDrawableCount()-1;t>=0;t--)this._sortedDrawableIndexList[t]=0;super.initialize(e)}bindTexture(e,t){this._textures[e]=t}getBindedTextures(){return this._textures}setClippingMaskBufferSize(e){this._clippingManager.release(),this._clippingManager=new q7,this._clippingManager.setClippingMaskBufferSize(e),this._clippingManager.initialize(this.getModel(),this.getModel().getDrawableCount(),this.getModel().getDrawableMasks(),this.getModel().getDrawableMaskCounts())}getClippingMaskBufferSize(){return this._clippingManager.getClippingMaskBufferSize()}release(){var e,t,n;let r=this;this._clippingManager.release(),r._clippingManager=void 0,(e=this.gl)==null||e.deleteBuffer(this._bufferData.vertex),this._bufferData.vertex=null,(t=this.gl)==null||t.deleteBuffer(this._bufferData.uv),this._bufferData.uv=null,(n=this.gl)==null||n.deleteBuffer(this._bufferData.index),this._bufferData.index=null,r._bufferData=void 0,r._textures=void 0}doDrawModel(){this.preDraw(),this._clippingManager!=null&&this._clippingManager.setupClippingContext(this.getModel(),this);let e=this.getModel().getDrawableCount(),t=this.getModel().getDrawableRenderOrders();for(let n=0;n{Z7.doStaticRelease()};var Q7=class{constructor(e){this.groups=e.Groups,this.hitAreas=e.HitAreas,this.layout=e.Layout,this.moc=e.FileReferences.Moc,this.expressions=e.FileReferences.Expressions,this.motions=e.FileReferences.Motions,this.textures=e.FileReferences.Textures,this.physics=e.FileReferences.Physics,this.pose=e.FileReferences.Pose}getEyeBlinkParameters(){var e,t;return(t=(e=this.groups)?.find(e=>e.Name===`EyeBlink`))?.Ids}getLipSyncParameters(){var e,t;return(t=(e=this.groups)?.find(e=>e.Name===`LipSync`))?.Ids}},$7;(e=>{e.LOG_LEVEL_VERBOSE=0,e.LOG_LEVEL_WARNING=1,e.LOG_LEVEL_ERROR=2,e.LOG_LEVEL_NONE=999,e.logLevel=e.LOG_LEVEL_WARNING,e.sound=!0,e.motionSync=!0,e.motionFadingDuration=500,e.idleMotionFadingDuration=2e3,e.expressionFadingDuration=500,e.preserveExpressionOnMotion=!0,e.cubism4=A7})($7||={});const e9={log(e,...t){$7.logLevel<=$7.LOG_LEVEL_VERBOSE&&console.log(`[${e}]`,...t)},warn(e,...t){$7.logLevel<=$7.LOG_LEVEL_WARNING&&console.warn(`[${e}]`,...t)},error(e,...t){$7.logLevel<=$7.LOG_LEVEL_ERROR&&console.error(`[${e}]`,...t)}};function t9(e,t,n){return en?n:e}function n9(e,t){t.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(n=>{n!==`constructor`&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n))})})}function hLe(e){let t=e.lastIndexOf(`/`);return t!=-1&&(e=e.slice(0,t)),t=e.lastIndexOf(`/`),t!==-1&&(e=e.slice(t+1)),e}function gLe(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}var r9=class extends C6.default{constructor(e,t){super(),this.expressions=[],this.reserveExpressionIndex=-1,this.destroyed=!1,this.settings=e,this.tag=`ExpressionManager(${e.name})`}init(){this.defaultExpression=this.createExpression({},void 0),this.currentExpression=this.defaultExpression,this.stopAllExpressions()}loadExpression(e){return r7(this,null,function*(){if(!this.definitions[e]){e9.warn(this.tag,`Undefined expression at [${e}]`);return}if(this.expressions[e]===null){e9.warn(this.tag,`Cannot set expression at [${e}] because it's already failed in loading.`);return}if(this.expressions[e])return this.expressions[e];let t=yield this._loadExpression(e);return this.expressions[e]=t,t})}_loadExpression(e){throw Error(`Not implemented.`)}setRandomExpression(){return r7(this,null,function*(){if(this.definitions.length){let e=[];for(let t=0;t-1&&ec&&(a*=c/s,o*=c/s),this.vx+=a,this.vy+=o;let l=Math.sqrt(n7(this.vx,2)+n7(this.vy,2)),u=.5*(Math.sqrt(n7(c,2)+8*c*r)-c);l>u&&(this.vx*=u/l,this.vy*=u/l),this.x+=this.vx,this.y+=this.vy}},a9=class{constructor(e){this.json=e;let t=e.url;if(typeof t!=`string`)throw TypeError("The `url` field in settings JSON must be defined as a string.");this.url=t,this.name=hLe(this.url)}resolveURL(e){return T6.resolve(this.url,e)}replaceFiles(e){this.moc=e(this.moc,`moc`),this.pose!==void 0&&(this.pose=e(this.pose,`pose`)),this.physics!==void 0&&(this.physics=e(this.physics,`physics`));for(let t=0;t(e.push(t),t)),e}validateFiles(e){let t=(t,n)=>{let r=this.resolveURL(t);if(!e.includes(r)){if(n)throw Error(`File "${t}" is defined in settings, but doesn't exist in given files`);return!1}return!0},n=[this.moc,...this.textures];n.forEach(e=>t(e,!0));let r=this.getDefinedFiles();return r.filter(e=>t(e,!1))}},o9=(e=>(e[e.NONE=0]=`NONE`,e[e.IDLE=1]=`IDLE`,e[e.NORMAL=2]=`NORMAL`,e[e.FORCE=3]=`FORCE`,e))(o9||{}),vLe=class{constructor(){this.debug=!1,this.currentPriority=0,this.reservePriority=0}reserve(e,t,n){if(n<=0)return e9.log(this.tag,`Cannot start a motion with MotionPriority.NONE.`),!1;if(e===this.currentGroup&&t===this.currentIndex)return e9.log(this.tag,`Motion is already playing.`,this.dump(e,t)),!1;if(e===this.reservedGroup&&t===this.reservedIndex||e===this.reservedIdleGroup&&t===this.reservedIdleIndex)return e9.log(this.tag,`Motion is already reserved.`,this.dump(e,t)),!1;if(n===1){if(this.currentPriority!==0)return e9.log(this.tag,`Cannot start idle motion because another motion is playing.`,this.dump(e,t)),!1;if(this.reservedIdleGroup!==void 0)return e9.log(this.tag,`Cannot start idle motion because another idle motion has reserved.`,this.dump(e,t)),!1;this.setReservedIdle(e,t)}else{if(n<3){if(n<=this.currentPriority)return e9.log(this.tag,`Cannot start motion because another motion is playing as an equivalent or higher priority.`,this.dump(e,t)),!1;if(n<=this.reservePriority)return e9.log(this.tag,`Cannot start motion because another motion has reserved as an equivalent or higher priority.`,this.dump(e,t)),!1}this.setReserved(e,t,n)}return!0}start(e,t,n,r){if(r===1){if(this.setReservedIdle(void 0,void 0),this.currentPriority!==0)return e9.log(this.tag,`Cannot start idle motion because another motion is playing.`,this.dump(t,n)),!1}else{if(t!==this.reservedGroup||n!==this.reservedIndex)return e9.log(this.tag,`Cannot start motion because another motion has taken the place.`,this.dump(t,n)),!1;this.setReserved(void 0,void 0,0)}return e?(this.setCurrent(t,n,r),!0):!1}complete(){this.setCurrent(void 0,void 0,0)}setCurrent(e,t,n){this.currentPriority=n,this.currentGroup=e,this.currentIndex=t}setReserved(e,t,n){this.reservePriority=n,this.reservedGroup=e,this.reservedIndex=t}setReservedIdle(e,t){this.reservedIdleGroup=e,this.reservedIdleIndex=t}isActive(e,t){return e===this.currentGroup&&t===this.currentIndex||e===this.reservedGroup&&t===this.reservedIndex||e===this.reservedIdleGroup&&t===this.reservedIdleIndex}reset(){this.setCurrent(void 0,void 0,0),this.setReserved(void 0,void 0,0),this.setReservedIdle(void 0,void 0)}shouldRequestIdleMotion(){return this.currentGroup===void 0&&this.reservedIdleGroup===void 0}shouldOverrideExpression(){return!$7.preserveExpressionOnMotion&&this.currentPriority>1}dump(e,t){if(this.debug){let n=[`currentPriority`,`reservePriority`,`currentGroup`,`currentIndex`,`reservedGroup`,`reservedIndex`,`reservedIdleGroup`,`reservedIdleIndex`];return` +`)}constructor(){}},kLe=class{update(){this._model.update(),this._model.drawables.resetDynamicFlags()}getCanvasWidth(){return this._model==null?0:this._model.canvasinfo.CanvasWidth/this._model.canvasinfo.PixelsPerUnit}getCanvasHeight(){return this._model==null?0:this._model.canvasinfo.CanvasHeight/this._model.canvasinfo.PixelsPerUnit}saveParameters(){let e=this._model.parameters.count,t=this._savedParameters.length;for(let n=0;nt&&(t=this._model.parameters.minimumValues[e]),this._parameterValues[e]=n==1?t:this._parameterValues[e]=this._parameterValues[e]*(1-n)+t*n}setParameterValueById(e,t,n=1){let r=this.getParameterIndex(e);this.setParameterValueByIndex(r,t,n)}addParameterValueByIndex(e,t,n=1){this.setParameterValueByIndex(e,this.getParameterValueByIndex(e)+t*n)}addParameterValueById(e,t,n=1){let r=this.getParameterIndex(e);this.addParameterValueByIndex(r,t,n)}multiplyParameterValueById(e,t,n=1){let r=this.getParameterIndex(e);this.multiplyParameterValueByIndex(r,t,n)}multiplyParameterValueByIndex(e,t,n=1){this.setParameterValueByIndex(e,this.getParameterValueByIndex(e)*(1+(t-1)*n))}getDrawableIds(){return this._drawableIds.slice()}getDrawableIndex(e){let t=this._model.drawables.count;for(let n=0;nt&&(e=t);for(let t=0;t0&&t.getEndTime()(e[e.ExpressionBlendType_Add=0]=`ExpressionBlendType_Add`,e[e.ExpressionBlendType_Multiply=1]=`ExpressionBlendType_Multiply`,e[e.ExpressionBlendType_Overwrite=2]=`ExpressionBlendType_Overwrite`,e))(k7||{}),A7;(e=>{e.supportMoreMaskDivisions=!0,e.setOpacityFromMotion=!1})(A7||={});var j7=(e=>(e[e.CubismMotionCurveTarget_Model=0]=`CubismMotionCurveTarget_Model`,e[e.CubismMotionCurveTarget_Parameter=1]=`CubismMotionCurveTarget_Parameter`,e[e.CubismMotionCurveTarget_PartOpacity=2]=`CubismMotionCurveTarget_PartOpacity`,e))(j7||{}),M7=(e=>(e[e.CubismMotionSegmentType_Linear=0]=`CubismMotionSegmentType_Linear`,e[e.CubismMotionSegmentType_Bezier=1]=`CubismMotionSegmentType_Bezier`,e[e.CubismMotionSegmentType_Stepped=2]=`CubismMotionSegmentType_Stepped`,e[e.CubismMotionSegmentType_InverseStepped=3]=`CubismMotionSegmentType_InverseStepped`,e))(M7||{}),N7=class{constructor(e=0,t=0){this.time=e,this.value=t}},MLe=class{constructor(){this.basePointIndex=0,this.segmentType=0}},NLe=class{constructor(){this.id=``,this.type=0,this.segmentCount=0,this.baseSegmentIndex=0,this.fadeInTime=0,this.fadeOutTime=0}},PLe=class{constructor(){this.fireTime=0,this.value=``}},FLe=class{constructor(){this.duration=0,this.loop=!1,this.curveCount=0,this.eventCount=0,this.fps=0,this.curves=[],this.segments=[],this.points=[],this.events=[]}},P7=class{constructor(e){this._json=e}release(){this._json=void 0}getMotionDuration(){return this._json.Meta.Duration}isMotionLoop(){return this._json.Meta.Loop||!1}getEvaluationOptionFlag(e){return F7.EvaluationOptionFlag_AreBeziersRistricted==e?!!this._json.Meta.AreBeziersRestricted:!1}getMotionCurveCount(){return this._json.Meta.CurveCount}getMotionFps(){return this._json.Meta.Fps}getMotionTotalSegmentCount(){return this._json.Meta.TotalSegmentCount}getMotionTotalPointCount(){return this._json.Meta.TotalPointCount}getMotionFadeInTime(){return this._json.Meta.FadeInTime}getMotionFadeOutTime(){return this._json.Meta.FadeOutTime}getMotionCurveTarget(e){return this._json.Curves[e].Target}getMotionCurveId(e){return this._json.Curves[e].Id}getMotionCurveFadeInTime(e){return this._json.Curves[e].FadeInTime}getMotionCurveFadeOutTime(e){return this._json.Curves[e].FadeOutTime}getMotionCurveSegmentCount(e){return this._json.Curves[e].Segments.length}getMotionCurveSegment(e,t){return this._json.Curves[e].Segments[t]}getEventCount(){return this._json.Meta.UserDataCount||0}getTotalEventValueSize(){return this._json.Meta.TotalUserDataSize}getEventTime(e){return this._json.UserData[e].Time}getEventValue(e){return this._json.UserData[e].Value}},F7=(e=>(e[e.EvaluationOptionFlag_AreBeziersRistricted=0]=`EvaluationOptionFlag_AreBeziersRistricted`,e))(F7||{});function I7(e,t,n){let r=new N7;return r.time=e.time+(t.time-e.time)*n,r.value=e.value+(t.value-e.value)*n,r}function ILe(e,t){let n=(t-e[0].time)/(e[1].time-e[0].time);return n<0&&(n=0),e[0].value+(e[1].value-e[0].value)*n}function LLe(e,t){let n=(t-e[0].time)/(e[3].time-e[0].time);n<0&&(n=0);let r=I7(e[0],e[1],n),i=I7(e[1],e[2],n),a=I7(e[2],e[3],n),o=I7(r,i,n),s=I7(i,a,n);return I7(o,s,n).value}function RLe(e,t){let n=t,r=e[0].time,i=e[3].time,a=e[1].time,o=e[2].time,s=i-3*o+3*a-r,c=3*o-6*a+3*r,l=3*a-3*r,u=r-n,d=f7.cardanoAlgorithmForBezier(s,c,l,u),f=I7(e[0],e[1],d),p=I7(e[1],e[2],d),m=I7(e[2],e[3],d),h=I7(f,p,d),g=I7(p,m,d);return I7(h,g,d).value}function zLe(e,t){return e[0].value}function BLe(e,t){return e[1].value}function L7(e,t,n){let r=e.curves[t],i=-1,a=r.baseSegmentIndex+r.segmentCount,o=0;for(let t=r.baseSegmentIndex;tn){i=t;break}if(i==-1)return e.points[o].value;let s=e.segments[i];return s.evaluate(e.points.slice(s.basePointIndex),n)}var VLe=class e extends O7{constructor(){super(),this._eyeBlinkParameterIds=[],this._lipSyncParameterIds=[],this._sourceFrameRate=30,this._loopDurationSeconds=-1,this._isLoop=!1,this._isLoopFadeIn=!0,this._lastWeight=0}static create(t,n){let r=new e;return r.parse(t),r._sourceFrameRate=r._motionData.fps,r._loopDurationSeconds=r._motionData.duration,r._onFinishedMotion=n,r}doUpdateParameters(e,t,n,r){this._modelCurveIdEyeBlink??=`EyeBlink`,this._modelCurveIdLipSync??=`LipSync`;let i=t-r.getStartTime();i<0&&(i=0);let a=Number.MAX_VALUE,o=Number.MAX_VALUE,s=0,c=0;this._eyeBlinkParameterIds.length>64&&C7(`too many eye blink targets : {0}`,this._eyeBlinkParameterIds.length),this._lipSyncParameterIds.length>64&&C7(`too many lip sync targets : {0}`,this._lipSyncParameterIds.length);let l=this._fadeInSeconds<=0?1:f7.getEasingSine((t-r.getFadeInStartTime())/this._fadeInSeconds),u=this._fadeOutSeconds<=0||r.getEndTime()<0?1:f7.getEasingSine((r.getEndTime()-t)/this._fadeOutSeconds),d,f,p,m=i;if(this._isLoop)for(;m>this._motionData.duration;)m-=this._motionData.duration;let h=this._motionData.curves;for(f=0;f>t&1)continue;let i=r+(o-r)*n;e.setParameterValueById(this._eyeBlinkParameterIds[t],i)}if(a!=Number.MAX_VALUE)for(let t=0;t>t&1)continue;let i=r+(a-r)*n;e.setParameterValueById(this._lipSyncParameterIds[t],i)}for(;f=this._motionData.duration&&(this._isLoop?(r.setStartTime(t),this._isLoopFadeIn&&r.setFadeInStartTime(t)):(this._onFinishedMotion&&this._onFinishedMotion(this),r.setIsFinished(!0))),this._lastWeight=n}setIsLoop(e){this._isLoop=e}isLoop(){return this._isLoop}setIsLoopFadeIn(e){this._isLoopFadeIn=e}isLoopFadeIn(){return this._isLoopFadeIn}getDuration(){return this._isLoop?-1:this._loopDurationSeconds}getLoopDuration(){return this._loopDurationSeconds}setParameterFadeInTime(e,t){let n=this._motionData.curves;for(let r=0;rnew NLe),this._motionData.segments=Array.from({length:t.getMotionTotalSegmentCount()}).map(()=>new MLe),this._motionData.events=Array.from({length:this._motionData.eventCount}).map(()=>new PLe),this._motionData.points=[];let a=0,o=0;for(let e=0;ee&&this._motionData.events[n].fireTime<=t&&this._firedEventValues.push(this._motionData.events[n].value);return this._firedEventValues}},HLe=class{constructor(){this._autoDelete=!1,this._available=!0,this._finished=!1,this._started=!1,this._startTimeSeconds=-1,this._fadeInStartTimeSeconds=0,this._endTimeSeconds=-1,this._stateTimeSeconds=0,this._stateWeight=0,this._lastEventCheckSeconds=0,this._motionQueueEntryHandle=this,this._fadeOutSeconds=0,this._isTriggeredFadeOut=!1}release(){this._autoDelete&&this._motion&&this._motion.release()}setFadeOut(e){this._fadeOutSeconds=e,this._isTriggeredFadeOut=!0}startFadeOut(e,t){let n=t+e;this._isTriggeredFadeOut=!0,(this._endTimeSeconds<0||nt!=null&&t._motionQueueEntryHandle==e)}setEventCallback(e,t=null){this._eventCallBack=e,this._eventCustomData=t}doUpdateMotion(e,t){let n=!1,r=0;for(;r(e[e.CubismPhysicsTargetType_Parameter=0]=`CubismPhysicsTargetType_Parameter`,e))(z7||{}),B7=(e=>(e[e.CubismPhysicsSource_X=0]=`CubismPhysicsSource_X`,e[e.CubismPhysicsSource_Y=1]=`CubismPhysicsSource_Y`,e[e.CubismPhysicsSource_Angle=2]=`CubismPhysicsSource_Angle`,e))(B7||{}),WLe=class{constructor(){this.initialPosition=new u7(0,0),this.position=new u7(0,0),this.lastPosition=new u7(0,0),this.lastGravity=new u7(0,0),this.force=new u7(0,0),this.velocity=new u7(0,0)}},GLe=class{constructor(){this.normalizationPosition={},this.normalizationAngle={}}},KLe=class{constructor(){this.source={}}},qLe=class{constructor(){this.destination={},this.translationScale=new u7(0,0)}},JLe=class{constructor(){this.settings=[],this.inputs=[],this.outputs=[],this.particles=[],this.gravity=new u7(0,0),this.wind=new u7(0,0)}},YLe=class{constructor(e){this._json=e}release(){this._json=void 0}getGravity(){let e=new u7(0,0);return e.x=this._json.Meta.EffectiveForces.Gravity.X,e.y=this._json.Meta.EffectiveForces.Gravity.Y,e}getWind(){let e=new u7(0,0);return e.x=this._json.Meta.EffectiveForces.Wind.X,e.y=this._json.Meta.EffectiveForces.Wind.Y,e}getSubRigCount(){return this._json.Meta.PhysicsSettingCount}getTotalInputCount(){return this._json.Meta.TotalInputCount}getTotalOutputCount(){return this._json.Meta.TotalOutputCount}getVertexCount(){return this._json.Meta.VertexCount}getNormalizationPositionMinimumValue(e){return this._json.PhysicsSettings[e].Normalization.Position.Minimum}getNormalizationPositionMaximumValue(e){return this._json.PhysicsSettings[e].Normalization.Position.Maximum}getNormalizationPositionDefaultValue(e){return this._json.PhysicsSettings[e].Normalization.Position.Default}getNormalizationAngleMinimumValue(e){return this._json.PhysicsSettings[e].Normalization.Angle.Minimum}getNormalizationAngleMaximumValue(e){return this._json.PhysicsSettings[e].Normalization.Angle.Maximum}getNormalizationAngleDefaultValue(e){return this._json.PhysicsSettings[e].Normalization.Angle.Default}getInputCount(e){return this._json.PhysicsSettings[e].Input.length}getInputWeight(e,t){return this._json.PhysicsSettings[e].Input[t].Weight}getInputReflect(e,t){return this._json.PhysicsSettings[e].Input[t].Reflect}getInputType(e,t){return this._json.PhysicsSettings[e].Input[t].Type}getInputSourceId(e,t){return this._json.PhysicsSettings[e].Input[t].Source.Id}getOutputCount(e){return this._json.PhysicsSettings[e].Output.length}getOutputVertexIndex(e,t){return this._json.PhysicsSettings[e].Output[t].VertexIndex}getOutputAngleScale(e,t){return this._json.PhysicsSettings[e].Output[t].Scale}getOutputWeight(e,t){return this._json.PhysicsSettings[e].Output[t].Weight}getOutputDestinationId(e,t){return this._json.PhysicsSettings[e].Output[t].Destination.Id}getOutputType(e,t){return this._json.PhysicsSettings[e].Output[t].Type}getOutputReflect(e,t){return this._json.PhysicsSettings[e].Output[t].Reflect}getParticleCount(e){return this._json.PhysicsSettings[e].Vertices.length}getParticleMobility(e,t){return this._json.PhysicsSettings[e].Vertices[t].Mobility}getParticleDelay(e,t){return this._json.PhysicsSettings[e].Vertices[t].Delay}getParticleAcceleration(e,t){return this._json.PhysicsSettings[e].Vertices[t].Acceleration}getParticleRadius(e,t){return this._json.PhysicsSettings[e].Vertices[t].Radius}getParticlePosition(e,t){let n=new u7(0,0);return n.x=this._json.PhysicsSettings[e].Vertices[t].Position.X,n.y=this._json.PhysicsSettings[e].Vertices[t].Position.Y,n}};const V7=`Angle`;var XLe=class e{static create(t){let n=new e;return n.parse(t),n._physicsRig.gravity.y=0,n}evaluate(e,t){let n,r,i,a,o=new u7,s,c,l,u,d,f,p,m;d=e.getModel().parameters.values,f=e.getModel().parameters.maximumValues,p=e.getModel().parameters.minimumValues,m=e.getModel().parameters.defaultValues;for(let h=0;h=s.particleCount)break;l[t].destinationParameterIndex==-1&&(l[t].destinationParameterIndex=e.getParameterIndex(l[t].destination.id));let r=new u7;r.x=u[n].position.x-u[n-1].position.x,r.y=u[n].position.y-u[n-1].position.y,a=l[t].getValue(r,u,n,l[t].reflect,this._options.gravity);let i=l[t].destinationParameterIndex,o=!Float32Array.prototype.slice&&`subarray`in Float32Array.prototype?JSON.parse(JSON.stringify(d.subarray(i))):d.slice(i);uRe(o,p[i],f[i],a,l[t]);for(let e=i,t=0;e=2?t[n-1].position.substract(t[n-2].position):i.multiplyByScaler(-1),a=f7.directionToRadian(i,e),r&&(a*=-1),a}function iRe(e,t){return Math.abs(Math.max(e,t)-Math.min(e,t))}function aRe(e,t){let n=Math.min(e,t);return n+iRe(e,t)/2}function oRe(e,t){return e.x}function sRe(e,t){return e.y}function cRe(e,t){return t}function lRe(e,t,n,r,i,a,o,s){let c,l,u,d,f=new u7(0,0),p=new u7(0,0),m=new u7(0,0),h=new u7(0,0);e[0].position=new u7(n.x,n.y),c=f7.degreesToRadian(r),d=f7.radianToDirection(c),d.normalize();for(let n=1;nn&&(o>i.valueExceededMaximum&&(i.valueExceededMaximum=o),o=n),s=i.weight/100,s>=1||(o=e[0]*(1-s)+o*s),e[0]=o}function H7(e,t,n,r,i,a,o,s){let c=0,l=f7.max(n,t);le&&(e=u);let d=f7.min(i,a),f=f7.max(i,a),p=o,m=aRe(u,l),h=e-m;switch(Math.sign(h)){case 1:{let e=f-p,t=l-m;t!=0&&(c=h*(e/t),c+=p);break}case-1:{let e=d-p,t=u-m;t!=0&&(c=h*(e/t),c+=p);break}case 0:c=p;break}return s?c:c*-1}var U7=class{constructor(e=0,t=0,n=0,r=0){this.x=e,this.y=t,this.width=n,this.height=r}getCenterX(){return this.x+.5*this.width}getCenterY(){return this.y+.5*this.height}getRight(){return this.x+this.width}getBottom(){return this.y+this.height}setRect(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}expand(e,t){this.x-=e,this.y-=t,this.width+=e*2,this.height+=t*2}};let W7,G7,K7;var q7=class{getChannelFlagAsColor(e){return this._channelColors[e]}getMaskRenderTexture(){let e=0;if(this._maskTexture&&this._maskTexture.texture!=0&&(this._maskTexture.frameNo=this._currentFrameNo,e=this._maskTexture.texture),e==0){let t=this._clippingMaskBufferSize;this._colorBuffer=this.gl.createTexture(),this.gl.bindTexture(this.gl.TEXTURE_2D,this._colorBuffer),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,t,t,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,null),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.bindTexture(this.gl.TEXTURE_2D,null),e=this.gl.createFramebuffer(),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,e),this.gl.framebufferTexture2D(this.gl.FRAMEBUFFER,this.gl.COLOR_ATTACHMENT0,this.gl.TEXTURE_2D,this._colorBuffer,0),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,K7),this._maskTexture=new dRe(this._currentFrameNo,e)}return e}setGL(e){this.gl=e}calcClippedDrawTotalBounds(e,t){let n=Number.MAX_VALUE,r=Number.MAX_VALUE,i=Number.MIN_VALUE,a=Number.MIN_VALUE,o=t._clippedDrawableIndexList.length;for(let s=0;sf&&(f=t),np&&(p=n)}if(u!=Number.MAX_VALUE)if(ui&&(i=f),p>a&&(a=p),n==Number.MAX_VALUE)t._allClippedDrawRect.x=0,t._allClippedDrawRect.y=0,t._allClippedDrawRect.width=0,t._allClippedDrawRect.height=0,t._isUsing=!1;else{t._isUsing=!0;let e=i-n,o=a-r;t._allClippedDrawRect.x=n,t._allClippedDrawRect.y=r,t._allClippedDrawRect.width=e,t._allClippedDrawRect.height=o}}}constructor(){this._maskRenderTexture=null,this._colorBuffer=null,this._currentFrameNo=0,this._clippingMaskBufferSize=256,this._clippingContextListForMask=[],this._clippingContextListForDraw=[],this._channelColors=[],this._tmpBoundsOnModel=new U7,this._tmpMatrix=new p7,this._tmpMatrixForMask=new p7,this._tmpMatrixForDraw=new p7;let e=new g7;e.R=1,e.G=0,e.B=0,e.A=0,this._channelColors.push(e),e=new g7,e.R=0,e.G=1,e.B=0,e.A=0,this._channelColors.push(e),e=new g7,e.R=0,e.G=0,e.B=1,e.A=0,this._channelColors.push(e),e=new g7,e.R=0,e.G=0,e.B=0,e.A=1,this._channelColors.push(e)}release(){var e,t,n;let r=this;for(let t=0;t0){this.gl.viewport(0,0,this._clippingMaskBufferSize,this._clippingMaskBufferSize),this._maskRenderTexture=this.getMaskRenderTexture(),t.getMvpMatrix(),t.preDraw(),this.setupLayoutBounds(n),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this._maskRenderTexture),this.gl.clearColor(1,1,1,1),this.gl.clear(this.gl.COLOR_BUFFER_BIT);for(let n=0;n(e[e.ShaderNames_SetupMask=0]=`ShaderNames_SetupMask`,e[e.ShaderNames_NormalPremultipliedAlpha=1]=`ShaderNames_NormalPremultipliedAlpha`,e[e.ShaderNames_NormalMaskedPremultipliedAlpha=2]=`ShaderNames_NormalMaskedPremultipliedAlpha`,e[e.ShaderNames_NomralMaskedInvertedPremultipliedAlpha=3]=`ShaderNames_NomralMaskedInvertedPremultipliedAlpha`,e[e.ShaderNames_AddPremultipliedAlpha=4]=`ShaderNames_AddPremultipliedAlpha`,e[e.ShaderNames_AddMaskedPremultipliedAlpha=5]=`ShaderNames_AddMaskedPremultipliedAlpha`,e[e.ShaderNames_AddMaskedPremultipliedAlphaInverted=6]=`ShaderNames_AddMaskedPremultipliedAlphaInverted`,e[e.ShaderNames_MultPremultipliedAlpha=7]=`ShaderNames_MultPremultipliedAlpha`,e[e.ShaderNames_MultMaskedPremultipliedAlpha=8]=`ShaderNames_MultMaskedPremultipliedAlpha`,e[e.ShaderNames_MultMaskedPremultipliedAlphaInverted=9]=`ShaderNames_MultMaskedPremultipliedAlphaInverted`,e))(Y7||{});const pRe=`attribute vec4 a_position;attribute vec2 a_texCoord;varying vec2 v_texCoord;varying vec4 v_myPos;uniform mat4 u_clipMatrix;void main(){ gl_Position = u_clipMatrix * a_position; v_myPos = u_clipMatrix * a_position; v_texCoord = a_texCoord; v_texCoord.y = 1.0 - v_texCoord.y;}`,mRe=`precision mediump float;varying vec2 v_texCoord;varying vec4 v_myPos;uniform vec4 u_baseColor;uniform vec4 u_channelFlag;uniform sampler2D s_texture0;void main(){ float isInside = step(u_baseColor.x, v_myPos.x/v_myPos.w) * step(u_baseColor.y, v_myPos.y/v_myPos.w) * step(v_myPos.x/v_myPos.w, u_baseColor.z) * step(v_myPos.y/v_myPos.w, u_baseColor.w); gl_FragColor = u_channelFlag * texture2D(s_texture0, v_texCoord).a * isInside;}`,hRe=`attribute vec4 a_position;attribute vec2 a_texCoord;varying vec2 v_texCoord;uniform mat4 u_matrix;void main(){ gl_Position = u_matrix * a_position; v_texCoord = a_texCoord; v_texCoord.y = 1.0 - v_texCoord.y;}`,X7=`attribute vec4 a_position;attribute vec2 a_texCoord;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform mat4 u_matrix;uniform mat4 u_clipMatrix;void main(){ gl_Position = u_matrix * a_position; v_clipPos = u_clipMatrix * a_position; v_texCoord = a_texCoord; v_texCoord.y = 1.0 - v_texCoord.y;}`,gRe=`precision mediump float;varying vec2 v_texCoord;uniform vec4 u_baseColor;uniform sampler2D s_texture0;void main(){ gl_FragColor = texture2D(s_texture0 , v_texCoord) * u_baseColor;}`,_Re=`precision mediump float;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform vec4 u_baseColor;uniform vec4 u_channelFlag;uniform sampler2D s_texture0;uniform sampler2D s_texture1;void main(){ vec4 col_formask = texture2D(s_texture0 , v_texCoord) * u_baseColor; vec4 clipMask = (1.0 - texture2D(s_texture1, v_clipPos.xy / v_clipPos.w)) * u_channelFlag; float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a; col_formask = col_formask * maskVal; gl_FragColor = col_formask;}`,vRe=`precision mediump float;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform sampler2D s_texture0;uniform sampler2D s_texture1;uniform vec4 u_channelFlag;uniform vec4 u_baseColor;void main(){vec4 col_formask = texture2D(s_texture0, v_texCoord) * u_baseColor;vec4 clipMask = (1.0 - texture2D(s_texture1, v_clipPos.xy / v_clipPos.w)) * u_channelFlag;float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a;col_formask = col_formask * (1.0 - maskVal);gl_FragColor = col_formask;}`;var Z7=class extends m7{constructor(){super(),this._clippingContextBufferForMask=null,this._clippingContextBufferForDraw=null,this._clippingManager=new q7,this.firstDraw=!0,this._textures={},this._sortedDrawableIndexList=[],this._bufferData={vertex:null,uv:null,index:null}}initialize(e){e.isUsingMasking()&&(this._clippingManager=new q7,this._clippingManager.initialize(e,e.getDrawableCount(),e.getDrawableMasks(),e.getDrawableMaskCounts()));for(let t=e.getDrawableCount()-1;t>=0;t--)this._sortedDrawableIndexList[t]=0;super.initialize(e)}bindTexture(e,t){this._textures[e]=t}getBindedTextures(){return this._textures}setClippingMaskBufferSize(e){this._clippingManager.release(),this._clippingManager=new q7,this._clippingManager.setClippingMaskBufferSize(e),this._clippingManager.initialize(this.getModel(),this.getModel().getDrawableCount(),this.getModel().getDrawableMasks(),this.getModel().getDrawableMaskCounts())}getClippingMaskBufferSize(){return this._clippingManager.getClippingMaskBufferSize()}release(){var e,t,n;let r=this;this._clippingManager.release(),r._clippingManager=void 0,(e=this.gl)==null||e.deleteBuffer(this._bufferData.vertex),this._bufferData.vertex=null,(t=this.gl)==null||t.deleteBuffer(this._bufferData.uv),this._bufferData.uv=null,(n=this.gl)==null||n.deleteBuffer(this._bufferData.index),this._bufferData.index=null,r._bufferData=void 0,r._textures=void 0}doDrawModel(){this.preDraw(),this._clippingManager!=null&&this._clippingManager.setupClippingContext(this.getModel(),this);let e=this.getModel().getDrawableCount(),t=this.getModel().getDrawableRenderOrders();for(let n=0;n{Z7.doStaticRelease()};var Q7=class{constructor(e){this.groups=e.Groups,this.hitAreas=e.HitAreas,this.layout=e.Layout,this.moc=e.FileReferences.Moc,this.expressions=e.FileReferences.Expressions,this.motions=e.FileReferences.Motions,this.textures=e.FileReferences.Textures,this.physics=e.FileReferences.Physics,this.pose=e.FileReferences.Pose}getEyeBlinkParameters(){var e,t;return(t=(e=this.groups)?.find(e=>e.Name===`EyeBlink`))?.Ids}getLipSyncParameters(){var e,t;return(t=(e=this.groups)?.find(e=>e.Name===`LipSync`))?.Ids}},$7;(e=>{e.LOG_LEVEL_VERBOSE=0,e.LOG_LEVEL_WARNING=1,e.LOG_LEVEL_ERROR=2,e.LOG_LEVEL_NONE=999,e.logLevel=e.LOG_LEVEL_WARNING,e.sound=!0,e.motionSync=!0,e.motionFadingDuration=500,e.idleMotionFadingDuration=2e3,e.expressionFadingDuration=500,e.preserveExpressionOnMotion=!0,e.cubism4=A7})($7||={});const e9={log(e,...t){$7.logLevel<=$7.LOG_LEVEL_VERBOSE&&console.log(`[${e}]`,...t)},warn(e,...t){$7.logLevel<=$7.LOG_LEVEL_WARNING&&console.warn(`[${e}]`,...t)},error(e,...t){$7.logLevel<=$7.LOG_LEVEL_ERROR&&console.error(`[${e}]`,...t)}};function t9(e,t,n){return en?n:e}function n9(e,t){t.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(n=>{n!==`constructor`&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n))})})}function yRe(e){let t=e.lastIndexOf(`/`);return t!=-1&&(e=e.slice(0,t)),t=e.lastIndexOf(`/`),t!==-1&&(e=e.slice(t+1)),e}function bRe(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}var r9=class extends C6.default{constructor(e,t){super(),this.expressions=[],this.reserveExpressionIndex=-1,this.destroyed=!1,this.settings=e,this.tag=`ExpressionManager(${e.name})`}init(){this.defaultExpression=this.createExpression({},void 0),this.currentExpression=this.defaultExpression,this.stopAllExpressions()}loadExpression(e){return r7(this,null,function*(){if(!this.definitions[e]){e9.warn(this.tag,`Undefined expression at [${e}]`);return}if(this.expressions[e]===null){e9.warn(this.tag,`Cannot set expression at [${e}] because it's already failed in loading.`);return}if(this.expressions[e])return this.expressions[e];let t=yield this._loadExpression(e);return this.expressions[e]=t,t})}_loadExpression(e){throw Error(`Not implemented.`)}setRandomExpression(){return r7(this,null,function*(){if(this.definitions.length){let e=[];for(let t=0;t-1&&ec&&(a*=c/s,o*=c/s),this.vx+=a,this.vy+=o;let l=Math.sqrt(n7(this.vx,2)+n7(this.vy,2)),u=.5*(Math.sqrt(n7(c,2)+8*c*r)-c);l>u&&(this.vx*=u/l,this.vy*=u/l),this.x+=this.vx,this.y+=this.vy}},a9=class{constructor(e){this.json=e;let t=e.url;if(typeof t!=`string`)throw TypeError("The `url` field in settings JSON must be defined as a string.");this.url=t,this.name=yRe(this.url)}resolveURL(e){return T6.resolve(this.url,e)}replaceFiles(e){this.moc=e(this.moc,`moc`),this.pose!==void 0&&(this.pose=e(this.pose,`pose`)),this.physics!==void 0&&(this.physics=e(this.physics,`physics`));for(let t=0;t(e.push(t),t)),e}validateFiles(e){let t=(t,n)=>{let r=this.resolveURL(t);if(!e.includes(r)){if(n)throw Error(`File "${t}" is defined in settings, but doesn't exist in given files`);return!1}return!0},n=[this.moc,...this.textures];n.forEach(e=>t(e,!0));let r=this.getDefinedFiles();return r.filter(e=>t(e,!1))}},o9=(e=>(e[e.NONE=0]=`NONE`,e[e.IDLE=1]=`IDLE`,e[e.NORMAL=2]=`NORMAL`,e[e.FORCE=3]=`FORCE`,e))(o9||{}),SRe=class{constructor(){this.debug=!1,this.currentPriority=0,this.reservePriority=0}reserve(e,t,n){if(n<=0)return e9.log(this.tag,`Cannot start a motion with MotionPriority.NONE.`),!1;if(e===this.currentGroup&&t===this.currentIndex)return e9.log(this.tag,`Motion is already playing.`,this.dump(e,t)),!1;if(e===this.reservedGroup&&t===this.reservedIndex||e===this.reservedIdleGroup&&t===this.reservedIdleIndex)return e9.log(this.tag,`Motion is already reserved.`,this.dump(e,t)),!1;if(n===1){if(this.currentPriority!==0)return e9.log(this.tag,`Cannot start idle motion because another motion is playing.`,this.dump(e,t)),!1;if(this.reservedIdleGroup!==void 0)return e9.log(this.tag,`Cannot start idle motion because another idle motion has reserved.`,this.dump(e,t)),!1;this.setReservedIdle(e,t)}else{if(n<3){if(n<=this.currentPriority)return e9.log(this.tag,`Cannot start motion because another motion is playing as an equivalent or higher priority.`,this.dump(e,t)),!1;if(n<=this.reservePriority)return e9.log(this.tag,`Cannot start motion because another motion has reserved as an equivalent or higher priority.`,this.dump(e,t)),!1}this.setReserved(e,t,n)}return!0}start(e,t,n,r){if(r===1){if(this.setReservedIdle(void 0,void 0),this.currentPriority!==0)return e9.log(this.tag,`Cannot start idle motion because another motion is playing.`,this.dump(t,n)),!1}else{if(t!==this.reservedGroup||n!==this.reservedIndex)return e9.log(this.tag,`Cannot start motion because another motion has taken the place.`,this.dump(t,n)),!1;this.setReserved(void 0,void 0,0)}return e?(this.setCurrent(t,n,r),!0):!1}complete(){this.setCurrent(void 0,void 0,0)}setCurrent(e,t,n){this.currentPriority=n,this.currentGroup=e,this.currentIndex=t}setReserved(e,t,n){this.reservePriority=n,this.reservedGroup=e,this.reservedIndex=t}setReservedIdle(e,t){this.reservedIdleGroup=e,this.reservedIdleIndex=t}isActive(e,t){return e===this.currentGroup&&t===this.currentIndex||e===this.reservedGroup&&t===this.reservedIndex||e===this.reservedIdleGroup&&t===this.reservedIdleIndex}reset(){this.setCurrent(void 0,void 0,0),this.setReserved(void 0,void 0,0),this.setReservedIdle(void 0,void 0)}shouldRequestIdleMotion(){return this.currentGroup===void 0&&this.reservedIdleGroup===void 0}shouldOverrideExpression(){return!$7.preserveExpressionOnMotion&&this.currentPriority>1}dump(e,t){if(this.debug){let n=[`currentPriority`,`reservePriority`,`currentGroup`,`currentIndex`,`reservedGroup`,`reservedIndex`,`reservedIdleGroup`,`reservedIdleIndex`];return` group = "${e}", index = ${t} `+n.map(e=>`[`+e+`] `+this[e]).join(` -`)}return``}},s9=class{static get volume(){return this._volume}static set volume(e){this._volume=(e>1?1:e<0?0:e)||0,this.audios.forEach(e=>e.volume=this._volume)}static add(e,t,n){let r=new Audio(e);return r.volume=this._volume,r.preload=`auto`,r.addEventListener(`ended`,()=>{this.dispose(r),t?.()}),r.addEventListener(`error`,t=>{this.dispose(r),e9.warn(`SoundManager`,`Error occurred on "${e}"`,t.error),n?.(t.error)}),this.audios.push(r),r}static play(e){return new Promise((t,n)=>{var r;(r=e.play())==null||r.catch(t=>{e.dispatchEvent(new ErrorEvent(`error`,{error:t})),n(t)}),e.readyState===e.HAVE_ENOUGH_DATA?t():e.addEventListener(`canplaythrough`,t)})}static dispose(e){e.pause(),e.removeAttribute(`src`),gLe(this.audios,e)}static destroy(){for(let e=this.audios.length-1;e>=0;e--)this.dispose(this.audios[e])}};s9.audios=[],s9._volume=.5;var c9=class extends C6.default{constructor(e,t){super(),this.motionGroups={},this.state=new vLe,this.playing=!1,this.destroyed=!1,this.settings=e,this.tag=`MotionManager(${e.name})`,this.state.tag=this.tag}init(e){e?.idleMotionGroup&&(this.groups.idle=e.idleMotionGroup),this.setupMotions(e),this.stopAllMotions()}setupMotions(e){for(let e of Object.keys(this.definitions))this.motionGroups[e]=[];let t;switch(e?.motionPreload){case`NONE`:return;case`ALL`:t=Object.keys(this.definitions);break;case`IDLE`:default:t=[this.groups.idle];break}for(let e of t)if(this.definitions[e])for(let t=0;tthis.currentAudio=void 0,()=>this.currentAudio=void 0),this.currentAudio=a}catch(t){e9.warn(this.tag,`Failed to create audio`,e,t)}}let o=yield this.loadMotion(e,t);if(a){let e=s9.play(a).catch(e=>e9.warn(this.tag,`Failed to play audio`,a.src,e));$7.motionSync&&(yield e)}return this.state.start(o,e,t,n)?(e9.log(this.tag,`Start motion:`,this.getMotionName(i)),this.emit(`motionStart`,e,t,a),this.state.shouldOverrideExpression()&&this.expressionManager&&this.expressionManager.resetExpression(),this.playing=!0,this._startMotion(o),!0):(a&&(s9.dispose(a),this.currentAudio=void 0),!1)})}startRandomMotion(e,t){return r7(this,null,function*(){let n=this.definitions[e];if(n?.length){let r=[];for(let t=0;te.index>=0);for(let t of e)this.hitAreas[t.name]=t}hitTest(e,t){return Object.keys(this.hitAreas).filter(n=>this.isHit(n,e,t))}isHit(e,t,n){if(!this.hitAreas[e])return!1;let r=this.hitAreas[e].index,i=this.getDrawableBounds(r,yLe);return i.x<=t&&t<=i.x+i.width&&i.y<=n&&n<=i.y+i.height}getDrawableBounds(e,t){let n=this.getDrawableVertices(e),r=n[0],i=n[0],a=n[1],o=n[1];for(let e=0;e{(a.status===200||a.status===0)&&a.response?r(a.response):a.onerror()},a.onerror=()=>{e9.warn(`XHRLoader`,`Failed to load resource as ${a.responseType} (Status ${a.status}): ${t}`),i(new l9(`Network error.`,t,a.status))},a.onabort=()=>i(new l9(`Aborted.`,t,a.status,!0)),a.onloadend=()=>{var t;u9.allXhrSet.delete(a),e&&((t=u9.xhrMap.get(e))==null||t.delete(a))},a}static cancelXHRs(){var e;(e=u9.xhrMap.get(this))==null||e.forEach(e=>{e.abort(),u9.allXhrSet.delete(e)}),u9.xhrMap.delete(this)}static release(){u9.allXhrSet.forEach(e=>e.abort()),u9.allXhrSet.clear(),u9.xhrMap=new WeakMap}};let d9=u9;d9.xhrMap=new WeakMap,d9.allXhrSet=new Set,d9.loader=(e,t)=>new Promise((t,n)=>{let r=u9.createXHR(e.target,e.settings?e.settings.resolveURL(e.url):e.url,e.type,n=>{e.result=n,t()},n);r.send()});function f9(e,t){let n=-1;return r(0);function r(i,a){if(a)return Promise.reject(a);if(i<=n)return Promise.reject(Error(`next() called multiple times`));n=i;let o=e[i];if(!o)return Promise.resolve();try{return Promise.resolve(o(t,r.bind(null,i+1)))}catch(e){return Promise.reject(e)}}}var p9=class{static load(e){return f9(this.middlewares,e).then(()=>e.result)}};p9.middlewares=[d9.loader];function xLe(e,t={}){var n;let r={resourceOptions:{crossorigin:t.crossOrigin}};if(L8.fromURL)return L8.fromURL(e,r).catch(e=>{if(e instanceof Error)throw e;let t=Error(`Texture loading error`);throw t.event=e,t});r.resourceOptions.autoLoad=!1;let i=L8.from(e,r);if(i.baseTexture.valid)return Promise.resolve(i);let a=i.baseTexture.resource;return(n=a._live2d_load)??(a._live2d_load=new Promise((e,t)=>{let n=e=>{a.source.removeEventListener(`error`,n);let r=Error(`Texture loading error`);r.event=e,t(r)};a.source.addEventListener(`error`,n),a.load().then(()=>e(i)).catch(n)})),a._live2d_load}const m9=`Live2DFactory`,h9=(e,t)=>r7(void 0,null,function*(){if(typeof e.source==`string`){let t=yield p9.load({url:e.source,type:`json`,target:e.live2dModel});t.url=e.source,e.source=t,e.live2dModel.emit(`settingsJSONLoaded`,t)}return t()}),g9=(e,t)=>r7(void 0,null,function*(){if(e.source instanceof a9)return e.settings=e.source,t();if(typeof e.source==`object`){let n=S9.findRuntime(e.source);if(n){let r=n.createModelSettings(e.source);return e.settings=r,e.live2dModel.emit(`settingsLoaded`,r),t()}}throw TypeError(`Unknown settings format.`)}),_9=(e,t)=>{if(e.settings){let n=S9.findRuntime(e.settings);if(n)return n.ready().then(t)}return t()},v9=(e,t)=>r7(void 0,null,function*(){yield t();let n=e.internalModel;if(n){let t=e.settings,r=S9.findRuntime(t);if(r){let i=[];t.pose&&i.push(p9.load({settings:t,url:t.pose,type:`json`,target:n}).then(t=>{n.pose=r.createPose(n.coreModel,t),e.live2dModel.emit(`poseLoaded`,n.pose)}).catch(t=>{e.live2dModel.emit(`poseLoadError`,t),e9.warn(m9,`Failed to load pose.`,t)})),t.physics&&i.push(p9.load({settings:t,url:t.physics,type:`json`,target:n}).then(t=>{n.physics=r.createPhysics(n.coreModel,t),e.live2dModel.emit(`physicsLoaded`,n.physics)}).catch(t=>{e.live2dModel.emit(`physicsLoadError`,t),e9.warn(m9,`Failed to load physics.`,t)})),i.length&&(yield Promise.all(i))}}}),y9=(e,t)=>r7(void 0,null,function*(){if(e.settings){let n=e.live2dModel,r=e.settings.textures.map(t=>{let n=e.settings.resolveURL(t);return xLe(n,{crossOrigin:e.options.crossOrigin})});if(yield t(),e.internalModel)n.internalModel=e.internalModel,n.emit(`modelLoaded`,e.internalModel);else throw TypeError(`Missing internal model.`);n.textures=yield Promise.all(r),n.emit(`textureLoaded`,n.textures)}else throw TypeError(`Missing settings.`)}),b9=(e,t)=>r7(void 0,null,function*(){let n=e.settings;if(n instanceof a9){let r=S9.findRuntime(n);if(!r)throw TypeError(`Unknown model settings.`);let i=yield p9.load({settings:n,url:n.moc,type:`arraybuffer`,target:e.live2dModel});if(!r.isValidMoc(i))throw Error(`Invalid moc data`);let a=r.createCoreModel(i);return e.internalModel=r.createInternalModel(a,n,e.options),t()}throw TypeError(`Missing settings.`)}),x9=class{static registerRuntime(e){x9.runtimes.push(e),x9.runtimes.sort((e,t)=>t.version-e.version)}static findRuntime(e){for(let t of x9.runtimes)if(t.test(e))return t}static setupLive2DModel(e,t,n){return r7(this,null,function*(){let r=new Promise(t=>e.once(`textureLoaded`,t)),i=new Promise(t=>e.once(`modelLoaded`,t)),a=Promise.all([r,i]).then(()=>e.emit(`ready`));yield f9(x9.live2DModelMiddlewares,{live2dModel:e,source:t,options:n||{}}),yield a,e.emit(`load`)})}static loadMotion(e,t,n){var r,i;let a=r=>e.emit(`motionLoadError`,t,n,r);try{let o=(r=e.definitions[t])?.[n];if(!o)return Promise.resolve(void 0);e.listeners(`destroy`).includes(x9.releaseTasks)||e.once(`destroy`,x9.releaseTasks);let s=x9.motionTasksMap.get(e);s||(s={},x9.motionTasksMap.set(e,s));let c=s[t];c||(c=[],s[t]=c);let l=e.getMotionFile(o);return(i=c[n])??(c[n]=p9.load({url:l,settings:e.settings,type:e.motionDataType,target:e}).then(r=>{var i;let a=(i=x9.motionTasksMap.get(e))?.[t];a&&delete a[n];let s=e.createMotion(r,t,o);return e.emit(`motionLoaded`,t,n,s),s}).catch(t=>{e9.warn(e.tag,`Failed to load motion: ${l} +`)}return``}},s9=class{static get volume(){return this._volume}static set volume(e){this._volume=(e>1?1:e<0?0:e)||0,this.audios.forEach(e=>e.volume=this._volume)}static add(e,t,n){let r=new Audio(e);return r.volume=this._volume,r.preload=`auto`,r.addEventListener(`ended`,()=>{this.dispose(r),t?.()}),r.addEventListener(`error`,t=>{this.dispose(r),e9.warn(`SoundManager`,`Error occurred on "${e}"`,t.error),n?.(t.error)}),this.audios.push(r),r}static play(e){return new Promise((t,n)=>{var r;(r=e.play())==null||r.catch(t=>{e.dispatchEvent(new ErrorEvent(`error`,{error:t})),n(t)}),e.readyState===e.HAVE_ENOUGH_DATA?t():e.addEventListener(`canplaythrough`,t)})}static dispose(e){e.pause(),e.removeAttribute(`src`),bRe(this.audios,e)}static destroy(){for(let e=this.audios.length-1;e>=0;e--)this.dispose(this.audios[e])}};s9.audios=[],s9._volume=.5;var c9=class extends C6.default{constructor(e,t){super(),this.motionGroups={},this.state=new SRe,this.playing=!1,this.destroyed=!1,this.settings=e,this.tag=`MotionManager(${e.name})`,this.state.tag=this.tag}init(e){e?.idleMotionGroup&&(this.groups.idle=e.idleMotionGroup),this.setupMotions(e),this.stopAllMotions()}setupMotions(e){for(let e of Object.keys(this.definitions))this.motionGroups[e]=[];let t;switch(e?.motionPreload){case`NONE`:return;case`ALL`:t=Object.keys(this.definitions);break;case`IDLE`:default:t=[this.groups.idle];break}for(let e of t)if(this.definitions[e])for(let t=0;tthis.currentAudio=void 0,()=>this.currentAudio=void 0),this.currentAudio=a}catch(t){e9.warn(this.tag,`Failed to create audio`,e,t)}}let o=yield this.loadMotion(e,t);if(a){let e=s9.play(a).catch(e=>e9.warn(this.tag,`Failed to play audio`,a.src,e));$7.motionSync&&(yield e)}return this.state.start(o,e,t,n)?(e9.log(this.tag,`Start motion:`,this.getMotionName(i)),this.emit(`motionStart`,e,t,a),this.state.shouldOverrideExpression()&&this.expressionManager&&this.expressionManager.resetExpression(),this.playing=!0,this._startMotion(o),!0):(a&&(s9.dispose(a),this.currentAudio=void 0),!1)})}startRandomMotion(e,t){return r7(this,null,function*(){let n=this.definitions[e];if(n?.length){let r=[];for(let t=0;te.index>=0);for(let t of e)this.hitAreas[t.name]=t}hitTest(e,t){return Object.keys(this.hitAreas).filter(n=>this.isHit(n,e,t))}isHit(e,t,n){if(!this.hitAreas[e])return!1;let r=this.hitAreas[e].index,i=this.getDrawableBounds(r,CRe);return i.x<=t&&t<=i.x+i.width&&i.y<=n&&n<=i.y+i.height}getDrawableBounds(e,t){let n=this.getDrawableVertices(e),r=n[0],i=n[0],a=n[1],o=n[1];for(let e=0;e{(a.status===200||a.status===0)&&a.response?r(a.response):a.onerror()},a.onerror=()=>{e9.warn(`XHRLoader`,`Failed to load resource as ${a.responseType} (Status ${a.status}): ${t}`),i(new l9(`Network error.`,t,a.status))},a.onabort=()=>i(new l9(`Aborted.`,t,a.status,!0)),a.onloadend=()=>{var t;u9.allXhrSet.delete(a),e&&((t=u9.xhrMap.get(e))==null||t.delete(a))},a}static cancelXHRs(){var e;(e=u9.xhrMap.get(this))==null||e.forEach(e=>{e.abort(),u9.allXhrSet.delete(e)}),u9.xhrMap.delete(this)}static release(){u9.allXhrSet.forEach(e=>e.abort()),u9.allXhrSet.clear(),u9.xhrMap=new WeakMap}};let d9=u9;d9.xhrMap=new WeakMap,d9.allXhrSet=new Set,d9.loader=(e,t)=>new Promise((t,n)=>{let r=u9.createXHR(e.target,e.settings?e.settings.resolveURL(e.url):e.url,e.type,n=>{e.result=n,t()},n);r.send()});function f9(e,t){let n=-1;return r(0);function r(i,a){if(a)return Promise.reject(a);if(i<=n)return Promise.reject(Error(`next() called multiple times`));n=i;let o=e[i];if(!o)return Promise.resolve();try{return Promise.resolve(o(t,r.bind(null,i+1)))}catch(e){return Promise.reject(e)}}}var p9=class{static load(e){return f9(this.middlewares,e).then(()=>e.result)}};p9.middlewares=[d9.loader];function TRe(e,t={}){var n;let r={resourceOptions:{crossorigin:t.crossOrigin}};if(L8.fromURL)return L8.fromURL(e,r).catch(e=>{if(e instanceof Error)throw e;let t=Error(`Texture loading error`);throw t.event=e,t});r.resourceOptions.autoLoad=!1;let i=L8.from(e,r);if(i.baseTexture.valid)return Promise.resolve(i);let a=i.baseTexture.resource;return(n=a._live2d_load)??(a._live2d_load=new Promise((e,t)=>{let n=e=>{a.source.removeEventListener(`error`,n);let r=Error(`Texture loading error`);r.event=e,t(r)};a.source.addEventListener(`error`,n),a.load().then(()=>e(i)).catch(n)})),a._live2d_load}const m9=`Live2DFactory`,h9=(e,t)=>r7(void 0,null,function*(){if(typeof e.source==`string`){let t=yield p9.load({url:e.source,type:`json`,target:e.live2dModel});t.url=e.source,e.source=t,e.live2dModel.emit(`settingsJSONLoaded`,t)}return t()}),g9=(e,t)=>r7(void 0,null,function*(){if(e.source instanceof a9)return e.settings=e.source,t();if(typeof e.source==`object`){let n=S9.findRuntime(e.source);if(n){let r=n.createModelSettings(e.source);return e.settings=r,e.live2dModel.emit(`settingsLoaded`,r),t()}}throw TypeError(`Unknown settings format.`)}),_9=(e,t)=>{if(e.settings){let n=S9.findRuntime(e.settings);if(n)return n.ready().then(t)}return t()},v9=(e,t)=>r7(void 0,null,function*(){yield t();let n=e.internalModel;if(n){let t=e.settings,r=S9.findRuntime(t);if(r){let i=[];t.pose&&i.push(p9.load({settings:t,url:t.pose,type:`json`,target:n}).then(t=>{n.pose=r.createPose(n.coreModel,t),e.live2dModel.emit(`poseLoaded`,n.pose)}).catch(t=>{e.live2dModel.emit(`poseLoadError`,t),e9.warn(m9,`Failed to load pose.`,t)})),t.physics&&i.push(p9.load({settings:t,url:t.physics,type:`json`,target:n}).then(t=>{n.physics=r.createPhysics(n.coreModel,t),e.live2dModel.emit(`physicsLoaded`,n.physics)}).catch(t=>{e.live2dModel.emit(`physicsLoadError`,t),e9.warn(m9,`Failed to load physics.`,t)})),i.length&&(yield Promise.all(i))}}}),y9=(e,t)=>r7(void 0,null,function*(){if(e.settings){let n=e.live2dModel,r=e.settings.textures.map(t=>{let n=e.settings.resolveURL(t);return TRe(n,{crossOrigin:e.options.crossOrigin})});if(yield t(),e.internalModel)n.internalModel=e.internalModel,n.emit(`modelLoaded`,e.internalModel);else throw TypeError(`Missing internal model.`);n.textures=yield Promise.all(r),n.emit(`textureLoaded`,n.textures)}else throw TypeError(`Missing settings.`)}),b9=(e,t)=>r7(void 0,null,function*(){let n=e.settings;if(n instanceof a9){let r=S9.findRuntime(n);if(!r)throw TypeError(`Unknown model settings.`);let i=yield p9.load({settings:n,url:n.moc,type:`arraybuffer`,target:e.live2dModel});if(!r.isValidMoc(i))throw Error(`Invalid moc data`);let a=r.createCoreModel(i);return e.internalModel=r.createInternalModel(a,n,e.options),t()}throw TypeError(`Missing settings.`)}),x9=class{static registerRuntime(e){x9.runtimes.push(e),x9.runtimes.sort((e,t)=>t.version-e.version)}static findRuntime(e){for(let t of x9.runtimes)if(t.test(e))return t}static setupLive2DModel(e,t,n){return r7(this,null,function*(){let r=new Promise(t=>e.once(`textureLoaded`,t)),i=new Promise(t=>e.once(`modelLoaded`,t)),a=Promise.all([r,i]).then(()=>e.emit(`ready`));yield f9(x9.live2DModelMiddlewares,{live2dModel:e,source:t,options:n||{}}),yield a,e.emit(`load`)})}static loadMotion(e,t,n){var r,i;let a=r=>e.emit(`motionLoadError`,t,n,r);try{let o=(r=e.definitions[t])?.[n];if(!o)return Promise.resolve(void 0);e.listeners(`destroy`).includes(x9.releaseTasks)||e.once(`destroy`,x9.releaseTasks);let s=x9.motionTasksMap.get(e);s||(s={},x9.motionTasksMap.set(e,s));let c=s[t];c||(c=[],s[t]=c);let l=e.getMotionFile(o);return(i=c[n])??(c[n]=p9.load({url:l,settings:e.settings,type:e.motionDataType,target:e}).then(r=>{var i;let a=(i=x9.motionTasksMap.get(e))?.[t];a&&delete a[n];let s=e.createMotion(r,t,o);return e.emit(`motionLoaded`,t,n,s),s}).catch(t=>{e9.warn(e.tag,`Failed to load motion: ${l} `,t),a(t)})),c[n]}catch(r){e9.warn(e.tag,`Failed to load motion at "${t}"[${n}] `,r),a(r)}return Promise.resolve(void 0)}static loadExpression(e,t){var n;let r=n=>e.emit(`expressionLoadError`,t,n);try{let i=e.definitions[t];if(!i)return Promise.resolve(void 0);e.listeners(`destroy`).includes(x9.releaseTasks)||e.once(`destroy`,x9.releaseTasks);let a=x9.expressionTasksMap.get(e);a||(a=[],x9.expressionTasksMap.set(e,a));let o=e.getExpressionFile(i);return(n=a[t])??(a[t]=p9.load({url:o,settings:e.settings,type:`json`,target:e}).then(n=>{let r=x9.expressionTasksMap.get(e);r&&delete r[t];let a=e.createExpression(n,i);return e.emit(`expressionLoaded`,t,a),a}).catch(t=>{e9.warn(e.tag,`Failed to load expression: ${o} `,t),r(t)})),a[t]}catch(n){e9.warn(e.tag,`Failed to load expression at [${t}] -`,n),r(n)}return Promise.resolve(void 0)}static releaseTasks(){this instanceof c9?x9.motionTasksMap.delete(this):x9.expressionTasksMap.delete(this)}};let S9=x9;S9.runtimes=[],S9.urlToJSON=h9,S9.jsonToSettings=g9,S9.waitUntilReady=_9,S9.setupOptionals=v9,S9.setupEssentials=y9,S9.createInternalModel=b9,S9.live2DModelMiddlewares=[h9,g9,_9,v9,y9,b9],S9.motionTasksMap=new WeakMap,S9.expressionTasksMap=new WeakMap,c9.prototype._loadMotion=function(e,t){return S9.loadMotion(this,e,t)},r9.prototype._loadExpression=function(e){return S9.loadExpression(this,e)};var SLe=class{constructor(){this._autoInteract=!1}get autoInteract(){return this._autoInteract}set autoInteract(e){e!==this._autoInteract&&(e?this.on(`pointertap`,C9,this):this.off(`pointertap`,C9,this),this._autoInteract=e)}registerInteraction(e){e!==this.interactionManager&&(this.unregisterInteraction(),this._autoInteract&&e&&(this.interactionManager=e,e.on(`pointermove`,w9,this)))}unregisterInteraction(){var e;this.interactionManager&&=((e=this.interactionManager)==null||e.off(`pointermove`,w9,this),void 0)}};function C9(e){this.tap(e.data.global.x,e.data.global.y)}function w9(e){this.focus(e.data.global.x,e.data.global.y)}var CLe=class extends p8{};const T9=new e8,wLe=new i8;let E9;var D9=class extends $5{constructor(e){super(),this.tag=`Live2DModel(uninitialized)`,this.textures=[],this.transform=new CLe,this.anchor=new r8(this.onAnchorChange,this,0,0),this.glContextID=-1,this.elapsedTime=performance.now(),this.deltaTime=0,this._autoUpdate=!1,this.once(`modelLoaded`,()=>this.init(e))}static from(e,t){let n=new this(t);return S9.setupLive2DModel(n,e,t).then(()=>n)}static fromSync(e,t){let n=new this(t);return S9.setupLive2DModel(n,e,t).then(t?.onLoad).catch(t?.onError),n}static registerTicker(e){E9=e}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){var t;E9||=(t=window.PIXI)?.Ticker,e?this._destroyed||(E9?(E9.shared.add(this.onTickerUpdate,this),this._autoUpdate=!0):e9.warn(this.tag,`No Ticker registered, please call Live2DModel.registerTicker(Ticker).`)):(E9?.shared.remove(this.onTickerUpdate,this),this._autoUpdate=!1)}init(e){this.tag=`Live2DModel(${this.internalModel.settings.name})`;let t=Object.assign({autoUpdate:!0,autoInteract:!0},e);t.autoInteract&&(this.interactive=!0),this.autoInteract=t.autoInteract,this.autoUpdate=t.autoUpdate}onAnchorChange(){this.pivot.set(this.anchor.x*this.internalModel.width,this.anchor.y*this.internalModel.height)}motion(e,t,n){return t===void 0?this.internalModel.motionManager.startRandomMotion(e,n):this.internalModel.motionManager.startMotion(e,t,n)}expression(e){return this.internalModel.motionManager.expressionManager?e===void 0?this.internalModel.motionManager.expressionManager.setRandomExpression():this.internalModel.motionManager.expressionManager.setExpression(e):Promise.resolve(!1)}focus(e,t,n=!1){T9.x=e,T9.y=t,this.toModelPosition(T9,T9,!0);let r=T9.x/this.internalModel.originalWidth*2-1,i=T9.y/this.internalModel.originalHeight*2-1,a=Math.atan2(i,r);this.internalModel.focusController.focus(Math.cos(a),-Math.sin(a),n)}tap(e,t){let n=this.hitTest(e,t);n.length&&(e9.log(this.tag,`Hit`,n),this.emit(`hit`,n))}hitTest(e,t){return T9.x=e,T9.y=t,this.toModelPosition(T9,T9),this.internalModel.hitTest(T9.x,T9.y)}toModelPosition(e,t=e.clone(),n){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.transform.worldTransform.applyInverse(e,t),this.internalModel.localTransform.applyInverse(t,t),t}containsPoint(e){return this.getBounds(!0).contains(e.x,e.y)}_calculateBounds(){this._bounds.addFrame(this.transform,0,0,this.internalModel.width,this.internalModel.height)}onTickerUpdate(){this.update(E9.shared.deltaMS)}update(e){this.deltaTime+=e,this.elapsedTime+=e}_render(e){this.registerInteraction(e.plugins.interaction),e.batch.reset(),e.geometry.reset(),e.shader.reset(),e.state.reset();let t=!1;this.glContextID!==e.CONTEXT_UID&&(this.glContextID=e.CONTEXT_UID,this.internalModel.updateWebGLContext(e.gl,this.glContextID),t=!0);for(let n=0;nt.destroy(e.baseTexture)),this.internalModel.destroy(),super.destroy(e)}};n9(D9,[SLe]);const O9=class{static resolveURL(e,t){var n;let r=(n=O9.filesMap[e])?.[t];if(r===void 0)throw Error(`Cannot find this file from uploaded files: `+t);return r}static upload(e,t){return r7(this,null,function*(){let n={};for(let r of t.getDefinedFiles()){let i=decodeURI(T6.resolve(t.url,r)),a=e.find(e=>e.webkitRelativePath===i);a&&(n[r]=URL.createObjectURL(a))}O9.filesMap[t._objectURL]=n})}static createSettings(e){return r7(this,null,function*(){let t=e.find(e=>e.name.endsWith(`model.json`)||e.name.endsWith(`model3.json`));if(!t)throw TypeError(`Settings file not found`);let n=yield O9.readText(t),r=JSON.parse(n);r.url=t.webkitRelativePath;let i=S9.findRuntime(r);if(!i)throw Error(`Unknown settings JSON`);let a=i.createModelSettings(r);return a._objectURL=URL.createObjectURL(t),a})}static readText(e){return r7(this,null,function*(){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=n,r.readAsText(e,`utf8`)})})}};let k9=O9;k9.filesMap={},k9.factory=(e,t)=>r7(void 0,null,function*(){if(Array.isArray(e.source)&&e.source[0]instanceof File){let t=e.source,n=t.settings;if(!n)n=yield O9.createSettings(t);else if(!n._objectURL)throw Error(`"_objectURL" must be specified in ModelSettings`);n.validateFiles(t.map(e=>encodeURI(e.webkitRelativePath))),yield O9.upload(t,n),n.resolveURL=function(e){return O9.resolveURL(this._objectURL,e)},e.source=n,e.live2dModel.once(`modelLoaded`,e=>{e.once(`destroy`,function(){let e=this.settings._objectURL;if(URL.revokeObjectURL(e),O9.filesMap[e])for(let t of Object.values(O9.filesMap[e]))URL.revokeObjectURL(t);delete O9.filesMap[e]})})}return t()}),S9.live2DModelMiddlewares.unshift(k9.factory);const A9=class{static unzip(e,t){return r7(this,null,function*(){let n=yield A9.getFilePaths(e),r=[];for(let e of t.getDefinedFiles()){let i=decodeURI(T6.resolve(t.url,e));n.includes(i)&&r.push(i)}let i=yield A9.getFiles(e,r);for(let e=0;ee.endsWith(`model.json`)||e.endsWith(`model3.json`));if(!n)throw Error(`Settings file not found`);let r=yield A9.readText(e,n);if(!r)throw Error(`Empty settings file: `+n);let i=JSON.parse(r);i.url=n;let a=S9.findRuntime(i);if(!a)throw Error(`Unknown settings JSON`);return a.createModelSettings(i)})}static zipReader(e,t){return r7(this,null,function*(){throw Error(`Not implemented`)})}static getFilePaths(e){return r7(this,null,function*(){throw Error(`Not implemented`)})}static getFiles(e,t){return r7(this,null,function*(){throw Error(`Not implemented`)})}static readText(e,t){return r7(this,null,function*(){throw Error(`Not implemented`)})}static releaseReader(e){}};let j9=A9;if(j9.ZIP_PROTOCOL=`zip://`,j9.uid=0,j9.factory=(e,t)=>r7(void 0,null,function*(){let n=e.source,r,i,a;if(typeof n==`string`&&(n.endsWith(`.zip`)||n.startsWith(A9.ZIP_PROTOCOL))?(r=n.startsWith(A9.ZIP_PROTOCOL)?n.slice(A9.ZIP_PROTOCOL.length):n,i=yield p9.load({url:r,type:`blob`,target:e.live2dModel})):Array.isArray(n)&&n.length===1&&n[0]instanceof File&&n[0].name.endsWith(`.zip`)&&(i=n[0],r=URL.createObjectURL(i),a=n.settings),i){if(!i.size)throw Error(`Empty zip file`);let t=yield A9.zipReader(i,r);a||=yield A9.createSettings(t),a._objectURL=A9.ZIP_PROTOCOL+A9.uid+`/`+a.url;let n=yield A9.unzip(t,a);n.settings=a,e.source=n,r.startsWith(`blob:`)&&e.live2dModel.once(`modelLoaded`,e=>{e.once(`destroy`,function(){URL.revokeObjectURL(r)})}),A9.releaseReader(t)}return t()}),S9.live2DModelMiddlewares.unshift(j9.factory),!window.Live2DCubismCore)throw Error(`Could not find Cubism 4 runtime. This plugin requires live2dcubismcore.js to be loaded.`);var TLe=class extends r9{constructor(e,t){var n;super(e,t),this.queueManager=new R7,this.definitions=(n=e.expressions)??[],this.init()}isFinished(){return this.queueManager.isFinished()}getExpressionIndex(e){return this.definitions.findIndex(t=>t.Name===e)}getExpressionFile(e){return e.File}createExpression(e,t){return DIe.create(e)}_setExpression(e){return this.queueManager.startMotion(e,!1,performance.now())}stopAllExpressions(){this.queueManager.stopAllMotions()}updateParameters(e,t){return this.queueManager.doUpdateMotion(e,t)}},M9=class e extends a9{constructor(t){if(super(t),!e.isValidJSON(t))throw TypeError(`Invalid JSON.`);Object.assign(this,new Q7(t))}static isValidJSON(e){var t;return!!e?.FileReferences&&typeof e.FileReferences.Moc==`string`&&(t=e.FileReferences.Textures)?.length>0&&e.FileReferences.Textures.every(e=>typeof e==`string`)}replaceFiles(e){if(super.replaceFiles(e),this.motions)for(let[t,n]of Object.entries(this.motions))for(let r=0;r{this.emit(`motion:`+t)})}isFinished(){return this.queueManager.isFinished()}_startMotion(e,t){return e.setFinishedMotionHandler(t),this.queueManager.stopAllMotions(),this.queueManager.startMotion(e,!1,performance.now())}_stopAllMotions(){this.queueManager.stopAllMotions()}createMotion(e,t,n){let r=LIe.create(e),i=new P7(e),a=(t===this.groups.idle?$7.idleMotionFadingDuration:$7.motionFadingDuration)/1e3;return i.getMotionFadeInTime()===void 0&&r.setFadeInTime(n.FadeInTime>0?n.FadeInTime:a),i.getMotionFadeOutTime()===void 0&&r.setFadeOutTime(n.FadeOutTime>0?n.FadeOutTime:a),r.setEffectIds(this.eyeBlinkIds,this.lipSyncIds),r}getMotionFile(e){return e.File}getMotionName(e){return e.File}getSoundFile(e){return e.Sound}updateParameters(e,t){return this.queueManager.doUpdateMotion(e,t)}destroy(){super.destroy(),this.queueManager.release(),this.queueManager=void 0}};const N9=new p7;var DLe=class extends bLe{constructor(e,t,n){super(),this.lipSync=!0,this.breath=CIe.create(),this.renderer=new Z7,this.idParamAngleX=`ParamAngleX`,this.idParamAngleY=`ParamAngleY`,this.idParamAngleZ=`ParamAngleZ`,this.idParamEyeBallX=`ParamEyeBallX`,this.idParamEyeBallY=`ParamEyeBallY`,this.idParamBodyAngleX=`ParamBodyAngleX`,this.idParamBreath=`ParamBreath`,this.pixelsPerUnit=1,this.centeringTransform=new i8,this.coreModel=e,this.settings=t,this.motionManager=new ELe(t,n),this.init()}init(){var e;super.init(),(e=this.settings.getEyeBlinkParameters())?.length>0&&(this.eyeBlink=o7.create(this.settings)),this.breath.setParameters([new i7(this.idParamAngleX,0,15,6.5345,.5),new i7(this.idParamAngleY,0,8,3.5345,.5),new i7(this.idParamAngleZ,0,10,5.5345,.5),new i7(this.idParamBodyAngleX,0,4,15.5345,.5),new i7(this.idParamBreath,0,.5,3.2345,.5)]),this.renderer.initialize(this.coreModel),this.renderer.setIsPremultipliedAlpha(!0)}getSize(){return[this.coreModel.getModel().canvasinfo.CanvasWidth,this.coreModel.getModel().canvasinfo.CanvasHeight]}getLayout(){let e={};if(this.settings.layout)for(let t of Object.keys(this.settings.layout)){let n=t.charAt(0).toLowerCase()+t.slice(1);e[n]=this.settings.layout[t]}return e}setupLayout(){super.setupLayout(),this.pixelsPerUnit=this.coreModel.getModel().canvasinfo.PixelsPerUnit,this.centeringTransform.scale(this.pixelsPerUnit,this.pixelsPerUnit).translate(this.originalWidth/2,this.originalHeight/2)}updateWebGLContext(e,t){this.renderer.firstDraw=!0,this.renderer._bufferData={vertex:null,uv:null,index:null},this.renderer.startUp(e),this.renderer._clippingManager._currentFrameNo=t,this.renderer._clippingManager._maskTexture=void 0,J7.getInstance()._shaderSets=[]}bindTexture(e,t){this.renderer.bindTexture(e,t)}getHitAreaDefs(){var e,t;return(t=(e=this.settings.hitAreas)?.map(e=>({id:e.Id,name:e.Name,index:this.coreModel.getDrawableIndex(e.Id)})))??[]}getDrawableIDs(){return this.coreModel.getDrawableIds()}getDrawableIndex(e){return this.coreModel.getDrawableIndex(e)}getDrawableVertices(e){if(typeof e==`string`&&(e=this.coreModel.getDrawableIndex(e),e===-1))throw TypeError(`Unable to find drawable ID: `+e);let t=this.coreModel.getDrawableVertices(e).slice();for(let e=0;e{function n(){try{kLe(),e()}catch(e){if(F9--,F9<0){let n=Error(`Failed to start up Cubism 4 framework.`);n.cause=e,t(n);return}e9.log(`Cubism4`,`Startup failed, retrying 10ms later...`),setTimeout(n,10)}}n()}),P9)}function kLe(e){e=Object.assign({logFunction:console.log,loggingLevel:S7.LogLevel_Verbose},e),x7.startUp(e),x7.initialize()}S9.registerRuntime({version:4,ready:OLe,test(e){return e instanceof M9||M9.isValidJSON(e)},isValidMoc(e){if(e.byteLength<4)return!1;let t=new Int8Array(e,0,4);return String.fromCharCode(...t)===`MOC3`},createModelSettings(e){return new M9(e)},createCoreModel(e){let t=EIe.create(e);try{let e=t.createModel();return e.__moc=t,e}catch(e){try{t.release()}catch{}throw e}},createInternalModel(e,t,n){let r=new DLe(e,t,n),i=e;return i.__moc&&(r.__moc=i.__moc,delete i.__moc,r.once(`destroy`,ALe)),r},createPhysics(e,t){return KIe.create(t)},createPose(e,t){return wIe.create(t)}});function ALe(){var e;(e=this.__moc)==null||e.release()}var jLe=s(((exports,t)=>{ +`,n),r(n)}return Promise.resolve(void 0)}static releaseTasks(){this instanceof c9?x9.motionTasksMap.delete(this):x9.expressionTasksMap.delete(this)}};let S9=x9;S9.runtimes=[],S9.urlToJSON=h9,S9.jsonToSettings=g9,S9.waitUntilReady=_9,S9.setupOptionals=v9,S9.setupEssentials=y9,S9.createInternalModel=b9,S9.live2DModelMiddlewares=[h9,g9,_9,v9,y9,b9],S9.motionTasksMap=new WeakMap,S9.expressionTasksMap=new WeakMap,c9.prototype._loadMotion=function(e,t){return S9.loadMotion(this,e,t)},r9.prototype._loadExpression=function(e){return S9.loadExpression(this,e)};var ERe=class{constructor(){this._autoInteract=!1}get autoInteract(){return this._autoInteract}set autoInteract(e){e!==this._autoInteract&&(e?this.on(`pointertap`,C9,this):this.off(`pointertap`,C9,this),this._autoInteract=e)}registerInteraction(e){e!==this.interactionManager&&(this.unregisterInteraction(),this._autoInteract&&e&&(this.interactionManager=e,e.on(`pointermove`,w9,this)))}unregisterInteraction(){var e;this.interactionManager&&=((e=this.interactionManager)==null||e.off(`pointermove`,w9,this),void 0)}};function C9(e){this.tap(e.data.global.x,e.data.global.y)}function w9(e){this.focus(e.data.global.x,e.data.global.y)}var DRe=class extends p8{};const T9=new e8,ORe=new i8;let E9;var D9=class extends $5{constructor(e){super(),this.tag=`Live2DModel(uninitialized)`,this.textures=[],this.transform=new DRe,this.anchor=new r8(this.onAnchorChange,this,0,0),this.glContextID=-1,this.elapsedTime=performance.now(),this.deltaTime=0,this._autoUpdate=!1,this.once(`modelLoaded`,()=>this.init(e))}static from(e,t){let n=new this(t);return S9.setupLive2DModel(n,e,t).then(()=>n)}static fromSync(e,t){let n=new this(t);return S9.setupLive2DModel(n,e,t).then(t?.onLoad).catch(t?.onError),n}static registerTicker(e){E9=e}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){var t;E9||=(t=window.PIXI)?.Ticker,e?this._destroyed||(E9?(E9.shared.add(this.onTickerUpdate,this),this._autoUpdate=!0):e9.warn(this.tag,`No Ticker registered, please call Live2DModel.registerTicker(Ticker).`)):(E9?.shared.remove(this.onTickerUpdate,this),this._autoUpdate=!1)}init(e){this.tag=`Live2DModel(${this.internalModel.settings.name})`;let t=Object.assign({autoUpdate:!0,autoInteract:!0},e);t.autoInteract&&(this.interactive=!0),this.autoInteract=t.autoInteract,this.autoUpdate=t.autoUpdate}onAnchorChange(){this.pivot.set(this.anchor.x*this.internalModel.width,this.anchor.y*this.internalModel.height)}motion(e,t,n){return t===void 0?this.internalModel.motionManager.startRandomMotion(e,n):this.internalModel.motionManager.startMotion(e,t,n)}expression(e){return this.internalModel.motionManager.expressionManager?e===void 0?this.internalModel.motionManager.expressionManager.setRandomExpression():this.internalModel.motionManager.expressionManager.setExpression(e):Promise.resolve(!1)}focus(e,t,n=!1){T9.x=e,T9.y=t,this.toModelPosition(T9,T9,!0);let r=T9.x/this.internalModel.originalWidth*2-1,i=T9.y/this.internalModel.originalHeight*2-1,a=Math.atan2(i,r);this.internalModel.focusController.focus(Math.cos(a),-Math.sin(a),n)}tap(e,t){let n=this.hitTest(e,t);n.length&&(e9.log(this.tag,`Hit`,n),this.emit(`hit`,n))}hitTest(e,t){return T9.x=e,T9.y=t,this.toModelPosition(T9,T9),this.internalModel.hitTest(T9.x,T9.y)}toModelPosition(e,t=e.clone(),n){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.transform.worldTransform.applyInverse(e,t),this.internalModel.localTransform.applyInverse(t,t),t}containsPoint(e){return this.getBounds(!0).contains(e.x,e.y)}_calculateBounds(){this._bounds.addFrame(this.transform,0,0,this.internalModel.width,this.internalModel.height)}onTickerUpdate(){this.update(E9.shared.deltaMS)}update(e){this.deltaTime+=e,this.elapsedTime+=e}_render(e){this.registerInteraction(e.plugins.interaction),e.batch.reset(),e.geometry.reset(),e.shader.reset(),e.state.reset();let t=!1;this.glContextID!==e.CONTEXT_UID&&(this.glContextID=e.CONTEXT_UID,this.internalModel.updateWebGLContext(e.gl,this.glContextID),t=!0);for(let n=0;nt.destroy(e.baseTexture)),this.internalModel.destroy(),super.destroy(e)}};n9(D9,[ERe]);const O9=class{static resolveURL(e,t){var n;let r=(n=O9.filesMap[e])?.[t];if(r===void 0)throw Error(`Cannot find this file from uploaded files: `+t);return r}static upload(e,t){return r7(this,null,function*(){let n={};for(let r of t.getDefinedFiles()){let i=decodeURI(T6.resolve(t.url,r)),a=e.find(e=>e.webkitRelativePath===i);a&&(n[r]=URL.createObjectURL(a))}O9.filesMap[t._objectURL]=n})}static createSettings(e){return r7(this,null,function*(){let t=e.find(e=>e.name.endsWith(`model.json`)||e.name.endsWith(`model3.json`));if(!t)throw TypeError(`Settings file not found`);let n=yield O9.readText(t),r=JSON.parse(n);r.url=t.webkitRelativePath;let i=S9.findRuntime(r);if(!i)throw Error(`Unknown settings JSON`);let a=i.createModelSettings(r);return a._objectURL=URL.createObjectURL(t),a})}static readText(e){return r7(this,null,function*(){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=n,r.readAsText(e,`utf8`)})})}};let k9=O9;k9.filesMap={},k9.factory=(e,t)=>r7(void 0,null,function*(){if(Array.isArray(e.source)&&e.source[0]instanceof File){let t=e.source,n=t.settings;if(!n)n=yield O9.createSettings(t);else if(!n._objectURL)throw Error(`"_objectURL" must be specified in ModelSettings`);n.validateFiles(t.map(e=>encodeURI(e.webkitRelativePath))),yield O9.upload(t,n),n.resolveURL=function(e){return O9.resolveURL(this._objectURL,e)},e.source=n,e.live2dModel.once(`modelLoaded`,e=>{e.once(`destroy`,function(){let e=this.settings._objectURL;if(URL.revokeObjectURL(e),O9.filesMap[e])for(let t of Object.values(O9.filesMap[e]))URL.revokeObjectURL(t);delete O9.filesMap[e]})})}return t()}),S9.live2DModelMiddlewares.unshift(k9.factory);const A9=class{static unzip(e,t){return r7(this,null,function*(){let n=yield A9.getFilePaths(e),r=[];for(let e of t.getDefinedFiles()){let i=decodeURI(T6.resolve(t.url,e));n.includes(i)&&r.push(i)}let i=yield A9.getFiles(e,r);for(let e=0;ee.endsWith(`model.json`)||e.endsWith(`model3.json`));if(!n)throw Error(`Settings file not found`);let r=yield A9.readText(e,n);if(!r)throw Error(`Empty settings file: `+n);let i=JSON.parse(r);i.url=n;let a=S9.findRuntime(i);if(!a)throw Error(`Unknown settings JSON`);return a.createModelSettings(i)})}static zipReader(e,t){return r7(this,null,function*(){throw Error(`Not implemented`)})}static getFilePaths(e){return r7(this,null,function*(){throw Error(`Not implemented`)})}static getFiles(e,t){return r7(this,null,function*(){throw Error(`Not implemented`)})}static readText(e,t){return r7(this,null,function*(){throw Error(`Not implemented`)})}static releaseReader(e){}};let j9=A9;if(j9.ZIP_PROTOCOL=`zip://`,j9.uid=0,j9.factory=(e,t)=>r7(void 0,null,function*(){let n=e.source,r,i,a;if(typeof n==`string`&&(n.endsWith(`.zip`)||n.startsWith(A9.ZIP_PROTOCOL))?(r=n.startsWith(A9.ZIP_PROTOCOL)?n.slice(A9.ZIP_PROTOCOL.length):n,i=yield p9.load({url:r,type:`blob`,target:e.live2dModel})):Array.isArray(n)&&n.length===1&&n[0]instanceof File&&n[0].name.endsWith(`.zip`)&&(i=n[0],r=URL.createObjectURL(i),a=n.settings),i){if(!i.size)throw Error(`Empty zip file`);let t=yield A9.zipReader(i,r);a||=yield A9.createSettings(t),a._objectURL=A9.ZIP_PROTOCOL+A9.uid+`/`+a.url;let n=yield A9.unzip(t,a);n.settings=a,e.source=n,r.startsWith(`blob:`)&&e.live2dModel.once(`modelLoaded`,e=>{e.once(`destroy`,function(){URL.revokeObjectURL(r)})}),A9.releaseReader(t)}return t()}),S9.live2DModelMiddlewares.unshift(j9.factory),!window.Live2DCubismCore)throw Error(`Could not find Cubism 4 runtime. This plugin requires live2dcubismcore.js to be loaded.`);var kRe=class extends r9{constructor(e,t){var n;super(e,t),this.queueManager=new R7,this.definitions=(n=e.expressions)??[],this.init()}isFinished(){return this.queueManager.isFinished()}getExpressionIndex(e){return this.definitions.findIndex(t=>t.Name===e)}getExpressionFile(e){return e.File}createExpression(e,t){return jLe.create(e)}_setExpression(e){return this.queueManager.startMotion(e,!1,performance.now())}stopAllExpressions(){this.queueManager.stopAllMotions()}updateParameters(e,t){return this.queueManager.doUpdateMotion(e,t)}},M9=class e extends a9{constructor(t){if(super(t),!e.isValidJSON(t))throw TypeError(`Invalid JSON.`);Object.assign(this,new Q7(t))}static isValidJSON(e){var t;return!!e?.FileReferences&&typeof e.FileReferences.Moc==`string`&&(t=e.FileReferences.Textures)?.length>0&&e.FileReferences.Textures.every(e=>typeof e==`string`)}replaceFiles(e){if(super.replaceFiles(e),this.motions)for(let[t,n]of Object.entries(this.motions))for(let r=0;r{this.emit(`motion:`+t)})}isFinished(){return this.queueManager.isFinished()}_startMotion(e,t){return e.setFinishedMotionHandler(t),this.queueManager.stopAllMotions(),this.queueManager.startMotion(e,!1,performance.now())}_stopAllMotions(){this.queueManager.stopAllMotions()}createMotion(e,t,n){let r=VLe.create(e),i=new P7(e),a=(t===this.groups.idle?$7.idleMotionFadingDuration:$7.motionFadingDuration)/1e3;return i.getMotionFadeInTime()===void 0&&r.setFadeInTime(n.FadeInTime>0?n.FadeInTime:a),i.getMotionFadeOutTime()===void 0&&r.setFadeOutTime(n.FadeOutTime>0?n.FadeOutTime:a),r.setEffectIds(this.eyeBlinkIds,this.lipSyncIds),r}getMotionFile(e){return e.File}getMotionName(e){return e.File}getSoundFile(e){return e.Sound}updateParameters(e,t){return this.queueManager.doUpdateMotion(e,t)}destroy(){super.destroy(),this.queueManager.release(),this.queueManager=void 0}};const N9=new p7;var jRe=class extends wRe{constructor(e,t,n){super(),this.lipSync=!0,this.breath=DLe.create(),this.renderer=new Z7,this.idParamAngleX=`ParamAngleX`,this.idParamAngleY=`ParamAngleY`,this.idParamAngleZ=`ParamAngleZ`,this.idParamEyeBallX=`ParamEyeBallX`,this.idParamEyeBallY=`ParamEyeBallY`,this.idParamBodyAngleX=`ParamBodyAngleX`,this.idParamBreath=`ParamBreath`,this.pixelsPerUnit=1,this.centeringTransform=new i8,this.coreModel=e,this.settings=t,this.motionManager=new ARe(t,n),this.init()}init(){var e;super.init(),(e=this.settings.getEyeBlinkParameters())?.length>0&&(this.eyeBlink=o7.create(this.settings)),this.breath.setParameters([new i7(this.idParamAngleX,0,15,6.5345,.5),new i7(this.idParamAngleY,0,8,3.5345,.5),new i7(this.idParamAngleZ,0,10,5.5345,.5),new i7(this.idParamBodyAngleX,0,4,15.5345,.5),new i7(this.idParamBreath,0,.5,3.2345,.5)]),this.renderer.initialize(this.coreModel),this.renderer.setIsPremultipliedAlpha(!0)}getSize(){return[this.coreModel.getModel().canvasinfo.CanvasWidth,this.coreModel.getModel().canvasinfo.CanvasHeight]}getLayout(){let e={};if(this.settings.layout)for(let t of Object.keys(this.settings.layout)){let n=t.charAt(0).toLowerCase()+t.slice(1);e[n]=this.settings.layout[t]}return e}setupLayout(){super.setupLayout(),this.pixelsPerUnit=this.coreModel.getModel().canvasinfo.PixelsPerUnit,this.centeringTransform.scale(this.pixelsPerUnit,this.pixelsPerUnit).translate(this.originalWidth/2,this.originalHeight/2)}updateWebGLContext(e,t){this.renderer.firstDraw=!0,this.renderer._bufferData={vertex:null,uv:null,index:null},this.renderer.startUp(e),this.renderer._clippingManager._currentFrameNo=t,this.renderer._clippingManager._maskTexture=void 0,J7.getInstance()._shaderSets=[]}bindTexture(e,t){this.renderer.bindTexture(e,t)}getHitAreaDefs(){var e,t;return(t=(e=this.settings.hitAreas)?.map(e=>({id:e.Id,name:e.Name,index:this.coreModel.getDrawableIndex(e.Id)})))??[]}getDrawableIDs(){return this.coreModel.getDrawableIds()}getDrawableIndex(e){return this.coreModel.getDrawableIndex(e)}getDrawableVertices(e){if(typeof e==`string`&&(e=this.coreModel.getDrawableIndex(e),e===-1))throw TypeError(`Unable to find drawable ID: `+e);let t=this.coreModel.getDrawableVertices(e).slice();for(let e=0;e{function n(){try{NRe(),e()}catch(e){if(F9--,F9<0){let n=Error(`Failed to start up Cubism 4 framework.`);n.cause=e,t(n);return}e9.log(`Cubism4`,`Startup failed, retrying 10ms later...`),setTimeout(n,10)}}n()}),P9)}function NRe(e){e=Object.assign({logFunction:console.log,loggingLevel:S7.LogLevel_Verbose},e),x7.startUp(e),x7.initialize()}S9.registerRuntime({version:4,ready:MRe,test(e){return e instanceof M9||M9.isValidJSON(e)},isValidMoc(e){if(e.byteLength<4)return!1;let t=new Int8Array(e,0,4);return String.fromCharCode(...t)===`MOC3`},createModelSettings(e){return new M9(e)},createCoreModel(e){let t=ALe.create(e);try{let e=t.createModel();return e.__moc=t,e}catch(e){try{t.release()}catch{}throw e}},createInternalModel(e,t,n){let r=new jRe(e,t,n),i=e;return i.__moc&&(r.__moc=i.__moc,delete i.__moc,r.once(`destroy`,PRe)),r},createPhysics(e,t){return XLe.create(t)},createPose(e,t){return OLe.create(t)}});function PRe(){var e;(e=this.__moc)==null||e.release()}var FRe=s(((exports,t)=>{ /*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files @@ -4862,4 +4865,4 @@ JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */ (function(n){typeof exports==`object`&&t!==void 0?t.exports=n():typeof define==`function`&&define.amd?define([],n):(typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this).JSZip=n()})(function(){return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof p==`function`&&p;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof p==`function`&&p,o=0;o>2,s=(3&t)<<4|n>>4,c=1>6:64,l=2>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,s!==64&&(f[u++]=n),c!==64&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e(`./external`),i=e(`./stream/DataWorker`),a=e(`./stream/Crc32Probe`),o=e(`./stream/DataLengthProbe`);function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o(`data_length`)),t=this;return e.on(`end`,function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error(`Bug : uncompressed data size mismatch`)}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo(`compressedSize`,this.compressedSize).withStreamInfo(`uncompressedSize`,this.uncompressedSize).withStreamInfo(`crc32`,this.crc32).withStreamInfo(`compression`,this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o(`uncompressedSize`)).pipe(t.compressWorker(n)).pipe(new o(`compressedSize`)).withStreamInfo(`compression`,t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e(`./stream/GenericWorker`);n.STORE={magic:`\0\0`,compressWorker:function(){return new r(`STORE compression`)},uncompressWorker:function(){return new r(`STORE decompression`)}},n.DEFLATE=e(`./flate`)},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e(`./utils`),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return e!==void 0&&e.length?r.getTypeOf(e)===`string`?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r=typeof Promise<`u`?Promise:e(`lie`),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Uint32Array<`u`,i=e(`pako`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=r?`uint8array`:`array`;function c(e,t){o.call(this,`FlateWorker/`+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic=`\b\0`,a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c(`Deflate`,e)},n.uncompressWorker=function(){return new c(`Inflate`,{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r=``;for(n=0;n>>=8;return r}function i(e,t,n,i,o,u){var d,f,p=e.file,m=e.compression,h=u!==s.utf8encode,g=a.transformTo(`string`,u(p.name)),_=a.transformTo(`string`,s.utf8encode(p.name)),v=p.comment,y=a.transformTo(`string`,u(v)),b=a.transformTo(`string`,s.utf8encode(v)),x=_.length!==p.name.length,S=b.length!==v.length,C=``,w=``,T=``,E=p.dir,D=p.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var k=0;t&&(k|=8),h||!x&&!S||(k|=2048);var A=0,j=0;E&&(A|=16),o===`UNIX`?(j=798,A|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(p.unixPermissions,E)):(j=20,A|=function(e){return 63&(e||0)}(p.dosPermissions)),d=D.getUTCHours(),d<<=6,d|=D.getUTCMinutes(),d<<=5,d|=D.getUTCSeconds()/2,f=D.getUTCFullYear()-1980,f<<=4,f|=D.getUTCMonth()+1,f<<=5,f|=D.getUTCDate(),x&&(w=r(1,1)+r(c(g),4)+_,C+=`up`+r(w.length,2)+w),S&&(T=r(1,1)+r(c(y),4)+b,C+=`uc`+r(T.length,2)+T);var M=``;return M+=` -\0`,M+=r(k,2),M+=m.magic,M+=r(d,2),M+=r(f,2),M+=r(O.crc32,4),M+=r(O.compressedSize,4),M+=r(O.uncompressedSize,4),M+=r(g.length,2),M+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+M+g+C,dirRecord:l.CENTRAL_FILE_HEADER+r(j,2)+M+r(y.length,2)+`\0\0\0\0`+r(A,4)+r(i,4)+g+C+y}}var a=e(`../utils`),o=e(`../stream/GenericWorker`),s=e(`../utf8`),c=e(`../crc32`),l=e(`../signature`);function u(e,t,n,r){o.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e(`./Uint8ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e(`./ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e(`../utils`),i=e(`../support`),a=e(`./ArrayReader`),o=e(`./StringReader`),s=e(`./NodeBufferReader`),c=e(`./Uint8ArrayReader`);t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),t!==`string`||i.uint8array?t===`nodebuffer`?new s(e):i.uint8array?new c(r.transformTo(`uint8array`,e)):new a(r.transformTo(`array`,e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER=`PK`,n.CENTRAL_FILE_HEADER=`PK`,n.CENTRAL_DIRECTORY_END=`PK`,n.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,n.ZIP64_CENTRAL_DIRECTORY_END=`PK`,n.DATA_DESCRIPTOR=`PK\x07\b`},{}],24:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../utils`);function a(e){r.call(this,`ConvertWorker to `+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../crc32`);function a(){r.call(this,`Crc32Probe`),this.withStreamInfo(`crc32`,0)}e(`../utils`).inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataLengthProbe for `+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataWorker`);var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=``,this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case`string`:e=this.data.substring(this.index,t);break;case`uint8array`:e=this.data.subarray(this.index,t);break;case`array`:case`nodebuffer`:e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||`default`,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit(`data`,e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(`end`),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(`error`,e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(`error`,e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n `+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e(`../utils`),i=e(`./ConvertWorker`),a=e(`./GenericWorker`),o=e(`../base64`),s=e(`../support`),c=e(`../external`),l=null;if(s.nodestream)try{l=e(`../nodejs/NodejsStreamOutputAdapter`)}catch{}function u(e,t){return new c.Promise(function(n,i){var a=[],s=e._internalType,c=e._outputType,l=e._mimeType;e.on(`data`,function(e,n){a.push(e),t&&t(n)}).on(`error`,function(e){a=[],i(e)}).on(`end`,function(){try{var e=function(e,t,n){switch(e){case`blob`:return r.newBlob(r.transformTo(`arraybuffer`,t),n);case`base64`:return o.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var n,r=0,i=null,a=0;for(n=0;n`u`)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=new Blob([r],{type:`application/zip`}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=i.getBlob(`application/zip`).size===0}catch{n.blob=!1}}}try{n.nodestream=!!e(`readable-stream`).Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e(`./utils`),i=e(`./support`),a=e(`./nodejsUtils`),o=e(`./stream/GenericWorker`),s=Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;s[254]=s[254]=1;function l(){o.call(this,`utf-8 decode`),this.leftOver=null}function u(){o.call(this,`utf-8 encode`)}n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,`utf-8`):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo(`nodebuffer`,e).toString(`utf-8`):function(e){var t,n,i,a,o=e.length,c=Array(2*o);for(t=n=0;t>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?`uint8array`:`array`,e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?`uint8array`:`array`,e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e(`./support`),i=e(`./base64`),a=e(`./nodejsUtils`),o=e(`./external`);function s(e){return e}function c(e,t){for(var n=0;n>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==`/`||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||={};e.index+4>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){for(n-=o=2e3>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e(`../utils/common`),a=e(`./trees`),o=e(`./adler32`),s=e(`./crc32`),c=e(`./messages`),l=0,u=4,d=0,f=-2,p=-1,m=4,h=2,g=8,_=9,v=286,y=30,b=19,x=2*v+1,S=15,C=3,w=258,T=w+C+1,E=42,D=113,O=1,k=2,A=3,j=4;function M(e,t){return e.msg=c[t],t}function ee(e){return(e<<1)-(4e.avail_out&&(n=e.avail_out),n!==0&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function ne(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)}function re(e,t){e.pending_buf[e.pending++]=t}function ie(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ae(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+w,p=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===m&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&ac&&--i!=0);return o<=e.lookahead?o:e.lookahead}function oe(e){var t,n,r,a,c,l,u,d,f,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-T)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);a+=m}if(e.strm.avail_in===0)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=a,p=void 0,p=l.avail_in,f=C)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<=C&&(e.ins_h=(e.ins_h<=C)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=C&&(e.ins_h=(e.ins_h<=C&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-C,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(oe(e),e.lookahead===0&&t===l)return O;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,ne(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-T&&(ne(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(ne(e,!0),e.strm.avail_out===0?A:j):(e.strstart>e.block_start&&(ne(e,!1),e.strm.avail_out),O)}),new le(4,4,8,4,se),new le(4,5,16,8,se),new le(4,6,32,32,se),new le(4,4,16,16,ce),new le(8,16,32,32,ce),new le(8,16,128,128,ce),new le(8,32,128,256,ce),new le(32,128,258,1024,ce),new le(32,258,258,4096,ce)],n.deflateInit=function(e,t){return pe(e,t,g,15,8,0)},n.deflateInit2=pe,n.deflateReset=fe,n.deflateResetKeep=de,n.deflateSetHeader=function(e,t){return e&&e.state&&e.state.wrap===2?(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5>8&255),re(i,i.gzhead.time>>16&255),re(i,i.gzhead.time>>24&255),re(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),re(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(re(i,255&i.gzhead.extra.length),re(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(re(i,0),re(i,0),re(i,0),re(i,0),re(i,0),re(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),re(i,3),i.status=D);else{var p=g+(i.w_bits-8<<4)<<8;p|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(p|=32),p+=31-p%31,i.status=D,ie(i,p),i.strstart!==0&&(ie(i,e.adler>>>16),ie(i,65535&e.adler)),e.adler=1}if(i.status===69)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),N(e),o=i.pending,i.pending!==i.pending_buf_size));)re(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),N(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),N(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(e),i.pending+2<=i.pending_buf_size&&(re(i,255&e.adler),re(i,e.adler>>8&255),e.adler=0,i.status=D)):i.status=D),i.pending!==0){if(N(e),e.avail_out===0)return i.last_flush=-1,d}else if(e.avail_in===0&&ee(t)<=ee(n)&&t!==u)return M(e,-5);if(i.status===666&&e.avail_in!==0)return M(e,-5);if(e.avail_in!==0||i.lookahead!==0||t!==l&&i.status!==666){var m=i.strategy===2?function(e,t){for(var n;;){if(e.lookahead===0&&(oe(e),e.lookahead===0)){if(t===l)return O;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ne(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(ne(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(ne(e,!1),e.strm.avail_out===0)?O:k}(i,t):i.strategy===3?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=w){if(oe(e),e.lookahead<=w&&t===l)return O;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=C&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(n=a._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ne(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(ne(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(ne(e,!1),e.strm.avail_out===0)?O:k}(i,t):r[i.level].func(i,t);if(m!==A&&m!==j||(i.status=666),m===O||m===A)return e.avail_out===0&&(i.last_flush=-1),d;if(m===k&&(t===1?a._tr_align(i):t!==5&&(a._tr_stored_block(i,0,0,!1),t===3&&(te(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),N(e),e.avail_out===0))return i.last_flush=-1,d}return t===u?i.wrap<=0?1:(i.wrap===2?(re(i,255&e.adler),re(i,e.adler>>8&255),re(i,e.adler>>16&255),re(i,e.adler>>24&255),re(i,255&e.total_in),re(i,e.total_in>>8&255),re(i,e.total_in>>16&255),re(i,e.total_in>>24&255)):(ie(i,e.adler>>>16),ie(i,65535&e.adler)),N(e),0=n.w_size&&(s===0&&(te(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,m-n.w_size,n.w_size,0),t=p,m=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=m,e.next_in=0,e.input=t,oe(n);n.lookahead>=C;){for(r=n.strstart,a=n.lookahead-(C-1);n.ins_h=(n.ins_h<>>=b=y>>>24,m-=b,(b=y>>>16&255)==0)E[a++]=65535&y;else{if(!(16&b)){if(!(64&b)){y=h[(65535&y)+(p&(1<>>=b,m-=b),m<15&&(p+=T[r++]<>>=b=y>>>24,m-=b,!(16&(b=y>>>16&255))){if(!(64&b)){y=g[(65535&y)+(p&(1<>>=b,m-=b,(b=a-o)>3,p&=(1<<(m-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(m),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,_(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=a(n.check,oe,2,0),x=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg=`incorrect header check`,n.mode=30;break}if((15&b)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(x-=4,N=8+(15&(b>>>=4)),n.wbits===0)n.wbits=N;else if(N>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(oe[0]=255&b,oe[1]=b>>>8&255,n.check=a(n.check,oe,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<>>8&255,oe[2]=b>>>16&255,oe[3]=b>>>24&255,n.check=a(n.check,oe,4,0)),x=b=0,n.mode=4;case 4:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<>8),512&n.flags&&(oe[0]=255&b,oe[1]=b>>>8&255,n.check=a(n.check,oe,2,0)),x=b=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<>>8&255,n.check=a(n.check,oe,2,0)),x=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(E=n.length)&&(E=v),E&&(n.head&&(N=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,p,g,E,N)),512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(v===0)break e;for(E=0;N=p[g+ E++],n.head&&N&&n.length<65536&&(n.head.name+=String.fromCharCode(N)),N&&E>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(v===0)break e;v--,b+=p[g++]<>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,t!==6)break;b>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg=`invalid block type`,n.mode=30}b>>>=2,x-=2;break;case 14:for(b>>>=7&x,x-=7&x;x<32;){if(v===0)break e;v--,b+=p[g++]<>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=30;break}if(n.length=65535&b,x=b=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(E=n.length){if(v>>=5,x-=5,n.ndist=1+(31&b),b>>>=5,x-=5,n.ncode=4+(15&b),b>>>=4,x-=4,286>>=3,x-=3}for(;n.have<19;)n.lens[se[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,re={bits:n.lenbits},ne=s(0,n.lens,0,19,n.lencode,0,n.work,re),n.lenbits=re.bits,ne){e.msg=`invalid code lengths set`,n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,j=65535&ae,!((k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>>=k,x-=k,n.lens[n.have++]=j;else{if(j===16){for(ie=k+2;x>>=k,x-=k,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}N=n.lens[n.have-1],E=3+(3&b),b>>>=2,x-=2}else if(j===17){for(ie=k+3;x>>=k)),b>>>=3,x-=3}else{for(ie=k+7;x>>=k)),b>>>=7,x-=7}if(n.have+E>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=30;break}for(;E--;)n.lens[n.have++]=N}}if(n.mode===30)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=30;break}if(n.lenbits=9,re={bits:n.lenbits},ne=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,re),n.lenbits=re.bits,ne){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,re={bits:n.distbits},ne=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,re),n.distbits=re.bits,ne){e.msg=`invalid distances set`,n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,o(e,C),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;A=(ae=n.lencode[b&(1<>>16&255,j=65535&ae,!((k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>M)])>>>16&255,j=65535&ae,!(M+(k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,n.length=j,A===0){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg=`invalid literal/length code`,n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(ie=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(ae=n.distcode[b&(1<>>16&255,j=65535&ae,!((k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>M)])>>>16&255,j=65535&ae,!(M+(k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,64&A){e.msg=`invalid distance code`,n.mode=30;break}n.offset=j,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(ie=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=30;break}n.mode=25;case 25:if(y===0)break e;if(E=C-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break}D=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),O=n.window}else O=m,D=_-n.offset,E=n.length;for(yv?(b=re[ie+d[w]],ee[te+d[w]]):(b=96,0),p=1<>k)+(m-=p)]=y<<24|b<<16|x|0,m!==0;);for(p=1<>=1;if(p===0?M=0:(M&=p-1,M+=p),w++,--N[C]==0){if(C===E)break;C=t[n+d[w]]}if(D>>7)]}function re(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function ie(e,t,n){e.bi_valid>h-n?(e.bi_buf|=t<>h-e.bi_valid,e.bi_valid+=n-h):(e.bi_buf|=t<>>=1,n<<=1,0<--t;);return n>>>1}function se(e,t,n){var r,i,a=Array(m+1),o=0;for(r=1;r<=m;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];s!==0&&(e[2*i]=oe(a[s]++,s))}}function ce(e){var t;for(t=0;t>1;1<=n;n--)de(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],de(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,de(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,g=t.stat_desc.max_length,_=0;for(a=0;a<=m;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n>=7;r>>=1)if(1&n&&e.dyn_ltree[2*t]!==0)return i;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return a;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&t!==-1?ge(e,t,n,r):e.strategy===4||s===o?(ie(e,2+(r?1:0),3),fe(e,T,E)):(ie(e,4+(r?1:0),3),function(e,t,n,r){var i;for(ie(e,t-257,5),ie(e,n-1,5),ie(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+l+1)]++,e.dyn_dtree[2*ne(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){ie(e,2,3),ae(e,_,T),function(e){e.bi_valid===16?(re(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){(function(e,t){if(!e.setImmediate){var n,r,i,a,o=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n={}.toString.call(e.process)===`[object process]`?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}()?(a=`setImmediate$`+Math.random()+`$`,e.addEventListener?e.addEventListener(`message`,p,!1):e.attachEvent(`onmessage`,p),function(t){e.postMessage(a+t,`*`)}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):l&&`onreadystatechange`in l.createElement(`script`)?(r=l.documentElement,function(e){var t=l.createElement(`script`);t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),r=0;r`u`?e===void 0?this:e:self)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}]},{},[10])(10)})})),MLe=u(jLe());j9.zipReader=(e,t)=>MLe.default.loadAsync(e);const NLe=j9.createSettings;j9.createSettings=async e=>{let t=Object.keys(e.files);return t.find(e=>PLe(e))?NLe(e):LLe(t)};function PLe(e){return e.endsWith(`model3.json`)}function FLe(e){return e.endsWith(`.moc3`)}function ILe(e){return e.split(/[\\/]/).pop()}function LLe(e){let t=e.filter(e=>FLe(e));if(t.length!==1){let e=t.length?`(${t.map(e=>`"${e}"`).join(`,`)})`:``;throw Error(`Expected exactly one moc file, got ${t.length} ${e}`)}let n=t[0],r=ILe(n).replace(/\.moc3?/,``),i=e.filter(e=>e.endsWith(`.png`));if(!i.length)throw Error(`Textures not found`);let a=e.filter(e=>e.endsWith(`.mtn`)||e.endsWith(`.motion3.json`)),o=e.find(e=>e.includes(`physics`)),s=e.find(e=>e.includes(`pose`)),c=new M9({url:`${r}.model3.json`,Version:3,FileReferences:{Moc:n,Textures:i,Physics:o,Pose:s,Motions:a.length?{"":a.map(e=>({File:e}))}:void 0}});return c.name=r,c._objectURL=`example://${c.url}`,c}j9.readText=(e,t)=>{let n=e.file(t);if(!n)throw Error(`Cannot find file: ${t}`);return n.async(`text`)},j9.getFilePaths=e=>{let t=[];return e.forEach(e=>t.push(e)),Promise.resolve(t)},j9.getFiles=(e,t)=>Promise.all(t.map(async t=>{let n=t.slice(t.lastIndexOf(`/`)+1),r=await e.file(t).async(`blob`);return new File([r],n)}));let I9=function(e){return e.Live2dZip=`live2d-zip`,e.Live2dDirectory=`live2d-directory`,e.VRM=`vrm`,e.PMXZip=`pmx-zip`,e.PMXDirectory=`pmx-directory`,e.PMD=`pmd`,e}({});const L9=[{id:`preset-live2d-1`,format:I9.Live2dZip,type:`url`,url:`/assets/live2d/models/hiyori_pro_zh.zip`,name:`Hiyori (Pro)`,previewImage:`/assets/live2d/models/hiyori/preview.png`,importedAt:1733113886840},{id:`preset-live2d-2`,format:I9.Live2dZip,type:`url`,url:`/assets/live2d/models/hiyori_free_zh.zip`,name:`Hiyori (Free)`,previewImage:`/assets/live2d/models/hiyori/preview.png`,importedAt:1733113886840},{id:`preset-vrm-1`,format:I9.VRM,type:`url`,url:`/assets/vrm/models/AvatarSample-A/AvatarSample_A.vrm`,name:`AvatarSample_A`,previewImage:`/assets/vrm/models/AvatarSample-A/preview.png`,importedAt:1733113886840},{id:`preset-vrm-2`,format:I9.VRM,type:`url`,url:`/assets/vrm/models/AvatarSample-B/AvatarSample_B.vrm`,name:`AvatarSample_B`,previewImage:`/assets/vrm/models/AvatarSample-B/preview.png`,importedAt:1733113886840}],R9=UO(`display-models`,()=>{let e=F([]),t=F(!1);async function n(){await GT(t).toBe(!1),t.value=!0;let n=[...L9];try{await L3.default.iterate((e,t)=>{t.startsWith(`display-model-`)&&n.push({id:t,format:e.format,type:`file`,file:e.file,name:e.file.name,importedAt:e.importedAt,previewImage:e.previewImage})})}catch(e){console.error(e)}e.value=n.sort((e,t)=>t.importedAt-e.importedAt),t.value=!1}async function r(e){await GT(t).toBe(!1);let n=await L3.default.getItem(e);return n||L9.find(t=>t.id===e)}async function i(e){D9.registerTicker(X6),K6.add(Z6);let t=document.createElement(`canvas`);t.width=720,t.height=1280,t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.objectFit=`cover`,t.style.display=`block`,t.style.zIndex=`10000000000`,t.style.opacity=`0`,document.body.appendChild(t);let n=new e7({view:t,preserveDrawingBuffer:!0,backgroundAlpha:0,resizeTo:window}),r=new D9,i=URL.createObjectURL(e),a=await fetch(i),o=await a.blob();try{await S9.setupLive2DModel(r,[new File([o],e.name)],{autoInteract:!1})}catch(e){n.destroy(),document.body.removeChild(t),URL.revokeObjectURL(i),console.error(e);return}n.stage.addChild(r),r.x=275,r.y=450,r.width=t.width,r.height=t.height,r.scale.set(.1,.1),r.anchor.set(.5,.5),await new Promise(e=>setTimeout(e,500)),n.renderer.render(n.stage);let s=OPe(t),c=s.toDataURL();return n.destroy(),document.body.removeChild(t),URL.revokeObjectURL(i),c}async function a(n,r){await GT(t).toBe(!1);let a={id:`display-model-${t7()}`,format:n,type:`file`,file:r,name:r.name,importedAt:Date.now()};if(n===I9.Live2dZip){let e=await i(r);if(!e)return;a.previewImage=e}e.value.unshift(a),L3.default.setItem(a.id,a).catch(e=>console.error(e))}async function o(e,n){await GT(t).toBe(!1);let r=await L3.default.getItem(e);r&&(r.name=n)}async function s(n){await GT(t).toBe(!1),await L3.default.removeItem(n),e.value=e.value.filter(e=>e.id!==n)}return{displayModels:e,displayModelsFromIndexedDBLoading:t,loadDisplayModelsFromIndexedDB:n,getDisplayModel:r,addDisplayModel:a,renameDisplayModel:o,removeDisplayModel:s}}),z9={"zh-CN":`zh-Hans`,"zh-TW":`zh-Hans`,"zh-HK":`zh-Hans`,"zh-Hant":`zh-Hans`,"en-US":`en`,"en-GB":`en`,"en-AU":`en`,en:`en`,"es-ES":`es`,"es-MX":`es`,"es-AR":`es`,es:`es`,ru:`ru`,"ru-RU":`ru`},B9=220.44,RLe=IM(`oklch`),V9=e=>e?RLe(e)?.h:B9,H9=UO(`settings`,()=>{let e=R9(),t=pE(`settings/language`,``),n=pE(`settings/stage/model`,`preset-live2d-1`),r=F(),i=F(),a=F();async function o(){if(!n.value){i.value=void 0,r.value=void 0,a.value=`disabled`;return}let t=await e.getDisplayModel(n.value);if(!t){i.value=void 0,r.value=void 0,a.value=`disabled`;return}switch(t.format){case I9.Live2dZip:a.value=`live2d`;break;case I9.VRM:a.value=`vrm`;break;default:a.value=`disabled`;break}t.type===`file`?(i.value&&URL.revokeObjectURL(i.value),i.value=URL.createObjectURL(t.file)):i.value=t.url,r.value=t}async function s(){await o()}YT(`unload`,()=>{i.value&&URL.revokeObjectURL(i.value)});let c=F(!1),l=pE(`settings/live2d/disable-focus`,!1),u=pE(`settings/disable-transitions`,!0),d=pE(`settings/use-page-specific-transitions`,!0),f=pE(`settings/theme/colors/hue`,B9),p=pE(`settings/theme/colors/hue-dynamic`,!1),m=pE(`settings/allow-visible-on-all-workspaces`,!0);function h(){let e=localStorage.getItem(`settings/language`);e||=navigator.language||`en`;let t=Object.keys(I3);return z9[e||`en`]!=null&&(e=z9[e||`en`]),e&&t.includes(e)?e:`en`}function g(e=B9){f.value=e,p.value=!1}function _(e){g(V9(e))}function v(e){if(p.value)return!1;let t=V9(e);if(!t)return!1;let n=Math.abs(t-f.value);return n<.01||n>359.99}return di(()=>t.value=h()),{disableTransitions:u,usePageSpecificTransitions:d,language:t,stageModelRenderer:a,stageModelSelected:n,stageModelSelectedUrl:i,stageModelSelectedDisplayModel:r,stageViewControlsEnabled:c,live2dDisableFocus:l,themeColorsHue:f,themeColorsHueDynamic:p,allowVisibleOnAllWorkspaces:m,setThemeColorsHue:g,applyPrimaryColorFrom:_,isColorSelectedForPrimary:v,initializeStageModel:s,updateStageModel:o}}),zLe=UO(`settings-audio-devices`,()=>{let{audioInputs:e,deviceConstraints:t,selectedAudioInput:n,startStream:r,stopStream:i,stream:a,askPermission:o}=aAe(),s=pE(`settings/audio/input`,n.value),c=pE(`settings/audio/input-enabled`,!1);return Ba(s,e=>{n.value=e}),Ba(c,e=>{e?r():i()}),di(()=>{c.value&&s.value&&r(),n.value&&!c.value&&(s.value=n.value)}),{audioInputs:e,deviceConstraints:t,selectedAudioInput:s,enabled:c,stream:a,askPermission:o,startStream:r,stopStream:i}}),BLe={key:0,flex:``,"gap-2":``};var VLe=R({__name:`ColorPalette`,props:{colors:{}},setup(e){let t=H9();return(e,n)=>e.colors.length?(z(),B(`div`,BLe,[(z(!0),B(vo,null,Di(e.colors,({hex:e,name:n})=>(z(),Oo(I(jhe),{key:e||`default`},{default:L(()=>[H(I(Phe),null,{default:L(()=>[H(I(Uhe),{transition:`all ease-in-out duration-250`,"size-8":``,"cursor-pointer":``,"rounded-full":``,"bg-primary-500":``,style:be(e?{background:e}:{"--chromatic-hue":I(B9)}),class:Te(I(t).isColorSelectedForPrimary(e)?`scale-120 md:scale-150 mx-1`:`hover:scale-110`),onClick:n=>I(t).applyPrimaryColorFrom(e)},null,8,[`style`,`class`,`onClick`]),H(I(Vhe),null,{default:L(()=>[H(I(zhe),{bg:`white dark:neutral-800`,"rounded-lg":``,"px-3":``,"py-1.5":``,"text-sm":``,"shadow-md":``},{default:L(()=>[Fo(Pe(n)+` `,1),H(I(Ohe),{"fill-white":``,"dark:fill-neutral-800":``})]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))])):Lo(``,!0)}}),HLe=VLe;const ULe=UO(`onboarding`,()=>{let e=T0(),t=pE(`onboarding/completed`,!1),n=pE(`onboarding/skipped`,!1),r=F(!1),i=U(()=>{let t=[`openai`,`anthropic`,`google-generative-ai`,`openrouter-ai`,`ollama`,`deepseek`,`openai-compatible`];return t.some(t=>e.configuredProviders[t])}),a=U(()=>t.value||n.value?(console.warn(`Onboarding already completed or skipped`),!1):i.value?(console.warn(`Essential provider already configured, no onboarding needed`),!1):!0);async function o(){a.value&&(await Gn(),r.value=!0)}function s(){t.value=!0,n.value=!1,r.value=!1}function c(){n.value=!0,r.value=!1}function l(){t.value=!1,n.value=!1,r.value=!1}function u(){r.value=!0}return{hasCompletedSetup:t,hasSkippedSetup:n,shouldShowSetup:r,hasEssentialProviderConfigured:i,needsOnboarding:a,initializeSetupCheck:o,markSetupCompleted:s,markSetupSkipped:c,resetSetupState:l,forceShowSetup:u}});var WLe=R({__name:`ArrowTransition`,props:{stageTransition:{default:()=>({primaryColor:`#666`,secondaryColor:`#ccc`})}},setup(e){let t=e,n=U(()=>t.stageTransition),r=U(()=>n.value.primaryColor||`#666`),i=U(()=>n.value.secondaryColor||`#ccc`);return di(()=>{document.documentElement.style.setProperty(`--stage-transition-3-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-3-overlay-color-2`,i.value)}),(e,t)=>(z(),B(`div`,{class:`stage-transition-3`,style:be({zIndex:n.value.zIndex||100})},null,4))}}),GLe=TM(WLe,[[`__scopeId`,`data-v-17464329`]]),KLe=R({__name:`BubbleWaveOutTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition?.colors||[`#eee`,`#ebcb8b`,`#c56370`,`#3f3b52`]);return di(()=>{document.documentElement.style.setProperty(`--circle-expansion-delay`,`${t.stageTransition?.delay||0}s`),document.documentElement.style.setProperty(`--circle-expansion-duration`,`${t.stageTransition?.duration||.4}s`),n.value.forEach((e,t)=>{document.documentElement.style.setProperty(`--circle-expansion-color-${t+1}`,e)})}),(e,t)=>(z(),B(`div`,{class:`circle-expansion-transition`,style:be({zIndex:e.stageTransition?.zIndex||100})},[(z(!0),B(vo,null,Di(n.value,(e,t)=>(z(),B(`div`,{key:t}))),128))],4))}}),qLe=TM(KLe,[[`__scopeId`,`data-v-4624be9e`]]),JLe=R({__name:`FantasyFallTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition?.direction||`up`),r=U(()=>`fantasy-fall-${n.value}`);return di(()=>{document.documentElement.style.setProperty(`--fantasy-fall-color`,t.stageTransition?.primaryColor||`#eee`),document.documentElement.style.setProperty(`--fantasy-fall-duration`,`${t.stageTransition?.duration||.6}s`),document.documentElement.style.setProperty(`--fantasy-fall-delay`,`${t.stageTransition?.delay||0}s`),document.documentElement.style.setProperty(`--fantasy-fall-radius-sm`,`${t.stageTransition?.borderRadius?.sm||`14rem`}`),document.documentElement.style.setProperty(`--fantasy-fall-radius-md`,`${t.stageTransition?.borderRadius?.md||`14rem`}`),document.documentElement.style.setProperty(`--fantasy-fall-radius-lg`,`${t.stageTransition?.borderRadius?.lg||`50%`}`)}),(e,t)=>(z(),B(`div`,{class:Te([`fantasy-fall-transition`,r.value]),style:be({zIndex:e.stageTransition?.zIndex??100})},null,6))}}),YLe=TM(JLe,[[`__scopeId`,`data-v-826171f5`]]),XLe=R({__name:`MultipleBlocksRevealTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition),r=U(()=>n.value?.primaryColor||`#666`),i=U(()=>n.value?.secondaryColor||`#ccc`);return di(()=>{document.documentElement.style.setProperty(`--stage-transition-4-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-4-overlay-color-2`,i.value)}),(e,t)=>(z(),B(`div`,{class:`stage-transition-4`,style:be({zIndex:n.value?.zIndex??100})},[...t[0]||=[Io(`
`,5)]],4))}}),ZLe=TM(XLe,[[`__scopeId`,`data-v-4221f976`]]),QLe=R({__name:`SlideTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition),r=U(()=>n.value?.primaryColor||`#666`),i=U(()=>n.value?.secondaryColor||`#ccc`);return Ba([n,r,i],()=>{document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-2`,i.value)}),di(()=>{document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-2`,i.value)}),(e,t)=>(z(),B(`div`,{class:`stage-transition-1`,style:be({zIndex:n.value?.zIndex??100})},null,4))}}),$Le=TM(QLe,[[`__scopeId`,`data-v-81c0af14`]]),eRe=R({__name:`SlopeSlideTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition),r=U(()=>n.value?.primaryColor??`#666`),i=U(()=>n.value?.secondaryColor??`#ccc`);return di(()=>{document.documentElement.style.setProperty(`--stage-transition-2-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-2-overlay-color-2`,i.value)}),(e,t)=>(z(),B(`div`,{class:`stage-transition-2`,style:be({zIndex:n.value?.zIndex??100})},null,4))}}),tRe=TM(eRe,[[`__scopeId`,`data-v-9e8b66c8`]]),nRe=R({__name:`RectanglesRotateTransition`,props:{stageTransition:{}},setup(e){let t=e;return di(()=>{document.documentElement.style.setProperty(`--rectangle-rotate-1-color`,t.stageTransition?.primaryColor||`#ebcb8b`),document.documentElement.style.setProperty(`--rectangle-rotate-2-color`,t.stageTransition?.secondaryColor||`#c56370`),document.documentElement.style.setProperty(`--rectangle-rotate-3-color`,t.stageTransition?.tertiaryColor||`#43445b`),document.documentElement.style.setProperty(`--rectangle-rotate-duration`,`${t.stageTransition?.duration||.6}s`),document.documentElement.style.setProperty(`--rectangle-rotate-delay`,`${t.stageTransition?.delay||0}s`),document.documentElement.style.setProperty(`--rectangle-rotate-stagger`,`${t.stageTransition?.staggerDelay||.1}s`),document.documentElement.style.setProperty(`--rectangle-rotate-rotation`,`${t.stageTransition?.rotation||270}deg`)}),(e,t)=>(z(),B(`div`,{class:`rectangle-rotate-transition`,style:be({zIndex:e.stageTransition?.zIndex??100})},[...t[0]||=[V(`div`,{class:`rectangle rectangle-rotate-1`},[V(`div`)],-1),V(`div`,{class:`rectangle rectangle-rotate-2`},[V(`div`)],-1),V(`div`,{class:`rectangle rectangle-rotate-3`},[V(`div`)],-1)]],4))}}),rRe=TM(nRe,[[`__scopeId`,`data-v-45ea2f7f`]]),iRe=R({__name:`StageTransitionGroup`,props:{primaryColor:{},secondaryColor:{},tertiaryColor:{},colors:{},zIndex:{},disableTransitions:{type:Boolean},usePageSpecificTransitions:{type:Boolean}},setup(e){let t=e,n=Gk(),r=F(!1),i=F(),a=F(``),o=F(),s=fn({slide:{component:$Le,duration:2700},"slope-slide":{component:tRe,duration:2700},arrow:{component:GLe,duration:2700},"multiple-blocks-reveal":{component:ZLe,duration:2800},"fantasy-fall":{component:YLe,duration:2700},"rectangles-rotate":{component:rRe,duration:2700},"bubble-wave-out":{component:qLe,duration:1e3}}),c=F([]);function l(e){return c.value.push(e),()=>{let t=c.value.indexOf(e);t>=0&&c.value.splice(t,1)}}async function u(e,t={}){i.value=e;for(let n of c.value)try{await Promise.resolve(n(e,t))}catch(t){console.error(`Error in transition hook at stage "${e}":`,t)}}async function d(e,t,n){if(e.name===`none`||!e.name){t(),n();return}let i=s.value[e.name];if(!i){console.error(`Transition ${e.name} not found`),t(),n();return}let c=i.nextDelay===void 0?i.duration/3:i.nextDelay,d=!1,f=e=>{e===`navigation`&&!d&&(d=!0,t())},p=l(f);try{await u(`before-enter`,{transitionName:e.name}),r.value&&(await u(`before-leave`,{transitionName:a.value}),a.value=``,o.value=void 0,r.value=!1,await u(`after-leave`,{transitionName:a.value}),await new Promise(e=>setTimeout(e,50))),a.value=e.name,o.value=e,r.value=!0,await u(`enter-active`,{transitionName:name}),setTimeout(async()=>{await u(`navigation`,{transitionName:e.name,config:i}),d||(d=!0,t())},c),setTimeout(async()=>{await u(`after-enter`,{transitionName:e.name})},i.duration),setTimeout(async()=>{await u(`before-leave`,{transitionName:e.name})},i.duration+10),setTimeout(async()=>{await u(`leave-active`,{transitionName:e.name})},i.duration+20);let s=i.exitDuration??0;setTimeout(async()=>{r.value=!1,a.value=``,o.value=void 0,await u(`after-leave`,{transitionName:e.name}),n()},i.duration+s)}catch(e){console.error(e)}finally{p(),setTimeout(()=>{d||(d=!0,t())},i.duration*2)}}function f(e,t){return new Promise(n=>{d(e,t,n)})}return n.beforeEach((e,n,r)=>{if(t.disableTransitions){r();return}if(typeof e.meta.stageTransition!=`object`){r();return}let i=e.meta.stageTransition;if(t.usePageSpecificTransitions&&i.pageSpecificAvailable){r();return}t.primaryColor!==void 0&&(i.primaryColor=t.primaryColor),t.secondaryColor!==void 0&&(i.secondaryColor=t.secondaryColor),t.tertiaryColor!==void 0&&(i.tertiaryColor=t.tertiaryColor),t.colors!==void 0&&(i.colors=t.colors),t.zIndex!==void 0&&(i.zIndex=t.zIndex),f(i,r)}),(e,t)=>(z(),B(vo,null,[ki(e.$slots,`default`),r.value?(z(),B(vo,{key:0},[s.value[a.value]?(z(),Oo(Ci(s.value[a.value].component),{key:0,"stage-transition":o.value},null,8,[`stage-transition`])):Lo(``,!0)],64)):Lo(``,!0)],64))}}),aRe=iRe;let U9=1;var oRe=class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{let{message:t,...n}=e,r=typeof e.id==`number`||e.id&&e.id?.length>0?e.id:U9++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e,type:`default`});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{a=[`resolve`,e];let r=ko(e);if(r)i=!1,this.create({id:n,type:`default`,message:e});else if(cRe(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!ko(r),s=o?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...s})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!ko(r),s=o?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...s})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!ko(r),s=o?r:{message:r||``,id:n||``};this.create({id:n,type:`success`,description:a,...s})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!ko(r),s=o?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...s})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})};custom=(e,t)=>{let n=t?.id||U9++,r=this.toasts.find(e=>e.id===n),i=t?.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),r?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,component:e,dismissible:i,id:n,...t}),{...r,component:e,dismissible:i,id:n,...t}):r):this.addToast({component:e,dismissible:i,id:n,...t}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};const W9=new oRe;function sRe(e,t){let n=t?.id||U9++;return W9.create({message:e,id:n,type:`default`,...t}),n}const cRe=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,lRe=sRe,uRe=()=>W9.toasts,dRe=()=>W9.getActiveToasts(),fRe=Object.assign(lRe,{success:W9.success,info:W9.info,warning:W9.warning,error:W9.error,custom:W9.custom,message:W9.message,promise:W9.promise,dismiss:W9.dismiss,loading:W9.loading},{getHistory:uRe,getToasts:dRe});function G9(e){return e.label!==void 0}const K9=`24px`,q9=`16px`,J9=4e3;function pRe(){let e=F(!1);return La(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function Y9(...e){return e.filter(Boolean).join(` `)}function mRe(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function hRe(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?q9:K9;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}const gRe=[`data-rich-colors`,`data-styled`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-invert`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],_Re=[`aria-label`,`data-disabled`];var vRe=R({__name:`Toast`,props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:[`update:heights`,`update:height`,`removeToast`],setup(e,{emit:t}){let n=e,r=t,i=F(null),a=F(null),o=F(!1),s=F(!1),c=F(!1),l=F(!1),u=F(!1),d=F(0),f=F(0),p=F(n.toast.duration||n.duration||J9),m=F(null),h=F(null),g=U(()=>n.index===0),_=U(()=>n.index+1<=n.visibleToasts),v=U(()=>n.toast.type),y=U(()=>n.toast.dismissible!==!1),b=U(()=>n.toast.class||``),x=U(()=>n.descriptionClass||``),S=U(()=>{let e=n.toast.position||n.position,t=n.heights.filter(t=>t.position===e),r=t.findIndex(e=>e.toastId===n.toast.id);return r>=0?r:0}),C=U(()=>{let e=n.toast.position||n.position,t=n.heights.filter(t=>t.position===e);return t.reduce((e,t,n)=>n>=S.value?e:e+t.height,0)}),w=U(()=>S.value*n.gap+C.value||0),T=U(()=>n.toast.closeButton??n.closeButton),E=U(()=>n.toast.duration||n.duration||J9),D=F(0),O=F(0),k=F(null),A=U(()=>n.position.split(`-`)),j=U(()=>A.value[0]),M=U(()=>A.value[1]),ee=U(()=>typeof n.toast.title!=`string`),te=U(()=>typeof n.toast.description!=`string`),{isDocumentHidden:N}=pRe(),ne=U(()=>v.value&&v.value===`loading`);di(()=>{o.value=!0,p.value=E.value}),La(async()=>{if(!o.value||!h.value)return;await Gn();let e=h.value,t=e.style.height;e.style.height=`auto`;let i=e.getBoundingClientRect().height;e.style.height=t,f.value=i,r(`update:height`,{toastId:n.toast.id,height:i,position:n.toast.position||n.position})});function re(){s.value=!0,d.value=w.value,setTimeout(()=>{r(`removeToast`,n.toast)},200)}function ie(){if(ne.value||!y.value)return{};re(),n.toast.onDismiss?.(n.toast)}function ae(e){e.button!==2&&(ne.value||!y.value||(m.value=new Date,d.value=w.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(c.value=!0,k.value={x:e.clientX,y:e.clientY})))}function oe(){if(l.value||!y.value)return;k.value=null;let e=Number(h.value?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(h.value?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-(m.value?.getTime()||0),o=i.value===`x`?e:t,s=Math.abs(o)/r;if(Math.abs(o)>=45||s>.11){d.value=w.value,n.toast.onDismiss?.(n.toast),i.value===`x`?a.value=e>0?`right`:`left`:a.value=t>0?`down`:`up`,re(),l.value=!0;return}else h.value?.style.setProperty(`--swipe-amount-x`,`0px`),h.value?.style.setProperty(`--swipe-amount-y`,`0px`);u.value=!1,c.value=!1,i.value=null}function se(e){if(!k.value||!y.value)return;let t=window?.getSelection()?.toString()?.length??!1;if(t)return;let r=e.clientY-k.value.y,a=e.clientX-k.value.x,o=n.swipeDirections??mRe(n.position);!i.value&&(Math.abs(a)>1||Math.abs(r)>1)&&(i.value=Math.abs(a)>Math.abs(r)?`x`:`y`);let s={x:0,y:0},c=e=>{let t=Math.abs(e)/20;return 1/(1.5+t)};if(i.value===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&r<0||o.includes(`bottom`)&&r>0)s.y=r;else{let e=r*c(r);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&(u.value=!0),h.value?.style.setProperty(`--swipe-amount-x`,`${s.x}px`),h.value?.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}di(()=>{if(o.value=!0,!h.value)return;let e=h.value.getBoundingClientRect().height;f.value=e;let t=[{toastId:n.toast.id,height:e,position:n.toast.position},...n.heights];r(`update:heights`,t)}),mi(()=>{h.value&&r(`removeToast`,n.toast)}),La(e=>{if(n.toast.promise&&v.value===`loading`||n.toast.duration===1/0||n.toast.type===`loading`)return;let t,r=()=>{if(O.value{p.value!==1/0&&(D.value=new Date().getTime(),t=setTimeout(()=>{n.toast.onAutoClose?.(n.toast),re()},p.value))};n.expanded||n.interacting||N.value?r():i(),e(()=>{clearTimeout(t)})}),Ba(()=>n.toast.delete,e=>{e!==void 0&&e&&(re(),n.toast.onDismiss?.(n.toast))},{deep:!0});function ce(){c.value=!1,i.value=null,k.value=null}return(e,t)=>(z(),B(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:h,class:Te(I(Y9)(n.class,b.value,e.classes?.toast,e.toast.classes?.toast,e.classes?.[v.value],e.toast?.classes?.[v.value])),"data-sonner-toast":``,"data-rich-colors":e.toast.richColors??e.defaultRichColors,"data-styled":!(e.toast.component||e.toast?.unstyled||e.unstyled),"data-mounted":o.value,"data-promise":!!e.toast.promise,"data-swiped":u.value,"data-removed":s.value,"data-visible":_.value,"data-y-position":j.value,"data-x-position":M.value,"data-index":e.index,"data-front":g.value,"data-swiping":c.value,"data-dismissible":y.value,"data-type":v.value,"data-invert":e.toast.invert||e.invert,"data-swipe-out":l.value,"data-swipe-direction":a.value,"data-expanded":!!(e.expanded||e.expandByDefault&&o.value),"data-testid":e.toast.testId,style:be({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${s.value?d.value:w.value}px`,"--initial-height":e.expandByDefault?`auto`:`${f.value}px`,...e.style,...n.toast.style}),onDragend:ce,onPointerdown:ae,onPointerup:oe,onPointermove:se},[T.value&&!e.toast.component&&v.value!==`loading`?(z(),B(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":ne.value,"data-close-button":`true`,class:Te(I(Y9)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:ie},[e.icons?.close?(z(),Oo(Ci(e.icons?.close),{key:0})):ki(e.$slots,`close-icon`,{key:1})],10,_Re)):Lo(`v-if`,!0),e.toast.component?(z(),Oo(Ci(e.toast.component),Vo({key:1},e.toast.componentProps,{onCloseToast:ie}),null,16)):(z(),B(vo,{key:2},[v.value!==`default`||e.toast.icon||e.toast.promise?(z(),B(`div`,{key:0,"data-icon":``,class:Te(I(Y9)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?(z(),Oo(Ci(e.toast.icon),{key:0})):(z(),B(vo,{key:1},[v.value===`loading`?ki(e.$slots,`loading-icon`,{key:0}):v.value===`success`?ki(e.$slots,`success-icon`,{key:1}):v.value===`error`?ki(e.$slots,`error-icon`,{key:2}):v.value===`warning`?ki(e.$slots,`warning-icon`,{key:3}):v.value===`info`?ki(e.$slots,`info-icon`,{key:4}):Lo(`v-if`,!0)],64))],2)):Lo(`v-if`,!0),V(`div`,{"data-content":``,class:Te(I(Y9)(e.classes?.content,e.toast?.classes?.content))},[V(`div`,{"data-title":``,class:Te(I(Y9)(e.classes?.title,e.toast.classes?.title))},[ee.value?(z(),Oo(Ci(e.toast.title),Ee(Vo({key:0},e.toast.componentProps)),null,16)):(z(),B(vo,{key:1},[Fo(Pe(e.toast.title),1)],64))],2),e.toast.description?(z(),B(`div`,{key:0,"data-description":``,class:Te(I(Y9)(e.descriptionClass,x.value,e.classes?.description,e.toast.classes?.description))},[te.value?(z(),Oo(Ci(e.toast.description),Ee(Vo({key:0},e.toast.componentProps)),null,16)):(z(),B(vo,{key:1},[Fo(Pe(e.toast.description),1)],64))],2)):Lo(`v-if`,!0)],2),e.toast.cancel?(z(),B(`button`,{key:1,style:be(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:Te(I(Y9)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:t[0]||=t=>{I(G9)(e.toast.cancel)&&y.value&&(e.toast.cancel.onClick?.(t),re())}},Pe(I(G9)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):Lo(`v-if`,!0),e.toast.action?(z(),B(`button`,{key:2,style:be(e.toast.actionButtonStyle||e.actionButtonStyle),class:Te(I(Y9)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:t[1]||=t=>{I(G9)(e.toast.action)&&(e.toast.action.onClick?.(t),!t.defaultPrevented&&re())}},Pe(I(G9)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):Lo(`v-if`,!0)],64))],46,gRe))}}),yRe=vRe,X9=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};const bRe={},xRe={xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stoke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`};function SRe(e,t){return z(),B(`svg`,xRe,t[0]||=[V(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),V(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var CRe=X9(bRe,[[`render`,SRe]]);const wRe=[`data-visible`],TRe={class:`sonner-spinner`};var ERe=R({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let t=Array(12).fill(0);return(e,n)=>(z(),B(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[V(`div`,TRe,[(z(!0),B(vo,null,Di(I(t),e=>(z(),B(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,wRe))}}),DRe=ERe;const ORe={},kRe={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function ARe(e,t){return z(),B(`svg`,kRe,t[0]||=[V(`path`,{"fill-rule":`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,"clip-rule":`evenodd`},null,-1)])}var jRe=X9(ORe,[[`render`,ARe]]);const MRe={},NRe={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function PRe(e,t){return z(),B(`svg`,NRe,t[0]||=[V(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,"clip-rule":`evenodd`},null,-1)])}var FRe=X9(MRe,[[`render`,PRe]]);const IRe={},Z9={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function LRe(e,t){return z(),B(`svg`,Z9,t[0]||=[V(`path`,{"fill-rule":`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,"clip-rule":`evenodd`},null,-1)])}var RRe=X9(IRe,[[`render`,LRe]]);const zRe={},BRe={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function VRe(e,t){return z(),B(`svg`,BRe,t[0]||=[V(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,"clip-rule":`evenodd`},null,-1)])}var HRe=X9(zRe,[[`render`,VRe]]);const URe=[`aria-label`],WRe=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],GRe=typeof window<`u`&&typeof document<`u`;function KRe(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}var qRe=R({name:`Toaster`,inheritAttrs:!1,__name:`Toaster`,props:{id:{},invert:{type:Boolean,default:!1},theme:{default:`light`},position:{default:`bottom-right`},hotkey:{default:()=>[`altKey`,`KeyT`]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:14},visibleToasts:{default:3},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:K9},mobileOffset:{default:q9},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let t=e,n=Gi(),r=F([]),i=U(()=>t.id?r.value.filter(e=>e.toasterId===t.id):r.value.filter(e=>!e.toasterId));function a(e,t){return i.value.filter(n=>!n.position&&t===0||n.position===e)}let o=U(()=>{let e=i.value.filter(e=>e.position).map(e=>e.position);return e.length>0?Array.from(new Set([t.position].concat(e))):[t.position]}),s=U(()=>{let e={};return o.value.forEach(t=>{e[t]=r.value.filter(e=>e.position===t)}),e}),c=F([]),l=F({}),u=F(!1);La(()=>{o.value.forEach(e=>{e in l.value||(l.value[e]=!1)})});let d=F(t.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t.theme),f=F(null),p=F(null),m=F(!1),h=t.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function g(e){r.value.find(t=>t.id===e.id)?.delete||W9.dismiss(e.id),r.value=r.value.filter(({id:t})=>t!==e.id),setTimeout(()=>{r.value.find(t=>t.id===e.id)||(c.value=c.value.filter(t=>t.toastId!==e.id))},250)}function _(e){m.value&&!e.currentTarget?.contains?.(e.relatedTarget)&&(m.value=!1,p.value&&=(p.value.focus({preventScroll:!0}),null))}function v(e){let t=e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`;t||m.value||(m.value=!0,p.value=e.relatedTarget)}function y(e){if(e.target){let t=e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`;if(t)return}u.value=!0}La(e=>{let t=W9.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{r.value=r.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}Gn(()=>{let t=r.value.findIndex(t=>t.id===e.id);t===-1?r.value=[e,...r.value]:r.value=[...r.value.slice(0,t),{...r.value[t],...e},...r.value.slice(t+1)]})});e(t)}),La(e=>{if(typeof window>`u`)return;if(t.theme!==`system`){d.value=t.theme;return}let n=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{d.value=e?`dark`:`light`};r(n.matches);let i=e=>{r(e.matches)};try{n.addEventListener(`change`,i)}catch{n.addListener(i)}e(()=>{try{n.removeEventListener(`change`,i)}catch{n.removeListener(i)}})}),La(()=>{f.value&&p.value&&(p.value.focus({preventScroll:!0}),p.value=null,m.value=!1)}),La(()=>{r.value.length<=1&&Object.keys(l.value).forEach(e=>{l.value[e]=!1})}),La(e=>{function n(e){let n=t.hotkey.every(t=>e[t]||e.code===t),r=Array.isArray(f.value)?f.value[0]:f.value;n&&(o.value.forEach(e=>{l.value[e]=!0}),r?.focus());let i=document.activeElement===f.value||r?.contains(document.activeElement);e.code===`Escape`&&i&&o.value.forEach(e=>{l.value[e]=!1})}GRe&&(document.addEventListener(`keydown`,n),e(()=>{document.removeEventListener(`keydown`,n)}))});function b(e){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!0}function x(e){if(!u.value){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!1}}function S(){Object.keys(l.value).forEach(e=>{l.value[e]=!1})}function C(){u.value=!1}function w(e){c.value=e}function T(e){let t=c.value.findIndex(t=>t.toastId===e.toastId);if(t!==-1)c.value[t]=e;else{let t=c.value.findIndex(t=>t.position===e.position);t===-1?c.value.unshift(e):c.value.splice(t,0,e)}}return(e,r)=>(z(),B(vo,null,[Lo(` Remove item from normal navigation flow, only available via hotkey `),V(`section`,{"aria-label":`${e.containerAriaLabel} ${I(h)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[(z(!0),B(vo,null,Di(o.value,(r,i)=>(z(),B(`ol`,Vo({key:r,ref_for:!0,ref_key:`listRef`,ref:f,"data-sonner-toaster":``,"data-sonner-theme":d.value,class:t.class,dir:e.dir===`auto`?KRe():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":r.split(`-`)[0],"data-x-position":r.split(`-`)[1],style:{"--front-toast-height":`${c.value[0]?.height||0}px`,"--width":`${I(356)}px`,"--gap":`${e.gap}px`,...e.style,...I(n).style,...I(hRe)(e.offset,e.mobileOffset)}},{ref_for:!0},e.$attrs,{onBlur:_,onFocus:v,onMouseenter:b,onMousemove:b,onMouseleave:x,onDragend:S,onPointerdown:y,onPointerup:C}),[(z(!0),B(vo,null,Di(a(r,i),(n,i)=>(z(),Oo(yRe,{key:n.id,heights:c.value,icons:e.icons,index:i,toast:n,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:Te(e.toastOptions?.class??``),descriptionClass:e.toastOptions?.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:e.toastOptions?.closeButton??e.closeButton,interacting:u.value,position:r,style:be(e.toastOptions?.style),unstyled:e.toastOptions?.unstyled,classes:e.toastOptions?.classes,cancelButtonStyle:e.toastOptions?.cancelButtonStyle,actionButtonStyle:e.toastOptions?.actionButtonStyle,"close-button-aria-label":e.toastOptions?.closeButtonAriaLabel,toasts:s.value[r],expandByDefault:e.expand,gap:e.gap,expanded:l.value[r]||!1,swipeDirections:t.swipeDirections,"onUpdate:heights":w,"onUpdate:height":T,onRemoveToast:g},{"close-icon":L(()=>[ki(e.$slots,`close-icon`,{},()=>[H(CRe)])]),"loading-icon":L(()=>[ki(e.$slots,`loading-icon`,{},()=>[H(DRe,{visible:n.type===`loading`},null,8,[`visible`])])]),"success-icon":L(()=>[ki(e.$slots,`success-icon`,{},()=>[H(jRe)])]),"error-icon":L(()=>[ki(e.$slots,`error-icon`,{},()=>[H(HRe)])]),"warning-icon":L(()=>[ki(e.$slots,`warning-icon`,{},()=>[H(RRe)])]),"info-icon":L(()=>[ki(e.$slots,`info-icon`,{},()=>[H(FRe)])]),_:2},1032,[`heights`,`icons`,`index`,`toast`,`defaultRichColors`,`duration`,`class`,`descriptionClass`,`invert`,`visibleToasts`,`closeButton`,`interacting`,`position`,`style`,`unstyled`,`classes`,`cancelButtonStyle`,`actionButtonStyle`,`close-button-aria-label`,`toasts`,`expandByDefault`,`gap`,`expanded`,`swipeDirections`]))),128))],16,WRe))),128))],8,URe)],2112))}}),JRe=qRe;const YRe=UO(`pwa`,()=>{F([]);let e=tE(eE);e.smaller(`md`),di(async()=>{})});var XRe=R({__name:`App`,setup(e){YRe();let t=K1(),n=R9(),r=H9(),i=WO(r),a=ULe(),{shouldShowSetup:o}=WO(a),s=lE(),c=U(()=>s.value?`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 0)) 70%, oklch(50% 0 360))`:`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 0)) 90%, oklch(90% 0 360))`),l=U(()=>s.value?`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 180)) 70%, oklch(50% 0 360))`:`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 180)) 90%, oklch(90% 0 360))`),u=U(()=>s.value?`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 60)) 70%, oklch(50% 0 360))`:`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 60)) 90%, oklch(90% 0 360))`),d=U(()=>[c.value,l.value,u.value,s.value?`#121212`:`#FFFFFF`]);Ba(i.language,()=>{t.locale.value=i.language.value}),Ba(i.themeColorsHue,()=>{document.documentElement.style.setProperty(`--chromatic-hue`,i.themeColorsHue.value.toString())},{immediate:!0}),Ba(i.themeColorsHueDynamic,()=>{document.documentElement.classList.toggle(`dynamic-hue`,i.themeColorsHueDynamic.value)},{immediate:!0}),di(async()=>{a.initializeSetupCheck(),await n.loadDisplayModelsFromIndexedDB(),await r.initializeStageModel()});function f(){a.markSetupCompleted()}function p(){a.markSetupSkipped()}return(e,t)=>(z(),B(vo,null,[H(I(aRe),{"primary-color":c.value,"secondary-color":l.value,"tertiary-color":u.value,colors:d.value,"z-index":100,"disable-transitions":I(i).disableTransitions.value,"use-page-specific-transitions":I(i).usePageSpecificTransitions.value},{default:L(()=>[H(I(Wk),null,{default:L(({Component:e})=>[(z(),Oo(ti,{include:/IndexScenePage|StageScenePage/},[(z(),Oo(Ci(e)))],1024))]),_:1})]),_:1},8,[`primary-color`,`secondary-color`,`tertiary-color`,`colors`,`disable-transitions`,`use-page-specific-transitions`]),H(I(GMe),{onClose:t[0]||=e=>I(fRe).dismiss(e)},{default:L(()=>[H(I(JRe))]),_:1}),H(I(HMe),{modelValue:I(o),"onUpdate:modelValue":t[1]||=e=>dn(o)?o.value=e:null,onConfigured:f,onSkipped:p},null,8,[`modelValue`])],64))}}),ZRe=XRe;const Q9={"zh-CN":`zh-Hans`,"zh-TW":`zh-Hant`,"zh-HK":`zh-Hans`,"zh-Hant":`zh-Hans`,"en-US":`en`,"en-GB":`en`,"en-AU":`en`,en:`en`,"es-ES":`es`,"es-MX":`es`,"es-AR":`es`,es:`es`,vi:`vi`,"vi-VN":`vi`,ru:`ru`,"ru-RU":`ru`};function QRe(){let e=localStorage.getItem(`settings/language`);e||=navigator.language||`en`;let t=Object.keys(I3);return Q9[e||`en`]!=null&&(e=Q9[e||`en`]),e&&t.includes(e)?e:`en`}const $Re=LDe({legacy:!1,locale:QRe(),fallbackLocale:`en`,messages:I3}),eze=Iue(),tze=Uue(qde);let $9;$9=Gde({routes:tze,history:xde()}),$9.beforeEach((e,t)=>{e.path!==t.path&&uw.default.start()}),$9.afterEach(()=>{uw.default.done()}),$9.isReady().then(async()=>{}).catch(()=>{}),Qc(ZRe).use(Oue).use(iT).use($9).use(eze).use($Re).use(cw).mount(`#app`);export{k0 as $,q3 as A,pMe as B,cMe as C,P3 as D,N3 as E,j3 as F,O3 as G,v3 as H,m3 as I,$4 as J,hje as K,Q4 as L,H4 as M,UAe as N,OAe as O,V4 as P,oAe as Q,tAe as R,eAe as S,B4 as T,Yke as U,L4 as V,I4 as W,ROe as X,M0 as Y,j0 as Z,A0 as _,xM as a$,O0 as a1,D0 as a2,E0 as a3,T0 as a4,m0 as a5,p0 as a6,n0 as a7,i0 as a8,a0 as a9,Iz as aA,_z as aB,hz as aC,dz as aD,fz as aE,sz as aF,uz as aG,lz as aH,nz as aI,qR as aJ,zR as aK,kR as aL,bR as aM,fR as aN,VL as aO,tve as aP,n_e as aQ,OM as aR,Yge as aS,Kge as aT,Uge as aU,DM as aV,EM as aW,TM as aX,bge as aY,wM as aZ,SM as a_,o0 as aa,s0 as ab,c0 as ac,l0 as ad,K1 as ae,iEe as af,UQ as ag,WQ as ah,GQ as ai,HQ as aj,VTe as ak,zTe as al,LTe as am,FTe as an,kQ as ao,ETe as ap,rTe as aq,OQ as ar,DQ as as,Fwe as at,Twe as au,bwe as av,$z as aw,qz as ax,Wz as ay,Rz as az,HLe as b,rce as b$,lM as b0,uM as b1,rj as b2,nj as b3,ej as b4,QA as b5,Zfe as b6,Qfe as b7,npe as b8,ZA as b9,dA as bA,lA as bB,cA as bC,oA as bD,iA as bE,rA as bF,tA as bG,Zk as bH,Xk as bI,Bk as bJ,Wk as bK,Kk as bL,Gk as bM,G as bN,UO as bO,WO as bP,eE as bQ,tE as bR,Hse as bS,Use as bT,lE as bU,uE as bV,fE as bW,$se as bX,pE as bY,tce as bZ,$T as b_,YA as ba,JA as bb,qA as bc,KA as bd,GA as be,Pfe as bf,Mfe as bg,HA as bh,VA as bi,Ffe as bj,UA as bk,Rfe as bl,Lfe as bm,BA as bn,MA as bo,AA as bp,kA as bq,DA as br,EA as bs,TA as bt,wA as bu,SA as bv,bA as bw,yA as bx,vA as by,_A as bz,H9 as c,bv as c$,ice as c0,nE as c1,oce as c2,dE as c3,yE as c4,sce as c5,IT as c6,RT as c7,HT as c8,GT as c9,zh as cA,Dte as cB,ll as cC,ny as cD,Jf as cE,gd as cF,Jy as cG,kte as cH,zm as cI,Sv as cJ,rp as cK,Nl as cL,Bh as cM,Lv as cN,Ste as cO,Bu as cP,Mte as cQ,ff as cR,Wu as cS,gv as cT,gp as cU,Cl as cV,bte as cW,vy as cX,nm as cY,wl as cZ,Yv as c_,FT as ca,cT as cb,mC as cc,bC as cd,sw as ce,MC as cf,jC as cg,zx as ch,Ox as ci,Jx as cj,nx as ck,pb as cl,$y as cm,Ote as cn,wte as co,Ate as cp,sv as cq,gy as cr,qy as cs,xte as ct,ju as cu,Rm as cv,Ad as cw,sp as cx,wp as cy,Jp as cz,zLe as d,Vm as d$,Hm as d0,Ym as d1,sm as d2,lm as d3,Y_ as d4,bu as d5,xu as d6,Vv as d7,wh as d8,gh as d9,Cte as dA,Nte as dB,nv as dC,kf as dD,Iv as dE,Qp as dF,Zm as dG,Fv as dH,Fh as dI,Ah as dJ,my as dK,rd as dL,iv as dM,yte as dN,Mu as dO,jl as dP,Il as dQ,A_ as dR,tf as dS,by as dT,Pl as dU,Ete as dV,cl as dW,Pu as dX,Lu as dY,om as dZ,qp as d_,kh as da,Oh as db,ml as dc,gl as dd,hl as de,Fu as df,Tte as dg,pv as dh,Uv as di,dv as dj,il as dk,Zf as dl,td as dm,od as dn,nf as do,Ip as dp,Qf as dq,L_ as dr,F_ as ds,M_ as dt,j_ as du,ul as dv,dl as dw,pl as dx,fl as dy,jte as dz,I9 as e,cr as e$,Lm as e0,qd as e1,Cy as e2,Bv as e3,jv as e4,al as e5,Nu as e6,wd as e7,Cv as e8,Au as e9,Oo as eA,Lo as eB,B as eC,Oi as eD,Fo as eE,H as eF,R as eG,No as eH,fs as eI,la as eJ,Ji as eK,Yi as eL,Vo as eM,Gn as eN,di as eO,hi as eP,z as eQ,ca as eR,Di as eS,ki as eT,xi as eU,wi as eV,Wa as eW,Rr as eX,Ba as eY,La as eZ,L as e_,ku as ea,Ou as eb,_y as ec,Wp as ed,_l as ee,Dl as ef,Sl as eg,nd as eh,W as ei,Td as ej,ov as ek,Hu as el,tm as em,Dd as en,Fs as eo,Pc as ep,Lc as eq,Nc as er,$s as es,Gc as et,Wc as eu,vo as ev,ti as ew,oo as ex,U as ey,V as ez,R9 as f,dn as f0,F as f1,fn as f2,sn as f3,vn as f4,_n as f5,I as f6,Te as f7,Ee as f8,be as f9,Pe as fa,s as fb,o as fc,c as fd,p as fe,d as ff,f as fg,u as fh,S9 as g,D9 as h,o9 as i,t7 as j,e7 as k,w5 as l,L8 as m,sIe as n,Q6 as o,r8 as p,e8 as q,X6 as r,Z6 as s,K6 as t,k6 as u,qPe as v,b6 as w,V3 as x,Z3 as y,Y3 as z}; \ No newline at end of file +\0`,M+=r(k,2),M+=m.magic,M+=r(d,2),M+=r(f,2),M+=r(O.crc32,4),M+=r(O.compressedSize,4),M+=r(O.uncompressedSize,4),M+=r(g.length,2),M+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+M+g+C,dirRecord:l.CENTRAL_FILE_HEADER+r(j,2)+M+r(y.length,2)+`\0\0\0\0`+r(A,4)+r(i,4)+g+C+y}}var a=e(`../utils`),o=e(`../stream/GenericWorker`),s=e(`../utf8`),c=e(`../crc32`),l=e(`../signature`);function u(e,t,n,r){o.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e(`./Uint8ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e(`./ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e(`../utils`),i=e(`../support`),a=e(`./ArrayReader`),o=e(`./StringReader`),s=e(`./NodeBufferReader`),c=e(`./Uint8ArrayReader`);t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),t!==`string`||i.uint8array?t===`nodebuffer`?new s(e):i.uint8array?new c(r.transformTo(`uint8array`,e)):new a(r.transformTo(`array`,e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER=`PK`,n.CENTRAL_FILE_HEADER=`PK`,n.CENTRAL_DIRECTORY_END=`PK`,n.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,n.ZIP64_CENTRAL_DIRECTORY_END=`PK`,n.DATA_DESCRIPTOR=`PK\x07\b`},{}],24:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../utils`);function a(e){r.call(this,`ConvertWorker to `+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../crc32`);function a(){r.call(this,`Crc32Probe`),this.withStreamInfo(`crc32`,0)}e(`../utils`).inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataLengthProbe for `+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataWorker`);var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=``,this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case`string`:e=this.data.substring(this.index,t);break;case`uint8array`:e=this.data.subarray(this.index,t);break;case`array`:case`nodebuffer`:e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||`default`,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit(`data`,e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(`end`),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(`error`,e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(`error`,e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n `+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e(`../utils`),i=e(`./ConvertWorker`),a=e(`./GenericWorker`),o=e(`../base64`),s=e(`../support`),c=e(`../external`),l=null;if(s.nodestream)try{l=e(`../nodejs/NodejsStreamOutputAdapter`)}catch{}function u(e,t){return new c.Promise(function(n,i){var a=[],s=e._internalType,c=e._outputType,l=e._mimeType;e.on(`data`,function(e,n){a.push(e),t&&t(n)}).on(`error`,function(e){a=[],i(e)}).on(`end`,function(){try{var e=function(e,t,n){switch(e){case`blob`:return r.newBlob(r.transformTo(`arraybuffer`,t),n);case`base64`:return o.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var n,r=0,i=null,a=0;for(n=0;n`u`)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=new Blob([r],{type:`application/zip`}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=i.getBlob(`application/zip`).size===0}catch{n.blob=!1}}}try{n.nodestream=!!e(`readable-stream`).Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e(`./utils`),i=e(`./support`),a=e(`./nodejsUtils`),o=e(`./stream/GenericWorker`),s=Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;s[254]=s[254]=1;function l(){o.call(this,`utf-8 decode`),this.leftOver=null}function u(){o.call(this,`utf-8 encode`)}n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,`utf-8`):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo(`nodebuffer`,e).toString(`utf-8`):function(e){var t,n,i,a,o=e.length,c=Array(2*o);for(t=n=0;t>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?`uint8array`:`array`,e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?`uint8array`:`array`,e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e(`./support`),i=e(`./base64`),a=e(`./nodejsUtils`),o=e(`./external`);function s(e){return e}function c(e,t){for(var n=0;n>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==`/`||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||={};e.index+4>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){for(n-=o=2e3>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e(`../utils/common`),a=e(`./trees`),o=e(`./adler32`),s=e(`./crc32`),c=e(`./messages`),l=0,u=4,d=0,f=-2,p=-1,m=4,h=2,g=8,_=9,v=286,y=30,b=19,x=2*v+1,S=15,C=3,w=258,T=w+C+1,E=42,D=113,O=1,k=2,A=3,j=4;function M(e,t){return e.msg=c[t],t}function ee(e){return(e<<1)-(4e.avail_out&&(n=e.avail_out),n!==0&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function ne(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)}function re(e,t){e.pending_buf[e.pending++]=t}function ie(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ae(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+w,p=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===m&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&ac&&--i!=0);return o<=e.lookahead?o:e.lookahead}function oe(e){var t,n,r,a,c,l,u,d,f,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-T)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);a+=m}if(e.strm.avail_in===0)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=a,p=void 0,p=l.avail_in,f=C)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<=C&&(e.ins_h=(e.ins_h<=C)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=C&&(e.ins_h=(e.ins_h<=C&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-C,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(oe(e),e.lookahead===0&&t===l)return O;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,ne(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-T&&(ne(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(ne(e,!0),e.strm.avail_out===0?A:j):(e.strstart>e.block_start&&(ne(e,!1),e.strm.avail_out),O)}),new le(4,4,8,4,se),new le(4,5,16,8,se),new le(4,6,32,32,se),new le(4,4,16,16,ce),new le(8,16,32,32,ce),new le(8,16,128,128,ce),new le(8,32,128,256,ce),new le(32,128,258,1024,ce),new le(32,258,258,4096,ce)],n.deflateInit=function(e,t){return pe(e,t,g,15,8,0)},n.deflateInit2=pe,n.deflateReset=fe,n.deflateResetKeep=de,n.deflateSetHeader=function(e,t){return e&&e.state&&e.state.wrap===2?(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5>8&255),re(i,i.gzhead.time>>16&255),re(i,i.gzhead.time>>24&255),re(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),re(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(re(i,255&i.gzhead.extra.length),re(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(re(i,0),re(i,0),re(i,0),re(i,0),re(i,0),re(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),re(i,3),i.status=D);else{var p=g+(i.w_bits-8<<4)<<8;p|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(p|=32),p+=31-p%31,i.status=D,ie(i,p),i.strstart!==0&&(ie(i,e.adler>>>16),ie(i,65535&e.adler)),e.adler=1}if(i.status===69)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),N(e),o=i.pending,i.pending!==i.pending_buf_size));)re(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),N(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),N(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(e),i.pending+2<=i.pending_buf_size&&(re(i,255&e.adler),re(i,e.adler>>8&255),e.adler=0,i.status=D)):i.status=D),i.pending!==0){if(N(e),e.avail_out===0)return i.last_flush=-1,d}else if(e.avail_in===0&&ee(t)<=ee(n)&&t!==u)return M(e,-5);if(i.status===666&&e.avail_in!==0)return M(e,-5);if(e.avail_in!==0||i.lookahead!==0||t!==l&&i.status!==666){var m=i.strategy===2?function(e,t){for(var n;;){if(e.lookahead===0&&(oe(e),e.lookahead===0)){if(t===l)return O;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ne(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(ne(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(ne(e,!1),e.strm.avail_out===0)?O:k}(i,t):i.strategy===3?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=w){if(oe(e),e.lookahead<=w&&t===l)return O;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=C&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(n=a._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ne(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(ne(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(ne(e,!1),e.strm.avail_out===0)?O:k}(i,t):r[i.level].func(i,t);if(m!==A&&m!==j||(i.status=666),m===O||m===A)return e.avail_out===0&&(i.last_flush=-1),d;if(m===k&&(t===1?a._tr_align(i):t!==5&&(a._tr_stored_block(i,0,0,!1),t===3&&(te(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),N(e),e.avail_out===0))return i.last_flush=-1,d}return t===u?i.wrap<=0?1:(i.wrap===2?(re(i,255&e.adler),re(i,e.adler>>8&255),re(i,e.adler>>16&255),re(i,e.adler>>24&255),re(i,255&e.total_in),re(i,e.total_in>>8&255),re(i,e.total_in>>16&255),re(i,e.total_in>>24&255)):(ie(i,e.adler>>>16),ie(i,65535&e.adler)),N(e),0=n.w_size&&(s===0&&(te(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,m-n.w_size,n.w_size,0),t=p,m=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=m,e.next_in=0,e.input=t,oe(n);n.lookahead>=C;){for(r=n.strstart,a=n.lookahead-(C-1);n.ins_h=(n.ins_h<>>=b=y>>>24,m-=b,(b=y>>>16&255)==0)E[a++]=65535&y;else{if(!(16&b)){if(!(64&b)){y=h[(65535&y)+(p&(1<>>=b,m-=b),m<15&&(p+=T[r++]<>>=b=y>>>24,m-=b,!(16&(b=y>>>16&255))){if(!(64&b)){y=g[(65535&y)+(p&(1<>>=b,m-=b,(b=a-o)>3,p&=(1<<(m-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(m),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,_(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=a(n.check,oe,2,0),x=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg=`incorrect header check`,n.mode=30;break}if((15&b)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(x-=4,N=8+(15&(b>>>=4)),n.wbits===0)n.wbits=N;else if(N>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(oe[0]=255&b,oe[1]=b>>>8&255,n.check=a(n.check,oe,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<>>8&255,oe[2]=b>>>16&255,oe[3]=b>>>24&255,n.check=a(n.check,oe,4,0)),x=b=0,n.mode=4;case 4:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<>8),512&n.flags&&(oe[0]=255&b,oe[1]=b>>>8&255,n.check=a(n.check,oe,2,0)),x=b=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<>>8&255,n.check=a(n.check,oe,2,0)),x=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(E=n.length)&&(E=v),E&&(n.head&&(N=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,p,g,E,N)),512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(v===0)break e;for(E=0;N=p[g+ E++],n.head&&N&&n.length<65536&&(n.head.name+=String.fromCharCode(N)),N&&E>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(v===0)break e;v--,b+=p[g++]<>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,t!==6)break;b>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg=`invalid block type`,n.mode=30}b>>>=2,x-=2;break;case 14:for(b>>>=7&x,x-=7&x;x<32;){if(v===0)break e;v--,b+=p[g++]<>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=30;break}if(n.length=65535&b,x=b=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(E=n.length){if(v>>=5,x-=5,n.ndist=1+(31&b),b>>>=5,x-=5,n.ncode=4+(15&b),b>>>=4,x-=4,286>>=3,x-=3}for(;n.have<19;)n.lens[se[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,re={bits:n.lenbits},ne=s(0,n.lens,0,19,n.lencode,0,n.work,re),n.lenbits=re.bits,ne){e.msg=`invalid code lengths set`,n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,j=65535&ae,!((k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>>=k,x-=k,n.lens[n.have++]=j;else{if(j===16){for(ie=k+2;x>>=k,x-=k,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}N=n.lens[n.have-1],E=3+(3&b),b>>>=2,x-=2}else if(j===17){for(ie=k+3;x>>=k)),b>>>=3,x-=3}else{for(ie=k+7;x>>=k)),b>>>=7,x-=7}if(n.have+E>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=30;break}for(;E--;)n.lens[n.have++]=N}}if(n.mode===30)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=30;break}if(n.lenbits=9,re={bits:n.lenbits},ne=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,re),n.lenbits=re.bits,ne){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,re={bits:n.distbits},ne=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,re),n.distbits=re.bits,ne){e.msg=`invalid distances set`,n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,o(e,C),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;A=(ae=n.lencode[b&(1<>>16&255,j=65535&ae,!((k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>M)])>>>16&255,j=65535&ae,!(M+(k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,n.length=j,A===0){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg=`invalid literal/length code`,n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(ie=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(ae=n.distcode[b&(1<>>16&255,j=65535&ae,!((k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>M)])>>>16&255,j=65535&ae,!(M+(k=ae>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,64&A){e.msg=`invalid distance code`,n.mode=30;break}n.offset=j,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(ie=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=30;break}n.mode=25;case 25:if(y===0)break e;if(E=C-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break}D=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),O=n.window}else O=m,D=_-n.offset,E=n.length;for(yv?(b=re[ie+d[w]],ee[te+d[w]]):(b=96,0),p=1<>k)+(m-=p)]=y<<24|b<<16|x|0,m!==0;);for(p=1<>=1;if(p===0?M=0:(M&=p-1,M+=p),w++,--N[C]==0){if(C===E)break;C=t[n+d[w]]}if(D>>7)]}function re(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function ie(e,t,n){e.bi_valid>h-n?(e.bi_buf|=t<>h-e.bi_valid,e.bi_valid+=n-h):(e.bi_buf|=t<>>=1,n<<=1,0<--t;);return n>>>1}function se(e,t,n){var r,i,a=Array(m+1),o=0;for(r=1;r<=m;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];s!==0&&(e[2*i]=oe(a[s]++,s))}}function ce(e){var t;for(t=0;t>1;1<=n;n--)de(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],de(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,de(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,g=t.stat_desc.max_length,_=0;for(a=0;a<=m;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n>=7;r>>=1)if(1&n&&e.dyn_ltree[2*t]!==0)return i;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return a;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&t!==-1?ge(e,t,n,r):e.strategy===4||s===o?(ie(e,2+(r?1:0),3),fe(e,T,E)):(ie(e,4+(r?1:0),3),function(e,t,n,r){var i;for(ie(e,t-257,5),ie(e,n-1,5),ie(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+l+1)]++,e.dyn_dtree[2*ne(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){ie(e,2,3),ae(e,_,T),function(e){e.bi_valid===16?(re(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){(function(e,t){if(!e.setImmediate){var n,r,i,a,o=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n={}.toString.call(e.process)===`[object process]`?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}()?(a=`setImmediate$`+Math.random()+`$`,e.addEventListener?e.addEventListener(`message`,p,!1):e.attachEvent(`onmessage`,p),function(t){e.postMessage(a+t,`*`)}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):l&&`onreadystatechange`in l.createElement(`script`)?(r=l.documentElement,function(e){var t=l.createElement(`script`);t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),r=0;r`u`?e===void 0?this:e:self)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}]},{},[10])(10)})})),IRe=u(FRe());j9.zipReader=(e,t)=>IRe.default.loadAsync(e);const LRe=j9.createSettings;j9.createSettings=async e=>{let t=Object.keys(e.files);return t.find(e=>RRe(e))?LRe(e):VRe(t)};function RRe(e){return e.endsWith(`model3.json`)}function zRe(e){return e.endsWith(`.moc3`)}function BRe(e){return e.split(/[\\/]/).pop()}function VRe(e){let t=e.filter(e=>zRe(e));if(t.length!==1){let e=t.length?`(${t.map(e=>`"${e}"`).join(`,`)})`:``;throw Error(`Expected exactly one moc file, got ${t.length} ${e}`)}let n=t[0],r=BRe(n).replace(/\.moc3?/,``),i=e.filter(e=>e.endsWith(`.png`));if(!i.length)throw Error(`Textures not found`);let a=e.filter(e=>e.endsWith(`.mtn`)||e.endsWith(`.motion3.json`)),o=e.find(e=>e.includes(`physics`)),s=e.find(e=>e.includes(`pose`)),c=new M9({url:`${r}.model3.json`,Version:3,FileReferences:{Moc:n,Textures:i,Physics:o,Pose:s,Motions:a.length?{"":a.map(e=>({File:e}))}:void 0}});return c.name=r,c._objectURL=`example://${c.url}`,c}j9.readText=(e,t)=>{let n=e.file(t);if(!n)throw Error(`Cannot find file: ${t}`);return n.async(`text`)},j9.getFilePaths=e=>{let t=[];return e.forEach(e=>t.push(e)),Promise.resolve(t)},j9.getFiles=(e,t)=>Promise.all(t.map(async t=>{let n=t.slice(t.lastIndexOf(`/`)+1),r=await e.file(t).async(`blob`);return new File([r],n)}));let I9=function(e){return e.Live2dZip=`live2d-zip`,e.Live2dDirectory=`live2d-directory`,e.VRM=`vrm`,e.PMXZip=`pmx-zip`,e.PMXDirectory=`pmx-directory`,e.PMD=`pmd`,e}({});const L9=[{id:`preset-live2d-1`,format:I9.Live2dZip,type:`url`,url:`/assets/live2d/models/hiyori_pro_zh.zip`,name:`Hiyori (Pro)`,previewImage:`/assets/live2d/models/hiyori/preview.png`,importedAt:1733113886840},{id:`preset-live2d-2`,format:I9.Live2dZip,type:`url`,url:`/assets/live2d/models/hiyori_free_zh.zip`,name:`Hiyori (Free)`,previewImage:`/assets/live2d/models/hiyori/preview.png`,importedAt:1733113886840},{id:`preset-vrm-1`,format:I9.VRM,type:`url`,url:`/assets/vrm/models/AvatarSample-A/AvatarSample_A.vrm`,name:`AvatarSample_A`,previewImage:`/assets/vrm/models/AvatarSample-A/preview.png`,importedAt:1733113886840},{id:`preset-vrm-2`,format:I9.VRM,type:`url`,url:`/assets/vrm/models/AvatarSample-B/AvatarSample_B.vrm`,name:`AvatarSample_B`,previewImage:`/assets/vrm/models/AvatarSample-B/preview.png`,importedAt:1733113886840}],R9=VO(`display-models`,()=>{let e=F([]),t=F(!1);async function n(){await IT(t).toBe(!1),t.value=!0;let n=[...L9];try{await L3.default.iterate((e,t)=>{t.startsWith(`display-model-`)&&n.push({id:t,format:e.format,type:`file`,file:e.file,name:e.file.name,importedAt:e.importedAt,previewImage:e.previewImage})})}catch(e){console.error(e)}e.value=n.sort((e,t)=>t.importedAt-e.importedAt),t.value=!1}async function r(e){await IT(t).toBe(!1);let n=await L3.default.getItem(e);return n||L9.find(t=>t.id===e)}async function i(e){D9.registerTicker(X6),K6.add(Z6);let t=document.createElement(`canvas`);t.width=720,t.height=1280,t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.objectFit=`cover`,t.style.display=`block`,t.style.zIndex=`10000000000`,t.style.opacity=`0`,document.body.appendChild(t);let n=new e7({view:t,preserveDrawingBuffer:!0,backgroundAlpha:0,resizeTo:window}),r=new D9,i=URL.createObjectURL(e),a=await fetch(i),o=await a.blob();try{await S9.setupLive2DModel(r,[new File([o],e.name)],{autoInteract:!1})}catch(e){n.destroy(),document.body.removeChild(t),URL.revokeObjectURL(i),console.error(e);return}n.stage.addChild(r),r.x=275,r.y=450,r.width=t.width,r.height=t.height,r.scale.set(.1,.1),r.anchor.set(.5,.5),await new Promise(e=>setTimeout(e,500)),n.renderer.render(n.stage);let s=MFe(t),c=s.toDataURL();return n.destroy(),document.body.removeChild(t),URL.revokeObjectURL(i),c}async function a(n,r){await IT(t).toBe(!1);let a={id:`display-model-${t7()}`,format:n,type:`file`,file:r,name:r.name,importedAt:Date.now()};if(n===I9.Live2dZip){let e=await i(r);if(!e)return;a.previewImage=e}e.value.unshift(a),L3.default.setItem(a.id,a).catch(e=>console.error(e))}async function o(e,n){await IT(t).toBe(!1);let r=await L3.default.getItem(e);r&&(r.name=n)}async function s(n){await IT(t).toBe(!1),await L3.default.removeItem(n),e.value=e.value.filter(e=>e.id!==n)}return{displayModels:e,displayModelsFromIndexedDBLoading:t,loadDisplayModelsFromIndexedDB:n,getDisplayModel:r,addDisplayModel:a,renameDisplayModel:o,removeDisplayModel:s}}),z9={"zh-CN":`zh-Hans`,"zh-TW":`zh-Hans`,"zh-HK":`zh-Hans`,"zh-Hant":`zh-Hans`,"en-US":`en`,"en-GB":`en`,"en-AU":`en`,en:`en`,"es-ES":`es`,"es-MX":`es`,"es-AR":`es`,es:`es`,ru:`ru`,"ru-RU":`ru`},B9=220.44,HRe=PM(`oklch`),V9=e=>e?HRe(e)?.h:B9,H9=VO(`settings`,()=>{let e=R9(),t=dE(`settings/language`,``),n=dE(`settings/stage/model`,`preset-live2d-1`),r=F(),i=F(),a=F();async function o(){if(!n.value){i.value=void 0,r.value=void 0,a.value=`disabled`;return}let t=await e.getDisplayModel(n.value);if(!t){i.value=void 0,r.value=void 0,a.value=`disabled`;return}switch(t.format){case I9.Live2dZip:a.value=`live2d`;break;case I9.VRM:a.value=`vrm`;break;default:a.value=`disabled`;break}t.type===`file`?(i.value&&URL.revokeObjectURL(i.value),i.value=URL.createObjectURL(t.file)):i.value=t.url,r.value=t}async function s(){await o()}WT(`unload`,()=>{i.value&&URL.revokeObjectURL(i.value)});let c=F(!1),l=dE(`settings/live2d/disable-focus`,!1),u=dE(`settings/disable-transitions`,!0),d=dE(`settings/use-page-specific-transitions`,!0),f=dE(`settings/theme/colors/hue`,B9),p=dE(`settings/theme/colors/hue-dynamic`,!1),m=dE(`settings/allow-visible-on-all-workspaces`,!0);function h(){let e=localStorage.getItem(`settings/language`);e||=navigator.language||`en`;let t=Object.keys(I3);return z9[e||`en`]!=null&&(e=z9[e||`en`]),e&&t.includes(e)?e:`en`}function g(e=B9){f.value=e,p.value=!1}function _(e){g(V9(e))}function v(e){if(p.value)return!1;let t=V9(e);if(!t)return!1;let n=Math.abs(t-f.value);return n<.01||n>359.99}return fi(()=>t.value=h()),{disableTransitions:u,usePageSpecificTransitions:d,language:t,stageModelRenderer:a,stageModelSelected:n,stageModelSelectedUrl:i,stageModelSelectedDisplayModel:r,stageViewControlsEnabled:c,live2dDisableFocus:l,themeColorsHue:f,themeColorsHueDynamic:p,allowVisibleOnAllWorkspaces:m,setThemeColorsHue:g,applyPrimaryColorFrom:_,isColorSelectedForPrimary:v,initializeStageModel:s,updateStageModel:o}}),URe=VO(`settings-audio-devices`,()=>{let{audioInputs:e,deviceConstraints:t,selectedAudioInput:n,startStream:r,stopStream:i,stream:a,askPermission:o}=lje(),s=dE(`settings/audio/input`,n.value),c=dE(`settings/audio/input-enabled`,!1);return Ha(s,e=>{n.value=e}),Ha(c,e=>{e?r():i()}),fi(()=>{c.value&&s.value&&r(),n.value&&!c.value&&(s.value=n.value)}),{audioInputs:e,deviceConstraints:t,selectedAudioInput:s,enabled:c,stream:a,askPermission:o,startStream:r,stopStream:i}}),WRe={key:0,flex:``,"gap-2":``};var GRe=R({__name:`ColorPalette`,props:{colors:{}},setup(e){let t=H9();return(e,n)=>e.colors.length?(z(),B(`div`,WRe,[(z(!0),B(bo,null,Oi(e.colors,({hex:e,name:n})=>(z(),Ao(I(Nhe),{key:e||`default`},{default:L(()=>[H(I(Ihe),null,{default:L(()=>[H(I(Ghe),{transition:`all ease-in-out duration-250`,"size-8":``,"cursor-pointer":``,"rounded-full":``,"bg-primary-500":``,style:be(e?{background:e}:{"--chromatic-hue":I(B9)}),class:Te(I(t).isColorSelectedForPrimary(e)?`scale-120 md:scale-150 mx-1`:`hover:scale-110`),onClick:n=>I(t).applyPrimaryColorFrom(e)},null,8,[`style`,`class`,`onClick`]),H(I(Uhe),null,{default:L(()=>[H(I(Vhe),{bg:`white dark:neutral-800`,"rounded-lg":``,"px-3":``,"py-1.5":``,"text-sm":``,"shadow-md":``},{default:L(()=>[Lo(Pe(n)+` `,1),H(I(Ahe),{"fill-white":``,"dark:fill-neutral-800":``})]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))])):zo(``,!0)}}),KRe=GRe;const qRe=VO(`onboarding`,()=>{let e=T0(),t=dE(`onboarding/completed`,!1),n=dE(`onboarding/skipped`,!1),r=F(!1),i=U(()=>{let t=[`openai`,`anthropic`,`google-generative-ai`,`openrouter-ai`,`ollama`,`deepseek`,`openai-compatible`];return t.some(t=>e.configuredProviders[t])}),a=U(()=>t.value||n.value?(console.warn(`Onboarding already completed or skipped`),!1):i.value?(console.warn(`Essential provider already configured, no onboarding needed`),!1):!0);async function o(){a.value&&(await Gn(),r.value=!0)}function s(){t.value=!0,n.value=!1,r.value=!1}function c(){n.value=!0,r.value=!1}function l(){t.value=!1,n.value=!1,r.value=!1}function u(){r.value=!0}return{hasCompletedSetup:t,hasSkippedSetup:n,shouldShowSetup:r,hasEssentialProviderConfigured:i,needsOnboarding:a,initializeSetupCheck:o,markSetupCompleted:s,markSetupSkipped:c,resetSetupState:l,forceShowSetup:u}});var JRe=R({__name:`ArrowTransition`,props:{stageTransition:{default:()=>({primaryColor:`#666`,secondaryColor:`#ccc`})}},setup(e){let t=e,n=U(()=>t.stageTransition),r=U(()=>n.value.primaryColor||`#666`),i=U(()=>n.value.secondaryColor||`#ccc`);return fi(()=>{document.documentElement.style.setProperty(`--stage-transition-3-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-3-overlay-color-2`,i.value)}),(e,t)=>(z(),B(`div`,{class:`stage-transition-3`,style:be({zIndex:n.value.zIndex||100})},null,4))}}),YRe=CM(JRe,[[`__scopeId`,`data-v-17464329`]]),XRe=R({__name:`BubbleWaveOutTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition?.colors||[`#eee`,`#ebcb8b`,`#c56370`,`#3f3b52`]);return fi(()=>{document.documentElement.style.setProperty(`--circle-expansion-delay`,`${t.stageTransition?.delay||0}s`),document.documentElement.style.setProperty(`--circle-expansion-duration`,`${t.stageTransition?.duration||.4}s`),n.value.forEach((e,t)=>{document.documentElement.style.setProperty(`--circle-expansion-color-${t+1}`,e)})}),(e,t)=>(z(),B(`div`,{class:`circle-expansion-transition`,style:be({zIndex:e.stageTransition?.zIndex||100})},[(z(!0),B(bo,null,Oi(n.value,(e,t)=>(z(),B(`div`,{key:t}))),128))],4))}}),ZRe=CM(XRe,[[`__scopeId`,`data-v-4624be9e`]]),QRe=R({__name:`FantasyFallTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition?.direction||`up`),r=U(()=>`fantasy-fall-${n.value}`);return fi(()=>{document.documentElement.style.setProperty(`--fantasy-fall-color`,t.stageTransition?.primaryColor||`#eee`),document.documentElement.style.setProperty(`--fantasy-fall-duration`,`${t.stageTransition?.duration||.6}s`),document.documentElement.style.setProperty(`--fantasy-fall-delay`,`${t.stageTransition?.delay||0}s`),document.documentElement.style.setProperty(`--fantasy-fall-radius-sm`,`${t.stageTransition?.borderRadius?.sm||`14rem`}`),document.documentElement.style.setProperty(`--fantasy-fall-radius-md`,`${t.stageTransition?.borderRadius?.md||`14rem`}`),document.documentElement.style.setProperty(`--fantasy-fall-radius-lg`,`${t.stageTransition?.borderRadius?.lg||`50%`}`)}),(e,t)=>(z(),B(`div`,{class:Te([`fantasy-fall-transition`,r.value]),style:be({zIndex:e.stageTransition?.zIndex??100})},null,6))}}),$Re=CM(QRe,[[`__scopeId`,`data-v-826171f5`]]),eze=R({__name:`MultipleBlocksRevealTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition),r=U(()=>n.value?.primaryColor||`#666`),i=U(()=>n.value?.secondaryColor||`#ccc`);return fi(()=>{document.documentElement.style.setProperty(`--stage-transition-4-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-4-overlay-color-2`,i.value)}),(e,t)=>(z(),B(`div`,{class:`stage-transition-4`,style:be({zIndex:n.value?.zIndex??100})},[...t[0]||=[Ro(`
`,5)]],4))}}),tze=CM(eze,[[`__scopeId`,`data-v-4221f976`]]),nze=R({__name:`SlideTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition),r=U(()=>n.value?.primaryColor||`#666`),i=U(()=>n.value?.secondaryColor||`#ccc`);return Ha([n,r,i],()=>{document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-2`,i.value)}),fi(()=>{document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-2`,i.value)}),(e,t)=>(z(),B(`div`,{class:`stage-transition-1`,style:be({zIndex:n.value?.zIndex??100})},null,4))}}),rze=CM(nze,[[`__scopeId`,`data-v-81c0af14`]]),ize=R({__name:`SlopeSlideTransition`,props:{stageTransition:{}},setup(e){let t=e,n=U(()=>t.stageTransition),r=U(()=>n.value?.primaryColor??`#666`),i=U(()=>n.value?.secondaryColor??`#ccc`);return fi(()=>{document.documentElement.style.setProperty(`--stage-transition-2-overlay-color-1`,r.value),document.documentElement.style.setProperty(`--stage-transition-2-overlay-color-2`,i.value)}),(e,t)=>(z(),B(`div`,{class:`stage-transition-2`,style:be({zIndex:n.value?.zIndex??100})},null,4))}}),aze=CM(ize,[[`__scopeId`,`data-v-9e8b66c8`]]),oze=R({__name:`RectanglesRotateTransition`,props:{stageTransition:{}},setup(e){let t=e;return fi(()=>{document.documentElement.style.setProperty(`--rectangle-rotate-1-color`,t.stageTransition?.primaryColor||`#ebcb8b`),document.documentElement.style.setProperty(`--rectangle-rotate-2-color`,t.stageTransition?.secondaryColor||`#c56370`),document.documentElement.style.setProperty(`--rectangle-rotate-3-color`,t.stageTransition?.tertiaryColor||`#43445b`),document.documentElement.style.setProperty(`--rectangle-rotate-duration`,`${t.stageTransition?.duration||.6}s`),document.documentElement.style.setProperty(`--rectangle-rotate-delay`,`${t.stageTransition?.delay||0}s`),document.documentElement.style.setProperty(`--rectangle-rotate-stagger`,`${t.stageTransition?.staggerDelay||.1}s`),document.documentElement.style.setProperty(`--rectangle-rotate-rotation`,`${t.stageTransition?.rotation||270}deg`)}),(e,t)=>(z(),B(`div`,{class:`rectangle-rotate-transition`,style:be({zIndex:e.stageTransition?.zIndex??100})},[...t[0]||=[V(`div`,{class:`rectangle rectangle-rotate-1`},[V(`div`)],-1),V(`div`,{class:`rectangle rectangle-rotate-2`},[V(`div`)],-1),V(`div`,{class:`rectangle rectangle-rotate-3`},[V(`div`)],-1)]],4))}}),sze=CM(oze,[[`__scopeId`,`data-v-45ea2f7f`]]),cze=R({__name:`StageTransitionGroup`,props:{primaryColor:{},secondaryColor:{},tertiaryColor:{},colors:{},zIndex:{},disableTransitions:{type:Boolean},usePageSpecificTransitions:{type:Boolean}},setup(e){let t=e,n=Uk(),r=F(!1),i=F(),a=F(``),o=F(),s=fn({slide:{component:rze,duration:2700},"slope-slide":{component:aze,duration:2700},arrow:{component:YRe,duration:2700},"multiple-blocks-reveal":{component:tze,duration:2800},"fantasy-fall":{component:$Re,duration:2700},"rectangles-rotate":{component:sze,duration:2700},"bubble-wave-out":{component:ZRe,duration:1e3}}),c=F([]);function l(e){return c.value.push(e),()=>{let t=c.value.indexOf(e);t>=0&&c.value.splice(t,1)}}async function u(e,t={}){i.value=e;for(let n of c.value)try{await Promise.resolve(n(e,t))}catch(t){console.error(`Error in transition hook at stage "${e}":`,t)}}async function d(e,t,n){if(e.name===`none`||!e.name){t(),n();return}let i=s.value[e.name];if(!i){console.error(`Transition ${e.name} not found`),t(),n();return}let c=i.nextDelay===void 0?i.duration/3:i.nextDelay,d=!1,f=e=>{e===`navigation`&&!d&&(d=!0,t())},p=l(f);try{await u(`before-enter`,{transitionName:e.name}),r.value&&(await u(`before-leave`,{transitionName:a.value}),a.value=``,o.value=void 0,r.value=!1,await u(`after-leave`,{transitionName:a.value}),await new Promise(e=>setTimeout(e,50))),a.value=e.name,o.value=e,r.value=!0,await u(`enter-active`,{transitionName:name}),setTimeout(async()=>{await u(`navigation`,{transitionName:e.name,config:i}),d||(d=!0,t())},c),setTimeout(async()=>{await u(`after-enter`,{transitionName:e.name})},i.duration),setTimeout(async()=>{await u(`before-leave`,{transitionName:e.name})},i.duration+10),setTimeout(async()=>{await u(`leave-active`,{transitionName:e.name})},i.duration+20);let s=i.exitDuration??0;setTimeout(async()=>{r.value=!1,a.value=``,o.value=void 0,await u(`after-leave`,{transitionName:e.name}),n()},i.duration+s)}catch(e){console.error(e)}finally{p(),setTimeout(()=>{d||(d=!0,t())},i.duration*2)}}function f(e,t){return new Promise(n=>{d(e,t,n)})}return n.beforeEach((e,n,r)=>{if(t.disableTransitions){r();return}if(typeof e.meta.stageTransition!=`object`){r();return}let i=e.meta.stageTransition;if(t.usePageSpecificTransitions&&i.pageSpecificAvailable){r();return}t.primaryColor!==void 0&&(i.primaryColor=t.primaryColor),t.secondaryColor!==void 0&&(i.secondaryColor=t.secondaryColor),t.tertiaryColor!==void 0&&(i.tertiaryColor=t.tertiaryColor),t.colors!==void 0&&(i.colors=t.colors),t.zIndex!==void 0&&(i.zIndex=t.zIndex),f(i,r)}),(e,t)=>(z(),B(bo,null,[Ai(e.$slots,`default`),r.value?(z(),B(bo,{key:0},[s.value[a.value]?(z(),Ao(wi(s.value[a.value].component),{key:0,"stage-transition":o.value},null,8,[`stage-transition`])):zo(``,!0)],64)):zo(``,!0)],64))}}),lze=cze;let U9=1;var uze=class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{let{message:t,...n}=e,r=typeof e.id==`number`||e.id&&e.id?.length>0?e.id:U9++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e,type:`default`});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{a=[`resolve`,e];let r=jo(e);if(r)i=!1,this.create({id:n,type:`default`,message:e});else if(fze(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!jo(r),s=o?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...s})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!jo(r),s=o?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...s})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!jo(r),s=o?r:{message:r||``,id:n||``};this.create({id:n,type:`success`,description:a,...s})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!jo(r),s=o?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...s})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})};custom=(e,t)=>{let n=t?.id||U9++,r=this.toasts.find(e=>e.id===n),i=t?.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),r?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,component:e,dismissible:i,id:n,...t}),{...r,component:e,dismissible:i,id:n,...t}):r):this.addToast({component:e,dismissible:i,id:n,...t}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};const W9=new uze;function dze(e,t){let n=t?.id||U9++;return W9.create({message:e,id:n,type:`default`,...t}),n}const fze=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,pze=dze,mze=()=>W9.toasts,hze=()=>W9.getActiveToasts(),gze=Object.assign(pze,{success:W9.success,info:W9.info,warning:W9.warning,error:W9.error,custom:W9.custom,message:W9.message,promise:W9.promise,dismiss:W9.dismiss,loading:W9.loading},{getHistory:mze,getToasts:hze});function G9(e){return e.label!==void 0}const K9=`24px`,q9=`16px`,J9=4e3;function _ze(){let e=F(!1);return za(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function Y9(...e){return e.filter(Boolean).join(` `)}function vze(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function yze(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?q9:K9;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}const bze=[`data-rich-colors`,`data-styled`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-invert`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],xze=[`aria-label`,`data-disabled`];var Sze=R({__name:`Toast`,props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:[`update:heights`,`update:height`,`removeToast`],setup(e,{emit:t}){let n=e,r=t,i=F(null),a=F(null),o=F(!1),s=F(!1),c=F(!1),l=F(!1),u=F(!1),d=F(0),f=F(0),p=F(n.toast.duration||n.duration||J9),m=F(null),h=F(null),g=U(()=>n.index===0),_=U(()=>n.index+1<=n.visibleToasts),v=U(()=>n.toast.type),y=U(()=>n.toast.dismissible!==!1),b=U(()=>n.toast.class||``),x=U(()=>n.descriptionClass||``),S=U(()=>{let e=n.toast.position||n.position,t=n.heights.filter(t=>t.position===e),r=t.findIndex(e=>e.toastId===n.toast.id);return r>=0?r:0}),C=U(()=>{let e=n.toast.position||n.position,t=n.heights.filter(t=>t.position===e);return t.reduce((e,t,n)=>n>=S.value?e:e+t.height,0)}),w=U(()=>S.value*n.gap+C.value||0),T=U(()=>n.toast.closeButton??n.closeButton),E=U(()=>n.toast.duration||n.duration||J9),D=F(0),O=F(0),k=F(null),A=U(()=>n.position.split(`-`)),j=U(()=>A.value[0]),M=U(()=>A.value[1]),ee=U(()=>typeof n.toast.title!=`string`),te=U(()=>typeof n.toast.description!=`string`),{isDocumentHidden:N}=_ze(),ne=U(()=>v.value&&v.value===`loading`);fi(()=>{o.value=!0,p.value=E.value}),za(async()=>{if(!o.value||!h.value)return;await Gn();let e=h.value,t=e.style.height;e.style.height=`auto`;let i=e.getBoundingClientRect().height;e.style.height=t,f.value=i,r(`update:height`,{toastId:n.toast.id,height:i,position:n.toast.position||n.position})});function re(){s.value=!0,d.value=w.value,setTimeout(()=>{r(`removeToast`,n.toast)},200)}function ie(){if(ne.value||!y.value)return{};re(),n.toast.onDismiss?.(n.toast)}function ae(e){e.button!==2&&(ne.value||!y.value||(m.value=new Date,d.value=w.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(c.value=!0,k.value={x:e.clientX,y:e.clientY})))}function oe(){if(l.value||!y.value)return;k.value=null;let e=Number(h.value?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(h.value?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-(m.value?.getTime()||0),o=i.value===`x`?e:t,s=Math.abs(o)/r;if(Math.abs(o)>=45||s>.11){d.value=w.value,n.toast.onDismiss?.(n.toast),i.value===`x`?a.value=e>0?`right`:`left`:a.value=t>0?`down`:`up`,re(),l.value=!0;return}else h.value?.style.setProperty(`--swipe-amount-x`,`0px`),h.value?.style.setProperty(`--swipe-amount-y`,`0px`);u.value=!1,c.value=!1,i.value=null}function se(e){if(!k.value||!y.value)return;let t=window?.getSelection()?.toString()?.length??!1;if(t)return;let r=e.clientY-k.value.y,a=e.clientX-k.value.x,o=n.swipeDirections??vze(n.position);!i.value&&(Math.abs(a)>1||Math.abs(r)>1)&&(i.value=Math.abs(a)>Math.abs(r)?`x`:`y`);let s={x:0,y:0},c=e=>{let t=Math.abs(e)/20;return 1/(1.5+t)};if(i.value===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&r<0||o.includes(`bottom`)&&r>0)s.y=r;else{let e=r*c(r);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&(u.value=!0),h.value?.style.setProperty(`--swipe-amount-x`,`${s.x}px`),h.value?.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}fi(()=>{if(o.value=!0,!h.value)return;let e=h.value.getBoundingClientRect().height;f.value=e;let t=[{toastId:n.toast.id,height:e,position:n.toast.position},...n.heights];r(`update:heights`,t)}),hi(()=>{h.value&&r(`removeToast`,n.toast)}),za(e=>{if(n.toast.promise&&v.value===`loading`||n.toast.duration===1/0||n.toast.type===`loading`)return;let t,r=()=>{if(O.value{p.value!==1/0&&(D.value=new Date().getTime(),t=setTimeout(()=>{n.toast.onAutoClose?.(n.toast),re()},p.value))};n.expanded||n.interacting||N.value?r():i(),e(()=>{clearTimeout(t)})}),Ha(()=>n.toast.delete,e=>{e!==void 0&&e&&(re(),n.toast.onDismiss?.(n.toast))},{deep:!0});function ce(){c.value=!1,i.value=null,k.value=null}return(e,t)=>(z(),B(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:h,class:Te(I(Y9)(n.class,b.value,e.classes?.toast,e.toast.classes?.toast,e.classes?.[v.value],e.toast?.classes?.[v.value])),"data-sonner-toast":``,"data-rich-colors":e.toast.richColors??e.defaultRichColors,"data-styled":!(e.toast.component||e.toast?.unstyled||e.unstyled),"data-mounted":o.value,"data-promise":!!e.toast.promise,"data-swiped":u.value,"data-removed":s.value,"data-visible":_.value,"data-y-position":j.value,"data-x-position":M.value,"data-index":e.index,"data-front":g.value,"data-swiping":c.value,"data-dismissible":y.value,"data-type":v.value,"data-invert":e.toast.invert||e.invert,"data-swipe-out":l.value,"data-swipe-direction":a.value,"data-expanded":!!(e.expanded||e.expandByDefault&&o.value),"data-testid":e.toast.testId,style:be({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${s.value?d.value:w.value}px`,"--initial-height":e.expandByDefault?`auto`:`${f.value}px`,...e.style,...n.toast.style}),onDragend:ce,onPointerdown:ae,onPointerup:oe,onPointermove:se},[T.value&&!e.toast.component&&v.value!==`loading`?(z(),B(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":ne.value,"data-close-button":`true`,class:Te(I(Y9)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:ie},[e.icons?.close?(z(),Ao(wi(e.icons?.close),{key:0})):Ai(e.$slots,`close-icon`,{key:1})],10,xze)):zo(`v-if`,!0),e.toast.component?(z(),Ao(wi(e.toast.component),Uo({key:1},e.toast.componentProps,{onCloseToast:ie}),null,16)):(z(),B(bo,{key:2},[v.value!==`default`||e.toast.icon||e.toast.promise?(z(),B(`div`,{key:0,"data-icon":``,class:Te(I(Y9)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?(z(),Ao(wi(e.toast.icon),{key:0})):(z(),B(bo,{key:1},[v.value===`loading`?Ai(e.$slots,`loading-icon`,{key:0}):v.value===`success`?Ai(e.$slots,`success-icon`,{key:1}):v.value===`error`?Ai(e.$slots,`error-icon`,{key:2}):v.value===`warning`?Ai(e.$slots,`warning-icon`,{key:3}):v.value===`info`?Ai(e.$slots,`info-icon`,{key:4}):zo(`v-if`,!0)],64))],2)):zo(`v-if`,!0),V(`div`,{"data-content":``,class:Te(I(Y9)(e.classes?.content,e.toast?.classes?.content))},[V(`div`,{"data-title":``,class:Te(I(Y9)(e.classes?.title,e.toast.classes?.title))},[ee.value?(z(),Ao(wi(e.toast.title),Ee(Uo({key:0},e.toast.componentProps)),null,16)):(z(),B(bo,{key:1},[Lo(Pe(e.toast.title),1)],64))],2),e.toast.description?(z(),B(`div`,{key:0,"data-description":``,class:Te(I(Y9)(e.descriptionClass,x.value,e.classes?.description,e.toast.classes?.description))},[te.value?(z(),Ao(wi(e.toast.description),Ee(Uo({key:0},e.toast.componentProps)),null,16)):(z(),B(bo,{key:1},[Lo(Pe(e.toast.description),1)],64))],2)):zo(`v-if`,!0)],2),e.toast.cancel?(z(),B(`button`,{key:1,style:be(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:Te(I(Y9)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:t[0]||=t=>{I(G9)(e.toast.cancel)&&y.value&&(e.toast.cancel.onClick?.(t),re())}},Pe(I(G9)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):zo(`v-if`,!0),e.toast.action?(z(),B(`button`,{key:2,style:be(e.toast.actionButtonStyle||e.actionButtonStyle),class:Te(I(Y9)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:t[1]||=t=>{I(G9)(e.toast.action)&&(e.toast.action.onClick?.(t),!t.defaultPrevented&&re())}},Pe(I(G9)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):zo(`v-if`,!0)],64))],46,bze))}}),Cze=Sze,X9=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};const wze={},Tze={xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stoke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Eze(e,t){return z(),B(`svg`,Tze,t[0]||=[V(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),V(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var Dze=X9(wze,[[`render`,Eze]]);const Oze=[`data-visible`],kze={class:`sonner-spinner`};var Aze=R({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let t=Array(12).fill(0);return(e,n)=>(z(),B(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[V(`div`,kze,[(z(!0),B(bo,null,Oi(I(t),e=>(z(),B(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,Oze))}}),jze=Aze;const Mze={},Nze={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function Pze(e,t){return z(),B(`svg`,Nze,t[0]||=[V(`path`,{"fill-rule":`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,"clip-rule":`evenodd`},null,-1)])}var Fze=X9(Mze,[[`render`,Pze]]);const Ize={},Lze={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function Rze(e,t){return z(),B(`svg`,Lze,t[0]||=[V(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,"clip-rule":`evenodd`},null,-1)])}var zze=X9(Ize,[[`render`,Rze]]);const Bze={},Vze={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function Hze(e,t){return z(),B(`svg`,Vze,t[0]||=[V(`path`,{"fill-rule":`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,"clip-rule":`evenodd`},null,-1)])}var Uze=X9(Bze,[[`render`,Hze]]);const Wze={},Gze={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function Z9(e,t){return z(),B(`svg`,Gze,t[0]||=[V(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,"clip-rule":`evenodd`},null,-1)])}var Kze=X9(Wze,[[`render`,Z9]]);const qze=[`aria-label`],Jze=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],Yze=typeof window<`u`&&typeof document<`u`;function Xze(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}var Zze=R({name:`Toaster`,inheritAttrs:!1,__name:`Toaster`,props:{id:{},invert:{type:Boolean,default:!1},theme:{default:`light`},position:{default:`bottom-right`},hotkey:{default:()=>[`altKey`,`KeyT`]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:14},visibleToasts:{default:3},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:K9},mobileOffset:{default:q9},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let t=e,n=Ki(),r=F([]),i=U(()=>t.id?r.value.filter(e=>e.toasterId===t.id):r.value.filter(e=>!e.toasterId));function a(e,t){return i.value.filter(n=>!n.position&&t===0||n.position===e)}let o=U(()=>{let e=i.value.filter(e=>e.position).map(e=>e.position);return e.length>0?Array.from(new Set([t.position].concat(e))):[t.position]}),s=U(()=>{let e={};return o.value.forEach(t=>{e[t]=r.value.filter(e=>e.position===t)}),e}),c=F([]),l=F({}),u=F(!1);za(()=>{o.value.forEach(e=>{e in l.value||(l.value[e]=!1)})});let d=F(t.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t.theme),f=F(null),p=F(null),m=F(!1),h=t.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function g(e){r.value.find(t=>t.id===e.id)?.delete||W9.dismiss(e.id),r.value=r.value.filter(({id:t})=>t!==e.id),setTimeout(()=>{r.value.find(t=>t.id===e.id)||(c.value=c.value.filter(t=>t.toastId!==e.id))},250)}function _(e){m.value&&!e.currentTarget?.contains?.(e.relatedTarget)&&(m.value=!1,p.value&&=(p.value.focus({preventScroll:!0}),null))}function v(e){let t=e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`;t||m.value||(m.value=!0,p.value=e.relatedTarget)}function y(e){if(e.target){let t=e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`;if(t)return}u.value=!0}za(e=>{let t=W9.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{r.value=r.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}Gn(()=>{let t=r.value.findIndex(t=>t.id===e.id);t===-1?r.value=[e,...r.value]:r.value=[...r.value.slice(0,t),{...r.value[t],...e},...r.value.slice(t+1)]})});e(t)}),za(e=>{if(typeof window>`u`)return;if(t.theme!==`system`){d.value=t.theme;return}let n=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{d.value=e?`dark`:`light`};r(n.matches);let i=e=>{r(e.matches)};try{n.addEventListener(`change`,i)}catch{n.addListener(i)}e(()=>{try{n.removeEventListener(`change`,i)}catch{n.removeListener(i)}})}),za(()=>{f.value&&p.value&&(p.value.focus({preventScroll:!0}),p.value=null,m.value=!1)}),za(()=>{r.value.length<=1&&Object.keys(l.value).forEach(e=>{l.value[e]=!1})}),za(e=>{function n(e){let n=t.hotkey.every(t=>e[t]||e.code===t),r=Array.isArray(f.value)?f.value[0]:f.value;n&&(o.value.forEach(e=>{l.value[e]=!0}),r?.focus());let i=document.activeElement===f.value||r?.contains(document.activeElement);e.code===`Escape`&&i&&o.value.forEach(e=>{l.value[e]=!1})}Yze&&(document.addEventListener(`keydown`,n),e(()=>{document.removeEventListener(`keydown`,n)}))});function b(e){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!0}function x(e){if(!u.value){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!1}}function S(){Object.keys(l.value).forEach(e=>{l.value[e]=!1})}function C(){u.value=!1}function w(e){c.value=e}function T(e){let t=c.value.findIndex(t=>t.toastId===e.toastId);if(t!==-1)c.value[t]=e;else{let t=c.value.findIndex(t=>t.position===e.position);t===-1?c.value.unshift(e):c.value.splice(t,0,e)}}return(e,r)=>(z(),B(bo,null,[zo(` Remove item from normal navigation flow, only available via hotkey `),V(`section`,{"aria-label":`${e.containerAriaLabel} ${I(h)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[(z(!0),B(bo,null,Oi(o.value,(r,i)=>(z(),B(`ol`,Uo({key:r,ref_for:!0,ref_key:`listRef`,ref:f,"data-sonner-toaster":``,"data-sonner-theme":d.value,class:t.class,dir:e.dir===`auto`?Xze():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":r.split(`-`)[0],"data-x-position":r.split(`-`)[1],style:{"--front-toast-height":`${c.value[0]?.height||0}px`,"--width":`${I(356)}px`,"--gap":`${e.gap}px`,...e.style,...I(n).style,...I(yze)(e.offset,e.mobileOffset)}},{ref_for:!0},e.$attrs,{onBlur:_,onFocus:v,onMouseenter:b,onMousemove:b,onMouseleave:x,onDragend:S,onPointerdown:y,onPointerup:C}),[(z(!0),B(bo,null,Oi(a(r,i),(n,i)=>(z(),Ao(Cze,{key:n.id,heights:c.value,icons:e.icons,index:i,toast:n,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:Te(e.toastOptions?.class??``),descriptionClass:e.toastOptions?.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:e.toastOptions?.closeButton??e.closeButton,interacting:u.value,position:r,style:be(e.toastOptions?.style),unstyled:e.toastOptions?.unstyled,classes:e.toastOptions?.classes,cancelButtonStyle:e.toastOptions?.cancelButtonStyle,actionButtonStyle:e.toastOptions?.actionButtonStyle,"close-button-aria-label":e.toastOptions?.closeButtonAriaLabel,toasts:s.value[r],expandByDefault:e.expand,gap:e.gap,expanded:l.value[r]||!1,swipeDirections:t.swipeDirections,"onUpdate:heights":w,"onUpdate:height":T,onRemoveToast:g},{"close-icon":L(()=>[Ai(e.$slots,`close-icon`,{},()=>[H(Dze)])]),"loading-icon":L(()=>[Ai(e.$slots,`loading-icon`,{},()=>[H(jze,{visible:n.type===`loading`},null,8,[`visible`])])]),"success-icon":L(()=>[Ai(e.$slots,`success-icon`,{},()=>[H(Fze)])]),"error-icon":L(()=>[Ai(e.$slots,`error-icon`,{},()=>[H(Kze)])]),"warning-icon":L(()=>[Ai(e.$slots,`warning-icon`,{},()=>[H(Uze)])]),"info-icon":L(()=>[Ai(e.$slots,`info-icon`,{},()=>[H(zze)])]),_:2},1032,[`heights`,`icons`,`index`,`toast`,`defaultRichColors`,`duration`,`class`,`descriptionClass`,`invert`,`visibleToasts`,`closeButton`,`interacting`,`position`,`style`,`unstyled`,`classes`,`cancelButtonStyle`,`actionButtonStyle`,`close-button-aria-label`,`toasts`,`expandByDefault`,`gap`,`expanded`,`swipeDirections`]))),128))],16,Jze))),128))],8,qze)],2112))}}),Qze=Zze;const $ze=VO(`pwa`,()=>{F([]);let e=QT(ZT);e.smaller(`md`),fi(async()=>{})});var eBe=R({__name:`App`,setup(e){$ze();let t=K1(),n=R9(),r=H9(),i=HO(r),a=qRe(),{shouldShowSetup:o}=HO(a),s=sE(),c=U(()=>s.value?`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 0)) 70%, oklch(50% 0 360))`:`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 0)) 90%, oklch(90% 0 360))`),l=U(()=>s.value?`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 180)) 70%, oklch(50% 0 360))`:`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 180)) 90%, oklch(90% 0 360))`),u=U(()=>s.value?`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 60)) 70%, oklch(50% 0 360))`:`color-mix(in srgb, oklch(95% var(--chromatic-chroma-900) calc(var(--chromatic-hue) + 60)) 90%, oklch(90% 0 360))`),d=U(()=>[c.value,l.value,u.value,s.value?`#121212`:`#FFFFFF`]);Ha(i.language,()=>{t.locale.value=i.language.value}),Ha(i.themeColorsHue,()=>{document.documentElement.style.setProperty(`--chromatic-hue`,i.themeColorsHue.value.toString())},{immediate:!0}),Ha(i.themeColorsHueDynamic,()=>{document.documentElement.classList.toggle(`dynamic-hue`,i.themeColorsHueDynamic.value)},{immediate:!0}),fi(async()=>{a.initializeSetupCheck(),await n.loadDisplayModelsFromIndexedDB(),await r.initializeStageModel()});function f(){a.markSetupCompleted()}function p(){a.markSetupSkipped()}return(e,t)=>(z(),B(bo,null,[H(I(lze),{"primary-color":c.value,"secondary-color":l.value,"tertiary-color":u.value,colors:d.value,"z-index":100,"disable-transitions":I(i).disableTransitions.value,"use-page-specific-transitions":I(i).usePageSpecificTransitions.value},{default:L(()=>[H(I(Hk),null,{default:L(({Component:e})=>[(z(),Ao(ni,{include:/IndexScenePage|StageScenePage/},[(z(),Ao(wi(e)))],1024))]),_:1})]),_:1},8,[`primary-color`,`secondary-color`,`tertiary-color`,`colors`,`disable-transitions`,`use-page-specific-transitions`]),H(I(YNe),{onClose:t[0]||=e=>I(gze).dismiss(e)},{default:L(()=>[H(I(Qze))]),_:1}),H(I(KNe),{modelValue:I(o),"onUpdate:modelValue":t[1]||=e=>dn(o)?o.value=e:null,onConfigured:f,onSkipped:p},null,8,[`modelValue`])],64))}}),tBe=eBe;const Q9={"zh-CN":`zh-Hans`,"zh-TW":`zh-Hant`,"zh-HK":`zh-Hans`,"zh-Hant":`zh-Hans`,"en-US":`en`,"en-GB":`en`,"en-AU":`en`,en:`en`,"es-ES":`es`,"es-MX":`es`,"es-AR":`es`,es:`es`,vi:`vi`,"vi-VN":`vi`,ru:`ru`,"ru-RU":`ru`};function nBe(){let e=localStorage.getItem(`settings/language`);e||=navigator.language||`en`;let t=Object.keys(I3);return Q9[e||`en`]!=null&&(e=Q9[e||`en`]),e&&t.includes(e)?e:`en`}const rBe=VOe({legacy:!1,locale:nBe(),fallbackLocale:`en`,messages:I3}),iBe=Rue(),aBe=Gue(Yde);let $9;$9=qde({routes:aBe,history:Cde()}),$9.beforeEach((e,t)=>{e.path!==t.path&&tw.default.start()}),$9.afterEach(()=>{tw.default.done()}),$9.isReady().then(async()=>{}).catch(()=>{}),rl(tBe).use(Aue).use(Yw).use($9).use(iBe).use(rBe).use($C).mount(`#app`);export{k0 as $,q3 as A,_Ne as B,fNe as C,P3 as D,N3 as E,j3 as F,O3 as G,v3 as H,m3 as I,$4 as J,yMe as K,Q4 as L,H4 as M,qje as N,Mje as O,V4 as P,uje as Q,aje as R,ije as S,B4 as T,$Ae as U,L4 as V,I4 as W,Hke as X,M0 as Y,j0 as Z,A0 as _,bM as a$,O0 as a1,D0 as a2,E0 as a3,T0 as a4,m0 as a5,p0 as a6,n0 as a7,i0 as a8,a0 as a9,yz as aA,_z as aB,QR as aC,XR as aD,KR as aE,qR as aF,HR as aG,GR as aH,WR as aI,LR as aJ,OR as aK,bR as aL,uR as aM,tR as aN,qL as aO,SL as aP,rve as aQ,i_e as aR,EM as aS,Zge as aT,Jge as aU,Gge as aV,TM as aW,wM as aX,CM as aY,Sge as aZ,SM as a_,o0 as aa,s0 as ab,c0 as ac,l0 as ad,K1 as ae,cDe as af,UQ as ag,WQ as ah,GQ as ai,HQ as aj,GEe as ak,UEe as al,VEe as am,zEe as an,kQ as ao,AEe as ap,sEe as aq,OQ as ar,DQ as as,zTe as at,kTe as au,wTe as av,RB as aw,Pz as ax,Oz as ay,Tz as az,KRe as b,XT as b$,yM as b0,sM as b1,cM as b2,tj as b3,ej as b4,QA as b5,XA as b6,$fe as b7,epe as b8,ipe as b9,hA as bA,lA as bB,sA as bC,oA as bD,iA as bE,nA as bF,tA as bG,$k as bH,Yk as bI,Jk as bJ,Rk as bK,Hk as bL,Wk as bM,Uk as bN,G as bO,VO as bP,HO as bQ,ZT as bR,QT as bS,$T as bT,Gse as bU,sE as bV,cE as bW,uE as bX,tce as bY,dE as bZ,rce as b_,YA as ba,qA as bb,KA as bc,GA as bd,WA as be,UA as bf,Ife as bg,Pfe as bh,BA as bi,zA as bj,Lfe as bk,VA as bl,Bfe as bm,zfe as bn,RA as bo,AA as bp,OA as bq,DA as br,TA as bs,wA as bt,CA as bu,SA as bv,bA as bw,vA as bx,_A as by,gA as bz,H9 as c,Xv as c$,ace as c0,oce as c1,eE as c2,cce as c3,lE as c4,_E as c5,lce as c6,DT as c7,kT as c8,NT as c9,$p as cA,Gh as cB,Ste as cC,ml as cD,ry as cE,$f as cF,Sd as cG,Yy as cH,wte as cI,Gm as cJ,xv as cK,cp as cL,Rl as cM,Kh as cN,Rv as cO,_te as cP,Ku as cQ,Dte as cR,vf as cS,Xu as cT,hv as cU,xp as cV,Ol as cW,hte as cX,yy as cY,sm as cZ,kl as c_,IT as ca,ET as cb,$w as cc,aC as cd,dC as ce,QC as cf,CC as cg,SC as ch,Ax as ci,yx as cj,zx as ck,rx as cl,mb as cm,eb as cn,Cte as co,yte as cp,Tte as cq,ov as cr,_y as cs,Jy as ct,gte as cu,Iu as cv,Wm as cw,Id as cx,fp as cy,kp as cz,URe as d,Qp as d$,yv as d0,Jm as d1,th as d2,pm as d3,hm as d4,J_ as d5,Tu as d6,Eu as d7,Hv as d8,Ah as d9,Ete as dA,vte as dB,zu as dC,tv as dD,Pf as dE,Iv as dF,rm as dG,rh as dH,Fv as dI,Vh as dJ,Ih as dK,hy as dL,ld as dM,rv as dN,mte as dO,Lu as dP,Il as dQ,Vl as dR,k_ as dS,lf as dT,xy as dU,zl as dV,xte as dW,pl as dX,Bu as dY,Uu as dZ,fm as d_,Sh as da,Fh as db,Ph as dc,yl as dd,xl as de,bl as df,Vu as dg,bte as dh,fv as di,Wv as dj,uv as dk,ll as dl,np as dm,sd as dn,fd as do,uf as dp,Vp as dq,rp as dr,I_ as ds,P_ as dt,j_ as du,A_ as dv,hl as dw,gl as dx,vl as dy,_l as dz,I9 as e,L as e$,qm as e0,Um as e1,$d as e2,wy as e3,Vv as e4,Av as e5,ul as e6,Ru as e7,Ad as e8,Sv as e9,V as eA,Ao as eB,zo as eC,B as eD,ki as eE,Lo as eF,H as eG,R as eH,Fo as eI,fs as eJ,da as eK,Yi as eL,Xi as eM,Uo as eN,Gn as eO,fi as eP,gi as eQ,z as eR,ua as eS,Oi as eT,Ai as eU,Si as eV,Ti as eW,Ka as eX,Rr as eY,Ha as eZ,za as e_,Fu as ea,Pu as eb,Nu as ec,vy as ed,Yp as ee,Sl as ef,Ml as eg,Dl as eh,cd as ei,W as ej,jd as ek,av as el,Ju as em,om as en,Nd as eo,Fs as ep,zc as eq,Hc as er,Rc as es,$s as et,Xc as eu,Yc as ev,bo as ew,ni as ex,co as ey,U as ez,R9 as f,cr as f0,dn as f1,F as f2,fn as f3,sn as f4,vn as f5,_n as f6,I as f7,Te as f8,Ee as f9,be as fa,Pe as fb,s as fc,o as fd,c as fe,p as ff,d as fg,f as fh,u as fi,S9 as g,D9 as h,o9 as i,t7 as j,e7 as k,w5 as l,L8 as m,dLe as n,Q6 as o,r8 as p,e8 as q,X6 as r,Z6 as s,K6 as t,k6 as u,ZFe as v,b6 as w,V3 as x,Z3 as y,Y3 as z}; \ No newline at end of file diff --git a/assets/index-tts-vllm-DiOOxY2G.js b/assets/index-tts-vllm-BRY6l5rd.js similarity index 52% rename from assets/index-tts-vllm-DiOOxY2G.js rename to assets/index-tts-vllm-BRY6l5rd.js index 9aec2b05a36dbf98bc61e10436ac28453e4f825f..8f9f239e2d519f72fb7af2fc5f218c3e1d66a244 100644 --- a/assets/index-tts-vllm-DiOOxY2G.js +++ b/assets/index-tts-vllm-BRY6l5rd.js @@ -1 +1 @@ -import{K as e,L as t,O as n,a4 as r,bP as i,eA as a,eF as o,eG as s,eQ as c,eY as l,e_ as u,ey as d,f6 as f}from"./index-DEhol03r.js";import{b as p}from"./route-block-Dc_s4AGN.js";const m=`index-tts-vllm`,h=`IndexTTS-1.5`;var g=s({__name:`index-tts-vllm`,setup(s){let p=t(),g=r(),{providers:_}=i(g),v=d(()=>p.availableVoices[m]||[]);async function y(e,t,n){let r=await g.getProviderInstance(m);if(!r)throw Error(`Failed to initialize speech provider`);let i=g.getProviderConfig(m),a=i.model||h;return await p.speech(r,a,e,t,{...i})}return l([_],async()=>{let e=g.getProviderConfig(m),t=g.getProviderMetadata(m);await t.validators.validateProviderConfig(e)?await p.loadVoicesForProvider(m):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(t,r)=>(c(),a(f(e),{"provider-id":m,"default-model":h},{playground:u(()=>[o(f(n),{"available-voices":v.value,"generate-speech":y,"api-key-configured":!0,"default-text":`Hello! This is a test of the Index TTS voice synthesis.`},null,8,[`available-voices`])]),_:1}))}});typeof p==`function`&&p(g);var _=g;export{_ as default}; \ No newline at end of file +import{K as e,L as t,O as n,a4 as r,bQ as i,e$ as a,eB as o,eG as s,eH as c,eR as l,eZ as u,ez as d,f7 as f}from"./index-D3Bcbz9S.js";import{b as p}from"./route-block-Dc_s4AGN.js";const m=`index-tts-vllm`,h=`IndexTTS-1.5`;var g=c({__name:`index-tts-vllm`,setup(c){let p=t(),g=r(),{providers:_}=i(g),v=d(()=>p.availableVoices[m]||[]);async function y(e,t,n){let r=await g.getProviderInstance(m);if(!r)throw Error(`Failed to initialize speech provider`);let i=g.getProviderConfig(m),a=i.model||h;return await p.speech(r,a,e,t,{...i})}return u([_],async()=>{let e=g.getProviderConfig(m),t=g.getProviderMetadata(m);await t.validators.validateProviderConfig(e)?await p.loadVoicesForProvider(m):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(t,r)=>(l(),o(f(e),{"provider-id":m,"default-model":h},{playground:a(()=>[s(f(n),{"available-voices":v.value,"generate-speech":y,"api-key-configured":!0,"default-text":`Hello! This is a test of the Index TTS voice synthesis.`},null,8,[`available-voices`])]),_:1}))}});typeof p==`function`&&p(g);var _=g;export{_ as default}; \ No newline at end of file diff --git a/assets/lm-studio-BlGolAfa.js b/assets/lm-studio-CvN0s9DC.js similarity index 67% rename from assets/lm-studio-BlGolAfa.js rename to assets/lm-studio-CvN0s9DC.js index 2d39ab0f68e4f662d3aa4c97177a8248a1f5ad91..b191fccc9311e2ba0082a2ace58cdce19c98f21a 100644 --- a/assets/lm-studio-BlGolAfa.js +++ b/assets/lm-studio-CvN0s9DC.js @@ -1 +1 @@ -import{X as e,Y as t,Z as n,_ as r,a1 as i,a4 as a,aY as o,ae as s,as as c,bM as l,bP as u,eA as d,eB as f,eC as p,eD as m,eE as h,eF as g,eG as _,eO as v,eQ as y,eY as b,e_ as x,ev as S,ey as C,ez as w,f1 as T,f6 as E,fa as D}from"./index-DEhol03r.js";import{b as O}from"./route-block-Dc_s4AGN.js";const k={class:`whitespace-pre-wrap break-all`},A=`lm-studio`;var j=_({__name:`lm-studio`,setup(_){let{t:O}=s(),j=l(),M=a(),{providers:N}=u(M),P=C(()=>M.getProviderMetadata(A)),F=T(``),I=C({get:()=>N.value[A]?.baseUrl||P.value?.defaultOptions?.().baseUrl||``,set:e=>{N.value[A]||(N.value[A]={}),N.value[A].baseUrl=e}}),L=T(Object.entries(N.value[A]?.headers||{}).map(([e,t])=>({key:e,value:t}))||[{key:``,value:``}]);function R(e,t,n){e&&e.push({key:t,value:n})}function z(e,t){t&&(t.length===1?(t[0].key=``,t[0].value=``):t.splice(e,1))}b(L,e=>{e.length>0&&(e[e.length-1].key!==``||e[e.length-1].value!==``)&&e.push({key:``,value:``}),N.value[A].headers=e.filter(e=>e.key!==``).reduce((e,t)=>(e[t.key]=t.value,e),{})},{deep:!0,immediate:!0});async function B(){try{let e=await P.value.validators.validateProviderConfig({baseUrl:I.value,headers:L.value.filter(e=>e.key!==``).reduce((e,t)=>(e[t.key]=t.value,e),{})});e.valid||(F.value=O(`settings.dialogs.onboarding.validationError`,{error:e.reason}))}catch(e){F.value=O(`settings.dialogs.onboarding.validationError`,{error:e instanceof Error?e.message:String(e)})}}b([I,L],B,{immediate:!0}),b(L,B,{deep:!0}),v(()=>{M.initializeProvider(A),I.value=N.value[A]?.baseUrl||P.value?.defaultOptions?.().baseUrl||``,N.value[A]?.headers||(N.value[A].headers={}),L.value.length===0&&(L.value=[{key:``,value:``}])});function V(){N.value[A]={...P.value?.defaultOptions?.()||{}}}return(a,s)=>(y(),p(S,null,[F.value?(y(),d(E(c),{key:0,type:`error`},m({title:x(()=>[h(D(E(O)(`settings.dialogs.onboarding.validationFailed`)),1)]),_:2},[F.value?{name:`content`,fn:x(()=>[w(`div`,k,D(F.value),1)]),key:`0`}:void 0]),1024)):f(``,!0),g(E(e),{"provider-name":P.value?.localizedName,"provider-icon":P.value?.icon,"on-back":()=>E(j).back()},{default:x(()=>[g(E(t),null,{default:x(()=>[g(E(n),{title:E(O)(`settings.pages.providers.common.section.basic.title`),description:E(O)(`settings.pages.providers.common.section.basic.description`),"on-reset":V},{default:x(()=>[g(E(r),{modelValue:I.value,"onUpdate:modelValue":s[0]||=e=>I.value=e,placeholder:P.value?.defaultOptions?.().baseUrl||``,required:``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`title`,`description`]),g(E(i),{title:E(O)(`settings.pages.providers.common.section.advanced.title`)},{default:x(()=>[g(E(o),{modelValue:L.value,"onUpdate:modelValue":s[1]||=e=>L.value=e,label:E(O)(`settings.pages.providers.common.section.advanced.fields.field.headers.label`),description:E(O)(`settings.pages.providers.common.section.advanced.fields.field.headers.description`),"key-placeholder":E(O)(`settings.pages.providers.common.section.advanced.fields.field.headers.key.placeholder`),"value-placeholder":E(O)(`settings.pages.providers.common.section.advanced.fields.field.headers.value.placeholder`),onAdd:s[2]||=(e,t)=>R(L.value,e,t),onRemove:s[3]||=e=>z(e,L.value)},null,8,[`modelValue`,`label`,`description`,`key-placeholder`,`value-placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`])],64))}});typeof O==`function`&&O(j);var M=j;export{M as default}; \ No newline at end of file +import{X as e,Y as t,Z as n,_ as r,a1 as i,a4 as a,aZ as o,ae as s,as as c,bN as l,bQ as u,e$ as d,eA as f,eB as p,eC as m,eD as h,eE as g,eF as _,eG as v,eH as y,eP as b,eR as x,eZ as S,ew as C,ez as w,f2 as T,f7 as E,fb as D}from"./index-D3Bcbz9S.js";import{b as O}from"./route-block-Dc_s4AGN.js";const k={class:`whitespace-pre-wrap break-all`},A=`lm-studio`;var j=y({__name:`lm-studio`,setup(y){let{t:O}=s(),j=l(),M=a(),{providers:N}=u(M),P=w(()=>M.getProviderMetadata(A)),F=T(``),I=w({get:()=>N.value[A]?.baseUrl||P.value?.defaultOptions?.().baseUrl||``,set:e=>{N.value[A]||(N.value[A]={}),N.value[A].baseUrl=e}}),L=T(Object.entries(N.value[A]?.headers||{}).map(([e,t])=>({key:e,value:t}))||[{key:``,value:``}]);function R(e,t,n){e&&e.push({key:t,value:n})}function z(e,t){t&&(t.length===1?(t[0].key=``,t[0].value=``):t.splice(e,1))}S(L,e=>{e.length>0&&(e[e.length-1].key!==``||e[e.length-1].value!==``)&&e.push({key:``,value:``}),N.value[A].headers=e.filter(e=>e.key!==``).reduce((e,t)=>(e[t.key]=t.value,e),{})},{deep:!0,immediate:!0});async function B(){try{let e=await P.value.validators.validateProviderConfig({baseUrl:I.value,headers:L.value.filter(e=>e.key!==``).reduce((e,t)=>(e[t.key]=t.value,e),{})});e.valid||(F.value=O(`settings.dialogs.onboarding.validationError`,{error:e.reason}))}catch(e){F.value=O(`settings.dialogs.onboarding.validationError`,{error:e instanceof Error?e.message:String(e)})}}S([I,L],B,{immediate:!0}),S(L,B,{deep:!0}),b(()=>{M.initializeProvider(A),I.value=N.value[A]?.baseUrl||P.value?.defaultOptions?.().baseUrl||``,N.value[A]?.headers||(N.value[A].headers={}),L.value.length===0&&(L.value=[{key:``,value:``}])});function V(){N.value[A]={...P.value?.defaultOptions?.()||{}}}return(a,s)=>(x(),h(C,null,[F.value?(x(),p(E(c),{key:0,type:`error`},g({title:d(()=>[_(D(E(O)(`settings.dialogs.onboarding.validationFailed`)),1)]),_:2},[F.value?{name:`content`,fn:d(()=>[f(`div`,k,D(F.value),1)]),key:`0`}:void 0]),1024)):m(``,!0),v(E(e),{"provider-name":P.value?.localizedName,"provider-icon":P.value?.icon,"on-back":()=>E(j).back()},{default:d(()=>[v(E(t),null,{default:d(()=>[v(E(n),{title:E(O)(`settings.pages.providers.common.section.basic.title`),description:E(O)(`settings.pages.providers.common.section.basic.description`),"on-reset":V},{default:d(()=>[v(E(r),{modelValue:I.value,"onUpdate:modelValue":s[0]||=e=>I.value=e,placeholder:P.value?.defaultOptions?.().baseUrl||``,required:``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`title`,`description`]),v(E(i),{title:E(O)(`settings.pages.providers.common.section.advanced.title`)},{default:d(()=>[v(E(o),{modelValue:L.value,"onUpdate:modelValue":s[1]||=e=>L.value=e,label:E(O)(`settings.pages.providers.common.section.advanced.fields.field.headers.label`),description:E(O)(`settings.pages.providers.common.section.advanced.fields.field.headers.description`),"key-placeholder":E(O)(`settings.pages.providers.common.section.advanced.fields.field.headers.key.placeholder`),"value-placeholder":E(O)(`settings.pages.providers.common.section.advanced.fields.field.headers.value.placeholder`),onAdd:s[2]||=(e,t)=>R(L.value,e,t),onRemove:s[3]||=e=>z(e,L.value)},null,8,[`modelValue`,`label`,`description`,`key-placeholder`,`value-placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`])],64))}});typeof O==`function`&&O(j);var M=j;export{M as default}; \ No newline at end of file diff --git a/assets/memory-BFWaJKIi.js b/assets/memory-BFWaJKIi.js deleted file mode 100644 index 4cb0f81f9f0bc5eb0a618297742df97f1ce333c9..0000000000000000000000000000000000000000 --- a/assets/memory-BFWaJKIi.js +++ /dev/null @@ -1 +0,0 @@ -import{az as e,e$ as t,eC as n,eE as r,eF as i,eG as a,eQ as o,eV as s,e_ as c,ev as l,ez as u,f6 as d}from"./index-DEhol03r.js";import{b as f}from"./route-block-Dc_s4AGN.js";const p={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:15},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var m=a({__name:`index`,setup(a){return(a,f)=>{let m=s(`motion`);return o(),n(l,null,[u(`div`,null,[i(d(e),{label:`In development, needs your help!`,theme:`orange`},{default:c(()=>[...f[0]||=[u(`div`,null,[r(` This functionality is still under development. If you have any suggestions or would like to contribute, please reach out to us on our `),u(`a`,{underline:``,"decoration-dotted":``,href:`https://github.com/moeru-ai/airi/issues`},`GitHub issues page`),r(`. The source code of this page is located at `),u(`a`,{underline:``,"decoration-dotted":``,href:`https://github.com/moeru-ai/airi/tree/main/apps/stage-web/src/pages/settings/memory/index.vue`},`here`),r(`. `)],-1)]]),_:1})]),t((o(),n(`div`,p,[...f[1]||=[u(`div`,{text:`60`,"i-solar:leaf-bold-duotone":``},null,-1)]])),[[m]])],64)}}});typeof f==`function`&&f(m);var h=m;export{h as default}; \ No newline at end of file diff --git a/assets/memory-DUTQ1GLj.js b/assets/memory-DUTQ1GLj.js new file mode 100644 index 0000000000000000000000000000000000000000..d666d9322f38d414e9cc4590cf9db0f4c86f16a6 --- /dev/null +++ b/assets/memory-DUTQ1GLj.js @@ -0,0 +1 @@ +import{aA as e,e$ as t,eA as n,eD as r,eF as i,eG as a,eH as o,eR as s,eW as c,ew as l,f0 as u,f7 as d}from"./index-D3Bcbz9S.js";import{b as f}from"./route-block-Dc_s4AGN.js";const p={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:15},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var m=o({__name:`index`,setup(o){return(o,f)=>{let m=c(`motion`);return s(),r(l,null,[n(`div`,null,[a(d(e),{label:`In development, needs your help!`,theme:`orange`},{default:t(()=>[...f[0]||=[n(`div`,null,[i(` This functionality is still under development. If you have any suggestions or would like to contribute, please reach out to us on our `),n(`a`,{underline:``,"decoration-dotted":``,href:`https://github.com/moeru-ai/airi/issues`},`GitHub issues page`),i(`. The source code of this page is located at `),n(`a`,{underline:``,"decoration-dotted":``,href:`https://github.com/moeru-ai/airi/tree/main/apps/stage-web/src/pages/settings/memory/index.vue`},`here`),i(`. `)],-1)]]),_:1})]),u((s(),r(`div`,p,[...f[1]||=[n(`div`,{text:`60`,"i-solar:leaf-bold-duotone":``},null,-1)]])),[[m]])],64)}}});typeof f==`function`&&f(m);var h=m;export{h as default}; \ No newline at end of file diff --git a/assets/memory-long-term-B3xB1Aa2.js b/assets/memory-long-term-Yt8aawSw.js similarity index 72% rename from assets/memory-long-term-B3xB1Aa2.js rename to assets/memory-long-term-Yt8aawSw.js index 5916897796ba9b4e1587c9291fe24db8ac0f44fb..5d2d43f82a0735f976e7c836b7df2b34e648cf15 100644 --- a/assets/memory-long-term-B3xB1Aa2.js +++ b/assets/memory-long-term-Yt8aawSw.js @@ -1 +1 @@ -import{eC as e,eG as t,eQ as n}from"./index-DEhol03r.js";import{b as r}from"./route-block-Dc_s4AGN.js";var i=t({__name:`memory-long-term`,setup(t){return(t,r)=>(n(),e(`div`))}});typeof r==`function`&&r(i);var a=i;export{a as default}; \ No newline at end of file +import{eD as e,eH as t,eR as n}from"./index-D3Bcbz9S.js";import{b as r}from"./route-block-Dc_s4AGN.js";var i=t({__name:`memory-long-term`,setup(t){return(t,r)=>(n(),e(`div`))}});typeof r==`function`&&r(i);var a=i;export{a as default}; \ No newline at end of file diff --git a/assets/memory-short-term-Bfu17Wi_.js b/assets/memory-short-term-DS04Epul.js similarity index 72% rename from assets/memory-short-term-Bfu17Wi_.js rename to assets/memory-short-term-DS04Epul.js index fb3015bac72531af5852db77c00fc06cd79c7c07..e066d3ad4eb042d4909a1b3efc1bab315b39cbfb 100644 --- a/assets/memory-short-term-Bfu17Wi_.js +++ b/assets/memory-short-term-DS04Epul.js @@ -1 +1 @@ -import{eC as e,eG as t,eQ as n}from"./index-DEhol03r.js";import{b as r}from"./route-block-Dc_s4AGN.js";var i=t({__name:`memory-short-term`,setup(t){return(t,r)=>(n(),e(`div`))}});typeof r==`function`&&r(i);var a=i;export{a as default}; \ No newline at end of file +import{eD as e,eH as t,eR as n}from"./index-D3Bcbz9S.js";import{b as r}from"./route-block-Dc_s4AGN.js";var i=t({__name:`memory-short-term`,setup(t){return(t,r)=>(n(),e(`div`))}});typeof r==`function`&&r(i);var a=i;export{a as default}; \ No newline at end of file diff --git a/assets/messages-BAsmsxLz.js b/assets/messages-BAsmsxLz.js deleted file mode 100644 index 4d824f94682732abbb875737257d81e70aef1228..0000000000000000000000000000000000000000 --- a/assets/messages-BAsmsxLz.js +++ /dev/null @@ -1 +0,0 @@ -import"./Basic-D33XBiPI.js";import{b as e}from"./Textarea-B_NArpfq.js";import{T as t,V as n,aB as r,eC as i,eF as a,eG as o,eQ as s,eS as c,ev as l,ez as u,f1 as d,f6 as f,fa as p}from"./index-DEhol03r.js";const m={flex:``,"flex-col":``,"gap-2":``,"p-2":``},h={flex:``,"flex-row":``,"gap-2":``},g={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},_={"w-full":``,flex:``,"flex-row":``,"gap-4":``},v={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var y=o({__name:`messages`,setup(o){let y=d(``),b=d([]),x=d(!1),S=n({handlers:[async e=>{b.value.push(e.data)}]}),C=t(S);async function w(){x.value=!0,C.enqueue(y.value),C.enqueue(r),y.value=``,x.value=!1}return(t,n)=>(s(),i(`div`,m,[u(`div`,h,[a(f(e),{modelValue:y.value,"onUpdate:modelValue":n[0]||=e=>y.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:w},null,8,[`modelValue`]),u(`button`,g,p(x.value?`Processing...`:`Send`),1)]),u(`div`,_,[u(`div`,v,[n[1]||=u(`h3`,{"font-normal":``},` TTS Message `,-1),(s(!0),i(l,null,c(b.value,e=>(s(),i(`div`,{key:e},[u(`div`,null,p(e),1)]))),128))])])]))}}),b=y;export{b as default}; \ No newline at end of file diff --git a/assets/messages-Bu-Aploe.js b/assets/messages-Bu-Aploe.js new file mode 100644 index 0000000000000000000000000000000000000000..9ddf7a30d4ff53337f0d77f424c1b2e0b0427b8b --- /dev/null +++ b/assets/messages-Bu-Aploe.js @@ -0,0 +1 @@ +import"./Basic-IbpirTdD.js";import{b as e}from"./Textarea-CCCcUNHl.js";import{T as t,V as n,aC as r,eA as i,eD as a,eG as o,eH as s,eR as c,eT as l,ew as u,f2 as d,f7 as f,fb as p}from"./index-D3Bcbz9S.js";const m={flex:``,"flex-col":``,"gap-2":``,"p-2":``},h={flex:``,"flex-row":``,"gap-2":``},g={"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-4":``},_={"w-full":``,flex:``,"flex-row":``,"gap-4":``},v={"w-full":``,"rounded-lg":``,bg:`neutral-100 dark:neutral-700`,"p-2":``};var y=s({__name:`messages`,setup(s){let y=d(``),b=d([]),x=d(!1),S=n({handlers:[async e=>{b.value.push(e.data)}]}),C=t(S);async function w(){x.value=!0,C.enqueue(y.value),C.enqueue(r),y.value=``,x.value=!1}return(t,n)=>(c(),a(`div`,m,[i(`div`,h,[o(f(e),{modelValue:y.value,"onUpdate:modelValue":n[0]||=e=>y.value=e,placeholder:`Message`,p:`2`,bg:`neutral-100 dark:neutral-700`,"w-full":``,"rounded-lg":``,"outline-none":``,onSubmit:w},null,8,[`modelValue`]),i(`button`,g,p(x.value?`Processing...`:`Send`),1)]),i(`div`,_,[i(`div`,v,[n[1]||=i(`h3`,{"font-normal":``},` TTS Message `,-1),(c(!0),a(u,null,l(b.value,e=>(c(),a(`div`,{key:e},[i(`div`,null,p(e),1)]))),128))])])]))}}),b=y;export{b as default}; \ No newline at end of file diff --git a/assets/microsoft-speech-B96W7j45.js b/assets/microsoft-speech-BC5TiMaI.js similarity index 67% rename from assets/microsoft-speech-B96W7j45.js rename to assets/microsoft-speech-BC5TiMaI.js index ef0d08eda8cb42efa89e1269c1a4482c731f24ca..694d4e0d7b01fa1f8d18de939cb4cb50e4b3ac0d 100644 --- a/assets/microsoft-speech-B96W7j45.js +++ b/assets/microsoft-speech-BC5TiMaI.js @@ -1 +1 @@ -import{K as e,L as t,O as n,a4 as r,aW as i,aZ as a,ae as o,bP as s,eA as c,eF as l,eG as u,eO as d,eQ as f,eY as p,e_ as m,ey as h,ez as g,f1 as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b={flex:`~ col gap-4`},x=`microsoft-speech`;var S=u({__name:`microsoft-speech`,setup(u){let{t:y}=o(),S={pitch:0,speed:1,volume:0},C=t(),w=r(),{providers:T}=s(w),E=_(0),D=_(1),O=_(0),k=h({get:()=>T.value[x]?.region,set:e=>{T.value[x]||(T.value[x]={region:`eastasia`}),T.value[x].region=e}}),A=h(()=>!!T.value[x]?.apiKey),j=h(()=>C.availableVoices[x]||[]);d(async()=>{k.value||=`eastasia`,T.value[x]?.region||(T.value[x]?T.value[x].region=k.value:T.value[x]={region:k.value}),await C.loadVoicesForProvider(x)}),p([A,k],async()=>{await C.loadVoicesForProvider(x)});async function M(e,t,n){let r=await w.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=w.getProviderConfig(x),a=i.model||`v1`,o={...i,region:k.value,disableSsml:!n};if(!n&&t){let n=j.value.find(e=>e.id===t);if(n){let s=C.generateSSML(e,n,{...i,pitch:E.value});return await C.speech(r,a,s,t,o)}}return await C.speech(r,a,e,t,o)}return(t,r)=>(f(),c(v(e),{"provider-id":x,"default-model":`v1`,"additional-settings":S},{"basic-settings":m(()=>[l(v(a),{modelValue:k.value,"onUpdate:modelValue":r[0]||=e=>k.value=e,label:v(y)(`settings.pages.providers.provider.microsoft-speech.fields.field.region.label`),description:v(y)(`settings.pages.providers.provider.microsoft-speech.fields.field.region.description`),placeholder:`eastasia`,required:``,type:`text`},null,8,[`modelValue`,`label`,`description`])]),"voice-settings":m(()=>[g(`div`,b,[l(v(i),{modelValue:E.value,"onUpdate:modelValue":r[1]||=e=>E.value=e,label:v(y)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:v(y)(`settings.pages.providers.provider.common.fields.field.pitch.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),l(v(i),{modelValue:D.value,"onUpdate:modelValue":r[2]||=e=>D.value=e,label:v(y)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:v(y)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),l(v(i),{modelValue:O.value,"onUpdate:modelValue":r[3]||=e=>O.value=e,label:v(y)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:v(y)(`settings.pages.providers.provider.common.fields.field.volume.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`])])]),playground:m(()=>[l(v(n),{"available-voices":j.value,"generate-speech":M,"api-key-configured":A.value,"default-text":`Hello! This is a test of the Microsoft Speech synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof y==`function`&&y(S);var C=S;export{C as default}; \ No newline at end of file +import{K as e,L as t,O as n,a4 as r,aX as i,a_ as a,ae as o,bQ as s,e$ as c,eA as l,eB as u,eG as d,eH as f,eP as p,eR as m,eZ as h,ez as g,f2 as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b={flex:`~ col gap-4`},x=`microsoft-speech`;var S=f({__name:`microsoft-speech`,setup(f){let{t:y}=o(),S={pitch:0,speed:1,volume:0},C=t(),w=r(),{providers:T}=s(w),E=_(0),D=_(1),O=_(0),k=g({get:()=>T.value[x]?.region,set:e=>{T.value[x]||(T.value[x]={region:`eastasia`}),T.value[x].region=e}}),A=g(()=>!!T.value[x]?.apiKey),j=g(()=>C.availableVoices[x]||[]);p(async()=>{k.value||=`eastasia`,T.value[x]?.region||(T.value[x]?T.value[x].region=k.value:T.value[x]={region:k.value}),await C.loadVoicesForProvider(x)}),h([A,k],async()=>{await C.loadVoicesForProvider(x)});async function M(e,t,n){let r=await w.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=w.getProviderConfig(x),a=i.model||`v1`,o={...i,region:k.value,disableSsml:!n};if(!n&&t){let n=j.value.find(e=>e.id===t);if(n){let s=C.generateSSML(e,n,{...i,pitch:E.value});return await C.speech(r,a,s,t,o)}}return await C.speech(r,a,e,t,o)}return(t,r)=>(m(),u(v(e),{"provider-id":x,"default-model":`v1`,"additional-settings":S},{"basic-settings":c(()=>[d(v(a),{modelValue:k.value,"onUpdate:modelValue":r[0]||=e=>k.value=e,label:v(y)(`settings.pages.providers.provider.microsoft-speech.fields.field.region.label`),description:v(y)(`settings.pages.providers.provider.microsoft-speech.fields.field.region.description`),placeholder:`eastasia`,required:``,type:`text`},null,8,[`modelValue`,`label`,`description`])]),"voice-settings":c(()=>[l(`div`,b,[d(v(i),{modelValue:E.value,"onUpdate:modelValue":r[1]||=e=>E.value=e,label:v(y)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:v(y)(`settings.pages.providers.provider.common.fields.field.pitch.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`]),d(v(i),{modelValue:D.value,"onUpdate:modelValue":r[2]||=e=>D.value=e,label:v(y)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:v(y)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),d(v(i),{modelValue:O.value,"onUpdate:modelValue":r[3]||=e=>O.value=e,label:v(y)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:v(y)(`settings.pages.providers.provider.common.fields.field.volume.description`),min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`label`,`description`,`format-value`])])]),playground:c(()=>[d(v(n),{"available-voices":j.value,"generate-speech":M,"api-key-configured":A.value,"default-text":`Hello! This is a test of the Microsoft Speech synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof y==`function`&&y(S);var C=S;export{C as default}; \ No newline at end of file diff --git a/assets/mistral-ai-7pN66eWP.js b/assets/mistral-ai-0-WzsJ4f.js similarity index 59% rename from assets/mistral-ai-7pN66eWP.js rename to assets/mistral-ai-0-WzsJ4f.js index f15e9f5b1f229ab40aa279a661c45fef63150b9d..256281ed5cf122b6e4913b7a8f7c016c27aa8c78 100644 --- a/assets/mistral-ai-7pN66eWP.js +++ b/assets/mistral-ai-0-WzsJ4f.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`mistral-ai`;var x=f({__name:`mistral-ai`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`mis-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.mistral.ai/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`mistral-ai`;var x=p({__name:`mistral-ai`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`mis-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.mistral.ai/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/models-B-HwYTDm.js b/assets/models-B-HwYTDm.js deleted file mode 100644 index 3fc5b8010352e45144c01d04cedc22abee3c3dc4..0000000000000000000000000000000000000000 --- a/assets/models-B-HwYTDm.js +++ /dev/null @@ -1 +0,0 @@ -import{d as e,e as t,i as n,k as r}from"./Scenes-0TJqCS-r.js";import{a$ as i,aL as a,aM as o,aN as s,aQ as c,aW as l,ae as u,ag as d,ah as f,ai as p,aj as m,ao as h,aw as g,ax as _,az as v,b as y,b$ as b,b0 as x,b1 as S,b2 as C,b3 as w,b4 as ee,b5 as te,b6 as T,b7 as E,b8 as D,b9 as O,bA as k,bB as A,bC as ne,bD as re,bE as ie,bF as ae,bG as oe,bH as se,bI as j,bP as ce,bX as le,b_ as ue,ba as de,bb as fe,bc as pe,bd as me,be as he,bf as ge,bg as _e,bh as ve,bi as ye,bj as be,bk as xe,bl as Se,bm as Ce,bn as we,bo as Te,bp as Ee,bq as De,br as Oe,bs as ke,bt as Ae,bu as M,bv as je,bw as Me,bx as Ne,by as Pe,bz as Fe,c as Ie,c3 as Le,c4 as Re,ci as ze,cj as Be,ck as Ve,e as N,e$ as He,eA as P,eB as F,eC as I,eE as L,eF as R,eG as z,eH as Ue,eK as We,eL as Ge,eM as B,eN as V,eO as Ke,eP as qe,eQ as H,eS as Je,eT as U,eV as Ye,eW as Xe,eY as Ze,e_ as W,et as Qe,eu as $e,ev as G,ey as K,ez as q,f as et,f0 as J,f1 as Y,f5 as tt,f6 as X,f7 as Z,f8 as Q,f9 as nt,fa as $}from"./index-DEhol03r.js";import{b as rt}from"./browser-DlzSerl9.js";import"./dist-ByFcnk3K.js";import{b as it}from"./route-block-Dc_s4AGN.js";import"./ibl-CbBD07sa.js";import"./import-url-browser-CQxpIBxI.js";import"./duckdb-mvp-DkPAVKN8.js";import"./index-CAcLDIRJ-zzf_MFDO.js";import"./core-C5TqIlxQ.js";import"./airi-card-7HyqBFjt.js";import"./hearing-EgcjzOdT.js";import{b as at}from"./IconAnimation-C0TBccB2.js";import{b as ot}from"./icon-animation-B3otQp3y.js";const st=[`INPUT`,`TEXTAREA`];function ct(e,t,n,r={}){if(!t||r.enableIgnoredElement&&st.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;if(v||_){let e=_?m:c===`ltr`?d:f;b=lt(y,t,{goForward:e,loop:s})}else h?b=y.at(0)||null:g&&(b=y.at(-1)||null);return u&&b?.focus(),b}function lt(e,t,n,r=e.length){if(--r===0)return null;let i=e.indexOf(t),a=n.goForward?i+1:i-1;if(!n.loop&&(a<0||a>=e.length))return null;let o=(a+e.length)%e.length,s=e[o];if(!s)return null;let c=s.hasAttribute(`disabled`)&&s.getAttribute(`disabled`)!==`false`;return c?lt(e,s,n,r):s}var ut=z({__name:`DialogTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=ke(),{forwardRef:r,currentElement:i}=A();return n.contentId||=Pe(void 0,`reka-dialog-content`),Ke(()=>{n.triggerElement.value=i.value}),(e,i)=>(H(),P(X(M),B(t,{ref:X(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":X(n).open.value||!1,"aria-controls":X(n).open.value?X(n).contentId:void 0,"data-state":X(n).open.value?`open`:`closed`,onClick:X(n).onOpenToggle}),{default:W(()=>[U(e.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`onClick`]))}}),dt=ut;const[ft,pt]=j(`RovingFocusGroup`);var mt=z({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,i=n,{loop:a,orientation:o,dir:s}=tt(r),c=ae(s),l=Be(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=Y(!1),d=Y(!1),f=Y(0),{getItems:p,CollectionSlot:m}=O({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(T,E);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``),t=e.find(e=>e.getAttribute(`data-active`)===``),n=e.find(e=>e.getAttribute(`data-highlighted`)===``),i=e.find(e=>e.id===l.value),a=[t,n,i,...e].filter(Boolean);D(a,r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),pt({loop:a,dir:c,orientation:o,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(e,t)=>(H(),P(X(m),null,{default:W(()=>[R(X(M),{tabindex:u.value||f.value===0?-1:0,"data-orientation":X(o),as:e.as,"as-child":e.asChild,dir:X(c),style:{outline:`none`},onMousedown:t[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:t[1]||=e=>u.value=!1},{default:W(()=>[U(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),ht=mt,gt=z({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(H(),P(X(C),Q(Ue(t)),{default:W(()=>[U(e.$slots,`default`)]),_:3},16))}}),_t=gt;function vt(){let e=Y(!1);return Ke(()=>{ze(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),ze([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const yt=Ve(vt),[bt,xt]=j([`MenuRoot`,`MenuSub`],`MenuContext`),[St,Ct]=j(`MenuRoot`);var wt=z({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=tt(n),o=ae(a),s=Be(n,`open`,r),c=Y(),l=yt();return xt({open:s,onOpenChange:e=>{s.value=e},content:c,onContentChange:e=>{c.value=e}}),Ct({onClose:()=>{s.value=!1},isUsingKeyboardRef:l,dir:o,modal:i}),(e,t)=>(H(),P(X(w),null,{default:W(()=>[U(e.$slots,`default`)]),_:3}))}}),Tt=wt;const[Et,Dt]=j(`MenuContent`);var Ot=z({__name:`MenuContentImpl`,props:We({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...x}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=bt(),a=St(),{trapFocus:o,disableOutsidePointerEvents:s,loop:c}=tt(n);re(),oe(s.value);let l=Y(``),u=Y(0),d=Y(0),f=Y(null),p=Y(`right`),m=Y(0),h=Y(null),g=Y(),{forwardRef:_,currentElement:v}=A(),{handleTypeaheadSearch:y}=Me();Ze(v,e=>{i.onContentChange(e)}),qe(()=>{window.clearTimeout(u.value)});function b(e){let t=p.value===f.value?.side;return t&&Ce(e,f.value?.area)}async function x(e){r(`openAutoFocus`,e),!e.defaultPrevented&&(e.preventDefault(),v.value?.focus({preventScroll:!0}))}function C(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1,o=ct(e,se(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(o)return o?.focus();if(e.code===`Space`)return;let s=g.value?.getItems()??[];if(n&&(e.key===`Tab`&&e.preventDefault(),!r&&i&&y(e.key,s)),e.target!==v.value||!ge.includes(e.key))return;e.preventDefault();let l=[...s.map(e=>e.ref)];ve.includes(e.key)&&l.reverse(),be(l)}function w(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(u.value),l.value=``)}function ee(e){if(!Se(e))return;let t=e.target,n=m.value!==e.clientX;if((e?.currentTarget)?.contains(t)&&n){let t=e.clientX>m.value?`right`:`left`;p.value=t,m.value=e.clientX}}return Dt({onItemEnter:e=>!!b(e),onItemLeave:e=>{b(e)||(v.value?.focus(),h.value=null)},onTriggerLeave:e=>!!b(e),searchRef:l,pointerGraceTimerRef:d,onPointerGraceIntentChange:e=>{f.value=e}}),(e,t)=>(H(),P(X(we),{"as-child":``,trapped:X(o),onMountAutoFocus:x,onUnmountAutoFocus:t[7]||=e=>r(`closeAutoFocus`,e)},{default:W(()=>[R(X(Te),{"as-child":``,"disable-outside-pointer-events":X(s),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[4]||=e=>r(`focusOutside`,e),onInteractOutside:t[5]||=e=>r(`interactOutside`,e),onDismiss:t[6]||=e=>r(`dismiss`)},{default:W(()=>[R(X(ht),{ref_key:`rovingFocusGroupRef`,ref:g,"current-tab-stop-id":h.value,"onUpdate:currentTabStopId":t[0]||=e=>h.value=e,"as-child":``,orientation:`vertical`,dir:X(a).dir.value,loop:X(c),onEntryFocus:t[1]||=e=>{r(`entryFocus`,e),X(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:W(()=>[R(X(S),{ref:X(_),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":X(xe)(X(i).open.value),dir:X(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:C,onBlur:w,onPointermove:ee},{default:W(()=>[U(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),kt=Ot,At=z({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=Et(),{forwardRef:r}=A(),{CollectionItem:i}=O(),a=Y(!1);async function o(e){if(!e.defaultPrevented&&Se(e))if(t.disabled)n.onItemLeave(e);else{let t=n.onItemEnter(e);if(!t){let t=e.currentTarget;t?.focus({preventScroll:!0})}}}async function s(e){await V(),!e.defaultPrevented&&Se(e)&&n.onItemLeave(e)}return(e,t)=>(H(),P(X(i),{value:{textValue:e.textValue}},{default:W(()=>[R(X(M),B({ref:X(r),role:`menuitem`,tabindex:`-1`},e.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":a.value?``:void 0,onPointermove:o,onPointerleave:s,onFocus:t[0]||=async t=>{await V(),!(t.defaultPrevented||e.disabled)&&(a.value=!0)},onBlur:t[1]||=async e=>{await V(),!e.defaultPrevented&&(a.value=!1)}}),{default:W(()=>[U(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),jt=At,Mt=z({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=A(),o=St(),s=Et(),c=Y(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(_e,{bubbles:!0,cancelable:!0});r(`select`,e),await V(),e.defaultPrevented?c.value=!1:o.onClose()}}return(e,t)=>(H(),P(jt,B(n,{ref:X(i),onClick:l,onPointerdown:t[0]||=()=>{c.value=!0},onPointerup:t[1]||=async e=>{await V(),!e.defaultPrevented&&(c.value||e.currentTarget?.click())},onKeydown:t[2]||=async t=>{let n=X(s).searchRef.value!==``;e.disabled||n&&t.key===` `||X(ye).includes(t.key)&&(t.currentTarget.click(),t.preventDefault())}}),{default:W(()=>[U(e.$slots,`default`)]),_:3},16))}}),Nt=Mt,Pt=z({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=k(n,r),a=bt(),{forwardRef:o,currentElement:s}=A();return Fe(s),(e,t)=>(H(),P(kt,B(X(i),{ref:X(o),"trap-focus":X(a).open.value,"disable-outside-pointer-events":X(a).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>X(a).onOpenChange(!1),onFocusOutside:t[1]||=$e(e=>r(`focusOutside`,e),[`prevent`])}),{default:W(()=>[U(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),Ft=Pt,It=z({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=k(n,r),a=bt();return(e,t)=>(H(),P(kt,B(X(i),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>X(a).onOpenChange(!1)}),{default:W(()=>[U(e.$slots,`default`)]),_:3},16))}}),Lt=It,Rt=z({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=k(n,r),a=bt(),o=St();return(e,t)=>(H(),P(X(je),{present:e.forceMount||X(a).open.value},{default:W(()=>[X(o).modal.value?(H(),P(Ft,Q(B({key:0},{...e.$attrs,...X(i)})),{default:W(()=>[U(e.$slots,`default`)]),_:3},16)):(H(),P(Lt,Q(B({key:1},{...e.$attrs,...X(i)})),{default:W(()=>[U(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),zt=Rt,Bt=z({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(H(),P(X(pe),Q(Ue(t)),{default:W(()=>[U(e.$slots,`default`)]),_:3},16))}}),Vt=Bt;const[Ht,Ut]=j(`DropdownMenuRoot`);var Wt=z({__name:`DropdownMenuRoot`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;A();let i=Be(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=Y(),{modal:o,dir:s}=tt(n),c=ae(s);return Ut({open:i,onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},triggerId:``,triggerElement:a,contentId:``,modal:o,dir:c}),(e,t)=>(H(),P(X(Tt),{open:X(i),"onUpdate:open":t[0]||=e=>J(i)?i.value=e:null,dir:X(c),modal:X(o)},{default:W(()=>[U(e.$slots,`default`,{open:X(i)})]),_:3},8,[`open`,`dir`,`modal`]))}}),Gt=Wt,Kt=z({__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=k(n,r);A();let a=Ht(),o=Y(!1);function s(e){e.defaultPrevented||(o.value||setTimeout(()=>{a.triggerElement.value?.focus()},0),o.value=!1,e.preventDefault())}return a.contentId||=Pe(void 0,`reka-dropdown-menu-content`),(e,t)=>(H(),P(X(zt),B(X(i),{id:X(a).contentId,"aria-labelledby":X(a)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`},onCloseAutoFocus:s,onInteractOutside:t[0]||=e=>{if(e.defaultPrevented)return;let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!X(a).modal.value||r)&&(o.value=!0),X(a).triggerElement.value?.contains(e.target)&&e.preventDefault()}}),{default:W(()=>[U(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`]))}}),qt=Kt,Jt=z({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=ie(r);return A(),(e,t)=>(H(),P(X(Nt),Q(Ue({...n,...X(i)})),{default:W(()=>[U(e.$slots,`default`)]),_:3},16))}}),Yt=Jt,Xt=z({__name:`DropdownMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(H(),P(X(Vt),Q(Ue(t)),{default:W(()=>[U(e.$slots,`default`)]),_:3},16))}}),Zt=Xt,Qt=z({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Ht(),{forwardRef:r,currentElement:i}=A();return Ke(()=>{n.triggerElement=i}),n.triggerId||=Pe(void 0,`reka-dropdown-menu-trigger`),(e,i)=>(H(),P(X(_t),{"as-child":``},{default:W(()=>[R(X(M),{id:X(n).triggerId,ref:X(r),type:e.as===`button`?`button`:void 0,"as-child":t.asChild,as:e.as,"aria-haspopup":`menu`,"aria-expanded":X(n).open.value,"aria-controls":X(n).open.value?X(n).contentId:void 0,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,"data-state":X(n).open.value?`open`:`closed`,onClick:i[0]||=async t=>{!e.disabled&&t.button===0&&t.ctrlKey===!1&&(X(n)?.onOpenToggle(),await V(),X(n).open.value&&t.preventDefault())},onKeydown:i[1]||=Qe(t=>{e.disabled||([`Enter`,` `].includes(t.key)&&X(n).onOpenToggle(),t.key===`ArrowDown`&&X(n).onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(t.key)&&t.preventDefault())},[`enter`,`space`,`arrow-down`])},{default:W(()=>[U(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as-child`,`as`,`aria-expanded`,`aria-controls`,`data-disabled`,`disabled`,`data-state`])]),_:3}))}}),$t=Qt;const[en,tn]=j(`EditableRoot`);var nn=z({inheritAttrs:!1,__name:`EditableRoot`,props:{defaultValue:{type:String,required:!1},modelValue:{type:[String,null],required:!1},placeholder:{type:[String,Object],required:!1,default:`Enter text...`},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1},activationMode:{type:String,required:!1,default:`focus`},selectOnFocus:{type:Boolean,required:!1,default:!1},submitMode:{type:String,required:!1,default:`blur`},startWithEditMode:{type:Boolean,required:!1},maxLength:{type:Number,required:!1},autoResize:{type:Boolean,required:!1,default:!1},id:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`},name:{type:String,required:!1},required:{type:Boolean,required:!1,default:!1}},emits:[`update:modelValue`,`submit`,`update:state`],setup(e,{expose:t,emit:n}){let r=e,i=n,{id:a,name:o,defaultValue:s,startWithEditMode:c,placeholder:l,maxLength:u,disabled:d,dir:f,submitMode:p,activationMode:m,selectOnFocus:h,readonly:g,autoResize:_,required:v}=tt(r),y=Y(),b=ae(f),x=Y(c.value??!1),S=Be(r,`modelValue`,i,{defaultValue:s.value??``,passive:r.modelValue===void 0}),{primitiveElement:C,currentElement:w}=Ae(),te=ne(w),T=K(()=>typeof l.value==`string`?{edit:l.value,preview:l.value}:l.value),E=Y(S.value);Ze(()=>S.value,()=>{E.value=S.value},{immediate:!0,deep:!0});function D(){x.value=!1,i(`update:state`,`cancel`)}function O(){x.value=!0,E.value=S.value,i(`update:state`,`edit`)}function k(){S.value=E.value,x.value=!1,i(`update:state`,`submit`),i(`submit`,S.value)}function A(){x.value&&(p.value===`blur`||p.value===`both`?k():D())}let re=De(()=>A(),w,x),ie=Ee(()=>A(),w,x),oe=K(()=>S.value===``);return t({submit:k,cancel:D,edit:O}),tn({id:a,name:o,disabled:d,isEditing:x,maxLength:u,modelValue:S,inputValue:E,placeholder:T,edit:O,cancel:D,submit:k,activationMode:m,submitMode:p,selectOnFocus:h,inputRef:y,startWithEditMode:c,isEmpty:oe,readonly:g,autoResize:_}),(e,t)=>(H(),P(X(M),B(e.$attrs,{ref_key:`primitiveElement`,ref:C,as:e.as,"as-child":e.asChild,dir:X(b),"data-dismissable-layer":``,onFocusCapture:X(ie).onFocusCapture,onBlurCapture:X(ie).onBlurCapture,onPointerdownCapture:X(re).onPointerDownCapture}),{default:W(()=>[U(e.$slots,`default`,{modelValue:X(S),isEditing:x.value,isEmpty:oe.value,submit:k,cancel:D,edit:O}),X(te)&&X(o)?(H(),P(X(ee),{key:0,type:`text`,value:X(S),name:X(o),disabled:X(d),required:X(v)},null,8,[`value`,`name`,`disabled`,`required`])):F(`v-if`,!0)]),_:3},16,[`as`,`as-child`,`dir`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),rn=nn,an=z({__name:`EditableArea`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e,n=en();return(e,r)=>(H(),P(X(M),B(t,{"data-placeholder-shown":X(n).isEditing.value?void 0:``,"data-focus":X(n).isEditing.value?``:void 0,"data-focused":X(n).isEditing.value?``:void 0,"data-empty":X(n).isEmpty.value?``:void 0,"data-readonly":X(n).readonly.value?``:void 0,"data-disabled":X(n).disabled.value?``:void 0,style:X(n).autoResize.value?{display:`inline-grid`}:void 0}),{default:W(()=>[U(e.$slots,`default`)]),_:3},16,[`data-placeholder-shown`,`data-focus`,`data-focused`,`data-empty`,`data-readonly`,`data-disabled`,`style`]))}}),on=an,sn=z({__name:`EditableEditTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=en();return(e,r)=>(H(),P(X(M),B(t,{"aria-label":`edit`,"aria-disabled":X(n).disabled.value?``:void 0,"data-disabled":X(n).disabled.value?``:void 0,disabled:X(n).disabled.value,type:e.as===`button`?`button`:void 0,hidden:X(n).isEditing.value?``:void 0,onClick:X(n).edit}),{default:W(()=>[U(e.$slots,`default`,{},()=>[r[0]||=L(`Edit`)])]),_:3},16,[`aria-disabled`,`data-disabled`,`disabled`,`type`,`hidden`,`onClick`]))}}),cn=sn,ln=z({__name:`EditableInput`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},setup(e){let t=e,n=Ne(),r=en(),i=K(()=>r.disabled.value),a=K(()=>r.placeholder.value?.edit),{primitiveElement:o,currentElement:s}=Ae();Ke(()=>{r.inputRef.value=s.value,r.startWithEditMode.value&&(r.inputRef.value?.focus({preventScroll:!0}),r.selectOnFocus.value&&r.inputRef.value?.select())}),Ze(r.isEditing,e=>{e&&V(()=>{r.inputRef.value?.focus({preventScroll:!0}),r.selectOnFocus.value&&r.inputRef.value?.select()})});function c(e){(r.submitMode.value===`enter`||r.submitMode.value===`both`)&&e.key===n.ENTER&&!e.shiftKey&&!e.metaKey&&r.submit()}return(e,n)=>(H(),P(X(M),B({ref_key:`primitiveElement`,ref:o},t,{value:X(r).inputValue.value,placeholder:a.value,disabled:i.value,maxlength:X(r).maxLength.value,"data-disabled":i.value?``:void 0,"data-readonly":X(r).readonly.value?``:void 0,readonly:X(r).readonly.value,"aria-label":`editable input`,hidden:X(r).autoResize.value?void 0:!X(r).isEditing.value,style:X(r).autoResize.value?{all:`unset`,gridArea:`1 / 1 / auto / auto`,visibility:X(r).isEditing.value?void 0:`hidden`}:void 0,onInput:n[0]||=e=>X(r).inputValue.value=e.target.value,onKeydown:[Qe(c,[`enter`,`space`]),Qe(X(r).cancel,[`esc`])]}),{default:W(()=>[U(e.$slots,`default`)]),_:3},16,[`value`,`placeholder`,`disabled`,`maxlength`,`data-disabled`,`data-readonly`,`readonly`,`hidden`,`style`,`onKeydown`]))}}),un=ln,dn=z({__name:`EditablePreview`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=en(),r=K(()=>n.placeholder.value?.preview);function i(){n.activationMode.value===`focus`&&n.edit()}function a(){n.activationMode.value===`dblclick`&&n.edit()}return(e,o)=>(H(),P(X(M),B(t,{tabindex:`0`,"data-placeholder-shown":X(n).isEditing.value?void 0:``,hidden:X(n).autoResize.value?void 0:X(n).isEditing.value,style:X(n).autoResize.value?{whiteSpace:`pre`,userSelect:`none`,gridArea:`1 / 1 / auto / auto`,visibility:X(n).isEditing.value?`hidden`:void 0,overflow:`hidden`,textOverflow:`ellipsis`}:void 0,onFocusin:i,onDblclick:a}),{default:W(()=>[U(e.$slots,`default`,{},()=>[L($(X(n).modelValue.value||r.value),1)])]),_:3},16,[`data-placeholder-shown`,`hidden`,`style`]))}}),fn=dn,pn=z({__name:`EditableSubmitTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=en();return(e,r)=>(H(),P(X(M),B(t,{"aria-label":`submit`,"aria-disabled":X(n).disabled.value?``:void 0,"data-disabled":X(n).disabled.value?``:void 0,disabled:X(n).disabled.value,type:e.as===`button`?`button`:void 0,hidden:X(n).isEditing.value?void 0:``,onClick:X(n).submit}),{default:W(()=>[U(e.$slots,`default`,{},()=>[r[0]||=L(`Submit`)])]),_:3},16,[`aria-disabled`,`data-disabled`,`disabled`,`type`,`hidden`,`onClick`]))}}),mn=pn;const hn={pt:`4 sm:0`,gap:`4 sm:6`,"h-full":``,flex:``,"flex-col":``},gn={flex:``,"items-center":``},_n={key:0},vn={class:`flex-1 md:flex-none`,"h-full":``,"w-full":``,"overflow-x-hidden":``,"overflow-y-scroll":``},yn={class:`grid grid-cols-2 gap-2 lg:max-h-80dvh`},bn=[`onClick`],xn={absolute:``,"left-3":``,"top-4":``,"z-1":``},Sn=[`onClick`],Cn={class:`min-w-60 lg:min-h-60`,aspect:`12/16`,"px-1":``,"py-2":``},wn=[`src`],Tn={"h-full":``,"w-full":``,flex:``,"flex-col":``},En={"w-full":``,"flex-1":``,"p-2":``},Dn={key:1,class:`flex gap-2`},On={flex:``,"items-center":``,"gap-1":``,text:`neutral-400 dark:neutral-600`};var kn=z({__name:`model-selector`,props:{modelValue:{type:Object,required:!1},modelModifiers:{}},emits:Ge([`close`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,r=Xe(e,`modelValue`),i=et(),{displayModelsFromIndexedDBLoading:a,displayModels:o}=ce(i);function s(e){i.removeDisplayModel(e.id)}let c=Y(r.value?.id);function l(e){e===null||e.length===0||e[0].name.endsWith(`.zip`)&&i.addDisplayModel(N.Live2dZip,e[0])}function u(e){r.value=e,n(`close`,void 0)}function d(){r.value=o.value.find(e=>e.id===c.value),n(`close`,void 0)}function f(e){e===null||e.length===0||e[0].name.endsWith(`.vrm`)&&i.addDisplayModel(N.VRM,e[0])}let p={[N.Live2dZip]:`Live2D`,[N.Live2dDirectory]:`Live2D`,[N.VRM]:`VRM`,[N.PMXDirectory]:`MMD`,[N.PMXZip]:`MMD`,[N.PMD]:`MMD`},m=le({accept:`.zip`,multiple:!1,reset:!0}),g=le({accept:`.vrm`,multiple:!1,reset:!0});return m.onChange(l),g.onChange(f),(e,t)=>{let n=Ye(`auto-animate`);return H(),I(`div`,hn,[q(`div`,gn,[t[6]||=q(`div`,{"w-full":``,"flex-1":``,"text-xl":``},` Model Selector `,-1),q(`div`,null,[R(X(Gt),null,{default:W(()=>[R(X($t),{bg:`neutral-400/20 hover:neutral-400/45 active:neutral-400/60 dark:neutral-700/50 hover:dark:neutral-700/65 active:dark:neutral-700/90`,flex:``,"items-center":``,"justify-center":``,"gap-1":``,"rounded-lg":``,"px-2":``,"py-1":``,"backdrop-blur-sm":``,transition:`colors duration-200 ease-in-out`,"aria-label":`Options for Display Models`},{default:W(()=>[...t[3]||=[q(`div`,{"i-solar:add-circle-bold":``},null,-1),q(`div`,null,`Add`,-1)]]),_:1}),R(X(Zt),null,{default:W(()=>[R(X(qt),{class:`will-change-[opacity,transform] z-10000 max-w-45 rounded-lg p-0.5 shadow-md outline-none data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade`,bg:`neutral-700/50 dark:neutral-950/50`,transition:`colors duration-200 ease-in-out`,"backdrop-blur-sm":``,align:`end`,side:`bottom`,"side-offset":8},{default:W(()=>[R(X(Yt),{class:`data-[disabled]:text-mauve8 relative flex cursor-pointer select-none items-center rounded-md px-3 py-2 text-base leading-none outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-primary-100/20 sm:text-sm data-[highlighted]:text-primary-200`,transition:`colors duration-200 ease-in-out`,onClick:t[0]||=e=>X(m).open()},{default:W(()=>[...t[4]||=[L(` Live2D `,-1)]]),_:1}),R(X(Yt),{class:`data-[disabled]:text-mauve8 relative flex cursor-pointer select-none items-center rounded-md px-3 py-2 text-base leading-none outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-primary-100/20 sm:text-sm data-[highlighted]:text-primary-200`,transition:`colors duration-200 ease-in-out`,onClick:t[1]||=e=>X(g).open()},{default:W(()=>[...t[5]||=[L(` VRM `,-1)]]),_:1})]),_:1})]),_:1})]),_:1})])]),X(a)?(H(),I(`div`,_n,` Loading display models... `)):F(``,!0),q(`div`,vn,[q(`div`,yn,[(H(!0),I(G,null,Je(X(o),e=>He((H(),I(`div`,{key:e.id,relative:``,"w-full":``,flex:`~ col md:row`,"gap-2":``,onClick:()=>c.value=e.id},[q(`div`,xn,[R(X(Gt),null,{default:W(()=>[R(X($t),{bg:`neutral-900/20 hover:neutral-900/45 active:neutral-900/60 dark:neutral-950/50 hover:dark:neutral-900/65 active:dark:neutral-900/90`,text:`white`,"h-7":``,"w-7":``,flex:``,"items-center":``,"justify-center":``,"rounded-lg":``,"backdrop-blur-sm":``,transition:`colors duration-200 ease-in-out`,"aria-label":`Options for Display Models`},{default:W(()=>[...t[7]||=[q(`div`,{"i-solar:menu-dots-bold":``},null,-1)]]),_:1}),R(X(Zt),null,{default:W(()=>[R(X(qt),{class:`will-change-[opacity,transform] z-10000 max-w-45 rounded-lg p-0.5 text-white shadow-md outline-none data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade dark:text-black`,bg:`neutral-700/50 dark:neutral-950/50`,transition:`colors duration-200 ease-in-out`,"backdrop-blur-sm":``,align:`start`,side:`bottom`,"side-offset":4},{default:W(()=>[R(X(Yt),{class:`data-[disabled]:text-mauve8 relative flex cursor-pointer select-none items-center rounded-md px-3 py-2 text-base leading-none outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-red-100/20 sm:text-sm data-[highlighted]:text-red-200`,transition:`colors duration-200 ease-in-out`},{default:W(()=>[q(`button`,{flex:``,"items-center":``,"gap-1":``,"outline-none":``,onClick:t=>s(e)},[...t[8]||=[q(`div`,{"i-solar:trash-bin-minimalistic-bold-duotone":``},null,-1),q(`div`,null,`Remove`,-1)]],8,Sn)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),q(`div`,Cn,[e.previewImage?(H(),I(`img`,{key:0,src:e.previewImage,"h-full":``,"w-full":``,"rounded-lg":``,"object-contain":``,class:Z([c.value&&c.value===e.id?`ring-3 ring-primary-400`:`ring-0 ring-transparent`]),transition:`all duration-200 ease-in-out`},null,10,wn)):(H(),I(`div`,{key:1,bg:`neutral-100 dark:neutral-900`,relative:``,"h-full":``,"w-full":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``,"gap-2":``,"overflow-hidden":``,"rounded-lg":``,class:Z([c.value&&c.value===e.id?`ring-3 ring-primary-400`:`ring-0 ring-transparent`]),transition:`all duration-200 ease-in-out`},[...t[9]||=[q(`div`,{"i-solar:question-square-bold-duotone":``,"text-4xl":``,"opacity-75":``},null,-1),q(`div`,{"translate-y":`100%`,absolute:``,"top-0":``,flex:``,"flex-col":``,"translate-x--7":``,"rotate-45":``,"scale-250":``,"gap-0":``,"opacity-5":``},[q(`div`,{text:`sm sm:sm`,"translate-x-7":``,"translate-y--2":``,"text-nowrap":``},` unavailable Preview unavailable Preview `),q(`div`,{text:`sm sm:sm`,"translate-x-0":``,"translate-y--0":``,"text-nowrap":``},` Preview unavailable Preview unavailable `),q(`div`,{text:`sm sm:sm`,"translate-x--7":``,"translate-y-2":``,"text-nowrap":``},` unavailable Preview unavailable Preview `)],-1)]],2))]),q(`div`,Tn,[q(`div`,En,[R(X(rn),{"default-value":e.name,placeholder:`Model Name...`,class:`flex gap-2`,"auto-resize":``},{default:W(({isEditing:e})=>[R(X(on),{class:`w-[calc(100%-8px-1rem)] dark:text-white`},{default:W(()=>[R(X(fn),{class:`line-clamp-1 w-[calc(100%-8px)] overflow-hidden text-ellipsis`}),R(X(un),{class:`w-[calc(100%-8px)]! placeholder:text-neutral-700 dark:placeholder:text-neutral-600`})]),_:1}),e?(H(),I(`div`,Dn,[R(X(mn),null,{default:W(()=>[...t[11]||=[q(`div`,{"i-solar:check-read-line-duotone":``,"opacity-50":``},null,-1)]]),_:1})])):(H(),P(X(cn),{key:0},{default:W(()=>[...t[10]||=[q(`div`,{"i-solar:pen-2-line-duotone":``,"opacity-50":``},null,-1)]]),_:1}))]),_:1},8,[`default-value`]),q(`div`,On,[t[12]||=q(`div`,{"i-solar:tag-horizontal-bold":``},null,-1),q(`div`,null,$(p[e.format]),1)])]),R(h,{class:`hidden md:block`,variant:`secondary`,onClick:t=>u(e)},{default:W(()=>[...t[13]||=[L(` Pick `,-1)]]),_:1},8,[`onClick`])])],8,bn)),[[n]])),128))])]),R(h,{class:`block md:hidden`,onClick:t[2]||=e=>d()},{default:W(()=>[...t[14]||=[L(` Confirm `,-1)]]),_:1})])}}}),An=kn,jn=z({__name:`model-selector-dialog`,props:{show:{type:Boolean,default:!1,required:!1},showModifiers:{},modelValue:{type:Object,required:!1},modelModifiers:{}},emits:[`update:show`,`update:modelValue`],setup(e){let t=Xe(e,`show`),n=Xe(e,`modelValue`),r=ue(`(min-width: 768px)`),i=Re();return Le(document.documentElement,()=>i.update()),Ke(()=>i.update()),(e,a)=>X(r)?(H(),P(X(Oe),{key:0,open:t.value,"onUpdate:open":a[2]||=e=>t.value=e},{default:W(()=>[R(X(dt),{"as-child":``},{default:W(()=>[U(e.$slots,`default`)]),_:3}),R(X(fe),null,{default:W(()=>[R(X(me),{class:`fixed inset-0 z-[9999] bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),R(X(he),{class:`fixed left-1/2 top-1/2 z-[9999] max-h-full max-w-5xl w-[92dvw] transform overflow-y-scroll rounded-2xl bg-white p-6 shadow-xl outline-none backdrop-blur-md scrollbar-none -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:bg-neutral-900`},{default:W(()=>[R(X(te),null,{default:W(()=>[R(X(de),null,{default:W(()=>[...a[6]||=[L(`Models`,-1)]]),_:1})]),_:1}),R(An,{modelValue:n.value,"onUpdate:modelValue":a[0]||=e=>n.value=e,onClose:a[1]||=e=>t.value=!1},null,8,[`modelValue`])]),_:1})]),_:1})]),_:3},8,[`open`])):(H(),P(X(m),{key:1,open:t.value,"should-scale-background":``,"onUpdate:open":a[5]||=e=>t.value=e},{default:W(()=>[R(X(dt),{"as-child":``},{default:W(()=>[U(e.$slots,`default`)]),_:3}),R(X(fe),null,{default:W(()=>[R(X(d),{class:`fixed inset-0`}),R(X(f),{class:`fixed bottom-0 left-0 right-0 z-1000 mt-20 h-full max-h-[96%] flex flex-col rounded-t-2xl bg-neutral-50 px-4 pt-4 outline-none backdrop-blur-md dark:bg-neutral-900/95`,style:nt({paddingBottom:`${Math.max(Number.parseFloat(X(i).bottom.value.replace(`px`,``)),24)}px`})},{default:W(()=>[R(X(p)),R(An,{modelValue:n.value,"onUpdate:modelValue":a[3]||=e=>n.value=e,onClose:a[4]||=e=>t.value=!1},null,8,[`modelValue`])]),_:1},8,[`style`])]),_:1})]),_:3},8,[`open`]))}}),Mn=jn;const Nn={flex:``,"items-center":``},Pn={flex:``,"items-center":``},Fn={flex:``,"items-center":``};var In=z({__name:`Live2D`,props:{palette:{}},emits:[`extractColorsFromModel`],setup(e){let{t}=u(),n=Ie(),{live2dDisableFocus:a}=ce(n),o=r(),{scale:s,position:c}=ce(o);return(e,n)=>(H(),I(G,null,[R(X(_),{title:X(t)(`settings.live2d.scale-and-position.title`),icon:`i-solar:scale-bold-duotone`,class:Z([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`]),size:`sm`,expand:!0},{default:W(()=>[R(X(l),{modelValue:X(s),"onUpdate:modelValue":n[1]||=e=>J(s)?s.value=e:null,as:`div`,min:.5,max:2,step:.01,label:X(t)(`settings.live2d.scale-and-position.scale`)},{label:W(()=>[q(`div`,Nn,[q(`div`,null,$(X(t)(`settings.live2d.scale-and-position.scale`)),1),q(`button`,{"px-2":``,"text-xs":``,"outline-none":``,title:`Reset value to default`,onClick:n[0]||=()=>s.value=1},[...n[8]||=[q(`div`,{"i-solar:forward-linear":``,"transform-scale-x--100":``,text:`neutral-500 dark:neutral-400`},null,-1)]])])]),_:1},8,[`modelValue`,`label`]),R(X(l),{modelValue:X(c).x,"onUpdate:modelValue":n[3]||=e=>X(c).x=e,as:`div`,min:-100,max:100,step:1,label:X(t)(`settings.live2d.scale-and-position.x`)},{label:W(()=>[q(`div`,Pn,[q(`div`,null,$(X(t)(`settings.live2d.scale-and-position.x`)),1),q(`button`,{"px-2":``,"text-xs":``,"outline-none":``,title:`Reset value to default`,onClick:n[2]||=()=>X(c).x=0},[...n[9]||=[q(`div`,{"i-solar:forward-linear":``,"transform-scale-x--100":``,text:`neutral-500 dark:neutral-400`},null,-1)]])])]),_:1},8,[`modelValue`,`label`]),R(X(l),{modelValue:X(c).y,"onUpdate:modelValue":n[5]||=e=>X(c).y=e,as:`div`,min:-100,max:100,step:1,label:X(t)(`settings.live2d.scale-and-position.y`)},{label:W(()=>[q(`div`,Fn,[q(`div`,null,$(X(t)(`settings.live2d.scale-and-position.y`)),1),q(`button`,{"px-2":``,"text-xs":``,"outline-none":``,title:`Reset value to default`,onClick:n[4]||=()=>X(c).y=0},[...n[10]||=[q(`div`,{"i-solar:forward-linear":``,"transform-scale-x--100":``,text:`neutral-500 dark:neutral-400`},null,-1)]])])]),_:1},8,[`modelValue`,`label`])]),_:1},8,[`title`]),R(X(_),{title:X(t)(`settings.live2d.theme-color-from-model.title`),icon:`i-solar:magic-stick-3-bold-duotone`,"inner-class":`text-sm`,class:Z([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`]),size:`sm`,expand:!1},{default:W(()=>[R(X(y),{class:`mb-4 mt-2`,colors:e.palette.map(e=>({hex:e,name:e})),"mx-auto":``},null,8,[`colors`]),R(X(h),{variant:`secondary`,onClick:n[6]||=t=>e.$emit(`extractColorsFromModel`)},{default:W(()=>[L($(X(t)(`settings.live2d.theme-color-from-model.button-extract.title`)),1)]),_:1})]),_:1},8,[`title`]),R(X(_),{title:X(t)(`settings.live2d.focus.title`),icon:`i-solar:eye-scan-bold-duotone`,class:Z([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`]),size:`sm`,expand:!1},{default:W(()=>[R(X(i),{modelValue:X(a),"onUpdate:modelValue":n[7]||=e=>J(a)?a.value=e:null,label:X(t)(`settings.live2d.focus.button-disable.title`)},null,8,[`modelValue`,`label`])]),_:1},8,[`title`])],64))}}),Ln=In;const Rn={grid:`~ cols-5 gap-1`,"p-2":``},zn={class:`text-xs`},Bn={key:0},Vn={grid:`~ cols-5 gap-1`,"p-2":``},Hn={key:1},Un={grid:`~ cols-5 gap-1`,"p-2":``},Wn={class:`text-sm text-neutral-600 space-y-1 dark:text-neutral-400`},Gn={class:`flex justify-between`},Kn={class:`flex justify-between`},qn={class:`flex justify-between`},Jn={class:`text-sm text-neutral-600 space-y-1 dark:text-neutral-400`};var Yn=z({__name:`VRM`,props:{palette:{}},emits:[`extractColorsFromModel`],setup(e){let{t:n}=u(),r=t(),{modelSize:i,modelOffset:l,cameraFOV:d,modelRotationY:f,cameraDistance:p,trackingMode:m,directionalLightRotation:_,directionalLightIntensity:b,directionalLightColor:x,ambientLightIntensity:S,ambientLightColor:C,hemisphereLightIntensity:w,hemisphereSkyColor:ee,hemisphereGroundColor:te,envSelect:T,skyBoxIntensity:E}=ce(r),D=K(()=>[{value:`camera`,label:n(`settings.vrm.scale-and-position.eye-tracking-mode.options.option.camera`),class:`col-start-3`},{value:`mouse`,label:n(`settings.vrm.scale-and-position.eye-tracking-mode.options.option.mouse`),class:`col-start-4`},{value:`none`,label:n(`settings.vrm.scale-and-position.eye-tracking-mode.options.option.disabled`),class:`col-start-5`}]),O=[{value:`hemisphere`,label:`Hemisphere`,icon:{idle:`i-solar:forbidden-circle-linear rotate-45`,active:`i-solar:forbidden-circle-bold rotate-45`}},{value:`skyBox`,label:`SkyBox`,icon:{idle:`i-solar:gallery-circle-linear`,active:`i-solar:gallery-circle-bold`}}];return(e,t)=>(H(),I(G,null,[R(X(c),{title:X(n)(`settings.pages.models.sections.section.scene`),icon:`i-solar:people-nearby-bold-duotone`,class:Z([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`])},{default:W(()=>[R(X(y),{class:`mb-4 mt-2`,colors:e.palette.map(e=>({hex:e,name:e})),"mx-auto":``},null,8,[`colors`]),R(X(h),{variant:`secondary`,onClick:t[0]||=t=>e.$emit(`extractColorsFromModel`)},{default:W(()=>[L($(X(n)(`settings.vrm.theme-color-from-model.button-extract.title`)),1)]),_:1}),q(`div`,Rn,[R(X(a),{x:X(l).x,"onUpdate:x":t[1]||=e=>X(l).x=e,y:X(l).y,"onUpdate:y":t[2]||=e=>X(l).y=e,z:X(l).z,"onUpdate:z":t[3]||=e=>X(l).z=e,label:`Model Position`,"x-config":{min:-X(i).x*2,max:X(i).x*2,step:X(i).x/100,label:`X`,formatValue:e=>e?.toFixed(4)},"y-config":{min:-X(i).y*2,max:X(i).y*2,step:X(i).y/100,label:`Y`,formatValue:e=>e?.toFixed(4)},"z-config":{min:-X(i).z*2,max:X(i).z*2,step:X(i).z/100,label:`Z`,formatValue:e=>e?.toFixed(4)}},null,8,[`x`,`y`,`z`,`x-config`,`y-config`,`z-config`]),R(X(o),{modelValue:X(d),"onUpdate:modelValue":t[4]||=e=>J(d)?d.value=e:null,config:{min:1,max:180,step:1,label:X(n)(`settings.vrm.scale-and-position.fov`)},label:X(n)(`settings.vrm.scale-and-position.fov`)},null,8,[`modelValue`,`config`,`label`]),R(X(o),{modelValue:X(p),"onUpdate:modelValue":t[5]||=e=>J(p)?p.value=e:null,config:{min:X(i).z,max:X(i).z*20,step:X(i).z/100,label:X(n)(`settings.vrm.scale-and-position.camera-distance`),formatValue:e=>e?.toFixed(4)},label:X(n)(`settings.vrm.scale-and-position.camera-distance`)},null,8,[`modelValue`,`config`,`label`]),R(X(o),{modelValue:X(f),"onUpdate:modelValue":t[6]||=e=>J(f)?f.value=e:null,config:{min:-180,max:180,step:1,label:X(n)(`settings.vrm.scale-and-position.rotation-y`)},label:X(n)(`settings.vrm.scale-and-position.rotation-y`)},null,8,[`modelValue`,`config`,`label`]),q(`div`,zn,$(X(n)(`settings.vrm.scale-and-position.eye-tracking-mode.title`))+`: `,1),t[18]||=q(`div`,null,null,-1),(H(!0),I(G,null,Je(D.value,e=>(H(),P(X(h),{key:e.value,class:Z([e.class,`w-auto`]),size:`sm`,variant:X(m)===e.value?`primary`:`secondary`,label:e.label,onClick:t=>m.value=e.value},null,8,[`class`,`variant`,`label`,`onClick`]))),128)),R(X(o),{modelValue:X(_).x,"onUpdate:modelValue":t[7]||=e=>X(_).x=e,config:{min:-180,max:180,step:1,label:`RotationXDeg`,formatValue:e=>e?.toFixed(0)},label:`Directional Light Rotation - X`},null,8,[`modelValue`,`config`]),R(X(o),{modelValue:X(_).y,"onUpdate:modelValue":t[8]||=e=>X(_).y=e,config:{min:-180,max:180,step:1,label:`RotationYDeg`,formatValue:e=>e?.toFixed(0)},label:`Directional Light Rotation - Y`},null,8,[`modelValue`,`config`]),R(X(s),{modelValue:X(x),"onUpdate:modelValue":t[9]||=e=>J(x)?x.value=e:null,label:`Directional Light Color`},null,8,[`modelValue`]),R(X(o),{modelValue:X(b),"onUpdate:modelValue":t[10]||=e=>J(b)?b.value=e:null,config:{min:0,max:10,step:.01,label:`Intensity`},label:`Directional Light Intensity`},null,8,[`modelValue`]),R(X(o),{modelValue:X(S),"onUpdate:modelValue":t[11]||=e=>J(S)?S.value=e:null,config:{min:0,max:10,step:.01,label:`Intensity`},label:`Ambient Light Intensity`},null,8,[`modelValue`]),R(X(s),{modelValue:X(C),"onUpdate:modelValue":t[12]||=e=>J(C)?C.value=e:null,label:`Ambient Light Color`},null,8,[`modelValue`])]),q(`div`,null,[R(X(g),{modelValue:X(T),"onUpdate:modelValue":t[17]||=e=>J(T)?T.value=e:null,tabs:O,label:`Environment`},{default:W(()=>[X(T)===`hemisphere`?(H(),I(`div`,Bn,[q(`div`,Vn,[R(X(o),{modelValue:X(w),"onUpdate:modelValue":t[13]||=e=>J(w)?w.value=e:null,config:{min:0,max:10,step:.01,label:`Intensity`},label:`Hemisphere Light Intensity`},null,8,[`modelValue`]),R(X(s),{modelValue:X(ee),"onUpdate:modelValue":t[14]||=e=>J(ee)?ee.value=e:null,label:`Hemisphere Sky Color`},null,8,[`modelValue`]),R(X(s),{modelValue:X(te),"onUpdate:modelValue":t[15]||=e=>J(te)?te.value=e:null,label:`Hemisphere Ground Color`},null,8,[`modelValue`])])])):(H(),I(`div`,Hn,[q(`div`,Un,[R(X(o),{modelValue:X(E),"onUpdate:modelValue":t[16]||=e=>J(E)?E.value=e:null,config:{min:0,max:1,step:.01,label:`Intensity`},label:X(n)(`settings.vrm.skybox.skybox-intensity`)},null,8,[`modelValue`,`label`])])]))]),_:1},8,[`modelValue`])])]),_:1},8,[`title`]),R(X(c),{title:X(n)(`settings.vrm.change-model.title`),icon:`i-solar:magic-stick-3-bold-duotone`,"inner-class":`text-sm`,class:Z([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`])},{default:W(()=>[R(X(v),{label:X(n)(`settings.vrm.scale-and-position.model-info-title`)},{default:W(()=>[q(`div`,null,[q(`div`,Wn,[q(`div`,Gn,[q(`span`,null,$(X(n)(`settings.vrm.scale-and-position.model-info-x`)),1),q(`span`,null,$(X(i).x.toFixed(4)),1)]),q(`div`,Kn,[q(`span`,null,$(X(n)(`settings.vrm.scale-and-position.model-info-y`)),1),q(`span`,null,$(X(i).y.toFixed(4)),1)]),q(`div`,qn,[q(`span`,null,$(X(n)(`settings.vrm.scale-and-position.model-info-z`)),1),q(`span`,null,$(X(i).z.toFixed(4)),1)])])])]),_:1},8,[`label`]),R(X(v),{theme:`lime`,label:`Tips!`},{default:W(()=>[q(`div`,Jn,$(X(n)(`settings.vrm.scale-and-position.tips`)),1)]),_:1})]),_:1},8,[`title`])],64))}}),Xn=Yn,Zn=z({__name:`index`,props:{palette:{},settingsClass:{},live2dSceneClass:{},vrmSceneClass:{}},emits:[`extractColorsFromModel`],setup(i){let a=i,o=Y(),s=b(),c=Ie(),{live2dDisableFocus:l,stageModelSelectedUrl:u,stageModelSelected:d,stageModelRenderer:f}=ce(c);return Ze(o,async()=>{if(d.value=o.value?.id,await c.updateStageModel(),o.value)switch(o.value.format){case N.Live2dZip:r().shouldUpdateView();break;case N.VRM:t().shouldUpdateView();break}},{deep:!0}),(t,r)=>(H(),I(G,null,[q(`div`,{flex:`~ col gap-2`,"z-10":``,"overflow-y-scroll":``,"p-2":``,class:Z([...a.settingsClass?typeof a.settingsClass==`string`?[a.settingsClass]:a.settingsClass:[]])},[R(v,{label:`We support both 2D and 3D models`},{default:W(()=>[...r[3]||=[q(`p`,null,[L(` Click `),q(`strong`,null,`Select Model`),L(` to import different formats of models into catalog, currently, `),q(`code`,null,`.zip`),L(` (Live2D) and `),q(`code`,null,`.vrm`),L(` (VRM) are supported. `)],-1),q(`p`,null,` Neuro-sama uses 2D model driven by Live2D Inc. developed framework. While Grok Ani (first female character announced in Grok Companion) uses 3D model that is driven by VRM / MMD open formats. `,-1)]]),_:1}),R(Mn,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e},{default:W(()=>[R(h,{variant:`secondary`},{default:W(()=>[...r[4]||=[L(` Select Model `,-1)]]),_:1})]),_:1},8,[`modelValue`]),X(f)===`live2d`?(H(),P(Ln,{key:0,palette:t.palette,onExtractColorsFromModel:r[1]||=e=>t.$emit(`extractColorsFromModel`)},null,8,[`palette`])):F(``,!0),X(f)===`vrm`?(H(),P(Xn,{key:1,palette:t.palette,onExtractColorsFromModel:r[2]||=e=>t.$emit(`extractColorsFromModel`)},null,8,[`palette`])):F(``,!0)],2),X(f)===`live2d`?(H(),I(`div`,{key:0,class:Z([...a.live2dSceneClass?typeof a.live2dSceneClass==`string`?[a.live2dSceneClass]:a.live2dSceneClass:[]])},[R(n,{"focus-at":{x:X(s).x.value,y:X(s).y.value},"model-src":X(u),"disable-focus-at":X(l)},null,8,[`focus-at`,`model-src`,`disable-focus-at`])],2)):F(``,!0),X(f)===`vrm`?(H(),I(`div`,{key:1,class:Z([...a.vrmSceneClass?typeof a.vrmSceneClass==`string`?[a.vrmSceneClass]:a.vrmSceneClass:[]])},[R(e,{"model-src":X(u)},null,8,[`model-src`])],2)):F(``,!0)],64))}}),Qn=Zn;const $n={flex:``,class:`relative h-full flex-col-reverse md:flex-row`},er={key:1,text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:15},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var tr=z({__name:`index`,setup(e){let t=Y(),n=Y([]);async function r(){if(!t.value)return;let e=await t.value.captureFrame();if(!e){console.error(`No frame captured`);return}let r=URL.createObjectURL(e);try{let e=new rt(r),t=await e.getPalette();n.value=Object.values(t).map(e=>e?.hex).filter(e=>typeof e==`string`)}finally{URL.revokeObjectURL(r)}}let{iconAnimationStarted:i,showIconAnimation:a,animationIcon:o}=ot(`i-solar:people-nearby-bold-duotone`);return(e,t)=>{let s=Ye(`motion`);return H(),I(G,null,[q(`div`,$n,[R(X(Qn),{"settings-class":`w-100% md:w-40% lg:w-40% xl:w-25% 2xl:w-30% h-fit sm:max-h-80dvh overflow-y-scroll relative`,"live-2d-scene-class":`absolute max-h-[calc(100dvh-100px-56px)] w-full h-full`,"vrm-scene-class":`absolute max-h-[calc(100dvh-100px-56px)] w-full h-full`,palette:n.value,onExtractColorsFromModel:r},null,8,[`palette`])]),X(a)?(H(),P(at,{key:0,"z-index":-1,icon:X(o),"icon-size":12,duration:1e3,started:X(i),"is-reverse":!0,position:`calc(100dvw - 9.5rem), calc(100dvh - 9.5rem)`,"text-color":`text-neutral-200/50 dark:text-neutral-600/20`},null,8,[`icon`,`started`])):He((H(),I(`div`,er,[...t[0]||=[q(`div`,{text:`60`,"i-solar:people-nearby-bold-duotone":``},null,-1)]])),[[s]])],64)}}});typeof it==`function`&&it(tr);var nr=tr;export{nr as default}; \ No newline at end of file diff --git a/assets/models-D7u6cTwR.js b/assets/models-D7u6cTwR.js new file mode 100644 index 0000000000000000000000000000000000000000..9a8b5ffb584d4d2fee52f7c28cee972e21e77c83 --- /dev/null +++ b/assets/models-D7u6cTwR.js @@ -0,0 +1 @@ +import{d as e,e as t,i as n,k as r}from"./Scenes-CKSNtwSU.js";import{aA as i,aM as a,aN as o,aO as s,aR as c,aX as l,ae as u,ag as d,ah as f,ai as p,aj as m,ao as h,ax as g,ay as _,b as v,b$ as y,b0 as b,b1 as x,b2 as S,b3 as C,b4 as w,b5 as ee,b6 as te,b7 as T,b8 as E,b9 as D,bA as ne,bB as O,bC as k,bD as re,bE as ie,bF as ae,bG as oe,bH as se,bI as ce,bJ as A,bQ as le,bY as ue,ba as de,bb as fe,bc as pe,bd as me,be as he,bf as ge,bg as _e,bh as ve,bi as ye,bj as be,bk as xe,bl as Se,bm as Ce,bn as we,bo as Te,bp as Ee,bq as De,br as Oe,bs as ke,bt as Ae,bu as je,bv as j,bw as Me,bx as Ne,by as Pe,bz as Fe,c as Ie,c0 as Le,c4 as Re,c5 as ze,cj as Be,ck as Ve,cl as He,e as M,e$ as N,eA as P,eB as F,eC as I,eD as L,eF as R,eG as z,eH as B,eI as Ue,eL as We,eM as Ge,eN as V,eO as H,eP as Ke,eQ as qe,eR as U,eT as Je,eU as W,eW as Ye,eX as Xe,eZ as Ze,eu as Qe,ev as $e,ew as G,ez as K,f as et,f0 as tt,f1 as q,f2 as J,f6 as nt,f7 as Y,f8 as X,f9 as Z,fa as rt,fb as Q}from"./index-D3Bcbz9S.js";import{b as it}from"./browser-DlzSerl9.js";import"./dist-DInrA4pj.js";import{b as at}from"./route-block-Dc_s4AGN.js";import"./ibl-CoXg6NDS.js";import"./import-url-browser-CQxpIBxI.js";import"./duckdb-mvp-DkPAVKN8.js";import"./index-CAcLDIRJ-D76TFz33.js";import"./core-C5TqIlxQ.js";import"./airi-card-CObXZhjH.js";import"./hearing-BXMZCHIN.js";import{b as ot}from"./IconAnimation-CpQ8Hyb3.js";import{b as st}from"./icon-animation-CL2bLS_O.js";const ct=[`INPUT`,`TEXTAREA`];function lt(e,t,n,r={}){if(!t||r.enableIgnoredElement&&ct.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-reka-collection-item]`,itemsArray:o=[],loop:s=!0,dir:c=`ltr`,preventScroll:l=!0,focus:u=!1}=r,[d,f,p,m,h,g]=[e.key===`ArrowRight`,e.key===`ArrowLeft`,e.key===`ArrowUp`,e.key===`ArrowDown`,e.key===`Home`,e.key===`End`],_=p||m,v=d||f;if(!h&&!g&&(!_&&!v||i===`vertical`&&v||i===`horizontal`&&_))return null;let y=n?Array.from(n.querySelectorAll(a)):o;if(!y.length)return null;l&&e.preventDefault();let b=null;if(v||_){let e=_?m:c===`ltr`?d:f;b=ut(y,t,{goForward:e,loop:s})}else h?b=y.at(0)||null:g&&(b=y.at(-1)||null);return u&&b?.focus(),b}function ut(e,t,n,r=e.length){if(--r===0)return null;let i=e.indexOf(t),a=n.goForward?i+1:i-1;if(!n.loop&&(a<0||a>=e.length))return null;let o=(a+e.length)%e.length,s=e[o];if(!s)return null;let c=s.hasAttribute(`disabled`)&&s.getAttribute(`disabled`)!==`false`;return c?ut(e,s,n,r):s}var dt=B({__name:`DialogTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Ae(),{forwardRef:r,currentElement:i}=k();return n.contentId||=Fe(void 0,`reka-dialog-content`),Ke(()=>{n.triggerElement.value=i.value}),(e,i)=>(U(),F(Y(j),V(t,{ref:Y(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":Y(n).open.value||!1,"aria-controls":Y(n).open.value?Y(n).contentId:void 0,"data-state":Y(n).open.value?`open`:`closed`,onClick:Y(n).onOpenToggle}),{default:N(()=>[W(e.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`onClick`]))}}),ft=dt;const[pt,mt]=A(`RovingFocusGroup`);var ht=B({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,i=n,{loop:a,orientation:o,dir:s}=nt(r),c=oe(s),l=Ve(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=J(!1),d=J(!1),f=J(0),{getItems:p,CollectionSlot:m}=de({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(T,E);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``),t=e.find(e=>e.getAttribute(`data-active`)===``),n=e.find(e=>e.getAttribute(`data-highlighted`)===``),i=e.find(e=>e.id===l.value),a=[t,n,i,...e].filter(Boolean);D(a,r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),mt({loop:a,dir:c,orientation:o,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(e,t)=>(U(),F(Y(m),null,{default:N(()=>[z(Y(j),{tabindex:u.value||f.value===0?-1:0,"data-orientation":Y(o),as:e.as,"as-child":e.asChild,dir:Y(c),style:{outline:`none`},onMousedown:t[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:t[1]||=e=>u.value=!1},{default:N(()=>[W(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),gt=ht,_t=B({__name:`MenuAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return(e,n)=>(U(),F(Y(C),Z(Ue(t)),{default:N(()=>[W(e.$slots,`default`)]),_:3},16))}}),vt=_t;function yt(){let e=J(!1);return Ke(()=>{Be(`keydown`,()=>{e.value=!0},{capture:!0,passive:!0}),Be([`pointerdown`,`pointermove`],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const bt=He(yt),[xt,St]=A([`MenuRoot`,`MenuSub`],`MenuContext`),[Ct,wt]=A(`MenuRoot`);var Tt=B({__name:`MenuRoot`,props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,{modal:i,dir:a}=nt(n),o=oe(a),s=Ve(n,`open`,r),c=J(),l=bt();return St({open:s,onOpenChange:e=>{s.value=e},content:c,onContentChange:e=>{c.value=e}}),wt({onClose:()=>{s.value=!1},isUsingKeyboardRef:l,dir:o,modal:i}),(e,t)=>(U(),F(Y(w),null,{default:N(()=>[W(e.$slots,`default`)]),_:3}))}}),Et=Tt;const[Dt,Ot]=A(`MenuContent`);var kt=B({__name:`MenuContentImpl`,props:We({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...x}),emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=xt(),a=Ct(),{trapFocus:o,disableOutsidePointerEvents:s,loop:c}=nt(n);ie(),se(s.value);let l=J(``),u=J(0),d=J(0),f=J(null),p=J(`right`),m=J(0),h=J(null),g=J(),{forwardRef:_,currentElement:v}=k(),{handleTypeaheadSearch:y}=Ne();Ze(v,e=>{i.onContentChange(e)}),qe(()=>{window.clearTimeout(u.value)});function b(e){let t=p.value===f.value?.side;return t&&we(e,f.value?.area)}async function x(e){r(`openAutoFocus`,e),!e.defaultPrevented&&(e.preventDefault(),v.value?.focus({preventScroll:!0}))}function C(e){if(e.defaultPrevented)return;let t=e.target,n=t.closest(`[data-reka-menu-content]`)===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1,o=lt(e,ce(),v.value,{loop:c.value,arrowKeyOptions:`vertical`,dir:a?.dir.value,focus:!0,attributeName:`[data-reka-collection-item]:not([data-disabled])`});if(o)return o?.focus();if(e.code===`Space`)return;let s=g.value?.getItems()??[];if(n&&(e.key===`Tab`&&e.preventDefault(),!r&&i&&y(e.key,s)),e.target!==v.value||!_e.includes(e.key))return;e.preventDefault();let l=[...s.map(e=>e.ref)];ye.includes(e.key)&&l.reverse(),xe(l)}function w(e){e?.currentTarget?.contains?.(e.target)||(window.clearTimeout(u.value),l.value=``)}function ee(e){if(!Ce(e))return;let t=e.target,n=m.value!==e.clientX;if((e?.currentTarget)?.contains(t)&&n){let t=e.clientX>m.value?`right`:`left`;p.value=t,m.value=e.clientX}}return Ot({onItemEnter:e=>!!b(e),onItemLeave:e=>{b(e)||(v.value?.focus(),h.value=null)},onTriggerLeave:e=>!!b(e),searchRef:l,pointerGraceTimerRef:d,onPointerGraceIntentChange:e=>{f.value=e}}),(e,t)=>(U(),F(Y(Te),{"as-child":``,trapped:Y(o),onMountAutoFocus:x,onUnmountAutoFocus:t[7]||=e=>r(`closeAutoFocus`,e)},{default:N(()=>[z(Y(Ee),{"as-child":``,"disable-outside-pointer-events":Y(s),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:t[3]||=e=>r(`pointerDownOutside`,e),onFocusOutside:t[4]||=e=>r(`focusOutside`,e),onInteractOutside:t[5]||=e=>r(`interactOutside`,e),onDismiss:t[6]||=e=>r(`dismiss`)},{default:N(()=>[z(Y(gt),{ref_key:`rovingFocusGroupRef`,ref:g,"current-tab-stop-id":h.value,"onUpdate:currentTabStopId":t[0]||=e=>h.value=e,"as-child":``,orientation:`vertical`,dir:Y(a).dir.value,loop:Y(c),onEntryFocus:t[1]||=e=>{r(`entryFocus`,e),Y(a).isUsingKeyboardRef.value||e.preventDefault()}},{default:N(()=>[z(Y(S),{ref:Y(_),role:`menu`,as:e.as,"as-child":e.asChild,"aria-orientation":`vertical`,"data-reka-menu-content":``,"data-state":Y(Se)(Y(i).open.value),dir:Y(a).dir.value,side:e.side,"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,"prioritize-position":e.prioritizePosition,"position-strategy":e.positionStrategy,"update-position-strategy":e.updatePositionStrategy,sticky:e.sticky,"hide-when-detached":e.hideWhenDetached,reference:e.reference,onKeydown:C,onBlur:w,onPointermove:ee},{default:N(()=>[W(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`,`dir`,`side`,`side-offset`,`align`,`align-offset`,`avoid-collisions`,`collision-boundary`,`collision-padding`,`arrow-padding`,`prioritize-position`,`position-strategy`,`update-position-strategy`,`sticky`,`hide-when-detached`,`reference`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),At=kt,jt=B({inheritAttrs:!1,__name:`MenuItemImpl`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=Dt(),{forwardRef:r}=k(),{CollectionItem:i}=de(),a=J(!1);async function o(e){if(!e.defaultPrevented&&Ce(e))if(t.disabled)n.onItemLeave(e);else{let t=n.onItemEnter(e);if(!t){let t=e.currentTarget;t?.focus({preventScroll:!0})}}}async function s(e){await H(),!e.defaultPrevented&&Ce(e)&&n.onItemLeave(e)}return(e,t)=>(U(),F(Y(i),{value:{textValue:e.textValue}},{default:N(()=>[z(Y(j),V({ref:Y(r),role:`menuitem`,tabindex:`-1`},e.$attrs,{as:e.as,"as-child":e.asChild,"aria-disabled":e.disabled||void 0,"data-disabled":e.disabled?``:void 0,"data-highlighted":a.value?``:void 0,onPointermove:o,onPointerleave:s,onFocus:t[0]||=async t=>{await H(),!(t.defaultPrevented||e.disabled)&&(a.value=!0)},onBlur:t[1]||=async e=>{await H(),!e.defaultPrevented&&(a.value=!1)}}),{default:N(()=>[W(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`data-disabled`,`data-highlighted`])]),_:3},8,[`value`]))}}),Mt=jt,Nt=B({__name:`MenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=k(),o=Ct(),s=Dt(),c=J(!1);async function l(){let e=a.value;if(!n.disabled&&e){let e=new CustomEvent(ve,{bubbles:!0,cancelable:!0});r(`select`,e),await H(),e.defaultPrevented?c.value=!1:o.onClose()}}return(e,t)=>(U(),F(Mt,V(n,{ref:Y(i),onClick:l,onPointerdown:t[0]||=()=>{c.value=!0},onPointerup:t[1]||=async e=>{await H(),!e.defaultPrevented&&(c.value||e.currentTarget?.click())},onKeydown:t[2]||=async t=>{let n=Y(s).searchRef.value!==``;e.disabled||n&&t.key===` `||Y(be).includes(t.key)&&(t.currentTarget.click(),t.preventDefault())}}),{default:N(()=>[W(e.$slots,`default`)]),_:3},16))}}),Pt=Nt,Ft=B({__name:`MenuRootContentModal`,props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=O(n,r),a=xt(),{forwardRef:o,currentElement:s}=k();return ne(s),(e,t)=>(U(),F(At,V(Y(i),{ref:Y(o),"trap-focus":Y(a).open.value,"disable-outside-pointer-events":Y(a).open.value,"disable-outside-scroll":!0,onDismiss:t[0]||=e=>Y(a).onOpenChange(!1),onFocusOutside:t[1]||=$e(e=>r(`focusOutside`,e),[`prevent`])}),{default:N(()=>[W(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`]))}}),It=Ft,Lt=B({__name:`MenuRootContentNonModal`,props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=O(n,r),a=xt();return(e,t)=>(U(),F(At,V(Y(i),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:t[0]||=e=>Y(a).onOpenChange(!1)}),{default:N(()=>[W(e.$slots,`default`)]),_:3},16))}}),Rt=Lt,zt=B({__name:`MenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`entryFocus`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=O(n,r),a=xt(),o=Ct();return(e,t)=>(U(),F(Y(Me),{present:e.forceMount||Y(a).open.value},{default:N(()=>[Y(o).modal.value?(U(),F(It,Z(V({key:0},{...e.$attrs,...Y(i)})),{default:N(()=>[W(e.$slots,`default`)]),_:3},16)):(U(),F(Rt,Z(V({key:1},{...e.$attrs,...Y(i)})),{default:N(()=>[W(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Bt=zt,Vt=B({__name:`MenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(U(),F(Y(me),Z(Ue(t)),{default:N(()=>[W(e.$slots,`default`)]),_:3},16))}}),Ht=Vt;const[Ut,Wt]=A(`DropdownMenuRoot`);var Gt=B({__name:`DropdownMenuRoot`,props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;k();let i=Ve(n,`open`,r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=J(),{modal:o,dir:s}=nt(n),c=oe(s);return Wt({open:i,onOpenChange:e=>{i.value=e},onOpenToggle:()=>{i.value=!i.value},triggerId:``,triggerElement:a,contentId:``,modal:o,dir:c}),(e,t)=>(U(),F(Y(Et),{open:Y(i),"onUpdate:open":t[0]||=e=>q(i)?i.value=e:null,dir:Y(c),modal:Y(o)},{default:N(()=>[W(e.$slots,`default`,{open:Y(i)})]),_:3},8,[`open`,`dir`,`modal`]))}}),Kt=Gt,qt=B({__name:`DropdownMenuContent`,props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=O(n,r);k();let a=Ut(),o=J(!1);function s(e){e.defaultPrevented||(o.value||setTimeout(()=>{a.triggerElement.value?.focus()},0),o.value=!1,e.preventDefault())}return a.contentId||=Fe(void 0,`reka-dropdown-menu-content`),(e,t)=>(U(),F(Y(Bt),V(Y(i),{id:Y(a).contentId,"aria-labelledby":Y(a)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-dropdown-menu-content-available-width":`var(--reka-popper-available-width)`,"--reka-dropdown-menu-content-available-height":`var(--reka-popper-available-height)`,"--reka-dropdown-menu-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-dropdown-menu-trigger-height":`var(--reka-popper-anchor-height)`},onCloseAutoFocus:s,onInteractOutside:t[0]||=e=>{if(e.defaultPrevented)return;let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!Y(a).modal.value||r)&&(o.value=!0),Y(a).triggerElement.value?.contains(e.target)&&e.preventDefault()}}),{default:N(()=>[W(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`]))}}),Jt=qt,Yt=B({__name:`DropdownMenuItem`,props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=ae(r);return k(),(e,t)=>(U(),F(Y(Pt),Z(Ue({...n,...Y(i)})),{default:N(()=>[W(e.$slots,`default`)]),_:3},16))}}),Xt=Yt,Zt=B({__name:`DropdownMenuPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(U(),F(Y(Ht),Z(Ue(t)),{default:N(()=>[W(e.$slots,`default`)]),_:3},16))}}),Qt=Zt,$t=B({__name:`DropdownMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Ut(),{forwardRef:r,currentElement:i}=k();return Ke(()=>{n.triggerElement=i}),n.triggerId||=Fe(void 0,`reka-dropdown-menu-trigger`),(e,i)=>(U(),F(Y(vt),{"as-child":``},{default:N(()=>[z(Y(j),{id:Y(n).triggerId,ref:Y(r),type:e.as===`button`?`button`:void 0,"as-child":t.asChild,as:e.as,"aria-haspopup":`menu`,"aria-expanded":Y(n).open.value,"aria-controls":Y(n).open.value?Y(n).contentId:void 0,"data-disabled":e.disabled?``:void 0,disabled:e.disabled,"data-state":Y(n).open.value?`open`:`closed`,onClick:i[0]||=async t=>{!e.disabled&&t.button===0&&t.ctrlKey===!1&&(Y(n)?.onOpenToggle(),await H(),Y(n).open.value&&t.preventDefault())},onKeydown:i[1]||=Qe(t=>{e.disabled||([`Enter`,` `].includes(t.key)&&Y(n).onOpenToggle(),t.key===`ArrowDown`&&Y(n).onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(t.key)&&t.preventDefault())},[`enter`,`space`,`arrow-down`])},{default:N(()=>[W(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as-child`,`as`,`aria-expanded`,`aria-controls`,`data-disabled`,`disabled`,`data-state`])]),_:3}))}}),en=$t;const[$,tn]=A(`EditableRoot`);var nn=B({inheritAttrs:!1,__name:`EditableRoot`,props:{defaultValue:{type:String,required:!1},modelValue:{type:[String,null],required:!1},placeholder:{type:[String,Object],required:!1,default:`Enter text...`},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1},activationMode:{type:String,required:!1,default:`focus`},selectOnFocus:{type:Boolean,required:!1,default:!1},submitMode:{type:String,required:!1,default:`blur`},startWithEditMode:{type:Boolean,required:!1},maxLength:{type:Number,required:!1},autoResize:{type:Boolean,required:!1,default:!1},id:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`},name:{type:String,required:!1},required:{type:Boolean,required:!1,default:!1}},emits:[`update:modelValue`,`submit`,`update:state`],setup(e,{expose:t,emit:n}){let r=e,i=n,{id:a,name:o,defaultValue:s,startWithEditMode:c,placeholder:l,maxLength:u,disabled:d,dir:f,submitMode:p,activationMode:m,selectOnFocus:h,readonly:g,autoResize:_,required:v}=nt(r),y=J(),b=oe(f),x=J(c.value??!1),S=Ve(r,`modelValue`,i,{defaultValue:s.value??``,passive:r.modelValue===void 0}),{primitiveElement:C,currentElement:w}=je(),te=re(w),T=K(()=>typeof l.value==`string`?{edit:l.value,preview:l.value}:l.value),E=J(S.value);Ze(()=>S.value,()=>{E.value=S.value},{immediate:!0,deep:!0});function D(){x.value=!1,i(`update:state`,`cancel`)}function ne(){x.value=!0,E.value=S.value,i(`update:state`,`edit`)}function O(){S.value=E.value,x.value=!1,i(`update:state`,`submit`),i(`submit`,S.value)}function k(){x.value&&(p.value===`blur`||p.value===`both`?O():D())}let ie=Oe(()=>k(),w,x),ae=De(()=>k(),w,x),se=K(()=>S.value===``);return t({submit:O,cancel:D,edit:ne}),tn({id:a,name:o,disabled:d,isEditing:x,maxLength:u,modelValue:S,inputValue:E,placeholder:T,edit:ne,cancel:D,submit:O,activationMode:m,submitMode:p,selectOnFocus:h,inputRef:y,startWithEditMode:c,isEmpty:se,readonly:g,autoResize:_}),(e,t)=>(U(),F(Y(j),V(e.$attrs,{ref_key:`primitiveElement`,ref:C,as:e.as,"as-child":e.asChild,dir:Y(b),"data-dismissable-layer":``,onFocusCapture:Y(ae).onFocusCapture,onBlurCapture:Y(ae).onBlurCapture,onPointerdownCapture:Y(ie).onPointerDownCapture}),{default:N(()=>[W(e.$slots,`default`,{modelValue:Y(S),isEditing:x.value,isEmpty:se.value,submit:O,cancel:D,edit:ne}),Y(te)&&Y(o)?(U(),F(Y(ee),{key:0,type:`text`,value:Y(S),name:Y(o),disabled:Y(d),required:Y(v)},null,8,[`value`,`name`,`disabled`,`required`])):I(`v-if`,!0)]),_:3},16,[`as`,`as-child`,`dir`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),rn=nn,an=B({__name:`EditableArea`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e,n=$();return(e,r)=>(U(),F(Y(j),V(t,{"data-placeholder-shown":Y(n).isEditing.value?void 0:``,"data-focus":Y(n).isEditing.value?``:void 0,"data-focused":Y(n).isEditing.value?``:void 0,"data-empty":Y(n).isEmpty.value?``:void 0,"data-readonly":Y(n).readonly.value?``:void 0,"data-disabled":Y(n).disabled.value?``:void 0,style:Y(n).autoResize.value?{display:`inline-grid`}:void 0}),{default:N(()=>[W(e.$slots,`default`)]),_:3},16,[`data-placeholder-shown`,`data-focus`,`data-focused`,`data-empty`,`data-readonly`,`data-disabled`,`style`]))}}),on=an,sn=B({__name:`EditableEditTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=$();return(e,r)=>(U(),F(Y(j),V(t,{"aria-label":`edit`,"aria-disabled":Y(n).disabled.value?``:void 0,"data-disabled":Y(n).disabled.value?``:void 0,disabled:Y(n).disabled.value,type:e.as===`button`?`button`:void 0,hidden:Y(n).isEditing.value?``:void 0,onClick:Y(n).edit}),{default:N(()=>[W(e.$slots,`default`,{},()=>[r[0]||=R(`Edit`)])]),_:3},16,[`aria-disabled`,`data-disabled`,`disabled`,`type`,`hidden`,`onClick`]))}}),cn=sn,ln=B({__name:`EditableInput`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},setup(e){let t=e,n=Pe(),r=$(),i=K(()=>r.disabled.value),a=K(()=>r.placeholder.value?.edit),{primitiveElement:o,currentElement:s}=je();Ke(()=>{r.inputRef.value=s.value,r.startWithEditMode.value&&(r.inputRef.value?.focus({preventScroll:!0}),r.selectOnFocus.value&&r.inputRef.value?.select())}),Ze(r.isEditing,e=>{e&&H(()=>{r.inputRef.value?.focus({preventScroll:!0}),r.selectOnFocus.value&&r.inputRef.value?.select()})});function c(e){(r.submitMode.value===`enter`||r.submitMode.value===`both`)&&e.key===n.ENTER&&!e.shiftKey&&!e.metaKey&&r.submit()}return(e,n)=>(U(),F(Y(j),V({ref_key:`primitiveElement`,ref:o},t,{value:Y(r).inputValue.value,placeholder:a.value,disabled:i.value,maxlength:Y(r).maxLength.value,"data-disabled":i.value?``:void 0,"data-readonly":Y(r).readonly.value?``:void 0,readonly:Y(r).readonly.value,"aria-label":`editable input`,hidden:Y(r).autoResize.value?void 0:!Y(r).isEditing.value,style:Y(r).autoResize.value?{all:`unset`,gridArea:`1 / 1 / auto / auto`,visibility:Y(r).isEditing.value?void 0:`hidden`}:void 0,onInput:n[0]||=e=>Y(r).inputValue.value=e.target.value,onKeydown:[Qe(c,[`enter`,`space`]),Qe(Y(r).cancel,[`esc`])]}),{default:N(()=>[W(e.$slots,`default`)]),_:3},16,[`value`,`placeholder`,`disabled`,`maxlength`,`data-disabled`,`data-readonly`,`readonly`,`hidden`,`style`,`onKeydown`]))}}),un=ln,dn=B({__name:`EditablePreview`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=$(),r=K(()=>n.placeholder.value?.preview);function i(){n.activationMode.value===`focus`&&n.edit()}function a(){n.activationMode.value===`dblclick`&&n.edit()}return(e,o)=>(U(),F(Y(j),V(t,{tabindex:`0`,"data-placeholder-shown":Y(n).isEditing.value?void 0:``,hidden:Y(n).autoResize.value?void 0:Y(n).isEditing.value,style:Y(n).autoResize.value?{whiteSpace:`pre`,userSelect:`none`,gridArea:`1 / 1 / auto / auto`,visibility:Y(n).isEditing.value?`hidden`:void 0,overflow:`hidden`,textOverflow:`ellipsis`}:void 0,onFocusin:i,onDblclick:a}),{default:N(()=>[W(e.$slots,`default`,{},()=>[R(Q(Y(n).modelValue.value||r.value),1)])]),_:3},16,[`data-placeholder-shown`,`hidden`,`style`]))}}),fn=dn,pn=B({__name:`EditableSubmitTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=$();return(e,r)=>(U(),F(Y(j),V(t,{"aria-label":`submit`,"aria-disabled":Y(n).disabled.value?``:void 0,"data-disabled":Y(n).disabled.value?``:void 0,disabled:Y(n).disabled.value,type:e.as===`button`?`button`:void 0,hidden:Y(n).isEditing.value?void 0:``,onClick:Y(n).submit}),{default:N(()=>[W(e.$slots,`default`,{},()=>[r[0]||=R(`Submit`)])]),_:3},16,[`aria-disabled`,`data-disabled`,`disabled`,`type`,`hidden`,`onClick`]))}}),mn=pn;const hn={pt:`4 sm:0`,gap:`4 sm:6`,"h-full":``,flex:``,"flex-col":``},gn={flex:``,"items-center":``},_n={key:0},vn={class:`flex-1 md:flex-none`,"h-full":``,"w-full":``,"overflow-x-hidden":``,"overflow-y-scroll":``},yn={class:`grid grid-cols-2 gap-2 lg:max-h-80dvh`},bn=[`onClick`],xn={absolute:``,"left-3":``,"top-4":``,"z-1":``},Sn=[`onClick`],Cn={class:`min-w-60 lg:min-h-60`,aspect:`12/16`,"px-1":``,"py-2":``},wn=[`src`],Tn={"h-full":``,"w-full":``,flex:``,"flex-col":``},En={"w-full":``,"flex-1":``,"p-2":``},Dn={key:1,class:`flex gap-2`},On={flex:``,"items-center":``,"gap-1":``,text:`neutral-400 dark:neutral-600`};var kn=B({__name:`model-selector`,props:{modelValue:{type:Object,required:!1},modelModifiers:{}},emits:Ge([`close`],[`update:modelValue`]),setup(e,{emit:t}){let n=t,r=Xe(e,`modelValue`),i=et(),{displayModelsFromIndexedDBLoading:a,displayModels:o}=le(i);function s(e){i.removeDisplayModel(e.id)}let c=J(r.value?.id);function l(e){e===null||e.length===0||e[0].name.endsWith(`.zip`)&&i.addDisplayModel(M.Live2dZip,e[0])}function u(e){r.value=e,n(`close`,void 0)}function d(){r.value=o.value.find(e=>e.id===c.value),n(`close`,void 0)}function f(e){e===null||e.length===0||e[0].name.endsWith(`.vrm`)&&i.addDisplayModel(M.VRM,e[0])}let p={[M.Live2dZip]:`Live2D`,[M.Live2dDirectory]:`Live2D`,[M.VRM]:`VRM`,[M.PMXDirectory]:`MMD`,[M.PMXZip]:`MMD`,[M.PMD]:`MMD`},m=ue({accept:`.zip`,multiple:!1,reset:!0}),g=ue({accept:`.vrm`,multiple:!1,reset:!0});return m.onChange(l),g.onChange(f),(e,t)=>{let n=Ye(`auto-animate`);return U(),L(`div`,hn,[P(`div`,gn,[t[6]||=P(`div`,{"w-full":``,"flex-1":``,"text-xl":``},` Model Selector `,-1),P(`div`,null,[z(Y(Kt),null,{default:N(()=>[z(Y(en),{bg:`neutral-400/20 hover:neutral-400/45 active:neutral-400/60 dark:neutral-700/50 hover:dark:neutral-700/65 active:dark:neutral-700/90`,flex:``,"items-center":``,"justify-center":``,"gap-1":``,"rounded-lg":``,"px-2":``,"py-1":``,"backdrop-blur-sm":``,transition:`colors duration-200 ease-in-out`,"aria-label":`Options for Display Models`},{default:N(()=>[...t[3]||=[P(`div`,{"i-solar:add-circle-bold":``},null,-1),P(`div`,null,`Add`,-1)]]),_:1}),z(Y(Qt),null,{default:N(()=>[z(Y(Jt),{class:`will-change-[opacity,transform] z-10000 max-w-45 rounded-lg p-0.5 shadow-md outline-none data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade`,bg:`neutral-700/50 dark:neutral-950/50`,transition:`colors duration-200 ease-in-out`,"backdrop-blur-sm":``,align:`end`,side:`bottom`,"side-offset":8},{default:N(()=>[z(Y(Xt),{class:`data-[disabled]:text-mauve8 relative flex cursor-pointer select-none items-center rounded-md px-3 py-2 text-base leading-none outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-primary-100/20 sm:text-sm data-[highlighted]:text-primary-200`,transition:`colors duration-200 ease-in-out`,onClick:t[0]||=e=>Y(m).open()},{default:N(()=>[...t[4]||=[R(` Live2D `,-1)]]),_:1}),z(Y(Xt),{class:`data-[disabled]:text-mauve8 relative flex cursor-pointer select-none items-center rounded-md px-3 py-2 text-base leading-none outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-primary-100/20 sm:text-sm data-[highlighted]:text-primary-200`,transition:`colors duration-200 ease-in-out`,onClick:t[1]||=e=>Y(g).open()},{default:N(()=>[...t[5]||=[R(` VRM `,-1)]]),_:1})]),_:1})]),_:1})]),_:1})])]),Y(a)?(U(),L(`div`,_n,` Loading display models... `)):I(``,!0),P(`div`,vn,[P(`div`,yn,[(U(!0),L(G,null,Je(Y(o),e=>tt((U(),L(`div`,{key:e.id,relative:``,"w-full":``,flex:`~ col md:row`,"gap-2":``,onClick:()=>c.value=e.id},[P(`div`,xn,[z(Y(Kt),null,{default:N(()=>[z(Y(en),{bg:`neutral-900/20 hover:neutral-900/45 active:neutral-900/60 dark:neutral-950/50 hover:dark:neutral-900/65 active:dark:neutral-900/90`,text:`white`,"h-7":``,"w-7":``,flex:``,"items-center":``,"justify-center":``,"rounded-lg":``,"backdrop-blur-sm":``,transition:`colors duration-200 ease-in-out`,"aria-label":`Options for Display Models`},{default:N(()=>[...t[7]||=[P(`div`,{"i-solar:menu-dots-bold":``},null,-1)]]),_:1}),z(Y(Qt),null,{default:N(()=>[z(Y(Jt),{class:`will-change-[opacity,transform] z-10000 max-w-45 rounded-lg p-0.5 text-white shadow-md outline-none data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade dark:text-black`,bg:`neutral-700/50 dark:neutral-950/50`,transition:`colors duration-200 ease-in-out`,"backdrop-blur-sm":``,align:`start`,side:`bottom`,"side-offset":4},{default:N(()=>[z(Y(Xt),{class:`data-[disabled]:text-mauve8 relative flex cursor-pointer select-none items-center rounded-md px-3 py-2 text-base leading-none outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-red-100/20 sm:text-sm data-[highlighted]:text-red-200`,transition:`colors duration-200 ease-in-out`},{default:N(()=>[P(`button`,{flex:``,"items-center":``,"gap-1":``,"outline-none":``,onClick:t=>s(e)},[...t[8]||=[P(`div`,{"i-solar:trash-bin-minimalistic-bold-duotone":``},null,-1),P(`div`,null,`Remove`,-1)]],8,Sn)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),P(`div`,Cn,[e.previewImage?(U(),L(`img`,{key:0,src:e.previewImage,"h-full":``,"w-full":``,"rounded-lg":``,"object-contain":``,class:X([c.value&&c.value===e.id?`ring-3 ring-primary-400`:`ring-0 ring-transparent`]),transition:`all duration-200 ease-in-out`},null,10,wn)):(U(),L(`div`,{key:1,bg:`neutral-100 dark:neutral-900`,relative:``,"h-full":``,"w-full":``,flex:``,"flex-col":``,"items-center":``,"justify-center":``,"gap-2":``,"overflow-hidden":``,"rounded-lg":``,class:X([c.value&&c.value===e.id?`ring-3 ring-primary-400`:`ring-0 ring-transparent`]),transition:`all duration-200 ease-in-out`},[...t[9]||=[P(`div`,{"i-solar:question-square-bold-duotone":``,"text-4xl":``,"opacity-75":``},null,-1),P(`div`,{"translate-y":`100%`,absolute:``,"top-0":``,flex:``,"flex-col":``,"translate-x--7":``,"rotate-45":``,"scale-250":``,"gap-0":``,"opacity-5":``},[P(`div`,{text:`sm sm:sm`,"translate-x-7":``,"translate-y--2":``,"text-nowrap":``},` unavailable Preview unavailable Preview `),P(`div`,{text:`sm sm:sm`,"translate-x-0":``,"translate-y--0":``,"text-nowrap":``},` Preview unavailable Preview unavailable `),P(`div`,{text:`sm sm:sm`,"translate-x--7":``,"translate-y-2":``,"text-nowrap":``},` unavailable Preview unavailable Preview `)],-1)]],2))]),P(`div`,Tn,[P(`div`,En,[z(Y(rn),{"default-value":e.name,placeholder:`Model Name...`,class:`flex gap-2`,"auto-resize":``},{default:N(({isEditing:e})=>[z(Y(on),{class:`w-[calc(100%-8px-1rem)] dark:text-white`},{default:N(()=>[z(Y(fn),{class:`line-clamp-1 w-[calc(100%-8px)] overflow-hidden text-ellipsis`}),z(Y(un),{class:`w-[calc(100%-8px)]! placeholder:text-neutral-700 dark:placeholder:text-neutral-600`})]),_:1}),e?(U(),L(`div`,Dn,[z(Y(mn),null,{default:N(()=>[...t[11]||=[P(`div`,{"i-solar:check-read-line-duotone":``,"opacity-50":``},null,-1)]]),_:1})])):(U(),F(Y(cn),{key:0},{default:N(()=>[...t[10]||=[P(`div`,{"i-solar:pen-2-line-duotone":``,"opacity-50":``},null,-1)]]),_:1}))]),_:1},8,[`default-value`]),P(`div`,On,[t[12]||=P(`div`,{"i-solar:tag-horizontal-bold":``},null,-1),P(`div`,null,Q(p[e.format]),1)])]),z(h,{class:`hidden md:block`,variant:`secondary`,onClick:t=>u(e)},{default:N(()=>[...t[13]||=[R(` Pick `,-1)]]),_:1},8,[`onClick`])])],8,bn)),[[n]])),128))])]),z(h,{class:`block md:hidden`,onClick:t[2]||=e=>d()},{default:N(()=>[...t[14]||=[R(` Confirm `,-1)]]),_:1})])}}}),An=kn,jn=B({__name:`model-selector-dialog`,props:{show:{type:Boolean,default:!1,required:!1},showModifiers:{},modelValue:{type:Object,required:!1},modelModifiers:{}},emits:[`update:show`,`update:modelValue`],setup(e){let t=Xe(e,`show`),n=Xe(e,`modelValue`),r=y(`(min-width: 768px)`),i=ze();return Re(document.documentElement,()=>i.update()),Ke(()=>i.update()),(e,a)=>Y(r)?(U(),F(Y(ke),{key:0,open:t.value,"onUpdate:open":a[2]||=e=>t.value=e},{default:N(()=>[z(Y(ft),{"as-child":``},{default:N(()=>[W(e.$slots,`default`)]),_:3}),z(Y(pe),null,{default:N(()=>[z(Y(he),{class:`fixed inset-0 z-[9999] bg-black/50 backdrop-blur-sm data-[state=closed]:animate-fadeOut data-[state=open]:animate-fadeIn`}),z(Y(ge),{class:`fixed left-1/2 top-1/2 z-[9999] max-h-full max-w-5xl w-[92dvw] transform overflow-y-scroll rounded-2xl bg-white p-6 shadow-xl outline-none backdrop-blur-md scrollbar-none -translate-x-1/2 -translate-y-1/2 data-[state=closed]:animate-contentHide data-[state=open]:animate-contentShow dark:bg-neutral-900`},{default:N(()=>[z(Y(te),null,{default:N(()=>[z(Y(fe),null,{default:N(()=>[...a[6]||=[R(`Models`,-1)]]),_:1})]),_:1}),z(An,{modelValue:n.value,"onUpdate:modelValue":a[0]||=e=>n.value=e,onClose:a[1]||=e=>t.value=!1},null,8,[`modelValue`])]),_:1})]),_:1})]),_:3},8,[`open`])):(U(),F(Y(m),{key:1,open:t.value,"should-scale-background":``,"onUpdate:open":a[5]||=e=>t.value=e},{default:N(()=>[z(Y(ft),{"as-child":``},{default:N(()=>[W(e.$slots,`default`)]),_:3}),z(Y(pe),null,{default:N(()=>[z(Y(d),{class:`fixed inset-0`}),z(Y(f),{class:`fixed bottom-0 left-0 right-0 z-1000 mt-20 h-full max-h-[96%] flex flex-col rounded-t-2xl bg-neutral-50 px-4 pt-4 outline-none backdrop-blur-md dark:bg-neutral-900/95`,style:rt({paddingBottom:`${Math.max(Number.parseFloat(Y(i).bottom.value.replace(`px`,``)),24)}px`})},{default:N(()=>[z(Y(p)),z(An,{modelValue:n.value,"onUpdate:modelValue":a[3]||=e=>n.value=e,onClose:a[4]||=e=>t.value=!1},null,8,[`modelValue`])]),_:1},8,[`style`])]),_:1})]),_:3},8,[`open`]))}}),Mn=jn;const Nn={flex:``,"items-center":``},Pn={flex:``,"items-center":``},Fn={flex:``,"items-center":``};var In=B({__name:`Live2D`,props:{palette:{}},emits:[`extractColorsFromModel`],setup(e){let{t}=u(),n=Ie(),{live2dDisableFocus:i}=le(n),a=r(),{scale:o,position:s}=le(a);return(e,n)=>(U(),L(G,null,[z(Y(_),{title:Y(t)(`settings.live2d.scale-and-position.title`),icon:`i-solar:scale-bold-duotone`,class:X([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`]),size:`sm`,expand:!0},{default:N(()=>[z(Y(l),{modelValue:Y(o),"onUpdate:modelValue":n[1]||=e=>q(o)?o.value=e:null,as:`div`,min:.5,max:2,step:.01,label:Y(t)(`settings.live2d.scale-and-position.scale`)},{label:N(()=>[P(`div`,Nn,[P(`div`,null,Q(Y(t)(`settings.live2d.scale-and-position.scale`)),1),P(`button`,{"px-2":``,"text-xs":``,"outline-none":``,title:`Reset value to default`,onClick:n[0]||=()=>o.value=1},[...n[8]||=[P(`div`,{"i-solar:forward-linear":``,"transform-scale-x--100":``,text:`neutral-500 dark:neutral-400`},null,-1)]])])]),_:1},8,[`modelValue`,`label`]),z(Y(l),{modelValue:Y(s).x,"onUpdate:modelValue":n[3]||=e=>Y(s).x=e,as:`div`,min:-100,max:100,step:1,label:Y(t)(`settings.live2d.scale-and-position.x`)},{label:N(()=>[P(`div`,Pn,[P(`div`,null,Q(Y(t)(`settings.live2d.scale-and-position.x`)),1),P(`button`,{"px-2":``,"text-xs":``,"outline-none":``,title:`Reset value to default`,onClick:n[2]||=()=>Y(s).x=0},[...n[9]||=[P(`div`,{"i-solar:forward-linear":``,"transform-scale-x--100":``,text:`neutral-500 dark:neutral-400`},null,-1)]])])]),_:1},8,[`modelValue`,`label`]),z(Y(l),{modelValue:Y(s).y,"onUpdate:modelValue":n[5]||=e=>Y(s).y=e,as:`div`,min:-100,max:100,step:1,label:Y(t)(`settings.live2d.scale-and-position.y`)},{label:N(()=>[P(`div`,Fn,[P(`div`,null,Q(Y(t)(`settings.live2d.scale-and-position.y`)),1),P(`button`,{"px-2":``,"text-xs":``,"outline-none":``,title:`Reset value to default`,onClick:n[4]||=()=>Y(s).y=0},[...n[10]||=[P(`div`,{"i-solar:forward-linear":``,"transform-scale-x--100":``,text:`neutral-500 dark:neutral-400`},null,-1)]])])]),_:1},8,[`modelValue`,`label`])]),_:1},8,[`title`]),z(Y(_),{title:Y(t)(`settings.live2d.theme-color-from-model.title`),icon:`i-solar:magic-stick-3-bold-duotone`,"inner-class":`text-sm`,class:X([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`]),size:`sm`,expand:!1},{default:N(()=>[z(Y(v),{class:`mb-4 mt-2`,colors:e.palette.map(e=>({hex:e,name:e})),"mx-auto":``},null,8,[`colors`]),z(Y(h),{variant:`secondary`,onClick:n[6]||=t=>e.$emit(`extractColorsFromModel`)},{default:N(()=>[R(Q(Y(t)(`settings.live2d.theme-color-from-model.button-extract.title`)),1)]),_:1})]),_:1},8,[`title`]),z(Y(_),{title:Y(t)(`settings.live2d.focus.title`),icon:`i-solar:eye-scan-bold-duotone`,class:X([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`]),size:`sm`,expand:!1},{default:N(()=>[z(Y(b),{modelValue:Y(i),"onUpdate:modelValue":n[7]||=e=>q(i)?i.value=e:null,label:Y(t)(`settings.live2d.focus.button-disable.title`)},null,8,[`modelValue`,`label`])]),_:1},8,[`title`])],64))}}),Ln=In;const Rn={grid:`~ cols-5 gap-1`,"p-2":``},zn={class:`text-xs`},Bn={key:0},Vn={grid:`~ cols-5 gap-1`,"p-2":``},Hn={key:1},Un={grid:`~ cols-5 gap-1`,"p-2":``},Wn={class:`text-sm text-neutral-600 space-y-1 dark:text-neutral-400`},Gn={class:`flex justify-between`},Kn={class:`flex justify-between`},qn={class:`flex justify-between`},Jn={class:`text-sm text-neutral-600 space-y-1 dark:text-neutral-400`};var Yn=B({__name:`VRM`,props:{palette:{}},emits:[`extractColorsFromModel`],setup(e){let{t:n}=u(),r=t(),{modelSize:l,modelOffset:d,cameraFOV:f,modelRotationY:p,cameraDistance:m,trackingMode:_,directionalLightRotation:y,directionalLightIntensity:b,directionalLightColor:x,ambientLightIntensity:S,ambientLightColor:C,hemisphereLightIntensity:w,hemisphereSkyColor:ee,hemisphereGroundColor:te,envSelect:T,skyBoxIntensity:E}=le(r),D=K(()=>[{value:`camera`,label:n(`settings.vrm.scale-and-position.eye-tracking-mode.options.option.camera`),class:`col-start-3`},{value:`mouse`,label:n(`settings.vrm.scale-and-position.eye-tracking-mode.options.option.mouse`),class:`col-start-4`},{value:`none`,label:n(`settings.vrm.scale-and-position.eye-tracking-mode.options.option.disabled`),class:`col-start-5`}]),ne=[{value:`hemisphere`,label:`Hemisphere`,icon:{idle:`i-solar:forbidden-circle-linear rotate-45`,active:`i-solar:forbidden-circle-bold rotate-45`}},{value:`skyBox`,label:`SkyBox`,icon:{idle:`i-solar:gallery-circle-linear`,active:`i-solar:gallery-circle-bold`}}];return(e,t)=>(U(),L(G,null,[z(Y(c),{title:Y(n)(`settings.pages.models.sections.section.scene`),icon:`i-solar:people-nearby-bold-duotone`,class:X([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`])},{default:N(()=>[z(Y(v),{class:`mb-4 mt-2`,colors:e.palette.map(e=>({hex:e,name:e})),"mx-auto":``},null,8,[`colors`]),z(Y(h),{variant:`secondary`,onClick:t[0]||=t=>e.$emit(`extractColorsFromModel`)},{default:N(()=>[R(Q(Y(n)(`settings.vrm.theme-color-from-model.button-extract.title`)),1)]),_:1}),P(`div`,Rn,[z(Y(a),{x:Y(d).x,"onUpdate:x":t[1]||=e=>Y(d).x=e,y:Y(d).y,"onUpdate:y":t[2]||=e=>Y(d).y=e,z:Y(d).z,"onUpdate:z":t[3]||=e=>Y(d).z=e,label:`Model Position`,"x-config":{min:-Y(l).x*2,max:Y(l).x*2,step:Y(l).x/100,label:`X`,formatValue:e=>e?.toFixed(4)},"y-config":{min:-Y(l).y*2,max:Y(l).y*2,step:Y(l).y/100,label:`Y`,formatValue:e=>e?.toFixed(4)},"z-config":{min:-Y(l).z*2,max:Y(l).z*2,step:Y(l).z/100,label:`Z`,formatValue:e=>e?.toFixed(4)}},null,8,[`x`,`y`,`z`,`x-config`,`y-config`,`z-config`]),z(Y(o),{modelValue:Y(f),"onUpdate:modelValue":t[4]||=e=>q(f)?f.value=e:null,config:{min:1,max:180,step:1,label:Y(n)(`settings.vrm.scale-and-position.fov`)},label:Y(n)(`settings.vrm.scale-and-position.fov`)},null,8,[`modelValue`,`config`,`label`]),z(Y(o),{modelValue:Y(m),"onUpdate:modelValue":t[5]||=e=>q(m)?m.value=e:null,config:{min:Y(l).z,max:Y(l).z*20,step:Y(l).z/100,label:Y(n)(`settings.vrm.scale-and-position.camera-distance`),formatValue:e=>e?.toFixed(4)},label:Y(n)(`settings.vrm.scale-and-position.camera-distance`)},null,8,[`modelValue`,`config`,`label`]),z(Y(o),{modelValue:Y(p),"onUpdate:modelValue":t[6]||=e=>q(p)?p.value=e:null,config:{min:-180,max:180,step:1,label:Y(n)(`settings.vrm.scale-and-position.rotation-y`)},label:Y(n)(`settings.vrm.scale-and-position.rotation-y`)},null,8,[`modelValue`,`config`,`label`]),P(`div`,zn,Q(Y(n)(`settings.vrm.scale-and-position.eye-tracking-mode.title`))+`: `,1),t[18]||=P(`div`,null,null,-1),(U(!0),L(G,null,Je(D.value,e=>(U(),F(Y(h),{key:e.value,class:X([e.class,`w-auto`]),size:`sm`,variant:Y(_)===e.value?`primary`:`secondary`,label:e.label,onClick:t=>_.value=e.value},null,8,[`class`,`variant`,`label`,`onClick`]))),128)),z(Y(o),{modelValue:Y(y).x,"onUpdate:modelValue":t[7]||=e=>Y(y).x=e,config:{min:-180,max:180,step:1,label:`RotationXDeg`,formatValue:e=>e?.toFixed(0)},label:`Directional Light Rotation - X`},null,8,[`modelValue`,`config`]),z(Y(o),{modelValue:Y(y).y,"onUpdate:modelValue":t[8]||=e=>Y(y).y=e,config:{min:-180,max:180,step:1,label:`RotationYDeg`,formatValue:e=>e?.toFixed(0)},label:`Directional Light Rotation - Y`},null,8,[`modelValue`,`config`]),z(Y(s),{modelValue:Y(x),"onUpdate:modelValue":t[9]||=e=>q(x)?x.value=e:null,label:`Directional Light Color`},null,8,[`modelValue`]),z(Y(o),{modelValue:Y(b),"onUpdate:modelValue":t[10]||=e=>q(b)?b.value=e:null,config:{min:0,max:10,step:.01,label:`Intensity`},label:`Directional Light Intensity`},null,8,[`modelValue`]),z(Y(o),{modelValue:Y(S),"onUpdate:modelValue":t[11]||=e=>q(S)?S.value=e:null,config:{min:0,max:10,step:.01,label:`Intensity`},label:`Ambient Light Intensity`},null,8,[`modelValue`]),z(Y(s),{modelValue:Y(C),"onUpdate:modelValue":t[12]||=e=>q(C)?C.value=e:null,label:`Ambient Light Color`},null,8,[`modelValue`])]),P(`div`,null,[z(Y(g),{modelValue:Y(T),"onUpdate:modelValue":t[17]||=e=>q(T)?T.value=e:null,tabs:ne,label:`Environment`},{default:N(()=>[Y(T)===`hemisphere`?(U(),L(`div`,Bn,[P(`div`,Vn,[z(Y(o),{modelValue:Y(w),"onUpdate:modelValue":t[13]||=e=>q(w)?w.value=e:null,config:{min:0,max:10,step:.01,label:`Intensity`},label:`Hemisphere Light Intensity`},null,8,[`modelValue`]),z(Y(s),{modelValue:Y(ee),"onUpdate:modelValue":t[14]||=e=>q(ee)?ee.value=e:null,label:`Hemisphere Sky Color`},null,8,[`modelValue`]),z(Y(s),{modelValue:Y(te),"onUpdate:modelValue":t[15]||=e=>q(te)?te.value=e:null,label:`Hemisphere Ground Color`},null,8,[`modelValue`])])])):(U(),L(`div`,Hn,[P(`div`,Un,[z(Y(o),{modelValue:Y(E),"onUpdate:modelValue":t[16]||=e=>q(E)?E.value=e:null,config:{min:0,max:1,step:.01,label:`Intensity`},label:Y(n)(`settings.vrm.skybox.skybox-intensity`)},null,8,[`modelValue`,`label`])])]))]),_:1},8,[`modelValue`])])]),_:1},8,[`title`]),z(Y(c),{title:Y(n)(`settings.vrm.change-model.title`),icon:`i-solar:magic-stick-3-bold-duotone`,"inner-class":`text-sm`,class:X([`rounded-xl`,`bg-white/80 dark:bg-black/75`,`backdrop-blur-lg`])},{default:N(()=>[z(Y(i),{label:Y(n)(`settings.vrm.scale-and-position.model-info-title`)},{default:N(()=>[P(`div`,null,[P(`div`,Wn,[P(`div`,Gn,[P(`span`,null,Q(Y(n)(`settings.vrm.scale-and-position.model-info-x`)),1),P(`span`,null,Q(Y(l).x.toFixed(4)),1)]),P(`div`,Kn,[P(`span`,null,Q(Y(n)(`settings.vrm.scale-and-position.model-info-y`)),1),P(`span`,null,Q(Y(l).y.toFixed(4)),1)]),P(`div`,qn,[P(`span`,null,Q(Y(n)(`settings.vrm.scale-and-position.model-info-z`)),1),P(`span`,null,Q(Y(l).z.toFixed(4)),1)])])])]),_:1},8,[`label`]),z(Y(i),{theme:`lime`,label:`Tips!`},{default:N(()=>[P(`div`,Jn,Q(Y(n)(`settings.vrm.scale-and-position.tips`)),1)]),_:1})]),_:1},8,[`title`])],64))}}),Xn=Yn,Zn=B({__name:`index`,props:{palette:{},settingsClass:{},live2dSceneClass:{},vrmSceneClass:{}},emits:[`extractColorsFromModel`],setup(a){let o=a,s=J(),c=Le(),l=Ie(),{live2dDisableFocus:u,stageModelSelectedUrl:d,stageModelSelected:f,stageModelRenderer:p}=le(l);return Ze(s,async()=>{if(f.value=s.value?.id,await l.updateStageModel(),s.value)switch(s.value.format){case M.Live2dZip:r().shouldUpdateView();break;case M.VRM:t().shouldUpdateView();break}},{deep:!0}),(t,r)=>(U(),L(G,null,[P(`div`,{flex:`~ col gap-2`,"z-10":``,"overflow-y-scroll":``,"p-2":``,class:X([...o.settingsClass?typeof o.settingsClass==`string`?[o.settingsClass]:o.settingsClass:[]])},[z(i,{label:`We support both 2D and 3D models`},{default:N(()=>[...r[3]||=[P(`p`,null,[R(` Click `),P(`strong`,null,`Select Model`),R(` to import different formats of models into catalog, currently, `),P(`code`,null,`.zip`),R(` (Live2D) and `),P(`code`,null,`.vrm`),R(` (VRM) are supported. `)],-1),P(`p`,null,` Neuro-sama uses 2D model driven by Live2D Inc. developed framework. While Grok Ani (first female character announced in Grok Companion) uses 3D model that is driven by VRM / MMD open formats. `,-1)]]),_:1}),z(Mn,{modelValue:s.value,"onUpdate:modelValue":r[0]||=e=>s.value=e},{default:N(()=>[z(h,{variant:`secondary`},{default:N(()=>[...r[4]||=[R(` Select Model `,-1)]]),_:1})]),_:1},8,[`modelValue`]),Y(p)===`live2d`?(U(),F(Ln,{key:0,palette:t.palette,onExtractColorsFromModel:r[1]||=e=>t.$emit(`extractColorsFromModel`)},null,8,[`palette`])):I(``,!0),Y(p)===`vrm`?(U(),F(Xn,{key:1,palette:t.palette,onExtractColorsFromModel:r[2]||=e=>t.$emit(`extractColorsFromModel`)},null,8,[`palette`])):I(``,!0)],2),Y(p)===`live2d`?(U(),L(`div`,{key:0,class:X([...o.live2dSceneClass?typeof o.live2dSceneClass==`string`?[o.live2dSceneClass]:o.live2dSceneClass:[]])},[z(n,{"focus-at":{x:Y(c).x.value,y:Y(c).y.value},"model-src":Y(d),"disable-focus-at":Y(u)},null,8,[`focus-at`,`model-src`,`disable-focus-at`])],2)):I(``,!0),Y(p)===`vrm`?(U(),L(`div`,{key:1,class:X([...o.vrmSceneClass?typeof o.vrmSceneClass==`string`?[o.vrmSceneClass]:o.vrmSceneClass:[]])},[z(e,{"model-src":Y(d)},null,8,[`model-src`])],2)):I(``,!0)],64))}}),Qn=Zn;const $n={flex:``,class:`relative h-full flex-col-reverse md:flex-row`},er={key:1,text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:15},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var tr=B({__name:`index`,setup(e){let t=J(),n=J([]);async function r(){if(!t.value)return;let e=await t.value.captureFrame();if(!e){console.error(`No frame captured`);return}let r=URL.createObjectURL(e);try{let e=new it(r),t=await e.getPalette();n.value=Object.values(t).map(e=>e?.hex).filter(e=>typeof e==`string`)}finally{URL.revokeObjectURL(r)}}let{iconAnimationStarted:i,showIconAnimation:a,animationIcon:o}=st(`i-solar:people-nearby-bold-duotone`);return(e,t)=>{let s=Ye(`motion`);return U(),L(G,null,[P(`div`,$n,[z(Y(Qn),{"settings-class":`w-100% md:w-40% lg:w-40% xl:w-25% 2xl:w-30% h-fit sm:max-h-80dvh overflow-y-scroll relative`,"live-2d-scene-class":`absolute max-h-[calc(100dvh-100px-56px)] w-full h-full`,"vrm-scene-class":`absolute max-h-[calc(100dvh-100px-56px)] w-full h-full`,palette:n.value,onExtractColorsFromModel:r},null,8,[`palette`])]),Y(a)?(U(),F(ot,{key:0,"z-index":-1,icon:Y(o),"icon-size":12,duration:1e3,started:Y(i),"is-reverse":!0,position:`calc(100dvw - 9.5rem), calc(100dvh - 9.5rem)`,"text-color":`text-neutral-200/50 dark:text-neutral-600/20`},null,8,[`icon`,`started`])):tt((U(),L(`div`,er,[...t[0]||=[P(`div`,{text:`60`,"i-solar:people-nearby-bold-duotone":``},null,-1)]])),[[s]])],64)}}});typeof at==`function`&&at(tr);var nr=tr;export{nr as default}; \ No newline at end of file diff --git a/assets/modelscope-B_MqBJUD.js b/assets/modelscope-eu2EjaoV.js similarity index 58% rename from assets/modelscope-B_MqBJUD.js rename to assets/modelscope-eu2EjaoV.js index 9399f4f0dc77fe0ae70df06ffe6acba06a89d8e2..9a9f611a862d73eab728ef5b95bc9f732da483b6 100644 --- a/assets/modelscope-B_MqBJUD.js +++ b/assets/modelscope-eu2EjaoV.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`modelscope`;var x=f({__name:`modelscope`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`ms-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api-inference.modelscope.cn/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`modelscope`;var x=p({__name:`modelscope`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`ms-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api-inference.modelscope.cn/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/modules-C3qcmhYO.js b/assets/modules-HikmL5Bk.js similarity index 86% rename from assets/modules-C3qcmhYO.js rename to assets/modules-HikmL5Bk.js index 9c4578d941a87d0115b4f3f95409d8abafc0459f..b5596f464b4e109c1be56b9223d908d239624986 100644 --- a/assets/modules-C3qcmhYO.js +++ b/assets/modules-HikmL5Bk.js @@ -1 +1 @@ -import{L as e,a3 as t,ae as n,at as r,e$ as i,eA as a,eC as o,eG as s,eQ as c,eS as l,eV as u,ev as d,ey as f,ez as p,f6 as m}from"./index-DEhol03r.js";import{b as h}from"./route-block-Dc_s4AGN.js";import{b as g}from"./IconAnimation-C0TBccB2.js";import{b as _}from"./icon-animation-B3otQp3y.js";const v={grid:`~ cols-1 sm:cols-2 gap-4`},y={key:1,text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:20},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var b=s({__name:`index`,setup(s){let{t:h}=n(),b=f(()=>[{id:`consciousness`,name:h(`settings.pages.modules.consciousness.title`),description:h(`settings.pages.modules.consciousness.description`),icon:`i-solar:ghost-bold-duotone`,to:`/settings/modules/consciousness`,configured:t().configured},{id:`speech`,name:h(`settings.pages.modules.speech.title`),description:h(`settings.pages.modules.speech.description`),icon:`i-solar:user-speak-rounded-bold-duotone`,to:`/settings/modules/speech`,configured:e().configured},{id:`hearing`,name:h(`settings.pages.modules.hearing.title`),description:h(`settings.pages.modules.hearing.description`),icon:`i-solar:microphone-3-bold-duotone`,to:`/settings/modules/hearing`,configured:!1},{id:`vision`,name:h(`settings.pages.modules.vision.title`),description:h(`settings.pages.modules.vision.description`),icon:`i-solar:eye-closed-bold-duotone`,to:``,configured:!1},{id:`memory-short-term`,name:h(`settings.pages.modules.memory-short-term.title`),description:h(`settings.pages.modules.memory-short-term.description`),icon:`i-solar:bookmark-bold-duotone`,to:`/settings/modules/memory-short-term`,configured:!1},{id:`memory-long-term`,name:h(`settings.pages.modules.memory-long-term.title`),description:h(`settings.pages.modules.memory-long-term.description`),icon:`i-solar:book-bookmark-bold-duotone`,to:`/settings/modules/memory-long-term`,configured:!1},{id:`messaging-discord`,name:h(`settings.pages.modules.messaging-discord.title`),description:h(`settings.pages.modules.messaging-discord.description`),icon:`i-simple-icons:discord`,to:``,configured:!1},{id:`x`,name:h(`settings.pages.modules.x.title`),description:h(`settings.pages.modules.x.description`),icon:`i-simple-icons:x`,to:``,configured:!1},{id:`game-minecraft`,name:h(`settings.pages.modules.gaming-minecraft.title`),description:h(`settings.pages.modules.gaming-minecraft.description`),iconColor:`i-vscode-icons:file-type-minecraft`,to:``,configured:!1},{id:`game-factorio`,name:h(`settings.pages.modules.gaming-factorio.title`),description:h(`settings.pages.modules.gaming-factorio.description`),iconImage:``,to:``,configured:!1}]),{iconAnimationStarted:x,showIconAnimation:S,animationIcon:C}=_(`i-solar:layers-bold-duotone`);return(e,t)=>{let n=u(`motion`);return c(),o(d,null,[p(`div`,v,[(c(!0),o(d,null,l(b.value,(e,t)=>i((c(),a(m(r),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+t*10,delay:t*50,title:e.name,description:e.description,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:e.to,configured:e.configured},null,8,[`duration`,`delay`,`title`,`description`,`icon`,`icon-color`,`icon-image`,`to`,`configured`])),[[n]])),128))]),m(S)?(c(),a(g,{key:0,icon:m(C),"icon-size":12,duration:1e3,started:m(x),"is-reverse":!0,"z-index":-1,"text-color":`text-neutral-200/50 dark:text-neutral-600/20`,position:`calc(100dvw - 9.5rem), calc(100dvh - 9.5rem)`},null,8,[`icon`,`started`])):i((c(),o(`div`,y,[...t[0]||=[p(`div`,{text:`60`,"i-solar:layers-bold-duotone":``},null,-1)]])),[[n]])],64)}}});typeof h==`function`&&h(b);var x=b;export{x as default}; \ No newline at end of file +import{L as e,a3 as t,ae as n,at as r,eA as i,eB as a,eD as o,eH as s,eR as c,eT as l,eW as u,ew as d,ez as f,f0 as p,f7 as m}from"./index-D3Bcbz9S.js";import{b as h}from"./route-block-Dc_s4AGN.js";import{b as g}from"./IconAnimation-CpQ8Hyb3.js";import{b as _}from"./icon-animation-CL2bLS_O.js";const v={grid:`~ cols-1 sm:cols-2 gap-4`},y={key:1,text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:20},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var b=s({__name:`index`,setup(s){let{t:h}=n(),b=f(()=>[{id:`consciousness`,name:h(`settings.pages.modules.consciousness.title`),description:h(`settings.pages.modules.consciousness.description`),icon:`i-solar:ghost-bold-duotone`,to:`/settings/modules/consciousness`,configured:t().configured},{id:`speech`,name:h(`settings.pages.modules.speech.title`),description:h(`settings.pages.modules.speech.description`),icon:`i-solar:user-speak-rounded-bold-duotone`,to:`/settings/modules/speech`,configured:e().configured},{id:`hearing`,name:h(`settings.pages.modules.hearing.title`),description:h(`settings.pages.modules.hearing.description`),icon:`i-solar:microphone-3-bold-duotone`,to:`/settings/modules/hearing`,configured:!1},{id:`vision`,name:h(`settings.pages.modules.vision.title`),description:h(`settings.pages.modules.vision.description`),icon:`i-solar:eye-closed-bold-duotone`,to:``,configured:!1},{id:`memory-short-term`,name:h(`settings.pages.modules.memory-short-term.title`),description:h(`settings.pages.modules.memory-short-term.description`),icon:`i-solar:bookmark-bold-duotone`,to:`/settings/modules/memory-short-term`,configured:!1},{id:`memory-long-term`,name:h(`settings.pages.modules.memory-long-term.title`),description:h(`settings.pages.modules.memory-long-term.description`),icon:`i-solar:book-bookmark-bold-duotone`,to:`/settings/modules/memory-long-term`,configured:!1},{id:`messaging-discord`,name:h(`settings.pages.modules.messaging-discord.title`),description:h(`settings.pages.modules.messaging-discord.description`),icon:`i-simple-icons:discord`,to:``,configured:!1},{id:`x`,name:h(`settings.pages.modules.x.title`),description:h(`settings.pages.modules.x.description`),icon:`i-simple-icons:x`,to:``,configured:!1},{id:`game-minecraft`,name:h(`settings.pages.modules.gaming-minecraft.title`),description:h(`settings.pages.modules.gaming-minecraft.description`),iconColor:`i-vscode-icons:file-type-minecraft`,to:``,configured:!1},{id:`game-factorio`,name:h(`settings.pages.modules.gaming-factorio.title`),description:h(`settings.pages.modules.gaming-factorio.description`),iconImage:``,to:``,configured:!1}]),{iconAnimationStarted:x,showIconAnimation:S,animationIcon:C}=_(`i-solar:layers-bold-duotone`);return(e,t)=>{let n=u(`motion`);return c(),o(d,null,[i(`div`,v,[(c(!0),o(d,null,l(b.value,(e,t)=>p((c(),a(m(r),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+t*10,delay:t*50,title:e.name,description:e.description,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:e.to,configured:e.configured},null,8,[`duration`,`delay`,`title`,`description`,`icon`,`icon-color`,`icon-image`,`to`,`configured`])),[[n]])),128))]),m(S)?(c(),a(g,{key:0,icon:m(C),"icon-size":12,duration:1e3,started:m(x),"is-reverse":!0,"z-index":-1,"text-color":`text-neutral-200/50 dark:text-neutral-600/20`,position:`calc(100dvw - 9.5rem), calc(100dvh - 9.5rem)`},null,8,[`icon`,`started`])):p((c(),o(`div`,y,[...t[0]||=[i(`div`,{text:`60`,"i-solar:layers-bold-duotone":``},null,-1)]])),[[n]])],64)}}});typeof h==`function`&&h(b);var x=b;export{x as default}; \ No newline at end of file diff --git a/assets/moonshot-ai-MEHmQzUr.js b/assets/moonshot-ai-DLcorUbp.js similarity index 58% rename from assets/moonshot-ai-MEHmQzUr.js rename to assets/moonshot-ai-DLcorUbp.js index ec63bbf910bb3ab46ff015ee2bc645af9ff5b0b5..d8f41ac199dbc68eb7cd315de1944e3199d3e4ac 100644 --- a/assets/moonshot-ai-MEHmQzUr.js +++ b/assets/moonshot-ai-DLcorUbp.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`moonshot-ai`;var x=f({__name:`moonshot-ai`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`ms-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.moonshot.cn/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`moonshot-ai`;var x=p({__name:`moonshot-ai`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`ms-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.moonshot.cn/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/novita-ai-Dy87Q0Fq.js b/assets/novita-ai-CVdLD9kp.js similarity index 58% rename from assets/novita-ai-Dy87Q0Fq.js rename to assets/novita-ai-CVdLD9kp.js index 5e02b668691161018bcd42b80cf5790a20053ee7..6971374aba36b5b708c254517cfbcd0a8df0edd3 100644 --- a/assets/novita-ai-Dy87Q0Fq.js +++ b/assets/novita-ai-CVdLD9kp.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`novita-ai`;var x=f({__name:`novita-ai`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`nvt-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.novita.ai/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`novita-ai`;var x=p({__name:`novita-ai`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`nvt-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.novita.ai/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/ollama-B6ruE_gL.js b/assets/ollama-BX8me0Bl.js similarity index 64% rename from assets/ollama-B6ruE_gL.js rename to assets/ollama-BX8me0Bl.js index 259ad3e0c28cc6647e29e4070b1632859225b5d2..113429e2e149628de333fcd3c8c93edfd779fb56 100644 --- a/assets/ollama-B6ruE_gL.js +++ b/assets/ollama-BX8me0Bl.js @@ -1 +1 @@ -import{X as e,Y as t,Z as n,_ as r,a1 as i,a4 as a,aY as o,ae as s,as as c,bM as l,bP as u,eA as d,eB as f,eC as p,eD as m,eE as h,eF as g,eG as _,eO as v,eQ as y,eY as b,e_ as x,ey as S,ez as C,f1 as w,f6 as T,fa as E}from"./index-DEhol03r.js";import{b as D}from"./route-block-Dc_s4AGN.js";const O={class:`flex flex-col gap-4`},k={class:`whitespace-pre-wrap break-all`},A=`ollama`;var j=_({__name:`ollama`,setup(_){let{t:D}=s(),j=l(),M=a(),{providers:N}=u(M),P=w(0),F=S(()=>M.getProviderMetadata(A)),I=w(``),L=S({get:()=>N.value[A]?.baseUrl||F.value?.defaultOptions?.().baseUrl||``,set:e=>{N.value[A]||(N.value[A]={}),N.value[A].baseUrl=e}}),R=w(Object.entries(N.value[A]?.headers??{}).map(([e,t])=>({key:e,value:t}))||[{key:``,value:``}]);function z(e,t,n){e&&e.push({key:t,value:n})}function B(e,t){t&&(t.length===1?(t[0].key=``,t[0].value=``):t.splice(e,1))}b(R,e=>{e.length>0&&(e[e.length-1].key!==``||e[e.length-1].value!==``)&&e.push({key:``,value:``}),N.value[A].headers=e.filter(e=>e.key!==``).reduce((e,t)=>(e[t.key]=t.value,e),{})},{deep:!0,immediate:!0});async function V(){P.value++;let e=performance.now(),t=``;try{let e=await F.value.validators.validateProviderConfig({baseUrl:L.value,headers:R.value.filter(e=>e.key!==``).reduce((e,t)=>(e[t.key]=t.value,e),{})});t=e.valid?``:D(`settings.dialogs.onboarding.validationError`,{error:e.reason})}catch(e){t=D(`settings.dialogs.onboarding.validationError`,{error:e instanceof Error?e.message:String(e)})}finally{setTimeout(()=>{P.value--,I.value=t},500-(performance.now()-e))}}b([L,R],V,{immediate:!0}),b(R,V,{deep:!0}),v(()=>{M.initializeProvider(A),L.value=N.value[A]?.baseUrl||F.value?.defaultOptions?.().baseUrl||``,N.value[A]?.headers||(N.value[A].headers={}),R.value.length===0&&(R.value=[{key:``,value:``}])});function H(){N.value[A]={...F.value?.defaultOptions}}return(a,s)=>(y(),p(`div`,O,[P.value?(y(),d(T(c),{key:0,type:`loading`},{title:x(()=>[h(E(T(D)(`settings.pages.providers.provider.common.status.validating`)),1)]),_:1})):I.value?I.value?(y(),d(T(c),{key:2,type:`error`},m({title:x(()=>[h(E(T(D)(`settings.dialogs.onboarding.validationFailed`)),1)]),_:2},[I.value?{name:`content`,fn:x(()=>[C(`div`,k,E(I.value),1)]),key:`0`}:void 0]),1024)):f(``,!0):(y(),d(T(c),{key:1,type:`success`},{title:x(()=>[h(E(T(D)(`settings.pages.providers.provider.common.status.valid`)),1)]),_:1})),g(T(e),{"provider-name":F.value?.localizedName,"provider-icon":F.value?.icon,"on-back":()=>T(j).back()},{default:x(()=>[g(T(t),null,{default:x(()=>[g(T(n),{title:T(D)(`settings.pages.providers.common.section.basic.title`),description:T(D)(`settings.pages.providers.common.section.basic.description`),"on-reset":H},{default:x(()=>[g(T(r),{modelValue:L.value,"onUpdate:modelValue":s[0]||=e=>L.value=e,placeholder:F.value?.defaultOptions?.().baseUrl||``,required:``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`title`,`description`]),g(T(i),{title:T(D)(`settings.pages.providers.common.section.advanced.title`)},{default:x(()=>[g(T(o),{modelValue:R.value,"onUpdate:modelValue":s[1]||=e=>R.value=e,label:T(D)(`settings.pages.providers.common.section.advanced.fields.field.headers.label`),description:T(D)(`settings.pages.providers.common.section.advanced.fields.field.headers.description`),"key-placeholder":T(D)(`settings.pages.providers.common.section.advanced.fields.field.headers.key.placeholder`),"value-placeholder":T(D)(`settings.pages.providers.common.section.advanced.fields.field.headers.value.placeholder`),onAdd:s[2]||=(e,t)=>z(R.value,e,t),onRemove:s[3]||=e=>B(e,R.value)},null,8,[`modelValue`,`label`,`description`,`key-placeholder`,`value-placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`])]))}});typeof D==`function`&&D(j);var M=j;export{M as default}; \ No newline at end of file +import{X as e,Y as t,Z as n,_ as r,a1 as i,a4 as a,aZ as o,ae as s,as as c,bN as l,bQ as u,e$ as d,eA as f,eB as p,eC as m,eD as h,eE as g,eF as _,eG as v,eH as y,eP as b,eR as x,eZ as S,ez as C,f2 as w,f7 as T,fb as E}from"./index-D3Bcbz9S.js";import{b as D}from"./route-block-Dc_s4AGN.js";const O={class:`flex flex-col gap-4`},k={class:`whitespace-pre-wrap break-all`},A=`ollama`;var j=y({__name:`ollama`,setup(y){let{t:D}=s(),j=l(),M=a(),{providers:N}=u(M),P=w(0),F=C(()=>M.getProviderMetadata(A)),I=w(``),L=C({get:()=>N.value[A]?.baseUrl||F.value?.defaultOptions?.().baseUrl||``,set:e=>{N.value[A]||(N.value[A]={}),N.value[A].baseUrl=e}}),R=w(Object.entries(N.value[A]?.headers??{}).map(([e,t])=>({key:e,value:t}))||[{key:``,value:``}]);function z(e,t,n){e&&e.push({key:t,value:n})}function B(e,t){t&&(t.length===1?(t[0].key=``,t[0].value=``):t.splice(e,1))}S(R,e=>{e.length>0&&(e[e.length-1].key!==``||e[e.length-1].value!==``)&&e.push({key:``,value:``}),N.value[A].headers=e.filter(e=>e.key!==``).reduce((e,t)=>(e[t.key]=t.value,e),{})},{deep:!0,immediate:!0});async function V(){P.value++;let e=performance.now(),t=``;try{let e=await F.value.validators.validateProviderConfig({baseUrl:L.value,headers:R.value.filter(e=>e.key!==``).reduce((e,t)=>(e[t.key]=t.value,e),{})});t=e.valid?``:D(`settings.dialogs.onboarding.validationError`,{error:e.reason})}catch(e){t=D(`settings.dialogs.onboarding.validationError`,{error:e instanceof Error?e.message:String(e)})}finally{setTimeout(()=>{P.value--,I.value=t},500-(performance.now()-e))}}S([L,R],V,{immediate:!0}),S(R,V,{deep:!0}),b(()=>{M.initializeProvider(A),L.value=N.value[A]?.baseUrl||F.value?.defaultOptions?.().baseUrl||``,N.value[A]?.headers||(N.value[A].headers={}),R.value.length===0&&(R.value=[{key:``,value:``}])});function H(){N.value[A]={...F.value?.defaultOptions}}return(a,s)=>(x(),h(`div`,O,[P.value?(x(),p(T(c),{key:0,type:`loading`},{title:d(()=>[_(E(T(D)(`settings.pages.providers.provider.common.status.validating`)),1)]),_:1})):I.value?I.value?(x(),p(T(c),{key:2,type:`error`},g({title:d(()=>[_(E(T(D)(`settings.dialogs.onboarding.validationFailed`)),1)]),_:2},[I.value?{name:`content`,fn:d(()=>[f(`div`,k,E(I.value),1)]),key:`0`}:void 0]),1024)):m(``,!0):(x(),p(T(c),{key:1,type:`success`},{title:d(()=>[_(E(T(D)(`settings.pages.providers.provider.common.status.valid`)),1)]),_:1})),v(T(e),{"provider-name":F.value?.localizedName,"provider-icon":F.value?.icon,"on-back":()=>T(j).back()},{default:d(()=>[v(T(t),null,{default:d(()=>[v(T(n),{title:T(D)(`settings.pages.providers.common.section.basic.title`),description:T(D)(`settings.pages.providers.common.section.basic.description`),"on-reset":H},{default:d(()=>[v(T(r),{modelValue:L.value,"onUpdate:modelValue":s[0]||=e=>L.value=e,placeholder:F.value?.defaultOptions?.().baseUrl||``,required:``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`title`,`description`]),v(T(i),{title:T(D)(`settings.pages.providers.common.section.advanced.title`)},{default:d(()=>[v(T(o),{modelValue:R.value,"onUpdate:modelValue":s[1]||=e=>R.value=e,label:T(D)(`settings.pages.providers.common.section.advanced.fields.field.headers.label`),description:T(D)(`settings.pages.providers.common.section.advanced.fields.field.headers.description`),"key-placeholder":T(D)(`settings.pages.providers.common.section.advanced.fields.field.headers.key.placeholder`),"value-placeholder":T(D)(`settings.pages.providers.common.section.advanced.fields.field.headers.value.placeholder`),onAdd:s[2]||=(e,t)=>z(R.value,e,t),onRemove:s[3]||=e=>B(e,R.value)},null,8,[`modelValue`,`label`,`description`,`key-placeholder`,`value-placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`])]))}});typeof D==`function`&&D(j);var M=j;export{M as default}; \ No newline at end of file diff --git a/assets/openai-V9v0fYc-.js b/assets/openai-BeGAAHfp.js similarity index 61% rename from assets/openai-V9v0fYc-.js rename to assets/openai-BeGAAHfp.js index 00d97c2ce8bde8de252cfe2906a9f8282478483f..700b03e53d88615a6b48f76b6b8432e524b6c8f2 100644 --- a/assets/openai-V9v0fYc-.js +++ b/assets/openai-BeGAAHfp.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`openai`;var x=f({__name:`openai`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||`https://api.openai.com/v1/`,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{C.value[b]||(C.value[b]={baseUrl:`https://api.openai.com/v1/`}),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||`https://api.openai.com/v1/`}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||`https://api.openai.com/v1/`}});function D(){C.value[b]={baseUrl:`https://api.openai.com/v1/`}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName||`OpenAI`,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName||`OpenAI`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.openai.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`openai`;var x=p({__name:`openai`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||`https://api.openai.com/v1/`,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{C.value[b]||(C.value[b]={baseUrl:`https://api.openai.com/v1/`}),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||`https://api.openai.com/v1/`}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||`https://api.openai.com/v1/`}});function D(){C.value[b]={baseUrl:`https://api.openai.com/v1/`}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName||`OpenAI`,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName||`OpenAI`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.openai.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/openai-audio-speech-CkVCP_hU.js b/assets/openai-audio-speech-pkWXUv1i.js similarity index 63% rename from assets/openai-audio-speech-CkVCP_hU.js rename to assets/openai-audio-speech-pkWXUv1i.js index ac7f97448f14131e60c804b98c9683933067222c..4c35f0c4cf0acafd64a4d87755d3f2ed0bb65237 100644 --- a/assets/openai-audio-speech-CkVCP_hU.js +++ b/assets/openai-audio-speech-pkWXUv1i.js @@ -1 +1 @@ -import{K as e,L as t,O as n,a4 as r,aW as i,ae as a,bP as o,eA as s,eF as c,eG as l,eQ as u,eY as d,e_ as f,ey as p,f1 as m,f6 as h}from"./index-DEhol03r.js";import{b as g}from"./route-block-Dc_s4AGN.js";const _=`openai-audio-speech`,v=`gpt-4o-mini-tts`;var y=l({__name:`openai-audio-speech`,setup(l){let g=t(),y=r(),{providers:b}=o(y),{t:x}=a(),S={speed:1},C=m(1),w=p(()=>!!b.value[_]?.apiKey),T=p(()=>g.availableVoices[_]||[]);async function E(e,t,n){let r=await y.getProviderInstance(_);if(!r)throw Error(`Failed to initialize speech provider`);let i=y.getProviderConfig(_),a=i.model||v;return await g.speech(r,a,e,t,{...i,...S})}return d(C,async()=>{let e=y.getProviderConfig(_);e.speed=C.value}),(t,r)=>(u(),s(h(e),{"provider-id":_,"default-model":v,"additional-settings":S},{"voice-settings":f(()=>[c(h(i),{modelValue:C.value,"onUpdate:modelValue":r[0]||=e=>C.value=e,label:h(x)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:h(x)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:f(()=>[c(h(n),{"available-voices":T.value,"generate-speech":E,"api-key-configured":w.value,"default-text":`Hello! This is a test of the OpenAI Speech.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof g==`function`&&g(y);var b=y;export{b as default}; \ No newline at end of file +import{K as e,L as t,O as n,a4 as r,aX as i,ae as a,bQ as o,e$ as s,eB as c,eG as l,eH as u,eR as d,eZ as f,ez as p,f2 as m,f7 as h}from"./index-D3Bcbz9S.js";import{b as g}from"./route-block-Dc_s4AGN.js";const _=`openai-audio-speech`,v=`gpt-4o-mini-tts`;var y=u({__name:`openai-audio-speech`,setup(u){let g=t(),y=r(),{providers:b}=o(y),{t:x}=a(),S={speed:1},C=m(1),w=p(()=>!!b.value[_]?.apiKey),T=p(()=>g.availableVoices[_]||[]);async function E(e,t,n){let r=await y.getProviderInstance(_);if(!r)throw Error(`Failed to initialize speech provider`);let i=y.getProviderConfig(_),a=i.model||v;return await g.speech(r,a,e,t,{...i,...S})}return f(C,async()=>{let e=y.getProviderConfig(_);e.speed=C.value}),(t,r)=>(d(),c(h(e),{"provider-id":_,"default-model":v,"additional-settings":S},{"voice-settings":s(()=>[l(h(i),{modelValue:C.value,"onUpdate:modelValue":r[0]||=e=>C.value=e,label:h(x)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:h(x)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:s(()=>[l(h(n),{"available-voices":T.value,"generate-speech":E,"api-key-configured":w.value,"default-text":`Hello! This is a test of the OpenAI Speech.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof g==`function`&&g(y);var b=y;export{b as default}; \ No newline at end of file diff --git a/assets/openai-audio-transcription-Cf4-ZOqB.js b/assets/openai-audio-transcription-DLiqCuDl.js similarity index 53% rename from assets/openai-audio-transcription-Cf4-ZOqB.js rename to assets/openai-audio-transcription-DLiqCuDl.js index 76c3fa689a0cceda66df1ee70da56e393560b21d..dd4c9dd79574d4ef7bfca28d3c1eb02bd1095526 100644 --- a/assets/openai-audio-transcription-Cf4-ZOqB.js +++ b/assets/openai-audio-transcription-DLiqCuDl.js @@ -1 +1 @@ -import{B as e,C as t,a4 as n,bP as r,eA as i,eF as a,eG as o,eQ as s,e_ as c,ey as l,f6 as u}from"./index-DEhol03r.js";import{b as d}from"./route-block-Dc_s4AGN.js";import{b as f}from"./hearing-EgcjzOdT.js";const p=`openai-audio-transcription`,m=`whisper-1`;var h=o({__name:`openai-audio-transcription`,setup(o){let d=f(),h=n(),{providers:g}=r(h),_=l(()=>!!g.value[p]?.apiKey);async function v(e){let t=await h.getProviderInstance(p);if(!t)throw Error(`Failed to initialize speech provider`);let n=h.getProviderConfig(p),r=n.model||m;return await d.transcription(t,r,e,`json`)}return(n,r)=>(s(),i(u(e),{"provider-id":p,"default-model":m},{playground:c(()=>[a(u(t),{"generate-transcription":v,"api-key-configured":_.value},null,8,[`api-key-configured`])]),_:1}))}});typeof d==`function`&&d(h);var g=h;export{g as default}; \ No newline at end of file +import{B as e,C as t,a4 as n,bQ as r,e$ as i,eB as a,eG as o,eH as s,eR as c,ez as l,f7 as u}from"./index-D3Bcbz9S.js";import{b as d}from"./route-block-Dc_s4AGN.js";import{b as f}from"./hearing-BXMZCHIN.js";const p=`openai-audio-transcription`,m=`whisper-1`;var h=s({__name:`openai-audio-transcription`,setup(s){let d=f(),h=n(),{providers:g}=r(h),_=l(()=>!!g.value[p]?.apiKey);async function v(e){let t=await h.getProviderInstance(p);if(!t)throw Error(`Failed to initialize speech provider`);let n=h.getProviderConfig(p),r=n.model||m;return await d.transcription(t,r,e,`json`)}return(n,r)=>(c(),a(u(e),{"provider-id":p,"default-model":m},{playground:i(()=>[o(u(t),{"generate-transcription":v,"api-key-configured":_.value},null,8,[`api-key-configured`])]),_:1}))}});typeof d==`function`&&d(h);var g=h;export{g as default}; \ No newline at end of file diff --git a/assets/openai-compatible-CFTIqNWo.js b/assets/openai-compatible-BZeCaJly.js similarity index 62% rename from assets/openai-compatible-CFTIqNWo.js rename to assets/openai-compatible-BZeCaJly.js index c5c51eee4555859cf76ef8a0eec380347764b3ce..e4138dcbcf00ba93027d3aedd9474a98874f121b 100644 --- a/assets/openai-compatible-CFTIqNWo.js +++ b/assets/openai-compatible-BZeCaJly.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`openai-compatible`;var x=f({__name:`openai-compatible`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||w.value?.defaultOptions?.().baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||w.value?.defaultOptions?.().baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||w.value?.defaultOptions?.().baseUrl||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName||`OpenAI Compatible`,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:w.value?.defaultOptions?.().baseUrl||`https://api.example.com/v1/`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`openai-compatible`;var x=p({__name:`openai-compatible`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||w.value?.defaultOptions?.().baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||w.value?.defaultOptions?.().baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||w.value?.defaultOptions?.().baseUrl||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName||`OpenAI Compatible`,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:w.value?.defaultOptions?.().baseUrl||`https://api.example.com/v1/`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/openai-compatible-audio-speech-MBU1m6DU.js b/assets/openai-compatible-audio-speech-CwdFGeuQ.js similarity index 70% rename from assets/openai-compatible-audio-speech-MBU1m6DU.js rename to assets/openai-compatible-audio-speech-CwdFGeuQ.js index a5eebb0dcea531333c5c1c275ba9828f35aab9bf..180acab73a37ba225aead1fe9909c1c4dc90db62 100644 --- a/assets/openai-compatible-audio-speech-MBU1m6DU.js +++ b/assets/openai-compatible-audio-speech-CwdFGeuQ.js @@ -1 +1 @@ -import{$ as e,L as t,N as n,X as r,Y as i,Z as a,_ as o,a1 as s,a4 as c,aW as l,ae as u,bM as d,bP as f,eA as p,eF as m,eG as h,eO as g,eQ as _,eY as v,e_ as y,ey as b,f1 as x,f6 as S}from"./index-DEhol03r.js";import{b as C}from"./route-block-Dc_s4AGN.js";const w=`openai-compatible-audio-speech`;var T=h({__name:`openai-compatible-audio-speech`,setup(h){let C=t(),T=c(),{providers:E}=f(T),{t:D}=u(),O=d(),k={speed:1},A=b(()=>T.getProviderMetadata(w)),j=b({get:()=>E.value[w]?.apiKey||``,set:e=>{E.value[w]&&(E.value[w].apiKey=e)}}),M=b({get:()=>E.value[w]?.baseUrl||``,set:e=>{E.value[w]&&(E.value[w].baseUrl=e)}}),N=b({get:()=>E.value[w]?.model||`tts-1`,set:e=>{E.value[w]&&(E.value[w].model=e)}}),P=b({get:()=>E.value[w]?.voice||`alloy`,set:e=>{E.value[w]&&(E.value[w].voice=e)}}),F=x(1),I=b(()=>!!E.value[w]?.apiKey);async function L(e,t,n,r){let i=await T.getProviderInstance(w);if(!i)throw Error(`Failed to initialize speech provider`);let a=T.getProviderConfig(w);return await C.speech(i,r||N.value,e,t||P.value,{...a,...k,speed:F.value})}g(()=>{T.initializeProvider(w);let e=E.value[w]||{};j.value=e.apiKey||``,M.value=e.baseUrl||``,N.value=e.model||`tts-1`,P.value=e.voice||`alloy`,F.value=e.speed||1}),v(F,e=>{E.value[w]&&(E.value[w].speed=e)});function R(){let e=A.value?.defaultOptions?.()||{};E.value[w]={apiKey:``,baseUrl:e.baseUrl||``,model:`tts-1`,voice:`alloy`,speed:1},j.value=``,M.value=e.baseUrl||``,N.value=`tts-1`,P.value=`alloy`,F.value=1}return(t,c)=>(_(),p(S(r),{"provider-name":A.value?.localizedName||`OpenAI Compatible`,"provider-icon":A.value?.icon,"on-back":()=>S(O).back()},{default:y(()=>[m(S(i),null,{default:y(()=>[m(S(a),{title:S(D)(`settings.pages.providers.common.section.basic.title`),description:S(D)(`settings.pages.providers.common.section.basic.description`),"on-reset":R},{default:y(()=>[m(S(e),{modelValue:j.value,"onUpdate:modelValue":c[0]||=e=>j.value=e,"provider-name":A.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),m(S(s),{title:S(D)(`settings.pages.providers.common.section.advanced.title`)},{default:y(()=>[m(S(o),{modelValue:M.value,"onUpdate:modelValue":c[1]||=e=>M.value=e,placeholder:`https://api.example.com/v1/`},null,8,[`modelValue`]),m(S(l),{modelValue:F.value,"onUpdate:modelValue":c[2]||=e=>F.value=e,label:S(D)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:S(D)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`])]),_:1},8,[`title`])]),_:1}),m(S(n),{"model-value":N.value,"onUpdate:modelValue":c[3]||=e=>N.value=e,voice:P.value,"onUpdate:voice":c[4]||=e=>P.value=e,"generate-speech":L,"api-key-configured":I.value,"default-text":`Hello! This is a test of the OpenAI Compatible Speech.`},null,8,[`model-value`,`voice`,`api-key-configured`])]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof C==`function`&&C(T);var E=T;export{E as default}; \ No newline at end of file +import{$ as e,L as t,N as n,X as r,Y as i,Z as a,_ as o,a1 as s,a4 as c,aX as l,ae as u,bN as d,bQ as f,e$ as p,eB as m,eG as h,eH as g,eP as _,eR as v,eZ as y,ez as b,f2 as x,f7 as S}from"./index-D3Bcbz9S.js";import{b as C}from"./route-block-Dc_s4AGN.js";const w=`openai-compatible-audio-speech`;var T=g({__name:`openai-compatible-audio-speech`,setup(g){let C=t(),T=c(),{providers:E}=f(T),{t:D}=u(),O=d(),k={speed:1},A=b(()=>T.getProviderMetadata(w)),j=b({get:()=>E.value[w]?.apiKey||``,set:e=>{E.value[w]&&(E.value[w].apiKey=e)}}),M=b({get:()=>E.value[w]?.baseUrl||``,set:e=>{E.value[w]&&(E.value[w].baseUrl=e)}}),N=b({get:()=>E.value[w]?.model||`tts-1`,set:e=>{E.value[w]&&(E.value[w].model=e)}}),P=b({get:()=>E.value[w]?.voice||`alloy`,set:e=>{E.value[w]&&(E.value[w].voice=e)}}),F=x(1),I=b(()=>!!E.value[w]?.apiKey);async function L(e,t,n,r){let i=await T.getProviderInstance(w);if(!i)throw Error(`Failed to initialize speech provider`);let a=T.getProviderConfig(w);return await C.speech(i,r||N.value,e,t||P.value,{...a,...k,speed:F.value})}_(()=>{T.initializeProvider(w);let e=E.value[w]||{};j.value=e.apiKey||``,M.value=e.baseUrl||``,N.value=e.model||`tts-1`,P.value=e.voice||`alloy`,F.value=e.speed||1}),y(F,e=>{E.value[w]&&(E.value[w].speed=e)});function R(){let e=A.value?.defaultOptions?.()||{};E.value[w]={apiKey:``,baseUrl:e.baseUrl||``,model:`tts-1`,voice:`alloy`,speed:1},j.value=``,M.value=e.baseUrl||``,N.value=`tts-1`,P.value=`alloy`,F.value=1}return(t,c)=>(v(),m(S(r),{"provider-name":A.value?.localizedName||`OpenAI Compatible`,"provider-icon":A.value?.icon,"on-back":()=>S(O).back()},{default:p(()=>[h(S(i),null,{default:p(()=>[h(S(a),{title:S(D)(`settings.pages.providers.common.section.basic.title`),description:S(D)(`settings.pages.providers.common.section.basic.description`),"on-reset":R},{default:p(()=>[h(S(e),{modelValue:j.value,"onUpdate:modelValue":c[0]||=e=>j.value=e,"provider-name":A.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),h(S(s),{title:S(D)(`settings.pages.providers.common.section.advanced.title`)},{default:p(()=>[h(S(o),{modelValue:M.value,"onUpdate:modelValue":c[1]||=e=>M.value=e,placeholder:`https://api.example.com/v1/`},null,8,[`modelValue`]),h(S(l),{modelValue:F.value,"onUpdate:modelValue":c[2]||=e=>F.value=e,label:S(D)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:S(D)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`])]),_:1},8,[`title`])]),_:1}),h(S(n),{"model-value":N.value,"onUpdate:modelValue":c[3]||=e=>N.value=e,voice:P.value,"onUpdate:voice":c[4]||=e=>P.value=e,"generate-speech":L,"api-key-configured":I.value,"default-text":`Hello! This is a test of the OpenAI Compatible Speech.`},null,8,[`model-value`,`voice`,`api-key-configured`])]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof C==`function`&&C(T);var E=T;export{E as default}; \ No newline at end of file diff --git a/assets/openai-compatible-audio-transcription-DM5ex1XJ.js b/assets/openai-compatible-audio-transcription-BZNHTpx2.js similarity index 71% rename from assets/openai-compatible-audio-transcription-DM5ex1XJ.js rename to assets/openai-compatible-audio-transcription-BZNHTpx2.js index 534263d313b435ceafd28e03343a348ca96a2a37..054dba6cc9cde79d8375385021cfa263b72da3df 100644 --- a/assets/openai-compatible-audio-transcription-DM5ex1XJ.js +++ b/assets/openai-compatible-audio-transcription-BZNHTpx2.js @@ -1 +1 @@ -import{$ as e,C as t,X as n,Y as r,Z as i,_ as a,a1 as o,a4 as s,aZ as c,ae as l,bM as u,bP as d,eA as f,eF as p,eG as m,eO as h,eQ as g,e_ as _,ey as v,f6 as y}from"./index-DEhol03r.js";import{b}from"./route-block-Dc_s4AGN.js";import{b as x}from"./hearing-EgcjzOdT.js";const S=`openai-compatible-audio-transcription`;var C=m({__name:`openai-compatible-audio-transcription`,setup(m){let b=x(),C=s(),{providers:w}=d(C),{t:T}=l(),E=u(),D=v(()=>C.getProviderMetadata(S)),O=v(()=>D.value?.localizedName||T(`settings.pages.providers.provider.openai-compatible-audio-transcription.title`)),k=v({get:()=>w.value[S]?.apiKey||``,set:e=>w.value[S]={...w.value[S],apiKey:e}}),A=v({get:()=>w.value[S]?.baseUrl||``,set:e=>w.value[S]={...w.value[S],baseUrl:e}}),j=v({get:()=>w.value[S]?.model||`whisper-1`,set:e=>w.value[S]={...w.value[S],model:e}}),M=v(()=>!!w.value[S]?.apiKey);async function N(e){let t=await C.getProviderInstance(S);if(!t)throw Error(`Failed to initialize transcription provider`);return await b.transcription(t,j.value,e,`json`)}h(()=>{C.initializeProvider(S);let e=w.value[S]||{};k.value=e.apiKey||``,A.value=e.baseUrl||``,j.value=e.model||`whisper-1`});function P(){let e=D.value?.defaultOptions?.()||{};w.value[S]={apiKey:``,baseUrl:e.baseUrl||``,model:`whisper-1`},k.value=``,A.value=e.baseUrl||``,j.value=`whisper-1`}return(s,l)=>(g(),f(y(n),{"provider-name":O.value,"provider-icon":D.value?.icon,"on-back":()=>y(E).back()},{playground:_(()=>[p(y(t),{"generate-transcription":N,"api-key-configured":M.value},null,8,[`api-key-configured`])]),default:_(()=>[p(y(r),null,{default:_(()=>[p(y(i),{title:y(T)(`settings.pages.providers.common.section.basic.title`),description:y(T)(`settings.pages.providers.common.section.basic.description`),"on-reset":P},{default:_(()=>[p(y(e),{modelValue:k.value,"onUpdate:modelValue":l[0]||=e=>k.value=e,"provider-name":D.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`]),p(y(c),{modelValue:j.value,"onUpdate:modelValue":l[1]||=e=>j.value=e,label:y(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_name`),placeholder:y(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_placeholder`)},null,8,[`modelValue`,`label`,`placeholder`])]),_:1},8,[`title`,`description`]),p(y(o),{title:y(T)(`settings.pages.providers.common.section.advanced.title`)},{default:_(()=>[p(y(a),{modelValue:A.value,"onUpdate:modelValue":l[2]||=e=>A.value=e,placeholder:`https://api.example.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof b==`function`&&b(C);var w=C;export{w as default}; \ No newline at end of file +import{$ as e,C as t,X as n,Y as r,Z as i,_ as a,a1 as o,a4 as s,a_ as c,ae as l,bN as u,bQ as d,e$ as f,eB as p,eG as m,eH as h,eP as g,eR as _,ez as v,f7 as y}from"./index-D3Bcbz9S.js";import{b}from"./route-block-Dc_s4AGN.js";import{b as x}from"./hearing-BXMZCHIN.js";const S=`openai-compatible-audio-transcription`;var C=h({__name:`openai-compatible-audio-transcription`,setup(h){let b=x(),C=s(),{providers:w}=d(C),{t:T}=l(),E=u(),D=v(()=>C.getProviderMetadata(S)),O=v(()=>D.value?.localizedName||T(`settings.pages.providers.provider.openai-compatible-audio-transcription.title`)),k=v({get:()=>w.value[S]?.apiKey||``,set:e=>w.value[S]={...w.value[S],apiKey:e}}),A=v({get:()=>w.value[S]?.baseUrl||``,set:e=>w.value[S]={...w.value[S],baseUrl:e}}),j=v({get:()=>w.value[S]?.model||`whisper-1`,set:e=>w.value[S]={...w.value[S],model:e}}),M=v(()=>!!w.value[S]?.apiKey);async function N(e){let t=await C.getProviderInstance(S);if(!t)throw Error(`Failed to initialize transcription provider`);return await b.transcription(t,j.value,e,`json`)}g(()=>{C.initializeProvider(S);let e=w.value[S]||{};k.value=e.apiKey||``,A.value=e.baseUrl||``,j.value=e.model||`whisper-1`});function P(){let e=D.value?.defaultOptions?.()||{};w.value[S]={apiKey:``,baseUrl:e.baseUrl||``,model:`whisper-1`},k.value=``,A.value=e.baseUrl||``,j.value=`whisper-1`}return(s,l)=>(_(),p(y(n),{"provider-name":O.value,"provider-icon":D.value?.icon,"on-back":()=>y(E).back()},{playground:f(()=>[m(y(t),{"generate-transcription":N,"api-key-configured":M.value},null,8,[`api-key-configured`])]),default:f(()=>[m(y(r),null,{default:f(()=>[m(y(i),{title:y(T)(`settings.pages.providers.common.section.basic.title`),description:y(T)(`settings.pages.providers.common.section.basic.description`),"on-reset":P},{default:f(()=>[m(y(e),{modelValue:k.value,"onUpdate:modelValue":l[0]||=e=>k.value=e,"provider-name":D.value?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`]),m(y(c),{modelValue:j.value,"onUpdate:modelValue":l[1]||=e=>j.value=e,label:y(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_name`),placeholder:y(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_placeholder`)},null,8,[`modelValue`,`label`,`placeholder`])]),_:1},8,[`title`,`description`]),m(y(o),{title:y(T)(`settings.pages.providers.common.section.advanced.title`)},{default:f(()=>[m(y(a),{modelValue:A.value,"onUpdate:modelValue":l[2]||=e=>A.value=e,placeholder:`https://api.example.com/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof b==`function`&&b(C);var w=C;export{w as default}; \ No newline at end of file diff --git a/assets/openrouter-ai-BV_8ZWp-.js b/assets/openrouter-ai-C0dlS-yl.js similarity index 65% rename from assets/openrouter-ai-BV_8ZWp-.js rename to assets/openrouter-ai-C0dlS-yl.js index 1b22333deebce24422542c4497463b1b71f0f6dc..7151faf7608090ef85ad42cf14f29572c3ed7ce5 100644 --- a/assets/openrouter-ai-BV_8ZWp-.js +++ b/assets/openrouter-ai-C0dlS-yl.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`openrouter-ai`;var x=f({__name:`openrouter-ai`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||w.value?.defaultOptions?.().baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||w.value?.defaultOptions?.().baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||w.value?.defaultOptions?.().baseUrl||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`sk-or-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:w.value?.defaultOptions?.().baseUrl||``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`openrouter-ai`;var x=p({__name:`openrouter-ai`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||w.value?.defaultOptions?.().baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||w.value?.defaultOptions?.().baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||w.value?.defaultOptions?.().baseUrl||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName,"provider-icon":w.value?.icon,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`sk-or-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:w.value?.defaultOptions?.().baseUrl||``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/pages-B0nDC2KO.js b/assets/pages-B0nDC2KO.js deleted file mode 100644 index acf148966b182dd0ba0bd296afa0e4f40b78895c..0000000000000000000000000000000000000000 --- a/assets/pages-B0nDC2KO.js +++ /dev/null @@ -1 +0,0 @@ -import"./Basic-D33XBiPI.js";import{b as e,k as t}from"./Scenes-0TJqCS-r.js";import"./merge-D5ueGMzg.js";import{b as n,d as r}from"./theme-color-D2aK6AFb.js";import{b$ as i,bP as a,bQ as o,bR as s,bU as c,eA as l,eB as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ez as _,f1 as v,f6 as y}from"./index-DEhol03r.js";import"./HeaderLink-CwKWoudF.js";import"./dist-ByFcnk3K.js";import{b}from"./route-block-Dc_s4AGN.js";import"./ibl-CbBD07sa.js";import{b as x,c as S,d as C,e as w,f as T,g as E}from"./AnimatedWave-CTK2lmxN.js";import"./import-url-browser-CQxpIBxI.js";import"./duckdb-mvp-DkPAVKN8.js";import"./index-CAcLDIRJ-zzf_MFDO.js";import"./core-C5TqIlxQ.js";import"./airi-card-7HyqBFjt.js";import"./hearing-EgcjzOdT.js";import"./composables-C5AKp2DU.js";const D={relative:``,flex:`~ col`,"z-2":``,"h-100dvh":``,"w-100vw":``,"of-hidden":``},O={class:`px-0 py-1 md:px-3 md:py-3`,"w-full":``,"gap-2":``},k={relative:``,flex:`~ 1 row gap-y-0 gap-x-2 R(),{immediate:!0}),p(()=>R()),(t,n)=>(m(),l(E,null,{default:g(()=>[d(x,{class:`widgets top-widgets`,"fill-color":y(b)?`oklch(35% calc(var(--chromatic-chroma) * 0.6) var(--chromatic-hue))`:`color-mix(in srgb, oklch(95% calc(var(--chromatic-chroma-50) * 0.5) var(--chromatic-hue)) 80%, oklch(100% 0 360))`},{default:g(()=>[_(`div`,D,[_(`div`,O,[d(T,{class:`hidden md:flex`}),d(C,{class:`flex md:hidden`})]),_(`div`,k,[d(y(e),{"flex-1":``,"min-w":`1/2`,paused:A.value,"focus-at":{x:y(M).x.value,y:y(M).y.value},"x-offset":`${y(L)?y(P).x:y(P).x-10}%`,"y-offset":y(F).y,scale:y(N)},null,8,[`paused`,`focus-at`,`x-offset`,`y-offset`,`scale`]),y(L)?u(``,!0):(m(),l(w,{key:0,h:`85dvh`,absolute:``,"right-4":``,flex:``,"flex-1":``,"flex-col":``,"max-w":`500px`,"min-w":`30%`})),y(L)?(m(),l(S,{key:1,onSettingsOpen:j})):u(``,!0)])])]),_:1},8,[`fill-color`])]),_:1}))}});typeof b==`function`&&b(A);var j=A;export{j as default}; \ No newline at end of file diff --git a/assets/pages-BO69Owbc.js b/assets/pages-BO69Owbc.js new file mode 100644 index 0000000000000000000000000000000000000000..8a9c8608adbdf989b346cb38e5590ce49b7b516b --- /dev/null +++ b/assets/pages-BO69Owbc.js @@ -0,0 +1 @@ +import"./Basic-IbpirTdD.js";import{b as e,k as t}from"./Scenes-CKSNtwSU.js";import"./merge-D5ueGMzg.js";import{b as n,d as r}from"./theme-color-CqKmMBmH.js";import{bQ as i,bR as a,bS as o,bV as s,c0 as c,e$ as l,eA as u,eB as d,eC as f,eG as p,eH as m,eP as h,eR as g,eZ as _,f2 as v,f7 as y}from"./index-D3Bcbz9S.js";import"./HeaderLink-CWxXVf7j.js";import"./dist-DInrA4pj.js";import{b}from"./route-block-Dc_s4AGN.js";import"./ibl-CoXg6NDS.js";import{b as x,c as S,d as C,e as w,f as T,g as E}from"./AnimatedWave-D3VizsVF.js";import"./import-url-browser-CQxpIBxI.js";import"./duckdb-mvp-DkPAVKN8.js";import"./index-CAcLDIRJ-D76TFz33.js";import"./core-C5TqIlxQ.js";import"./airi-card-CObXZhjH.js";import"./hearing-BXMZCHIN.js";import"./composables-Tp0cITw9.js";const D={relative:``,flex:`~ col`,"z-2":``,"h-100dvh":``,"w-100vw":``,"of-hidden":``},O={class:`px-0 py-1 md:px-3 md:py-3`,"w-full":``,"gap-2":``},k={relative:``,flex:`~ 1 row gap-y-0 gap-x-2 R(),{immediate:!0}),h(()=>R()),(t,n)=>(g(),d(E,null,{default:l(()=>[p(x,{class:`widgets top-widgets`,"fill-color":y(b)?`oklch(35% calc(var(--chromatic-chroma) * 0.6) var(--chromatic-hue))`:`color-mix(in srgb, oklch(95% calc(var(--chromatic-chroma-50) * 0.5) var(--chromatic-hue)) 80%, oklch(100% 0 360))`},{default:l(()=>[u(`div`,D,[u(`div`,O,[p(T,{class:`hidden md:flex`}),p(C,{class:`flex md:hidden`})]),u(`div`,k,[p(y(e),{"flex-1":``,"min-w":`1/2`,paused:A.value,"focus-at":{x:y(M).x.value,y:y(M).y.value},"x-offset":`${y(L)?y(P).x:y(P).x-10}%`,"y-offset":y(F).y,scale:y(N)},null,8,[`paused`,`focus-at`,`x-offset`,`y-offset`,`scale`]),y(L)?f(``,!0):(g(),d(w,{key:0,h:`85dvh`,absolute:``,"right-4":``,flex:``,"flex-1":``,"flex-col":``,"max-w":`500px`,"min-w":`30%`})),y(L)?(g(),d(S,{key:1,onSettingsOpen:j})):f(``,!0)])])]),_:1},8,[`fill-color`])]),_:1}))}});typeof b==`function`&&b(A);var j=A;export{j as default}; \ No newline at end of file diff --git a/assets/plain-B2G-onti.js b/assets/plain-ByGfUmM_.js similarity index 63% rename from assets/plain-B2G-onti.js rename to assets/plain-ByGfUmM_.js index 5cd89865443821f4ccbfe37775761dbcad50a77b..2f646c6e7aaaf9689417896eb35d6346ac617c6b 100644 --- a/assets/plain-B2G-onti.js +++ b/assets/plain-ByGfUmM_.js @@ -1 +1 @@ -import{aX as e,eA as t,eQ as n,eU as r}from"./index-DEhol03r.js";const i={};function a(e,i){let a=r(`RouterView`);return n(),t(a)}var o=e(i,[[`render`,a]]);export{o as default}; \ No newline at end of file +import{aY as e,eB as t,eR as n,eV as r}from"./index-D3Bcbz9S.js";const i={};function a(e,i){let a=r(`RouterView`);return n(),t(a)}var o=e(i,[[`render`,a]]);export{o as default}; \ No newline at end of file diff --git a/assets/player2-4aZfBz8x.js b/assets/player2-4aZfBz8x.js deleted file mode 100644 index dc5d2a4befa67c53fdb55e160f5d8bf0b8aab41e..0000000000000000000000000000000000000000 --- a/assets/player2-4aZfBz8x.js +++ /dev/null @@ -1 +0,0 @@ -import{X as e,Y as t,Z as n,_ as r,a4 as i,ae as a,az as o,bM as s,bP as c,eB as l,eC as u,eE as d,eF as f,eG as p,eO as m,eQ as h,eY as g,e_ as _,ev as v,ey as y,ez as b,f1 as x,f6 as S}from"./index-DEhol03r.js";import{b as C}from"./route-block-Dc_s4AGN.js";const w={key:0,"mb-1":``},T=`player2`;var E=p({__name:`player2`,setup(p){let{t:C}=a(),E=s(),D=i(),{providers:O}=c(D),k=y(()=>D.getProviderMetadata(T)),A=y({get:()=>O.value[T]?.baseUrl||``,set:e=>{O.value[T]||(O.value[T]={}),O.value[T].baseUrl=e}}),j=x(!0);m(async()=>{D.initializeProvider(T),A.value=O.value[T]?.baseUrl||``;try{let e=await fetch(`${A.value}health`,{method:`GET`,headers:{"player2-game-key":`airi`}});j.value=e.status===200}catch(e){console.error(e),j.value=!1}}),g([A],()=>{O.value[T]={...O.value[T],baseUrl:A.value||``}});function M(){O.value[T]={...k.value?.defaultOptions}}return(i,a)=>(h(),u(v,null,[j.value?l(``,!0):(h(),u(`div`,w,[f(S(o),{theme:`orange`},{label:_(()=>[...a[1]||=[d(` Player 2 is not running `,-1)]]),default:_(()=>[a[2]||=b(`div`,null,[d(` Please download and run the Player2 App: `),b(`a`,{href:`https://player2.game`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game `),b(`div`,null,[d(` After downloading, if you still are having trouble, please reach out to us on Discord: `),b(`a`,{href:`https://player2.game/discord`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game/discord `),d(`. `)])],-1)]),_:1})])),f(S(e),{"provider-name":k.value?.localizedName,"provider-icon":k.value?.icon,"on-back":()=>S(E).back()},{default:_(()=>[f(S(t),null,{default:_(()=>[f(S(n),{title:S(C)(`settings.pages.providers.common.section.basic.title`),description:S(C)(`settings.pages.providers.common.section.basic.description`),"on-reset":M},{default:_(()=>[f(S(r),{modelValue:A.value,"onUpdate:modelValue":a[0]||=e=>A.value=e,placeholder:`http://localhost:4315/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`,`description`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`])],64))}});typeof C==`function`&&C(E);var D=E;export{D as default}; \ No newline at end of file diff --git a/assets/player2-BlBuUwzi.js b/assets/player2-BlBuUwzi.js new file mode 100644 index 0000000000000000000000000000000000000000..f3cb33a25030ac2616549d0966af371a522a9489 --- /dev/null +++ b/assets/player2-BlBuUwzi.js @@ -0,0 +1 @@ +import{X as e,Y as t,Z as n,_ as r,a4 as i,aA as a,ae as o,bN as s,bQ as c,e$ as l,eA as u,eC as d,eD as f,eF as p,eG as m,eH as h,eP as g,eR as _,eZ as v,ew as y,ez as b,f2 as x,f7 as S}from"./index-D3Bcbz9S.js";import{b as C}from"./route-block-Dc_s4AGN.js";const w={key:0,"mb-1":``},T=`player2`;var E=h({__name:`player2`,setup(h){let{t:C}=o(),E=s(),D=i(),{providers:O}=c(D),k=b(()=>D.getProviderMetadata(T)),A=b({get:()=>O.value[T]?.baseUrl||``,set:e=>{O.value[T]||(O.value[T]={}),O.value[T].baseUrl=e}}),j=x(!0);g(async()=>{D.initializeProvider(T),A.value=O.value[T]?.baseUrl||``;try{let e=await fetch(`${A.value}health`,{method:`GET`,headers:{"player2-game-key":`airi`}});j.value=e.status===200}catch(e){console.error(e),j.value=!1}}),v([A],()=>{O.value[T]={...O.value[T],baseUrl:A.value||``}});function M(){O.value[T]={...k.value?.defaultOptions}}return(i,o)=>(_(),f(y,null,[j.value?d(``,!0):(_(),f(`div`,w,[m(S(a),{theme:`orange`},{label:l(()=>[...o[1]||=[p(` Player 2 is not running `,-1)]]),default:l(()=>[o[2]||=u(`div`,null,[p(` Please download and run the Player2 App: `),u(`a`,{href:`https://player2.game`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game `),u(`div`,null,[p(` After downloading, if you still are having trouble, please reach out to us on Discord: `),u(`a`,{href:`https://player2.game/discord`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game/discord `),p(`. `)])],-1)]),_:1})])),m(S(e),{"provider-name":k.value?.localizedName,"provider-icon":k.value?.icon,"on-back":()=>S(E).back()},{default:l(()=>[m(S(t),null,{default:l(()=>[m(S(n),{title:S(C)(`settings.pages.providers.common.section.basic.title`),description:S(C)(`settings.pages.providers.common.section.basic.description`),"on-reset":M},{default:l(()=>[m(S(r),{modelValue:A.value,"onUpdate:modelValue":o[0]||=e=>A.value=e,placeholder:`http://localhost:4315/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`,`description`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`])],64))}});typeof C==`function`&&C(E);var D=E;export{D as default}; \ No newline at end of file diff --git a/assets/player2-speech-dVoWj_im.js b/assets/player2-speech-D_d58W6a.js similarity index 53% rename from assets/player2-speech-dVoWj_im.js rename to assets/player2-speech-D_d58W6a.js index ea64779f430d7eee439603679b3e22251e1a5d44..01d8199526fff0a0071e072bc385a884da7b48d0 100644 --- a/assets/player2-speech-dVoWj_im.js +++ b/assets/player2-speech-D_d58W6a.js @@ -1 +1 @@ -import{K as e,L as t,O as n,a4 as r,aW as i,ae as a,az as o,eB as s,eC as c,eE as l,eF as u,eG as d,eO as f,eQ as p,eY as m,e_ as h,ev as g,ey as _,ez as v,f1 as y,f6 as b}from"./index-DEhol03r.js";import{b as x}from"./route-block-Dc_s4AGN.js";const S={key:0,style:{color:`red`,"margin-bottom":`1rem`}},C=`player2-speech`;var w=d({__name:`player2-speech`,setup(d){let x=y(1),w=t(),T=r(),{t:E}=a(),D=_(()=>w.availableVoices[C]||[]);async function O(e,t,n){let r=await T.getProviderInstance(C);if(!r)throw Error(`Failed to initialize speech provider`);let i=T.getProviderConfig(C),a=i.model||`v1`;return await w.speech(r,a,e,t,{...i})}let k=y(!0);return f(async()=>{let e=T.getProviderConfig(C),t=T.getProviderMetadata(C);await t.validators.validateProviderConfig(e)?await w.loadVoicesForProvider(C):console.error(`Failed to validate provider config`,e);try{let t=e.baseUrl??``,n=await fetch(`${t.endsWith(`/`)?t.slice(0,-1):t}/health`,{method:`GET`,headers:{"player2-game-key":`airi`}});k.value=n.status===200}catch(e){console.error(e),k.value=!1}}),m(x,async()=>{let e=T.getProviderConfig(C);e.speed=x.value}),(t,r)=>(p(),c(g,null,[k.value?s(``,!0):(p(),c(`div`,S,[u(b(o),{theme:`orange`},{label:h(()=>[...r[1]||=[l(` Player 2 is not running `,-1)]]),default:h(()=>[r[2]||=v(`div`,null,[l(` Please download and run the Player2 App: `),v(`a`,{href:`https://player2.game`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game `),v(`div`,null,[l(` After downloading, if you still are having trouble, please reach out to us on Discord: `),v(`a`,{href:`https://player2.game/discord`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game/discord `),l(`. `)])],-1)]),_:1})])),u(b(e),{"provider-id":C,"default-model":`v1`},{"voice-settings":h(()=>[u(b(i),{modelValue:x.value,"onUpdate:modelValue":r[0]||=e=>x.value=e,label:b(E)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:b(E)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:5,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:h(()=>[u(b(n),{"available-voices":D.value,"generate-speech":O,"api-key-configured":!0,"default-text":`Hello! This is a test of the Player 2 voice synthesis.`},null,8,[`available-voices`])]),_:1})],64))}});typeof x==`function`&&x(w);var T=w;export{T as default}; \ No newline at end of file +import{K as e,L as t,O as n,a4 as r,aA as i,aX as a,ae as o,e$ as s,eA as c,eC as l,eD as u,eF as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ew as _,ez as v,f2 as y,f7 as b}from"./index-D3Bcbz9S.js";import{b as x}from"./route-block-Dc_s4AGN.js";const S={key:0,style:{color:`red`,"margin-bottom":`1rem`}},C=`player2-speech`;var w=p({__name:`player2-speech`,setup(p){let x=y(1),w=t(),T=r(),{t:E}=o(),D=v(()=>w.availableVoices[C]||[]);async function O(e,t,n){let r=await T.getProviderInstance(C);if(!r)throw Error(`Failed to initialize speech provider`);let i=T.getProviderConfig(C),a=i.model||`v1`;return await w.speech(r,a,e,t,{...i})}let k=y(!0);return m(async()=>{let e=T.getProviderConfig(C),t=T.getProviderMetadata(C);await t.validators.validateProviderConfig(e)?await w.loadVoicesForProvider(C):console.error(`Failed to validate provider config`,e);try{let t=e.baseUrl??``,n=await fetch(`${t.endsWith(`/`)?t.slice(0,-1):t}/health`,{method:`GET`,headers:{"player2-game-key":`airi`}});k.value=n.status===200}catch(e){console.error(e),k.value=!1}}),g(x,async()=>{let e=T.getProviderConfig(C);e.speed=x.value}),(t,r)=>(h(),u(_,null,[k.value?l(``,!0):(h(),u(`div`,S,[f(b(i),{theme:`orange`},{label:s(()=>[...r[1]||=[d(` Player 2 is not running `,-1)]]),default:s(()=>[r[2]||=c(`div`,null,[d(` Please download and run the Player2 App: `),c(`a`,{href:`https://player2.game`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game `),c(`div`,null,[d(` After downloading, if you still are having trouble, please reach out to us on Discord: `),c(`a`,{href:`https://player2.game/discord`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game/discord `),d(`. `)])],-1)]),_:1})])),f(b(e),{"provider-id":C,"default-model":`v1`},{"voice-settings":s(()=>[f(b(a),{modelValue:x.value,"onUpdate:modelValue":r[0]||=e=>x.value=e,label:b(E)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:b(E)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:5,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:s(()=>[f(b(n),{"available-voices":D.value,"generate-speech":O,"api-key-configured":!0,"default-text":`Hello! This is a test of the Player 2 voice synthesis.`},null,8,[`available-voices`])]),_:1})],64))}});typeof x==`function`&&x(w);var T=w;export{T as default}; \ No newline at end of file diff --git a/assets/polaroid-CKTdBCLi.js b/assets/polaroid-CKTdBCLi.js new file mode 100644 index 0000000000000000000000000000000000000000..0142e3025936d783e5d78e154de4e048dd985ed1 --- /dev/null +++ b/assets/polaroid-CKTdBCLi.js @@ -0,0 +1 @@ +import{j as e,l as t}from"./Scenes-CKSNtwSU.js";import{am as n,bQ as r,c as i,e$ as a,eA as o,eD as s,eG as c,eH as l,eR as u,eT as d,eZ as f,er as p,ew as m,f0 as h,f2 as g,f7 as _,fb as v}from"./index-D3Bcbz9S.js";import"./dist-DInrA4pj.js";import"./ibl-CoXg6NDS.js";import"./import-url-browser-CQxpIBxI.js";import"./duckdb-mvp-DkPAVKN8.js";import"./index-CAcLDIRJ-D76TFz33.js";import"./core-C5TqIlxQ.js";import"./airi-card-CObXZhjH.js";import"./hearing-BXMZCHIN.js";const y={flex:``,"flex-col":``,"items-center":``,"gap-4":``},b={"h-full":``,"w-full":``},x=[`value`];var S=l({__name:`polaroid`,setup(l){let S=g(),C=g(),w=i(),{stageModelSelectedUrl:T}=r(w),E=g(`idle`),D=g([]);function O(e,t){let n=document.createElement(`a`);n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function k(e){C.value?.setMotion(e)}f(C,e=>{D.value=e?.listMotionGroups()||[]},{immediate:!0});function A(){C.value&&(C.value?.setMotion(E.value),D.value=C.value.listMotionGroups())}function j(){if(!S.value||!C.value)return;let e=S.value.canvasElement(),t=e.toDataURL(`image/png`);O(t,`live2d-screenshot.png`)}return(r,i)=>(u(),s(`div`,y,[o(`div`,b,[c(_(n),{relative:``,"min-h-70dvh":``},{default:a(({width:n,height:r})=>[c(_(t),{ref_key:`live2dCanvasRef`,ref:S,width:n,height:r,resolution:3,"rounded-full":``},{default:a(({app:t})=>[c(_(e),{ref_key:`live2dModelRef`,ref:C,"model-src":_(T),app:t,width:n,height:r,"focus-at":{x:n/2,y:r/2},onModelLoaded:A},null,8,[`model-src`,`app`,`width`,`height`,`focus-at`])]),_:2},1032,[`width`,`height`])]),_:1})]),o(`div`,null,[h(o(`select`,{"onUpdate:modelValue":i[0]||=e=>E.value=e,"rounded-lg":``,"px-3":``,"py-2":``,onChange:i[1]||=e=>k(E.value)},[(u(!0),s(m,null,d(D.value,e=>(u(),s(`option`,{key:e.motionIndex,value:e.motionName},v(e.fileName),9,x))),128))],544),[[p,E.value]])]),o(`div`,{border:`2px solid black dark:white`,flex:``,"items-center":``,"justify-center":``,"rounded-full":``,"p-1":``},[o(`button`,{class:`h-15 w-15 md:h-18 md:w-18`,bg:`black active:neutral-950 dark:white dark:active:neutral-50`,"rounded-full":``,"outline-none":``,"transition-colors":``,"duration-200":``,"ease-in-out":``,onClick:j})])]))}}),C=S;export{C as default}; \ No newline at end of file diff --git a/assets/polaroid-D8Y-SKEd.js b/assets/polaroid-D8Y-SKEd.js deleted file mode 100644 index b39a80ca71527d5e5825879abb12c712d566cda2..0000000000000000000000000000000000000000 --- a/assets/polaroid-D8Y-SKEd.js +++ /dev/null @@ -1 +0,0 @@ -import{j as e,l as t}from"./Scenes-0TJqCS-r.js";import{am as n,bP as r,c as i,e$ as a,eC as o,eF as s,eG as c,eQ as l,eS as u,eY as d,e_ as f,eq as p,ev as m,ez as h,f1 as g,f6 as _,fa as v}from"./index-DEhol03r.js";import"./dist-ByFcnk3K.js";import"./ibl-CbBD07sa.js";import"./import-url-browser-CQxpIBxI.js";import"./duckdb-mvp-DkPAVKN8.js";import"./index-CAcLDIRJ-zzf_MFDO.js";import"./core-C5TqIlxQ.js";import"./airi-card-7HyqBFjt.js";import"./hearing-EgcjzOdT.js";const y={flex:``,"flex-col":``,"items-center":``,"gap-4":``},b={"h-full":``,"w-full":``},x=[`value`];var S=c({__name:`polaroid`,setup(c){let S=g(),C=g(),w=i(),{stageModelSelectedUrl:T}=r(w),E=g(`idle`),D=g([]);function O(e,t){let n=document.createElement(`a`);n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function k(e){C.value?.setMotion(e)}d(C,e=>{D.value=e?.listMotionGroups()||[]},{immediate:!0});function A(){C.value&&(C.value?.setMotion(E.value),D.value=C.value.listMotionGroups())}function j(){if(!S.value||!C.value)return;let e=S.value.canvasElement(),t=e.toDataURL(`image/png`);O(t,`live2d-screenshot.png`)}return(r,i)=>(l(),o(`div`,y,[h(`div`,b,[s(_(n),{relative:``,"min-h-70dvh":``},{default:f(({width:n,height:r})=>[s(_(t),{ref_key:`live2dCanvasRef`,ref:S,width:n,height:r,resolution:3,"rounded-full":``},{default:f(({app:t})=>[s(_(e),{ref_key:`live2dModelRef`,ref:C,"model-src":_(T),app:t,width:n,height:r,"focus-at":{x:n/2,y:r/2},onModelLoaded:A},null,8,[`model-src`,`app`,`width`,`height`,`focus-at`])]),_:2},1032,[`width`,`height`])]),_:1})]),h(`div`,null,[a(h(`select`,{"onUpdate:modelValue":i[0]||=e=>E.value=e,"rounded-lg":``,"px-3":``,"py-2":``,onChange:i[1]||=e=>k(E.value)},[(l(!0),o(m,null,u(D.value,e=>(l(),o(`option`,{key:e.motionIndex,value:e.motionName},v(e.fileName),9,x))),128))],544),[[p,E.value]])]),h(`div`,{border:`2px solid black dark:white`,flex:``,"items-center":``,"justify-center":``,"rounded-full":``,"p-1":``},[h(`button`,{class:`h-15 w-15 md:h-18 md:w-18`,bg:`black active:neutral-950 dark:white dark:active:neutral-50`,"rounded-full":``,"outline-none":``,"transition-colors":``,"duration-200":``,"ease-in-out":``,onClick:j})])]))}}),C=S;export{C as default}; \ No newline at end of file diff --git a/assets/providers-hE0BXvIH.js b/assets/providers-Du_G6qMf.js similarity index 56% rename from assets/providers-hE0BXvIH.js rename to assets/providers-Du_G6qMf.js index e3c29b628cdd1328eae63796424f83d4a52f0f85..ba652928283c6d50a0a138fc9c050fd4118d44b3 100644 --- a/assets/providers-hE0BXvIH.js +++ b/assets/providers-Du_G6qMf.js @@ -1 +1 @@ -import{a4 as e,ae as t,at as n,bP as r,e$ as i,eA as a,eC as o,eF as s,eG as c,eQ as l,eS as u,eU as d,eV as f,e_ as p,ev as m,ez as h,f6 as g,fa as _}from"./index-DEhol03r.js";import{b as v}from"./route-block-Dc_s4AGN.js";import{b as y}from"./IconAnimation-C0TBccB2.js";import{b}from"./icon-animation-B3otQp3y.js";const x={flex:``,"flex-col":``,"gap-5":``,"pb-12":``},S={class:`rounded-lg bg-primary-500/10 p-4 dark:bg-primary-800/25`},C={class:`mb-2 text-xl text-primary-800 font-semibold dark:text-primary-100`},w={class:`text-primary-700 dark:text-primary-300`},T={flex:`~ row items-center gap-2`},E={text:`neutral-300 dark:neutral-500`},D={grid:`~ cols-1 sm:cols-2 xl:cols-3 gap-4`},O={flex:`~ row items-center gap-2`,"my-5":``},k={text:`neutral-300 dark:neutral-500`},A={grid:`~ cols-1 sm:cols-2 xl:cols-3 gap-4`},j={flex:`~ row items-center gap-2`,"my-5":``},M={text:`neutral-300 dark:neutral-500`},N={grid:`~ cols-1 sm:cols-2 xl:cols-3 gap-4`},P={key:1,text:`neutral-500/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:20},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var F=c({__name:`index`,setup(c){let{t:v}=t(),F=e(),{allChatProvidersMetadata:I,allAudioSpeechProvidersMetadata:L,allAudioTranscriptionProvidersMetadata:R}=r(F),{iconAnimationStarted:z,showIconAnimation:B,animationIcon:V}=b(`i-solar:box-minimalistic-bold-duotone`);return(e,t)=>{let r=d(`i18n-t`),c=f(`motion`);return l(),o(m,null,[h(`div`,x,[h(`div`,S,[h(`div`,C,_(e.$t(`settings.pages.providers.helpinfo.title`)),1),h(`div`,w,[s(r,{keypath:`settings.pages.providers.helpinfo.description`},{chat:p(()=>[...t[0]||=[h(`span`,{class:`inline-flex translate-y-[0.25lh] items-center gap-1 rounded-lg bg-primary-500/10 px-2 py-0.5 dark:bg-primary-800/25`},[h(`div`,{class:`i-solar:chat-square-like-bold-duotone`}),h(`strong`,{class:`font-semibold`},`Chat`)],-1)]]),_:1})])]),h(`div`,T,[t[2]||=h(`div`,{"i-solar:chat-square-like-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),h(`div`,null,[h(`div`,null,[h(`span`,E,_(g(v)(`settings.pages.providers.explained.chat`)),1)]),t[1]||=h(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[h(`div`,null,` Chat `)],-1)])]),h(`div`,D,[(l(!0),o(m,null,u(g(I),(e,t)=>i((l(),a(g(n),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+t*10,delay:t*50,title:e.localizedName||`Unknown`,description:e.localizedDescription,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:`/settings/providers/${e.id}`,configured:e.configured},null,8,[`duration`,`delay`,`title`,`description`,`icon`,`icon-color`,`icon-image`,`to`,`configured`])),[[c]])),128))]),h(`div`,O,[t[4]||=h(`div`,{"i-solar:user-speak-rounded-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),h(`div`,null,[h(`div`,null,[h(`span`,k,_(g(v)(`settings.pages.providers.explained.Speech`)),1)]),t[3]||=h(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[h(`div`,null,` Speech `)],-1)])]),h(`div`,A,[(l(!0),o(m,null,u(g(L),(e,t)=>i((l(),a(g(n),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+t*10,delay:(g(I).length+t)*50,title:e.localizedName||`Unknown`,description:e.localizedDescription,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:`/settings/providers/${e.id}`,configured:e.configured},null,8,[`duration`,`delay`,`title`,`description`,`icon`,`icon-color`,`icon-image`,`to`,`configured`])),[[c]])),128))]),h(`div`,j,[t[6]||=h(`div`,{"i-solar:microphone-3-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),h(`div`,null,[h(`div`,null,[h(`span`,M,_(g(v)(`settings.pages.providers.explained.Transcription`)),1)]),t[5]||=h(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[h(`div`,null,` Transcription `)],-1)])]),h(`div`,N,[(l(!0),o(m,null,u(g(R),(e,t)=>i((l(),a(g(n),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+t*10,delay:(g(I).length+g(L).length+t)*50,title:e.localizedName||`Unknown`,description:e.localizedDescription,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:`/settings/providers/${e.id}`,configured:e.configured},null,8,[`duration`,`delay`,`title`,`description`,`icon`,`icon-color`,`icon-image`,`to`,`configured`])),[[c]])),128))])]),g(B)?(l(),a(y,{key:0,"z-index":-1,icon:g(V),"icon-size":12,duration:1e3,started:g(z),"is-reverse":!0,position:`calc(100dvw - 9.5rem), calc(100dvh - 9.5rem)`,"text-color":`text-neutral-200/50 dark:text-neutral-600/20`},null,8,[`icon`,`started`])):i((l(),o(`div`,P,[...t[7]||=[h(`div`,{text:`60`,"i-solar:box-minimalistic-bold-duotone":``},null,-1)]])),[[c]])],64)}}});typeof v==`function`&&v(F);var I=F;export{I as default}; \ No newline at end of file +import{a4 as e,ae as t,at as n,bQ as r,e$ as i,eA as a,eB as o,eD as s,eG as c,eH as l,eR as u,eT as d,eV as f,eW as p,ew as m,f0 as h,f7 as g,fb as _}from"./index-D3Bcbz9S.js";import{b as v}from"./route-block-Dc_s4AGN.js";import{b as y}from"./IconAnimation-CpQ8Hyb3.js";import{b}from"./icon-animation-CL2bLS_O.js";const x={flex:``,"flex-col":``,"gap-5":``,"pb-12":``},S={class:`rounded-lg bg-primary-500/10 p-4 dark:bg-primary-800/25`},C={class:`mb-2 text-xl text-primary-800 font-semibold dark:text-primary-100`},w={class:`text-primary-700 dark:text-primary-300`},T={flex:`~ row items-center gap-2`},E={text:`neutral-300 dark:neutral-500`},D={grid:`~ cols-1 sm:cols-2 xl:cols-3 gap-4`},O={flex:`~ row items-center gap-2`,"my-5":``},k={text:`neutral-300 dark:neutral-500`},A={grid:`~ cols-1 sm:cols-2 xl:cols-3 gap-4`},j={flex:`~ row items-center gap-2`,"my-5":``},M={text:`neutral-300 dark:neutral-500`},N={grid:`~ cols-1 sm:cols-2 xl:cols-3 gap-4`},P={key:1,text:`neutral-500/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:20},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var F=l({__name:`index`,setup(l){let{t:v}=t(),F=e(),{allChatProvidersMetadata:I,allAudioSpeechProvidersMetadata:L,allAudioTranscriptionProvidersMetadata:R}=r(F),{iconAnimationStarted:z,showIconAnimation:B,animationIcon:V}=b(`i-solar:box-minimalistic-bold-duotone`);return(e,t)=>{let r=f(`i18n-t`),l=p(`motion`);return u(),s(m,null,[a(`div`,x,[a(`div`,S,[a(`div`,C,_(e.$t(`settings.pages.providers.helpinfo.title`)),1),a(`div`,w,[c(r,{keypath:`settings.pages.providers.helpinfo.description`},{chat:i(()=>[...t[0]||=[a(`span`,{class:`inline-flex translate-y-[0.25lh] items-center gap-1 rounded-lg bg-primary-500/10 px-2 py-0.5 dark:bg-primary-800/25`},[a(`div`,{class:`i-solar:chat-square-like-bold-duotone`}),a(`strong`,{class:`font-semibold`},`Chat`)],-1)]]),_:1})])]),a(`div`,T,[t[2]||=a(`div`,{"i-solar:chat-square-like-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),a(`div`,null,[a(`div`,null,[a(`span`,E,_(g(v)(`settings.pages.providers.explained.chat`)),1)]),t[1]||=a(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[a(`div`,null,` Chat `)],-1)])]),a(`div`,D,[(u(!0),s(m,null,d(g(I),(e,t)=>h((u(),o(g(n),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+t*10,delay:t*50,title:e.localizedName||`Unknown`,description:e.localizedDescription,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:`/settings/providers/${e.id}`,configured:e.configured},null,8,[`duration`,`delay`,`title`,`description`,`icon`,`icon-color`,`icon-image`,`to`,`configured`])),[[l]])),128))]),a(`div`,O,[t[4]||=a(`div`,{"i-solar:user-speak-rounded-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),a(`div`,null,[a(`div`,null,[a(`span`,k,_(g(v)(`settings.pages.providers.explained.Speech`)),1)]),t[3]||=a(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[a(`div`,null,` Speech `)],-1)])]),a(`div`,A,[(u(!0),s(m,null,d(g(L),(e,t)=>h((u(),o(g(n),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+t*10,delay:(g(I).length+t)*50,title:e.localizedName||`Unknown`,description:e.localizedDescription,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:`/settings/providers/${e.id}`,configured:e.configured},null,8,[`duration`,`delay`,`title`,`description`,`icon`,`icon-color`,`icon-image`,`to`,`configured`])),[[l]])),128))]),a(`div`,j,[t[6]||=a(`div`,{"i-solar:microphone-3-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),a(`div`,null,[a(`div`,null,[a(`span`,M,_(g(v)(`settings.pages.providers.explained.Transcription`)),1)]),t[5]||=a(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[a(`div`,null,` Transcription `)],-1)])]),a(`div`,N,[(u(!0),s(m,null,d(g(R),(e,t)=>h((u(),o(g(n),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+t*10,delay:(g(I).length+g(L).length+t)*50,title:e.localizedName||`Unknown`,description:e.localizedDescription,icon:e.icon,"icon-color":e.iconColor,"icon-image":e.iconImage,to:`/settings/providers/${e.id}`,configured:e.configured},null,8,[`duration`,`delay`,`title`,`description`,`icon`,`icon-color`,`icon-image`,`to`,`configured`])),[[l]])),128))])]),g(B)?(u(),o(y,{key:0,"z-index":-1,icon:g(V),"icon-size":12,duration:1e3,started:g(z),"is-reverse":!0,position:`calc(100dvw - 9.5rem), calc(100dvh - 9.5rem)`,"text-color":`text-neutral-200/50 dark:text-neutral-600/20`},null,8,[`icon`,`started`])):h((u(),s(`div`,P,[...t[7]||=[a(`div`,{text:`60`,"i-solar:box-minimalistic-bold-duotone":``},null,-1)]])),[[l]])],64)}}});typeof v==`function`&&v(F);var I=F;export{I as default}; \ No newline at end of file diff --git a/assets/queue-D-a0bA5k.js b/assets/queue-zJgvo1Ds.js similarity index 78% rename from assets/queue-D-a0bA5k.js rename to assets/queue-zJgvo1Ds.js index 891df9f0eda46135ada6e0a78b4697627f6445ff..8884551e8e142ba88ebf5eccd21e67842bc20d4c 100644 --- a/assets/queue-D-a0bA5k.js +++ b/assets/queue-zJgvo1Ds.js @@ -1 +1 @@ -import{V as e,W as t,eC as n,eG as r,eO as i,eQ as a,ez as o,f1 as s}from"./index-DEhol03r.js";var c=r({__name:`queue`,setup(r){let c=s(``),l=e({handlers:[async e=>{console.log(`ready to play speech audio for`,e)}]}),u=e({handlers:[async e=>{console.log(`ready to stream speech audio for`,e),l.enqueue(e.data)}]}),d=e({handlers:[async e=>{let t=[`.`,`?`,`!`],n=!1;for(let r of t){if(!e.data.includes(r))continue;let t=e.data.indexOf(r),i=e.data.slice(0,t+1),a=e.data.slice(t+1);c.value+=i,u.enqueue(c.value.trim()),c.value=a,n=!0}n||(c.value+=e.data)}]}),f=`Hello( N(eko(! I( am( an( AI( assistant( trained( to( help( with( a( variety( of( tasks( such( as( answering( questions(,( providing( information(,( giving( recommendations(,( and( more(. How( can( I( assist( you( today(?(Hello( N(eko(,( I( am( an( AI( assistant(.( I( can( help( answer( questions(,( provide( information(,( assist( with( tasks(,( and( engage( in( conversation(.( How( can( I( assist( you( today(?`.split(`(`);async function p(){for(let e of f)await t(100),d.enqueue(e)}async function m(){p()}return i(()=>{m()}),(e,t)=>(a(),n(`div`,null,[...t[0]||=[o(`div`,null,null,-1)]]))}}),l=c;export{l as default}; \ No newline at end of file +import{V as e,W as t,eA as n,eD as r,eH as i,eP as a,eR as o,f2 as s}from"./index-D3Bcbz9S.js";var c=i({__name:`queue`,setup(i){let c=s(``),l=e({handlers:[async e=>{console.log(`ready to play speech audio for`,e)}]}),u=e({handlers:[async e=>{console.log(`ready to stream speech audio for`,e),l.enqueue(e.data)}]}),d=e({handlers:[async e=>{let t=[`.`,`?`,`!`],n=!1;for(let r of t){if(!e.data.includes(r))continue;let t=e.data.indexOf(r),i=e.data.slice(0,t+1),a=e.data.slice(t+1);c.value+=i,u.enqueue(c.value.trim()),c.value=a,n=!0}n||(c.value+=e.data)}]}),f=`Hello( N(eko(! I( am( an( AI( assistant( trained( to( help( with( a( variety( of( tasks( such( as( answering( questions(,( providing( information(,( giving( recommendations(,( and( more(. How( can( I( assist( you( today(?(Hello( N(eko(,( I( am( an( AI( assistant(.( I( can( help( answer( questions(,( provide( information(,( assist( with( tasks(,( and( engage( in( conversation(.( How( can( I( assist( you( today(?`.split(`(`);async function p(){for(let e of f)await t(100),d.enqueue(e)}async function m(){p()}return a(()=>{m()}),(e,t)=>(o(),r(`div`,null,[...t[0]||=[n(`div`,null,null,-1)]]))}}),l=c;export{l as default}; \ No newline at end of file diff --git a/assets/scene-BBXD28Rs.js b/assets/scene-BBXD28Rs.js new file mode 100644 index 0000000000000000000000000000000000000000..6f2550f5453b850e81b000f6a787074904b062c6 --- /dev/null +++ b/assets/scene-BBXD28Rs.js @@ -0,0 +1 @@ +import{aA as e,e$ as t,eA as n,eB as r,eD as i,eF as a,eG as o,eH as s,eR as c,eW as l,ew as u,f0 as d,f7 as f}from"./index-D3Bcbz9S.js";import{b as p}from"./route-block-Dc_s4AGN.js";import{b as m}from"./IconAnimation-CpQ8Hyb3.js";import{b as h}from"./icon-animation-CL2bLS_O.js";const g={key:1,text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:20},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var _=s({__name:`index`,setup(s){let{iconAnimationStarted:p,showIconAnimation:_,animationIcon:v}=h(`i-solar:armchair-2-bold-duotone`);return(s,h)=>{let y=l(`motion`);return c(),i(u,null,[n(`div`,null,[o(f(e),{label:`In development, needs your help!`,theme:`orange`},{default:t(()=>[...h[0]||=[n(`div`,null,[a(` This functionality is still under development. If you have any suggestions or would like to contribute, please reach out to us on our `),n(`a`,{underline:``,"decoration-dotted":``,href:`https://github.com/moeru-ai/airi/issues`},`GitHub issues page`),a(`. The source code of this page is located at `),n(`a`,{underline:``,"decoration-dotted":``,href:`https://github.com/moeru-ai/airi/tree/main/apps/stage-web/src/pages/settings/scene/index.vue`},`here`),a(`. `)],-1)]]),_:1})]),f(_)?(c(),r(m,{key:0,"z-index":-1,icon:f(v),"icon-size":12,duration:1e3,started:f(p),"is-reverse":!0,position:`calc(100dvw - 9.5rem), calc(100dvh - 9.5rem)`,"text-color":`text-neutral-200/50 dark:text-neutral-600/20`},null,8,[`icon`,`started`])):d((c(),i(`div`,g,[...h[1]||=[n(`div`,{text:`60`,"i-solar:armchair-2-bold-duotone":``},null,-1)]])),[[y]])],64)}}});typeof p==`function`&&p(_);var v=_;export{v as default}; \ No newline at end of file diff --git a/assets/scene-LwMjiDcr.js b/assets/scene-LwMjiDcr.js deleted file mode 100644 index 32c4b2321c709b79b32fb9fb3f619ccbfd4b4307..0000000000000000000000000000000000000000 --- a/assets/scene-LwMjiDcr.js +++ /dev/null @@ -1 +0,0 @@ -import{az as e,e$ as t,eA as n,eC as r,eE as i,eF as a,eG as o,eQ as s,eV as c,e_ as l,ev as u,ez as d,f6 as f}from"./index-DEhol03r.js";import{b as p}from"./route-block-Dc_s4AGN.js";import{b as m}from"./IconAnimation-C0TBccB2.js";import{b as h}from"./icon-animation-B3otQp3y.js";const g={key:1,text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,y:20},enter:{scale:1,opacity:1,y:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var _=o({__name:`index`,setup(o){let{iconAnimationStarted:p,showIconAnimation:_,animationIcon:v}=h(`i-solar:armchair-2-bold-duotone`);return(o,h)=>{let y=c(`motion`);return s(),r(u,null,[d(`div`,null,[a(f(e),{label:`In development, needs your help!`,theme:`orange`},{default:l(()=>[...h[0]||=[d(`div`,null,[i(` This functionality is still under development. If you have any suggestions or would like to contribute, please reach out to us on our `),d(`a`,{underline:``,"decoration-dotted":``,href:`https://github.com/moeru-ai/airi/issues`},`GitHub issues page`),i(`. The source code of this page is located at `),d(`a`,{underline:``,"decoration-dotted":``,href:`https://github.com/moeru-ai/airi/tree/main/apps/stage-web/src/pages/settings/scene/index.vue`},`here`),i(`. `)],-1)]]),_:1})]),f(_)?(s(),n(m,{key:0,"z-index":-1,icon:f(v),"icon-size":12,duration:1e3,started:f(p),"is-reverse":!0,position:`calc(100dvw - 9.5rem), calc(100dvh - 9.5rem)`,"text-color":`text-neutral-200/50 dark:text-neutral-600/20`},null,8,[`icon`,`started`])):t((s(),r(`div`,g,[...h[1]||=[d(`div`,{text:`60`,"i-solar:armchair-2-bold-duotone":``},null,-1)]])),[[y]])],64)}}});typeof p==`function`&&p(_);var v=_;export{v as default}; \ No newline at end of file diff --git a/assets/settings-BAOMmq-8.js b/assets/settings-Cvdoq90V.js similarity index 83% rename from assets/settings-BAOMmq-8.js rename to assets/settings-Cvdoq90V.js index c962c33f1757c77c5823c37b793bf238bf1dc177..db2aede3980ccb8c95f289f217d940025daa0b1b 100644 --- a/assets/settings-BAOMmq-8.js +++ b/assets/settings-Cvdoq90V.js @@ -1 +1 @@ -import{ae as e,au as t,bM as n,c as r,e$ as i,eA as a,eC as o,eG as s,eN as c,eQ as l,eS as u,eV as d,ev as f,ey as p,ez as m,f1 as h,f6 as g,f9 as _}from"./index-DEhol03r.js";import{b as v}from"./route-block-Dc_s4AGN.js";import{b as y}from"./IconAnimation-C0TBccB2.js";const b={flex:`~ col gap-4`,"font-normal":``},x={flex:`~ col gap-4`,"pb-12":``},S={key:1,text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-12rem)]`,"bottom-0":``,"right--10":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:180},enter:{scale:1,opacity:1,rotate:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``},C={text:`60`,"i-solar:settings-bold-duotone":``};var w=s({__name:`index`,setup(s){let v=n(),w=h(!1),T=h(),E=h(),{t:D}=e(),O=h(``),k=h(``),A=h(!1),j=r();function M(){E.value?.()}async function N(e,t){let n=e.currentTarget,r=n.querySelector(`.menu-icon-item-icon`);if(!r)return;let i=r.getBoundingClientRect(),a=`${i.left}px, ${i.top}px`;O.value=t.icon,k.value=a,A.value=!0,await c(),w.value=!0}let P=v.beforeEach(async(e,t,n)=>{if(!j.usePageSpecificTransitions||j.disableTransitions){n();return}await new Promise(e=>{E.value=e}),P(),n()}),F=p(()=>[{title:D(`settings.pages.card.title`),description:D(`settings.pages.card.description`),icon:`i-solar:emoji-funny-square-bold-duotone`,to:`/settings/airi-card`},{title:D(`settings.pages.modules.title`),description:D(`settings.pages.modules.description`),icon:`i-solar:layers-bold-duotone`,to:`/settings/modules`},{title:D(`settings.pages.scene.title`),description:D(`settings.pages.scene.description`),icon:`i-solar:armchair-2-bold-duotone`,to:`/settings/scene`},{title:D(`settings.pages.models.title`),description:D(`settings.pages.models.description`),icon:`i-solar:people-nearby-bold-duotone`,to:`/settings/models`},{title:D(`settings.pages.memory.title`),description:D(`settings.pages.memory.description`),icon:`i-solar:leaf-bold-duotone`,to:`/settings/memory`},{title:D(`settings.pages.providers.title`),description:D(`settings.pages.providers.description`),icon:`i-solar:box-minimalistic-bold-duotone`,to:`/settings/providers`},{title:D(`settings.pages.system.title`),description:D(`settings.pages.system.description`),icon:`i-solar:filters-bold-duotone`,to:`/settings/system`}]);return(e,n)=>{let r=d(`motion`);return l(),o(`div`,b,[n[0]||=m(`div`,null,null,-1),m(`div`,x,[(l(!0),o(f,null,u(F.value,(e,n)=>i((l(),a(g(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:_({transitionDelay:`${n*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to,onClick:t=>N(t,e)},null,8,[`style`,`title`,`description`,`icon`,`to`,`onClick`])),[[r]])),128))]),A.value&&!g(j).disableTransitions&&g(j).usePageSpecificTransitions?(l(),a(y,{key:0,ref_key:`iconAnimation`,ref:T,icon:O.value,"icon-size":6*1.2,position:k.value,duration:1e3,"text-color":`text-neutral-400/50 dark:text-neutral-600/20`,started:w.value,onAnimationEndedOnce:M},null,8,[`icon`,`position`,`started`])):i((l(),o(`div`,S,[i(m(`div`,C,null,512),[[r]])])),[[r]])])}}});typeof v==`function`&&v(w);var T=w;export{T as default}; \ No newline at end of file +import{ae as e,au as t,bN as n,c as r,eA as i,eB as a,eD as o,eH as s,eO as c,eR as l,eT as u,eW as d,ew as f,ez as p,f0 as m,f2 as h,f7 as g,fa as _}from"./index-D3Bcbz9S.js";import{b as v}from"./route-block-Dc_s4AGN.js";import{b as y}from"./IconAnimation-CpQ8Hyb3.js";const b={flex:`~ col gap-4`,"font-normal":``},x={flex:`~ col gap-4`,"pb-12":``},S={key:1,text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-12rem)]`,"bottom-0":``,"right--10":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:180},enter:{scale:1,opacity:1,rotate:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``},C={text:`60`,"i-solar:settings-bold-duotone":``};var w=s({__name:`index`,setup(s){let v=n(),w=h(!1),T=h(),E=h(),{t:D}=e(),O=h(``),k=h(``),A=h(!1),j=r();function M(){E.value?.()}async function N(e,t){let n=e.currentTarget,r=n.querySelector(`.menu-icon-item-icon`);if(!r)return;let i=r.getBoundingClientRect(),a=`${i.left}px, ${i.top}px`;O.value=t.icon,k.value=a,A.value=!0,await c(),w.value=!0}let P=v.beforeEach(async(e,t,n)=>{if(!j.usePageSpecificTransitions||j.disableTransitions){n();return}await new Promise(e=>{E.value=e}),P(),n()}),F=p(()=>[{title:D(`settings.pages.card.title`),description:D(`settings.pages.card.description`),icon:`i-solar:emoji-funny-square-bold-duotone`,to:`/settings/airi-card`},{title:D(`settings.pages.modules.title`),description:D(`settings.pages.modules.description`),icon:`i-solar:layers-bold-duotone`,to:`/settings/modules`},{title:D(`settings.pages.scene.title`),description:D(`settings.pages.scene.description`),icon:`i-solar:armchair-2-bold-duotone`,to:`/settings/scene`},{title:D(`settings.pages.models.title`),description:D(`settings.pages.models.description`),icon:`i-solar:people-nearby-bold-duotone`,to:`/settings/models`},{title:D(`settings.pages.memory.title`),description:D(`settings.pages.memory.description`),icon:`i-solar:leaf-bold-duotone`,to:`/settings/memory`},{title:D(`settings.pages.providers.title`),description:D(`settings.pages.providers.description`),icon:`i-solar:box-minimalistic-bold-duotone`,to:`/settings/providers`},{title:D(`settings.pages.system.title`),description:D(`settings.pages.system.description`),icon:`i-solar:filters-bold-duotone`,to:`/settings/system`}]);return(e,n)=>{let r=d(`motion`);return l(),o(`div`,b,[n[0]||=i(`div`,null,null,-1),i(`div`,x,[(l(!0),o(f,null,u(F.value,(e,n)=>m((l(),a(g(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:_({transitionDelay:`${n*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to,onClick:t=>N(t,e)},null,8,[`style`,`title`,`description`,`icon`,`to`,`onClick`])),[[r]])),128))]),A.value&&!g(j).disableTransitions&&g(j).usePageSpecificTransitions?(l(),a(y,{key:0,ref_key:`iconAnimation`,ref:T,icon:O.value,"icon-size":6*1.2,position:k.value,duration:1e3,"text-color":`text-neutral-400/50 dark:text-neutral-600/20`,started:w.value,onAnimationEndedOnce:M},null,8,[`icon`,`position`,`started`])):m((l(),o(`div`,S,[m(i(`div`,C,null,512),[[r]])])),[[r]])])}}});typeof v==`function`&&v(w);var T=w;export{T as default}; \ No newline at end of file diff --git a/assets/settings-B2H4CbgS.js b/assets/settings-DYXa79d5.js similarity index 81% rename from assets/settings-B2H4CbgS.js rename to assets/settings-DYXa79d5.js index e4cfeeae2aad358c02d4f29b7f29dcf9825150b9..73d6fce44d51c4f34449389af4f1b9ec61b4d537 100644 --- a/assets/settings-B2H4CbgS.js +++ b/assets/settings-DYXa79d5.js @@ -1 +1 @@ -import"./merge-D5ueGMzg.js";import{c as e,d as t}from"./theme-color-D2aK6AFb.js";import{a4 as n,ae as r,ay as i,bK as a,bL as o,bP as s,bU as c,eC as l,eF as u,eG as d,eO as f,eQ as p,eY as m,ey as h,ez as g,f6 as _}from"./index-DEhol03r.js";import{b as v}from"./HeaderLink-CwKWoudF.js";const y={style:{paddingBottom:`env(safe-area-inset-bottom, 0px)`,paddingTop:`env(safe-area-inset-top, 0px)`,paddingRight:`env(safe-area-inset-right, 0px)`,paddingLeft:`env(safe-area-inset-left, 0px)`},"h-full":``,"w-full":``},b={class:`px-0 py-1 hidden sm:block md:px-3 md:py-3`,"w-full":``,"gap-2":``,bg:`$bg-color`},x={class:`h-[calc(100%-40px)] px-3 py-0 2xl:max-w-[2160px] sm:h-[calc(100%-56px)] md:py-0 xl:px-4`,flex:`~ col`,"mx-auto":``};var S=d({__name:`settings`,setup(d){let S=o(),C=c(),{t:w}=r(),T=n(),{allProvidersMetadata:E}=s(T),D=h(()=>{let e={"/settings/airi-card":{subtitle:w(`settings.title`),title:w(`settings.pages.card.title`)},"/settings/appearance":{subtitle:w(`settings.title`),title:w(`settings.pages.themes.title`)},"/settings/appearance/general":{subtitle:w(`settings.title`),title:w(`settings.pages.themes.general.title`)},"/settings/appearance/color-scheme":{subtitle:w(`settings.title`),title:w(`settings.pages.themes.color-scheme.title`)},"/settings/appearance/developer":{subtitle:w(`settings.title`),title:w(`settings.pages.themes.developer.title`)},"/settings/memory":{subtitle:w(`settings.title`),title:w(`settings.pages.memory.title`)},"/settings/models":{subtitle:w(`settings.title`),title:w(`settings.pages.models.title`)},"/settings/modules":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.title`)},"/settings/modules/consciousness":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.consciousness.title`)},"/settings/modules/speech":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.speech.title`)},"/settings/modules/hearing":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.hearing.title`)},"/settings/modules/memory-short-term":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.memory-short-term.title`)},"/settings/modules/memory-long-term":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.memory-long-term.title`)},"/settings/modules/messaging-discord":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.messaging-discord.title`)},"/settings/modules/x":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.x.title`)},"/settings/modules/gaming-minecraft":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.gaming-minecraft.title`)},"/settings/modules/gaming-factorio":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.gaming-factorio.title`)},"/settings/providers":{subtitle:w(`settings.title`),title:w(`settings.pages.providers.title`)},"/settings/scene":{subtitle:w(`settings.title`),title:w(`settings.pages.scene.title`)},"/settings":{title:w(`settings.title`)}};for(let t of E.value)e[`/settings/providers/${t.id}`]={subtitle:w(`settings.title`),title:w(t.nameKey)};return e}),O=h(()=>D.value[S.path]),{updateThemeColor:k}=t(e({light:`rgb(255 255 255)`,dark:`rgb(18 18 18)`}));return m(C,()=>k(),{immediate:!0}),m(S,()=>k(),{immediate:!0}),f(()=>k()),(e,t)=>(p(),l(`div`,y,[g(`div`,b,[u(v)]),g(`div`,x,[u(_(i),{title:O.value?.title,subtitle:O.value?.subtitle},null,8,[`title`,`subtitle`]),u(_(a))])]))}}),C=S;export{C as default}; \ No newline at end of file +import"./merge-D5ueGMzg.js";import{c as e,d as t}from"./theme-color-CqKmMBmH.js";import{a4 as n,ae as r,az as i,bL as a,bM as o,bQ as s,bV as c,eA as l,eD as u,eG as d,eH as f,eP as p,eR as m,eZ as h,ez as g,f7 as _}from"./index-D3Bcbz9S.js";import{b as v}from"./HeaderLink-CWxXVf7j.js";const y={style:{paddingBottom:`env(safe-area-inset-bottom, 0px)`,paddingTop:`env(safe-area-inset-top, 0px)`,paddingRight:`env(safe-area-inset-right, 0px)`,paddingLeft:`env(safe-area-inset-left, 0px)`},"h-full":``,"w-full":``},b={class:`px-0 py-1 hidden sm:block md:px-3 md:py-3`,"w-full":``,"gap-2":``,bg:`$bg-color`},x={class:`h-[calc(100%-40px)] px-3 py-0 2xl:max-w-[2160px] sm:h-[calc(100%-56px)] md:py-0 xl:px-4`,flex:`~ col`,"mx-auto":``};var S=f({__name:`settings`,setup(f){let S=o(),C=c(),{t:w}=r(),T=n(),{allProvidersMetadata:E}=s(T),D=g(()=>{let e={"/settings/airi-card":{subtitle:w(`settings.title`),title:w(`settings.pages.card.title`)},"/settings/appearance":{subtitle:w(`settings.title`),title:w(`settings.pages.themes.title`)},"/settings/appearance/general":{subtitle:w(`settings.title`),title:w(`settings.pages.themes.general.title`)},"/settings/appearance/color-scheme":{subtitle:w(`settings.title`),title:w(`settings.pages.themes.color-scheme.title`)},"/settings/appearance/developer":{subtitle:w(`settings.title`),title:w(`settings.pages.themes.developer.title`)},"/settings/memory":{subtitle:w(`settings.title`),title:w(`settings.pages.memory.title`)},"/settings/models":{subtitle:w(`settings.title`),title:w(`settings.pages.models.title`)},"/settings/modules":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.title`)},"/settings/modules/consciousness":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.consciousness.title`)},"/settings/modules/speech":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.speech.title`)},"/settings/modules/hearing":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.hearing.title`)},"/settings/modules/memory-short-term":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.memory-short-term.title`)},"/settings/modules/memory-long-term":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.memory-long-term.title`)},"/settings/modules/messaging-discord":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.messaging-discord.title`)},"/settings/modules/x":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.x.title`)},"/settings/modules/gaming-minecraft":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.gaming-minecraft.title`)},"/settings/modules/gaming-factorio":{subtitle:w(`settings.title`),title:w(`settings.pages.modules.gaming-factorio.title`)},"/settings/providers":{subtitle:w(`settings.title`),title:w(`settings.pages.providers.title`)},"/settings/scene":{subtitle:w(`settings.title`),title:w(`settings.pages.scene.title`)},"/settings":{title:w(`settings.title`)}};for(let t of E.value)e[`/settings/providers/${t.id}`]={subtitle:w(`settings.title`),title:w(t.nameKey)};return e}),O=g(()=>D.value[S.path]),{updateThemeColor:k}=t(e({light:`rgb(255 255 255)`,dark:`rgb(18 18 18)`}));return h(C,()=>k(),{immediate:!0}),h(S,()=>k(),{immediate:!0}),p(()=>k()),(e,t)=>(m(),u(`div`,y,[l(`div`,b,[d(v)]),l(`div`,x,[d(_(i),{title:O.value?.title,subtitle:O.value?.subtitle},null,8,[`title`,`subtitle`]),d(_(a))])]))}}),C=S;export{C as default}; \ No newline at end of file diff --git a/assets/speech-CE8U5AXR.js b/assets/speech-CE8U5AXR.js new file mode 100644 index 0000000000000000000000000000000000000000..20aee533aee54cfa68115385865a5ded9e5e8e0f --- /dev/null +++ b/assets/speech-CE8U5AXR.js @@ -0,0 +1 @@ +import"./Basic-IbpirTdD.js";import{b as e}from"./Textarea-CCCcUNHl.js";import{L as t,M as n,a$ as r,a4 as i,aK as ee,aX as te,a_ as ne,ae as re,al as a,an as o,ap as ie,aq as ae,ar as oe,as as s,bK as se,bQ as c,e$ as l,eA as u,eB as d,eC as f,eD as p,eF as m,eG as h,eH as ce,eP as le,eQ as ue,eR as g,eT as de,eW as fe,eZ as pe,er as me,es as he,ew as _,f0 as v,f1 as y,f2 as b,f7 as x,f8 as ge,fb as S}from"./index-D3Bcbz9S.js";import{b as C}from"./route-block-Dc_s4AGN.js";const _e={flex:`~ col md:row gap-6`},ve={bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`,class:`h-fit w-full md:w-[40%]`},ye={flex:`~ col gap-4`},be={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},xe={text:`neutral-400 dark:neutral-500`},Se={"max-w-full":``},Ce={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},we={key:1},Te={key:0},Ee={flex:`~ col gap-4`},w={class:`text-lg md:text-2xl`},T={text:`neutral-400 dark:neutral-400`},E={key:0,class:`flex items-center justify-center py-4`},D={key:0},De={flex:`~ col gap-4`},Oe={key:0},ke={class:`flex flex-col gap-4`},Ae={flex:`~ row gap-4`},je={key:1,class:`space-y-6`},Me={flex:`~ col gap-4`},Ne={key:4,class:`mt-2 space-y-6`},Pe={key:0},Fe={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},Ie={"w-full":``,"rounded-xl":``},Le={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},Re={class:`inline-flex items-center gap-4`},O={flex:`~ col gap-4`},ze={flex:`~ row`,"gap-4":``},Be=[`disabled`],Ve={flex:`~ row`,"items-center":``,"gap-2":``},He=[`src`],Ue={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var k=ce({__name:`speech`,setup(ce){let{t:C}=re(),k=i(),A=t(),{configuredSpeechProvidersMetadata:j}=c(k),{activeSpeechProvider:M,activeSpeechModel:N,activeSpeechVoice:P,activeSpeechVoiceId:F,pitch:I,isLoadingSpeechProviderVoices:We,supportsModelListing:Ge,providerModels:L,isLoadingActiveProviderModels:R,activeProviderModelError:z,modelSearchQuery:B,speechProviderError:V,ssmlEnabled:H,availableVoices:U}=c(A),W=b(``),G=b(!1),K=b(`Hello, my name is AI Assistant`),q=b(``),J=b(!1),Y=b(``),X=b(null),Z=b(``);le(async()=>{await k.loadModelsForConfiguredProviders(),await A.loadVoicesForProvider(M.value)}),pe(M,async()=>{await k.loadModelsForConfiguredProviders(),await A.loadVoicesForProvider(M.value)});async function Ke(){if(!K.value.trim()&&!G.value||G.value&&!q.value.trim())return;if(!N.value){console.error(`No model selected`);return}if(!P.value){console.error(`No voice selected`);return}let e=await k.getProviderInstance(M.value);if(!e){console.error(`Failed to initialize speech provider`);return}let t=k.getProviderConfig(M.value);J.value=!0,Z.value=``;try{Y.value&&Q();let r=G.value?q.value:A.supportsSSML?A.generateSSML(K.value,P.value,{...t,pitch:I.value}):K.value,i=await n({...e.speech(N.value,t),input:r,voice:P.value.id});Y.value=URL.createObjectURL(new Blob([i])),setTimeout(()=>{X.value&&X.value.play()},100)}catch(e){console.error(`Error generating speech:`,e),Z.value=e instanceof Error?e.message:`An unknown error occurred`}finally{J.value=!1}}function Q(){X.value&&(X.value.pause(),X.value.currentTime=0),Y.value&&=(URL.revokeObjectURL(Y.value),``)}ue(()=>{Y.value&&URL.revokeObjectURL(Y.value)});function $(e){if(!e){P.value=void 0;return}P.value={id:e,name:e,description:e,previewURL:e,languages:[{code:`en`,title:`English`}],provider:M.value,gender:`male`}}function qe(e){N.value=e}return(t,n)=>{let i=fe(`motion`);return g(),p(_,null,[u(`div`,_e,[u(`div`,ve,[u(`div`,null,[u(`div`,ye,[u(`div`,null,[u(`h2`,be,S(x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.title`)),1),u(`div`,xe,[u(`span`,null,S(x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.description`)),1)])]),u(`div`,Se,[x(j).length>0?(g(),p(`fieldset`,Ce,[(g(!0),p(_,null,de(x(j),e=>(g(),d(x(ae),{id:e.id,key:e.id,modelValue:x(M),"onUpdate:modelValue":n[0]||=e=>y(M)?M.value=e:null,name:`speech-provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(g(),p(`div`,we,[h(x(se),{class:`flex items-center gap-3 rounded-lg p-4`,border:`2 dashed neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-800`,transition:`colors duration-200 ease-in-out`,to:`/settings/providers`},{default:l(()=>[...n[11]||=[u(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),u(`div`,{class:`flex flex-col`},[u(`span`,{class:`font-medium`},`No Speech Providers Configured`),u(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your speech providers`)],-1),u(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]]),_:1})]))])]),u(`div`,null,[x(M)&&x(Ge)?(g(),p(`div`,Te,[u(`div`,Ee,[u(`div`,null,[u(`h2`,w,S(x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),u(`div`,T,[u(`span`,null,S(x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),x(R)?(g(),p(`div`,E,[n[12]||=u(`div`,{class:`mr-2 animate-spin`},[u(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),u(`span`,null,S(x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):x(z)?(g(),d(x(o),{key:1,title:x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`),error:x(z)},null,8,[`title`,`error`])):x(L).length===0&&!x(R)?(g(),d(x(s),{key:2,type:`warning`},{title:l(()=>[m(S(x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1)]),content:l(()=>[m(S(x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)]),_:1})):x(L).length>0?(g(),d(x(oe),{key:3,modelValue:x(N),"onUpdate:modelValue":n[1]||=e=>y(N)?N.value=e:null,"search-query":x(B),"onUpdate:searchQuery":n[2]||=e=>y(B)?B.value=e:null,items:x(L),searchable:!0,"search-placeholder":x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:x(B)}),"search-results-text":x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":x(C)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":qe},null,8,[`modelValue`,`search-query`,`items`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`])):f(``,!0)])])):f(``,!0)])]),x(M)?(g(),p(`div`,D,[u(`div`,De,[n[20]||=u(`div`,null,[u(`h2`,{class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},` Voice Configuration `),u(`div`,{text:`neutral-400 dark:neutral-500`},[u(`span`,null,`Customize how your AI assistant speaks`)])],-1),x(We)?(g(),p(`div`,Oe,[u(`div`,ke,[h(x(a),{class:`w-full rounded-lg p-2.5 text-sm`},{default:l(()=>[...n[13]||=[u(`div`,{class:`h-1lh`},null,-1)]]),_:1}),u(`div`,Ae,[h(x(a),{class:`w-full rounded-lg p-4 text-sm`},{default:l(()=>[...n[14]||=[u(`div`,{class:`h-1lh`},null,-1)]]),_:1}),h(x(a),{class:`w-full rounded-lg p-4 text-sm`},{default:l(()=>[...n[15]||=[u(`div`,{class:`h-1lh`},null,-1)]]),_:1}),h(x(a),{class:`w-full rounded-lg p-4 text-sm`},{default:l(()=>[...n[16]||=[u(`div`,{class:`h-1lh`},null,-1)]]),_:1})]),h(x(a),{class:`w-full rounded-lg p-3 text-sm`},{default:l(()=>[...n[17]||=[u(`div`,{class:`h-1lh`},null,-1)]]),_:1})])])):x(U)[x(M)]&&x(U)[x(M)].length>0?(g(),p(`div`,je,[h(x(ie),{"search-query":W.value,"onUpdate:searchQuery":n[3]||=e=>W.value=e,"voice-id":x(F),"onUpdate:voiceId":n[4]||=e=>y(F)?F.value=e:null,voices:x(U)[x(M)]?.map(e=>({id:e.id,name:e.name,description:e.description,previewURL:e.previewURL,customizable:!1})),searchable:!0,"search-placeholder":x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.search_voices_placeholder`),"search-no-results-title":x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices`),"search-no-results-description":x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices_description`),"search-results-text":x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.search_voices_results`,{count:0,total:0}),"custom-input-placeholder":x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.custom_voice_placeholder`),"expand-button-text":x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.show_more`),"collapse-button-text":x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.show_less`),"play-button-text":x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.play_sample`),"pause-button-text":x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.pause`),"onUpdate:customValue":$},null,8,[`search-query`,`voice-id`,`voices`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`,`play-button-text`,`pause-button-text`])])):x(V)?(g(),d(x(o),{key:2,class:`mb-2`,title:`Error loading voices`,error:x(V)},null,8,[`error`])):(g(),d(x(s),{key:3,type:`warning`,icon:`i-solar:info-circle-line-duotone`,class:`mb-2`},{title:l(()=>[m(S(x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices`)),1)]),content:l(()=>[m(S(x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices_description`))+`. `+S(x(C)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices_hint`)),1)]),_:1})),u(`div`,Me,[h(x(te),{modelValue:x(I),"onUpdate:modelValue":n[5]||=e=>y(I)?I.value=e:null,label:`Pitch`,description:`Tune the pitch of the voice`,min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`format-value`]),h(x(r),{modelValue:x(H),"onUpdate:modelValue":n[6]||=e=>y(H)?H.value=e:null,label:`Enable SSML`,description:`Enable Speech Synthesis Markup Language for more control over speech output`},null,8,[`modelValue`])]),!x(U)[x(M)]||x(U)[x(M)].length===0?(g(),p(`div`,Ne,[h(x(ne),{type:`text`,label:`Voice Name`,description:`Enter the voice name for your custom voice`,placeholder:`Enter voice name (e.g., 'Rachel', 'Josh')`,"onUpdate:modelValue":$}),x(M)===`elevenlabs`?(g(),p(`div`,Pe,[n[19]||=u(`label`,{class:`mb-1 block text-sm font-medium`},` Model `,-1),v(u(`select`,{"onUpdate:modelValue":n[7]||=e=>y(N)?N.value=e:null,class:`w-full border border-neutral-300 rounded bg-white px-3 py-2 dark:border-neutral-700 dark:bg-neutral-900`},[...n[18]||=[u(`option`,{value:`eleven_monolingual_v1`},` Monolingual v1 `,-1),u(`option`,{value:`eleven_multilingual_v1`},` Multilingual v1 `,-1),u(`option`,{value:`eleven_multilingual_v2`},` Multilingual v2 `,-1)]],512),[[me,x(N)]])])):f(``,!0)])):f(``,!0)])])):f(``,!0)]),u(`div`,Fe,[u(`div`,Ie,[u(`h2`,Le,[u(`div`,Re,[h(x(ee)),u(`div`,null,S(x(C)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),u(`div`,O,[h(x(r),{modelValue:G.value,"onUpdate:modelValue":n[8]||=e=>G.value=e,label:`Use Custom SSML`,description:`Enable to input raw SSML instead of plain text`},null,8,[`modelValue`]),G.value?v((g(),p(`textarea`,{key:1,"onUpdate:modelValue":n[10]||=e=>q.value=e,placeholder:`Enter SSML text...`,border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-48":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"font-mono":``,"outline-none":``},null,512)),[[he,q.value]]):(g(),d(x(e),{key:0,modelValue:K.value,"onUpdate:modelValue":n[9]||=e=>K.value=e,"h-24":``,"w-full":``,placeholder:x(C)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.input.placeholder`)},null,8,[`modelValue`,`placeholder`])),u(`div`,ze,[u(`button`,{border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,disabled:J.value||!K.value.trim()&&!G.value||G.value&&!q.value.trim()||!x(P),class:ge({"opacity-50 cursor-not-allowed":J.value||!K.value.trim()&&!G.value||G.value&&!q.value.trim()||!x(P)}),bg:`neutral-700 dark:neutral-300`,onClick:Ke},[u(`div`,Ve,[n[21]||=u(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),u(`span`,null,S(J.value?x(C)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):x(C)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,Be),Y.value?(g(),p(`button`,{key:0,border:`primary-300 dark:primary-800 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,"py-2":``,"text-sm":``,onClick:Q},[...n[22]||=[u(`div`,{flex:`~ row`,"items-center":``,"gap-2":``},[u(`div`,{"i-solar:stop-circle-bold-duotone":``}),u(`span`,null,`Stop`)],-1)]])):f(``,!0)]),Y.value?(g(),p(`audio`,{key:2,ref_key:`audioPlayer`,ref:X,src:Y.value,controls:``,class:`mt-2 w-full`},null,8,He)):f(``,!0)])])])]),v((g(),p(`div`,Ue,[...n[23]||=[u(`div`,{text:`60`,"i-solar:user-speak-rounded-bold-duotone":``},null,-1)]])),[[i]])],64)}}});typeof C==`function`&&C(k);var A=k;export{A as default}; \ No newline at end of file diff --git a/assets/speech-CUBOmkDj.js b/assets/speech-CUBOmkDj.js deleted file mode 100644 index 688b519807dca4e3d9411bd9699ce702e30200d8..0000000000000000000000000000000000000000 --- a/assets/speech-CUBOmkDj.js +++ /dev/null @@ -1 +0,0 @@ -import"./Basic-D33XBiPI.js";import{b as e}from"./Textarea-B_NArpfq.js";import{L as t,M as n,a4 as r,aJ as i,aW as a,aZ as ee,a_ as o,ae as te,al as s,an as c,ap as ne,aq as re,ar as ie,as as l,bJ as ae,bP as u,e$ as d,eA as f,eB as p,eC as m,eE as h,eF as g,eG as oe,eO as se,eP as ce,eQ as _,eS as le,eV as ue,eY as de,e_ as v,eq as fe,er as pe,ev as y,ez as b,f0 as x,f1 as S,f6 as C,f7 as me,fa as w}from"./index-DEhol03r.js";import{b as T}from"./route-block-Dc_s4AGN.js";const he={flex:`~ col md:row gap-6`},ge={bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`,class:`h-fit w-full md:w-[40%]`},_e={flex:`~ col gap-4`},ve={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},ye={text:`neutral-400 dark:neutral-500`},be={"max-w-full":``},xe={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},Se={key:1},Ce={key:0},we={flex:`~ col gap-4`},Te={class:`text-lg md:text-2xl`},E={text:`neutral-400 dark:neutral-400`},D={key:0,class:`flex items-center justify-center py-4`},O={key:0},Ee={flex:`~ col gap-4`},De={key:0},Oe={class:`flex flex-col gap-4`},ke={flex:`~ row gap-4`},Ae={key:1,class:`space-y-6`},je={flex:`~ col gap-4`},Me={key:4,class:`mt-2 space-y-6`},Ne={key:0},Pe={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},Fe={"w-full":``,"rounded-xl":``},Ie={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},Le={class:`inline-flex items-center gap-4`},Re={flex:`~ col gap-4`},ze={flex:`~ row`,"gap-4":``},Be=[`disabled`],Ve={flex:`~ row`,"items-center":``,"gap-2":``},He=[`src`],Ue={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-15rem)]`,"bottom-0":``,"right--5":``,"z--1":``,initial:{scale:.9,opacity:0,x:20},enter:{scale:1,opacity:1,x:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``};var k=oe({__name:`speech`,setup(oe){let{t:T}=te(),k=r(),A=t(),{configuredSpeechProvidersMetadata:j}=u(k),{activeSpeechProvider:M,activeSpeechModel:N,activeSpeechVoice:P,activeSpeechVoiceId:F,pitch:I,isLoadingSpeechProviderVoices:We,supportsModelListing:Ge,providerModels:L,isLoadingActiveProviderModels:R,activeProviderModelError:z,modelSearchQuery:B,speechProviderError:V,ssmlEnabled:H,availableVoices:U}=u(A),W=S(``),G=S(!1),K=S(`Hello, my name is AI Assistant`),q=S(``),J=S(!1),Y=S(``),X=S(null),Z=S(``);se(async()=>{await k.loadModelsForConfiguredProviders(),await A.loadVoicesForProvider(M.value)}),de(M,async()=>{await k.loadModelsForConfiguredProviders(),await A.loadVoicesForProvider(M.value)});async function Ke(){if(!K.value.trim()&&!G.value||G.value&&!q.value.trim())return;if(!N.value){console.error(`No model selected`);return}if(!P.value){console.error(`No voice selected`);return}let e=await k.getProviderInstance(M.value);if(!e){console.error(`Failed to initialize speech provider`);return}let t=k.getProviderConfig(M.value);J.value=!0,Z.value=``;try{Y.value&&Q();let r=G.value?q.value:A.supportsSSML?A.generateSSML(K.value,P.value,{...t,pitch:I.value}):K.value,i=await n({...e.speech(N.value,t),input:r,voice:P.value.id});Y.value=URL.createObjectURL(new Blob([i])),setTimeout(()=>{X.value&&X.value.play()},100)}catch(e){console.error(`Error generating speech:`,e),Z.value=e instanceof Error?e.message:`An unknown error occurred`}finally{J.value=!1}}function Q(){X.value&&(X.value.pause(),X.value.currentTime=0),Y.value&&=(URL.revokeObjectURL(Y.value),``)}ce(()=>{Y.value&&URL.revokeObjectURL(Y.value)});function $(e){if(!e){P.value=void 0;return}P.value={id:e,name:e,description:e,previewURL:e,languages:[{code:`en`,title:`English`}],provider:M.value,gender:`male`}}function qe(e){N.value=e}return(t,n)=>{let r=ue(`motion`);return _(),m(y,null,[b(`div`,he,[b(`div`,ge,[b(`div`,null,[b(`div`,_e,[b(`div`,null,[b(`h2`,ve,w(C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.title`)),1),b(`div`,ye,[b(`span`,null,w(C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.description`)),1)])]),b(`div`,be,[C(j).length>0?(_(),m(`fieldset`,xe,[(_(!0),m(y,null,le(C(j),e=>(_(),f(C(re),{id:e.id,key:e.id,modelValue:C(M),"onUpdate:modelValue":n[0]||=e=>x(M)?M.value=e:null,name:`speech-provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(_(),m(`div`,Se,[g(C(ae),{class:`flex items-center gap-3 rounded-lg p-4`,border:`2 dashed neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-800`,transition:`colors duration-200 ease-in-out`,to:`/settings/providers`},{default:v(()=>[...n[11]||=[b(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),b(`div`,{class:`flex flex-col`},[b(`span`,{class:`font-medium`},`No Speech Providers Configured`),b(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your speech providers`)],-1),b(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]]),_:1})]))])]),b(`div`,null,[C(M)&&C(Ge)?(_(),m(`div`,Ce,[b(`div`,we,[b(`div`,null,[b(`h2`,Te,w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),b(`div`,E,[b(`span`,null,w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),C(R)?(_(),m(`div`,D,[n[12]||=b(`div`,{class:`mr-2 animate-spin`},[b(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),b(`span`,null,w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):C(z)?(_(),f(C(c),{key:1,title:C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`),error:C(z)},null,8,[`title`,`error`])):C(L).length===0&&!C(R)?(_(),f(C(l),{key:2,type:`warning`},{title:v(()=>[h(w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1)]),content:v(()=>[h(w(C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)]),_:1})):C(L).length>0?(_(),f(C(ie),{key:3,modelValue:C(N),"onUpdate:modelValue":n[1]||=e=>x(N)?N.value=e:null,"search-query":C(B),"onUpdate:searchQuery":n[2]||=e=>x(B)?B.value=e:null,items:C(L),searchable:!0,"search-placeholder":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:C(B)}),"search-results-text":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":C(T)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":qe},null,8,[`modelValue`,`search-query`,`items`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`])):p(``,!0)])])):p(``,!0)])]),C(M)?(_(),m(`div`,O,[b(`div`,Ee,[n[20]||=b(`div`,null,[b(`h2`,{class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},` Voice Configuration `),b(`div`,{text:`neutral-400 dark:neutral-500`},[b(`span`,null,`Customize how your AI assistant speaks`)])],-1),C(We)?(_(),m(`div`,De,[b(`div`,Oe,[g(C(s),{class:`w-full rounded-lg p-2.5 text-sm`},{default:v(()=>[...n[13]||=[b(`div`,{class:`h-1lh`},null,-1)]]),_:1}),b(`div`,ke,[g(C(s),{class:`w-full rounded-lg p-4 text-sm`},{default:v(()=>[...n[14]||=[b(`div`,{class:`h-1lh`},null,-1)]]),_:1}),g(C(s),{class:`w-full rounded-lg p-4 text-sm`},{default:v(()=>[...n[15]||=[b(`div`,{class:`h-1lh`},null,-1)]]),_:1}),g(C(s),{class:`w-full rounded-lg p-4 text-sm`},{default:v(()=>[...n[16]||=[b(`div`,{class:`h-1lh`},null,-1)]]),_:1})]),g(C(s),{class:`w-full rounded-lg p-3 text-sm`},{default:v(()=>[...n[17]||=[b(`div`,{class:`h-1lh`},null,-1)]]),_:1})])])):C(U)[C(M)]&&C(U)[C(M)].length>0?(_(),m(`div`,Ae,[g(C(ne),{"search-query":W.value,"onUpdate:searchQuery":n[3]||=e=>W.value=e,"voice-id":C(F),"onUpdate:voiceId":n[4]||=e=>x(F)?F.value=e:null,voices:C(U)[C(M)]?.map(e=>({id:e.id,name:e.name,description:e.description,previewURL:e.previewURL,customizable:!1})),searchable:!0,"search-placeholder":C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.search_voices_placeholder`),"search-no-results-title":C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices`),"search-no-results-description":C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices_description`),"search-results-text":C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.search_voices_results`,{count:0,total:0}),"custom-input-placeholder":C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.custom_voice_placeholder`),"expand-button-text":C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.show_more`),"collapse-button-text":C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.show_less`),"play-button-text":C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.play_sample`),"pause-button-text":C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.pause`),"onUpdate:customValue":$},null,8,[`search-query`,`voice-id`,`voices`,`search-placeholder`,`search-no-results-title`,`search-no-results-description`,`search-results-text`,`custom-input-placeholder`,`expand-button-text`,`collapse-button-text`,`play-button-text`,`pause-button-text`])])):C(V)?(_(),f(C(c),{key:2,class:`mb-2`,title:`Error loading voices`,error:C(V)},null,8,[`error`])):(_(),f(C(l),{key:3,type:`warning`,icon:`i-solar:info-circle-line-duotone`,class:`mb-2`},{title:v(()=>[h(w(C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices`)),1)]),content:v(()=>[h(w(C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices_description`))+`. `+w(C(T)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices_hint`)),1)]),_:1})),b(`div`,je,[g(C(a),{modelValue:C(I),"onUpdate:modelValue":n[5]||=e=>x(I)?I.value=e:null,label:`Pitch`,description:`Tune the pitch of the voice`,min:-100,max:100,step:1,"format-value":e=>`${e}%`},null,8,[`modelValue`,`format-value`]),g(C(o),{modelValue:C(H),"onUpdate:modelValue":n[6]||=e=>x(H)?H.value=e:null,label:`Enable SSML`,description:`Enable Speech Synthesis Markup Language for more control over speech output`},null,8,[`modelValue`])]),!C(U)[C(M)]||C(U)[C(M)].length===0?(_(),m(`div`,Me,[g(C(ee),{type:`text`,label:`Voice Name`,description:`Enter the voice name for your custom voice`,placeholder:`Enter voice name (e.g., 'Rachel', 'Josh')`,"onUpdate:modelValue":$}),C(M)===`elevenlabs`?(_(),m(`div`,Ne,[n[19]||=b(`label`,{class:`mb-1 block text-sm font-medium`},` Model `,-1),d(b(`select`,{"onUpdate:modelValue":n[7]||=e=>x(N)?N.value=e:null,class:`w-full border border-neutral-300 rounded bg-white px-3 py-2 dark:border-neutral-700 dark:bg-neutral-900`},[...n[18]||=[b(`option`,{value:`eleven_monolingual_v1`},` Monolingual v1 `,-1),b(`option`,{value:`eleven_multilingual_v1`},` Multilingual v1 `,-1),b(`option`,{value:`eleven_multilingual_v2`},` Multilingual v2 `,-1)]],512),[[fe,C(N)]])])):p(``,!0)])):p(``,!0)])])):p(``,!0)]),b(`div`,Pe,[b(`div`,Fe,[b(`h2`,Ie,[b(`div`,Le,[g(C(i)),b(`div`,null,w(C(T)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),b(`div`,Re,[g(C(o),{modelValue:G.value,"onUpdate:modelValue":n[8]||=e=>G.value=e,label:`Use Custom SSML`,description:`Enable to input raw SSML instead of plain text`},null,8,[`modelValue`]),G.value?d((_(),m(`textarea`,{key:1,"onUpdate:modelValue":n[10]||=e=>q.value=e,placeholder:`Enter SSML text...`,border:`neutral-100 dark:neutral-800 solid 2 focus:neutral-200 dark:focus:neutral-700`,transition:`all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800 focus:neutral-50 dark:focus:neutral-900`,"h-48":``,"w-full":``,"rounded-lg":``,"px-3":``,"py-2":``,"text-sm":``,"font-mono":``,"outline-none":``},null,512)),[[pe,q.value]]):(_(),f(C(e),{key:0,modelValue:K.value,"onUpdate:modelValue":n[9]||=e=>K.value=e,"h-24":``,"w-full":``,placeholder:C(T)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.input.placeholder`)},null,8,[`modelValue`,`placeholder`])),b(`div`,ze,[b(`button`,{border:`neutral-800 dark:neutral-200 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,text:`neutral-100 dark:neutral-900`,"py-2":``,"text-sm":``,disabled:J.value||!K.value.trim()&&!G.value||G.value&&!q.value.trim()||!C(P),class:me({"opacity-50 cursor-not-allowed":J.value||!K.value.trim()&&!G.value||G.value&&!q.value.trim()||!C(P)}),bg:`neutral-700 dark:neutral-300`,onClick:Ke},[b(`div`,Ve,[n[21]||=b(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),b(`span`,null,w(J.value?C(T)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):C(T)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,Be),Y.value?(_(),m(`button`,{key:0,border:`primary-300 dark:primary-800 solid 2`,transition:`border duration-250 ease-in-out`,"rounded-lg":``,"px-4":``,"py-2":``,"text-sm":``,onClick:Q},[...n[22]||=[b(`div`,{flex:`~ row`,"items-center":``,"gap-2":``},[b(`div`,{"i-solar:stop-circle-bold-duotone":``}),b(`span`,null,`Stop`)],-1)]])):p(``,!0)]),Y.value?(_(),m(`audio`,{key:2,ref_key:`audioPlayer`,ref:X,src:Y.value,controls:``,class:`mt-2 w-full`},null,8,He)):p(``,!0)])])])]),d((_(),m(`div`,Ue,[...n[23]||=[b(`div`,{text:`60`,"i-solar:user-speak-rounded-bold-duotone":``},null,-1)]])),[[r]])],64)}}});typeof T==`function`&&T(k);var A=k;export{A as default}; \ No newline at end of file diff --git a/assets/stage-B7OEWfD5.js b/assets/stage-B7OEWfD5.js deleted file mode 100644 index acf148966b182dd0ba0bd296afa0e4f40b78895c..0000000000000000000000000000000000000000 --- a/assets/stage-B7OEWfD5.js +++ /dev/null @@ -1 +0,0 @@ -import"./Basic-D33XBiPI.js";import{b as e,k as t}from"./Scenes-0TJqCS-r.js";import"./merge-D5ueGMzg.js";import{b as n,d as r}from"./theme-color-D2aK6AFb.js";import{b$ as i,bP as a,bQ as o,bR as s,bU as c,eA as l,eB as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ez as _,f1 as v,f6 as y}from"./index-DEhol03r.js";import"./HeaderLink-CwKWoudF.js";import"./dist-ByFcnk3K.js";import{b}from"./route-block-Dc_s4AGN.js";import"./ibl-CbBD07sa.js";import{b as x,c as S,d as C,e as w,f as T,g as E}from"./AnimatedWave-CTK2lmxN.js";import"./import-url-browser-CQxpIBxI.js";import"./duckdb-mvp-DkPAVKN8.js";import"./index-CAcLDIRJ-zzf_MFDO.js";import"./core-C5TqIlxQ.js";import"./airi-card-7HyqBFjt.js";import"./hearing-EgcjzOdT.js";import"./composables-C5AKp2DU.js";const D={relative:``,flex:`~ col`,"z-2":``,"h-100dvh":``,"w-100vw":``,"of-hidden":``},O={class:`px-0 py-1 md:px-3 md:py-3`,"w-full":``,"gap-2":``},k={relative:``,flex:`~ 1 row gap-y-0 gap-x-2 R(),{immediate:!0}),p(()=>R()),(t,n)=>(m(),l(E,null,{default:g(()=>[d(x,{class:`widgets top-widgets`,"fill-color":y(b)?`oklch(35% calc(var(--chromatic-chroma) * 0.6) var(--chromatic-hue))`:`color-mix(in srgb, oklch(95% calc(var(--chromatic-chroma-50) * 0.5) var(--chromatic-hue)) 80%, oklch(100% 0 360))`},{default:g(()=>[_(`div`,D,[_(`div`,O,[d(T,{class:`hidden md:flex`}),d(C,{class:`flex md:hidden`})]),_(`div`,k,[d(y(e),{"flex-1":``,"min-w":`1/2`,paused:A.value,"focus-at":{x:y(M).x.value,y:y(M).y.value},"x-offset":`${y(L)?y(P).x:y(P).x-10}%`,"y-offset":y(F).y,scale:y(N)},null,8,[`paused`,`focus-at`,`x-offset`,`y-offset`,`scale`]),y(L)?u(``,!0):(m(),l(w,{key:0,h:`85dvh`,absolute:``,"right-4":``,flex:``,"flex-1":``,"flex-col":``,"max-w":`500px`,"min-w":`30%`})),y(L)?(m(),l(S,{key:1,onSettingsOpen:j})):u(``,!0)])])]),_:1},8,[`fill-color`])]),_:1}))}});typeof b==`function`&&b(A);var j=A;export{j as default}; \ No newline at end of file diff --git a/assets/stage-BKK7k1fe.js b/assets/stage-BKK7k1fe.js new file mode 100644 index 0000000000000000000000000000000000000000..8a9c8608adbdf989b346cb38e5590ce49b7b516b --- /dev/null +++ b/assets/stage-BKK7k1fe.js @@ -0,0 +1 @@ +import"./Basic-IbpirTdD.js";import{b as e,k as t}from"./Scenes-CKSNtwSU.js";import"./merge-D5ueGMzg.js";import{b as n,d as r}from"./theme-color-CqKmMBmH.js";import{bQ as i,bR as a,bS as o,bV as s,c0 as c,e$ as l,eA as u,eB as d,eC as f,eG as p,eH as m,eP as h,eR as g,eZ as _,f2 as v,f7 as y}from"./index-D3Bcbz9S.js";import"./HeaderLink-CWxXVf7j.js";import"./dist-DInrA4pj.js";import{b}from"./route-block-Dc_s4AGN.js";import"./ibl-CoXg6NDS.js";import{b as x,c as S,d as C,e as w,f as T,g as E}from"./AnimatedWave-D3VizsVF.js";import"./import-url-browser-CQxpIBxI.js";import"./duckdb-mvp-DkPAVKN8.js";import"./index-CAcLDIRJ-D76TFz33.js";import"./core-C5TqIlxQ.js";import"./airi-card-CObXZhjH.js";import"./hearing-BXMZCHIN.js";import"./composables-Tp0cITw9.js";const D={relative:``,flex:`~ col`,"z-2":``,"h-100dvh":``,"w-100vw":``,"of-hidden":``},O={class:`px-0 py-1 md:px-3 md:py-3`,"w-full":``,"gap-2":``},k={relative:``,flex:`~ 1 row gap-y-0 gap-x-2 R(),{immediate:!0}),h(()=>R()),(t,n)=>(g(),d(E,null,{default:l(()=>[p(x,{class:`widgets top-widgets`,"fill-color":y(b)?`oklch(35% calc(var(--chromatic-chroma) * 0.6) var(--chromatic-hue))`:`color-mix(in srgb, oklch(95% calc(var(--chromatic-chroma-50) * 0.5) var(--chromatic-hue)) 80%, oklch(100% 0 360))`},{default:l(()=>[u(`div`,D,[u(`div`,O,[p(T,{class:`hidden md:flex`}),p(C,{class:`flex md:hidden`})]),u(`div`,k,[p(y(e),{"flex-1":``,"min-w":`1/2`,paused:A.value,"focus-at":{x:y(M).x.value,y:y(M).y.value},"x-offset":`${y(L)?y(P).x:y(P).x-10}%`,"y-offset":y(F).y,scale:y(N)},null,8,[`paused`,`focus-at`,`x-offset`,`y-offset`,`scale`]),y(L)?f(``,!0):(g(),d(w,{key:0,h:`85dvh`,absolute:``,"right-4":``,flex:``,"flex-1":``,"flex-col":``,"max-w":`500px`,"min-w":`30%`})),y(L)?(g(),d(S,{key:1,onSettingsOpen:j})):f(``,!0)])])]),_:1},8,[`fill-color`])]),_:1}))}});typeof b==`function`&&b(A);var j=A;export{j as default}; \ No newline at end of file diff --git a/assets/stage-BoZJ1ey2.js b/assets/stage-BoZJ1ey2.js new file mode 100644 index 0000000000000000000000000000000000000000..dd05ff3c185b3ffcda61b98506f3a6ef725bb072 --- /dev/null +++ b/assets/stage-BoZJ1ey2.js @@ -0,0 +1 @@ +import{bL as e,eD as t,eG as n,eH as r,eR as i,f7 as a}from"./index-D3Bcbz9S.js";const o={text:`gray-700 dark:gray-200`,"h-full":``,"font-cute":``};var s=r({__name:`stage`,setup(r){return(r,s)=>(i(),t(`main`,o,[n(a(e))]))}}),c=s;export{c as default}; \ No newline at end of file diff --git a/assets/stage-rPzuR0ET.js b/assets/stage-rPzuR0ET.js deleted file mode 100644 index 369bec7c6d7cd9c2651957b74da290f5cf5bd54c..0000000000000000000000000000000000000000 --- a/assets/stage-rPzuR0ET.js +++ /dev/null @@ -1 +0,0 @@ -import{bK as e,eC as t,eF as n,eG as r,eQ as i,f6 as a}from"./index-DEhol03r.js";const o={text:`gray-700 dark:gray-200`,"h-full":``,"font-cute":``};var s=r({__name:`stage`,setup(r){return(r,s)=>(i(),t(`main`,o,[n(a(e))]))}}),c=s;export{c as default}; \ No newline at end of file diff --git a/assets/sury-s6Akl-oc-BVkg7-7i.js b/assets/sury-s6Akl-oc-BAZidK0W.js similarity index 51% rename from assets/sury-s6Akl-oc-BVkg7-7i.js rename to assets/sury-s6Akl-oc-BAZidK0W.js index 6bfc0b27dceac7ad19788bf223d797781677f70e..d614d6f82b74dec2b2334299102ca306b8ba70e2 100644 --- a/assets/sury-s6Akl-oc-BVkg7-7i.js +++ b/assets/sury-s6Akl-oc-BAZidK0W.js @@ -1 +1 @@ -import{bN as e}from"./index-DEhol03r.js";import{e as t}from"./index-CAcLDIRJ-zzf_MFDO.js";const n=async()=>{let{toJSONSchema:n}=await t(e(()=>import(`./__vite-optional-peer-dep_sury_xsschema-C68usZSM.js`),[]),`sury`);return e=>n(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file +import{bO as e}from"./index-D3Bcbz9S.js";import{e as t}from"./index-CAcLDIRJ-D76TFz33.js";const n=async()=>{let{toJSONSchema:n}=await t(e(()=>import(`./__vite-optional-peer-dep_sury_xsschema-C68usZSM.js`),[]),`sury`);return e=>n(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file diff --git a/assets/system-CqsiZkZC.js b/assets/system-Cj_-kLDI.js similarity index 70% rename from assets/system-CqsiZkZC.js rename to assets/system-Cj_-kLDI.js index 8a08b0d86d33cbbe23b81e8827cdbc5c21446914..446835a37a857c4616ca6aaa5d6f72ea3746d05d 100644 --- a/assets/system-CqsiZkZC.js +++ b/assets/system-Cj_-kLDI.js @@ -1 +1 @@ -import{ae as e,au as t,e$ as n,eA as r,eC as i,eG as a,eQ as o,eS as s,eV as c,ev as l,ey as u,ez as d,f6 as f,f9 as p}from"./index-DEhol03r.js";import{b as m}from"./route-block-Dc_s4AGN.js";const h={flex:`~ col gap-4`,"font-normal":``},g={flex:`~ col gap-4`},_={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-12rem)]`,"bottom-0":``,"right--10":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:180},enter:{scale:1,opacity:1,rotate:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``},v={text:`60`,"i-solar:settings-bold-duotone":``};var y=a({__name:`index`,setup(a){let{t:m}=e(),y=u(()=>[{title:m(`settings.pages.system.general.title`),description:m(`settings.pages.system.general.description`),icon:`i-solar:emoji-funny-square-bold-duotone`,to:`/settings/system/general`},{title:m(`settings.pages.system.color-scheme.title`),description:m(`settings.pages.system.color-scheme.description`),icon:`i-solar:pallete-2-bold-duotone`,to:`/settings/system/color-scheme`},{title:m(`settings.pages.system.developer.title`),description:m(`settings.pages.system.developer.description`),icon:`i-solar:code-bold-duotone`,to:`/settings/system/developer`}]);return(e,a)=>{let u=c(`motion`);return o(),i(`div`,h,[a[0]||=d(`div`,null,null,-1),d(`div`,g,[(o(!0),i(l,null,s(y.value,(e,i)=>n((o(),r(f(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:p({transitionDelay:`${i*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to},null,8,[`style`,`title`,`description`,`icon`,`to`])),[[u]])),128))]),n((o(),i(`div`,_,[n(d(`div`,v,null,512),[[u]])])),[[u]])])}}});typeof m==`function`&&m(y);var b=y;export{b as default}; \ No newline at end of file +import{ae as e,au as t,eA as n,eB as r,eD as i,eH as a,eR as o,eT as s,eW as c,ew as l,ez as u,f0 as d,f7 as f,fa as p}from"./index-D3Bcbz9S.js";import{b as m}from"./route-block-Dc_s4AGN.js";const h={flex:`~ col gap-4`,"font-normal":``},g={flex:`~ col gap-4`},_={text:`neutral-200/50 dark:neutral-600/20`,"pointer-events-none":``,fixed:``,top:`[calc(100dvh-12rem)]`,"bottom-0":``,"right--10":``,"z--1":``,initial:{scale:.9,opacity:0,rotate:180},enter:{scale:1,opacity:1,rotate:0},duration:500,"size-60":``,flex:``,"items-center":``,"justify-center":``},v={text:`60`,"i-solar:settings-bold-duotone":``};var y=a({__name:`index`,setup(a){let{t:m}=e(),y=u(()=>[{title:m(`settings.pages.system.general.title`),description:m(`settings.pages.system.general.description`),icon:`i-solar:emoji-funny-square-bold-duotone`,to:`/settings/system/general`},{title:m(`settings.pages.system.color-scheme.title`),description:m(`settings.pages.system.color-scheme.description`),icon:`i-solar:pallete-2-bold-duotone`,to:`/settings/system/color-scheme`},{title:m(`settings.pages.system.developer.title`),description:m(`settings.pages.system.developer.description`),icon:`i-solar:code-bold-duotone`,to:`/settings/system/developer`}]);return(e,a)=>{let u=c(`motion`);return o(),i(`div`,h,[a[0]||=n(`div`,null,null,-1),n(`div`,g,[(o(!0),i(l,null,s(y.value,(e,n)=>d((o(),r(f(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:p({transitionDelay:`${n*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to},null,8,[`style`,`title`,`description`,`icon`,`to`])),[[u]])),128))]),d((o(),i(`div`,_,[d(n(`div`,v,null,512),[[u]])])),[[u]])])}}});typeof m==`function`&&m(y);var b=y;export{b as default}; \ No newline at end of file diff --git a/assets/theme-color-D2aK6AFb.js b/assets/theme-color-CqKmMBmH.js similarity index 99% rename from assets/theme-color-D2aK6AFb.js rename to assets/theme-color-CqKmMBmH.js index c27ed339c07a41b51cd6b10dd3d20343ecbdb96a..e832977913340c36efc64178653524b3bbb5d6a1 100644 --- a/assets/theme-color-D2aK6AFb.js +++ b/assets/theme-color-CqKmMBmH.js @@ -1 +1 @@ -import{b as e}from"./merge-D5ueGMzg.js";import{W as t,bU as n}from"./index-DEhol03r.js";const r=async e=>{let t=await e();for(;t instanceof Function;)t=await t();return t},i={retry:3,retryCount:0,retryDelay:500},a=(n,o)=>{let{onError:s,retry:c,retryCount:l,retryDelay:u}=e(i,o),d=async(...e)=>{try{return await n(...e)}catch(r){if(s?.(r),la(n,{onError:s,retry:c,retryCount:l+1,retryDelay:u})(...e);throw r}};return async(...e)=>r(async()=>d(...e))};function o(e,t){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(e=>[e]));let r=t[0].length,i=t[0].map((e,n)=>t.map(e=>e[n])),a=e.map(e=>i.map(t=>{let n=0;if(!Array.isArray(e)){for(let r of t)n+=e*r;return n}for(let r=0;re[0]):a}function s(e){return c(e)===`string`}function c(e){let t=Object.prototype.toString.call(e);return(t.match(/^\[object\s+(.*?)\]$/)[1]||``).toLowerCase()}function l(e,{precision:t,unit:n}){return u(e)?`none`:f(e,t)+(n??``)}function u(e){return Number.isNaN(e)||e instanceof Number&&e?.none}function d(e){return u(e)?0:e}function f(e,t){if(e===0)return 0;let n=~~e,r=0;n&&t&&(r=~~Math.log10(Math.abs(n))+1);let i=10**(t-r);return Math.floor(e*i+.5)/i}const p={deg:1,grad:.9,rad:180/Math.PI,turn:360};function m(e){if(!e)return;e=e.trim();let t=/^([a-z]+)\((.+?)\)$/i,n=/^-?[\d.]+$/,r=/%|deg|g?rad|turn$/,i=/\/?\s*(none|[-\w.]+(?:%|deg|g?rad|turn)?)/g,a=e.match(t);if(a){let e=[];return a[2].replace(i,(t,i)=>{let a=i.match(r),o=i;if(a){let e=a[0],t=o.slice(0,-e.length);e===`%`?(o=new Number(t/100),o.type=``):(o=new Number(t*p[e]),o.type=``,o.unit=e)}else n.test(o)?(o=new Number(o),o.type=``):o===`none`&&(o=new Number(NaN),o.none=!0);t.startsWith(`/`)&&(o=o instanceof Number?o:new Number(o),o.alpha=!0),typeof o==`object`&&o instanceof Number&&(o.raw=i),e.push(o)}),{name:a[1].toLowerCase(),rawName:a[1],rawArgs:a[2],args:e}}}function h(e){return e[e.length-1]}function g(e,t,n){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*n}function _(e,t,n){return(n-e)/(t-e)}function v(e,t,n){return g(t[0],t[1],_(e[0],e[1],n))}function y(e){return e.map(e=>e.split(`|`).map(e=>{e=e.trim();let t=e.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(t){let e=new String(t[1]);return e.range=[+t[2],+t[3]],e}return e}))}function b(e,t,n){return Math.max(Math.min(n,t),e)}function x(e,t){return Math.sign(e)===Math.sign(t)?e:-e}function S(e,t){return x(Math.abs(e)**t,e)}function C(e,t){return t===0?0:e/t}function w(e,t,n=0,r=e.length){for(;n>1;e[i]`,``,``]);function k(e,t,n,r){let i=Object.entries(e.coords).map(([e,i],a)=>{let o=t.coordGrammar[a],s=r[a],c=s?.type,l;if(l=s.none?o.find(e=>re.has(e)):o.find(e=>e==c),!l){let t=i.name||e;throw TypeError(`${c??s.raw} not allowed for ${t} in ${n}()`)}let u=l.range;c===``&&(u||=[0,1]);let d=i.range||i.refRange;return u&&d&&(r[a]=v(u,d,r[a])),l});return i}function ie(e,{meta:t}={}){let n={str:String(e)?.trim()};if(T.run(`parse-start`,n),n.color)return n.color;if(n.parsed=m(n.str),n.parsed){let e=n.parsed.name;if(e===`color`){let e=n.parsed.args.shift(),r=e.startsWith(`--`)?e.substring(2):`--${e}`,i=[e,r],a=n.parsed.rawArgs.indexOf(`/`)>0?n.parsed.args.pop():1;for(let r of j.all){let o=r.getFormat(`color`);if(o&&(i.includes(o.id)||o.ids?.filter(e=>i.includes(e)).length)){let i=Object.keys(r.coords).map((e,t)=>n.parsed.args[t]||0),s;return o.coordGrammar&&(s=k(r,o,`color`,i)),t&&Object.assign(t,{formatId:`color`,types:s}),o.id.startsWith(`--`)&&!e.startsWith(`--`)&&E.warn(`${r.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${o.id}) instead of color(${e}).`),e.startsWith(`--`)&&!o.id.startsWith(`--`)&&E.warn(`${r.name} is a standard space and supported in the CSS spec. Use color(${o.id}) instead of prefixed color(${e}).`),{spaceId:r.id,coords:i,alpha:a}}}let o=``,s=e in j.registry?e:r;if(s in j.registry){let e=j.registry[s].formats?.color?.id;e&&(o=`Did you mean color(${e})?`)}throw TypeError(`Cannot parse color(${e}). `+(o||`Missing a plugin?`))}else for(let r of j.all){let i=r.getFormat(e);if(i&&i.type===`function`){let a=1;(i.lastAlpha||h(n.parsed.args).alpha)&&(a=n.parsed.args.pop());let o=n.parsed.args,s;return i.coordGrammar&&(s=k(r,i,e,o)),t&&Object.assign(t,{formatId:i.name,types:s}),{spaceId:r.id,coords:o,alpha:a}}}}else for(let e of j.all)for(let r in e.formats){let i=e.formats[r];if(i.type!==`custom`||i.test&&!i.test(n.str))continue;let a=i.parse(n.str);if(a)return a.alpha??=1,t&&(t.formatId=r),a}throw TypeError(`Could not parse ${e} as a color. Missing a plugin?`)}function A(e){if(Array.isArray(e))return e.map(A);if(!e)throw TypeError(`Empty color reference`);s(e)&&(e=ie(e));let t=e.space||e.spaceId;return t instanceof j||(e.space=j.get(t)),e.alpha===void 0&&(e.alpha=1),e}var j=class e{constructor(t){this.id=t.id,this.name=t.name,this.base=t.base?e.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);let n=t.coords??this.base.coords;for(let e in n)`name`in n[e]||(n[e].name=e);this.coords=n;let r=t.white??this.base.white??`D65`;for(let e in this.white=ne(r),this.formats=t.formats??{},this.formats){let t=this.formats[e];t.type||=`function`,t.name||=e}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:t.cssId||this.id}),t.gamutSpace?this.gamutSpace=t.gamutSpace===`self`?this:e.get(t.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(e,t)=>!0),this.referred=t.referred,Object.defineProperty(this,`path`,{value:ae(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),T.run(`colorspace-init-end`,this)}inGamut(e,{epsilon:t=75e-6}={}){if(!this.equals(this.gamutSpace))return e=this.to(this.gamutSpace,e),this.gamutSpace.inGamut(e,{epsilon:t});let n=Object.values(this.coords);return e.every((e,r)=>{let i=n[r];if(i.type!==`angle`&&i.range){if(Number.isNaN(e))return!0;let[n,r]=i.range;return(n===void 0||e>=n-t)&&(r===void 0||e<=r+t)}return!0})}get isUnbounded(){return Object.values(this.coords).every(e=>!(`range`in e))}get cssId(){return this.formats?.color?.id||this.id}get isPolar(){for(let e in this.coords)if(this.coords[e].type===`angle`)return!0;return!1}getFormat(e){if(typeof e==`object`)return e=M(e,this),e;let t;return t=e===`default`?Object.values(this.formats)[0]:this.formats[e],t?(t=M(t,this),t):null}equals(e){return e?this===e||this.id===e||this.id===e.id:!1}to(t,n){if(arguments.length===1){let e=A(t);[t,n]=[e.space,e.coords]}if(t=e.get(t),this.equals(t))return n;n=n.map(e=>Number.isNaN(e)?0:e);let r=this.path,i=t.path,a,o;for(let e=0;eo;e--)n=r[e].toBase(n);for(let e=o+1;e=0){let e=Object.entries(i.coords)[a];if(e)return{space:i,id:e[0],index:a,...e[1]}}i=e.get(i);let o=a.toLowerCase(),s=0;for(let e in i.coords){let t=i.coords[e];if(e.toLowerCase()===o||t.name?.toLowerCase()===o)return{space:i,id:e,index:s,...t};s++}throw TypeError(`No "${a}" coordinate found in ${i.name}. Its coordinates are: ${Object.keys(i.coords).join(`, `)}`)}static DEFAULT_FORMAT={type:`functions`,name:`color`}};function ae(e){let t=[e];for(let n=e;n=n.base;)t.push(n);return t}function M(e,{coords:t}={}){if(e.coords&&!e.coordGrammar){e.type||=`function`,e.name||=`color`,e.coordGrammar=y(e.coords);let n=Object.entries(t).map(([t,n],r)=>{let i=e.coordGrammar[r][0],a=n.range||n.refRange,o=i.range,s=``;return i==``?(o=[0,100],s=`%`):i==``&&(s=`deg`),{fromRange:a,toRange:o,suffix:s}});e.serializeCoords=(e,t)=>e.map((e,r)=>{let{fromRange:i,toRange:a,suffix:o}=n[r];return i&&a&&(e=v(i,a,e)),e=l(e,{precision:t,unit:o}),e})}return e}var N=new j({id:`xyz-d65`,name:`XYZ D65`,coords:{x:{name:`X`},y:{name:`Y`},z:{name:`Z`}},white:`D65`,formats:{color:{ids:[`xyz-d65`,`xyz`]}},aliases:[`xyz`]}),P=class extends j{constructor(e){e.coords||={r:{range:[0,1],name:`Red`},g:{range:[0,1],name:`Green`},b:{range:[0,1],name:`Blue`}},e.base||=N,e.toXYZ_M&&e.fromXYZ_M&&(e.toBase??=t=>{let n=o(e.toXYZ_M,t);return this.white!==this.base.white&&(n=O(this.white,this.base.white,n)),n},e.fromBase??=t=>(t=O(this.base.white,this.white,t),o(e.fromXYZ_M,t))),e.referred??=`display`,super(e)}};function F(e,t){return e=A(e),!t||e.space.equals(t)?e.coords.slice():(t=j.get(t),t.from(e))}function I(e,t){e=A(e);let{space:n,index:r}=j.resolveCoord(t,e.space),i=F(e,n);return i[r]}function L(e,t,n){return e=A(e),t=j.get(t),e.coords=t.to(e.space,n),e}L.returns=`color`;function R(e,t,n){if(e=A(e),arguments.length===2&&c(arguments[1])===`object`){let t=arguments[1];for(let n in t)R(e,n,t[n])}else{typeof n==`function`&&(n=n(I(e,t)));let{space:r,index:i}=j.resolveCoord(t,e.space),a=F(e,r);a[i]=n,L(e,r,a)}return e}R.returns=`color`;var oe=new j({id:`xyz-d50`,name:`XYZ D50`,white:`D50`,base:N,fromBase:e=>O(N.white,`D50`,e),toBase:e=>O(`D50`,N.white,e)});const se=24/116,ce=24389/27;let le=D.D50;var z=new j({id:`lab`,name:`Lab`,coords:{l:{refRange:[0,100],name:`Lightness`},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:le,base:oe,fromBase(e){let t=e.map((e,t)=>e/le[t]),n=t.map(e=>e>.008856451679035631?Math.cbrt(e):(ce*e+16)/116);return[116*n[1]-16,500*(n[0]-n[1]),200*(n[1]-n[2])]},toBase(e){let t=[];t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200;let n=[t[0]>se?t[0]**3:(116*t[0]-16)/ce,e[0]>8?((e[0]+16)/116)**3:e[0]/ce,t[2]>se?t[2]**3:(116*t[2]-16)/ce];return n.map((e,t)=>e*le[t])},formats:{lab:{coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}});function B(e){return(e%360+360)%360}function ue(e,t){if(e===`raw`)return t;let[n,r]=t.map(B),i=r-n;return e===`increasing`?i<0&&(r+=360):e===`decreasing`?i>0&&(n+=360):e===`longer`?-1800?n+=360:r+=360):e===`shorter`&&(i>180?n+=360:i<-180&&(r+=360)),[n,r]}var de=new j({id:`lch`,name:`LCH`,coords:{l:{refRange:[0,100],name:`Lightness`},c:{refRange:[0,150],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},base:z,fromBase(e){let[t,n,r]=e,i,a=.02;return i=Math.abs(n) | `,` | `,` | `]}}});const fe=25**7,pe=Math.PI,me=180/pe,V=pe/180;function he(e){let t=e*e,n=t*t*t*e;return n}function ge(e,t,{kL:n=1,kC:r=1,kH:i=1}={}){[e,t]=A([e,t]);let[a,o,s]=z.from(e),c=de.from(z,[a,o,s])[1],[l,u,d]=z.from(t),f=de.from(z,[l,u,d])[1];c<0&&(c=0),f<0&&(f=0);let p=(c+f)/2,m=he(p),h=.5*(1-Math.sqrt(m/(m+fe))),g=(1+h)*o,_=(1+h)*u,v=Math.sqrt(g**2+s**2),y=Math.sqrt(_**2+d**2),b=g===0&&s===0?0:Math.atan2(s,g),x=_===0&&d===0?0:Math.atan2(d,_);b<0&&(b+=2*pe),x<0&&(x+=2*pe),b*=me,x*=me;let S=l-a,C=y-v,w=x-b,ee=b+x,te=Math.abs(w),T;v*y===0?T=0:te<=180?T=w:w>180?T=w-360:w<-180?T=w+360:E.warn(`the unthinkable has happened`);let D=2*Math.sqrt(y*v)*Math.sin(T*V/2),ne=(a+l)/2,O=(v+y)/2,re=he(O),k;k=v*y===0?ee:te<=180?ee/2:ee<360?(ee+360)/2:(ee-360)/2;let ie=(ne-50)**2,j=1+.015*ie/Math.sqrt(20+ie),ae=1+.045*O,M=1;M-=.17*Math.cos((k-30)*V),M+=.24*Math.cos(2*k*V),M+=.32*Math.cos((3*k+6)*V),M-=.2*Math.cos((4*k-63)*V);let N=1+.015*O*M,P=30*Math.exp(-1*((k-275)/25)**2),F=2*Math.sqrt(re/(re+fe)),I=-1*Math.sin(2*P*V)*F,L=(S/(n*j))**2;return L+=(C/(r*ae))**2,L+=(D/(i*N))**2,L+=I*(C/(r*ae))*(D/(i*N)),Math.sqrt(L)}const _e=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],ve=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],ye=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],be=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]];var H=new j({id:`oklab`,name:`Oklab`,coords:{l:{refRange:[0,1],name:`Lightness`},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:`D65`,base:N,fromBase(e){let t=o(_e,e),n=t.map(e=>Math.cbrt(e));return o(ye,n)},toBase(e){let t=o(be,e),n=t.map(e=>e**3);return o(ve,n)},formats:{oklab:{coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}});function xe(e,t){[e,t]=A([e,t]);let[n,r,i]=H.from(e),[a,o,s]=H.from(t),c=n-a,l=r-o,u=i-s;return Math.sqrt(c**2+l**2+u**2)}function U(e,t,{epsilon:n=75e-6}={}){e=A(e),t||=e.space,t=j.get(t);let r=e.coords;return t!==e.space&&(r=t.from(e)),t.inGamut(r,{epsilon:n})}function W(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function Se(e,t,n=`lab`){n=j.get(n);let r=n.from(e),i=n.from(t);return Math.sqrt(r.reduce((e,t,n)=>{let r=i[n];return isNaN(t)||isNaN(r)?e:e+(r-t)**2},0))}function Ce(e,t){return Se(e,t,`lab`)}const we=Math.PI,Te=we/180;function Ee(e,t,{l:n=2,c:r=1}={}){[e,t]=A([e,t]);let[i,a,o]=z.from(e),[,s,c]=de.from(z,[i,a,o]),[l,u,d]=z.from(t),f=de.from(z,[l,u,d])[1];s<0&&(s=0),f<0&&(f=0);let p=i-l,m=s-f,h=a-u,g=o-d,_=h**2+g**2-m**2,v=.511;i>=16&&(v=.040975*i/(1+.01765*i));let y=.0638*s/(1+.0131*s)+.638,b;Number.isNaN(c)&&(c=0),b=c>=164&&c<=345?.56+Math.abs(.2*Math.cos((c+168)*Te)):.36+Math.abs(.4*Math.cos((c+35)*Te));let x=s**4,S=Math.sqrt(x/(x+1900)),C=y*(S*b+1-S),w=(p/(n*v))**2;return w+=(m/(r*y))**2,w+=_/C**2,Math.sqrt(w)}var De=new j({id:`xyz-abs-d65`,cssId:`--xyz-abs-d65`,name:`Absolute XYZ D65`,coords:{x:{refRange:[0,9504.7],name:`Xa`},y:{refRange:[0,1e4],name:`Ya`},z:{refRange:[0,10888.3],name:`Za`}},base:N,fromBase(e){return e.map(e=>Math.max(e*203,0))},toBase(e){return e.map(e=>Math.max(e/203,0))}});const Oe=1.15,ke=.66,Ae=2610/2**14,je=2**14/2610,Me=3424/2**12,Ne=2413/2**7,Pe=2392/2**7,Fe=2**5/(1.7*2523),Ie=-.56,Le=16295499532821565e-27,Re=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],ze=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],Be=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],Ve=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var He=new j({id:`jzazbz`,name:`Jzazbz`,coords:{jz:{refRange:[0,1],name:`Jz`},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:De,fromBase(e){let[t,n,r]=e,i=Oe*t-(Oe-1)*r,a=ke*n-(ke-1)*t,s=o(Re,[i,a,r]),c=s.map(function(e){let t=Me+Ne*(e/1e4)**Ae,n=1+Pe*(e/1e4)**Ae;return(t/n)**134.03437499999998}),[l,u,d]=o(Be,c),f=(1+Ie)*l/(1+Ie*l)-Le;return[f,u,d]},toBase(e){let[t,n,r]=e,i=(t+Le)/(1+Ie-Ie*(t+Le)),a=o(Ve,[i,n,r]),s=a.map(function(e){let t=Me-e**Fe,n=Pe*e**Fe-Ne,r=1e4*(t/n)**je;return r}),[c,l,u]=o(ze,s),d=(c+(Oe-1)*u)/Oe,f=(l+(ke-1)*d)/ke;return[d,f,u]},formats:{color:{coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}}),Ue=new j({id:`jzczhz`,name:`JzCzHz`,coords:{jz:{refRange:[0,1],name:`Jz`},cz:{refRange:[0,1],name:`Chroma`},hz:{refRange:[0,360],type:`angle`,name:`Hue`}},base:He,fromBase(e){let[t,n,r]=e,i,a=2e-4;return i=Math.abs(n){let n=S(t*Math.abs(e)*.01,at);return 400*x(n,e)/(n+27.13)});return n}function ht(e,t){let n=100/t*27.13**ot;return e.map(e=>{let t=Math.abs(e);return x(n*S(t/(400-t),ot),e)})}function gt(e){let t=B(e);t<=G.h[0]&&(t+=360);let n=w(G.h,t)-1,[r,i]=G.h.slice(n,n+2),[a,o]=G.e.slice(n,n+2),s=G.H[n],c=(t-r)/a;return s+100*c/(c+(i-t)/o)}function _t(e){let t=(e%400+400)%400,n=Math.floor(.01*t);t%=100;let[r,i]=G.h.slice(n,n+2),[a,o]=G.e.slice(n,n+2);return B((t*(o*r-a*i)-100*r*o)/(t*(o-a)-100*o))}function vt(e,t,n,r,i){let a={};a.discounting=i,a.refWhite=e,a.surround=r;let s=e.map(e=>e*100);a.la=t,a.yb=n;let c=s[1],l=o(ct,s);r=dt[a.surround];let u=r[0];a.c=r[1],a.nc=r[2];let d=1/(5*a.la+1),f=d**4;a.fl=f*a.la+.1*(1-f)*(1-f)*Math.cbrt(5*a.la),a.flRoot=a.fl**.25,a.n=a.yb/c,a.z=1.48+Math.sqrt(a.n),a.nbb=.725*a.n**-.2,a.ncb=a.nbb;let p=i?1:Math.max(Math.min(u*(1-1/3.6*Math.exp((-a.la-42)/92)),1),0);a.dRgb=l.map(e=>g(1,c/e,p)),a.dRgbInv=a.dRgb.map(e=>1/e);let m=l.map((e,t)=>e*a.dRgb[t]),h=mt(m,a.fl);return a.aW=a.nbb*(2*h[0]+h[1]+.05*h[2]),a}const yt=vt(it,64/Math.PI*.2,20,`average`,!1);function bt(e,t){if(!(e.J!==void 0^e.Q!==void 0))throw Error(`Conversion requires one and only one: 'J' or 'Q'`);if(!(e.C!==void 0^e.M!==void 0^e.s!==void 0))throw Error(`Conversion requires one and only one: 'C', 'M' or 's'`);if(!(e.h!==void 0^e.H!==void 0))throw Error(`Conversion requires one and only one: 'h' or 'H'`);if(e.J===0||e.Q===0)return[0,0,0];let n=0;n=e.h===void 0?_t(e.H)*pt:B(e.h)*pt;let r=Math.cos(n),i=Math.sin(n),a=0;e.J===void 0?e.Q!==void 0&&(a=.25*t.c*e.Q/((t.aW+4)*t.flRoot)):a=S(e.J,1/2)*.1;let s=0;e.C===void 0?e.M===void 0?e.s!==void 0&&(s=4e-4*e.s**2*(t.aW+4)/t.c):s=e.M/t.flRoot/a:s=e.C/a;let c=S(s*(1.64-.29**t.n)**-.73,10/9),l=.25*(Math.cos(n+2)+3.8),u=t.aW*S(a,2/t.c/t.z),d=5e4/13*t.nc*t.ncb*l,f=u/t.nbb,p=23*(f+.305)*C(c,23*d+c*(11*r+108*i)),m=p*r,h=p*i,g=ht(o(ut,[f,m,h]).map(e=>e*1/1403),t.fl);return o(lt,g.map((e,n)=>e*t.dRgbInv[n])).map(e=>e/100)}function xt(e,t){let n=e.map(e=>e*100),r=mt(o(ct,n).map((e,n)=>e*t.dRgb[n]),t.fl),i=r[0]+(-12*r[1]+r[2])/11,a=(r[0]+r[1]-2*r[2])/9,s=(Math.atan2(a,i)%st+st)%st,c=.25*(Math.cos(s+2)+3.8),l=5e4/13*t.nc*t.ncb*C(c*Math.sqrt(i**2+a**2),r[0]+r[1]+1.05*r[2]+.305),u=S(l,.9)*(1.64-.29**t.n)**.73,d=t.nbb*(2*r[0]+r[1]+.05*r[2]),f=S(d/t.aW,.5*t.c*t.z),p=100*S(f,2),m=4/t.c*f*(t.aW+4)*t.flRoot,h=u*f,g=h*t.flRoot,_=B(s*ft),v=gt(_),y=50*S(t.c*u/(t.aW+4),1/2);return{J:p,C:h,h:_,s:y,Q:m,M:g,H:v}}var St=new j({id:`cam16-jmh`,cssId:`--cam16-jmh`,name:`CAM16-JMh`,coords:{j:{refRange:[0,100],name:`J`},m:{refRange:[0,105],name:`Colorfulness`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},base:N,fromBase(e){let t=xt(e,yt);return[t.J,t.M,t.h]},toBase(e){return bt({J:e[0],M:e[1],h:e[2]},yt)}});const Ct=D.D65,wt=24389/27;function Tt(e){let t=e>.008856451679035631?Math.cbrt(e):(wt*e+16)/116;return 116*t-16}function Et(e){return e>8?((e+16)/116)**3:e/wt}function Dt(e,t){let[n,r,i]=e,a=[],o=0;if(i===0)return[0,0,0];let s=Et(i);o=i>0?.00379058511492914*i**2+.608983189401032*i+.9155088574762233:9514440756550361e-21*i**2+.08693057439788597*i-21.928975842194614;let c=0,l=1/0;for(;c<=15;){a=bt({J:o,C:r,h:n},t);let e=Math.abs(a[1]-s);if(e | `,` | `,` | `]}}});const jt=Math.PI/180,Mt=[1,.007,.0228];function Nt(e){e[1]<0&&(e=At.fromBase(At.toBase(e)));let t=Math.log(Math.max(1+Mt[2]*e[1]*kt.flRoot,1))/Mt[2],n=e[0]*jt,r=t*Math.cos(n),i=t*Math.sin(n);return[e[2],r,i]}function Pt(e,t){[e,t]=A([e,t]);let[n,r,i]=Nt(At.from(e)),[a,o,s]=Nt(At.from(t));return Math.sqrt((n-a)**2+(r-o)**2+(i-s)**2)}var K={deltaE76:Ce,deltaECMC:Ee,deltaE2000:ge,deltaEJz:We,deltaEITP:rt,deltaEOK:xe,deltaEHCT:Pt};function Ft(e){let t=e?Math.floor(Math.log10(Math.abs(e))):0;return Math.max(parseFloat(`1e${t-2}`),1e-6)}const It={hct:{method:`hct.c`,jnd:2,deltaEMethod:`hct`,blackWhiteClamp:{}},"hct-tonal":{method:`hct.c`,jnd:0,deltaEMethod:`hct`,blackWhiteClamp:{channel:`hct.t`,min:0,max:100}}};function q(e,{method:t=E.gamut_mapping,space:n=void 0,deltaEMethod:r=``,jnd:i=2,blackWhiteClamp:a={}}={}){if(e=A(e),s(arguments[1])?n=arguments[1]:n||=e.space,n=j.get(n),U(e,n,{epsilon:0}))return e;let o;if(t===`css`)o=Rt(e,{space:n});else{if(t!==`clip`&&!U(e,n)){Object.prototype.hasOwnProperty.call(It,t)&&({method:t,jnd:i,deltaEMethod:r,blackWhiteClamp:a}=It[t]);let s=ge;if(r!==``){for(let e in K)if(`deltae`+r.toLowerCase()===e.toLowerCase()){s=K[e];break}}let c=q(J(e,n),{method:`clip`,space:n});if(s(e,c)>i){if(Object.keys(a).length===3){let t=j.resolveCoord(a.channel),n=I(J(e,t.space),t.id);if(u(n)&&(n=0),n>=a.max)return J({space:`xyz-d65`,coords:D.D65},e.space);if(n<=a.min)return J({space:`xyz-d65`,coords:[0,0,0]},e.space)}let r=j.resolveCoord(t),c=r.space,l=r.id,d=J(e,c);d.coords.forEach((e,t)=>{u(e)&&(d.coords[t]=0)});let f=r.range||r.refRange,p=f[0],m=Ft(i),h=p,g=I(d,l);for(;g-h>m;){let e=W(d);e=q(e,{space:n,method:`clip`});let t=s(d,e);t-ie.range||[]);o.coords=o.coords.map((t,n)=>{let[r,i]=e[n];return r!==void 0&&(t=Math.max(r,t)),i!==void 0&&(t=Math.min(t,i)),t})}}return n!==e.space&&(o=J(o,e.space)),e.coords=o.coords,e}q.returns=`color`;const Lt={WHITE:{space:H,coords:[1,0,0]},BLACK:{space:H,coords:[0,0,0]}};function Rt(e,{space:t}={}){let n=.02,r=1e-4;e=A(e),t||=e.space,t=j.get(t);let i=j.get(`oklch`);if(t.isUnbounded)return J(e,t);let a=J(e,i),o=a.coords[0];if(o>=1){let n=J(Lt.WHITE,t);return n.alpha=e.alpha,J(n,t)}if(o<=0){let n=J(Lt.BLACK,t);return n.alpha=e.alpha,J(n,t)}if(U(a,t,{epsilon:0}))return J(a,t);function s(e){let n=J(e,t),r=Object.values(t.coords);return n.coords=n.coords.map((e,t)=>{if(`range`in r[t]){let[n,i]=r[t].range;return b(n,e,i)}return e}),n}let c=0,l=a.coords[1],u=!0,d=W(a),f=s(d),p=xe(f,d);if(pr;){let e=(c+l)/2;if(d.coords[1]=e,u&&U(d,t,{epsilon:0}))c=e;else if(f=s(d),p=xe(f,d),pl(e,{precision:t})));let i=[...s];if(r===`color`){let t=n.id||n.ids?.[0]||e.space.id;i.unshift(t)}let o=e.alpha;t!==null&&(o=l(o,{precision:t}));let c=e.alpha>=1||n.noAlpha?``:`${n.commas?`,`:` /`} ${o}`;a=`${r}(${i.join(n.commas?`, `:` `)}${c})`}return a}const Bt=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Vt=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var Ht=new P({id:`rec2020-linear`,cssId:`--rec2020-linear`,name:`Linear REC.2020`,white:`D65`,toXYZ_M:Bt,fromXYZ_M:Vt});const Ut=1.09929682680944,Wt=.018053968510807;var Gt=new P({id:`rec2020`,name:`REC.2020`,base:Ht,toBase(e){return e.map(function(e){return e=Wt?Ut*e**.45-(Ut-1):4.5*e})}});const Kt=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],qt=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var Jt=new P({id:`p3-linear`,cssId:`--display-p3-linear`,name:`Linear P3`,white:`D65`,toXYZ_M:Kt,fromXYZ_M:qt});const Yt=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Y=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Xt=new P({id:`srgb-linear`,name:`Linear sRGB`,white:`D65`,toXYZ_M:Yt,fromXYZ_M:Y}),Zt={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let Qt=[,,,].fill(` | [0, 255]`),$t=[,,,].fill(`[0, 255]`);var X=new P({id:`srgb`,name:`sRGB`,base:Xt,fromBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n>.0031308?t*(1.055*n**(1/2.4)-.055):12.92*e}),toBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n<=.04045?e/12.92:t*((n+.055)/1.055)**2.4}),formats:{rgb:{coords:Qt},rgb_number:{name:`rgb`,commas:!0,coords:$t,noAlpha:!0},color:{},rgba:{coords:Qt,commas:!0,lastAlpha:!0},rgba_number:{name:`rgba`,commas:!0,coords:$t},hex:{type:`custom`,toGamut:!0,test:e=>/^#([a-f0-9]{3,4}){1,2}$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,`$&$&`));let t=[];return e.replace(/[a-f0-9]{2}/gi,e=>{t.push(parseInt(e,16)/255)}),{spaceId:`srgb`,coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:n=!0}={})=>{t<1&&e.push(t),e=e.map(e=>Math.round(e*255));let r=n&&e.every(e=>e%17==0),i=e.map(e=>r?(e/17).toString(16):e.toString(16).padStart(2,`0`)).join(``);return`#`+i}},keyword:{type:`custom`,test:e=>/^[a-z]+$/i.test(e),parse(e){e=e.toLowerCase();let t={spaceId:`srgb`,coords:null,alpha:1};if(e===`transparent`?(t.coords=Zt.black,t.alpha=0):t.coords=Zt[e],t.coords)return t}}}}),en=new P({id:`p3`,cssId:`display-p3`,name:`P3`,base:Jt,fromBase:X.fromBase,toBase:X.toBase});E.display_space=X;let tn;if(typeof CSS<`u`&&CSS.supports)for(let e of[z,Gt,en]){let t=e.getMinCoords(),n={space:e,coords:t,alpha:1},r=zt(n);if(CSS.supports(`color`,r)){E.display_space=e;break}}function nn(e,{space:t=E.display_space,...n}={}){let r=zt(e,n);if(typeof CSS>`u`||CSS.supports(`color`,r)||!E.display_space)r=new String(r),r.color=e;else{let i=e,a=e.coords.some(u)||u(e.alpha);if(a&&!(tn??=CSS.supports(`color`,`hsl(none 50% 50%)`))&&(i=W(e),i.coords=i.coords.map(d),i.alpha=d(i.alpha),r=zt(i,n),CSS.supports(`color`,r)))return r=new String(r),r.color=i,r;i=J(i,t),r=new String(zt(i,n)),r.color=i}return r}function rn(e,t){return e=A(e),t=A(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every((e,n)=>e===t.coords[n])}function Z(e){return I(e,[N,`y`])}function an(e,t){R(e,[N,`y`],t)}function on(e){Object.defineProperty(e.prototype,`luminance`,{get(){return Z(this)},set(e){an(this,e)}})}var sn=Object.freeze({__proto__:null,getLuminance:Z,register:on,setLuminance:an});function cn(e,t){e=A(e),t=A(t);let n=Math.max(Z(e),0),r=Math.max(Z(t),0);return r>n&&([n,r]=[r,n]),(n+.05)/(r+.05)}const ln=.022,un=.027;function dn(e){return e>=ln?e:e+(ln-e)**1.414}function Q(e){let t=e<0?-1:1,n=Math.abs(e);return t*n**2.4}function fn(e,t){t=A(t),e=A(e);let n,r,i,a,o,s;t=J(t,`srgb`),[a,o,s]=t.coords;let c=Q(a)*.2126729+Q(o)*.7151522+Q(s)*.072175;e=J(e,`srgb`),[a,o,s]=e.coords;let l=Q(a)*.2126729+Q(o)*.7151522+Q(s)*.072175,u=dn(c),d=dn(l),f=d>u;return Math.abs(d-u)<5e-4?r=0:f?(n=d**.56-u**.57,r=n*1.14):(n=d**.65-u**.62,r=n*1.14),i=Math.abs(r)<.1?0:r>0?r-un:r+un,i*100}function pn(e,t){e=A(e),t=A(t);let n=Math.max(Z(e),0),r=Math.max(Z(t),0);r>n&&([n,r]=[r,n]);let i=n+r;return i===0?0:(n-r)/i}function mn(e,t){e=A(e),t=A(t);let n=Math.max(Z(e),0),r=Math.max(Z(t),0);return r>n&&([n,r]=[r,n]),r===0?5e4:(n-r)/r}function hn(e,t){e=A(e),t=A(t);let n=I(e,[z,`l`]),r=I(t,[z,`l`]);return Math.abs(n-r)}const gn=24/116,_n=24389/27;let vn=D.D65;var yn=new j({id:`lab-d65`,name:`Lab D65`,coords:{l:{refRange:[0,100],name:`Lightness`},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:vn,base:N,fromBase(e){let t=e.map((e,t)=>e/vn[t]),n=t.map(e=>e>.008856451679035631?Math.cbrt(e):(_n*e+16)/116);return[116*n[1]-16,500*(n[0]-n[1]),200*(n[1]-n[2])]},toBase(e){let t=[];t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200;let n=[t[0]>gn?t[0]**3:(116*t[0]-16)/_n,e[0]>8?((e[0]+16)/116)**3:e[0]/_n,t[2]>gn?t[2]**3:(116*t[2]-16)/_n];return n.map((e,t)=>e*vn[t])},formats:{"lab-d65":{coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}});const bn=5**.5*.5+.5;function xn(e,t){e=A(e),t=A(t);let n=I(e,[yn,`l`]),r=I(t,[yn,`l`]),i=Math.abs(n**+bn-r**+bn),a=i**(1/bn)*Math.SQRT2-40;return a<7.5?0:a}var Sn=Object.freeze({__proto__:null,contrastAPCA:fn,contrastDeltaPhi:xn,contrastLstar:hn,contrastMichelson:pn,contrastWCAG21:cn,contrastWeber:mn});function Cn(e,t,n={}){s(n)&&(n={algorithm:n});let{algorithm:r,...i}=n;if(!r){let e=Object.keys(Sn).map(e=>e.replace(/^contrast/,``)).join(`, `);throw TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${e}`)}for(let n in e=A(e),t=A(t),Sn)if(`contrast`+r.toLowerCase()===n.toLowerCase())return Sn[n](e,t,i);throw TypeError(`Unknown contrast algorithm: ${r}`)}function wn(e){let[t,n,r]=F(e,N),i=t+15*n+3*r;return[4*t/i,9*n/i]}function Tn(e){let[t,n,r]=F(e,N),i=t+n+r;return[t/i,n/i]}function En(e){Object.defineProperty(e.prototype,`uv`,{get(){return wn(this)}}),Object.defineProperty(e.prototype,`xy`,{get(){return Tn(this)}})}var Dn=Object.freeze({__proto__:null,register:En,uv:wn,xy:Tn});function On(e,t,n={}){s(n)&&(n={method:n});let{method:r=E.deltaE,...i}=n;for(let n in K)if(`deltae`+r.toLowerCase()===n.toLowerCase())return K[n](e,t,i);throw TypeError(`Unknown deltaE method: ${r}`)}function kn(e,t=.25){let n=j.get(`oklch`,`lch`),r=[n,`l`];return R(e,r,e=>e*(1+t))}function An(e,t=.25){let n=j.get(`oklch`,`lch`),r=[n,`l`];return R(e,r,e=>e*(1-t))}var jn=Object.freeze({__proto__:null,darken:An,lighten:kn});function Mn(e,t,n=.5,r={}){[e,t]=[A(e),A(t)],c(n)===`object`&&([n,r]=[.5,n]);let i=Pn(e,t,r);return i(n)}function Nn(e,t,n={}){let r;Fn(e)&&([r,n]=[e,t],[e,t]=r.rangeArgs.colors);let{maxDeltaE:i,deltaEMethod:a,steps:o=2,maxSteps:s=1e3,...c}=n;r||=([e,t]=[A(e),A(t)],Pn(e,t,c));let l=On(e,t),u=i>0?Math.max(o,Math.ceil(l/i)+1):o,d=[];if(s!==void 0&&(u=Math.min(u,s)),u===1)d=[{p:.5,color:r(.5)}];else{let e=1/(u-1);d=Array.from({length:u},(t,n)=>{let i=n*e;return{p:i,color:r(i)}})}if(i>0){let e=d.reduce((e,t,n)=>{if(n===0)return 0;let r=On(t.color,d[n-1].color,a);return Math.max(e,r)},0);for(;e>i;){e=0;for(let t=1;te.color),d}function Pn(e,t,n={}){if(Fn(e)){let[n,r]=[e,t];return Pn(...n.rangeArgs.colors,{...n.rangeArgs.options,...r})}let{space:r,outputSpace:i,progression:a,premultiplied:o}=n;e=A(e),t=A(t),e=W(e),t=W(t);let s={colors:[e,t],options:n};if(r=r?j.get(r):j.registry[E.interpolationSpace]||e.space,i=i?j.get(i):r,e=J(e,r),t=J(t,r),e=q(e),t=q(t),r.coords.h&&r.coords.h.type===`angle`){let i=n.hue=n.hue||`shorter`,a=[r,`h`],[o,s]=[I(e,a),I(t,a)];isNaN(o)&&!isNaN(s)?o=s:isNaN(s)&&!isNaN(o)&&(s=o),[o,s]=ue(i,[o,s]),R(e,a,o),R(t,a,s)}return o&&(e.coords=e.coords.map(t=>t*e.alpha),t.coords=t.coords.map(e=>e*t.alpha)),Object.assign(n=>{n=a?a(n):n;let s=e.coords.map((e,r)=>{let i=t.coords[r];return g(e,i,n)}),c=g(e.alpha,t.alpha,n),l={space:r,coords:s,alpha:c};return o&&(l.coords=l.coords.map(e=>e/c)),i!==r&&(l=J(l,i)),l},{rangeArgs:s})}function Fn(e){return c(e)===`function`&&!!e.rangeArgs}E.interpolationSpace=`lab`;function In(e){e.defineFunction(`mix`,Mn,{returns:`color`}),e.defineFunction(`range`,Pn,{returns:`function`}),e.defineFunction(`steps`,Nn,{returns:`array`})}var Ln=Object.freeze({__proto__:null,isRange:Fn,mix:Mn,range:Pn,register:In,steps:Nn}),Rn=new j({id:`hsl`,name:`HSL`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},l:{range:[0,100],name:`Lightness`}},base:X,fromBase:e=>{let t=Math.max(...e),n=Math.min(...e),[r,i,a]=e,[o,s,c]=[NaN,0,(n+t)/2],l=t-n;if(l!==0){switch(s=c===0||c===1?0:(t-c)/Math.min(c,1-c),t){case r:o=(i-a)/l+(i=360&&(o-=360),[o,s*100,c*100]},toBase:e=>{let[t,n,r]=e;t%=360,t<0&&(t+=360),n/=100,r/=100;function i(e){let i=(e+t/30)%12,a=n*Math.min(r,1-r);return r-a*Math.max(-1,Math.min(i-3,9-i,1))}return[i(0),i(8),i(4)]},formats:{hsl:{coords:[` | `,``,``]},hsla:{coords:[` | `,``,``],commas:!0,lastAlpha:!0}}}),zn=new j({id:`hsv`,name:`HSV`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},v:{range:[0,100],name:`Value`}},base:Rn,fromBase(e){let[t,n,r]=e;n/=100,r/=100;let i=r+n*Math.min(r,1-r);return[t,i===0?0:200*(1-r/i),100*i]},toBase(e){let[t,n,r]=e;n/=100,r/=100;let i=r*(1-n/2);return[t,i===0||i===1?0:(r-i)/Math.min(i,1-i)*100,i*100]},formats:{color:{id:`--hsv`,coords:[` | `,` | `,` | `]}}}),Bn=new j({id:`hwb`,name:`HWB`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},w:{range:[0,100],name:`Whiteness`},b:{range:[0,100],name:`Blackness`}},base:zn,fromBase(e){let[t,n,r]=e;return[t,r*(100-n)/100,100-r]},toBase(e){let[t,n,r]=e;n/=100,r/=100;let i=n+r;if(i>=1){let e=n/i;return[t,0,e*100]}let a=1-r,o=a===0?0:1-n/a;return[t,o*100,a*100]},formats:{hwb:{coords:[` | `,` | `,` | `]}}});const Vn=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],Hn=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var Un=new P({id:`a98rgb-linear`,cssId:`--a98-rgb-linear`,name:`Linear Adobe® 98 RGB compatible`,white:`D65`,toXYZ_M:Vn,fromXYZ_M:Hn}),Wn=new P({id:`a98rgb`,cssId:`a98-rgb`,name:`Adobe® 98 RGB compatible`,base:Un,toBase:e=>e.map(e=>Math.abs(e)**(563/256)*Math.sign(e)),fromBase:e=>e.map(e=>Math.abs(e)**(256/563)*Math.sign(e))});const Gn=[[.7977666449006423,.13518129740053308,.0313477341283922],[.2880748288194013,.711835234241873,8993693872564e-17],[0,0,.8251046025104602]],Kn=[[1.3457868816471583,-.25557208737979464,-.05110186497554526],[-.5446307051249019,1.5082477428451468,.02052744743642139],[0,0,1.2119675456389452]];var qn=new P({id:`prophoto-linear`,cssId:`--prophoto-rgb-linear`,name:`Linear ProPhoto`,white:`D50`,base:oe,toXYZ_M:Gn,fromXYZ_M:Kn}),Jn=new P({id:`prophoto`,cssId:`prophoto-rgb`,name:`ProPhoto`,base:qn,toBase(e){return e.map(e=>e<.03125?e/16:e**1.8)},fromBase(e){return e.map(e=>e>=.001953125?e**(1/1.8):16*e)}}),Yn=new j({id:`oklch`,name:`Oklch`,coords:{l:{refRange:[0,1],name:`Lightness`},c:{refRange:[0,.4],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},white:`D65`,base:H,fromBase(e){let[t,n,r]=e,i,a=2e-4;return i=Math.abs(n) | `,` | [0,1]`,` | `]}}});let Xn=D.D65;const Zn=24389/27,[Qn,$n]=wn({space:N,coords:Xn});var er=new j({id:`luv`,name:`Luv`,coords:{l:{refRange:[0,100],name:`Lightness`},u:{refRange:[-215,215]},v:{refRange:[-215,215]}},white:Xn,base:N,fromBase(e){let t=[d(e[0]),d(e[1]),d(e[2])],n=t[1],[r,i]=wn({space:N,coords:t});if(!Number.isFinite(r)||!Number.isFinite(i))return[0,0,0];let a=n<=.008856451679035631?Zn*n:116*Math.cbrt(n)-16;return[a,13*a*(r-Qn),13*a*(i-$n)]},toBase(e){let[t,n,r]=e;if(t===0||u(t))return[0,0,0];n=d(n),r=d(r);let i=n/(13*t)+Qn,a=r/(13*t)+$n,o=t<=8?t/Zn:((t+16)/116)**3;return[o*(9*i/(4*a)),o,o*((12-3*i-20*a)/(4*a))]},formats:{color:{id:`--luv`,coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}}),tr=new j({id:`lchuv`,name:`LChuv`,coords:{l:{refRange:[0,100],name:`Lightness`},c:{refRange:[0,220],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},base:er,fromBase(e){let[t,n,r]=e,i,a=.02;return i=Math.abs(n) | `,` | `,` | `]}}});const nr=Y[0][0],rr=Y[0][1],ir=Y[0][2],ar=Y[1][0],or=Y[1][1],sr=Y[1][2],cr=Y[2][0],lr=Y[2][1],ur=Y[2][2];function dr(e,t,n){let r=t/(Math.sin(n)-e*Math.cos(n));return r<0?1/0:r}function fr(e){let t=(e+16)**3/1560896,n=t>.008856451679035631?t:e/903.2962962962963,r=n*(284517*nr-94839*ir),i=n*(838422*ir+769860*rr+731718*nr),a=n*(632260*ir-126452*rr),o=n*(284517*ar-94839*sr),s=n*(838422*sr+769860*or+731718*ar),c=n*(632260*sr-126452*or),l=n*(284517*cr-94839*ur),u=n*(838422*ur+769860*lr+731718*cr),d=n*(632260*ur-126452*lr);return{r0s:r/a,r0i:i*e/a,r1s:r/(a+126452),r1i:(i-769860)*e/(a+126452),g0s:o/c,g0i:s*e/c,g1s:o/(c+126452),g1i:(s-769860)*e/(c+126452),b0s:l/d,b0i:u*e/d,b1s:l/(d+126452),b1i:(u-769860)*e/(d+126452)}}function pr(e,t){let n=t/360*Math.PI*2,r=dr(e.r0s,e.r0i,n),i=dr(e.r1s,e.r1i,n),a=dr(e.g0s,e.g0i,n),o=dr(e.g1s,e.g1i,n),s=dr(e.b0s,e.b0i,n),c=dr(e.b1s,e.b1i,n);return Math.min(r,i,a,o,s,c)}var mr=new j({id:`hsluv`,name:`HSLuv`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},l:{range:[0,100],name:`Lightness`}},base:tr,gamutSpace:X,fromBase(e){let[t,n,r]=[d(e[0]),d(e[1]),d(e[2])],i;if(t>99.9999999)i=0,t=100;else if(t<1e-8)i=0,t=0;else{let e=fr(t),a=pr(e,r);i=n/a*100}return[r,i,t]},toBase(e){let[t,n,r]=[d(e[0]),d(e[1]),d(e[2])],i;if(r>99.9999999)r=100,i=0;else if(r<1e-8)r=0,i=0;else{let e=fr(r),a=pr(e,t);i=a/100*n}return[r,i,t]},formats:{color:{id:`--hsluv`,coords:[` | `,` | `,` | `]}}});Y[0][0],Y[0][1],Y[0][2],Y[1][0],Y[1][1],Y[1][2],Y[2][0],Y[2][1],Y[2][2];function hr(e,t){return Math.abs(t)/Math.sqrt(e**2+1)}function gr(e){let t=hr(e.r0s,e.r0i),n=hr(e.r1s,e.r1i),r=hr(e.g0s,e.g0i),i=hr(e.g1s,e.g1i),a=hr(e.b0s,e.b0i),o=hr(e.b1s,e.b1i);return Math.min(t,n,r,i,a,o)}var _r=new j({id:`hpluv`,name:`HPLuv`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},l:{range:[0,100],name:`Lightness`}},base:tr,gamutSpace:`self`,fromBase(e){let[t,n,r]=[d(e[0]),d(e[1]),d(e[2])],i;if(t>99.9999999)i=0,t=100;else if(t<1e-8)i=0,t=0;else{let e=fr(t),r=gr(e);i=n/r*100}return[r,i,t]},toBase(e){let[t,n,r]=[d(e[0]),d(e[1]),d(e[2])],i;if(r>99.9999999)r=100,i=0;else if(r<1e-8)r=0,i=0;else{let e=fr(r),t=gr(e);i=t/100*n}return[r,i,t]},formats:{color:{id:`--hpluv`,coords:[` | `,` | `,` | `]}}});const vr=2610/2**14,yr=2**14/2610,br=2**5/2523,xr=3424/2**12,Sr=2413/2**7,Cr=2392/2**7;var wr=new P({id:`rec2100pq`,cssId:`rec2100-pq`,name:`REC.2100-PQ`,base:Ht,toBase(e){return e.map(function(e){let t=(Math.max(e**br-xr,0)/(Sr-Cr*e**br))**yr;return t*1e4/203})},fromBase(e){return e.map(function(e){let t=Math.max(e*203/1e4,0),n=xr+Sr*t**vr,r=1+Cr*t**vr;return(n/r)**78.84375})}});const Tr=.17883277,Er=.28466892,Dr=.55991073,Or=3.7743;var kr=new P({id:`rec2100hlg`,cssId:`rec2100-hlg`,name:`REC.2100-HLG`,referred:`scene`,base:Ht,toBase(e){return e.map(function(e){return e<=.5?e**2/3*Or:(Math.exp((e-Dr)/Tr)+Er)/12*Or})},fromBase(e){return e.map(function(e){return e/=Or,e<=1/12?Math.sqrt(3*e):Tr*Math.log(12*e-Er)+Dr})}});const Ar={};T.add(`chromatic-adaptation-start`,e=>{e.options.method&&(e.M=Mr(e.W1,e.W2,e.options.method))}),T.add(`chromatic-adaptation-end`,e=>{e.M||=Mr(e.W1,e.W2,e.options.method)});function jr({id:e,toCone_M:t,fromCone_M:n}){Ar[e]=arguments[0]}function Mr(e,t,n=`Bradford`){let r=Ar[n],[i,a,s]=o(r.toCone_M,e),[c,l,u]=o(r.toCone_M,t),d=[[c/i,0,0],[0,l/a,0],[0,0,u/s]],f=o(d,r.toCone_M),p=o(r.fromCone_M,f);return p}jr({id:`von Kries`,toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599363874558397,-1.1293816185800916,.21989740959619328],[.3611914362417676,.6388124632850422,-6370596838649899e-21],[0,0,1.0890636230968613]]}),jr({id:`Bradford`,toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929054667121,-.14705425642099013,.15996265166373122],[.4323052697233945,.5183602715367774,.049291228212855594],[-.00852866457517732,.04004282165408486,.96848669578755]]}),jr({id:`CAT02`,toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238208355142,-.27886900021828726,.18274517938277307],[.4543690419753592,.4735331543074117,.07209780371722911],[-.009627608738429355,-.00569803121611342,1.0153256399545427]]}),jr({id:`CAT16`,toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.0112546305316845,.14918677544445172],[.3875265432361372,.6214474419314753,-.008973985167612521],[-.01584149884933386,-.03412293802851557,1.0499644368778496]]}),Object.assign(D,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]}),D.ACES=[.32168/.33767,1,.34065/.33767];const Nr=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],Pr=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var Fr=new P({id:`acescg`,cssId:`--acescg`,name:`ACEScg`,coords:{r:{range:[0,65504],name:`Red`},g:{range:[0,65504],name:`Green`},b:{range:[0,65504],name:`Blue`}},referred:`scene`,white:D.ACES,toXYZ_M:Nr,fromXYZ_M:Pr});const Ir=2**-16,Lr=-.35828683,Rr=(Math.log2(65504)+9.72)/17.52;var zr=new P({id:`acescc`,cssId:`--acescc`,name:`ACEScc`,coords:{r:{range:[Lr,Rr],name:`Red`},g:{range:[Lr,Rr],name:`Green`},b:{range:[Lr,Rr],name:`Blue`}},referred:`scene`,base:Fr,toBase(e){return e.map(function(e){return e<=-.3013698630136986?(2**(e*17.52-9.72)-Ir)*2:e1||i===void 0?1:i<0?0:i;for(let e=0;ethis.get(e),set:t=>this.set(e,t)})}get spaceId(){return this.space.id}clone(){return new e(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...t){let n=nn(this,...t);return n.color=new e(n.color),n}static get(t,...n){return t instanceof e?t:new e(t,...n)}static defineFunction(t,n,r=n){let{instance:i=!0,returns:a}=r,o=function(...t){let r=n(...t);if(a===`color`)r=e.get(r);else if(a===`function`){let t=r;r=function(...n){let r=t(...n);return e.get(r)},Object.assign(r,t)}else a===`array`&&(r=r.map(t=>e.get(t)));return r};t in e||(e[t]=o),i&&(e.prototype[t]=function(...e){return o(this,...e)})}static defineFunctions(t){for(let n in t)e.defineFunction(n,t[n],t[n])}static extend(exports){if(exports.register)exports.register(e);else for(let n in exports)e.defineFunction(n,exports[n])}};$.defineFunctions({get:I,getAll:F,set:R,setAll:L,to:J,equals:rn,inGamut:U,toGamut:q,distance:Se,toString:zt}),Object.assign($,{util:ee,hooks:T,WHITES:D,Space:j,spaces:j.registry,parse:ie,defaults:E});for(let e of Object.keys(Br))j.register(Br[e]);for(let e in j.registry)Vr(e,j.registry[e]);T.add(`colorspace-init-end`,e=>{Vr(e.id,e),e.aliases?.forEach(t=>{Vr(t,e)})});function Vr(e,t){let n=e.replace(/-/g,`_`);Object.defineProperty($.prototype,n,{get(){let n=this.getAll(e);return typeof Proxy>`u`?n:new Proxy(n,{has:(e,n)=>{try{return j.resolveCoord([t,n]),!0}catch{}return Reflect.has(e,n)},get:(e,n,r)=>{if(n&&typeof n!=`symbol`&&!(n in e)){let{index:r}=j.resolveCoord([t,n]);if(r>=0)return e[r]}return Reflect.get(e,n,r)},set:(n,r,i,a)=>{if(r&&typeof r!=`symbol`&&!(r in n)||r>=0){let{index:a}=j.resolveCoord([t,r]);if(a>=0)return n[a]=i,this.setAll(e,n),!0}return Reflect.set(n,r,i,a)}})},set(t){this.setAll(e,t)},configurable:!0,enumerable:!0})}$.extend(K),$.extend({deltaE:On}),Object.assign($,{deltaEMethods:K}),$.extend(jn),$.extend({contrast:Cn}),$.extend(Dn),$.extend(sn),$.extend(Ln),$.extend(Sn);function Hr(e,t){return async()=>{let n=a(()=>{let t=document.querySelector(e);if(!t)throw Error(`Widgets element not found`);return t},{retry:10,retryDelay:1e3}),r=await n();return window.getComputedStyle(r).getPropertyValue(t)}}function Ur(e){return async()=>{if(typeof e==`string`)return e;{let t=n();return t.value?e.dark:e.light}}}function Wr(e){async function t(){`document`in globalThis&&globalThis.document!=null&&`window`in globalThis&&globalThis.window!=null&&document.querySelector(`meta[name="theme-color"]`)?.setAttribute(`content`,new $(await e()).to(`srgb`).toString({format:`hex`}))}return{updateThemeColor:t}}export{Hr as b,Ur as c,Wr as d}; \ No newline at end of file +import{b as e}from"./merge-D5ueGMzg.js";import{W as t,bV as n}from"./index-D3Bcbz9S.js";const r=async e=>{let t=await e();for(;t instanceof Function;)t=await t();return t},i={retry:3,retryCount:0,retryDelay:500},a=(n,o)=>{let{onError:s,retry:c,retryCount:l,retryDelay:u}=e(i,o),d=async(...e)=>{try{return await n(...e)}catch(r){if(s?.(r),la(n,{onError:s,retry:c,retryCount:l+1,retryDelay:u})(...e);throw r}};return async(...e)=>r(async()=>d(...e))};function o(e,t){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(e=>[e]));let r=t[0].length,i=t[0].map((e,n)=>t.map(e=>e[n])),a=e.map(e=>i.map(t=>{let n=0;if(!Array.isArray(e)){for(let r of t)n+=e*r;return n}for(let r=0;re[0]):a}function s(e){return c(e)===`string`}function c(e){let t=Object.prototype.toString.call(e);return(t.match(/^\[object\s+(.*?)\]$/)[1]||``).toLowerCase()}function l(e,{precision:t,unit:n}){return u(e)?`none`:f(e,t)+(n??``)}function u(e){return Number.isNaN(e)||e instanceof Number&&e?.none}function d(e){return u(e)?0:e}function f(e,t){if(e===0)return 0;let n=~~e,r=0;n&&t&&(r=~~Math.log10(Math.abs(n))+1);let i=10**(t-r);return Math.floor(e*i+.5)/i}const p={deg:1,grad:.9,rad:180/Math.PI,turn:360};function m(e){if(!e)return;e=e.trim();let t=/^([a-z]+)\((.+?)\)$/i,n=/^-?[\d.]+$/,r=/%|deg|g?rad|turn$/,i=/\/?\s*(none|[-\w.]+(?:%|deg|g?rad|turn)?)/g,a=e.match(t);if(a){let e=[];return a[2].replace(i,(t,i)=>{let a=i.match(r),o=i;if(a){let e=a[0],t=o.slice(0,-e.length);e===`%`?(o=new Number(t/100),o.type=``):(o=new Number(t*p[e]),o.type=``,o.unit=e)}else n.test(o)?(o=new Number(o),o.type=``):o===`none`&&(o=new Number(NaN),o.none=!0);t.startsWith(`/`)&&(o=o instanceof Number?o:new Number(o),o.alpha=!0),typeof o==`object`&&o instanceof Number&&(o.raw=i),e.push(o)}),{name:a[1].toLowerCase(),rawName:a[1],rawArgs:a[2],args:e}}}function h(e){return e[e.length-1]}function g(e,t,n){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*n}function _(e,t,n){return(n-e)/(t-e)}function v(e,t,n){return g(t[0],t[1],_(e[0],e[1],n))}function y(e){return e.map(e=>e.split(`|`).map(e=>{e=e.trim();let t=e.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(t){let e=new String(t[1]);return e.range=[+t[2],+t[3]],e}return e}))}function b(e,t,n){return Math.max(Math.min(n,t),e)}function x(e,t){return Math.sign(e)===Math.sign(t)?e:-e}function S(e,t){return x(Math.abs(e)**t,e)}function C(e,t){return t===0?0:e/t}function w(e,t,n=0,r=e.length){for(;n>1;e[i]`,``,``]);function k(e,t,n,r){let i=Object.entries(e.coords).map(([e,i],a)=>{let o=t.coordGrammar[a],s=r[a],c=s?.type,l;if(l=s.none?o.find(e=>re.has(e)):o.find(e=>e==c),!l){let t=i.name||e;throw TypeError(`${c??s.raw} not allowed for ${t} in ${n}()`)}let u=l.range;c===``&&(u||=[0,1]);let d=i.range||i.refRange;return u&&d&&(r[a]=v(u,d,r[a])),l});return i}function ie(e,{meta:t}={}){let n={str:String(e)?.trim()};if(T.run(`parse-start`,n),n.color)return n.color;if(n.parsed=m(n.str),n.parsed){let e=n.parsed.name;if(e===`color`){let e=n.parsed.args.shift(),r=e.startsWith(`--`)?e.substring(2):`--${e}`,i=[e,r],a=n.parsed.rawArgs.indexOf(`/`)>0?n.parsed.args.pop():1;for(let r of j.all){let o=r.getFormat(`color`);if(o&&(i.includes(o.id)||o.ids?.filter(e=>i.includes(e)).length)){let i=Object.keys(r.coords).map((e,t)=>n.parsed.args[t]||0),s;return o.coordGrammar&&(s=k(r,o,`color`,i)),t&&Object.assign(t,{formatId:`color`,types:s}),o.id.startsWith(`--`)&&!e.startsWith(`--`)&&E.warn(`${r.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${o.id}) instead of color(${e}).`),e.startsWith(`--`)&&!o.id.startsWith(`--`)&&E.warn(`${r.name} is a standard space and supported in the CSS spec. Use color(${o.id}) instead of prefixed color(${e}).`),{spaceId:r.id,coords:i,alpha:a}}}let o=``,s=e in j.registry?e:r;if(s in j.registry){let e=j.registry[s].formats?.color?.id;e&&(o=`Did you mean color(${e})?`)}throw TypeError(`Cannot parse color(${e}). `+(o||`Missing a plugin?`))}else for(let r of j.all){let i=r.getFormat(e);if(i&&i.type===`function`){let a=1;(i.lastAlpha||h(n.parsed.args).alpha)&&(a=n.parsed.args.pop());let o=n.parsed.args,s;return i.coordGrammar&&(s=k(r,i,e,o)),t&&Object.assign(t,{formatId:i.name,types:s}),{spaceId:r.id,coords:o,alpha:a}}}}else for(let e of j.all)for(let r in e.formats){let i=e.formats[r];if(i.type!==`custom`||i.test&&!i.test(n.str))continue;let a=i.parse(n.str);if(a)return a.alpha??=1,t&&(t.formatId=r),a}throw TypeError(`Could not parse ${e} as a color. Missing a plugin?`)}function A(e){if(Array.isArray(e))return e.map(A);if(!e)throw TypeError(`Empty color reference`);s(e)&&(e=ie(e));let t=e.space||e.spaceId;return t instanceof j||(e.space=j.get(t)),e.alpha===void 0&&(e.alpha=1),e}var j=class e{constructor(t){this.id=t.id,this.name=t.name,this.base=t.base?e.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);let n=t.coords??this.base.coords;for(let e in n)`name`in n[e]||(n[e].name=e);this.coords=n;let r=t.white??this.base.white??`D65`;for(let e in this.white=ne(r),this.formats=t.formats??{},this.formats){let t=this.formats[e];t.type||=`function`,t.name||=e}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:t.cssId||this.id}),t.gamutSpace?this.gamutSpace=t.gamutSpace===`self`?this:e.get(t.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(e,t)=>!0),this.referred=t.referred,Object.defineProperty(this,`path`,{value:ae(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),T.run(`colorspace-init-end`,this)}inGamut(e,{epsilon:t=75e-6}={}){if(!this.equals(this.gamutSpace))return e=this.to(this.gamutSpace,e),this.gamutSpace.inGamut(e,{epsilon:t});let n=Object.values(this.coords);return e.every((e,r)=>{let i=n[r];if(i.type!==`angle`&&i.range){if(Number.isNaN(e))return!0;let[n,r]=i.range;return(n===void 0||e>=n-t)&&(r===void 0||e<=r+t)}return!0})}get isUnbounded(){return Object.values(this.coords).every(e=>!(`range`in e))}get cssId(){return this.formats?.color?.id||this.id}get isPolar(){for(let e in this.coords)if(this.coords[e].type===`angle`)return!0;return!1}getFormat(e){if(typeof e==`object`)return e=M(e,this),e;let t;return t=e===`default`?Object.values(this.formats)[0]:this.formats[e],t?(t=M(t,this),t):null}equals(e){return e?this===e||this.id===e||this.id===e.id:!1}to(t,n){if(arguments.length===1){let e=A(t);[t,n]=[e.space,e.coords]}if(t=e.get(t),this.equals(t))return n;n=n.map(e=>Number.isNaN(e)?0:e);let r=this.path,i=t.path,a,o;for(let e=0;eo;e--)n=r[e].toBase(n);for(let e=o+1;e=0){let e=Object.entries(i.coords)[a];if(e)return{space:i,id:e[0],index:a,...e[1]}}i=e.get(i);let o=a.toLowerCase(),s=0;for(let e in i.coords){let t=i.coords[e];if(e.toLowerCase()===o||t.name?.toLowerCase()===o)return{space:i,id:e,index:s,...t};s++}throw TypeError(`No "${a}" coordinate found in ${i.name}. Its coordinates are: ${Object.keys(i.coords).join(`, `)}`)}static DEFAULT_FORMAT={type:`functions`,name:`color`}};function ae(e){let t=[e];for(let n=e;n=n.base;)t.push(n);return t}function M(e,{coords:t}={}){if(e.coords&&!e.coordGrammar){e.type||=`function`,e.name||=`color`,e.coordGrammar=y(e.coords);let n=Object.entries(t).map(([t,n],r)=>{let i=e.coordGrammar[r][0],a=n.range||n.refRange,o=i.range,s=``;return i==``?(o=[0,100],s=`%`):i==``&&(s=`deg`),{fromRange:a,toRange:o,suffix:s}});e.serializeCoords=(e,t)=>e.map((e,r)=>{let{fromRange:i,toRange:a,suffix:o}=n[r];return i&&a&&(e=v(i,a,e)),e=l(e,{precision:t,unit:o}),e})}return e}var N=new j({id:`xyz-d65`,name:`XYZ D65`,coords:{x:{name:`X`},y:{name:`Y`},z:{name:`Z`}},white:`D65`,formats:{color:{ids:[`xyz-d65`,`xyz`]}},aliases:[`xyz`]}),P=class extends j{constructor(e){e.coords||={r:{range:[0,1],name:`Red`},g:{range:[0,1],name:`Green`},b:{range:[0,1],name:`Blue`}},e.base||=N,e.toXYZ_M&&e.fromXYZ_M&&(e.toBase??=t=>{let n=o(e.toXYZ_M,t);return this.white!==this.base.white&&(n=O(this.white,this.base.white,n)),n},e.fromBase??=t=>(t=O(this.base.white,this.white,t),o(e.fromXYZ_M,t))),e.referred??=`display`,super(e)}};function F(e,t){return e=A(e),!t||e.space.equals(t)?e.coords.slice():(t=j.get(t),t.from(e))}function I(e,t){e=A(e);let{space:n,index:r}=j.resolveCoord(t,e.space),i=F(e,n);return i[r]}function L(e,t,n){return e=A(e),t=j.get(t),e.coords=t.to(e.space,n),e}L.returns=`color`;function R(e,t,n){if(e=A(e),arguments.length===2&&c(arguments[1])===`object`){let t=arguments[1];for(let n in t)R(e,n,t[n])}else{typeof n==`function`&&(n=n(I(e,t)));let{space:r,index:i}=j.resolveCoord(t,e.space),a=F(e,r);a[i]=n,L(e,r,a)}return e}R.returns=`color`;var oe=new j({id:`xyz-d50`,name:`XYZ D50`,white:`D50`,base:N,fromBase:e=>O(N.white,`D50`,e),toBase:e=>O(`D50`,N.white,e)});const se=24/116,ce=24389/27;let le=D.D50;var z=new j({id:`lab`,name:`Lab`,coords:{l:{refRange:[0,100],name:`Lightness`},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:le,base:oe,fromBase(e){let t=e.map((e,t)=>e/le[t]),n=t.map(e=>e>.008856451679035631?Math.cbrt(e):(ce*e+16)/116);return[116*n[1]-16,500*(n[0]-n[1]),200*(n[1]-n[2])]},toBase(e){let t=[];t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200;let n=[t[0]>se?t[0]**3:(116*t[0]-16)/ce,e[0]>8?((e[0]+16)/116)**3:e[0]/ce,t[2]>se?t[2]**3:(116*t[2]-16)/ce];return n.map((e,t)=>e*le[t])},formats:{lab:{coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}});function B(e){return(e%360+360)%360}function ue(e,t){if(e===`raw`)return t;let[n,r]=t.map(B),i=r-n;return e===`increasing`?i<0&&(r+=360):e===`decreasing`?i>0&&(n+=360):e===`longer`?-1800?n+=360:r+=360):e===`shorter`&&(i>180?n+=360:i<-180&&(r+=360)),[n,r]}var de=new j({id:`lch`,name:`LCH`,coords:{l:{refRange:[0,100],name:`Lightness`},c:{refRange:[0,150],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},base:z,fromBase(e){let[t,n,r]=e,i,a=.02;return i=Math.abs(n) | `,` | `,` | `]}}});const fe=25**7,pe=Math.PI,me=180/pe,V=pe/180;function he(e){let t=e*e,n=t*t*t*e;return n}function ge(e,t,{kL:n=1,kC:r=1,kH:i=1}={}){[e,t]=A([e,t]);let[a,o,s]=z.from(e),c=de.from(z,[a,o,s])[1],[l,u,d]=z.from(t),f=de.from(z,[l,u,d])[1];c<0&&(c=0),f<0&&(f=0);let p=(c+f)/2,m=he(p),h=.5*(1-Math.sqrt(m/(m+fe))),g=(1+h)*o,_=(1+h)*u,v=Math.sqrt(g**2+s**2),y=Math.sqrt(_**2+d**2),b=g===0&&s===0?0:Math.atan2(s,g),x=_===0&&d===0?0:Math.atan2(d,_);b<0&&(b+=2*pe),x<0&&(x+=2*pe),b*=me,x*=me;let S=l-a,C=y-v,w=x-b,ee=b+x,te=Math.abs(w),T;v*y===0?T=0:te<=180?T=w:w>180?T=w-360:w<-180?T=w+360:E.warn(`the unthinkable has happened`);let D=2*Math.sqrt(y*v)*Math.sin(T*V/2),ne=(a+l)/2,O=(v+y)/2,re=he(O),k;k=v*y===0?ee:te<=180?ee/2:ee<360?(ee+360)/2:(ee-360)/2;let ie=(ne-50)**2,j=1+.015*ie/Math.sqrt(20+ie),ae=1+.045*O,M=1;M-=.17*Math.cos((k-30)*V),M+=.24*Math.cos(2*k*V),M+=.32*Math.cos((3*k+6)*V),M-=.2*Math.cos((4*k-63)*V);let N=1+.015*O*M,P=30*Math.exp(-1*((k-275)/25)**2),F=2*Math.sqrt(re/(re+fe)),I=-1*Math.sin(2*P*V)*F,L=(S/(n*j))**2;return L+=(C/(r*ae))**2,L+=(D/(i*N))**2,L+=I*(C/(r*ae))*(D/(i*N)),Math.sqrt(L)}const _e=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],ve=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],ye=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],be=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]];var H=new j({id:`oklab`,name:`Oklab`,coords:{l:{refRange:[0,1],name:`Lightness`},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:`D65`,base:N,fromBase(e){let t=o(_e,e),n=t.map(e=>Math.cbrt(e));return o(ye,n)},toBase(e){let t=o(be,e),n=t.map(e=>e**3);return o(ve,n)},formats:{oklab:{coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}});function xe(e,t){[e,t]=A([e,t]);let[n,r,i]=H.from(e),[a,o,s]=H.from(t),c=n-a,l=r-o,u=i-s;return Math.sqrt(c**2+l**2+u**2)}function U(e,t,{epsilon:n=75e-6}={}){e=A(e),t||=e.space,t=j.get(t);let r=e.coords;return t!==e.space&&(r=t.from(e)),t.inGamut(r,{epsilon:n})}function W(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function Se(e,t,n=`lab`){n=j.get(n);let r=n.from(e),i=n.from(t);return Math.sqrt(r.reduce((e,t,n)=>{let r=i[n];return isNaN(t)||isNaN(r)?e:e+(r-t)**2},0))}function Ce(e,t){return Se(e,t,`lab`)}const we=Math.PI,Te=we/180;function Ee(e,t,{l:n=2,c:r=1}={}){[e,t]=A([e,t]);let[i,a,o]=z.from(e),[,s,c]=de.from(z,[i,a,o]),[l,u,d]=z.from(t),f=de.from(z,[l,u,d])[1];s<0&&(s=0),f<0&&(f=0);let p=i-l,m=s-f,h=a-u,g=o-d,_=h**2+g**2-m**2,v=.511;i>=16&&(v=.040975*i/(1+.01765*i));let y=.0638*s/(1+.0131*s)+.638,b;Number.isNaN(c)&&(c=0),b=c>=164&&c<=345?.56+Math.abs(.2*Math.cos((c+168)*Te)):.36+Math.abs(.4*Math.cos((c+35)*Te));let x=s**4,S=Math.sqrt(x/(x+1900)),C=y*(S*b+1-S),w=(p/(n*v))**2;return w+=(m/(r*y))**2,w+=_/C**2,Math.sqrt(w)}var De=new j({id:`xyz-abs-d65`,cssId:`--xyz-abs-d65`,name:`Absolute XYZ D65`,coords:{x:{refRange:[0,9504.7],name:`Xa`},y:{refRange:[0,1e4],name:`Ya`},z:{refRange:[0,10888.3],name:`Za`}},base:N,fromBase(e){return e.map(e=>Math.max(e*203,0))},toBase(e){return e.map(e=>Math.max(e/203,0))}});const Oe=1.15,ke=.66,Ae=2610/2**14,je=2**14/2610,Me=3424/2**12,Ne=2413/2**7,Pe=2392/2**7,Fe=2**5/(1.7*2523),Ie=-.56,Le=16295499532821565e-27,Re=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],ze=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],Be=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],Ve=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var He=new j({id:`jzazbz`,name:`Jzazbz`,coords:{jz:{refRange:[0,1],name:`Jz`},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:De,fromBase(e){let[t,n,r]=e,i=Oe*t-(Oe-1)*r,a=ke*n-(ke-1)*t,s=o(Re,[i,a,r]),c=s.map(function(e){let t=Me+Ne*(e/1e4)**Ae,n=1+Pe*(e/1e4)**Ae;return(t/n)**134.03437499999998}),[l,u,d]=o(Be,c),f=(1+Ie)*l/(1+Ie*l)-Le;return[f,u,d]},toBase(e){let[t,n,r]=e,i=(t+Le)/(1+Ie-Ie*(t+Le)),a=o(Ve,[i,n,r]),s=a.map(function(e){let t=Me-e**Fe,n=Pe*e**Fe-Ne,r=1e4*(t/n)**je;return r}),[c,l,u]=o(ze,s),d=(c+(Oe-1)*u)/Oe,f=(l+(ke-1)*d)/ke;return[d,f,u]},formats:{color:{coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}}),Ue=new j({id:`jzczhz`,name:`JzCzHz`,coords:{jz:{refRange:[0,1],name:`Jz`},cz:{refRange:[0,1],name:`Chroma`},hz:{refRange:[0,360],type:`angle`,name:`Hue`}},base:He,fromBase(e){let[t,n,r]=e,i,a=2e-4;return i=Math.abs(n){let n=S(t*Math.abs(e)*.01,at);return 400*x(n,e)/(n+27.13)});return n}function ht(e,t){let n=100/t*27.13**ot;return e.map(e=>{let t=Math.abs(e);return x(n*S(t/(400-t),ot),e)})}function gt(e){let t=B(e);t<=G.h[0]&&(t+=360);let n=w(G.h,t)-1,[r,i]=G.h.slice(n,n+2),[a,o]=G.e.slice(n,n+2),s=G.H[n],c=(t-r)/a;return s+100*c/(c+(i-t)/o)}function _t(e){let t=(e%400+400)%400,n=Math.floor(.01*t);t%=100;let[r,i]=G.h.slice(n,n+2),[a,o]=G.e.slice(n,n+2);return B((t*(o*r-a*i)-100*r*o)/(t*(o-a)-100*o))}function vt(e,t,n,r,i){let a={};a.discounting=i,a.refWhite=e,a.surround=r;let s=e.map(e=>e*100);a.la=t,a.yb=n;let c=s[1],l=o(ct,s);r=dt[a.surround];let u=r[0];a.c=r[1],a.nc=r[2];let d=1/(5*a.la+1),f=d**4;a.fl=f*a.la+.1*(1-f)*(1-f)*Math.cbrt(5*a.la),a.flRoot=a.fl**.25,a.n=a.yb/c,a.z=1.48+Math.sqrt(a.n),a.nbb=.725*a.n**-.2,a.ncb=a.nbb;let p=i?1:Math.max(Math.min(u*(1-1/3.6*Math.exp((-a.la-42)/92)),1),0);a.dRgb=l.map(e=>g(1,c/e,p)),a.dRgbInv=a.dRgb.map(e=>1/e);let m=l.map((e,t)=>e*a.dRgb[t]),h=mt(m,a.fl);return a.aW=a.nbb*(2*h[0]+h[1]+.05*h[2]),a}const yt=vt(it,64/Math.PI*.2,20,`average`,!1);function bt(e,t){if(!(e.J!==void 0^e.Q!==void 0))throw Error(`Conversion requires one and only one: 'J' or 'Q'`);if(!(e.C!==void 0^e.M!==void 0^e.s!==void 0))throw Error(`Conversion requires one and only one: 'C', 'M' or 's'`);if(!(e.h!==void 0^e.H!==void 0))throw Error(`Conversion requires one and only one: 'h' or 'H'`);if(e.J===0||e.Q===0)return[0,0,0];let n=0;n=e.h===void 0?_t(e.H)*pt:B(e.h)*pt;let r=Math.cos(n),i=Math.sin(n),a=0;e.J===void 0?e.Q!==void 0&&(a=.25*t.c*e.Q/((t.aW+4)*t.flRoot)):a=S(e.J,1/2)*.1;let s=0;e.C===void 0?e.M===void 0?e.s!==void 0&&(s=4e-4*e.s**2*(t.aW+4)/t.c):s=e.M/t.flRoot/a:s=e.C/a;let c=S(s*(1.64-.29**t.n)**-.73,10/9),l=.25*(Math.cos(n+2)+3.8),u=t.aW*S(a,2/t.c/t.z),d=5e4/13*t.nc*t.ncb*l,f=u/t.nbb,p=23*(f+.305)*C(c,23*d+c*(11*r+108*i)),m=p*r,h=p*i,g=ht(o(ut,[f,m,h]).map(e=>e*1/1403),t.fl);return o(lt,g.map((e,n)=>e*t.dRgbInv[n])).map(e=>e/100)}function xt(e,t){let n=e.map(e=>e*100),r=mt(o(ct,n).map((e,n)=>e*t.dRgb[n]),t.fl),i=r[0]+(-12*r[1]+r[2])/11,a=(r[0]+r[1]-2*r[2])/9,s=(Math.atan2(a,i)%st+st)%st,c=.25*(Math.cos(s+2)+3.8),l=5e4/13*t.nc*t.ncb*C(c*Math.sqrt(i**2+a**2),r[0]+r[1]+1.05*r[2]+.305),u=S(l,.9)*(1.64-.29**t.n)**.73,d=t.nbb*(2*r[0]+r[1]+.05*r[2]),f=S(d/t.aW,.5*t.c*t.z),p=100*S(f,2),m=4/t.c*f*(t.aW+4)*t.flRoot,h=u*f,g=h*t.flRoot,_=B(s*ft),v=gt(_),y=50*S(t.c*u/(t.aW+4),1/2);return{J:p,C:h,h:_,s:y,Q:m,M:g,H:v}}var St=new j({id:`cam16-jmh`,cssId:`--cam16-jmh`,name:`CAM16-JMh`,coords:{j:{refRange:[0,100],name:`J`},m:{refRange:[0,105],name:`Colorfulness`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},base:N,fromBase(e){let t=xt(e,yt);return[t.J,t.M,t.h]},toBase(e){return bt({J:e[0],M:e[1],h:e[2]},yt)}});const Ct=D.D65,wt=24389/27;function Tt(e){let t=e>.008856451679035631?Math.cbrt(e):(wt*e+16)/116;return 116*t-16}function Et(e){return e>8?((e+16)/116)**3:e/wt}function Dt(e,t){let[n,r,i]=e,a=[],o=0;if(i===0)return[0,0,0];let s=Et(i);o=i>0?.00379058511492914*i**2+.608983189401032*i+.9155088574762233:9514440756550361e-21*i**2+.08693057439788597*i-21.928975842194614;let c=0,l=1/0;for(;c<=15;){a=bt({J:o,C:r,h:n},t);let e=Math.abs(a[1]-s);if(e | `,` | `,` | `]}}});const jt=Math.PI/180,Mt=[1,.007,.0228];function Nt(e){e[1]<0&&(e=At.fromBase(At.toBase(e)));let t=Math.log(Math.max(1+Mt[2]*e[1]*kt.flRoot,1))/Mt[2],n=e[0]*jt,r=t*Math.cos(n),i=t*Math.sin(n);return[e[2],r,i]}function Pt(e,t){[e,t]=A([e,t]);let[n,r,i]=Nt(At.from(e)),[a,o,s]=Nt(At.from(t));return Math.sqrt((n-a)**2+(r-o)**2+(i-s)**2)}var K={deltaE76:Ce,deltaECMC:Ee,deltaE2000:ge,deltaEJz:We,deltaEITP:rt,deltaEOK:xe,deltaEHCT:Pt};function Ft(e){let t=e?Math.floor(Math.log10(Math.abs(e))):0;return Math.max(parseFloat(`1e${t-2}`),1e-6)}const It={hct:{method:`hct.c`,jnd:2,deltaEMethod:`hct`,blackWhiteClamp:{}},"hct-tonal":{method:`hct.c`,jnd:0,deltaEMethod:`hct`,blackWhiteClamp:{channel:`hct.t`,min:0,max:100}}};function q(e,{method:t=E.gamut_mapping,space:n=void 0,deltaEMethod:r=``,jnd:i=2,blackWhiteClamp:a={}}={}){if(e=A(e),s(arguments[1])?n=arguments[1]:n||=e.space,n=j.get(n),U(e,n,{epsilon:0}))return e;let o;if(t===`css`)o=Rt(e,{space:n});else{if(t!==`clip`&&!U(e,n)){Object.prototype.hasOwnProperty.call(It,t)&&({method:t,jnd:i,deltaEMethod:r,blackWhiteClamp:a}=It[t]);let s=ge;if(r!==``){for(let e in K)if(`deltae`+r.toLowerCase()===e.toLowerCase()){s=K[e];break}}let c=q(J(e,n),{method:`clip`,space:n});if(s(e,c)>i){if(Object.keys(a).length===3){let t=j.resolveCoord(a.channel),n=I(J(e,t.space),t.id);if(u(n)&&(n=0),n>=a.max)return J({space:`xyz-d65`,coords:D.D65},e.space);if(n<=a.min)return J({space:`xyz-d65`,coords:[0,0,0]},e.space)}let r=j.resolveCoord(t),c=r.space,l=r.id,d=J(e,c);d.coords.forEach((e,t)=>{u(e)&&(d.coords[t]=0)});let f=r.range||r.refRange,p=f[0],m=Ft(i),h=p,g=I(d,l);for(;g-h>m;){let e=W(d);e=q(e,{space:n,method:`clip`});let t=s(d,e);t-ie.range||[]);o.coords=o.coords.map((t,n)=>{let[r,i]=e[n];return r!==void 0&&(t=Math.max(r,t)),i!==void 0&&(t=Math.min(t,i)),t})}}return n!==e.space&&(o=J(o,e.space)),e.coords=o.coords,e}q.returns=`color`;const Lt={WHITE:{space:H,coords:[1,0,0]},BLACK:{space:H,coords:[0,0,0]}};function Rt(e,{space:t}={}){let n=.02,r=1e-4;e=A(e),t||=e.space,t=j.get(t);let i=j.get(`oklch`);if(t.isUnbounded)return J(e,t);let a=J(e,i),o=a.coords[0];if(o>=1){let n=J(Lt.WHITE,t);return n.alpha=e.alpha,J(n,t)}if(o<=0){let n=J(Lt.BLACK,t);return n.alpha=e.alpha,J(n,t)}if(U(a,t,{epsilon:0}))return J(a,t);function s(e){let n=J(e,t),r=Object.values(t.coords);return n.coords=n.coords.map((e,t)=>{if(`range`in r[t]){let[n,i]=r[t].range;return b(n,e,i)}return e}),n}let c=0,l=a.coords[1],u=!0,d=W(a),f=s(d),p=xe(f,d);if(pr;){let e=(c+l)/2;if(d.coords[1]=e,u&&U(d,t,{epsilon:0}))c=e;else if(f=s(d),p=xe(f,d),pl(e,{precision:t})));let i=[...s];if(r===`color`){let t=n.id||n.ids?.[0]||e.space.id;i.unshift(t)}let o=e.alpha;t!==null&&(o=l(o,{precision:t}));let c=e.alpha>=1||n.noAlpha?``:`${n.commas?`,`:` /`} ${o}`;a=`${r}(${i.join(n.commas?`, `:` `)}${c})`}return a}const Bt=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Vt=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var Ht=new P({id:`rec2020-linear`,cssId:`--rec2020-linear`,name:`Linear REC.2020`,white:`D65`,toXYZ_M:Bt,fromXYZ_M:Vt});const Ut=1.09929682680944,Wt=.018053968510807;var Gt=new P({id:`rec2020`,name:`REC.2020`,base:Ht,toBase(e){return e.map(function(e){return e=Wt?Ut*e**.45-(Ut-1):4.5*e})}});const Kt=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],qt=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var Jt=new P({id:`p3-linear`,cssId:`--display-p3-linear`,name:`Linear P3`,white:`D65`,toXYZ_M:Kt,fromXYZ_M:qt});const Yt=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Y=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Xt=new P({id:`srgb-linear`,name:`Linear sRGB`,white:`D65`,toXYZ_M:Yt,fromXYZ_M:Y}),Zt={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let Qt=[,,,].fill(` | [0, 255]`),$t=[,,,].fill(`[0, 255]`);var X=new P({id:`srgb`,name:`sRGB`,base:Xt,fromBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n>.0031308?t*(1.055*n**(1/2.4)-.055):12.92*e}),toBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n<=.04045?e/12.92:t*((n+.055)/1.055)**2.4}),formats:{rgb:{coords:Qt},rgb_number:{name:`rgb`,commas:!0,coords:$t,noAlpha:!0},color:{},rgba:{coords:Qt,commas:!0,lastAlpha:!0},rgba_number:{name:`rgba`,commas:!0,coords:$t},hex:{type:`custom`,toGamut:!0,test:e=>/^#([a-f0-9]{3,4}){1,2}$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,`$&$&`));let t=[];return e.replace(/[a-f0-9]{2}/gi,e=>{t.push(parseInt(e,16)/255)}),{spaceId:`srgb`,coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:n=!0}={})=>{t<1&&e.push(t),e=e.map(e=>Math.round(e*255));let r=n&&e.every(e=>e%17==0),i=e.map(e=>r?(e/17).toString(16):e.toString(16).padStart(2,`0`)).join(``);return`#`+i}},keyword:{type:`custom`,test:e=>/^[a-z]+$/i.test(e),parse(e){e=e.toLowerCase();let t={spaceId:`srgb`,coords:null,alpha:1};if(e===`transparent`?(t.coords=Zt.black,t.alpha=0):t.coords=Zt[e],t.coords)return t}}}}),en=new P({id:`p3`,cssId:`display-p3`,name:`P3`,base:Jt,fromBase:X.fromBase,toBase:X.toBase});E.display_space=X;let tn;if(typeof CSS<`u`&&CSS.supports)for(let e of[z,Gt,en]){let t=e.getMinCoords(),n={space:e,coords:t,alpha:1},r=zt(n);if(CSS.supports(`color`,r)){E.display_space=e;break}}function nn(e,{space:t=E.display_space,...n}={}){let r=zt(e,n);if(typeof CSS>`u`||CSS.supports(`color`,r)||!E.display_space)r=new String(r),r.color=e;else{let i=e,a=e.coords.some(u)||u(e.alpha);if(a&&!(tn??=CSS.supports(`color`,`hsl(none 50% 50%)`))&&(i=W(e),i.coords=i.coords.map(d),i.alpha=d(i.alpha),r=zt(i,n),CSS.supports(`color`,r)))return r=new String(r),r.color=i,r;i=J(i,t),r=new String(zt(i,n)),r.color=i}return r}function rn(e,t){return e=A(e),t=A(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every((e,n)=>e===t.coords[n])}function Z(e){return I(e,[N,`y`])}function an(e,t){R(e,[N,`y`],t)}function on(e){Object.defineProperty(e.prototype,`luminance`,{get(){return Z(this)},set(e){an(this,e)}})}var sn=Object.freeze({__proto__:null,getLuminance:Z,register:on,setLuminance:an});function cn(e,t){e=A(e),t=A(t);let n=Math.max(Z(e),0),r=Math.max(Z(t),0);return r>n&&([n,r]=[r,n]),(n+.05)/(r+.05)}const ln=.022,un=.027;function dn(e){return e>=ln?e:e+(ln-e)**1.414}function Q(e){let t=e<0?-1:1,n=Math.abs(e);return t*n**2.4}function fn(e,t){t=A(t),e=A(e);let n,r,i,a,o,s;t=J(t,`srgb`),[a,o,s]=t.coords;let c=Q(a)*.2126729+Q(o)*.7151522+Q(s)*.072175;e=J(e,`srgb`),[a,o,s]=e.coords;let l=Q(a)*.2126729+Q(o)*.7151522+Q(s)*.072175,u=dn(c),d=dn(l),f=d>u;return Math.abs(d-u)<5e-4?r=0:f?(n=d**.56-u**.57,r=n*1.14):(n=d**.65-u**.62,r=n*1.14),i=Math.abs(r)<.1?0:r>0?r-un:r+un,i*100}function pn(e,t){e=A(e),t=A(t);let n=Math.max(Z(e),0),r=Math.max(Z(t),0);r>n&&([n,r]=[r,n]);let i=n+r;return i===0?0:(n-r)/i}function mn(e,t){e=A(e),t=A(t);let n=Math.max(Z(e),0),r=Math.max(Z(t),0);return r>n&&([n,r]=[r,n]),r===0?5e4:(n-r)/r}function hn(e,t){e=A(e),t=A(t);let n=I(e,[z,`l`]),r=I(t,[z,`l`]);return Math.abs(n-r)}const gn=24/116,_n=24389/27;let vn=D.D65;var yn=new j({id:`lab-d65`,name:`Lab D65`,coords:{l:{refRange:[0,100],name:`Lightness`},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:vn,base:N,fromBase(e){let t=e.map((e,t)=>e/vn[t]),n=t.map(e=>e>.008856451679035631?Math.cbrt(e):(_n*e+16)/116);return[116*n[1]-16,500*(n[0]-n[1]),200*(n[1]-n[2])]},toBase(e){let t=[];t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200;let n=[t[0]>gn?t[0]**3:(116*t[0]-16)/_n,e[0]>8?((e[0]+16)/116)**3:e[0]/_n,t[2]>gn?t[2]**3:(116*t[2]-16)/_n];return n.map((e,t)=>e*vn[t])},formats:{"lab-d65":{coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}});const bn=5**.5*.5+.5;function xn(e,t){e=A(e),t=A(t);let n=I(e,[yn,`l`]),r=I(t,[yn,`l`]),i=Math.abs(n**+bn-r**+bn),a=i**(1/bn)*Math.SQRT2-40;return a<7.5?0:a}var Sn=Object.freeze({__proto__:null,contrastAPCA:fn,contrastDeltaPhi:xn,contrastLstar:hn,contrastMichelson:pn,contrastWCAG21:cn,contrastWeber:mn});function Cn(e,t,n={}){s(n)&&(n={algorithm:n});let{algorithm:r,...i}=n;if(!r){let e=Object.keys(Sn).map(e=>e.replace(/^contrast/,``)).join(`, `);throw TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${e}`)}for(let n in e=A(e),t=A(t),Sn)if(`contrast`+r.toLowerCase()===n.toLowerCase())return Sn[n](e,t,i);throw TypeError(`Unknown contrast algorithm: ${r}`)}function wn(e){let[t,n,r]=F(e,N),i=t+15*n+3*r;return[4*t/i,9*n/i]}function Tn(e){let[t,n,r]=F(e,N),i=t+n+r;return[t/i,n/i]}function En(e){Object.defineProperty(e.prototype,`uv`,{get(){return wn(this)}}),Object.defineProperty(e.prototype,`xy`,{get(){return Tn(this)}})}var Dn=Object.freeze({__proto__:null,register:En,uv:wn,xy:Tn});function On(e,t,n={}){s(n)&&(n={method:n});let{method:r=E.deltaE,...i}=n;for(let n in K)if(`deltae`+r.toLowerCase()===n.toLowerCase())return K[n](e,t,i);throw TypeError(`Unknown deltaE method: ${r}`)}function kn(e,t=.25){let n=j.get(`oklch`,`lch`),r=[n,`l`];return R(e,r,e=>e*(1+t))}function An(e,t=.25){let n=j.get(`oklch`,`lch`),r=[n,`l`];return R(e,r,e=>e*(1-t))}var jn=Object.freeze({__proto__:null,darken:An,lighten:kn});function Mn(e,t,n=.5,r={}){[e,t]=[A(e),A(t)],c(n)===`object`&&([n,r]=[.5,n]);let i=Pn(e,t,r);return i(n)}function Nn(e,t,n={}){let r;Fn(e)&&([r,n]=[e,t],[e,t]=r.rangeArgs.colors);let{maxDeltaE:i,deltaEMethod:a,steps:o=2,maxSteps:s=1e3,...c}=n;r||=([e,t]=[A(e),A(t)],Pn(e,t,c));let l=On(e,t),u=i>0?Math.max(o,Math.ceil(l/i)+1):o,d=[];if(s!==void 0&&(u=Math.min(u,s)),u===1)d=[{p:.5,color:r(.5)}];else{let e=1/(u-1);d=Array.from({length:u},(t,n)=>{let i=n*e;return{p:i,color:r(i)}})}if(i>0){let e=d.reduce((e,t,n)=>{if(n===0)return 0;let r=On(t.color,d[n-1].color,a);return Math.max(e,r)},0);for(;e>i;){e=0;for(let t=1;te.color),d}function Pn(e,t,n={}){if(Fn(e)){let[n,r]=[e,t];return Pn(...n.rangeArgs.colors,{...n.rangeArgs.options,...r})}let{space:r,outputSpace:i,progression:a,premultiplied:o}=n;e=A(e),t=A(t),e=W(e),t=W(t);let s={colors:[e,t],options:n};if(r=r?j.get(r):j.registry[E.interpolationSpace]||e.space,i=i?j.get(i):r,e=J(e,r),t=J(t,r),e=q(e),t=q(t),r.coords.h&&r.coords.h.type===`angle`){let i=n.hue=n.hue||`shorter`,a=[r,`h`],[o,s]=[I(e,a),I(t,a)];isNaN(o)&&!isNaN(s)?o=s:isNaN(s)&&!isNaN(o)&&(s=o),[o,s]=ue(i,[o,s]),R(e,a,o),R(t,a,s)}return o&&(e.coords=e.coords.map(t=>t*e.alpha),t.coords=t.coords.map(e=>e*t.alpha)),Object.assign(n=>{n=a?a(n):n;let s=e.coords.map((e,r)=>{let i=t.coords[r];return g(e,i,n)}),c=g(e.alpha,t.alpha,n),l={space:r,coords:s,alpha:c};return o&&(l.coords=l.coords.map(e=>e/c)),i!==r&&(l=J(l,i)),l},{rangeArgs:s})}function Fn(e){return c(e)===`function`&&!!e.rangeArgs}E.interpolationSpace=`lab`;function In(e){e.defineFunction(`mix`,Mn,{returns:`color`}),e.defineFunction(`range`,Pn,{returns:`function`}),e.defineFunction(`steps`,Nn,{returns:`array`})}var Ln=Object.freeze({__proto__:null,isRange:Fn,mix:Mn,range:Pn,register:In,steps:Nn}),Rn=new j({id:`hsl`,name:`HSL`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},l:{range:[0,100],name:`Lightness`}},base:X,fromBase:e=>{let t=Math.max(...e),n=Math.min(...e),[r,i,a]=e,[o,s,c]=[NaN,0,(n+t)/2],l=t-n;if(l!==0){switch(s=c===0||c===1?0:(t-c)/Math.min(c,1-c),t){case r:o=(i-a)/l+(i=360&&(o-=360),[o,s*100,c*100]},toBase:e=>{let[t,n,r]=e;t%=360,t<0&&(t+=360),n/=100,r/=100;function i(e){let i=(e+t/30)%12,a=n*Math.min(r,1-r);return r-a*Math.max(-1,Math.min(i-3,9-i,1))}return[i(0),i(8),i(4)]},formats:{hsl:{coords:[` | `,``,``]},hsla:{coords:[` | `,``,``],commas:!0,lastAlpha:!0}}}),zn=new j({id:`hsv`,name:`HSV`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},v:{range:[0,100],name:`Value`}},base:Rn,fromBase(e){let[t,n,r]=e;n/=100,r/=100;let i=r+n*Math.min(r,1-r);return[t,i===0?0:200*(1-r/i),100*i]},toBase(e){let[t,n,r]=e;n/=100,r/=100;let i=r*(1-n/2);return[t,i===0||i===1?0:(r-i)/Math.min(i,1-i)*100,i*100]},formats:{color:{id:`--hsv`,coords:[` | `,` | `,` | `]}}}),Bn=new j({id:`hwb`,name:`HWB`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},w:{range:[0,100],name:`Whiteness`},b:{range:[0,100],name:`Blackness`}},base:zn,fromBase(e){let[t,n,r]=e;return[t,r*(100-n)/100,100-r]},toBase(e){let[t,n,r]=e;n/=100,r/=100;let i=n+r;if(i>=1){let e=n/i;return[t,0,e*100]}let a=1-r,o=a===0?0:1-n/a;return[t,o*100,a*100]},formats:{hwb:{coords:[` | `,` | `,` | `]}}});const Vn=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],Hn=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var Un=new P({id:`a98rgb-linear`,cssId:`--a98-rgb-linear`,name:`Linear Adobe® 98 RGB compatible`,white:`D65`,toXYZ_M:Vn,fromXYZ_M:Hn}),Wn=new P({id:`a98rgb`,cssId:`a98-rgb`,name:`Adobe® 98 RGB compatible`,base:Un,toBase:e=>e.map(e=>Math.abs(e)**(563/256)*Math.sign(e)),fromBase:e=>e.map(e=>Math.abs(e)**(256/563)*Math.sign(e))});const Gn=[[.7977666449006423,.13518129740053308,.0313477341283922],[.2880748288194013,.711835234241873,8993693872564e-17],[0,0,.8251046025104602]],Kn=[[1.3457868816471583,-.25557208737979464,-.05110186497554526],[-.5446307051249019,1.5082477428451468,.02052744743642139],[0,0,1.2119675456389452]];var qn=new P({id:`prophoto-linear`,cssId:`--prophoto-rgb-linear`,name:`Linear ProPhoto`,white:`D50`,base:oe,toXYZ_M:Gn,fromXYZ_M:Kn}),Jn=new P({id:`prophoto`,cssId:`prophoto-rgb`,name:`ProPhoto`,base:qn,toBase(e){return e.map(e=>e<.03125?e/16:e**1.8)},fromBase(e){return e.map(e=>e>=.001953125?e**(1/1.8):16*e)}}),Yn=new j({id:`oklch`,name:`Oklch`,coords:{l:{refRange:[0,1],name:`Lightness`},c:{refRange:[0,.4],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},white:`D65`,base:H,fromBase(e){let[t,n,r]=e,i,a=2e-4;return i=Math.abs(n) | `,` | [0,1]`,` | `]}}});let Xn=D.D65;const Zn=24389/27,[Qn,$n]=wn({space:N,coords:Xn});var er=new j({id:`luv`,name:`Luv`,coords:{l:{refRange:[0,100],name:`Lightness`},u:{refRange:[-215,215]},v:{refRange:[-215,215]}},white:Xn,base:N,fromBase(e){let t=[d(e[0]),d(e[1]),d(e[2])],n=t[1],[r,i]=wn({space:N,coords:t});if(!Number.isFinite(r)||!Number.isFinite(i))return[0,0,0];let a=n<=.008856451679035631?Zn*n:116*Math.cbrt(n)-16;return[a,13*a*(r-Qn),13*a*(i-$n)]},toBase(e){let[t,n,r]=e;if(t===0||u(t))return[0,0,0];n=d(n),r=d(r);let i=n/(13*t)+Qn,a=r/(13*t)+$n,o=t<=8?t/Zn:((t+16)/116)**3;return[o*(9*i/(4*a)),o,o*((12-3*i-20*a)/(4*a))]},formats:{color:{id:`--luv`,coords:[` | `,` | [-1,1]`,` | [-1,1]`]}}}),tr=new j({id:`lchuv`,name:`LChuv`,coords:{l:{refRange:[0,100],name:`Lightness`},c:{refRange:[0,220],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},base:er,fromBase(e){let[t,n,r]=e,i,a=.02;return i=Math.abs(n) | `,` | `,` | `]}}});const nr=Y[0][0],rr=Y[0][1],ir=Y[0][2],ar=Y[1][0],or=Y[1][1],sr=Y[1][2],cr=Y[2][0],lr=Y[2][1],ur=Y[2][2];function dr(e,t,n){let r=t/(Math.sin(n)-e*Math.cos(n));return r<0?1/0:r}function fr(e){let t=(e+16)**3/1560896,n=t>.008856451679035631?t:e/903.2962962962963,r=n*(284517*nr-94839*ir),i=n*(838422*ir+769860*rr+731718*nr),a=n*(632260*ir-126452*rr),o=n*(284517*ar-94839*sr),s=n*(838422*sr+769860*or+731718*ar),c=n*(632260*sr-126452*or),l=n*(284517*cr-94839*ur),u=n*(838422*ur+769860*lr+731718*cr),d=n*(632260*ur-126452*lr);return{r0s:r/a,r0i:i*e/a,r1s:r/(a+126452),r1i:(i-769860)*e/(a+126452),g0s:o/c,g0i:s*e/c,g1s:o/(c+126452),g1i:(s-769860)*e/(c+126452),b0s:l/d,b0i:u*e/d,b1s:l/(d+126452),b1i:(u-769860)*e/(d+126452)}}function pr(e,t){let n=t/360*Math.PI*2,r=dr(e.r0s,e.r0i,n),i=dr(e.r1s,e.r1i,n),a=dr(e.g0s,e.g0i,n),o=dr(e.g1s,e.g1i,n),s=dr(e.b0s,e.b0i,n),c=dr(e.b1s,e.b1i,n);return Math.min(r,i,a,o,s,c)}var mr=new j({id:`hsluv`,name:`HSLuv`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},l:{range:[0,100],name:`Lightness`}},base:tr,gamutSpace:X,fromBase(e){let[t,n,r]=[d(e[0]),d(e[1]),d(e[2])],i;if(t>99.9999999)i=0,t=100;else if(t<1e-8)i=0,t=0;else{let e=fr(t),a=pr(e,r);i=n/a*100}return[r,i,t]},toBase(e){let[t,n,r]=[d(e[0]),d(e[1]),d(e[2])],i;if(r>99.9999999)r=100,i=0;else if(r<1e-8)r=0,i=0;else{let e=fr(r),a=pr(e,t);i=a/100*n}return[r,i,t]},formats:{color:{id:`--hsluv`,coords:[` | `,` | `,` | `]}}});Y[0][0],Y[0][1],Y[0][2],Y[1][0],Y[1][1],Y[1][2],Y[2][0],Y[2][1],Y[2][2];function hr(e,t){return Math.abs(t)/Math.sqrt(e**2+1)}function gr(e){let t=hr(e.r0s,e.r0i),n=hr(e.r1s,e.r1i),r=hr(e.g0s,e.g0i),i=hr(e.g1s,e.g1i),a=hr(e.b0s,e.b0i),o=hr(e.b1s,e.b1i);return Math.min(t,n,r,i,a,o)}var _r=new j({id:`hpluv`,name:`HPLuv`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},l:{range:[0,100],name:`Lightness`}},base:tr,gamutSpace:`self`,fromBase(e){let[t,n,r]=[d(e[0]),d(e[1]),d(e[2])],i;if(t>99.9999999)i=0,t=100;else if(t<1e-8)i=0,t=0;else{let e=fr(t),r=gr(e);i=n/r*100}return[r,i,t]},toBase(e){let[t,n,r]=[d(e[0]),d(e[1]),d(e[2])],i;if(r>99.9999999)r=100,i=0;else if(r<1e-8)r=0,i=0;else{let e=fr(r),t=gr(e);i=t/100*n}return[r,i,t]},formats:{color:{id:`--hpluv`,coords:[` | `,` | `,` | `]}}});const vr=2610/2**14,yr=2**14/2610,br=2**5/2523,xr=3424/2**12,Sr=2413/2**7,Cr=2392/2**7;var wr=new P({id:`rec2100pq`,cssId:`rec2100-pq`,name:`REC.2100-PQ`,base:Ht,toBase(e){return e.map(function(e){let t=(Math.max(e**br-xr,0)/(Sr-Cr*e**br))**yr;return t*1e4/203})},fromBase(e){return e.map(function(e){let t=Math.max(e*203/1e4,0),n=xr+Sr*t**vr,r=1+Cr*t**vr;return(n/r)**78.84375})}});const Tr=.17883277,Er=.28466892,Dr=.55991073,Or=3.7743;var kr=new P({id:`rec2100hlg`,cssId:`rec2100-hlg`,name:`REC.2100-HLG`,referred:`scene`,base:Ht,toBase(e){return e.map(function(e){return e<=.5?e**2/3*Or:(Math.exp((e-Dr)/Tr)+Er)/12*Or})},fromBase(e){return e.map(function(e){return e/=Or,e<=1/12?Math.sqrt(3*e):Tr*Math.log(12*e-Er)+Dr})}});const Ar={};T.add(`chromatic-adaptation-start`,e=>{e.options.method&&(e.M=Mr(e.W1,e.W2,e.options.method))}),T.add(`chromatic-adaptation-end`,e=>{e.M||=Mr(e.W1,e.W2,e.options.method)});function jr({id:e,toCone_M:t,fromCone_M:n}){Ar[e]=arguments[0]}function Mr(e,t,n=`Bradford`){let r=Ar[n],[i,a,s]=o(r.toCone_M,e),[c,l,u]=o(r.toCone_M,t),d=[[c/i,0,0],[0,l/a,0],[0,0,u/s]],f=o(d,r.toCone_M),p=o(r.fromCone_M,f);return p}jr({id:`von Kries`,toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599363874558397,-1.1293816185800916,.21989740959619328],[.3611914362417676,.6388124632850422,-6370596838649899e-21],[0,0,1.0890636230968613]]}),jr({id:`Bradford`,toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929054667121,-.14705425642099013,.15996265166373122],[.4323052697233945,.5183602715367774,.049291228212855594],[-.00852866457517732,.04004282165408486,.96848669578755]]}),jr({id:`CAT02`,toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238208355142,-.27886900021828726,.18274517938277307],[.4543690419753592,.4735331543074117,.07209780371722911],[-.009627608738429355,-.00569803121611342,1.0153256399545427]]}),jr({id:`CAT16`,toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.0112546305316845,.14918677544445172],[.3875265432361372,.6214474419314753,-.008973985167612521],[-.01584149884933386,-.03412293802851557,1.0499644368778496]]}),Object.assign(D,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]}),D.ACES=[.32168/.33767,1,.34065/.33767];const Nr=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],Pr=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var Fr=new P({id:`acescg`,cssId:`--acescg`,name:`ACEScg`,coords:{r:{range:[0,65504],name:`Red`},g:{range:[0,65504],name:`Green`},b:{range:[0,65504],name:`Blue`}},referred:`scene`,white:D.ACES,toXYZ_M:Nr,fromXYZ_M:Pr});const Ir=2**-16,Lr=-.35828683,Rr=(Math.log2(65504)+9.72)/17.52;var zr=new P({id:`acescc`,cssId:`--acescc`,name:`ACEScc`,coords:{r:{range:[Lr,Rr],name:`Red`},g:{range:[Lr,Rr],name:`Green`},b:{range:[Lr,Rr],name:`Blue`}},referred:`scene`,base:Fr,toBase(e){return e.map(function(e){return e<=-.3013698630136986?(2**(e*17.52-9.72)-Ir)*2:e1||i===void 0?1:i<0?0:i;for(let e=0;ethis.get(e),set:t=>this.set(e,t)})}get spaceId(){return this.space.id}clone(){return new e(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...t){let n=nn(this,...t);return n.color=new e(n.color),n}static get(t,...n){return t instanceof e?t:new e(t,...n)}static defineFunction(t,n,r=n){let{instance:i=!0,returns:a}=r,o=function(...t){let r=n(...t);if(a===`color`)r=e.get(r);else if(a===`function`){let t=r;r=function(...n){let r=t(...n);return e.get(r)},Object.assign(r,t)}else a===`array`&&(r=r.map(t=>e.get(t)));return r};t in e||(e[t]=o),i&&(e.prototype[t]=function(...e){return o(this,...e)})}static defineFunctions(t){for(let n in t)e.defineFunction(n,t[n],t[n])}static extend(exports){if(exports.register)exports.register(e);else for(let n in exports)e.defineFunction(n,exports[n])}};$.defineFunctions({get:I,getAll:F,set:R,setAll:L,to:J,equals:rn,inGamut:U,toGamut:q,distance:Se,toString:zt}),Object.assign($,{util:ee,hooks:T,WHITES:D,Space:j,spaces:j.registry,parse:ie,defaults:E});for(let e of Object.keys(Br))j.register(Br[e]);for(let e in j.registry)Vr(e,j.registry[e]);T.add(`colorspace-init-end`,e=>{Vr(e.id,e),e.aliases?.forEach(t=>{Vr(t,e)})});function Vr(e,t){let n=e.replace(/-/g,`_`);Object.defineProperty($.prototype,n,{get(){let n=this.getAll(e);return typeof Proxy>`u`?n:new Proxy(n,{has:(e,n)=>{try{return j.resolveCoord([t,n]),!0}catch{}return Reflect.has(e,n)},get:(e,n,r)=>{if(n&&typeof n!=`symbol`&&!(n in e)){let{index:r}=j.resolveCoord([t,n]);if(r>=0)return e[r]}return Reflect.get(e,n,r)},set:(n,r,i,a)=>{if(r&&typeof r!=`symbol`&&!(r in n)||r>=0){let{index:a}=j.resolveCoord([t,r]);if(a>=0)return n[a]=i,this.setAll(e,n),!0}return Reflect.set(n,r,i,a)}})},set(t){this.setAll(e,t)},configurable:!0,enumerable:!0})}$.extend(K),$.extend({deltaE:On}),Object.assign($,{deltaEMethods:K}),$.extend(jn),$.extend({contrast:Cn}),$.extend(Dn),$.extend(sn),$.extend(Ln),$.extend(Sn);function Hr(e,t){return async()=>{let n=a(()=>{let t=document.querySelector(e);if(!t)throw Error(`Widgets element not found`);return t},{retry:10,retryDelay:1e3}),r=await n();return window.getComputedStyle(r).getPropertyValue(t)}}function Ur(e){return async()=>{if(typeof e==`string`)return e;{let t=n();return t.value?e.dark:e.light}}}function Wr(e){async function t(){`document`in globalThis&&globalThis.document!=null&&`window`in globalThis&&globalThis.window!=null&&document.querySelector(`meta[name="theme-color"]`)?.setAttribute(`content`,new $(await e()).to(`srgb`).toString({format:`hex`}))}return{updateThemeColor:t}}export{Hr as b,Ur as c,Wr as d}; \ No newline at end of file diff --git a/assets/together-ai-buYw6IAc.js b/assets/together-ai-awCy7DTa.js similarity index 55% rename from assets/together-ai-buYw6IAc.js rename to assets/together-ai-awCy7DTa.js index cc57d0dde1bc2c310b56c45fb6490fde467c50cd..0e3bfa303f0bd43d6827038174fc81b62e0675a5 100644 --- a/assets/together-ai-buYw6IAc.js +++ b/assets/together-ai-awCy7DTa.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`together-ai`;var x=f({__name:`together-ai`,setup(f){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});p(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),h([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>v(x).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:g(()=>[d(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`togetherapi-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.together.xyz/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b=`together-ai`;var x=p({__name:`together-ai`,setup(p){let{t:y}=s(),x=c(),S=o(),{providers:C}=l(S),w=_(()=>S.getProviderMetadata(b)),T=_({get:()=>C.value[b]?.apiKey||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=_({get:()=>C.value[b]?.baseUrl||``,set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});m(()=>{S.initializeProvider(b),T.value=C.value[b]?.apiKey||``,E.value=C.value[b]?.baseUrl||``}),g([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){C.value[b]={...w.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":w.value?.localizedName,"provider-icon-color":w.value?.iconColor,"on-back":()=>v(x).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:u(()=>[f(v(e),{modelValue:T.value,"onUpdate:modelValue":s[0]||=e=>T.value=e,"provider-name":w.value?.localizedName,placeholder:`togetherapi-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:E.value,"onUpdate:modelValue":s[1]||=e=>E.value=e,placeholder:`https://api.together.xyz/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon-color`,`on-back`]))}});typeof y==`function`&&y(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/transformers.web-0yVxjCoi.js b/assets/transformers.web-Dd3aeuYz.js similarity index 99% rename from assets/transformers.web-0yVxjCoi.js rename to assets/transformers.web-Dd3aeuYz.js index 86f4bb60193e20df9622b2316f3a0e3176740180..c88fdcaacfb170cc0990c53e5c6619d423156078 100644 --- a/assets/transformers.web-0yVxjCoi.js +++ b/assets/transformers.web-Dd3aeuYz.js @@ -1,4 +1,4 @@ -import{bN as e,fd as t,fe as n}from"./index-DEhol03r.js";const r=new Map,i=[],a=(e,t,n)=>{if(t&&typeof t.init==`function`&&typeof t.createInferenceSessionHandler==`function`){let a=r.get(e);if(a===void 0)r.set(e,{backend:t,priority:n});else if(a.priority>n)return;else if(a.priority===n&&a.backend!==t)throw Error(`cannot register backend "${e}" using priority ${n}`);if(n>=0){let t=i.indexOf(e);t!==-1&&i.splice(t,1);for(let t=0;t{let t=r.get(e);if(!t)return`backend not found.`;if(t.initialized)return t.backend;if(t.aborted)return t.error;{let n=!!t.initPromise;try{return n||(t.initPromise=t.backend.init(e)),await t.initPromise,t.initialized=!0,t.backend}catch(e){return n||(t.error=`${e}`,t.aborted=!0),t.error}finally{delete t.initPromise}}},s=async e=>{let t=e.executionProviders||[],n=t.map(e=>typeof e==`string`?e:e.name),r=n.length===0?i:n,a,s=[],c=new Set;for(let e of r){let t=await o(e);typeof t==`string`?s.push({name:e,err:t}):(a||=t,a===t&&c.add(e))}if(!a)throw Error(`no available backend found. ERR: ${s.map(e=>`[${e.name}] ${e.err}`).join(`, `)}`);for(let{name:e,err:t}of s)n.includes(e)&&console.warn(`removing requested execution provider "${e}" from session options because it is not available: ${t}`);let l=t.filter(e=>c.has(typeof e==`string`?e:e.name));return[a,new Proxy(e,{get:(e,t)=>t===`executionProviders`?l:Reflect.get(e,t)})]};let c=`warning`;const l={wasm:{},webgl:{},webgpu:{},versions:{common:`1.22.0`},set logLevel(e){if(e!==void 0){if(typeof e!=`string`||[`verbose`,`info`,`warning`,`error`,`fatal`].indexOf(e)===-1)throw Error(`Unsupported logging level: ${e}`);c=e}},get logLevel(){return c}};Object.defineProperty(l,`logLevel`,{enumerable:!0});const u=l,d=(e,t)=>{let n=typeof document<`u`?document.createElement(`canvas`):new OffscreenCanvas(1,1);n.width=e.dims[3],n.height=e.dims[2];let r=n.getContext(`2d`);if(r!=null){let i,a;t?.tensorLayout!==void 0&&t.tensorLayout===`NHWC`?(i=e.dims[2],a=e.dims[3]):(i=e.dims[3],a=e.dims[2]);let o=t?.format===void 0?`RGB`:t.format,s=t?.norm,c,l;s===void 0||s.mean===void 0?c=[255,255,255,255]:typeof s.mean==`number`?c=[s.mean,s.mean,s.mean,s.mean]:(c=[s.mean[0],s.mean[1],s.mean[2],0],s.mean[3]!==void 0&&(c[3]=s.mean[3])),s===void 0||s.bias===void 0?l=[0,0,0,0]:typeof s.bias==`number`?l=[s.bias,s.bias,s.bias,s.bias]:(l=[s.bias[0],s.bias[1],s.bias[2],0],s.bias[3]!==void 0&&(l[3]=s.bias[3]));let u=a*i,d=0,f=u,p=u*2,m=-1;o===`RGBA`?(d=0,f=u,p=u*2,m=u*3):o===`RGB`?(d=0,f=u,p=u*2):o===`RBG`&&(d=0,p=u,f=u*2);for(let t=0;t{let n=typeof document<`u`?document.createElement(`canvas`).getContext(`2d`):new OffscreenCanvas(1,1).getContext(`2d`),r;if(n!=null){let i,a,o;t?.tensorLayout!==void 0&&t.tensorLayout===`NHWC`?(i=e.dims[2],a=e.dims[1],o=e.dims[3]):(i=e.dims[3],a=e.dims[2],o=e.dims[1]);let s=t===void 0||t.format===void 0?`RGB`:t.format,c=t?.norm,l,u;c===void 0||c.mean===void 0?l=[255,255,255,255]:typeof c.mean==`number`?l=[c.mean,c.mean,c.mean,c.mean]:(l=[c.mean[0],c.mean[1],c.mean[2],255],c.mean[3]!==void 0&&(l[3]=c.mean[3])),c===void 0||c.bias===void 0?u=[0,0,0,0]:typeof c.bias==`number`?u=[c.bias,c.bias,c.bias,c.bias]:(u=[c.bias[0],c.bias[1],c.bias[2],0],c.bias[3]!==void 0&&(u[3]=c.bias[3]));let d=a*i;if(t!==void 0&&(t.format!==void 0&&o===4&&t.format!==`RGBA`||o===3&&t.format!==`RGB`&&t.format!==`BGR`))throw Error(`Tensor format doesn't match input tensor dims`);let f=0,p=1,m=2,h=3,g=0,_=d,v=d*2,y=-1;s===`RGBA`?(g=0,_=d,v=d*2,y=d*3):s===`RGB`?(g=0,_=d,v=d*2):s===`RBG`&&(g=0,v=d,_=d*2),r=n.createImageData(i,a);for(let t=0;t{if(e===void 0)throw Error(`Image buffer must be defined`);if(t.height===void 0||t.width===void 0)throw Error(`Image height and width must be defined`);if(t.tensorLayout===`NHWC`)throw Error(`NHWC Tensor layout is not supported yet`);let{height:n,width:r}=t,i=t.norm??{mean:255,bias:0},a,o;a=typeof i.mean==`number`?[i.mean,i.mean,i.mean,i.mean]:[i.mean[0],i.mean[1],i.mean[2],i.mean[3]??255],o=typeof i.bias==`number`?[i.bias,i.bias,i.bias,i.bias]:[i.bias[0],i.bias[1],i.bias[2],i.bias[3]??0];let s=t.format===void 0?`RGBA`:t.format,c=t.tensorFormat===void 0||t.tensorFormat===void 0?`RGB`:t.tensorFormat,l=n*r,u=c===`RGBA`?new Float32Array(l*4):new Float32Array(l*3),d=4,f=0,p=1,m=2,h=3,g=0,_=l,v=l*2,y=-1;s===`RGB`&&(d=3,f=0,p=1,m=2,h=-1),c===`RGBA`?y=l*3:c===`RBG`?(g=0,v=l,_=l*2):c===`BGR`&&(v=0,_=l,g=l*2);for(let t=0;t{let n=typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement,r=typeof ImageData<`u`&&e instanceof ImageData,i=typeof ImageBitmap<`u`&&e instanceof ImageBitmap,a=typeof e==`string`,o,s=t??{},c=()=>{if(typeof document<`u`)return document.createElement(`canvas`);if(typeof OffscreenCanvas<`u`)return new OffscreenCanvas(1,1);throw Error(`Canvas is not supported`)},l=e=>typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||e instanceof OffscreenCanvas?e.getContext(`2d`):null;if(n){let n=c();n.width=e.width,n.height=e.height;let r=l(n);if(r!=null){let n=e.height,i=e.width;if(t!==void 0&&t.resizedHeight!==void 0&&t.resizedWidth!==void 0&&(n=t.resizedHeight,i=t.resizedWidth),t!==void 0){if(s=t,t.tensorFormat!==void 0)throw Error(`Image input config format must be RGBA for HTMLImageElement`);s.tensorFormat=`RGBA`,s.height=n,s.width=i}else s.tensorFormat=`RGBA`,s.height=n,s.width=i;r.drawImage(e,0,0),o=r.getImageData(0,0,i,n).data}else throw Error(`Can not access image data`)}else if(r){let n,r;if(t!==void 0&&t.resizedWidth!==void 0&&t.resizedHeight!==void 0?(n=t.resizedHeight,r=t.resizedWidth):(n=e.height,r=e.width),t!==void 0&&(s=t),s.format=`RGBA`,s.height=n,s.width=r,t!==void 0){let t=c();t.width=r,t.height=n;let i=l(t);if(i!=null)i.putImageData(e,0,0),o=i.getImageData(0,0,r,n).data;else throw Error(`Can not access image data`)}else o=e.data}else if(i){if(t===void 0)throw Error(`Please provide image config with format for Imagebitmap`);let n=c();n.width=e.width,n.height=e.height;let r=l(n);if(r!=null){let t=e.height,n=e.width;return r.drawImage(e,0,0,n,t),o=r.getImageData(0,0,n,t).data,s.height=t,s.width=n,p(o,s)}else throw Error(`Can not access image data`)}else if(a)return new Promise((t,n)=>{let r=c(),i=l(r);if(!e||!i)return n();let a=new Image;a.crossOrigin=`Anonymous`,a.src=e,a.onload=()=>{r.width=a.width,r.height=a.height,i.drawImage(a,0,0,r.width,r.height);let e=i.getImageData(0,0,r.width,r.height);s.height=r.height,s.width=r.width,t(p(e.data,s))}});else throw Error(`Input data provided is not supported - aborted tensor creation`);if(o!==void 0)return p(o,s);throw Error(`Input data provided is not supported - aborted tensor creation`)},h=(e,t)=>{let{width:n,height:r,download:i,dispose:a}=t,o=[1,r,n,4];return new T({location:`texture`,type:`float32`,texture:e,dims:o,download:i,dispose:a})},g=(e,t)=>{let{dataType:n,dims:r,download:i,dispose:a}=t;return new T({location:`gpu-buffer`,type:n??`float32`,gpuBuffer:e,dims:r,download:i,dispose:a})},_=(e,t)=>{let{dataType:n,dims:r,download:i,dispose:a}=t;return new T({location:`ml-tensor`,type:n??`float32`,mlTensor:e,dims:r,download:i,dispose:a})},v=(e,t,n)=>new T({location:`cpu-pinned`,type:e,data:t,dims:n??[t.length]}),y=new Map([[`float32`,Float32Array],[`uint8`,Uint8Array],[`int8`,Int8Array],[`uint16`,Uint16Array],[`int16`,Int16Array],[`int32`,Int32Array],[`bool`,Uint8Array],[`float64`,Float64Array],[`uint32`,Uint32Array],[`int4`,Uint8Array],[`uint4`,Uint8Array]]),b=new Map([[Float32Array,`float32`],[Uint8Array,`uint8`],[Int8Array,`int8`],[Uint16Array,`uint16`],[Int16Array,`int16`],[Int32Array,`int32`],[Float64Array,`float64`],[Uint32Array,`uint32`]]);let x=!1;const S=()=>{if(!x){x=!0;let e=typeof BigInt64Array<`u`&&BigInt64Array.from,t=typeof BigUint64Array<`u`&&BigUint64Array.from,n=globalThis.Float16Array,r=n!==void 0&&n.from;e&&(y.set(`int64`,BigInt64Array),b.set(BigInt64Array,`int64`)),t&&(y.set(`uint64`,BigUint64Array),b.set(BigUint64Array,`uint64`)),r?(y.set(`float16`,n),b.set(n,`float16`)):y.set(`float16`,Uint16Array)}},C=e=>{let t=1;for(let n=0;n{switch(e.location){case`cpu`:return new T(e.type,e.data,t);case`cpu-pinned`:return new T({location:`cpu-pinned`,data:e.data,type:e.type,dims:t});case`texture`:return new T({location:`texture`,texture:e.texture,type:e.type,dims:t});case`gpu-buffer`:return new T({location:`gpu-buffer`,gpuBuffer:e.gpuBuffer,type:e.type,dims:t});case`ml-tensor`:return new T({location:`ml-tensor`,mlTensor:e.mlTensor,type:e.type,dims:t});default:throw Error(`tensorReshape: tensor location ${e.location} is not supported`)}};var T=class{constructor(e,t,n){S();let r,i;if(typeof e==`object`&&`location`in e)switch(this.dataLocation=e.location,r=e.type,i=e.dims,e.location){case`cpu-pinned`:{let t=y.get(r);if(!t)throw TypeError(`unsupported type "${r}" to create tensor from pinned buffer`);if(!(e.data instanceof t))throw TypeError(`buffer should be of type ${t.name}`);this.cpuData=e.data;break}case`texture`:if(r!==`float32`)throw TypeError(`unsupported type "${r}" to create tensor from texture`);this.gpuTextureData=e.texture,this.downloader=e.download,this.disposer=e.dispose;break;case`gpu-buffer`:if(r!==`float32`&&r!==`float16`&&r!==`int32`&&r!==`int64`&&r!==`uint32`&&r!==`uint8`&&r!==`bool`&&r!==`uint4`&&r!==`int4`)throw TypeError(`unsupported type "${r}" to create tensor from gpu buffer`);this.gpuBufferData=e.gpuBuffer,this.downloader=e.download,this.disposer=e.dispose;break;case`ml-tensor`:if(r!==`float32`&&r!==`float16`&&r!==`int32`&&r!==`int64`&&r!==`uint32`&&r!==`uint64`&&r!==`int8`&&r!==`uint8`&&r!==`bool`&&r!==`uint4`&&r!==`int4`)throw TypeError(`unsupported type "${r}" to create tensor from MLTensor`);this.mlTensorData=e.mlTensor,this.downloader=e.download,this.disposer=e.dispose;break;default:throw Error(`Tensor constructor: unsupported location '${this.dataLocation}'`)}else{let a,o;if(typeof e==`string`)if(r=e,o=n,e===`string`){if(!Array.isArray(t))throw TypeError(`A string tensor's data must be a string array.`);a=t}else{let n=y.get(e);if(n===void 0)throw TypeError(`Unsupported tensor type: ${e}.`);if(Array.isArray(t)){if(e===`float16`&&n===Uint16Array||e===`uint4`||e===`int4`)throw TypeError(`Creating a ${e} tensor from number array is not supported. Please use ${n.name} as data.`);a=e===`uint64`||e===`int64`?n.from(t,BigInt):n.from(t)}else if(t instanceof n)a=t;else if(t instanceof Uint8ClampedArray)if(e===`uint8`)a=Uint8Array.from(t);else throw TypeError(`A Uint8ClampedArray tensor's data must be type of uint8`);else if(e===`float16`&&t instanceof Uint16Array&&n!==Uint16Array)a=new globalThis.Float16Array(t.buffer,t.byteOffset,t.length);else throw TypeError(`A ${r} tensor's data must be type of ${n}`)}else if(o=t,Array.isArray(e)){if(e.length===0)throw TypeError(`Tensor type cannot be inferred from an empty array.`);let t=typeof e[0];if(t===`string`)r=`string`,a=e;else if(t===`boolean`)r=`bool`,a=Uint8Array.from(e);else throw TypeError(`Invalid element type of data array: ${t}.`)}else if(e instanceof Uint8ClampedArray)r=`uint8`,a=Uint8Array.from(e);else{let t=b.get(e.constructor);if(t===void 0)throw TypeError(`Unsupported type for tensor data: ${e.constructor}.`);r=t,a=e}if(o===void 0)o=[a.length];else if(!Array.isArray(o))throw TypeError(`A tensor's dims must be a number array`);i=o,this.cpuData=a,this.dataLocation=`cpu`}let a=C(i);if(this.cpuData&&a!==this.cpuData.length&&!((r===`uint4`||r===`int4`)&&Math.ceil(a/2)===this.cpuData.length))throw Error(`Tensor's size(${a}) does not match data length(${this.cpuData.length}).`);this.type=r,this.dims=i,this.size=a}static async fromImage(e,t){return m(e,t)}static fromTexture(e,t){return h(e,t)}static fromGpuBuffer(e,t){return g(e,t)}static fromMLTensor(e,t){return _(e,t)}static fromPinnedBuffer(e,t,n){return v(e,t,n)}toDataURL(e){return d(this,e)}toImageData(e){return f(this,e)}get data(){if(this.ensureValid(),!this.cpuData)throw Error("The data is not on CPU. Use `getData()` to download GPU data to CPU, or use `texture` or `gpuBuffer` property to access the GPU data directly.");return this.cpuData}get location(){return this.dataLocation}get texture(){if(this.ensureValid(),!this.gpuTextureData)throw Error(`The data is not stored as a WebGL texture.`);return this.gpuTextureData}get gpuBuffer(){if(this.ensureValid(),!this.gpuBufferData)throw Error(`The data is not stored as a WebGPU buffer.`);return this.gpuBufferData}get mlTensor(){if(this.ensureValid(),!this.mlTensorData)throw Error(`The data is not stored as a WebNN MLTensor.`);return this.mlTensorData}async getData(e){switch(this.ensureValid(),this.dataLocation){case`cpu`:case`cpu-pinned`:return this.data;case`texture`:case`gpu-buffer`:case`ml-tensor`:if(!this.downloader)throw Error(`The current tensor is not created with a specified data downloader.`);if(this.isDownloading)throw Error(`The current tensor is being downloaded.`);try{this.isDownloading=!0;let t=await this.downloader();return this.downloader=void 0,this.dataLocation=`cpu`,this.cpuData=t,e&&this.disposer&&(this.disposer(),this.disposer=void 0),t}finally{this.isDownloading=!1}default:throw Error(`cannot get data from location: ${this.dataLocation}`)}}dispose(){if(this.isDownloading)throw Error(`The current tensor is being downloaded.`);this.disposer&&=(this.disposer(),void 0),this.cpuData=void 0,this.gpuTextureData=void 0,this.gpuBufferData=void 0,this.mlTensorData=void 0,this.downloader=void 0,this.isDownloading=void 0,this.dataLocation=`none`}ensureValid(){if(this.dataLocation===`none`)throw Error(`The tensor is disposed.`)}reshape(e){if(this.ensureValid(),this.downloader||this.disposer)throw Error(`Cannot reshape a tensor that owns GPU resource.`);return w(this,e)}};const E=T,D=(e,t)=>{(l.trace===void 0?!l.wasm.trace:!l.trace)||console.timeStamp(`${e}::ORT::${t}`)},O=(e,t)=>{let n=Error().stack?.split(/\r\n|\r|\n/g)||[],r=!1;for(let i=0;i{(l.trace===void 0?!l.wasm.trace:!l.trace)||O(`BEGIN`,e)},A=e=>{(l.trace===void 0?!l.wasm.trace:!l.trace)||O(`END`,e)};var ee=class e{constructor(e){this.handler=e}async run(e,t,n){k();let r={},i={};if(typeof e!=`object`||!e||e instanceof E||Array.isArray(e))throw TypeError(`'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.`);let a=!0;if(typeof t==`object`){if(t===null)throw TypeError(`Unexpected argument[1]: cannot be null.`);if(t instanceof E)throw TypeError(`'fetches' cannot be a Tensor`);if(Array.isArray(t)){if(t.length===0)throw TypeError(`'fetches' cannot be an empty array.`);a=!1;for(let e of t){if(typeof e!=`string`)throw TypeError(`'fetches' must be a string array or an object.`);if(this.outputNames.indexOf(e)===-1)throw RangeError(`'fetches' contains invalid output name: ${e}.`);r[e]=null}if(typeof n==`object`&&n)i=n;else if(n!==void 0)throw TypeError(`'options' must be an object.`)}else{let e=!1,o=Object.getOwnPropertyNames(t);for(let n of this.outputNames)if(o.indexOf(n)!==-1){let i=t[n];(i===null||i instanceof E)&&(e=!0,a=!1,r[n]=i)}if(e){if(typeof n==`object`&&n)i=n;else if(n!==void 0)throw TypeError(`'options' must be an object.`)}else i=t}}else if(t!==void 0)throw TypeError(`Unexpected argument[1]: must be 'fetches' or 'options'.`);for(let t of this.inputNames)if(e[t]===void 0)throw Error(`input '${t}' is missing in 'feeds'.`);if(a)for(let e of this.outputNames)r[e]=null;let o=await this.handler.run(e,r,i),s={};for(let e in o)if(Object.hasOwnProperty.call(o,e)){let t=o[e];t instanceof E?s[e]=t:s[e]=new E(t.type,t.data,t.dims)}return A(),s}async release(){return this.handler.dispose()}static async create(t,n,r,i){k();let a,o={};if(typeof t==`string`){if(a=t,typeof n==`object`&&n)o=n;else if(n!==void 0)throw TypeError(`'options' must be an object.`)}else if(t instanceof Uint8Array){if(a=t,typeof n==`object`&&n)o=n;else if(n!==void 0)throw TypeError(`'options' must be an object.`)}else if(t instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&t instanceof SharedArrayBuffer){let e=t,s=0,c=t.byteLength;if(typeof n==`object`&&n)o=n;else if(typeof n==`number`){if(s=n,!Number.isSafeInteger(s))throw RangeError(`'byteOffset' must be an integer.`);if(s<0||s>=e.byteLength)throw RangeError(`'byteOffset' is out of range [0, ${e.byteLength}).`);if(c=t.byteLength-s,typeof r==`number`){if(c=r,!Number.isSafeInteger(c))throw RangeError(`'byteLength' must be an integer.`);if(c<=0||s+c>e.byteLength)throw RangeError(`'byteLength' is out of range (0, ${e.byteLength-s}].`);if(typeof i==`object`&&i)o=i;else if(i!==void 0)throw TypeError(`'options' must be an object.`)}else if(r!==void 0)throw TypeError(`'byteLength' must be a number.`)}else if(n!==void 0)throw TypeError(`'options' must be an object.`);a=new Uint8Array(e,s,c)}else throw TypeError(`Unexpected argument[0]: must be 'path' or 'buffer'.`);let[c,l]=await s(o),u=await c.createInferenceSessionHandler(a,l);return A(),new e(u)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}get inputMetadata(){return this.handler.inputMetadata}get outputMetadata(){return this.handler.outputMetadata}};const te=ee;var ne={};t(ne,{InferenceSession:()=>te,TRACE:()=>D,TRACE_FUNC_BEGIN:()=>k,TRACE_FUNC_END:()=>A,Tensor:()=>E,env:()=>u,registerBackend:()=>a});var re={};t(re,{InferenceSession:()=>Ge,TRACE:()=>B,TRACE_FUNC_BEGIN:()=>Ve,TRACE_FUNC_END:()=>V,Tensor:()=>Re,default:()=>rf,env:()=>L,registerBackend:()=>pe}); +import{bO as e,fe as t,ff as n}from"./index-D3Bcbz9S.js";const r=new Map,i=[],a=(e,t,n)=>{if(t&&typeof t.init==`function`&&typeof t.createInferenceSessionHandler==`function`){let a=r.get(e);if(a===void 0)r.set(e,{backend:t,priority:n});else if(a.priority>n)return;else if(a.priority===n&&a.backend!==t)throw Error(`cannot register backend "${e}" using priority ${n}`);if(n>=0){let t=i.indexOf(e);t!==-1&&i.splice(t,1);for(let t=0;t{let t=r.get(e);if(!t)return`backend not found.`;if(t.initialized)return t.backend;if(t.aborted)return t.error;{let n=!!t.initPromise;try{return n||(t.initPromise=t.backend.init(e)),await t.initPromise,t.initialized=!0,t.backend}catch(e){return n||(t.error=`${e}`,t.aborted=!0),t.error}finally{delete t.initPromise}}},s=async e=>{let t=e.executionProviders||[],n=t.map(e=>typeof e==`string`?e:e.name),r=n.length===0?i:n,a,s=[],c=new Set;for(let e of r){let t=await o(e);typeof t==`string`?s.push({name:e,err:t}):(a||=t,a===t&&c.add(e))}if(!a)throw Error(`no available backend found. ERR: ${s.map(e=>`[${e.name}] ${e.err}`).join(`, `)}`);for(let{name:e,err:t}of s)n.includes(e)&&console.warn(`removing requested execution provider "${e}" from session options because it is not available: ${t}`);let l=t.filter(e=>c.has(typeof e==`string`?e:e.name));return[a,new Proxy(e,{get:(e,t)=>t===`executionProviders`?l:Reflect.get(e,t)})]};let c=`warning`;const l={wasm:{},webgl:{},webgpu:{},versions:{common:`1.22.0`},set logLevel(e){if(e!==void 0){if(typeof e!=`string`||[`verbose`,`info`,`warning`,`error`,`fatal`].indexOf(e)===-1)throw Error(`Unsupported logging level: ${e}`);c=e}},get logLevel(){return c}};Object.defineProperty(l,`logLevel`,{enumerable:!0});const u=l,d=(e,t)=>{let n=typeof document<`u`?document.createElement(`canvas`):new OffscreenCanvas(1,1);n.width=e.dims[3],n.height=e.dims[2];let r=n.getContext(`2d`);if(r!=null){let i,a;t?.tensorLayout!==void 0&&t.tensorLayout===`NHWC`?(i=e.dims[2],a=e.dims[3]):(i=e.dims[3],a=e.dims[2]);let o=t?.format===void 0?`RGB`:t.format,s=t?.norm,c,l;s===void 0||s.mean===void 0?c=[255,255,255,255]:typeof s.mean==`number`?c=[s.mean,s.mean,s.mean,s.mean]:(c=[s.mean[0],s.mean[1],s.mean[2],0],s.mean[3]!==void 0&&(c[3]=s.mean[3])),s===void 0||s.bias===void 0?l=[0,0,0,0]:typeof s.bias==`number`?l=[s.bias,s.bias,s.bias,s.bias]:(l=[s.bias[0],s.bias[1],s.bias[2],0],s.bias[3]!==void 0&&(l[3]=s.bias[3]));let u=a*i,d=0,f=u,p=u*2,m=-1;o===`RGBA`?(d=0,f=u,p=u*2,m=u*3):o===`RGB`?(d=0,f=u,p=u*2):o===`RBG`&&(d=0,p=u,f=u*2);for(let t=0;t{let n=typeof document<`u`?document.createElement(`canvas`).getContext(`2d`):new OffscreenCanvas(1,1).getContext(`2d`),r;if(n!=null){let i,a,o;t?.tensorLayout!==void 0&&t.tensorLayout===`NHWC`?(i=e.dims[2],a=e.dims[1],o=e.dims[3]):(i=e.dims[3],a=e.dims[2],o=e.dims[1]);let s=t===void 0||t.format===void 0?`RGB`:t.format,c=t?.norm,l,u;c===void 0||c.mean===void 0?l=[255,255,255,255]:typeof c.mean==`number`?l=[c.mean,c.mean,c.mean,c.mean]:(l=[c.mean[0],c.mean[1],c.mean[2],255],c.mean[3]!==void 0&&(l[3]=c.mean[3])),c===void 0||c.bias===void 0?u=[0,0,0,0]:typeof c.bias==`number`?u=[c.bias,c.bias,c.bias,c.bias]:(u=[c.bias[0],c.bias[1],c.bias[2],0],c.bias[3]!==void 0&&(u[3]=c.bias[3]));let d=a*i;if(t!==void 0&&(t.format!==void 0&&o===4&&t.format!==`RGBA`||o===3&&t.format!==`RGB`&&t.format!==`BGR`))throw Error(`Tensor format doesn't match input tensor dims`);let f=0,p=1,m=2,h=3,g=0,_=d,v=d*2,y=-1;s===`RGBA`?(g=0,_=d,v=d*2,y=d*3):s===`RGB`?(g=0,_=d,v=d*2):s===`RBG`&&(g=0,v=d,_=d*2),r=n.createImageData(i,a);for(let t=0;t{if(e===void 0)throw Error(`Image buffer must be defined`);if(t.height===void 0||t.width===void 0)throw Error(`Image height and width must be defined`);if(t.tensorLayout===`NHWC`)throw Error(`NHWC Tensor layout is not supported yet`);let{height:n,width:r}=t,i=t.norm??{mean:255,bias:0},a,o;a=typeof i.mean==`number`?[i.mean,i.mean,i.mean,i.mean]:[i.mean[0],i.mean[1],i.mean[2],i.mean[3]??255],o=typeof i.bias==`number`?[i.bias,i.bias,i.bias,i.bias]:[i.bias[0],i.bias[1],i.bias[2],i.bias[3]??0];let s=t.format===void 0?`RGBA`:t.format,c=t.tensorFormat===void 0||t.tensorFormat===void 0?`RGB`:t.tensorFormat,l=n*r,u=c===`RGBA`?new Float32Array(l*4):new Float32Array(l*3),d=4,f=0,p=1,m=2,h=3,g=0,_=l,v=l*2,y=-1;s===`RGB`&&(d=3,f=0,p=1,m=2,h=-1),c===`RGBA`?y=l*3:c===`RBG`?(g=0,v=l,_=l*2):c===`BGR`&&(v=0,_=l,g=l*2);for(let t=0;t{let n=typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement,r=typeof ImageData<`u`&&e instanceof ImageData,i=typeof ImageBitmap<`u`&&e instanceof ImageBitmap,a=typeof e==`string`,o,s=t??{},c=()=>{if(typeof document<`u`)return document.createElement(`canvas`);if(typeof OffscreenCanvas<`u`)return new OffscreenCanvas(1,1);throw Error(`Canvas is not supported`)},l=e=>typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||e instanceof OffscreenCanvas?e.getContext(`2d`):null;if(n){let n=c();n.width=e.width,n.height=e.height;let r=l(n);if(r!=null){let n=e.height,i=e.width;if(t!==void 0&&t.resizedHeight!==void 0&&t.resizedWidth!==void 0&&(n=t.resizedHeight,i=t.resizedWidth),t!==void 0){if(s=t,t.tensorFormat!==void 0)throw Error(`Image input config format must be RGBA for HTMLImageElement`);s.tensorFormat=`RGBA`,s.height=n,s.width=i}else s.tensorFormat=`RGBA`,s.height=n,s.width=i;r.drawImage(e,0,0),o=r.getImageData(0,0,i,n).data}else throw Error(`Can not access image data`)}else if(r){let n,r;if(t!==void 0&&t.resizedWidth!==void 0&&t.resizedHeight!==void 0?(n=t.resizedHeight,r=t.resizedWidth):(n=e.height,r=e.width),t!==void 0&&(s=t),s.format=`RGBA`,s.height=n,s.width=r,t!==void 0){let t=c();t.width=r,t.height=n;let i=l(t);if(i!=null)i.putImageData(e,0,0),o=i.getImageData(0,0,r,n).data;else throw Error(`Can not access image data`)}else o=e.data}else if(i){if(t===void 0)throw Error(`Please provide image config with format for Imagebitmap`);let n=c();n.width=e.width,n.height=e.height;let r=l(n);if(r!=null){let t=e.height,n=e.width;return r.drawImage(e,0,0,n,t),o=r.getImageData(0,0,n,t).data,s.height=t,s.width=n,p(o,s)}else throw Error(`Can not access image data`)}else if(a)return new Promise((t,n)=>{let r=c(),i=l(r);if(!e||!i)return n();let a=new Image;a.crossOrigin=`Anonymous`,a.src=e,a.onload=()=>{r.width=a.width,r.height=a.height,i.drawImage(a,0,0,r.width,r.height);let e=i.getImageData(0,0,r.width,r.height);s.height=r.height,s.width=r.width,t(p(e.data,s))}});else throw Error(`Input data provided is not supported - aborted tensor creation`);if(o!==void 0)return p(o,s);throw Error(`Input data provided is not supported - aborted tensor creation`)},h=(e,t)=>{let{width:n,height:r,download:i,dispose:a}=t,o=[1,r,n,4];return new T({location:`texture`,type:`float32`,texture:e,dims:o,download:i,dispose:a})},g=(e,t)=>{let{dataType:n,dims:r,download:i,dispose:a}=t;return new T({location:`gpu-buffer`,type:n??`float32`,gpuBuffer:e,dims:r,download:i,dispose:a})},_=(e,t)=>{let{dataType:n,dims:r,download:i,dispose:a}=t;return new T({location:`ml-tensor`,type:n??`float32`,mlTensor:e,dims:r,download:i,dispose:a})},v=(e,t,n)=>new T({location:`cpu-pinned`,type:e,data:t,dims:n??[t.length]}),y=new Map([[`float32`,Float32Array],[`uint8`,Uint8Array],[`int8`,Int8Array],[`uint16`,Uint16Array],[`int16`,Int16Array],[`int32`,Int32Array],[`bool`,Uint8Array],[`float64`,Float64Array],[`uint32`,Uint32Array],[`int4`,Uint8Array],[`uint4`,Uint8Array]]),b=new Map([[Float32Array,`float32`],[Uint8Array,`uint8`],[Int8Array,`int8`],[Uint16Array,`uint16`],[Int16Array,`int16`],[Int32Array,`int32`],[Float64Array,`float64`],[Uint32Array,`uint32`]]);let x=!1;const S=()=>{if(!x){x=!0;let e=typeof BigInt64Array<`u`&&BigInt64Array.from,t=typeof BigUint64Array<`u`&&BigUint64Array.from,n=globalThis.Float16Array,r=n!==void 0&&n.from;e&&(y.set(`int64`,BigInt64Array),b.set(BigInt64Array,`int64`)),t&&(y.set(`uint64`,BigUint64Array),b.set(BigUint64Array,`uint64`)),r?(y.set(`float16`,n),b.set(n,`float16`)):y.set(`float16`,Uint16Array)}},C=e=>{let t=1;for(let n=0;n{switch(e.location){case`cpu`:return new T(e.type,e.data,t);case`cpu-pinned`:return new T({location:`cpu-pinned`,data:e.data,type:e.type,dims:t});case`texture`:return new T({location:`texture`,texture:e.texture,type:e.type,dims:t});case`gpu-buffer`:return new T({location:`gpu-buffer`,gpuBuffer:e.gpuBuffer,type:e.type,dims:t});case`ml-tensor`:return new T({location:`ml-tensor`,mlTensor:e.mlTensor,type:e.type,dims:t});default:throw Error(`tensorReshape: tensor location ${e.location} is not supported`)}};var T=class{constructor(e,t,n){S();let r,i;if(typeof e==`object`&&`location`in e)switch(this.dataLocation=e.location,r=e.type,i=e.dims,e.location){case`cpu-pinned`:{let t=y.get(r);if(!t)throw TypeError(`unsupported type "${r}" to create tensor from pinned buffer`);if(!(e.data instanceof t))throw TypeError(`buffer should be of type ${t.name}`);this.cpuData=e.data;break}case`texture`:if(r!==`float32`)throw TypeError(`unsupported type "${r}" to create tensor from texture`);this.gpuTextureData=e.texture,this.downloader=e.download,this.disposer=e.dispose;break;case`gpu-buffer`:if(r!==`float32`&&r!==`float16`&&r!==`int32`&&r!==`int64`&&r!==`uint32`&&r!==`uint8`&&r!==`bool`&&r!==`uint4`&&r!==`int4`)throw TypeError(`unsupported type "${r}" to create tensor from gpu buffer`);this.gpuBufferData=e.gpuBuffer,this.downloader=e.download,this.disposer=e.dispose;break;case`ml-tensor`:if(r!==`float32`&&r!==`float16`&&r!==`int32`&&r!==`int64`&&r!==`uint32`&&r!==`uint64`&&r!==`int8`&&r!==`uint8`&&r!==`bool`&&r!==`uint4`&&r!==`int4`)throw TypeError(`unsupported type "${r}" to create tensor from MLTensor`);this.mlTensorData=e.mlTensor,this.downloader=e.download,this.disposer=e.dispose;break;default:throw Error(`Tensor constructor: unsupported location '${this.dataLocation}'`)}else{let a,o;if(typeof e==`string`)if(r=e,o=n,e===`string`){if(!Array.isArray(t))throw TypeError(`A string tensor's data must be a string array.`);a=t}else{let n=y.get(e);if(n===void 0)throw TypeError(`Unsupported tensor type: ${e}.`);if(Array.isArray(t)){if(e===`float16`&&n===Uint16Array||e===`uint4`||e===`int4`)throw TypeError(`Creating a ${e} tensor from number array is not supported. Please use ${n.name} as data.`);a=e===`uint64`||e===`int64`?n.from(t,BigInt):n.from(t)}else if(t instanceof n)a=t;else if(t instanceof Uint8ClampedArray)if(e===`uint8`)a=Uint8Array.from(t);else throw TypeError(`A Uint8ClampedArray tensor's data must be type of uint8`);else if(e===`float16`&&t instanceof Uint16Array&&n!==Uint16Array)a=new globalThis.Float16Array(t.buffer,t.byteOffset,t.length);else throw TypeError(`A ${r} tensor's data must be type of ${n}`)}else if(o=t,Array.isArray(e)){if(e.length===0)throw TypeError(`Tensor type cannot be inferred from an empty array.`);let t=typeof e[0];if(t===`string`)r=`string`,a=e;else if(t===`boolean`)r=`bool`,a=Uint8Array.from(e);else throw TypeError(`Invalid element type of data array: ${t}.`)}else if(e instanceof Uint8ClampedArray)r=`uint8`,a=Uint8Array.from(e);else{let t=b.get(e.constructor);if(t===void 0)throw TypeError(`Unsupported type for tensor data: ${e.constructor}.`);r=t,a=e}if(o===void 0)o=[a.length];else if(!Array.isArray(o))throw TypeError(`A tensor's dims must be a number array`);i=o,this.cpuData=a,this.dataLocation=`cpu`}let a=C(i);if(this.cpuData&&a!==this.cpuData.length&&!((r===`uint4`||r===`int4`)&&Math.ceil(a/2)===this.cpuData.length))throw Error(`Tensor's size(${a}) does not match data length(${this.cpuData.length}).`);this.type=r,this.dims=i,this.size=a}static async fromImage(e,t){return m(e,t)}static fromTexture(e,t){return h(e,t)}static fromGpuBuffer(e,t){return g(e,t)}static fromMLTensor(e,t){return _(e,t)}static fromPinnedBuffer(e,t,n){return v(e,t,n)}toDataURL(e){return d(this,e)}toImageData(e){return f(this,e)}get data(){if(this.ensureValid(),!this.cpuData)throw Error("The data is not on CPU. Use `getData()` to download GPU data to CPU, or use `texture` or `gpuBuffer` property to access the GPU data directly.");return this.cpuData}get location(){return this.dataLocation}get texture(){if(this.ensureValid(),!this.gpuTextureData)throw Error(`The data is not stored as a WebGL texture.`);return this.gpuTextureData}get gpuBuffer(){if(this.ensureValid(),!this.gpuBufferData)throw Error(`The data is not stored as a WebGPU buffer.`);return this.gpuBufferData}get mlTensor(){if(this.ensureValid(),!this.mlTensorData)throw Error(`The data is not stored as a WebNN MLTensor.`);return this.mlTensorData}async getData(e){switch(this.ensureValid(),this.dataLocation){case`cpu`:case`cpu-pinned`:return this.data;case`texture`:case`gpu-buffer`:case`ml-tensor`:if(!this.downloader)throw Error(`The current tensor is not created with a specified data downloader.`);if(this.isDownloading)throw Error(`The current tensor is being downloaded.`);try{this.isDownloading=!0;let t=await this.downloader();return this.downloader=void 0,this.dataLocation=`cpu`,this.cpuData=t,e&&this.disposer&&(this.disposer(),this.disposer=void 0),t}finally{this.isDownloading=!1}default:throw Error(`cannot get data from location: ${this.dataLocation}`)}}dispose(){if(this.isDownloading)throw Error(`The current tensor is being downloaded.`);this.disposer&&=(this.disposer(),void 0),this.cpuData=void 0,this.gpuTextureData=void 0,this.gpuBufferData=void 0,this.mlTensorData=void 0,this.downloader=void 0,this.isDownloading=void 0,this.dataLocation=`none`}ensureValid(){if(this.dataLocation===`none`)throw Error(`The tensor is disposed.`)}reshape(e){if(this.ensureValid(),this.downloader||this.disposer)throw Error(`Cannot reshape a tensor that owns GPU resource.`);return w(this,e)}};const E=T,D=(e,t)=>{(l.trace===void 0?!l.wasm.trace:!l.trace)||console.timeStamp(`${e}::ORT::${t}`)},O=(e,t)=>{let n=Error().stack?.split(/\r\n|\r|\n/g)||[],r=!1;for(let i=0;i{(l.trace===void 0?!l.wasm.trace:!l.trace)||O(`BEGIN`,e)},A=e=>{(l.trace===void 0?!l.wasm.trace:!l.trace)||O(`END`,e)};var ee=class e{constructor(e){this.handler=e}async run(e,t,n){k();let r={},i={};if(typeof e!=`object`||!e||e instanceof E||Array.isArray(e))throw TypeError(`'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.`);let a=!0;if(typeof t==`object`){if(t===null)throw TypeError(`Unexpected argument[1]: cannot be null.`);if(t instanceof E)throw TypeError(`'fetches' cannot be a Tensor`);if(Array.isArray(t)){if(t.length===0)throw TypeError(`'fetches' cannot be an empty array.`);a=!1;for(let e of t){if(typeof e!=`string`)throw TypeError(`'fetches' must be a string array or an object.`);if(this.outputNames.indexOf(e)===-1)throw RangeError(`'fetches' contains invalid output name: ${e}.`);r[e]=null}if(typeof n==`object`&&n)i=n;else if(n!==void 0)throw TypeError(`'options' must be an object.`)}else{let e=!1,o=Object.getOwnPropertyNames(t);for(let n of this.outputNames)if(o.indexOf(n)!==-1){let i=t[n];(i===null||i instanceof E)&&(e=!0,a=!1,r[n]=i)}if(e){if(typeof n==`object`&&n)i=n;else if(n!==void 0)throw TypeError(`'options' must be an object.`)}else i=t}}else if(t!==void 0)throw TypeError(`Unexpected argument[1]: must be 'fetches' or 'options'.`);for(let t of this.inputNames)if(e[t]===void 0)throw Error(`input '${t}' is missing in 'feeds'.`);if(a)for(let e of this.outputNames)r[e]=null;let o=await this.handler.run(e,r,i),s={};for(let e in o)if(Object.hasOwnProperty.call(o,e)){let t=o[e];t instanceof E?s[e]=t:s[e]=new E(t.type,t.data,t.dims)}return A(),s}async release(){return this.handler.dispose()}static async create(t,n,r,i){k();let a,o={};if(typeof t==`string`){if(a=t,typeof n==`object`&&n)o=n;else if(n!==void 0)throw TypeError(`'options' must be an object.`)}else if(t instanceof Uint8Array){if(a=t,typeof n==`object`&&n)o=n;else if(n!==void 0)throw TypeError(`'options' must be an object.`)}else if(t instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&t instanceof SharedArrayBuffer){let e=t,s=0,c=t.byteLength;if(typeof n==`object`&&n)o=n;else if(typeof n==`number`){if(s=n,!Number.isSafeInteger(s))throw RangeError(`'byteOffset' must be an integer.`);if(s<0||s>=e.byteLength)throw RangeError(`'byteOffset' is out of range [0, ${e.byteLength}).`);if(c=t.byteLength-s,typeof r==`number`){if(c=r,!Number.isSafeInteger(c))throw RangeError(`'byteLength' must be an integer.`);if(c<=0||s+c>e.byteLength)throw RangeError(`'byteLength' is out of range (0, ${e.byteLength-s}].`);if(typeof i==`object`&&i)o=i;else if(i!==void 0)throw TypeError(`'options' must be an object.`)}else if(r!==void 0)throw TypeError(`'byteLength' must be a number.`)}else if(n!==void 0)throw TypeError(`'options' must be an object.`);a=new Uint8Array(e,s,c)}else throw TypeError(`Unexpected argument[0]: must be 'path' or 'buffer'.`);let[c,l]=await s(o),u=await c.createInferenceSessionHandler(a,l);return A(),new e(u)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}get inputMetadata(){return this.handler.inputMetadata}get outputMetadata(){return this.handler.outputMetadata}};const te=ee;var ne={};t(ne,{InferenceSession:()=>te,TRACE:()=>D,TRACE_FUNC_BEGIN:()=>k,TRACE_FUNC_END:()=>A,Tensor:()=>E,env:()=>u,registerBackend:()=>a});var re={};t(re,{InferenceSession:()=>Ge,TRACE:()=>B,TRACE_FUNC_BEGIN:()=>Ve,TRACE_FUNC_END:()=>V,Tensor:()=>Re,default:()=>rf,env:()=>L,registerBackend:()=>pe}); /*! * ONNX Runtime Web v1.22.0-dev.20250409-89f8206ba4 * Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/assets/use-magic-keys-DXY8imCq.js b/assets/use-magic-keys-DXY8imCq.js new file mode 100644 index 0000000000000000000000000000000000000000..1051dc0ea1061b3e9f4b2f125369efa348235f5b --- /dev/null +++ b/assets/use-magic-keys-DXY8imCq.js @@ -0,0 +1 @@ +import{b_ as e,e$ as t,eA as n,eD as r,eF as i,eG as a,eH as o,eJ as s,eR as c,eT as l,ew as u,ez as d,f7 as f,f8 as p,fb as m}from"./index-D3Bcbz9S.js";const h={class:`flex flex-col md:flex-row`},g={class:`flex justify-center gap-3`},_={class:`mt-3 flex justify-center gap-3`},v={class:`mt-3 flex justify-center gap-3`},y={class:`mt-3 flex flex-col items-center gap-3`},b={class:`mt-4 text-center`},x={class:`mt-2 min-h-1.5em flex justify-center space-x-1`};var S=o({__name:`use-magic-keys`,setup(S){let{shift:C,control:w,escape:T,tab:E,v:D,u:O,e:k,s:A,v_u_e:j,u_s_e:M,i_Shift_Alt:N,a_Shift_Alt:P,n_Shift_Alt:F,current:I}=e(),L=d(()=>Array.from(I)),R=o({props:{value:{type:Boolean,required:!0}},render(){return s(`div`,{class:[`font-mono px-4 py-2 rounded`,this.value?`opacity-100 text-primary bg-primary bg-opacity-15`:`opacity-50 bg-gray-600 bg-opacity-10 dark:bg-gray-400 dark:bg-opacity-10`]},this.$slots.default?.())}});return(e,o)=>(c(),r(`div`,h,[n(`img`,{class:p([`m-auto h-38 transform py-8 transition duration-500`,{"opacity-0":!f(j),"rotate-180":f(C)}])},null,2),n(`div`,null,[o[17]||=n(`div`,{class:`mb-5 mt-0 text-center`},` Press the following keys to test out `,-1),n(`div`,g,[a(f(R),{value:f(D)},{default:t(()=>[...o[0]||=[i(` V `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(O)},{default:t(()=>[...o[1]||=[i(` u `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(k)},{default:t(()=>[...o[2]||=[i(` e `,-1)]]),_:1},8,[`value`]),o[6]||=n(`div`,{class:`mx-1`},null,-1),a(f(R),{value:f(O)},{default:t(()=>[...o[3]||=[i(` U `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(A)},{default:t(()=>[...o[4]||=[i(` s `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(k)},{default:t(()=>[...o[5]||=[i(` e `,-1)]]),_:1},8,[`value`])]),n(`div`,_,[a(f(R),{value:f(T)},{default:t(()=>[...o[7]||=[i(` Escape `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(C)},{default:t(()=>[...o[8]||=[i(` Shift `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(w)},{default:t(()=>[...o[9]||=[i(` Control `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(E)},{default:t(()=>[...o[10]||=[i(` Tab `,-1)]]),_:1},8,[`value`])]),n(`div`,v,[a(f(R),{value:f(j)},{default:t(()=>[...o[11]||=[i(` Vue `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(M)},{default:t(()=>[...o[12]||=[i(` Use `,-1)]]),_:1},8,[`value`])]),n(`div`,y,[a(f(R),{value:f(N)},{default:t(()=>[...o[13]||=[i(` Shift + Alt + I `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(P)},{default:t(()=>[...o[14]||=[i(` Shift + Alt + A `,-1)]]),_:1},8,[`value`]),a(f(R),{value:f(F)},{default:t(()=>[...o[15]||=[i(` Shift + Alt + N `,-1)]]),_:1},8,[`value`])]),n(`div`,b,[o[16]||=n(`div`,null,`Keys Pressed`,-1),n(`div`,x,[(c(!0),r(u,null,l(L.value,e=>(c(),r(`code`,{key:e,class:`font-mono`},m(e),1))),128))])])]),n(`img`,{class:p([`m-auto h-38 transform py-8 transition duration-500`,{"opacity-0":!f(M),"rotate-180":f(C)}])},null,2)]))}}),C=S;export{C as default}; \ No newline at end of file diff --git a/assets/use-magic-keys-DhP0UWsA.js b/assets/use-magic-keys-DhP0UWsA.js deleted file mode 100644 index ff984012d491f815b0b582f32cd370222032c9b6..0000000000000000000000000000000000000000 --- a/assets/use-magic-keys-DhP0UWsA.js +++ /dev/null @@ -1 +0,0 @@ -import{bZ as e,eC as t,eE as n,eF as r,eG as i,eI as a,eQ as o,eS as s,e_ as c,ev as l,ey as u,ez as d,f6 as f,f7 as p,fa as m}from"./index-DEhol03r.js";const h={class:`flex flex-col md:flex-row`},g={class:`flex justify-center gap-3`},_={class:`mt-3 flex justify-center gap-3`},v={class:`mt-3 flex justify-center gap-3`},y={class:`mt-3 flex flex-col items-center gap-3`},b={class:`mt-4 text-center`},x={class:`mt-2 min-h-1.5em flex justify-center space-x-1`};var S=i({__name:`use-magic-keys`,setup(S){let{shift:C,control:w,escape:T,tab:E,v:D,u:O,e:k,s:A,v_u_e:j,u_s_e:M,i_Shift_Alt:N,a_Shift_Alt:P,n_Shift_Alt:F,current:I}=e(),L=u(()=>Array.from(I)),R=i({props:{value:{type:Boolean,required:!0}},render(){return a(`div`,{class:[`font-mono px-4 py-2 rounded`,this.value?`opacity-100 text-primary bg-primary bg-opacity-15`:`opacity-50 bg-gray-600 bg-opacity-10 dark:bg-gray-400 dark:bg-opacity-10`]},this.$slots.default?.())}});return(e,i)=>(o(),t(`div`,h,[d(`img`,{class:p([`m-auto h-38 transform py-8 transition duration-500`,{"opacity-0":!f(j),"rotate-180":f(C)}])},null,2),d(`div`,null,[i[17]||=d(`div`,{class:`mb-5 mt-0 text-center`},` Press the following keys to test out `,-1),d(`div`,g,[r(f(R),{value:f(D)},{default:c(()=>[...i[0]||=[n(` V `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(O)},{default:c(()=>[...i[1]||=[n(` u `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(k)},{default:c(()=>[...i[2]||=[n(` e `,-1)]]),_:1},8,[`value`]),i[6]||=d(`div`,{class:`mx-1`},null,-1),r(f(R),{value:f(O)},{default:c(()=>[...i[3]||=[n(` U `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(A)},{default:c(()=>[...i[4]||=[n(` s `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(k)},{default:c(()=>[...i[5]||=[n(` e `,-1)]]),_:1},8,[`value`])]),d(`div`,_,[r(f(R),{value:f(T)},{default:c(()=>[...i[7]||=[n(` Escape `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(C)},{default:c(()=>[...i[8]||=[n(` Shift `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(w)},{default:c(()=>[...i[9]||=[n(` Control `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(E)},{default:c(()=>[...i[10]||=[n(` Tab `,-1)]]),_:1},8,[`value`])]),d(`div`,v,[r(f(R),{value:f(j)},{default:c(()=>[...i[11]||=[n(` Vue `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(M)},{default:c(()=>[...i[12]||=[n(` Use `,-1)]]),_:1},8,[`value`])]),d(`div`,y,[r(f(R),{value:f(N)},{default:c(()=>[...i[13]||=[n(` Shift + Alt + I `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(P)},{default:c(()=>[...i[14]||=[n(` Shift + Alt + A `,-1)]]),_:1},8,[`value`]),r(f(R),{value:f(F)},{default:c(()=>[...i[15]||=[n(` Shift + Alt + N `,-1)]]),_:1},8,[`value`])]),d(`div`,b,[i[16]||=d(`div`,null,`Keys Pressed`,-1),d(`div`,x,[(o(!0),t(l,null,s(L.value,e=>(o(),t(`code`,{key:e,class:`font-mono`},m(e),1))),128))])])]),d(`img`,{class:p([`m-auto h-38 transform py-8 transition duration-500`,{"opacity-0":!f(M),"rotate-180":f(C)}])},null,2)]))}}),C=S;export{C as default}; \ No newline at end of file diff --git a/assets/valibot-DBCeetIe-C4FF_AvC.js b/assets/valibot-DBCeetIe-C4FF_AvC.js deleted file mode 100644 index 7b05fdfc695b7f534f7dc15e015e23cd746f5c5f..0000000000000000000000000000000000000000 --- a/assets/valibot-DBCeetIe-C4FF_AvC.js +++ /dev/null @@ -1 +0,0 @@ -import{bN as e}from"./index-DEhol03r.js";import{e as t}from"./index-CAcLDIRJ-zzf_MFDO.js";const n=async()=>{let{toJsonSchema:n}=await t(e(()=>import(`./dist-sHRzaEBd.js`),[]),`@valibot/to-json-schema`);return e=>n(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file diff --git a/assets/valibot-DBCeetIe-Ds1XEwxb.js b/assets/valibot-DBCeetIe-Ds1XEwxb.js new file mode 100644 index 0000000000000000000000000000000000000000..0ad2e9aabdd87cb68e7e240dd7dfd182f0caaa2d --- /dev/null +++ b/assets/valibot-DBCeetIe-Ds1XEwxb.js @@ -0,0 +1 @@ +import{bO as e}from"./index-D3Bcbz9S.js";import{e as t}from"./index-CAcLDIRJ-D76TFz33.js";const n=async()=>{let{toJsonSchema:n}=await t(e(()=>import(`./dist-sHRzaEBd.js`),[]),`@valibot/to-json-schema`);return e=>n(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file diff --git a/assets/vibrant-C0NqPUU1.js b/assets/vibrant-C0NqPUU1.js deleted file mode 100644 index 7237c47f2ccf95d195e2d28ca794f5d07e117685..0000000000000000000000000000000000000000 --- a/assets/vibrant-C0NqPUU1.js +++ /dev/null @@ -1 +0,0 @@ -import"./BasicInputFile-DJjm73Ud.js";import{b as e}from"./InputFile-BfCG4dBd.js";import{eB as t,eC as n,eF as r,eG as i,eQ as a,eS as o,eY as s,ev as c,ez as l,f1 as u,f6 as d,f9 as f,fa as p}from"./index-DEhol03r.js";import{b as m}from"./browser-DlzSerl9.js";const h={flex:``,"flex-col":``,"gap-4":``},g={border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"w-full":``,flex:``,"gap-2":``,"rounded-lg":``,"p-4":``},_={border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"w-full":``,flex:``,"gap-2":``,"rounded-lg":``,"p-4":``},v={flex:``,"gap-2":``},y={"h-60":``,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"rounded-lg":``},b=[`src`];var x=i({__name:`vibrant`,setup(i){let x=u([]),S=u(),C=u([]),w=u([]);function T(e){let t=new Image;t.src=URL.createObjectURL(e),t.onload=E,S.value=t}async function E(){if(!S.value)return;let e=new m(S.value),t=await e.getPalette();C.value=Object.values(t).map(e=>e?.hex).filter(e=>typeof e==`string`),w.value=Object.values(t).map(e=>JSON.stringify(e))}return s(x,e=>{T(e[0])},{deep:!0}),(i,s)=>(a(),n(`div`,h,[l(`div`,g,[(a(!0),n(c,null,o(C.value,(e,t)=>(a(),n(`div`,{key:t,style:f({backgroundColor:e}),"size-20":``,"rounded-full":``},null,4))),128))]),l(`div`,_,p(w.value),1),l(`div`,v,[r(d(e),{modelValue:x.value,"onUpdate:modelValue":s[0]||=e=>x.value=e,"h-60":``,"w-full":``},null,8,[`modelValue`])]),l(`div`,y,[S.value?(a(),n(`img`,{key:0,src:S.value.src,"h-full":``,"w-full":``,"object-contain":``},null,8,b)):t(``,!0)])]))}}),S=x;export{S as default}; \ No newline at end of file diff --git a/assets/vibrant-CCIMjOyP.js b/assets/vibrant-CCIMjOyP.js new file mode 100644 index 0000000000000000000000000000000000000000..1f465d877d8cae82879c2de6e047fa62f9ccae64 --- /dev/null +++ b/assets/vibrant-CCIMjOyP.js @@ -0,0 +1 @@ +import"./BasicInputFile-DP8wr1m6.js";import{b as e}from"./InputFile-Bx1X59Ey.js";import{eA as t,eC as n,eD as r,eG as i,eH as a,eR as o,eT as s,eZ as c,ew as l,f2 as u,f7 as d,fa as f,fb as p}from"./index-D3Bcbz9S.js";import{b as m}from"./browser-DlzSerl9.js";const h={flex:``,"flex-col":``,"gap-4":``},g={border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"w-full":``,flex:``,"gap-2":``,"rounded-lg":``,"p-4":``},_={border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"w-full":``,flex:``,"gap-2":``,"rounded-lg":``,"p-4":``},v={flex:``,"gap-2":``},y={"h-60":``,border:`2 solid neutral-200 dark:neutral-800`,bg:`neutral-50 dark:neutral-900`,"rounded-lg":``},b=[`src`];var x=a({__name:`vibrant`,setup(a){let x=u([]),S=u(),C=u([]),w=u([]);function T(e){let t=new Image;t.src=URL.createObjectURL(e),t.onload=E,S.value=t}async function E(){if(!S.value)return;let e=new m(S.value),t=await e.getPalette();C.value=Object.values(t).map(e=>e?.hex).filter(e=>typeof e==`string`),w.value=Object.values(t).map(e=>JSON.stringify(e))}return c(x,e=>{T(e[0])},{deep:!0}),(a,c)=>(o(),r(`div`,h,[t(`div`,g,[(o(!0),r(l,null,s(C.value,(e,t)=>(o(),r(`div`,{key:t,style:f({backgroundColor:e}),"size-20":``,"rounded-full":``},null,4))),128))]),t(`div`,_,p(w.value),1),t(`div`,v,[i(d(e),{modelValue:x.value,"onUpdate:modelValue":c[0]||=e=>x.value=e,"h-60":``,"w-full":``},null,8,[`modelValue`])]),t(`div`,y,[S.value?(o(),r(`img`,{key:0,src:S.value.src,"h-full":``,"w-full":``,"object-contain":``},null,8,b)):n(``,!0)])]))}}),S=x;export{S as default}; \ No newline at end of file diff --git a/assets/volcengine-CeC_f95I.js b/assets/volcengine-o5fMggyS.js similarity index 60% rename from assets/volcengine-CeC_f95I.js rename to assets/volcengine-o5fMggyS.js index c0fedf059cb256649d367dfb94922fe50e6a4ce9..d8aea7c5472f9eb7b0076ea27dda30bc4bb9ec6c 100644 --- a/assets/volcengine-CeC_f95I.js +++ b/assets/volcengine-o5fMggyS.js @@ -1 +1 @@ -import{K as e,L as t,O as n,a4 as r,aW as i,aZ as a,ae as o,bP as s,eA as c,eF as l,eG as u,eO as d,eQ as f,eY as p,e_ as m,ey as h,ez as g,f1 as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b={flex:`~ col gap-4`},x=`volcengine`;var S=u({__name:`volcengine`,setup(u){let y=_(1),S=t(),C=r(),{providers:w}=s(C),{t:T}=o(),E=h({get:()=>(w.value[x]?.app)?.appId||``,set:e=>{w.value[x]||(w.value[x]={}),w.value[x].app={appId:e}}}),D=h(()=>!!w.value[x]?.apiKey),O=h(()=>S.availableVoices[x]||[]);async function k(e,t,n){let r=await C.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=C.getProviderConfig(x),a=i.model||`v1`;return await S.speech(r,a,e,t,{...i})}return d(async()=>{let e=C.getProviderConfig(x),t=C.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await S.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)}),p(y,async()=>{let e=C.getProviderConfig(x);e.audio||={},e.audio.speedRatio=y.value}),p([w,E],async()=>{let e=C.getProviderConfig(x),t=C.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await S.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(t,r)=>(f(),c(v(e),{"provider-id":x,"default-model":`v1`},{"basic-settings":m(()=>[g(`div`,b,[l(v(a),{modelValue:E.value,"onUpdate:modelValue":r[0]||=e=>E.value=e,label:v(T)(`settings.pages.providers.provider.volcengine.fields.field.appId.label`),description:v(T)(`settings.pages.providers.provider.volcengine.fields.field.appId.description`),required:``},null,8,[`modelValue`,`label`,`description`])])]),"voice-settings":m(()=>[l(v(i),{modelValue:y.value,"onUpdate:modelValue":r[1]||=e=>y.value=e,label:v(T)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:v(T)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:m(()=>[l(v(n),{"available-voices":O.value,"generate-speech":k,"api-key-configured":D.value,"default-text":`Hello! This is a test of the ElevenLabs voice synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof y==`function`&&y(S);var C=S;export{C as default}; \ No newline at end of file +import{K as e,L as t,O as n,a4 as r,aX as i,a_ as a,ae as o,bQ as s,e$ as c,eA as l,eB as u,eG as d,eH as f,eP as p,eR as m,eZ as h,ez as g,f2 as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";const b={flex:`~ col gap-4`},x=`volcengine`;var S=f({__name:`volcengine`,setup(f){let y=_(1),S=t(),C=r(),{providers:w}=s(C),{t:T}=o(),E=g({get:()=>(w.value[x]?.app)?.appId||``,set:e=>{w.value[x]||(w.value[x]={}),w.value[x].app={appId:e}}}),D=g(()=>!!w.value[x]?.apiKey),O=g(()=>S.availableVoices[x]||[]);async function k(e,t,n){let r=await C.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=C.getProviderConfig(x),a=i.model||`v1`;return await S.speech(r,a,e,t,{...i})}return p(async()=>{let e=C.getProviderConfig(x),t=C.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await S.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)}),h(y,async()=>{let e=C.getProviderConfig(x);e.audio||={},e.audio.speedRatio=y.value}),h([w,E],async()=>{let e=C.getProviderConfig(x),t=C.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await S.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(t,r)=>(m(),u(v(e),{"provider-id":x,"default-model":`v1`},{"basic-settings":c(()=>[l(`div`,b,[d(v(a),{modelValue:E.value,"onUpdate:modelValue":r[0]||=e=>E.value=e,label:v(T)(`settings.pages.providers.provider.volcengine.fields.field.appId.label`),description:v(T)(`settings.pages.providers.provider.volcengine.fields.field.appId.description`),required:``},null,8,[`modelValue`,`label`,`description`])])]),"voice-settings":c(()=>[d(v(i),{modelValue:y.value,"onUpdate:modelValue":r[1]||=e=>y.value=e,label:v(T)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:v(T)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:c(()=>[d(v(n),{"available-voices":O.value,"generate-speech":k,"api-key-configured":D.value,"default-text":`Hello! This is a test of the ElevenLabs voice synthesis.`},null,8,[`available-voices`,`api-key-configured`])]),_:1}))}});typeof y==`function`&&y(S);var C=S;export{C as default}; \ No newline at end of file diff --git a/assets/xai-V5fT9RBo.js b/assets/xai-CyydJLWz.js similarity index 62% rename from assets/xai-V5fT9RBo.js rename to assets/xai-CyydJLWz.js index 6c22dac659b95bd6d0bf55014601ba6fd80c1278..067197b03d0ec49ae2f5192261ad5c130036c1df 100644 --- a/assets/xai-V5fT9RBo.js +++ b/assets/xai-CyydJLWz.js @@ -1 +1 @@ -import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bM as c,bP as l,eA as u,eF as d,eG as f,eO as p,eQ as m,eY as h,e_ as g,ey as _,f6 as v}from"./index-DEhol03r.js";import{b as y}from"./route-block-Dc_s4AGN.js";var b=f({__name:`xai`,setup(f){let{t:y}=s(),b=c(),x=o(),{providers:S}=l(x),C=_(()=>x.getProviderMetadata(`xai`)),w=_({get:()=>S.value.xai?.apiKey||``,set:e=>{S.value.xai||(S.value.xai={}),S.value.xai.apiKey=e}}),T=_({get:()=>S.value.xai?.baseUrl||``,set:e=>{S.value.xai||(S.value.xai={}),S.value.xai.baseUrl=e}});p(()=>{x.initializeProvider(`xai`),w.value=S.value.xai?.apiKey||``,T.value=S.value.xai?.baseUrl||``}),h([w,T],()=>{S.value.xai={...S.value.xai,apiKey:w.value,baseUrl:T.value||``}});function E(){S.value.xai={...C.value?.defaultOptions}}return(o,s)=>(m(),u(v(t),{"provider-name":C.value?.localizedName,"provider-icon":C.value?.icon,"on-back":()=>v(b).back()},{default:g(()=>[d(v(n),null,{default:g(()=>[d(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":E},{default:g(()=>[d(v(e),{modelValue:w.value,"onUpdate:modelValue":s[0]||=e=>w.value=e,"provider-name":C.value?.localizedName,placeholder:`xai-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),d(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:g(()=>[d(v(i),{modelValue:T.value,"onUpdate:modelValue":s[1]||=e=>T.value=e,placeholder:`https://api.x.ai/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(b);var x=b;export{x as default}; \ No newline at end of file +import{$ as e,X as t,Y as n,Z as r,_ as i,a1 as a,a4 as o,ae as s,bN as c,bQ as l,e$ as u,eB as d,eG as f,eH as p,eP as m,eR as h,eZ as g,ez as _,f7 as v}from"./index-D3Bcbz9S.js";import{b as y}from"./route-block-Dc_s4AGN.js";var b=p({__name:`xai`,setup(p){let{t:y}=s(),b=c(),x=o(),{providers:S}=l(x),C=_(()=>x.getProviderMetadata(`xai`)),w=_({get:()=>S.value.xai?.apiKey||``,set:e=>{S.value.xai||(S.value.xai={}),S.value.xai.apiKey=e}}),T=_({get:()=>S.value.xai?.baseUrl||``,set:e=>{S.value.xai||(S.value.xai={}),S.value.xai.baseUrl=e}});m(()=>{x.initializeProvider(`xai`),w.value=S.value.xai?.apiKey||``,T.value=S.value.xai?.baseUrl||``}),g([w,T],()=>{S.value.xai={...S.value.xai,apiKey:w.value,baseUrl:T.value||``}});function E(){S.value.xai={...C.value?.defaultOptions}}return(o,s)=>(h(),d(v(t),{"provider-name":C.value?.localizedName,"provider-icon":C.value?.icon,"on-back":()=>v(b).back()},{default:u(()=>[f(v(n),null,{default:u(()=>[f(v(r),{title:v(y)(`settings.pages.providers.common.section.basic.title`),description:v(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":E},{default:u(()=>[f(v(e),{modelValue:w.value,"onUpdate:modelValue":s[0]||=e=>w.value=e,"provider-name":C.value?.localizedName,placeholder:`xai-...`},null,8,[`modelValue`,`provider-name`])]),_:1},8,[`title`,`description`]),f(v(a),{title:v(y)(`settings.pages.providers.common.section.advanced.title`)},{default:u(()=>[f(v(i),{modelValue:T.value,"onUpdate:modelValue":s[1]||=e=>T.value=e,placeholder:`https://api.x.ai/v1/`},null,8,[`modelValue`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`]))}});typeof y==`function`&&y(b);var x=b;export{x as default}; \ No newline at end of file diff --git a/assets/zod-Bw_60DVU-6ISn8BHm.js b/assets/zod-Bw_60DVU-BH3WFVfz.js similarity index 86% rename from assets/zod-Bw_60DVU-6ISn8BHm.js rename to assets/zod-Bw_60DVU-BH3WFVfz.js index 35aa06ed53b5f296f25e818ba611289765d19a86..b05d595f3976918da54d635afa2d68d55e5c53c9 100644 --- a/assets/zod-Bw_60DVU-6ISn8BHm.js +++ b/assets/zod-Bw_60DVU-BH3WFVfz.js @@ -1,2 +1,2 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/core-Dcq2mSSp.js","assets/core-C5TqIlxQ.js","assets/esm-B71VP927.js"])))=>i.map(i=>d[i]); -import{bN as e}from"./index-DEhol03r.js";import{b as t}from"./index-CAcLDIRJ-zzf_MFDO.js";const n=async()=>{let n=e=>{throw Error(`xsschema: Missing zod v4 dependencies "zod". see ${t}`)},r=e=>{throw Error(`xsschema: Missing zod v3 dependencies "zod-to-json-schema". see ${t}`)};try{let{toJSONSchema:t}=await e(async()=>{let{toJSONSchema:e}=await import(`./core-Dcq2mSSp.js`);return{toJSONSchema:e}},__vite__mapDeps([0,1]));n=t}catch(e){e instanceof Error&&console.error(e.message)}try{let{zodToJsonSchema:t}=await e(async()=>{let{zodToJsonSchema:e}=await import(`./esm-B71VP927.js`);return{zodToJsonSchema:e}},__vite__mapDeps([2,1]));r=t}catch(e){e instanceof Error&&console.error(e.message)}return async e=>`_zod`in e?n(e):r(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file +import{bO as e}from"./index-D3Bcbz9S.js";import{b as t}from"./index-CAcLDIRJ-D76TFz33.js";const n=async()=>{let n=e=>{throw Error(`xsschema: Missing zod v4 dependencies "zod". see ${t}`)},r=e=>{throw Error(`xsschema: Missing zod v3 dependencies "zod-to-json-schema". see ${t}`)};try{let{toJSONSchema:t}=await e(async()=>{let{toJSONSchema:e}=await import(`./core-Dcq2mSSp.js`);return{toJSONSchema:e}},__vite__mapDeps([0,1]));n=t}catch(e){e instanceof Error&&console.error(e.message)}try{let{zodToJsonSchema:t}=await e(async()=>{let{zodToJsonSchema:e}=await import(`./esm-B71VP927.js`);return{zodToJsonSchema:e}},__vite__mapDeps([2,1]));r=t}catch(e){e instanceof Error&&console.error(e.message)}return async e=>`_zod`in e?n(e):r(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file diff --git a/index.html b/index.html index 62317ae918c33b52d753e895d8da7fc41c79b03f..8863b2a7ef3b2caa5413c3131d58410bb9be43ac 100644 --- a/index.html +++ b/index.html @@ -32,8 +32,8 @@ src="/remote-assets/page-external-data/js/script.js" > - - + +
diff --git a/sw.js b/sw.js index de753793e8d5b89f33192c249cf46f75805dfdbf..605838e155682296438c96bd6349b70c67cfe236 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let s,l={};const e=(e,r)=>(e=new URL(e+".js",r).href,l[e]||new Promise(l=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=l,document.head.appendChild(s)}else s=e,importScripts(e),l()}).then(()=>{let s=l[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s}));self.define=(r,i)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(l[n])return;let u={};const a=s=>e(s,n),o={module:{uri:n},exports:u,require:a};l[n]=Promise.all(r.map(s=>o[s]||a(s))).then(s=>(i(...s),u))}}define(["./workbox-3aa584b4"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/__vite-browser-external-BOrN4rVf.js",revision:null},{url:"assets/__vite-optional-peer-dep_effect_xsschema-BPt5PS67.js",revision:null},{url:"assets/__vite-optional-peer-dep_sury_xsschema-C68usZSM.js",revision:null},{url:"assets/_...all_-DEVN9TnN.js",revision:null},{url:"assets/abap-9bpfglwS.js",revision:null},{url:"assets/actionscript-3-ociMAPfw.js",revision:null},{url:"assets/ada-D60N0wAC.js",revision:null},{url:"assets/airi-card-7HyqBFjt.js",revision:null},{url:"assets/airi-card-DBOtd0Wi.js",revision:null},{url:"assets/alibaba-cloud-model-studio-LoIwjmsd.js",revision:null},{url:"assets/andromeeda-DdLNEo5e.js",revision:null},{url:"assets/angular-html-CyJSR_gn.js",revision:null},{url:"assets/angular-html-RKLz1hEo.js",revision:null},{url:"assets/angular-ts-BI4FB_fP.js",revision:null},{url:"assets/AnimatedWave-CTK2lmxN.js",revision:null},{url:"assets/AnimatedWave-CVjfEg-M.css",revision:null},{url:"assets/anthropic-FxqJ0IEb.js",revision:null},{url:"assets/apache-BSx-mvDL.js",revision:null},{url:"assets/apex-DNlz8il8.js",revision:null},{url:"assets/apl-C6UhYxwp.js",revision:null},{url:"assets/applescript-Cnn30Ti0.js",revision:null},{url:"assets/ara-B86Dgxh4.js",revision:null},{url:"assets/arktype-C-GObzDh-BpxT6cs8.js",revision:null},{url:"assets/asciidoc-ybVjzsm4.js",revision:null},{url:"assets/asm-Dcw9Ny5m.js",revision:null},{url:"assets/astro-BDo1Nf1q.js",revision:null},{url:"assets/audio-CfD_q6gC.js",revision:null},{url:"assets/audio-record-BRIGq6_f.js",revision:null},{url:"assets/aurora-x-Dbzr9yQN.js",revision:null},{url:"assets/awk-BCRtMALa.js",revision:null},{url:"assets/ayu-dark-DT2ykFir.js",revision:null},{url:"assets/azure-ai-foundry-DnvAoQYB.js",revision:null},{url:"assets/background-gradient-blending-B88qVe8m.css",revision:null},{url:"assets/background-gradient-blending-DjcTayq6.js",revision:null},{url:"assets/background-removal-BsOGJCJr.js",revision:null},{url:"assets/ballerina-Dxu06ySH.js",revision:null},{url:"assets/Basic-D33XBiPI.js",revision:null},{url:"assets/BasicInputFile-DJjm73Ud.js",revision:null},{url:"assets/bat-C4k1NvZt.js",revision:null},{url:"assets/beancount-BamUO-hl.js",revision:null},{url:"assets/berry-BlxHAoH2.js",revision:null},{url:"assets/bibtex-DEVq7xTG.js",revision:null},{url:"assets/bicep-o62yijGv.js",revision:null},{url:"assets/blade-MM1ivGYS.js",revision:null},{url:"assets/browser-BADqPKKy.js",revision:null},{url:"assets/browser-DlzSerl9.js",revision:null},{url:"assets/bsl-_9kqzR--.js",revision:null},{url:"assets/c-1Hxpehpy.js",revision:null},{url:"assets/c-CC57zn34.js",revision:null},{url:"assets/cadence-CKllqIEj.js",revision:null},{url:"assets/cairo-Bl9HOvxV.js",revision:null},{url:"assets/CardCreate-CjMUomRq.js",revision:null},{url:"assets/CardCreate-PvY8y_OB.js",revision:null},{url:"assets/CardCreationDialog-D08nGLG1.js",revision:null},{url:"assets/CardCreationDialog-D2SzAqFy.css",revision:null},{url:"assets/CardCreationDialog-tosLd0cj.js",revision:null},{url:"assets/CardDetailDialog-C8TrFwnS.js",revision:null},{url:"assets/CardDetailDialog-CVyfYPDH.js",revision:null},{url:"assets/CardListItem-C9OC2Kwb.js",revision:null},{url:"assets/CardListItem-CqFaImDZ.js",revision:null},{url:"assets/catppuccin-frappe-CFL60cUb.js",revision:null},{url:"assets/catppuccin-latte-w1jtJ9Tq.js",revision:null},{url:"assets/catppuccin-macchiato--yIGohtf.js",revision:null},{url:"assets/catppuccin-mocha-3r_vlu6T.js",revision:null},{url:"assets/chat-Dh3koUdS.js",revision:null},{url:"assets/clarity-C1Xdeg_i.js",revision:null},{url:"assets/clojure-BmNDMrDJ.js",revision:null},{url:"assets/cloudflare-workers-ai-UXTCTqVp.js",revision:null},{url:"assets/cmake-BN_txmqT.js",revision:null},{url:"assets/cmake-yU80Of_C.js",revision:null},{url:"assets/cobol-CYoQMlYW.js",revision:null},{url:"assets/codeowners-BHhicgi1.js",revision:null},{url:"assets/codeql-C29lx3c8.js",revision:null},{url:"assets/coffee-KjboF6NF.js",revision:null},{url:"assets/color-scheme-CNUaazxA.js",revision:null},{url:"assets/color-scheme-xEXZhvva.css",revision:null},{url:"assets/common-lisp-DImrk-mG.js",revision:null},{url:"assets/composables-C5AKp2DU.js",revision:null},{url:"assets/consciousness-C62d2AXR.js",revision:null},{url:"assets/coq-C6XM8e7q.js",revision:null},{url:"assets/core-C5TqIlxQ.js",revision:null},{url:"assets/core-Dcq2mSSp.js",revision:null},{url:"assets/cpp-6uhgRkJM.js",revision:null},{url:"assets/cpp-CaNeIk_V.js",revision:null},{url:"assets/crystal-DJHo638b.js",revision:null},{url:"assets/csharp-CMLbDB-w.js",revision:null},{url:"assets/csharp-DgwtqtHY.js",revision:null},{url:"assets/css-CUmk-8yG.js",revision:null},{url:"assets/css-CXhRAQ2n.js",revision:null},{url:"assets/csv-BHoUcHm8.js",revision:null},{url:"assets/cue-HDaT_dTp.js",revision:null},{url:"assets/cypher-M3UrISUQ.js",revision:null},{url:"assets/d-btGIEij_.js",revision:null},{url:"assets/dark-plus-BG-k64xO.js",revision:null},{url:"assets/dart-DlvdYpMI.js",revision:null},{url:"assets/dax-Dcym1tZQ.js",revision:null},{url:"assets/deepseek-Clmy1xD5.js",revision:null},{url:"assets/default-browser-DBEOGewc.js",revision:null},{url:"assets/default-DOtQQCA0.js",revision:null},{url:"assets/default-node-CfSUWdLW.js",revision:null},{url:"assets/delays-CxQxu-mq.js",revision:null},{url:"assets/DeleteCardDialog-BzH_7FHZ.js",revision:null},{url:"assets/DeleteCardDialog-DZqTqZyu.js",revision:null},{url:"assets/desktop-BRltzlkZ.js",revision:null},{url:"assets/developer-MrKBC0bX.js",revision:null},{url:"assets/diff-Cy9g3Rky.js",revision:null},{url:"assets/diff-NHAsyJhv.js",revision:null},{url:"assets/dist-ByFcnk3K.js",revision:null},{url:"assets/dist-sHRzaEBd.js",revision:null},{url:"assets/docker-Dd3fVAQC.js",revision:null},{url:"assets/dotenv-CNNfYLdk.js",revision:null},{url:"assets/dracula-CxzDAQ5_.js",revision:null},{url:"assets/dracula-soft-C3_FmKIp.js",revision:null},{url:"assets/dream-maker-DbnhR-wH.js",revision:null},{url:"assets/duckdb-browser-coi.pthread.worker-WD1J30pV.js",revision:null},{url:"assets/duckdb-browser-coi.worker-Ji2I_m5s.js",revision:null},{url:"assets/duckdb-browser-eh.worker-B2xnDV1H.js",revision:null},{url:"assets/duckdb-browser-mvp.worker-DCs3_EjR.js",revision:null},{url:"assets/duckdb-coi-CSr8FQO4.wasm",revision:null},{url:"assets/duckdb-eh-BJOC5S4x.wasm",revision:null},{url:"assets/duckdb-mvp-8HYqhb4i.wasm",revision:null},{url:"assets/duckdb-mvp-DkPAVKN8.js",revision:null},{url:"assets/edge-p-ARpia1.js",revision:null},{url:"assets/effect--zg3C1LQ-vwsYjMdd.js",revision:null},{url:"assets/elevenlabs-By1-etWk.js",revision:null},{url:"assets/elixir-CJLMrTRs.js",revision:null},{url:"assets/elm-BMVz0nRN.js",revision:null},{url:"assets/emacs-lisp-bSNO03KB.js",revision:null},{url:"assets/emotions-CfSs7BF-.js",revision:null},{url:"assets/erb-BbmM0IYl.js",revision:null},{url:"assets/erlang-B14SbhrR.js",revision:null},{url:"assets/esm-B71VP927.js",revision:null},{url:"assets/everforest-dark-BhV8t-2H.js",revision:null},{url:"assets/everforest-light-C9AGdBc7.js",revision:null},{url:"assets/featherless-ai-EUoqRwKj.js",revision:null},{url:"assets/fennel-M13aQxW4.js",revision:null},{url:"assets/filter-message-Bsrrp0SL.js",revision:null},{url:"assets/fireworks-ai-uNnJ5PQ2.js",revision:null},{url:"assets/fish-BBDJbWqF.js",revision:null},{url:"assets/fluent-AxL4iS6p.js",revision:null},{url:"assets/fortran-fixed-form-bw89GeE4.js",revision:null},{url:"assets/fortran-free-form-BdnWo7aQ.js",revision:null},{url:"assets/fortran-free-form-CBlLX79G.js",revision:null},{url:"assets/fsharp-Hgh5PYQA.js",revision:null},{url:"assets/gdresource-CUzI-cUQ.js",revision:null},{url:"assets/gdscript-Bc_8ex5_.js",revision:null},{url:"assets/gdscript-F11G2579.js",revision:null},{url:"assets/gdshader-DY7pnO4l.js",revision:null},{url:"assets/gdshader-sYAq8WNl.js",revision:null},{url:"assets/general-CKI4PH85.js",revision:null},{url:"assets/genie-DV4QnefI.js",revision:null},{url:"assets/gesture-circle-BQ-DUzun.js",revision:null},{url:"assets/gherkin-S4lUq6S4.js",revision:null},{url:"assets/git-commit-BpZ9iDq0.js",revision:null},{url:"assets/git-rebase-B7h1d5d5.js",revision:null},{url:"assets/github-dark-default-BYQei4yh.js",revision:null},{url:"assets/github-dark-dimmed-Bvmsnx6B.js",revision:null},{url:"assets/github-dark-high-contrast-6YcGML2A.js",revision:null},{url:"assets/github-dark-k7bIqKE6.js",revision:null},{url:"assets/github-light-B9Xj5QvQ.js",revision:null},{url:"assets/github-light-default-DF8zFKIh.js",revision:null},{url:"assets/github-light-high-contrast-DHPldgid.js",revision:null},{url:"assets/gleam-DO4VvLeC.js",revision:null},{url:"assets/glimmer-js-Bu85AOc8.js",revision:null},{url:"assets/glimmer-ts-C-Kl47e9.js",revision:null},{url:"assets/glsl-DmtRAr4x.js",revision:null},{url:"assets/glsl-DYKkOYZW.js",revision:null},{url:"assets/gnuplot-D8I-EhIQ.js",revision:null},{url:"assets/go-C__IfQT1.js",revision:null},{url:"assets/go-Dd-p9qS6.js",revision:null},{url:"assets/google-generative-ai-Dm_xZ9XG.js",revision:null},{url:"assets/graphql-CEQ_sM75.js",revision:null},{url:"assets/graphql-Dqagbjjq.js",revision:null},{url:"assets/groovy-DM-nO1EZ.js",revision:null},{url:"assets/gruvbox-dark-hard-BxyGg139.js",revision:null},{url:"assets/gruvbox-dark-medium-DuoX-sP4.js",revision:null},{url:"assets/gruvbox-dark-soft-15EOOiCQ.js",revision:null},{url:"assets/gruvbox-light-hard-Dd1yAQsj.js",revision:null},{url:"assets/gruvbox-light-medium-nzFRFK9T.js",revision:null},{url:"assets/gruvbox-light-soft-DnUWeEb_.js",revision:null},{url:"assets/hack-Bu92NL2m.js",revision:null},{url:"assets/haml-DYU5Mqin.js",revision:null},{url:"assets/haml-xkiyVEW7.js",revision:null},{url:"assets/handlebars-DKMgiIbq.js",revision:null},{url:"assets/haskell-CEAyRRw1.js",revision:null},{url:"assets/haxe-CKt-jgKz.js",revision:null},{url:"assets/haxe-ZR_PTdzp.js",revision:null},{url:"assets/hcl-DLKPwsgV.js",revision:null},{url:"assets/HeaderLink-4n3ShASi.css",revision:null},{url:"assets/HeaderLink-CwKWoudF.js",revision:null},{url:"assets/hearing-EgcjzOdT.js",revision:null},{url:"assets/hearing-pH404Jfn.js",revision:null},{url:"assets/hjson-XvYI7Njd.js",revision:null},{url:"assets/hlsl-B3snUh6r.js",revision:null},{url:"assets/hlsl-BlKseEMV.js",revision:null},{url:"assets/home-DDpShUXq.js",revision:null},{url:"assets/houston-DHXmbLxv.js",revision:null},{url:"assets/html-BZoqaXf0.js",revision:null},{url:"assets/html-ClvIGx7Q.js",revision:null},{url:"assets/html-derivative-B47xzc0X.js",revision:null},{url:"assets/html-derivative-DKc8xbJR.js",revision:null},{url:"assets/http-MSHrrwRY.js",revision:null},{url:"assets/hxml-Dh5DeIFj.js",revision:null},{url:"assets/hy-YXpPDnHe.js",revision:null},{url:"assets/ibl-CbBD07sa.js",revision:null},{url:"assets/icon-animation-B3otQp3y.js",revision:null},{url:"assets/IconAnimation-C0TBccB2.js",revision:null},{url:"assets/image--p_SlIoG.js",revision:null},{url:"assets/image-BhuwcwI9.css",revision:null},{url:"assets/imba-Dz_HKeKr.js",revision:null},{url:"assets/import-url-browser-agSP1LkN.js",revision:null},{url:"assets/import-url-browser-CQxpIBxI.js",revision:null},{url:"assets/import-url-node-DsdDfn-V.js",revision:null},{url:"assets/index-Bg8-TZ3F.css",revision:null},{url:"assets/index-CAcLDIRJ-zzf_MFDO.js",revision:null},{url:"assets/index-DEhol03r.js",revision:null},{url:"assets/index-tts-vllm-DiOOxY2G.js",revision:null},{url:"assets/ini-Dcm6qhk1.js",revision:null},{url:"assets/InputFile-BfCG4dBd.js",revision:null},{url:"assets/java-DGaayzZX.js",revision:null},{url:"assets/java-Z7KQ3nEV.js",revision:null},{url:"assets/javascript-BHV0xWwZ.js",revision:null},{url:"assets/javascript-CoFC1LC_.js",revision:null},{url:"assets/jinja-DExrtk5M.js",revision:null},{url:"assets/jison-QYFXoTsf.js",revision:null},{url:"assets/js/CubismSdkForWeb-5-r.3/Core/live2dcubismcore.min.js",revision:null},{url:"assets/json-BECfSVJ5.js",revision:null},{url:"assets/json-Bl0PyjOe.js",revision:null},{url:"assets/json5-Dk8HYSkk.js",revision:null},{url:"assets/jsonc-OZJKK0dB.js",revision:null},{url:"assets/jsonl-BPcKmbkE.js",revision:null},{url:"assets/jsonnet-VWv-jk-X.js",revision:null},{url:"assets/jssm-BNoG84vH.js",revision:null},{url:"assets/jsx-BX69MavX.js",revision:null},{url:"assets/jsx-Ke7R2tcQ.js",revision:null},{url:"assets/julia-CFG6gbIc.js",revision:null},{url:"assets/kanagawa-dragon-BWpk9Mq4.js",revision:null},{url:"assets/kanagawa-lotus-CKLe8F_4.js",revision:null},{url:"assets/kanagawa-wave-CnXqIWol.js",revision:null},{url:"assets/kotlin-DC198Zdv.js",revision:null},{url:"assets/kusto-TKpXneLP.js",revision:null},{url:"assets/laserwave-WVKNUQvj.js",revision:null},{url:"assets/latex-JBMJRhlk.js",revision:null},{url:"assets/lean-Bcrl2rE4.js",revision:null},{url:"assets/less-a0nnQRrN.js",revision:null},{url:"assets/less-BDKf7FXw.js",revision:null},{url:"assets/light-plus-DPoHPF0_.js",revision:null},{url:"assets/liquid-BffiuKJa.js",revision:null},{url:"assets/llvm-MaRTjixP.js",revision:null},{url:"assets/lm-studio-BlGolAfa.js",revision:null},{url:"assets/log-CoOxsRlW.js",revision:null},{url:"assets/logo-DnzSrnoG.js",revision:null},{url:"assets/lua-BgW16NFn.js",revision:null},{url:"assets/lua-DceDs3NN.js",revision:null},{url:"assets/luau-EMYoTjNx.js",revision:null},{url:"assets/make-fLKYEh-f.js",revision:null},{url:"assets/markdown-DZLiWcN8.js",revision:null},{url:"assets/markdown-YcIGwGaY.js",revision:null},{url:"assets/marko-BuqmDWiT.js",revision:null},{url:"assets/material-theme-CXDd0Fw8.js",revision:null},{url:"assets/material-theme-darker-B0Net00K.js",revision:null},{url:"assets/material-theme-lighter-B2dw6nsk.js",revision:null},{url:"assets/material-theme-ocean-B96WbQ2Z.js",revision:null},{url:"assets/material-theme-palenight-CDmqL87N.js",revision:null},{url:"assets/matlab-BuphcKqY.js",revision:null},{url:"assets/mdc-XZ5XS5G8.js",revision:null},{url:"assets/mdx-C46OAT8W.js",revision:null},{url:"assets/memory-BFWaJKIi.js",revision:null},{url:"assets/memory-long-term-B3xB1Aa2.js",revision:null},{url:"assets/memory-short-term-Bfu17Wi_.js",revision:null},{url:"assets/merge-D5ueGMzg.js",revision:null},{url:"assets/mermaid-DVqdMRwM.js",revision:null},{url:"assets/messages-BAsmsxLz.js",revision:null},{url:"assets/microsoft-speech-B96W7j45.js",revision:null},{url:"assets/min-dark-DhXoLJQp.js",revision:null},{url:"assets/min-light-BMmNCMwj.js",revision:null},{url:"assets/mipsasm-Cpca58h_.js",revision:null},{url:"assets/mistral-ai-7pN66eWP.js",revision:null},{url:"assets/models-B-HwYTDm.js",revision:null},{url:"assets/modelscope-B_MqBJUD.js",revision:null},{url:"assets/modules-C3qcmhYO.js",revision:null},{url:"assets/mojo-ZmBy9VXI.js",revision:null},{url:"assets/monokai-D9qSSba5.js",revision:null},{url:"assets/moonshot-ai-MEHmQzUr.js",revision:null},{url:"assets/move-DarwfKOa.js",revision:null},{url:"assets/narrat-CVQxXxVP.js",revision:null},{url:"assets/nextflow-DpFhU96a.js",revision:null},{url:"assets/nginx-B9yym_4p.js",revision:null},{url:"assets/night-owl-8Ep6hr5W.js",revision:null},{url:"assets/nim-DwEagdh2.js",revision:null},{url:"assets/nix-M9WyUlxt.js",revision:null},{url:"assets/nord-CJQk-niI.js",revision:null},{url:"assets/novita-ai-Dy87Q0Fq.js",revision:null},{url:"assets/nushell-CzSZjfwb.js",revision:null},{url:"assets/objective-c-DCVzCT35.js",revision:null},{url:"assets/objective-cpp-C0Ag01Ux.js",revision:null},{url:"assets/ocaml-eLzecdzY.js",revision:null},{url:"assets/ollama-B6ruE_gL.js",revision:null},{url:"assets/one-dark-pro-BTKhVGVu.js",revision:null},{url:"assets/one-light-_OzQUqrV.js",revision:null},{url:"assets/openai-audio-speech-CkVCP_hU.js",revision:null},{url:"assets/openai-audio-transcription-Cf4-ZOqB.js",revision:null},{url:"assets/openai-compatible-audio-speech-MBU1m6DU.js",revision:null},{url:"assets/openai-compatible-audio-transcription-DM5ex1XJ.js",revision:null},{url:"assets/openai-compatible-CFTIqNWo.js",revision:null},{url:"assets/openai-V9v0fYc-.js",revision:null},{url:"assets/openrouter-ai-BV_8ZWp-.js",revision:null},{url:"assets/ort-wasm-simd-threaded.jsep-B0T3yYHD.wasm",revision:null},{url:"assets/pages-B0nDC2KO.js",revision:null},{url:"assets/pascal-D41AWha0.js",revision:null},{url:"assets/perl-C2GmwEkq.js",revision:null},{url:"assets/php-DoTdIXPE.js",revision:null},{url:"assets/php-DwWkh3Qy.js",revision:null},{url:"assets/plain-B2G-onti.js",revision:null},{url:"assets/plastic-9PBwuRma.js",revision:null},{url:"assets/player2-4aZfBz8x.js",revision:null},{url:"assets/player2-speech-dVoWj_im.js",revision:null},{url:"assets/plsql-f5gfIECe.js",revision:null},{url:"assets/po-CmWhBzYk.js",revision:null},{url:"assets/poimandres-C1hxasus.js",revision:null},{url:"assets/polar-DjNzWtli.js",revision:null},{url:"assets/polaroid-D8Y-SKEd.js",revision:null},{url:"assets/postcss-B4kqGpKO.js",revision:null},{url:"assets/postcss-DpZPffaJ.js",revision:null},{url:"assets/powerquery-IpsgmOrB.js",revision:null},{url:"assets/powershell-B_lnqR6S.js",revision:null},{url:"assets/prisma-Bwvc2M8c.js",revision:null},{url:"assets/process.worklet-DatbHzOU.js",revision:null},{url:"assets/prolog-V5VOXzGk.js",revision:null},{url:"assets/proto-SwiFBrSx.js",revision:null},{url:"assets/providers-hE0BXvIH.js",revision:null},{url:"assets/pug-R8zhNC2_.js",revision:null},{url:"assets/puppet-qmkJPQb2.js",revision:null},{url:"assets/purescript-Dht7UX7U.js",revision:null},{url:"assets/python-DnEQF7uk.js",revision:null},{url:"assets/python-ij4LvnkA.js",revision:null},{url:"assets/qml-BVEv2gLp.js",revision:null},{url:"assets/qmldir-SRZyIQXX.js",revision:null},{url:"assets/qss-BV_bwhiH.js",revision:null},{url:"assets/queue-D-a0bA5k.js",revision:null},{url:"assets/r-Cfjf0OZu.js",revision:null},{url:"assets/r-CI_8QuDg.js",revision:null},{url:"assets/racket--ZfcoBNh.js",revision:null},{url:"assets/raku-Cf9Hlbz1.js",revision:null},{url:"assets/razor-BXrpcGrf.js",revision:null},{url:"assets/red-FtpQZApq.js",revision:null},{url:"assets/reg-N6IvIMTc.js",revision:null},{url:"assets/regexp-CEd_PNob.js",revision:null},{url:"assets/regexp-CsWoiU4Y.js",revision:null},{url:"assets/rel-DdTN8LaS.js",revision:null},{url:"assets/riscv-DP3cWieq.js",revision:null},{url:"assets/rose-pine-dawn-DRU2sbgU.js",revision:null},{url:"assets/rose-pine-DUL6IgMk.js",revision:null},{url:"assets/rose-pine-moon-B_Fk4BIm.js",revision:null},{url:"assets/route-block-Dc_s4AGN.js",revision:null},{url:"assets/rst-BbMmENyw.js",revision:null},{url:"assets/ruby-DnW9M3dC.js",revision:null},{url:"assets/ruby-HnI1a5UD.js",revision:null},{url:"assets/rust-DSYkP88Y.js",revision:null},{url:"assets/sas-Bbqf5T6B.js",revision:null},{url:"assets/sass-CXym6Moq.js",revision:null},{url:"assets/scala-C0Qq-8oa.js",revision:null},{url:"assets/scene-LwMjiDcr.js",revision:null},{url:"assets/Scenes-0TJqCS-r.js",revision:null},{url:"assets/scheme-DSdb-X-2.js",revision:null},{url:"assets/scss-Dj-dd4pv.js",revision:null},{url:"assets/scss-DWKy_Vxy.js",revision:null},{url:"assets/sdbl-DiSKCflq.js",revision:null},{url:"assets/sdbl-ykict4uj.js",revision:null},{url:"assets/settings-B2H4CbgS.js",revision:null},{url:"assets/settings-BAOMmq-8.js",revision:null},{url:"assets/shaderlab-niXJj9LB.js",revision:null},{url:"assets/shellscript-CTDFJZE_.js",revision:null},{url:"assets/shellscript-QmjC9N2f.js",revision:null},{url:"assets/shellsession-BMRZY_iB.js",revision:null},{url:"assets/slack-dark-CqrNX_ip.js",revision:null},{url:"assets/slack-ochin-Beh97w-u.js",revision:null},{url:"assets/smalltalk-xm9bX9_z.js",revision:null},{url:"assets/snazzy-light-jcvulp_1.js",revision:null},{url:"assets/solarized-dark-DSkUIuTh.js",revision:null},{url:"assets/solarized-light-B2N6scgo.js",revision:null},{url:"assets/solidity-B7n7t9rj.js",revision:null},{url:"assets/soy-oogrYg0r.js",revision:null},{url:"assets/sparql-CZdnCkl8.js",revision:null},{url:"assets/speech-CUBOmkDj.js",revision:null},{url:"assets/splunk-BizC9c7t.js",revision:null},{url:"assets/sql-Bpxe3xlr.js",revision:null},{url:"assets/sql-YT8d_55s.js",revision:null},{url:"assets/ssh-config-Da40kmk_.js",revision:null},{url:"assets/stage-B7OEWfD5.js",revision:null},{url:"assets/stage-rPzuR0ET.js",revision:null},{url:"assets/stata-DKoKZwk6.js",revision:null},{url:"assets/stylus-BfFgcVOV.js",revision:null},{url:"assets/stylus-C1TiPOGE.js",revision:null},{url:"assets/sury-s6Akl-oc-BVkg7-7i.js",revision:null},{url:"assets/svelte-BCyo1H28.js",revision:null},{url:"assets/swift-BE5EM2-N.js",revision:null},{url:"assets/synthwave-84-CN18Oagb.js",revision:null},{url:"assets/system-CqsiZkZC.js",revision:null},{url:"assets/system-verilog-CSbPS08G.js",revision:null},{url:"assets/systemd-Ddl13SOF.js",revision:null},{url:"assets/talonscript-C6lAZ7bW.js",revision:null},{url:"assets/tasl-BenQQHgt.js",revision:null},{url:"assets/tcl-VHvCQlLP.js",revision:null},{url:"assets/templ-UHustcM7.js",revision:null},{url:"assets/terraform-DOOPQykp.js",revision:null},{url:"assets/tex-BuVSzSIb.js",revision:null},{url:"assets/tex-CtKYC-ji.js",revision:null},{url:"assets/Textarea-B_NArpfq.js",revision:null},{url:"assets/theme-color-D2aK6AFb.js",revision:null},{url:"assets/together-ai-buYw6IAc.js",revision:null},{url:"assets/tokyo-night-DmosIk2J.js",revision:null},{url:"assets/toml-CRyvn5e6.js",revision:null},{url:"assets/transformers.web-0yVxjCoi.js",revision:null},{url:"assets/ts-tags-BtFLKwfC.js",revision:null},{url:"assets/tsv-CCGU3WlK.js",revision:null},{url:"assets/tsx-5zUN_IgM.js",revision:null},{url:"assets/tsx-COMncpjM.js",revision:null},{url:"assets/turtle-1Y15hDNk.js",revision:null},{url:"assets/turtle-CrbhJFON.js",revision:null},{url:"assets/twig-CpPqtXbv.js",revision:null},{url:"assets/typescript-BOZhZjjY.js",revision:null},{url:"assets/typescript-Ca-c9hkl.js",revision:null},{url:"assets/typespec-Bh5jd8rz.js",revision:null},{url:"assets/typst-C6MhiFK2.js",revision:null},{url:"assets/use-magic-keys-DhP0UWsA.js",revision:null},{url:"assets/v-CXlxc9u3.js",revision:null},{url:"assets/vala-BTPBaKbS.js",revision:null},{url:"assets/valibot-DBCeetIe-C4FF_AvC.js",revision:null},{url:"assets/vb-CzLsWrEq.js",revision:null},{url:"assets/verilog-C_vuNZ2r.js",revision:null},{url:"assets/vesper-BoVbJQEj.js",revision:null},{url:"assets/vhdl-B68Sbb2s.js",revision:null},{url:"assets/vibrant-C0NqPUU1.js",revision:null},{url:"assets/viml-nrwT1ftb.js",revision:null},{url:"assets/vitesse-black-CaxAW-AQ.js",revision:null},{url:"assets/vitesse-dark-DDmm5cB_.js",revision:null},{url:"assets/vitesse-light-DmqsYjE6.js",revision:null},{url:"assets/volcengine-CeC_f95I.js",revision:null},{url:"assets/vue-C_Xq0ko2.js",revision:null},{url:"assets/vue-DCM-hQ7D.js",revision:null},{url:"assets/vue-html-DKDWA0fy.js",revision:null},{url:"assets/vue-vine-Doq9x-V7.js",revision:null},{url:"assets/vyper-yEAtMWY8.js",revision:null},{url:"assets/wasm-CDMn1mOJ.js",revision:null},{url:"assets/wasm-D716BpP0.js",revision:null},{url:"assets/wenyan-DQ_GJzFi.js",revision:null},{url:"assets/wgsl-C4r57m6o.js",revision:null},{url:"assets/wikitext-CSgQLfV4.js",revision:null},{url:"assets/wit-F-L0h1o6.js",revision:null},{url:"assets/wolfram-CjWkRarV.js",revision:null},{url:"assets/worker-esGbNfYx.js",revision:null},{url:"assets/xai-V5fT9RBo.js",revision:null},{url:"assets/xml-C--Xrksk.js",revision:null},{url:"assets/xml-wHYwXszZ.js",revision:null},{url:"assets/xsl-7XpO9mGM.js",revision:null},{url:"assets/yaml-Bsm5rW0k.js",revision:null},{url:"assets/yaml-C_c7RV0m.js",revision:null},{url:"assets/zenscript-Os3j9H_R.js",revision:null},{url:"assets/zig-B93JMj6E.js",revision:null},{url:"assets/zod-Bw_60DVU-6ISn8BHm.js",revision:null},{url:"index.html",revision:"a72d348bf6903ddaea79873196bfef93"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"apple-touch-icon.png",revision:"b41f3c1ba3c98364c640fe2b7348bd39"},{url:"favicon.svg",revision:"47d50a7bc31b26d14f3895982906935f"},{url:"maskable_icon_x192.png",revision:"a6ed025fb1491e8b498c9f4c0064d190"},{url:"maskable_icon_x512.png",revision:"b7b2c2d9bda88c74a295695c8a0e7468"},{url:"web-app-manifest-192x192.png",revision:"c9731148ea6befa78a495f63536c82eb"},{url:"web-app-manifest-512x512.png",revision:"bcae855d5ff588b682314fe1c6e530f0"},{url:"manifest.webmanifest",revision:"0a5a207cc5b76af4bd35f0b587dd1902"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/docs\//,/^\/ui\//,/^\/remote-assets\//,/^\/api\//]}))}); +if(!self.define){let s,l={};const e=(e,r)=>(e=new URL(e+".js",r).href,l[e]||new Promise(l=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=l,document.head.appendChild(s)}else s=e,importScripts(e),l()}).then(()=>{let s=l[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s}));self.define=(r,i)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(l[n])return;let u={};const a=s=>e(s,n),o={module:{uri:n},exports:u,require:a};l[n]=Promise.all(r.map(s=>o[s]||a(s))).then(s=>(i(...s),u))}}define(["./workbox-3aa584b4"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/__vite-browser-external-CplUCAoG.js",revision:null},{url:"assets/__vite-optional-peer-dep_effect_xsschema-BPt5PS67.js",revision:null},{url:"assets/__vite-optional-peer-dep_sury_xsschema-C68usZSM.js",revision:null},{url:"assets/_...all_-C1wfaneY.js",revision:null},{url:"assets/abap-9bpfglwS.js",revision:null},{url:"assets/actionscript-3-ociMAPfw.js",revision:null},{url:"assets/ada-D60N0wAC.js",revision:null},{url:"assets/airi-card-BjmJX0Df.js",revision:null},{url:"assets/airi-card-CObXZhjH.js",revision:null},{url:"assets/alibaba-cloud-model-studio-ey2Rpach.js",revision:null},{url:"assets/andromeeda-DdLNEo5e.js",revision:null},{url:"assets/angular-html-CyJSR_gn.js",revision:null},{url:"assets/angular-html-RKLz1hEo.js",revision:null},{url:"assets/angular-ts-BI4FB_fP.js",revision:null},{url:"assets/AnimatedWave-CVjfEg-M.css",revision:null},{url:"assets/AnimatedWave-D3VizsVF.js",revision:null},{url:"assets/anthropic-BA1O0Jc0.js",revision:null},{url:"assets/apache-BSx-mvDL.js",revision:null},{url:"assets/apex-DNlz8il8.js",revision:null},{url:"assets/apl-C6UhYxwp.js",revision:null},{url:"assets/applescript-Cnn30Ti0.js",revision:null},{url:"assets/ara-B86Dgxh4.js",revision:null},{url:"assets/arktype-C-GObzDh-BpxT6cs8.js",revision:null},{url:"assets/asciidoc-ybVjzsm4.js",revision:null},{url:"assets/asm-Dcw9Ny5m.js",revision:null},{url:"assets/astro-BDo1Nf1q.js",revision:null},{url:"assets/audio-CRFmA9nd.js",revision:null},{url:"assets/audio-record-DY40XcIB.js",revision:null},{url:"assets/aurora-x-Dbzr9yQN.js",revision:null},{url:"assets/awk-BCRtMALa.js",revision:null},{url:"assets/ayu-dark-DT2ykFir.js",revision:null},{url:"assets/azure-ai-foundry-C1o9ptFu.js",revision:null},{url:"assets/background-gradient-blending-B88qVe8m.css",revision:null},{url:"assets/background-gradient-blending-COcEL_ul.js",revision:null},{url:"assets/background-removal-B9nXYjVG.js",revision:null},{url:"assets/ballerina-Dxu06ySH.js",revision:null},{url:"assets/Basic-IbpirTdD.js",revision:null},{url:"assets/BasicInputFile-DP8wr1m6.js",revision:null},{url:"assets/bat-C4k1NvZt.js",revision:null},{url:"assets/beancount-BamUO-hl.js",revision:null},{url:"assets/berry-BlxHAoH2.js",revision:null},{url:"assets/bibtex-DEVq7xTG.js",revision:null},{url:"assets/bicep-o62yijGv.js",revision:null},{url:"assets/blade-MM1ivGYS.js",revision:null},{url:"assets/browser-BADqPKKy.js",revision:null},{url:"assets/browser-DlzSerl9.js",revision:null},{url:"assets/bsl-_9kqzR--.js",revision:null},{url:"assets/c-1Hxpehpy.js",revision:null},{url:"assets/c-CC57zn34.js",revision:null},{url:"assets/cadence-CKllqIEj.js",revision:null},{url:"assets/cairo-Bl9HOvxV.js",revision:null},{url:"assets/CardCreate-Dr2_R_p4.js",revision:null},{url:"assets/CardCreate-kEgCBYa3.js",revision:null},{url:"assets/CardCreationDialog-D2SzAqFy.css",revision:null},{url:"assets/CardCreationDialog-K2uIVETx.js",revision:null},{url:"assets/CardCreationDialog-nXxRyLy1.js",revision:null},{url:"assets/CardDetailDialog-Bhvhe9Mf.js",revision:null},{url:"assets/CardDetailDialog-Do3bK3_b.js",revision:null},{url:"assets/CardListItem-CLD9xvv2.js",revision:null},{url:"assets/CardListItem-qNOu7TJN.js",revision:null},{url:"assets/catppuccin-frappe-CFL60cUb.js",revision:null},{url:"assets/catppuccin-latte-w1jtJ9Tq.js",revision:null},{url:"assets/catppuccin-macchiato--yIGohtf.js",revision:null},{url:"assets/catppuccin-mocha-3r_vlu6T.js",revision:null},{url:"assets/chat-Cp9xu-SE.js",revision:null},{url:"assets/clarity-C1Xdeg_i.js",revision:null},{url:"assets/clojure-BmNDMrDJ.js",revision:null},{url:"assets/cloudflare-workers-ai-CdzoiEHd.js",revision:null},{url:"assets/cmake-BN_txmqT.js",revision:null},{url:"assets/cmake-yU80Of_C.js",revision:null},{url:"assets/cobol-CYoQMlYW.js",revision:null},{url:"assets/codeowners-BHhicgi1.js",revision:null},{url:"assets/codeql-C29lx3c8.js",revision:null},{url:"assets/coffee-KjboF6NF.js",revision:null},{url:"assets/color-scheme-BElIJRed.js",revision:null},{url:"assets/color-scheme-xEXZhvva.css",revision:null},{url:"assets/common-lisp-DImrk-mG.js",revision:null},{url:"assets/composables-Tp0cITw9.js",revision:null},{url:"assets/consciousness-mFeV5_YA.js",revision:null},{url:"assets/coq-C6XM8e7q.js",revision:null},{url:"assets/core-C5TqIlxQ.js",revision:null},{url:"assets/core-Dcq2mSSp.js",revision:null},{url:"assets/cpp-6uhgRkJM.js",revision:null},{url:"assets/cpp-CaNeIk_V.js",revision:null},{url:"assets/crystal-DJHo638b.js",revision:null},{url:"assets/csharp-CMLbDB-w.js",revision:null},{url:"assets/csharp-DgwtqtHY.js",revision:null},{url:"assets/css-CUmk-8yG.js",revision:null},{url:"assets/css-CXhRAQ2n.js",revision:null},{url:"assets/csv-BHoUcHm8.js",revision:null},{url:"assets/cue-HDaT_dTp.js",revision:null},{url:"assets/cypher-M3UrISUQ.js",revision:null},{url:"assets/d-btGIEij_.js",revision:null},{url:"assets/dark-plus-BG-k64xO.js",revision:null},{url:"assets/dart-DlvdYpMI.js",revision:null},{url:"assets/dax-Dcym1tZQ.js",revision:null},{url:"assets/deepseek-CbhRF9iO.js",revision:null},{url:"assets/default-browser-DBEOGewc.js",revision:null},{url:"assets/default-Dt3jyffF.js",revision:null},{url:"assets/default-node-BX8tyNLs.js",revision:null},{url:"assets/delays-R-jzJk-u.js",revision:null},{url:"assets/DeleteCardDialog-Dhf89jrW.js",revision:null},{url:"assets/DeleteCardDialog-DnHrNX0U.js",revision:null},{url:"assets/desktop-BRltzlkZ.js",revision:null},{url:"assets/developer-lge657PF.js",revision:null},{url:"assets/diff-Cy9g3Rky.js",revision:null},{url:"assets/diff-NHAsyJhv.js",revision:null},{url:"assets/dist-DInrA4pj.js",revision:null},{url:"assets/dist-sHRzaEBd.js",revision:null},{url:"assets/docker-Dd3fVAQC.js",revision:null},{url:"assets/dotenv-CNNfYLdk.js",revision:null},{url:"assets/dracula-CxzDAQ5_.js",revision:null},{url:"assets/dracula-soft-C3_FmKIp.js",revision:null},{url:"assets/dream-maker-DbnhR-wH.js",revision:null},{url:"assets/duckdb-browser-coi.pthread.worker-WD1J30pV.js",revision:null},{url:"assets/duckdb-browser-coi.worker-Ji2I_m5s.js",revision:null},{url:"assets/duckdb-browser-eh.worker-B2xnDV1H.js",revision:null},{url:"assets/duckdb-browser-mvp.worker-DCs3_EjR.js",revision:null},{url:"assets/duckdb-coi-CSr8FQO4.wasm",revision:null},{url:"assets/duckdb-eh-BJOC5S4x.wasm",revision:null},{url:"assets/duckdb-mvp-8HYqhb4i.wasm",revision:null},{url:"assets/duckdb-mvp-DkPAVKN8.js",revision:null},{url:"assets/edge-p-ARpia1.js",revision:null},{url:"assets/effect--zg3C1LQ-D98JZhsZ.js",revision:null},{url:"assets/elevenlabs-CaYC4yGw.js",revision:null},{url:"assets/elixir-CJLMrTRs.js",revision:null},{url:"assets/elm-BMVz0nRN.js",revision:null},{url:"assets/emacs-lisp-bSNO03KB.js",revision:null},{url:"assets/emotions-Jhx86Tb2.js",revision:null},{url:"assets/erb-BbmM0IYl.js",revision:null},{url:"assets/erlang-B14SbhrR.js",revision:null},{url:"assets/esm-B71VP927.js",revision:null},{url:"assets/everforest-dark-BhV8t-2H.js",revision:null},{url:"assets/everforest-light-C9AGdBc7.js",revision:null},{url:"assets/featherless-ai-DDuh-ALV.js",revision:null},{url:"assets/fennel-M13aQxW4.js",revision:null},{url:"assets/filter-message-oB4BRm9w.js",revision:null},{url:"assets/fireworks-ai-XKOYd2IG.js",revision:null},{url:"assets/fish-BBDJbWqF.js",revision:null},{url:"assets/fluent-AxL4iS6p.js",revision:null},{url:"assets/fortran-fixed-form-bw89GeE4.js",revision:null},{url:"assets/fortran-free-form-BdnWo7aQ.js",revision:null},{url:"assets/fortran-free-form-CBlLX79G.js",revision:null},{url:"assets/fsharp-Hgh5PYQA.js",revision:null},{url:"assets/gdresource-CUzI-cUQ.js",revision:null},{url:"assets/gdscript-Bc_8ex5_.js",revision:null},{url:"assets/gdscript-F11G2579.js",revision:null},{url:"assets/gdshader-DY7pnO4l.js",revision:null},{url:"assets/gdshader-sYAq8WNl.js",revision:null},{url:"assets/general-xS0QHfzZ.js",revision:null},{url:"assets/genie-DV4QnefI.js",revision:null},{url:"assets/gesture-circle-DW4NEEG3.js",revision:null},{url:"assets/gherkin-S4lUq6S4.js",revision:null},{url:"assets/git-commit-BpZ9iDq0.js",revision:null},{url:"assets/git-rebase-B7h1d5d5.js",revision:null},{url:"assets/github-dark-default-BYQei4yh.js",revision:null},{url:"assets/github-dark-dimmed-Bvmsnx6B.js",revision:null},{url:"assets/github-dark-high-contrast-6YcGML2A.js",revision:null},{url:"assets/github-dark-k7bIqKE6.js",revision:null},{url:"assets/github-light-B9Xj5QvQ.js",revision:null},{url:"assets/github-light-default-DF8zFKIh.js",revision:null},{url:"assets/github-light-high-contrast-DHPldgid.js",revision:null},{url:"assets/gleam-DO4VvLeC.js",revision:null},{url:"assets/glimmer-js-Bu85AOc8.js",revision:null},{url:"assets/glimmer-ts-C-Kl47e9.js",revision:null},{url:"assets/glsl-DmtRAr4x.js",revision:null},{url:"assets/glsl-DYKkOYZW.js",revision:null},{url:"assets/gnuplot-D8I-EhIQ.js",revision:null},{url:"assets/go-C__IfQT1.js",revision:null},{url:"assets/go-Dd-p9qS6.js",revision:null},{url:"assets/google-generative-ai-Cnho5aZ0.js",revision:null},{url:"assets/graphql-CEQ_sM75.js",revision:null},{url:"assets/graphql-Dqagbjjq.js",revision:null},{url:"assets/groovy-DM-nO1EZ.js",revision:null},{url:"assets/gruvbox-dark-hard-BxyGg139.js",revision:null},{url:"assets/gruvbox-dark-medium-DuoX-sP4.js",revision:null},{url:"assets/gruvbox-dark-soft-15EOOiCQ.js",revision:null},{url:"assets/gruvbox-light-hard-Dd1yAQsj.js",revision:null},{url:"assets/gruvbox-light-medium-nzFRFK9T.js",revision:null},{url:"assets/gruvbox-light-soft-DnUWeEb_.js",revision:null},{url:"assets/hack-Bu92NL2m.js",revision:null},{url:"assets/haml-DYU5Mqin.js",revision:null},{url:"assets/haml-xkiyVEW7.js",revision:null},{url:"assets/handlebars-DKMgiIbq.js",revision:null},{url:"assets/haskell-CEAyRRw1.js",revision:null},{url:"assets/haxe-CKt-jgKz.js",revision:null},{url:"assets/haxe-ZR_PTdzp.js",revision:null},{url:"assets/hcl-DLKPwsgV.js",revision:null},{url:"assets/HeaderLink-4n3ShASi.css",revision:null},{url:"assets/HeaderLink-CWxXVf7j.js",revision:null},{url:"assets/hearing-BXMZCHIN.js",revision:null},{url:"assets/hearing-YvgT5AIO.js",revision:null},{url:"assets/hjson-XvYI7Njd.js",revision:null},{url:"assets/hlsl-B3snUh6r.js",revision:null},{url:"assets/hlsl-BlKseEMV.js",revision:null},{url:"assets/home-ZV8SKFZK.js",revision:null},{url:"assets/houston-DHXmbLxv.js",revision:null},{url:"assets/html-BZoqaXf0.js",revision:null},{url:"assets/html-ClvIGx7Q.js",revision:null},{url:"assets/html-derivative-B47xzc0X.js",revision:null},{url:"assets/html-derivative-DKc8xbJR.js",revision:null},{url:"assets/http-MSHrrwRY.js",revision:null},{url:"assets/hxml-Dh5DeIFj.js",revision:null},{url:"assets/hy-YXpPDnHe.js",revision:null},{url:"assets/ibl-CoXg6NDS.js",revision:null},{url:"assets/icon-animation-CL2bLS_O.js",revision:null},{url:"assets/IconAnimation-CpQ8Hyb3.js",revision:null},{url:"assets/image-BhuwcwI9.css",revision:null},{url:"assets/image-CD7wsU_e.js",revision:null},{url:"assets/imba-Dz_HKeKr.js",revision:null},{url:"assets/import-url-browser-agSP1LkN.js",revision:null},{url:"assets/import-url-browser-CQxpIBxI.js",revision:null},{url:"assets/import-url-node-DsdDfn-V.js",revision:null},{url:"assets/index-C3z_mh4Z.css",revision:null},{url:"assets/index-CAcLDIRJ-D76TFz33.js",revision:null},{url:"assets/index-D3Bcbz9S.js",revision:null},{url:"assets/index-tts-vllm-BRY6l5rd.js",revision:null},{url:"assets/ini-Dcm6qhk1.js",revision:null},{url:"assets/InputFile-Bx1X59Ey.js",revision:null},{url:"assets/java-DGaayzZX.js",revision:null},{url:"assets/java-Z7KQ3nEV.js",revision:null},{url:"assets/javascript-BHV0xWwZ.js",revision:null},{url:"assets/javascript-CoFC1LC_.js",revision:null},{url:"assets/jinja-DExrtk5M.js",revision:null},{url:"assets/jison-QYFXoTsf.js",revision:null},{url:"assets/js/CubismSdkForWeb-5-r.3/Core/live2dcubismcore.min.js",revision:null},{url:"assets/json-BECfSVJ5.js",revision:null},{url:"assets/json-Bl0PyjOe.js",revision:null},{url:"assets/json5-Dk8HYSkk.js",revision:null},{url:"assets/jsonc-OZJKK0dB.js",revision:null},{url:"assets/jsonl-BPcKmbkE.js",revision:null},{url:"assets/jsonnet-VWv-jk-X.js",revision:null},{url:"assets/jssm-BNoG84vH.js",revision:null},{url:"assets/jsx-BX69MavX.js",revision:null},{url:"assets/jsx-Ke7R2tcQ.js",revision:null},{url:"assets/julia-CFG6gbIc.js",revision:null},{url:"assets/kanagawa-dragon-BWpk9Mq4.js",revision:null},{url:"assets/kanagawa-lotus-CKLe8F_4.js",revision:null},{url:"assets/kanagawa-wave-CnXqIWol.js",revision:null},{url:"assets/kotlin-DC198Zdv.js",revision:null},{url:"assets/kusto-TKpXneLP.js",revision:null},{url:"assets/laserwave-WVKNUQvj.js",revision:null},{url:"assets/latex-JBMJRhlk.js",revision:null},{url:"assets/lean-Bcrl2rE4.js",revision:null},{url:"assets/less-a0nnQRrN.js",revision:null},{url:"assets/less-BDKf7FXw.js",revision:null},{url:"assets/light-plus-DPoHPF0_.js",revision:null},{url:"assets/liquid-BffiuKJa.js",revision:null},{url:"assets/llvm-MaRTjixP.js",revision:null},{url:"assets/lm-studio-CvN0s9DC.js",revision:null},{url:"assets/log-CoOxsRlW.js",revision:null},{url:"assets/logo-DnzSrnoG.js",revision:null},{url:"assets/lua-BgW16NFn.js",revision:null},{url:"assets/lua-DceDs3NN.js",revision:null},{url:"assets/luau-EMYoTjNx.js",revision:null},{url:"assets/make-fLKYEh-f.js",revision:null},{url:"assets/markdown-DZLiWcN8.js",revision:null},{url:"assets/markdown-YcIGwGaY.js",revision:null},{url:"assets/marko-BuqmDWiT.js",revision:null},{url:"assets/material-theme-CXDd0Fw8.js",revision:null},{url:"assets/material-theme-darker-B0Net00K.js",revision:null},{url:"assets/material-theme-lighter-B2dw6nsk.js",revision:null},{url:"assets/material-theme-ocean-B96WbQ2Z.js",revision:null},{url:"assets/material-theme-palenight-CDmqL87N.js",revision:null},{url:"assets/matlab-BuphcKqY.js",revision:null},{url:"assets/mdc-XZ5XS5G8.js",revision:null},{url:"assets/mdx-C46OAT8W.js",revision:null},{url:"assets/memory-DUTQ1GLj.js",revision:null},{url:"assets/memory-long-term-Yt8aawSw.js",revision:null},{url:"assets/memory-short-term-DS04Epul.js",revision:null},{url:"assets/merge-D5ueGMzg.js",revision:null},{url:"assets/mermaid-DVqdMRwM.js",revision:null},{url:"assets/messages-Bu-Aploe.js",revision:null},{url:"assets/microsoft-speech-BC5TiMaI.js",revision:null},{url:"assets/min-dark-DhXoLJQp.js",revision:null},{url:"assets/min-light-BMmNCMwj.js",revision:null},{url:"assets/mipsasm-Cpca58h_.js",revision:null},{url:"assets/mistral-ai-0-WzsJ4f.js",revision:null},{url:"assets/models-D7u6cTwR.js",revision:null},{url:"assets/modelscope-eu2EjaoV.js",revision:null},{url:"assets/modules-HikmL5Bk.js",revision:null},{url:"assets/mojo-ZmBy9VXI.js",revision:null},{url:"assets/monokai-D9qSSba5.js",revision:null},{url:"assets/moonshot-ai-DLcorUbp.js",revision:null},{url:"assets/move-DarwfKOa.js",revision:null},{url:"assets/narrat-CVQxXxVP.js",revision:null},{url:"assets/nextflow-DpFhU96a.js",revision:null},{url:"assets/nginx-B9yym_4p.js",revision:null},{url:"assets/night-owl-8Ep6hr5W.js",revision:null},{url:"assets/nim-DwEagdh2.js",revision:null},{url:"assets/nix-M9WyUlxt.js",revision:null},{url:"assets/nord-CJQk-niI.js",revision:null},{url:"assets/novita-ai-CVdLD9kp.js",revision:null},{url:"assets/nushell-CzSZjfwb.js",revision:null},{url:"assets/objective-c-DCVzCT35.js",revision:null},{url:"assets/objective-cpp-C0Ag01Ux.js",revision:null},{url:"assets/ocaml-eLzecdzY.js",revision:null},{url:"assets/ollama-BX8me0Bl.js",revision:null},{url:"assets/one-dark-pro-BTKhVGVu.js",revision:null},{url:"assets/one-light-_OzQUqrV.js",revision:null},{url:"assets/openai-audio-speech-pkWXUv1i.js",revision:null},{url:"assets/openai-audio-transcription-DLiqCuDl.js",revision:null},{url:"assets/openai-BeGAAHfp.js",revision:null},{url:"assets/openai-compatible-audio-speech-CwdFGeuQ.js",revision:null},{url:"assets/openai-compatible-audio-transcription-BZNHTpx2.js",revision:null},{url:"assets/openai-compatible-BZeCaJly.js",revision:null},{url:"assets/openrouter-ai-C0dlS-yl.js",revision:null},{url:"assets/ort-wasm-simd-threaded.jsep-B0T3yYHD.wasm",revision:null},{url:"assets/pages-BO69Owbc.js",revision:null},{url:"assets/pascal-D41AWha0.js",revision:null},{url:"assets/perl-C2GmwEkq.js",revision:null},{url:"assets/php-DoTdIXPE.js",revision:null},{url:"assets/php-DwWkh3Qy.js",revision:null},{url:"assets/plain-ByGfUmM_.js",revision:null},{url:"assets/plastic-9PBwuRma.js",revision:null},{url:"assets/player2-BlBuUwzi.js",revision:null},{url:"assets/player2-speech-D_d58W6a.js",revision:null},{url:"assets/plsql-f5gfIECe.js",revision:null},{url:"assets/po-CmWhBzYk.js",revision:null},{url:"assets/poimandres-C1hxasus.js",revision:null},{url:"assets/polar-DjNzWtli.js",revision:null},{url:"assets/polaroid-CKTdBCLi.js",revision:null},{url:"assets/postcss-B4kqGpKO.js",revision:null},{url:"assets/postcss-DpZPffaJ.js",revision:null},{url:"assets/powerquery-IpsgmOrB.js",revision:null},{url:"assets/powershell-B_lnqR6S.js",revision:null},{url:"assets/prisma-Bwvc2M8c.js",revision:null},{url:"assets/process.worklet-DatbHzOU.js",revision:null},{url:"assets/prolog-V5VOXzGk.js",revision:null},{url:"assets/proto-SwiFBrSx.js",revision:null},{url:"assets/providers-Du_G6qMf.js",revision:null},{url:"assets/pug-R8zhNC2_.js",revision:null},{url:"assets/puppet-qmkJPQb2.js",revision:null},{url:"assets/purescript-Dht7UX7U.js",revision:null},{url:"assets/python-DnEQF7uk.js",revision:null},{url:"assets/python-ij4LvnkA.js",revision:null},{url:"assets/qml-BVEv2gLp.js",revision:null},{url:"assets/qmldir-SRZyIQXX.js",revision:null},{url:"assets/qss-BV_bwhiH.js",revision:null},{url:"assets/queue-zJgvo1Ds.js",revision:null},{url:"assets/r-Cfjf0OZu.js",revision:null},{url:"assets/r-CI_8QuDg.js",revision:null},{url:"assets/racket--ZfcoBNh.js",revision:null},{url:"assets/raku-Cf9Hlbz1.js",revision:null},{url:"assets/razor-BXrpcGrf.js",revision:null},{url:"assets/red-FtpQZApq.js",revision:null},{url:"assets/reg-N6IvIMTc.js",revision:null},{url:"assets/regexp-CEd_PNob.js",revision:null},{url:"assets/regexp-CsWoiU4Y.js",revision:null},{url:"assets/rel-DdTN8LaS.js",revision:null},{url:"assets/riscv-DP3cWieq.js",revision:null},{url:"assets/rose-pine-dawn-DRU2sbgU.js",revision:null},{url:"assets/rose-pine-DUL6IgMk.js",revision:null},{url:"assets/rose-pine-moon-B_Fk4BIm.js",revision:null},{url:"assets/route-block-Dc_s4AGN.js",revision:null},{url:"assets/rst-BbMmENyw.js",revision:null},{url:"assets/ruby-DnW9M3dC.js",revision:null},{url:"assets/ruby-HnI1a5UD.js",revision:null},{url:"assets/rust-DSYkP88Y.js",revision:null},{url:"assets/sas-Bbqf5T6B.js",revision:null},{url:"assets/sass-CXym6Moq.js",revision:null},{url:"assets/scala-C0Qq-8oa.js",revision:null},{url:"assets/scene-BBXD28Rs.js",revision:null},{url:"assets/Scenes-CKSNtwSU.js",revision:null},{url:"assets/scheme-DSdb-X-2.js",revision:null},{url:"assets/scss-Dj-dd4pv.js",revision:null},{url:"assets/scss-DWKy_Vxy.js",revision:null},{url:"assets/sdbl-DiSKCflq.js",revision:null},{url:"assets/sdbl-ykict4uj.js",revision:null},{url:"assets/settings-Cvdoq90V.js",revision:null},{url:"assets/settings-DYXa79d5.js",revision:null},{url:"assets/shaderlab-niXJj9LB.js",revision:null},{url:"assets/shellscript-CTDFJZE_.js",revision:null},{url:"assets/shellscript-QmjC9N2f.js",revision:null},{url:"assets/shellsession-BMRZY_iB.js",revision:null},{url:"assets/slack-dark-CqrNX_ip.js",revision:null},{url:"assets/slack-ochin-Beh97w-u.js",revision:null},{url:"assets/smalltalk-xm9bX9_z.js",revision:null},{url:"assets/snazzy-light-jcvulp_1.js",revision:null},{url:"assets/solarized-dark-DSkUIuTh.js",revision:null},{url:"assets/solarized-light-B2N6scgo.js",revision:null},{url:"assets/solidity-B7n7t9rj.js",revision:null},{url:"assets/soy-oogrYg0r.js",revision:null},{url:"assets/sparql-CZdnCkl8.js",revision:null},{url:"assets/speech-CE8U5AXR.js",revision:null},{url:"assets/splunk-BizC9c7t.js",revision:null},{url:"assets/sql-Bpxe3xlr.js",revision:null},{url:"assets/sql-YT8d_55s.js",revision:null},{url:"assets/ssh-config-Da40kmk_.js",revision:null},{url:"assets/stage-BKK7k1fe.js",revision:null},{url:"assets/stage-BoZJ1ey2.js",revision:null},{url:"assets/stata-DKoKZwk6.js",revision:null},{url:"assets/stylus-BfFgcVOV.js",revision:null},{url:"assets/stylus-C1TiPOGE.js",revision:null},{url:"assets/sury-s6Akl-oc-BAZidK0W.js",revision:null},{url:"assets/svelte-BCyo1H28.js",revision:null},{url:"assets/swift-BE5EM2-N.js",revision:null},{url:"assets/synthwave-84-CN18Oagb.js",revision:null},{url:"assets/system-Cj_-kLDI.js",revision:null},{url:"assets/system-verilog-CSbPS08G.js",revision:null},{url:"assets/systemd-Ddl13SOF.js",revision:null},{url:"assets/talonscript-C6lAZ7bW.js",revision:null},{url:"assets/tasl-BenQQHgt.js",revision:null},{url:"assets/tcl-VHvCQlLP.js",revision:null},{url:"assets/templ-UHustcM7.js",revision:null},{url:"assets/terraform-DOOPQykp.js",revision:null},{url:"assets/tex-BuVSzSIb.js",revision:null},{url:"assets/tex-CtKYC-ji.js",revision:null},{url:"assets/Textarea-CCCcUNHl.js",revision:null},{url:"assets/theme-color-CqKmMBmH.js",revision:null},{url:"assets/together-ai-awCy7DTa.js",revision:null},{url:"assets/tokyo-night-DmosIk2J.js",revision:null},{url:"assets/toml-CRyvn5e6.js",revision:null},{url:"assets/transformers.web-Dd3aeuYz.js",revision:null},{url:"assets/ts-tags-BtFLKwfC.js",revision:null},{url:"assets/tsv-CCGU3WlK.js",revision:null},{url:"assets/tsx-5zUN_IgM.js",revision:null},{url:"assets/tsx-COMncpjM.js",revision:null},{url:"assets/turtle-1Y15hDNk.js",revision:null},{url:"assets/turtle-CrbhJFON.js",revision:null},{url:"assets/twig-CpPqtXbv.js",revision:null},{url:"assets/typescript-BOZhZjjY.js",revision:null},{url:"assets/typescript-Ca-c9hkl.js",revision:null},{url:"assets/typespec-Bh5jd8rz.js",revision:null},{url:"assets/typst-C6MhiFK2.js",revision:null},{url:"assets/use-magic-keys-DXY8imCq.js",revision:null},{url:"assets/v-CXlxc9u3.js",revision:null},{url:"assets/vala-BTPBaKbS.js",revision:null},{url:"assets/valibot-DBCeetIe-Ds1XEwxb.js",revision:null},{url:"assets/vb-CzLsWrEq.js",revision:null},{url:"assets/verilog-C_vuNZ2r.js",revision:null},{url:"assets/vesper-BoVbJQEj.js",revision:null},{url:"assets/vhdl-B68Sbb2s.js",revision:null},{url:"assets/vibrant-CCIMjOyP.js",revision:null},{url:"assets/viml-nrwT1ftb.js",revision:null},{url:"assets/vitesse-black-CaxAW-AQ.js",revision:null},{url:"assets/vitesse-dark-DDmm5cB_.js",revision:null},{url:"assets/vitesse-light-DmqsYjE6.js",revision:null},{url:"assets/volcengine-o5fMggyS.js",revision:null},{url:"assets/vue-C_Xq0ko2.js",revision:null},{url:"assets/vue-DCM-hQ7D.js",revision:null},{url:"assets/vue-html-DKDWA0fy.js",revision:null},{url:"assets/vue-vine-Doq9x-V7.js",revision:null},{url:"assets/vyper-yEAtMWY8.js",revision:null},{url:"assets/wasm-CDMn1mOJ.js",revision:null},{url:"assets/wasm-D716BpP0.js",revision:null},{url:"assets/wenyan-DQ_GJzFi.js",revision:null},{url:"assets/wgsl-C4r57m6o.js",revision:null},{url:"assets/wikitext-CSgQLfV4.js",revision:null},{url:"assets/wit-F-L0h1o6.js",revision:null},{url:"assets/wolfram-CjWkRarV.js",revision:null},{url:"assets/worker-esGbNfYx.js",revision:null},{url:"assets/xai-CyydJLWz.js",revision:null},{url:"assets/xml-C--Xrksk.js",revision:null},{url:"assets/xml-wHYwXszZ.js",revision:null},{url:"assets/xsl-7XpO9mGM.js",revision:null},{url:"assets/yaml-Bsm5rW0k.js",revision:null},{url:"assets/yaml-C_c7RV0m.js",revision:null},{url:"assets/zenscript-Os3j9H_R.js",revision:null},{url:"assets/zig-B93JMj6E.js",revision:null},{url:"assets/zod-Bw_60DVU-BH3WFVfz.js",revision:null},{url:"index.html",revision:"e393d73e22e8963b0e94d5a4774045ee"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"apple-touch-icon.png",revision:"b41f3c1ba3c98364c640fe2b7348bd39"},{url:"favicon.svg",revision:"47d50a7bc31b26d14f3895982906935f"},{url:"maskable_icon_x192.png",revision:"a6ed025fb1491e8b498c9f4c0064d190"},{url:"maskable_icon_x512.png",revision:"b7b2c2d9bda88c74a295695c8a0e7468"},{url:"web-app-manifest-192x192.png",revision:"c9731148ea6befa78a495f63536c82eb"},{url:"web-app-manifest-512x512.png",revision:"bcae855d5ff588b682314fe1c6e530f0"},{url:"manifest.webmanifest",revision:"0a5a207cc5b76af4bd35f0b587dd1902"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/docs\//,/^\/ui\//,/^\/remote-assets\//,/^\/api\//]}))});